:root {
    --green: #233528;
    --gold: #b88957;
    --cream: #fbf8f3;
    --text: #263127;
    --muted: #706a60;
    --line: #e7d7c6
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: Montserrat, Arial, sans-serif
}

a {
    text-decoration: none;
    color: inherit
}

img {
    display: block;
    max-width: 100%
}

.topbar {
    height: 34px;
    background: #223221;
    color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    font-size: 12px
}

.site-header {
    height: 116px;
    background: #fff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0 9%;
    box-shadow: 0 2px 18px rgba(0, 0, 0, .04)
}

.nav-left {
    display: flex;
    gap: 30px;
    font-size: 14px
}

.brand {
    text-align: center;
    position: relative
}

.brand-leaf {
    color: var(--gold);
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%)
}

.brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    line-height: .9
}

.brand-subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: .5em;
    font-size: 11px
}

.header-icons {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
    font-size: 26px
}

.cart {
    position: relative
}

.cart b {
    position: absolute;
    top: -12px;
    right: -12px;
    background: var(--gold);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center
}

.product-section {
    padding: 34px 8.5% 55px
}

.breadcrumbs {
    font-size: 12px;
    color: #8b8175;
    margin-bottom: 30px
}

.product-grid {
    display: grid;
    grid-template-columns: 58% 42%;
    gap: 70px
}

.gallery {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 24px
}

.thumbs {
    display: flex;
    flex-direction: column;
    gap: 18px
}

.thumbs button {
    border: 1px solid #d8c4ae;
    background: #eee;
    padding: 0;
    cursor: pointer;
    height: 88px
}

.thumbs img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 6px;
    background: #f6efe7;
}

.main-image {
    margin: 0;
    background: #ead8c7;
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
    overflow: hidden
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 18px;
}

.zoom {
    position: absolute;
    right: 18px;
    bottom: 18px;
    background: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.product-info {
    padding-top: 10px
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .18em;
    color: #8b8175;
    font-size: 12px
}

.product-info h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 500;
    margin: 8px 0 10px
}

.subtitle {
    font-size: 16px;
    color: #766b61
}

.rating {
    color: var(--gold);
    margin: 22px 0
}

.rating span {
    color: #766b61;
    font-size: 12px;
    margin-left: 8px
}

.description {
    line-height: 1.8;
    color: #5c5750
}

.benefits {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin: 28px 0;
    flex-wrap: nowrap;
}


.benefits div {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 10px
}

.benefits span {
    border: 1px solid var(--gold);
    color: var(--gold);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center
}

.size-block span {
    display: block;
    margin-bottom: 8px;
    color: #7a7067;
    font-size: 13px
}

.size-block button {
    padding: 15px 19px;
    border: 1px solid var(--gold);
    background: #fff
}

.price {
    font-size: 24px;
    font-weight: 700;
    margin: 30px 0 20px
}

.cart-row {
    display: flex;
    gap: 18px
}

.qty {
    display: flex;
    border: 1px solid #d6c1ad;
    height: 54px
}

.qty button,
.qty input {
    border: 0;
    background: #fff;
    width: 48px;
    text-align: center
}

.add-btn {
    height: 54px;
    border: 0;
    background: var(--green);
    color: #fff;
    padding: 0 55px;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 700
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    color: #6d655d;
    line-height: 2
}

.details-tabs {
    background: #f7f2ec;
    padding: 34px 8.5% 55px
}

.tabs {
    display: flex;
    gap: 64px;
    border-bottom: 1px solid #dccbbb;
    margin-bottom: 42px
}

.tabs button {
    border: 0;
    background: transparent;
    padding: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #7c746c
}

.tabs .active {
    border-bottom: 2px solid var(--gold);
    color: #263127
}

.details-grid {
    display: grid;
    grid-template-columns: 1fr .8fr 1.1fr;
    gap: 55px;
    align-items: center
}

.long-text {
    line-height: 1.8;
    color: #5f5851
}

.ingredients-list {
    display: grid;
    gap: 18px
}

.ingredients-list div {
    display: grid;
    grid-template-columns: 36px 1fr;
    column-gap: 12px
}

.ingredients-list span {
    grid-row: span 2;
    color: var(--gold);
    font-size: 28px
}

.ingredients-list strong {
    color: var(--gold)
}

.ingredients-list small {
    color: #746b62
}

.ingredient-photo {
    width: 100%;
    height: 300px;
    object-fit: contain;
    object-position: center;
    padding: 14px;
    background: #f6efe7;
}

.recommended {
    padding: 35px 8.5% 45px
}

.recommended h2 {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: .35em;
    font-size: 16px;
    font-weight: 500;
    border-top: 1px solid #dccbbb;
    padding-top: 24px
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.cards article {
    background: #f3ede6
}

.cards img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    object-position: center;
    padding: 12px;
    background: #f6efe7;
}

.cards div {
    padding: 18px
}

.cards h3 {
    font-size: 15px;
    margin: 0 0 8px
}

.cards p {
    font-size: 13px;
    color: #746b62
}

.cards a {
    float: right;
    border: 1px solid #8b7865;
    padding: 11px 25px;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 11px
}


@media(max-width:980px) {
    .site-header {
        height: auto;
        grid-template-columns: 1fr;
        padding: 18px 5%;
        gap: 15px
    }

    .brand {
        order: 1
    }

    .nav-left {
        order: 2;
        justify-content: center;
        flex-wrap: wrap
    }

    .header-icons {
        position: absolute;
        right: 5%;
        top: 42px
    }

    .product-grid,
    .details-grid {
        grid-template-columns: 1fr
    }

    .gallery {
        grid-template-columns: 72px 1fr
    }

    .main-image {
        min-height: 420px
    }

    .cards {
        grid-template-columns: 1fr 1fr
    }

   
}

@media(max-width:640px) {
    .topbar {
        height: auto;
        display: grid;
        gap: 4px;
        text-align: center;
        padding: 8px 10px
    }

    .brand-name {
        font-size: 40px
    }

    .brand-subtitle {
        font-size: 9px
    }

    .nav-left {
        overflow: auto;
        justify-content: flex-start;
        flex-wrap: nowrap
    }

    .product-section,
    .details-tabs,
    .recommended {
        padding-left: 16px;
        padding-right: 16px
    }

    .product-grid {
        gap: 28px
    }

    .gallery {
        grid-template-columns: 1fr
    }

    .thumbs {
        order: 2;
        flex-direction: row;
        overflow: auto
    }

    .thumbs button {
        min-width: 72px;
        height: 72px
    }

    .main-image {
        min-height: 340px
    }

    .product-info h1 {
        font-size: 34px
    }

    .cart-row {
        display: grid
    }

    .add-btn {
        padding: 0 25px
    }

      .tabs {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        border-bottom: 0;
        margin-bottom: 28px;
        padding: 4px 2px 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tabs button {
        flex: 0 0 auto;
        min-width: max-content;
        max-width: 220px;
        min-height: 46px;
        padding: 0 18px;
        border: 1px solid #dfcdbc;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.78);
        color: #6f665d;
        box-shadow: 0 10px 24px rgba(35, 53, 40, 0.07);
        font-size: 10px;
        line-height: 1.2;
        letter-spacing: .13em;
        white-space: nowrap;
        scroll-snap-align: start;
    }

    .tabs .active {
        background: var(--green);
        color: #fff;
        border-color: var(--green);
        box-shadow: 0 14px 28px rgba(35, 53, 40, 0.18);
    }

    .tabs button[data-tab="conseils"] {
        max-width: none;
    }

    .cards
     {
        grid-template-columns: 1fr
    }

    .benefits {
        gap: 15px
    }
}



.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tabs button {
    cursor: pointer;
    white-space: nowrap;
}