/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f4f1eb;
    color: #171717;
    line-height: 1.5;
}

body.cart-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.container {
    width: min(1240px, calc(100% - 48px));
    margin: 0 auto;
}


/* =========================================
   TYPOGRAPHY
========================================= */

h1,
h2,
h3,
.logo {
    font-family: "Space Grotesk", sans-serif;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(244, 241, 235, 0.9);
    border-bottom: 1px solid rgba(23, 23, 23, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1400px, calc(100% - 48px));
    min-height: 78px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.06em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
    opacity: 1;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;

    height: 2px;
    background: #171717;
}

.header-shop-button,
.cart-button {
    border: 1px solid #171717;
    background: #171717;
    color: #fff;

    padding: 12px 18px;
    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}

.header-shop-button:hover,
.cart-button:hover {
    transform: translateY(-2px);
}

.cart-button {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-button span {
    min-width: 21px;
    height: 21px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    background: #fff;
    color: #171717;

    font-size: 11px;
}


/* =========================================
   BUTTONS
========================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 999px;

    font-size: 14px;
    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: #171717;
    color: #fff;
}

.button-secondary {
    border: 1px solid rgba(23, 23, 23, 0.18);
    background: transparent;
}


/* =========================================
   HERO
========================================= */

.hero {
    min-height: calc(100vh - 78px);
    padding: 100px 24px;

    display: flex;
    align-items: center;

    background:
        radial-gradient(circle at 80% 30%,
            rgba(220, 210, 190, 0.65),
            transparent 30%),
        #f4f1eb;
}

.hero-content {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.hero h1 {
    max-width: 900px;
    margin-top: 20px;

    font-size: clamp(64px, 10vw, 150px);
    line-height: 0.88;
    letter-spacing: -0.075em;
}

.hero h1 em {
    font-style: normal;
    color: #777067;
}

.hero p {
    max-width: 570px;
    margin-top: 36px;

    font-size: 18px;
    line-height: 1.65;
    color: #65615a;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}


/* =========================================
   SECTIONS
========================================= */

.categories-section,
.featured-section,
.promises-section {
    padding: 120px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    margin-bottom: 52px;
}

.section-heading h2 {
    margin-top: 12px;

    font-size: clamp(40px, 5vw, 70px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.section-heading>p {
    max-width: 390px;
    color: #6d6861;
    font-size: 15px;
    line-height: 1.7;
}

.text-link {
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================
   CATEGORIES
========================================= */

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.category-card {
    overflow: hidden;

    border: 1px solid rgba(23, 23, 23, 0.08);
    border-radius: 24px;

    background: #ebe7df;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(23, 23, 23, 0.08);
}

.category-card-image {
    aspect-ratio: 1 / 0.82;
    overflow: hidden;
    background: #ded9d0;
}

.category-card-image img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.category-card:hover .category-card-image img {
    transform: scale(1.05);
}

.category-card-content {
    padding: 24px;
}

.category-card-kicker {
    display: block;
    margin-bottom: 16px;

    color: #8b857c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
}

.category-card h3 {
    font-size: 27px;
    letter-spacing: -0.04em;
}

.category-card p {
    margin-top: 7px;

    color: #706b64;
    font-size: 14px;
}


/* =========================================
   FEATURED
========================================= */

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.featured-card {
    display: block;
}

.featured-card-image {
    aspect-ratio: 1 / 1.05;
    overflow: hidden;

    border-radius: 24px;
    background: #e7e2da;
}

.featured-card-image img {
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.04);
}

.featured-card-content {
    padding: 18px 4px;
}

.featured-card-content span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #8a847c;
}

.featured-card-content h3 {
    margin-top: 6px;

    font-size: 22px;
    letter-spacing: -0.035em;
}


/* =========================================
   CUSTOM
========================================= */

.custom-section {
    padding: 100px 0;
    background: #171717;
    color: #fff;
}

.custom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.custom-inner>div {
    max-width: 700px;
}

.custom-inner .eyebrow {
    color: #a8a39b;
}

.custom-inner h2 {
    margin-top: 18px;

    font-size: clamp(42px, 6vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.custom-inner p {
    max-width: 580px;
    margin-top: 26px;

    color: #aaa7a1;
    line-height: 1.7;
}

.custom-inner .button-primary {
    flex-shrink: 0;
    background: #fff;
    color: #171717;
}


/* =========================================
   PROMISES
========================================= */

.promises-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.promise {
    padding-top: 20px;
    border-top: 1px solid rgba(23, 23, 23, 0.15);
}

.promise-number {
    color: #918b82;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.promise h3 {
    margin-top: 30px;

    font-size: 23px;
    letter-spacing: -0.035em;
}

.promise p {
    max-width: 300px;
    margin-top: 12px;

    color: #706b64;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
    padding: 70px 0 30px;
    background: #e8e4dc;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 40px;

    padding-bottom: 60px;
}

.footer-top p {
    margin-top: 12px;

    color: #716c64;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;

    padding-top: 20px;
    border-top: 1px solid rgba(23, 23, 23, 0.1);

    color: #817c74;
    font-size: 12px;
}


/* =========================================
   SHOP HERO
========================================= */

.shop-hero {
    padding: 100px 0 80px;
    background: #e8e4dc;
}

.shop-hero h1 {
    margin-top: 18px;

    font-size: clamp(55px, 8vw, 110px);
    line-height: 0.9;
    letter-spacing: -0.07em;
}

.shop-hero p {
    max-width: 550px;
    margin-top: 30px;

    color: #6e6961;
    font-size: 17px;
    line-height: 1.7;
}


/* =========================================
   SHOP
========================================= */

.shop-section {
    padding: 70px 0 120px;
}

.shop-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 60px;
}

.shop-sidebar {
    position: sticky;
    top: 110px;
    align-self: start;
}

.filter-title {
    margin-bottom: 18px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.category-list {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.category-button {
    width: 100%;
    padding: 11px 13px;

    border: 0;
    border-radius: 10px;

    background: transparent;
    color: #777169;

    text-align: left;
    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.category-button:hover {
    background: rgba(23, 23, 23, 0.05);
    color: #171717;
}

.category-button.active {
    background: #171717;
    color: #fff;
}


/* =========================================
   SHOP TOOLBAR
========================================= */

.shop-toolbar {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 22px;

    color: #777169;
    font-size: 13px;
}


/* =========================================
   PRODUCTS
========================================= */

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 16px;
}

.product-card {
    min-width: 0;
}

.product-card-media {
    overflow: hidden;

    border-radius: 20px;
    background: #e6e1d8;
}

.product-image {
    aspect-ratio: 1 / 1;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.04);
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    background: #ded9d0;
    color: #99938a;

    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.product-card-info {
    padding: 16px 3px 0;
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}

.product-card h3 {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.product-price {
    flex-shrink: 0;

    font-size: 15px;
    font-weight: 700;
}

.product-size {
    margin-top: 6px;

    color: #89837b;
    font-size: 12px;
}

.product-colors {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;

    margin-top: 9px;
}

.product-colors span {
    padding: 4px 8px;

    border: 1px solid rgba(23, 23, 23, 0.1);
    border-radius: 999px;

    color: #777169;
    font-size: 10px;
}

.add-to-cart {
    width: 100%;
    margin-top: 16px;
    padding: 12px;

    border: 1px solid rgba(23, 23, 23, 0.18);
    border-radius: 999px;

    background: transparent;
    color: #171717;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.add-to-cart:hover {
    background: #171717;
    color: #fff;
}

.products-empty,
.products-error {
    padding: 80px 20px;
    text-align: center;
}

.products-empty h2,
.products-error h2 {
    font-size: 30px;
    letter-spacing: -0.04em;
}

.products-empty p,
.products-error p {
    margin-top: 10px;
    color: #777169;
}


/* =========================================
   CART
========================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 190;

    background: rgba(0, 0, 0, 0.35);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;

    z-index: 200;

    width: min(440px, 100%);

    display: flex;
    flex-direction: column;

    background: #f4f1eb;

    transform: translateX(100%);
    transition: transform 0.35s ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    padding: 28px;

    border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.cart-header h2 {
    margin-top: 5px;

    font-size: 32px;
    letter-spacing: -0.05em;
}

.cart-close {
    width: 38px;
    height: 38px;

    border: 1px solid rgba(23, 23, 23, 0.15);
    border-radius: 50%;

    background: transparent;

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.cart-empty {
    padding: 60px 10px;
    text-align: center;
}

.cart-empty h3 {
    font-size: 22px;
}

.cart-empty p {
    margin-top: 8px;

    color: #777169;
    font-size: 14px;
}

.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 15px;

    padding-bottom: 20px;
    margin-bottom: 20px;

    border-bottom: 1px solid rgba(23, 23, 23, 0.1);
}

.cart-item-image {
    width: 80px;
    aspect-ratio: 1;

    overflow: hidden;
    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #e4dfd7;

    color: #99938a;

    font-size: 11px;
    font-weight: 700;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-content {
    min-width: 0;
}

.cart-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.cart-item h3 {
    font-size: 15px;
    line-height: 1.2;
}

.cart-item strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

.cart-remove {
    flex-shrink: 0;

    border: 0;
    background: transparent;

    color: #8a847c;

    font-size: 20px;
    cursor: pointer;
}

.cart-item-controls {
    display: inline-flex;
    align-items: center;

    margin-top: 12px;

    border: 1px solid rgba(23, 23, 23, 0.14);
    border-radius: 999px;

    overflow: hidden;
}

.cart-item-controls button {
    width: 30px;
    height: 28px;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.cart-item-controls span {
    min-width: 28px;

    text-align: center;
    font-size: 12px;
    font-weight: 700;
}

.cart-footer {
    padding: 24px;

    border-top: 1px solid rgba(23, 23, 23, 0.1);
}

.cart-summary {
    display: flex;
    flex-direction: column;
    gap: 9px;

    margin-bottom: 20px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    color: #777169;
    font-size: 13px;
}

.cart-summary-row strong {
    color: #171717;
    font-size: 16px;
}

.checkout-button {
    width: 100%;
    padding: 15px;

    border: 0;
    border-radius: 999px;

    background: #171717;
    color: #fff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.checkout-button:disabled {
    opacity: 0.5;
    cursor: wait;
}


/* =========================================
   TOAST
========================================= */

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;

    z-index: 300;

    padding: 13px 18px;

    border-radius: 999px;

    background: #171717;
    color: #fff;

    font-size: 13px;
    font-weight: 600;

    transform: translate(-50%, 30px);
    opacity: 0;
    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1000px) {

    .category-grid,
    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .shop-sidebar {
        position: static;
    }

    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .category-button {
        width: auto;
    }

    .promises-grid {
        gap: 25px;
    }

}


@media (max-width: 700px) {

    .container {
        width: min(100% - 32px, 1240px);
    }

    .header-inner {
        width: calc(100% - 32px);
        min-height: 68px;
    }

    .main-nav {
        display: none;
    }

    .header-shop-button {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 90px 16px 100px;
    }

    .hero h1 {
        font-size: clamp(58px, 17vw, 100px);
    }

    .hero p {
        font-size: 16px;
    }

    .categories-section,
    .featured-section,
    .promises-section {
        padding: 80px 0;
    }

    .section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .section-heading>p {
        margin-top: 20px;
    }

    .category-grid,
    .featured-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-card-image {
        aspect-ratio: 1 / 0.75;
    }

    .custom-section {
        padding: 80px 0;
    }

    .custom-inner {
        display: block;
    }

    .custom-inner .button {
        margin-top: 30px;
    }

    .promises-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-top {
        display: block;
        padding-bottom: 40px;
    }

    .footer-links {
        margin-top: 30px;
        flex-wrap: wrap;
    }

    .footer-bottom {
        display: block;
    }

    .footer-bottom span {
        display: block;
    }

    .footer-bottom span+span {
        margin-top: 7px;
    }

    .shop-hero {
        padding: 75px 0 60px;
    }

    .shop-section {
        padding: 50px 0 80px;
    }

    .cart-drawer {
        width: 100%;
    }

}


@media (max-width: 450px) {

    .cart-button {
        padding: 10px 13px;
    }

    .cart-button {
        font-size: 12px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

}

/* =========================================================
   PAGES RÉSULTAT — SUCCESS / CANCEL
   ========================================================= */

.result-page {
    min-height: 100vh;
    min-height: 100svh;
    background: #f4f1eb;
    color: #171717;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
}

.result-top {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(23, 23, 23, 0.18);
}

.result-top .logo {
    color: #171717;
    text-decoration: none;
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.06em;
}

.result-top>span {
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.6;
}

.result-content {
    width: min(760px, 100%);
    margin: auto;
    padding: 80px 0;
}

.result-content .section-label {
    margin: 0 0 24px;
    font-family: "DM Mono", monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}

.result-content h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(52px, 8vw, 104px);
    line-height: 0.92;
    letter-spacing: -0.07em;
    font-weight: 800;
}

.result-content h1 em {
    font-style: normal;
    font-weight: 400;
}

.result-content>p:not(.section-label) {
    max-width: 520px;
    margin: 40px 0 36px;
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(23, 23, 23, 0.65);
}

.result-content .button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-width: 230px;
    padding: 16px 20px;
    border: 1px solid #171717;
    text-decoration: none;
    font-family: "DM Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.result-content .button span {
    font-size: 18px;
    line-height: 1;
}

.result-content .button-dark {
    background: #171717;
    color: #fff;
}

.result-content .button-dark:hover {
    background: transparent;
    color: #171717;
    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .result-page {
        padding: 20px;
    }

    .result-top {
        padding-bottom: 20px;
    }

    .result-top .logo {
        font-size: 21px;
    }

    .result-top>span {
        font-size: 9px;
        text-align: right;
    }

    .result-content {
        padding: 60px 0;
    }

    .result-content h1 {
        font-size: clamp(48px, 14vw, 76px);
    }

    .result-content>p:not(.section-label) {
        margin-top: 32px;
        font-size: 15px;
    }

    .result-content .button {
        width: 100%;
    }
}