/* ========== GLOBAL: variables, reset, utilities ========== */
:root {
    --primary: #6e1631;
    --primary-dark: #4d0e22;
    --primary-soft: #f6e9ed;
    --secondary: #b8892d;
    --secondary-light: #e9d3a0;
    --bg: #fcf9f7;
    --surface: #ffffff;
    --text: #2a2024;
    --muted: #7a6d71;
    --border: #eadfe0;
    --font-head: 'Cormorant Garamond' , Georgia , serif;
    --font-body: 'Jost' , system-ui , sans-serif;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(110, 22, 49, .10);
    --header-h: 76px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html {
    scroll-behavior: smooth
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden
}

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

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

ul {
    list-style: none
}

button {
    font: inherit;
    cursor: pointer;
    border: 0;
    background: none;
    color: inherit
}

:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px
}

.container {
    width: min(1200px, 92%);
    margin-inline: auto }

.section {
    padding: 90px 0
}

.section-head {
    text-align: center;
    max-width: 620px;
    margin: 0 auto 48px
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--primary)
}

.section-head p {
    color: var(--muted);
    margin-top: 10px
}

.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: 0.3s
}

.btn-primary {
    background: var(--primary);
    color: #fff
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow)
}

.btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary)
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease , transform 0.8s ease
}

.reveal.in {
    opacity: 1;
    transform: none
}

.reveal.d1 {
    transition-delay: 0.12s
}

.reveal.d2 {
    transition-delay: 0.24s
}

.reveal.d3 {
    transition-delay: 0.36s
}

@media(max-width: 768px) {
    .section {
        padding: 64px 0
    }
}

@media(prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* ========== COMPONENT: announcement bar ========== */
.announce {
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    text-align: center;
    padding: 8px 12px
}

.announce span {
    color: var(--secondary-light)
}

@media(max-width: 480px) {
    .announce {
        font-size: 0.75rem
    }
}

/* ========== COMPONENT: header / navbar / mega menu ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s
}

.header.scrolled {
    box-shadow: var(--shadow)
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h)
}

.logo {
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1
}

.logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 400;
    letter-spacing: 0.35em;
    color: var(--secondary)
}

.menu {
    display: flex;
    gap: 6px;
    align-items: center;
    height: 100%
}

.menu > li {
    height: 100%;
    display: flex;
    align-items: center
}

.menu > li > a, .menu > li > button {
    padding: 10px 16px;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 30px;
    transition: 0.25s
}

.menu > li > a:hover, .menu > li > button:hover, .has-mega.open > button {
    color: var(--primary);
    background: var(--primary-soft)
}

.mega {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 24px 40px rgba(110, 22, 49, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: 0.3s
}

.has-mega.open .mega {
    opacity: 1;
    visibility: visible;
    transform: none
}

.mega-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr) 1.3fr;
    gap: 32px;
    padding: 36px 0
}

.mega h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--primary);
    margin-bottom: 10px
}

.mega li a {
    display: block;
    padding: 5px 0;
    color: var(--muted);
    transition: 0.2s
}

.mega li a:hover {
    color: var(--secondary);
    padding-left: 6px
}

.mega-promo {
    background: linear-gradient(135deg,var(--primary),var(--primary-dark));
    color: #fff;
    border-radius: var(--radius);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 190px
}

.mega-promo h5 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 600
}

.mega-promo a {
    color: var(--secondary-light);
    margin-top: 6px
}

.nav-actions {
    display: flex;
    gap: 6px;
    align-items: center
}

.icon-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    transition: 0.25s;
    position: relative
}

.icon-btn:hover {
    background: var(--primary-soft);
    color: var(--primary)
}

.icon-btn svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6
}

.badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.62rem;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center
}

.burger {
    display: none
}

@media(max-width: 991px) {
    .burger {
        display: grid
    }

    .menu {
        position: fixed;
        top: 0;
        right: 0;
        width: min(330px, 86vw);
        height: 100vh;
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 80px 20px 30px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: 0.35s;
        box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
        z-index: 200
    }

    .menu.open {
        transform: none
    }

    .menu > li {
        height: auto;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--border)
    }

    .menu > li > a, .menu > li > button {
        text-align: left;
        padding: 15px 6px;
        border-radius: 0;
        width: 100%
    }

    .mega {
        position: static;
        box-shadow: none;
        border: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s
    }

    .has-mega.open .mega {
        max-height: 900px
    }

    .mega-inner {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 6px 6px 18px
    }

    .mega-promo {
        min-height: 130px
    }

    .menu-close {
        position: absolute;
        top: 18px;
        right: 18px
    }

    .overlay {
        position: fixed;
        inset: 0;
        background: rgba(40, 10, 20, .45);
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: 150
    }

    .overlay.show {
        opacity: 1;
        visibility: visible
    }
}

@media(min-width: 992px) {
    .menu-close, .overlay {
        display: none
    }
}

@media(max-width: 480px) {
    .logo {
        font-size: 1.4rem
    }

    .icon-btn {
        width: 38px;
        height: 38px
    }
}


.action-location {
    display: flex;
    flex-direction: row;
    place-items: center;
    transition: 0.25s;
    position: relative;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 0px 5px;
    gap: 5px;
}
 

.action-location>div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.action-location>div>span:first-child {
    font-size: 12px;
}

.action-location>div>span:last-child {
    font-size: 12px;
    font-weight: bold;
}


/* HEADER SEARCH */
/* ============ SEARCH OVERLAY ============ */
.navbar-search {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s , visibility 0.3s;
}

.navbar-search.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navbar-search-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    cursor: pointer;
}

.navbar-search-container {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 80px 20px 0;
    z-index: 1;
    transform: translateY(-20px);
    transition: transform 0.35s ease;
}

.navbar-search.open .navbar-search-container {
    transform: translateY(0);
}

.navbar-search-input {
    display: flex;
    align-items: center;
    background: var(--white);
    border-radius: 100px;
    padding: 4px 4px 4px 20px;
    box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--line);
    background-color: #fff;
}

.navbar-search-input span {
    display: flex;
    align-items: center;
    color: var(--ink-soft);
    flex-shrink: 0;
}

.navbar-search-input span svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.navbar-search-input input {
    flex: 1;
    padding: 14px 16px;
    border: none;
    outline: none;
    font-size: 15px;
    font-family: 'Plus Jakarta Sans' , sans-serif;
    color: var(--ink);
    background: transparent;
    min-width: 0;
}

.navbar-search-input input::placeholder {
    color: var(--ink-soft);
}

.navbar-search-input button {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--rose-deep);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    padding: 0;
}

.navbar-search-input button:hover {
    background: #a06f79;
}

.navbar-search-input button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.navbar-search-results {
    margin-top: 16px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    min-height: 80px;
    text-align: center;
    color: var(--ink-soft);
    font-size: 14px;
}

.navbar-search-results {
    margin-top: 16px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    min-height: 80px;
    text-align: center;
    font-size: 0.85rem;
    max-height: 500px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.navbar-search-results>a {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.navbar-search-results {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: 75dvh;
    gap: 5px;
    background-color: #fff;
}

.navbar-search-results>a>div>img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.navbar-search-results>a>div:first-child {
    width: 50px;
    border-radius: 5px;
    border: 1px solid #ddd;
    flex-shrink: 0;
    display: flex;
    position: relative;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
}

.navbar-search-results>a>div:last-child {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.navbar-search-results>a>div:last-child>span {
    font-size: 10px;
}

.navbar-search-results>a>div:last-child>strong {
    font-size: 14px;
}

.navbar-search-results>a>div:last-child>p {
    margin: 0px;
    font-size: 12px;
}



/* ========== COMPONENT: category showcase ========== */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px
}

.cat-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: flex-end;
    padding: 0px;
    color: #fff;
    isolation: isolate
}

.cat-card > div {
    position: absolute;
    bottom: 0px;
    left: 0px;
    width: 100%;
    padding: 10px;
    background-image: linear-gradient(180deg, transparent, #f9c144ad, #f9c144bd);
    color: #6e1c34;
    align-items: center;
    text-align: center;
}

.cat-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cat-card:hover::before {
    transform: scale(1.1)
}

.cat-card svg {
    position: absolute;
    top: 18%;
    left: 50%;
    width: 46%;
    transform: translateX(-50%);
    fill: rgba(255, 255, 255, .85);
    z-index: -1
}

.cat-card h3 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: bold;
}

.cat-card span {
    font-size: 0.85rem;
    opacity: .85
}

@media(max-width: 991px) {
    .cat-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width: 480px) {
    .cat-grid {
        gap: 12px
    }

  
    .cat-card h3 {
        font-size: 1.2rem
    }
}

/* ========== COMPONENT: featured products ========== */
.tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px
}

.tab {
    padding: 9px 22px;
    border-radius: 30px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition: 0.25s;
    font-size: 0.92rem
}

.tab:hover {
    border-color: var(--secondary)
}

.tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary)
}

.prod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px
}

.prod {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: 0.35s
}

.prod:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow)
}

.prod.hide {
    display: none
}

.prod-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--g);
    display: grid;
    place-items: center
}

.prod-img svg {
    width: 44%;
    fill: var(--secondary);
    transition: transform 0.5s
}

.prod:hover .prod-img svg {
    transform: scale(1.15) rotate(6deg)
}

.tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--secondary);
    color: #fff;
    font-size: 0.72rem;
    padding: 3px 11px;
    border-radius: 20px
}

.wish {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    transition: 0.25s
}

.wish svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.8
}

.wish.on svg {
    fill: var(--primary)
}

.prod-info {
    padding: 16px 18px 20px
}

.prod-info small {
    color: var(--muted)
}

.prod-info h3 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin: 2px 0 6px
}

.price {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.price b {
    color: var(--primary);
    font-size: 1.05rem
}

.price button {
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500
}

.price button:hover {
    color: var(--primary)
}

@media(max-width: 1000px) {
    .prod-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media(max-width: 700px) {
    .prod-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px
    }

    .prod-info {
        padding: 12px
    }

    .prod-info h3 {
        font-size: 1.05rem
    }
}

/* ========== COMPONENT: offer banner ========== */
.offer {
    background: linear-gradient(120deg,var(--primary-dark),var(--primary));
    color: #fff;
    border-radius: 24px;
    padding: 60px 50px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: center;
    position: relative;
    overflow: hidden
}

.offer::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -80px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px solid rgba(233, 211, 160, .35)
}

.offer h2 {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.1
}

.offer p {
    color: var(--secondary-light);
    margin: 12px 0 24px
}

.offer .btn {
    background: var(--secondary);
    color: #fff
}

.countdown {
    display: flex;
    gap: 14px;
    justify-content: center;
    position: relative;
    z-index: 1
}

.countdown div {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(233, 211, 160, .4);
    border-radius: 12px;
    padding: 14px 8px;
    min-width: 70px;
    text-align: center
}

.countdown b {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    line-height: 1
}

.countdown span {
    font-size: 0.75rem;
    color: var(--secondary-light)
}

@media(max-width: 800px) {
    .offer {
        grid-template-columns: 1fr;
        padding: 44px 26px;
        text-align: center
    }

    .countdown div {
        min-width: 62px
    }
}

/* ========== COMPONENT: why choose us ========== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px
}

.why {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: 0.3s
}

.why:hover {
    border-color: var(--secondary)
}

.why-ico {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--primary-soft);
    display: grid;
    place-items: center
}

.why-ico svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.6
}

.why h3 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    color: var(--primary)
}

.why p {
    color: var(--muted);
    font-size: 0.92rem;
    margin-top: 6px
}

@media(max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width: 480px) {
    .why-grid {
        grid-template-columns: 1fr
    }
}

/* ========== COMPONENT: testimonials ========== */
.testi {
    background: var(--primary-soft)
}

.slider {
    max-width: 760px;
    margin-inline: auto; overflow: hidden
}

.track {
    display: flex;
    transition: transform 0.6s ease
}

.slide {
    min-width: 100%;
    text-align: center;
    padding: 0 10px
}

.slide blockquote {
    font-family: var(--font-head);
    font-size: clamp(1.3rem, 2.6vw, 1.8rem);
    line-height: 1.4;
    color: var(--text)
}

.slide cite {
    display: block;
    margin-top: 18px;
    font-style: normal;
    color: var(--secondary);
    font-weight: 500
}

.stars {
    color: var(--secondary);
    letter-spacing: 4px;
    margin-bottom: 14px
}

.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--secondary-light);
    transition: 0.3s
}

.dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 10px
}

/* ========== COMPONENT: newsletter ========== */
.news {
    text-align: center
}

.news form {
    display: flex;
    gap: 10px;
    max-width: 520px;
    margin: 26px auto 0;
    background: var(--surface);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--border)
}

.news input {
    flex: 1;
    border: 0;
    outline: 0;
    background: none;
    padding: 0 18px;
    font: inherit;
    min-width: 0
}

.news .msg {
    margin-top: 12px;
    font-size: 0.9rem;
    min-height: 1.4em;
    color: var(--primary)
}

@media(max-width: 480px) {
    .news form {
        flex-direction: column;
        border-radius: 20px;
        padding: 10px
    }

    .news input {
        padding: 10px
    }
}

/* ========== COMPONENT: footer ========== */
.footer {
    background: var(--primary-dark);
    color: #e9dde0;
    padding: 70px 0 0
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px
}

.footer .logo {
    color: #fff;
    margin-bottom: 14px
}

.footer h4 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    color: var(--secondary-light);
    margin-bottom: 14px
}

.footer li {
    margin-bottom: 8px;
    font-size: 0.93rem
}

.footer a:hover {
    color: var(--secondary-light)
}

.footer p {
    font-size: 0.93rem;
    opacity: .85
}

.foot-bottom {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.85rem;
    opacity: .8
}

.to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: grid;
    place-items: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 90
}

.to-top.show {
    opacity: 1;
    visibility: visible
}

@media(max-width: 900px) {
    .foot-grid {
        grid-template-columns: 1fr 1fr
    }
}

@media(max-width: 520px) {
    .foot-grid {
        grid-template-columns: 1fr
    }

    .foot-bottom {
        flex-direction: column;
        text-align: center
    }
}
