/* 1. Transformer le conteneur en flexbox */
.summary.entry-summary {
    display: flex;
    flex-direction: column;
    /* empile verticalement par défaut */
}

.summary.entry-summary .cart {
    order: -1;
}

/* 3. Si tu veux garder un ordre différent sur desktop */
@media (min-width: 992px) {
    .summary.entry-summary {
        display: block;
        /* ligne sur grand écran */
    }
}


.form-group {
    /* margin-bottom: 15px; */
    display: flex;
    flex-direction: column;
    /* margin-bottom: 20px; */
  }



  .ps-select-custum {
    display: inline-block;
    max-width: 220px;
    height: 40px;
    line-height: 40px;
    -webkit-border-radius: 40px;
    -moz-border-radius: 40px;
    -ms-border-radius: 40px;
    border-radius: 10px;
    width: 220px;
  }
  
  .ps-select-custum:hover {
    border-color: #dbdbdb;
  }
  .ps-select-custum .nice-select {
    padding: 0 20px;
    border-color: #f1f1f1;
    background-color: #f1f1f1;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    border-radius: 4px;
  }
  
  
  /* Style spécifique pour les mobiles */
  @media (max-width: 768px) {
    .variations tbody tr {
        margin-bottom: 30px; /* Ajustez la valeur selon vos besoins */
        display: flex;
            flex-direction: column;
            align-items: center;
    }
    .ps-select-custum{
      margin-bottom: 15px;
      min-width: 100%;
    }
    .ps-product--detail .ps-product__size{
      margin: 10px 0;
    }
    .block-quantite-and-cart{
      display: flex;
          /* flex-direction: column; */
          justify-content: center;
          /* align-items: center; */
    }
    .value{
      min-width: 100%;
    }
    .ps-btn-product-single{
      min-width: 100%;
    }
  }
  
  
  .ps-select-custum option{
    text-align: -webkit-center;
  }
/* ==========================================================================
   Landing Fete des Peres
   ========================================================================== */
.page-wrap--fete-des-peres {
    background: #f6efe5;
    color: #2c241c;
}

.page-wrap--fete-des-peres .container {
    max-width: 1180px;
}

.fdp-eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    color: #8a5b35;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.fdp-button,
.fdp-sticky-cta,
.page-wrap--fete-des-peres .single_add_to_cart_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 13px 24px;
    background: #7a4f2d !important;
    color: #fff !important;
    border: 0;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}

.fdp-button:hover,
.fdp-sticky-cta:hover,
.page-wrap--fete-des-peres .single_add_to_cart_button:hover {
    background: #93643d !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.fdp-hero {
    position: relative;
    overflow: hidden;
    min-height: 86vh;
    display: flex;
    align-items: center;
    padding: 92px 0 70px;
    background: linear-gradient(125deg, #f7efe4 0%, #ead9c1 48%, #201a15 48%, #14100d 100%);
}

.fdp-hero:before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,.5), rgba(255,255,255,0) 38%);
    pointer-events: none;
}

.fdp-hero__grid,
.fdp-order__grid,
.fdp-story__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: 58px;
}

.fdp-hero h1 {
    margin: 0 0 22px;
    color: #281f18;
    font-size: 6rem;
    line-height: .92;
    font-weight: 800;
}

.fdp-hero__lead {
    max-width: 520px;
    margin-bottom: 26px;
    color: #5c4d3d;
    font-size: 1.7rem;
    line-height: 1.7;
}

.fdp-hero__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 12px 20px;
    margin-bottom: 28px;
    padding-left: 18px;
    border-left: 4px solid #8a5b35;
}

.fdp-hero__meta span {
    color: #594737;
    font-weight: 700;
}

.fdp-hero__meta strong {
    color: #7a4f2d;
    font-size: 2.4rem;
}

.fdp-hero__media {
    justify-self: center;
    width: min(100%, 560px);
    padding: 18px;
    background: #fff8ed;
    box-shadow: 0 28px 80px rgba(19, 15, 11, .3);
}

.fdp-hero__image,
.fdp-hero__media img {
    display: block;
    width: 100%;
    height: auto;
}

.fdp-image-placeholder {
    display: grid;
    min-height: 420px;
    place-items: center;
    background: #ead9c1;
    color: #7a4f2d;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fdp-order {
    padding: 90px 0;
    background: #fffaf2;
}

.fdp-order h2,
.fdp-story h2,
.fdp-section-heading h2 {
    margin: 0 0 20px;
    color: #281f18;
    font-size: 3.4rem;
    line-height: 1.08;
    font-weight: 800;
}

.fdp-order__description,
.fdp-order__summary p,
.fdp-story__text {
    color: #5c4d3d;
    font-size: 1.5rem;
    line-height: 1.8;
}

.fdp-order__card {
    padding: 34px;
    background: #f6efe5;
    border: 1px solid rgba(122, 79, 45, .18);
    box-shadow: 0 18px 50px rgba(42, 31, 22, .08);
}

.fdp-order__card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(122, 79, 45, .18);
}

.fdp-order__card-head h3 {
    margin: 0;
    color: #281f18;
    font-size: 2.2rem;
    font-weight: 800;
}

.fdp-order__card-head span {
    color: #7a4f2d;
    font-size: 1.8rem;
    font-weight: 800;
}

.page-wrap--fete-des-peres .variations_form.cart {
    display: block;
}

.page-wrap--fete-des-peres .variations {
    width: 100%;
    margin-bottom: 18px;
}

.page-wrap--fete-des-peres .variations tbody,
.page-wrap--fete-des-peres .variations tr,
.page-wrap--fete-des-peres .variations td {
    display: block;
    width: 100%;
    padding: 0;
}

.page-wrap--fete-des-peres .ps-select-custum {
    width: 100%;
    min-height: 48px;
    margin-bottom: 14px;
    padding: 0 14px;
    border: 1px solid rgba(122, 79, 45, .25);
    background: #fffaf2;
    color: #281f18;
}

.page-wrap--fete-des-peres .single_variation_wrap,
.page-wrap--fete-des-peres .ps-product__shop {
    gap: 14px;
}

.page-wrap--fete-des-peres .block-quantite-and-cart {
    max-width: none;
    flex: 1 1 0;
    padding: 0;
}

.page-wrap--fete-des-peres .woocommerce-variation-price {
    margin-bottom: 16px;
    color: #7a4f2d;
    font-size: 1.8rem;
    font-weight: 800;
}

.fdp-gallery {
    padding: 90px 0;
    background: #211a14;
}

.fdp-gallery .fdp-eyebrow,
.fdp-gallery h2 {
    color: #f2dcc0;
}

.fdp-section-heading {
    max-width: 680px;
    margin-bottom: 36px;
}

.fdp-gallery__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 155px;
    gap: 16px;
}

.fdp-gallery__item {
    overflow: hidden;
    margin: 0;
    background: #3b2a1e;
}

.fdp-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fdp-gallery__item--1,
.fdp-gallery__item--5 {
    grid-column: span 3;
    grid-row: span 2;
}

.fdp-gallery__item--2,
.fdp-gallery__item--3,
.fdp-gallery__item--4 {
    grid-column: span 2;
}

.fdp-story {
    padding: 90px 0;
    background: #f6efe5;
}

.fdp-story__grid {
    align-items: start;
}

.fdp-story__text p:last-child {
    margin-bottom: 0;
}

.fdp-reassurance {
    padding: 70px 0;
    background: #fffaf2;
}

.fdp-reassurance__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.fdp-reassurance__grid > div {
    min-height: 190px;
    padding: 28px;
    border: 1px solid rgba(122, 79, 45, .16);
    background: #f6efe5;
}

.fdp-reassurance span {
    display: block;
    margin-bottom: 16px;
    color: #8a5b35;
    font-weight: 800;
    letter-spacing: 2px;
}

.fdp-reassurance h3 {
    margin: 0 0 12px;
    color: #281f18;
    font-size: 2rem;
    font-weight: 800;
}

.fdp-reassurance p {
    margin: 0;
    color: #5c4d3d;
    line-height: 1.7;
}

.fdp-sticky-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    box-shadow: 0 12px 30px rgba(42, 31, 22, .24);
}

.fdp-missing-product {
    padding: 120px 0;
    background: #f6efe5;
}

@media (max-width: 991px) {
    .fdp-hero {
        min-height: auto;
        padding: 72px 0 56px;
        background: linear-gradient(180deg, #f7efe4 0%, #ead9c1 58%, #201a15 58%, #14100d 100%);
    }

    .fdp-hero__grid,
    .fdp-order__grid,
    .fdp-story__grid {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .fdp-hero__content {
        text-align: center;
    }

    .fdp-hero h1 {
        font-size: 4.2rem;
    }

    .fdp-hero__lead {
        margin-left: auto;
        margin-right: auto;
    }

    .fdp-hero__meta {
        justify-content: center;
        padding-left: 0;
        border-left: 0;
    }

    .fdp-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 190px;
    }

    .fdp-gallery__item,
    .fdp-gallery__item--1,
    .fdp-gallery__item--2,
    .fdp-gallery__item--3,
    .fdp-gallery__item--4,
    .fdp-gallery__item--5 {
        grid-column: span 1;
        grid-row: span 1;
    }

    .fdp-reassurance__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575px) {
    .fdp-hero h1 {
        font-size: 3.2rem;
    }

    .fdp-order h2,
    .fdp-story h2,
    .fdp-section-heading h2 {
        font-size: 2.6rem;
    }

    .fdp-order__card {
        padding: 24px;
    }

    .page-wrap--fete-des-peres .ps-product__shop {
        display: block !important;
    }

    .page-wrap--fete-des-peres .block-quantite-and-cart + .block-quantite-and-cart {
        margin-top: 12px;
    }

    .fdp-gallery__grid {
        grid-template-columns: 1fr;
    }

    .fdp-sticky-cta {
        left: 16px;
        right: 16px;
        bottom: 14px;
    }
}

/* Fete des Peres media refinements */
.fdp-hero__media picture {
    display: block;
}

.fdp-story__media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.fdp-story__media img {
    display: block;
    width: 100%;
    height: 580px;
    object-fit: cover;
    box-shadow: 0 22px 60px rgba(42, 31, 22, .18);
}

.fdp-story__media img:nth-child(2) {
    margin-top: 70px;
}

.fdp-square-gallery {
    padding: 90px 0;
    background: #fffaf2;
}

.fdp-square-gallery__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.fdp-square-gallery__grid img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #ead9c1;
}

@media (max-width: 991px) {
    .fdp-story__media img {
        height: 500px;
    }

    .fdp-square-gallery__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 575px) {
    .fdp-story__media {
        grid-template-columns: 1fr;
    }

    .fdp-story__media img,
    .fdp-story__media img:nth-child(2) {
        height: auto;
        margin-top: 0;
    }

    .fdp-square-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Fete des Peres desktop corrections */
@media (min-width: 992px) {
    .fdp-sticky-cta {
        display: none;
    }

    .fdp-hero {
        min-height: 760px;
        padding: 82px 0;
        background: linear-gradient(110deg, #f7efe4 0%, #ead9c1 54%, #211a14 54%, #15110e 100%);
    }

    .fdp-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
        gap: 72px;
    }

    .fdp-hero h1 {
        max-width: 620px;
        font-size: 5.2rem;
        line-height: 1;
    }

    .fdp-hero__media {
        width: min(100%, 480px);
        padding: 14px;
    }

    .fdp-hero__media img {
        max-height: 640px;
        object-fit: contain;
    }

    .fdp-order__grid {
        grid-template-columns: minmax(0, .95fr) minmax(380px, .85fr);
        gap: 72px;
        align-items: start;
    }

    .fdp-gallery__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: auto;
        gap: 20px;
    }

    .fdp-gallery__item,
    .fdp-gallery__item--1,
    .fdp-gallery__item--2,
    .fdp-gallery__item--3,
    .fdp-gallery__item--4,
    .fdp-gallery__item--5 {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 5;
        background: #2b2119;
    }

    .fdp-gallery__item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        background: #2b2119;
    }

    .fdp-story__grid {
        grid-template-columns: minmax(0, .85fr) minmax(420px, 1fr);
        gap: 72px;
    }

    .fdp-story__media img {
        height: 520px;
        object-fit: contain;
        background: #ead9c1;
    }

    .fdp-square-gallery__grid {
        gap: 18px;
    }
}

.fdp-product-notes {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.fdp-product-notes li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 10px 0;
    border-top: 1px solid rgba(122, 79, 45, .16);
    color: #2c241c;
    font-weight: 800;
}


/* Galerie produit WooCommerce dans la commande */
.fdp-order__product-panel {
    display: grid;
    gap: 22px;
}

.fdp-order-product-gallery {
    display: block;
    margin-top: 0;
}

.fdp-order-product-gallery__main {
    overflow: hidden;
    background: #f6efe5;
    border: 1px solid rgba(122, 79, 45, .18);
}

.fdp-order-product-gallery__main img {
    display: block;
    width: 100%;
    height: auto;
}

.fdp-order-product-gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.fdp-order-product-gallery__thumb {
    margin: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid rgba(122, 79, 45, .18);
    background: #fffaf2;
}

.fdp-order-product-gallery__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 575px) {
    .fdp-order-product-gallery__thumbs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.fdp-order-product-gallery__thumb {
    padding: 0;
    cursor: pointer;
}

.fdp-order-product-gallery__thumb.is-active {
    border-color: #7a4f2d;
    box-shadow: inset 0 0 0 2px #7a4f2d;
}

/* Header informatif Fete des Peres */
.fdp-info-header {
    position: relative;
    z-index: 20;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: #fffaf2;
    border-bottom: 1px solid rgba(122, 79, 45, .18);
}

.fdp-info-header__logo {
    display: inline-flex;
    align-items: center;
}

.fdp-info-header__logo img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 58px;
}

.fdp-info-header__banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 46px;
    padding: 10px 18px;
    background: #211a14;
    color: #fff4e4;
    text-align: center;
}

.fdp-info-header__banner span {
    color: #e8c69e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.fdp-info-header__banner strong {
    color: #fff4e4;
    font-size: 1.5rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .fdp-info-header {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px 16px;
        text-align: center;
    }

    .fdp-info-header__logo {
        justify-content: center;
    }

    .fdp-info-header__logo img {
        max-width: 140px;
        max-height: 48px;
    }

    .fdp-info-header__banner {
        display: grid;
        gap: 4px;
        padding: 10px 12px;
    }

    .fdp-info-header__banner strong {
        font-size: 1.25rem;
        line-height: 1.35;
    }
}

/* Nouveau hero Fete des Peres avec banniere responsive */
.page-wrap--fete-des-peres .fdp-hero {
    min-height: min(820px, calc(100vh - 96px));
    padding: 0;
    background-image: linear-gradient(90deg, rgba(22, 15, 10, .76) 0%, rgba(22, 15, 10, .48) 36%, rgba(22, 15, 10, .06) 68%), url('../images/fete-des-peres/banner/hero-fete-des-peres-mobile.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-wrap--fete-des-peres .fdp-hero:before {
    display: none;
}

.page-wrap--fete-des-peres .fdp-hero__grid {
    min-height: inherit;
    display: flex;
    align-items: center;
}

.page-wrap--fete-des-peres .fdp-hero__content {
    max-width: 560px;
    padding: 70px 0;
}

.page-wrap--fete-des-peres .fdp-hero h1,
.page-wrap--fete-des-peres .fdp-hero__lead,
.page-wrap--fete-des-peres .fdp-hero__meta span {
    color: #fff7ed;
}

.page-wrap--fete-des-peres .fdp-hero h1 {
    text-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.page-wrap--fete-des-peres .fdp-hero .fdp-eyebrow,
.page-wrap--fete-des-peres .fdp-hero__meta strong {
    color: #f4cf9c;
}

.page-wrap--fete-des-peres .fdp-hero__meta {
    border-left-color: #f4cf9c;
}

@media (min-width: 768px) {
    .page-wrap--fete-des-peres .fdp-hero {
        background-image: linear-gradient(90deg, rgba(22, 15, 10, .72) 0%, rgba(22, 15, 10, .42) 42%, rgba(22, 15, 10, .06) 72%), url('../images/fete-des-peres/banner/hero-fete-des-peres-tablette.png');
    }
}

@media (min-width: 1024px) {
    .page-wrap--fete-des-peres .fdp-hero {
        background-image: linear-gradient(90deg, rgba(22, 15, 10, .82) 0%, rgba(22, 15, 10, .58) 33%, rgba(22, 15, 10, .08) 62%), url('../images/fete-des-peres/banner/hero-fete-des-peres-desktop.png');
        background-position: center right;
    }
}

@media (max-width: 575px) {
    .page-wrap--fete-des-peres .fdp-hero {
        min-height: 680px;
        background-position: center top;
    }

    .page-wrap--fete-des-peres .fdp-hero__grid {
        align-items: flex-end;
    }

    .page-wrap--fete-des-peres .fdp-hero__content {
        padding: 0 0 46px;
    }
}
