@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
}

body {
    background: #fdfaf6;
    color: #1a1a1a;
}
html {
    scroll-behavior: smooth;
}

.category-title {
    scroll-margin-top: 90px; /* adjust to match your header height */
}
:root {
    --primary:      #7b3f00;
    --primary-dark: #5a2e00;
    --accent:       #d4af37;
    --bg:           #fdfaf6;
    --text:         #1a1a1a;
    --muted:        #777;
    --white:        #ffffff;
    --cream:        #f5ece0;
}

/* ── Utilities ── */
.container {
    width: 95%;
    max-width: 1200px;
    margin: auto;
}

.btn {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-block;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ── Header ── */
.header {
    background: rgba(255, 255, 255, 0.9); /* 🔥 premium glass */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ecddd0;
    position: sticky;
    top: 0;
    z-index: 200;
}

/* 🔥 FIXED NAV LAYOUT */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    gap: 20px;
    min-height: 90px;
    height: 100px; /* 🔥 lock navbar height */
}

/* 🔥 LOGO FIX */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    position: relative;
    margin-left: -45px;
}

.logo span {
    color: #1a1a1a;
}

.logo img {
    height: 100px; /* 🔥 bigger logo */
    width: auto;
    object-fit: contain;

    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* 🔥 centers logo inside fixed navbar */
}
/* 🔥 CENTER NAV PROPERLY */
.desktop-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

/* CLEAN NAV LINKS */
.nav-links {
    list-style: none;
    display: flex;
    gap: 26px;
    padding: 0;
    margin: 0;
    align-items: center;
}

.nav-links a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

/* 🔥 BETTER ICON SPACING */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-icons i {
    font-size: 20px;
    margin-left: 4px;
    cursor: pointer;
    color: var(--primary);
    transition: color 0.2s;
}

.nav-icons i:hover {
    color: var(--accent);
}

/* ── Login Button ── */
.login-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: var(--primary);
    color: #fff;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}
.login-btn i {
    color: inherit;
}

.login-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .login-btn { padding: 6px 14px; font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .login-btn { padding: 5px 10px; font-size: 0.7rem; }
}

/* ── Mobile Nav Toggle ── */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: inline-block; }
    @media (max-width: 768px) {
    .logo img {
        height: 42px;
    }
}

    /* 🔥 MOBILE LOGO FIX */
    .logo img {
        height: 100px;
    }
}

/* ── Mobile Nav ── */
.mobile-nav {
    display: none;
    position: fixed;
    top: 99px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-top: 1px solid #ecddd0;
    padding: 0 5%;
    overflow: hidden;
    transition: max-height 0.3s ease;
    max-height: 0;
    box-shadow: 0 4px 12px rgba(123,63,0,0.06);
    z-index: 999;
}
.mobile-nav.show {
    display: block;
    max-height: 500px;
}

/* ONLY apply padding to main menu */
.mobile-nav > ul {
    list-style: none;
    padding: 16px 0;
    margin: 0;
}

.mobile-nav li {
    margin-bottom: 6px;
}

.mobile-nav a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;                      /* ← add this */
    justify-content: flex-start;
    padding: 6px 0;
    border-radius: 8px;
    transition: background 0.18s, color 0.2s, transform 0.18s;
}

.mobile-nav .bi-chevron-down {
    margin-left: auto;
}

.mobile-nav a:hover {
    color: var(--accent);
    background: rgba(160, 82, 45, 0.07);  /* soft warm tint */
    transform: translateX(4px);  
}

/* ── Mobile Dropdown ── */
.mobile-categories .mobile-dropdown {
    display: none;
    list-style: none;
    padding: 0 !important;
    margin: 2px 0 0 0;
}

.mobile-categories.show .mobile-dropdown {
    display: block;
}

.mobile-dropdown li {
    margin: 0;
}

.mobile-dropdown li a {
    display: block !important;
    padding: 3px 0 !important;
    margin: 0 !important;
    line-height: 1.2 !important;
    height: auto !important;
    color: var(--accent);
    font-weight: 400;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
}

/* ── Hero ── */
.hero {
    background:
        linear-gradient(rgba(0,0,0,0.52), rgba(0,0,0,0.52)),
        url("a.jpg") center/cover no-repeat;
    color: #fff;
    padding: 100px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("a.jpg") center/cover no-repeat;
    animation: kenburns 10s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.52);
    z-index: 1;
}

@keyframes kenburns {
    from { transform: scale(1) translate(0, 0); }
    to   { transform: scale(1.08) translate(-1%, -1%); }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    font-weight: 500;
    letter-spacing: 2px;
    margin-bottom: 8px;
    animation: fadeup 0.9s ease both;
}

.hero p {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    max-width: 420px;
    color: #e8d0b0;
    animation: fadeup 0.9s 0.2s ease both;
}

.hero .btn {
    padding: 14px 40px;
    font-size: 0.78rem;
    font-weight: 400;
    border-radius: 4px;
    letter-spacing: 3px;
    background: transparent;
    border: 1px solid #f5ece0;
    color: #f5ece0;
    transition: all 0.3s ease;
    animation: fadeup 0.9s 0.4s ease both;
}

.hero .btn:hover {
    background: #f5ece0;
    color: var(--primary);
    transform: translateY(-2px);
}

@keyframes fadeup {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ── Products Section ── */
.products {
    padding: 20px 0 60px;
}

.category-title {
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    font-size: 1.7rem;
    font-weight: 500;
    margin: 50px 0 28px;
    color: var(--primary);
    letter-spacing: 2px;
}

.category-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 1px;
    background: var(--accent);
    margin: 8px auto 0;
}

/* ── Product Grid ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 92%;
    max-width: 1200px;
    margin: 0 auto 40px;
}

/* ── Product Card ── */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #ecddd0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    box-shadow: 0 2px 12px rgba(123,63,0,0.06);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(123,63,0,0.13);
}

.product-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center;
    margin-bottom: 0;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.04);
}

/* ── Card Body ── */
.product-card-body {
    padding: 14px 14px 0 14px;
    display: flex;
    flex-direction: column;
}

.product-card h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-desc {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 8px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 2px;
}

.original-price {
    text-decoration: line-through;
    color: #bbb;
    font-weight: 400;
    font-size: 0.78rem;
    margin-left: 6px;
}

/* ── Add to Cart Button ── */
.product-card .btn {
    margin-top: 10px;
    padding: 14px 16px;
    font-size: 0.72rem;
    width: calc(100% + 28px);
    letter-spacing: 2px;
    border-radius: 0 0 12px 12px;
    margin-bottom: 0;
    margin-left: -14px;
    margin-right: -14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 -2px 8px rgba(123,63,0,0.1);
    transition: all 0.3s ease;
}

.product-card .btn:hover {
    background: linear-gradient(135deg, var(--primary-dark), #3d1f00);
    letter-spacing: 3px;
    box-shadow: 0 -2px 12px rgba(123,63,0,0.25);
}

/* ── Discount Badge ── */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #f5ece0;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 1px;
    box-shadow: 0 2px 8px rgba(123,63,0,0.2);
}

/* ── Categories Dropdown ── */
.categories-menu {
    position: relative;
}

.categories-menu .dropdown {
    display: none;
    position: absolute;
    background: var(--white);
    top: 30px;
    left: 0;
    min-width: 180px;
    border: 1px solid #ecddd0;
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(123,63,0,0.08);
}

.categories-menu .dropdown li {
    padding: 8px 16px;
}

.categories-menu .dropdown li a {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.82rem;
    display: block;
    text-transform: none;
    transition: color 0.2s;
}

.categories-menu .dropdown li a:hover {
    color: var(--accent);
}

/* ── Responsive Products ── */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        width: 96%;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
        width: 96%;
    }
    .product-card img { height: 200px; }
    .product-card .btn {
        font-size: 0.68rem;
        letter-spacing: 1.5px;
        padding: 14px;
        width: calc(100% + 28px);
        margin-bottom: 0;
        margin-left: -14px;
        margin-right: -14px;
        border-radius: 0 0 12px 12px;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 98%;
    }
    .product-card img { height: 180px; }
    .product-card .btn {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        padding: 14px 6px;
        width: calc(100% + 28px);
        margin-bottom: 0;
        margin-left: -14px;
        margin-right: -14px;
        border-radius: 0 0 12px 12px;
    }
    .price { font-size: 0.8rem; }
    .original-price { font-size: 0.7rem; }
}
/* ── Cart Count ── */
/* ── Cart Count ── */
.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #c0392b;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    position: relative;
    top: -9px;
    left: -10px;
}

/* ── Cart Overlay ── */
.cart-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    backdrop-filter: blur(3px);
    background: rgba(0,0,0,0.3);
    overflow-x: hidden;
    transition: width 0.3s ease;
    z-index: 2000;
}
.cart-overlay.show { width: 100%; }
.cart-overlay.show .cart-panel { transform: translateX(0); }

/* ── Cart Panel ── */
.cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--white);
    width: 400px;
    max-width: 100vw;
    height: 100%;
    padding: 0;
    box-shadow: -4px 0 32px rgba(123,63,0,0.15);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
}

/* ── Cart Header ── */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 24px 18px;
    border-bottom: 1px solid #f0e0d0;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}
.cart-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cart-header-left i {
    font-size: 1.2rem;
    color: var(--primary);
}
.cart-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: 1px;
    margin: 0;
}
.cart-item-badge {
    background: #f5ece0;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}
.cart-close-btn {
    background: #f5ece0;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--primary);
    font-size: 0.85rem;
    transition: background 0.2s, transform 0.2s;
}
.cart-close-btn:hover {
    background: #ecddd0;
    transform: rotate(90deg);
}

/* ── Cart Items ── */
.cart-items {
    flex: 1;
    padding: 12px 20px;
    overflow-y: auto;
}
.cart-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f5ece4;
    gap: 12px;
    transition: background 0.15s;
}
.cart-item:last-child { border-bottom: none; }

/* product thumbnail */
.cart-item-img {
    width: 62px;
    height: 62px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #f0e0d0;
}

/* text block */
.cart-item-info {
    flex: 1;
    min-width: 0;
}
.cart-item-name {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-desc {
    font-size: 0.72rem;
    color: #a0856e;
    margin: 0 0 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

/* qty controls */
.qty-controls {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #f5ece0;
    border-radius: 20px;
    padding: 3px 6px;
    flex-shrink: 0;
}
.qty-controls button {
    width: 26px;
    height: 26px;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    border: none;
    border-radius: 50%;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    font-weight: 600;
}
.qty-controls button:hover { background: #ecddd0; }
.qty-controls span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    min-width: 18px;
    text-align: center;
}

/* remove button */
.cart-item-remove {
    background: none;
    border: none;
    color: #cbb5a5;
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.cart-item-remove:hover {
    color: #c0392b;
    background: #fdecea;
}

/* ── Cart Empty State ── */
.cart-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    color: var(--muted);
    gap: 14px;
}
.cart-empty i {
    font-size: 3.5rem;
    opacity: 0.2;
    color: var(--primary);
}
.cart-empty p {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #c4a98a;
}
.cart-empty small {
    font-size: 0.75rem;
    color: #d4bfaf;
    letter-spacing: 0.5px;
}

/* ── Cart Footer ── */
.cart-footer {
    padding: 18px 24px 24px;
    border-top: 1px solid #f0e0d0;
    background: var(--white);
    position: sticky;
    bottom: 0;
}
.cart-subtotal-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #b09080;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-top: 10px;
    border-top: 1px dashed #f0e0d0;
}
.cart-total-row span:first-child {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
}
.cart-total-amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    font-family: 'Cormorant Garamond', serif;
}
.checkout-btn {
    width: 100%;
    padding: 14px;
    font-size: 0.78rem;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 6px;
}
.checkout-btn i { font-size: 1rem; transition: transform 0.2s; }
.checkout-btn:hover i { transform: translateX(4px); }

/* ── Toast ── */
.toast-msg {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 6px 14px;
    border-radius: 5px;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}
.toast-msg.show { opacity: 1; }

/* ── About ── */
#about {
    padding: 80px 0;
    background: var(--primary-dark);
}

#about .container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

#about h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: #f5ece0;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

#about p {
    font-size: 0.88rem;
    font-weight: 300;
    line-height: 1.9;
    color: #c9a87a;
    margin: 8px auto;
}

/* ── Contact ── */
#contact {
    padding: 80px 0;
    background: var(--cream);
}

#contact .container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

#contact h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--primary-dark);
    letter-spacing: 2px;
    margin-bottom: 16px;
}

#contact p {
    font-size: 0.85rem;
    line-height: 2;
    color: var(--primary);
    margin: 8px auto;
}

#contact .socials {
    margin-top: 20px;
}

#contact .socials a {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

#contact .socials a:hover {
    color: var(--accent);
    transform: translateY(-4px);
}

/* ── Footer ── */
.footer {
    background: #1e1008;
    color: #8b6040;
    padding: 28px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.footer p {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #8b6040;
}

.socials i {
    font-size: 18px;
    margin-left: 14px;
    cursor: pointer;
    color: #8b6040;
    transition: color 0.2s ease, transform 0.2s ease;
}

.socials i:hover {
    color: var(--accent);
    transform: scale(1.2);
}

/* ── Responsive Footer ── */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .socials i {
        margin: 0 8px;
    }

    #about h2,
    #contact h2 { font-size: 1.6rem; }

    #about p,
    #contact p { font-size: 0.83rem; }

    #contact .socials a { font-size: 1.1rem; margin: 0 8px; }

    .hero h2 { font-size: 2rem; }
}