* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --ink: #302322;
    --muted: #80716d;
    --rose: #a64c55;
    --rose-dark: #843d45;
    --cream: #fbf7f2;
    --sand: #f1e8df;
    --line: #e8ddd4;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    font-family: var(--sans);
    color: var(--ink);
    background: #fffdfa;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.announcement {
    background: var(--ink);
    color: #fff9f3;
    text-align: center;
    padding: 9px 16px;
    font-size: 11px;
    letter-spacing: 1.25px;
}

/* Header */
.header {
    min-height: 78px;
    padding: 10px 3.5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    background: rgba(255, 253, 250, 0.97);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(48, 35, 34, 0.07);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: -0.7px;
}

.logo-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    object-fit: cover;
    border-radius: 50%;
}

.header nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.8vw, 38px);
}

.header nav a {
    color: #514541;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.header nav a:hover {
    color: var(--rose);
}

.header-btn,
.primary-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 13px 22px;
    background: var(--rose);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.icon-button {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 20px;
    cursor: pointer;
}

.action-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--rose);
    border: 2px solid #fffdfa;
    border-radius: 50%;
    font-size: 9px;
    line-height: 1;
}

.header-btn:hover,
.primary-btn:hover {
    background: var(--rose-dark);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    color: var(--ink);
    background: none;
    border: 0;
    font-size: 25px;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: min(660px, 72vw);
    display: flex;
    align-items: center;
    padding: 80px 10%;
    background:
        linear-gradient(90deg, rgba(32, 21, 21, 0.74) 0%, rgba(32, 21, 21, 0.48) 43%, rgba(32, 21, 21, 0.04) 100%),
        var(--hero-background-image, url('https://images.unsplash.com/photo-1610030469983-98e550d6193c?w=1800')) center 38%/cover;
    color: white;
}

.hero-content {
    max-width: 550px;
}

.eyebrow {
    color: var(--rose);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.6px;
    margin-bottom: 15px;
}

.hero .eyebrow {
    color: #f1c8b9;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(52px, 7.3vw, 88px);
    font-weight: 500;
    letter-spacing: -2px;
    line-height: 1.02;
    margin-bottom: 22px;
}

.hero-content > p:not(.eyebrow) {
    max-width: 410px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 29px;
}

/* Shared sections */
.section {
    padding: 94px 8%;
}

.section-heading {
    margin-bottom: 42px;
}

.section-heading h2,
.about h2,
.new-arrivals h2 {
    font-family: var(--serif);
    font-size: clamp(32px, 4vw, 44px);
    font-weight: 500;
    letter-spacing: -0.8px;
    line-height: 1.2;
    margin-bottom: 11px;
}

.section-heading > p:last-child {
    color: var(--muted);
    font-size: 13px;
}

.section-heading .eyebrow {
    margin-bottom: 12px;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    position: relative;
    height: 390px;
    overflow: hidden;
    background: var(--sand);
}

.category-card::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(transparent, rgba(30, 20, 19, 0.62));
}

.category-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.65s ease;
}

.category-images-pending .category-card img {
    visibility: hidden;
}

.category-images-pending .hero {
    background-color: #382626;
    background-image: linear-gradient(90deg, rgba(32, 21, 21, 0.74) 0%, rgba(32, 21, 21, 0.48) 43%, rgba(32, 21, 21, 0.04) 100%);
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    position: absolute;
    z-index: 1;
    left: 25px;
    bottom: 23px;
    color: white;
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
}

/* Products */
.products-section {
    background: var(--cream);
}

.products-section .section-heading {
    text-align: center;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 34px;
}

.filter-btn {
    min-width: 82px;
    padding: 9px 19px;
    color: #675955;
    background: transparent;
    border: 1px solid #d9cbc3;
    border-radius: 30px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
    color: white;
    background: var(--ink);
    border-color: var(--ink);
}

.status-message {
    margin: -10px 0 24px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(180px, 1fr));
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c9aaa0 transparent;
    padding: 0 1px 18px;
}

.product-grid .product-card {
    scroll-snap-align: start;
}

.product-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(48, 35, 34, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(48, 35, 34, 0.1);
}

.product-image-wrap {
    position: relative;
    overflow: hidden;
    background: var(--sand);
}

.product-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-image-trigger:focus-visible {
    outline: 3px solid var(--rose-dark);
    outline-offset: -3px;
}

.product-image {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.product-card:hover .product-image {
    transform: scale(1.035);
}

.product-details-dialog {
    width: min(900px, calc(100% - 32px));
    max-width: none;
    max-height: calc(100% - 32px);
    padding: 0;
    overflow: auto;
    color: var(--ink);
    background: var(--cream);
    border: 0;
    box-shadow: 0 24px 80px rgba(24, 16, 15, 0.3);
}

.product-details-dialog::backdrop {
    background: rgba(25, 19, 18, 0.68);
}

.product-details-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 34px;
    padding: 34px;
}

.product-details-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    color: var(--ink);
    background: white;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.product-details-gallery {
    position: relative;
    overflow: hidden;
    background: var(--sand);
    touch-action: pan-y;
}

.product-details-gallery > img {
    display: block;
    width: 100%;
    max-height: min(70vh, 680px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.gallery-arrow {
    position: absolute;
    z-index: 1;
    top: 50%;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 253, 250, 0.92);
    border: 0;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transform: translateY(-50%);
}

.gallery-previous {
    left: 12px;
}

.gallery-next {
    right: 12px;
}

.product-image-dots {
    position: absolute;
    right: 0;
    bottom: 14px;
    left: 0;
    display: flex;
    justify-content: center;
    gap: 9px;
}

.product-image-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    background: rgba(255, 253, 250, 0.68);
    border: 1px solid white;
    border-radius: 50%;
    cursor: pointer;
}

.product-image-dot.active {
    background: white;
    transform: scale(1.2);
}

.product-details-info {
    padding-right: 10px;
}

.product-details-info h2 {
    margin: 8px 0 12px;
    font-family: var(--serif);
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 500;
    line-height: 1.2;
}

.product-details-price {
    margin-bottom: 12px;
    color: var(--rose-dark);
    font-size: 20px;
    font-weight: 700;
}

.gallery-hint {
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.product-details-actions {
    display: grid;
    gap: 10px;
}

.product-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 7px 10px;
    color: var(--rose-dark);
    background: rgba(255, 253, 250, 0.94);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 17px 18px 19px;
}

.product-category {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.product-info h3 {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    line-height: 1.35;
    min-height: 51px;
    margin-bottom: 8px;
}

.favorite-button {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: rgba(255, 253, 250, 0.94);
    border: 0;
    border-radius: 50%;
    font-size: 21px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(48, 35, 34, 0.09);
}

.favorite-button.active {
    color: var(--rose);
}

.product-actions {
    margin-top: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.add-cart-btn {
    width: 100%;
    min-height: 42px;
    color: white;
    background: var(--ink);
    border: 1px solid var(--ink);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.add-cart-btn:hover {
    background: var(--rose);
    border-color: var(--rose);
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 15px;
}

.order-btn {
    display: block;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 12px;
    color: var(--ink);
    background: transparent;
    border: 1px solid #d7c8bf;
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.order-btn:hover {
    color: white;
    background: var(--rose);
    border-color: var(--rose);
}

/* New launches carousel */
.new-arrivals {
    padding-top: 88px;
    padding-bottom: 85px;
    overflow: hidden;
    background: #fffdfa;
}

.launches-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.launches-heading .section-heading {
    margin-bottom: 32px;
}

.carousel-controls {
    display: flex;
    gap: 9px;
    padding-bottom: 32px;
}

.carousel-control {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-control:hover {
    color: white;
    background: var(--rose);
    border-color: var(--rose);
}

.launches-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #c9aaa0 transparent;
    padding: 0 1px 18px;
}

.launches-track::-webkit-scrollbar {
    height: 5px;
}

.launches-track::-webkit-scrollbar-track {
    background: #f3ece7;
}

.launches-track::-webkit-scrollbar-thumb {
    background: #c9aaa0;
    border-radius: 5px;
}

.launch-card {
    flex: 0 0 clamp(235px, 26vw, 290px);
    scroll-snap-align: start;
}

.launch-card .product-image {
    height: 330px;
}

.launches-footer {
    display: flex;
    justify-content: center;
    padding-top: 17px;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 149;
    background: rgba(48, 35, 34, 0.38);
    border: 0;
}

.cart-drawer {
    position: fixed;
    z-index: 150;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: #fffdfa;
    box-shadow: -18px 0 50px rgba(48, 35, 34, 0.16);
    transform: translateX(102%);
    transition: transform 0.28s ease;
}

.cart-drawer.open {
    transform: translateX(0);
}

body.cart-open {
    overflow: hidden;
}

.cart-drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 25px 24px 18px;
    border-bottom: 1px solid var(--line);
}

.cart-drawer-header h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
}

.cart-drawer-header .eyebrow {
    margin-bottom: 5px;
}

.drawer-close {
    width: 36px;
    height: 36px;
    color: var(--ink);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.cart-items {
    overflow-y: auto;
    padding: 8px 24px;
}

.cart-empty {
    padding: 50px 10px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.cart-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.cart-item img {
    width: 72px;
    height: 86px;
    object-fit: cover;
}

.cart-item-info h3 {
    margin: 0 0 5px;
    font-family: var(--serif);
    font-size: 15px;
    font-weight: 500;
}

.cart-item-price {
    color: var(--muted);
    font-size: 11px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.quantity-controls button {
    width: 25px;
    height: 25px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    cursor: pointer;
}

.quantity-controls span {
    min-width: 16px;
    text-align: center;
    font-size: 12px;
}

.remove-cart-item {
    align-self: start;
    padding: 4px;
    color: var(--muted);
    background: transparent;
    border: 0;
    font-size: 18px;
    cursor: pointer;
}

.cart-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid var(--line);
}

.cart-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
}

.cart-total strong {
    font-size: 17px;
}

.cart-whatsapp {
    min-height: 48px;
    display: grid;
    place-items: center;
    color: white;
    background: var(--rose);
    font-size: 12px;
    font-weight: 700;
}

.cart-whatsapp:hover {
    background: var(--rose-dark);
}

.text-link {
    color: var(--rose-dark);
    font-size: 12px;
    font-weight: 700;
}

.text-link span {
    padding-left: 5px;
}

/* About */
.about {
    max-width: 980px;
    margin: auto;
    text-align: center;
}

.about > p:last-child {
    max-width: 620px;
    margin: 15px auto 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.9;
}

/* Footer */
footer {
    padding: 58px 8% 22px;
    color: white;
    background: var(--ink);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 42px;
    margin-bottom: 43px;
}

.footer-content h2 {
    font-family: var(--serif);
    font-size: 27px;
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-content h3 {
    font-size: 12px;
    margin-bottom: 14px;
}

.footer-content p,
.footer-content a {
    display: block;
    color: #d3c5bf;
    font-size: 12px;
    line-height: 2;
}

.footer-content a:hover {
    color: white;
}

.copyright {
    padding-top: 19px;
    color: #bcaea8;
    border-top: 1px solid #51423f;
    text-align: center;
    font-size: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .header {
        padding-right: 3.5%;
        padding-left: 3.5%;
    }

    .header nav {
        gap: 17px;
    }

    .header nav a {
        font-size: 11px;
    }

    .section {
        padding: 72px 6%;
    }

    .category-card {
        height: 320px;
    }

    .product-image {
        height: 290px;
    }
}

@media (max-width: 700px) {
    html {
        scroll-padding-top: 72px;
    }

    .announcement {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

    .header {
        min-height: 68px;
        padding: 9px 3%;
    }

    .logo {
        gap: 7px;
        font-size: 22px;
    }

    .logo-mark {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .menu-toggle {
        display: block;
        order: 3;
    }

    .header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 9px 5% 14px;
        background: #fffdfa;
        border-top: 1px solid var(--line);
        box-shadow: 0 12px 18px rgba(48, 35, 34, 0.08);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .header nav.show {
        display: flex;
    }

    .header nav a {
        padding: 12px 0;
        border-bottom: 1px solid #f0e9e3;
        font-size: 13px;
    }

    .header-btn {
        display: none;
    }

    .header-actions {
        margin-left: auto;
    }

    .hero {
        min-height: 530px;
        padding: 55px 7%;
        background-position: 58% center;
    }

    .hero h1 {
        font-size: clamp(50px, 13vw, 68px);
    }

    .section {
        padding: 64px 6%;
    }

    .section-heading {
        margin-bottom: 30px;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }

    .category-card {
        height: 260px;
    }

    .category-card:last-child {
        grid-column: 1 / -1;
        height: 230px;
    }

    .category-card h3 {
        left: 17px;
        bottom: 17px;
        font-size: 23px;
    }

    .product-grid {
        gap: 13px;
    }

    .product-image {
        height: 230px;
    }

    .product-info {
        padding: 13px;
    }

    .product-info h3 {
        font-size: 16px;
        min-height: 43px;
    }

    .product-details-dialog {
        width: calc(100% - 24px);
        max-height: calc(100% - 24px);
    }

    .product-details-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 18px;
    }

    .product-details-gallery > img {
        max-height: 48vh;
    }

    .product-details-info {
        padding: 0 2px;
    }

    .gallery-hint {
        margin-bottom: 16px;
    }

    .product-badge {
        top: 9px;
        left: 9px;
        padding: 6px 8px;
        font-size: 8px;
    }

    .launches-heading {
        align-items: center;
    }

    .launches-heading .section-heading {
        margin-bottom: 26px;
    }

    .carousel-controls {
        padding-bottom: 25px;
    }

    .carousel-control {
        width: 36px;
        height: 36px;
    }

    .launch-card {
        flex-basis: min(76vw, 290px);
    }

    .launch-card .product-image {
        height: 300px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-content > div:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .category-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .category-card:last-child {
        grid-column: auto;
        height: 310px;
    }

    .product-image {
        height: 195px;
    }

    .product-info {
        padding: 11px;
    }

    .product-info h3 {
        font-size: 15px;
        min-height: 40px;
    }

    .order-btn {
        padding: 9px 6px;
        font-size: 10px;
    }

    .launches-heading {
        gap: 8px;
    }

    .launches-heading .section-heading h2 {
        font-size: 30px;
    }

    .carousel-controls {
        gap: 5px;
    }

    .carousel-control {
        width: 32px;
        height: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-content > div:first-child {
        grid-column: auto;
    }
}
