:root {
    --gold: #c9a15a;
    --gold-dark: #a9803c;
    --dark: #1a1a1a;
    --dark-soft: #2a2a2a;
    --store-header-height: 160px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #222;
    background: #fdfcfb;
}

h1, h2, h3, .brand {
    font-family: 'Playfair Display', serif;
}

.topbar {
    background: var(--dark);
    color: var(--gold);
    font-size: 0.8rem;
    padding: 4px 10px;
}

.main-header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.header-main-container {
    position: relative;
    min-height: 100px;
    padding-right: clamp(20px, 3vw, 56px);
    padding-left: clamp(20px, 3vw, 56px);
}

.header-start {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 1;
}

.header-search {
    position: relative;
    flex: 0 0 40px;
}

.search-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--dark);
    cursor: pointer;
    list-style: none;
}

.search-icon-button::-webkit-details-marker {
    display: none;
}

.search-icon-button svg,
.search-submit svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.7;
}

.search-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 1050;
    display: flex;
    gap: 6px;
    width: min(360px, calc(100vw - 32px));
    padding: 10px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.search-popover .form-control {
    min-width: 0;
}

.search-submit {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 0;
    border-radius: 4px;
    background: var(--gold);
    color: #fff;
}

.brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.brand-logo {
    display: block;
    width: 320px;
    max-width: 35vw;
    max-height: 96px;
    object-fit: contain;
}

.offcanvas-brand {
    display: block;
    width: 220px;
    max-width: 100%;
    max-height: 56px;
    object-fit: contain;
}

.search-form {
    display: flex;
    gap: 6px;
    flex: 1;
    min-width: 0;
    max-width: min(30vw, 400px);
    margin: 0;
}

.cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
    z-index: 1;
}

.cart-icon-wrap {
    position: relative;
    display: inline-flex;
    width: 28px;
    height: 28px;
}

.cart-icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 10px;
    background: var(--gold);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1;
}

.main-nav {
    background: var(--dark);
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    padding: 6px 4px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.main-nav a:hover {
    color: var(--gold);
}

.btn-gold {
    background: var(--gold);
    border-color: var(--gold);
    color: #fff;
    font-weight: 600;
}

.btn-gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    color: #fff;
}

.hero {
    background: linear-gradient(135deg, var(--dark), var(--dark-soft));
    color: #fff;
}

.home-hero {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--store-header-height));
    min-height: calc(100svh - var(--store-header-height));
}

.hero h1 {
    color: var(--gold);
    letter-spacing: 2px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: calc(100vh - var(--store-header-height));
    height: calc(100svh - var(--store-header-height));
    overflow: hidden;
    background: var(--dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img,
.hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-caption {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background: rgba(0,0,0,0.35);
    padding: 20px;
}

.section-title {
    border-left: 4px solid var(--gold);
    padding-left: 12px;
    margin-bottom: 30px;
}

.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s;
    height: 100%;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-img, .no-image {
    aspect-ratio: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.gender-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--dark);
    color: var(--gold);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}

.gender-badge-detail {
    position: static;
    display: inline-block;
    margin-bottom: 8px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card h3 {
    font-size: 1rem;
    margin: 10px 12px 2px;
}

.product-card .brand {
    font-size: 0.8rem;
    color: #888;
    margin: 0 12px 12px;
}

.product-card .card-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold-dark);
    margin: 0 12px 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--dark);
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    padding: 20px;
    text-align: center;
    font-weight: 600;
}

.category-card img {
    max-height: 120px;
    margin-bottom: 10px;
}

.product-detail-img {
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.product-detail-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold-dark);
}

.main-footer {
    background: var(--dark);
    color: #fff;
}

.main-footer h5, .main-footer h6 {
    color: var(--gold);
}

.footer-text,
.footer-text li {
    color: #fff;
    opacity: 0.85;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    z-index: 999;
}

.cart-table th, .cart-table td {
    vertical-align: middle;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--dark);
}

.side-menu {
    display: flex;
    flex-direction: column;
}

.side-menu a {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
}

.side-menu a:hover {
    color: var(--gold-dark);
}

#siteMenu {
    width: 280px;
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}

#siteMenu.show {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    #siteMenu {
        transition: none;
    }
}

@media (max-width: 575.98px) {
    :root {
        --store-header-height: 128px;
    }

    .header-main-container {
        min-height: 68px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .header-start {
        gap: 8px !important;
    }

    .header-search,
    .search-icon-button {
        width: 36px;
        flex-basis: 36px;
    }

    .search-popover {
        width: min(360px, calc(100vw - 32px));
    }

    .brand-logo {
        width: 220px;
        max-width: calc(100vw - 188px);
        max-height: 64px;
    }

    .cart-label {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-slide--wide img {
        object-fit: contain;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    :root {
        --store-header-height: 140px;
    }

    .header-main-container {
        min-height: 80px;
    }

    .brand-logo {
        max-width: 34vw;
        max-height: 72px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .brand-logo {
        max-width: 30vw;
    }

    .search-form {
        max-width: 23vw;
    }
}
