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

:root {
    --black: #0A0A0A;
    --dark: hsl(0, 0%, 36%);
    --light-grey: #F4F4F4;
    --white: #FFFFFF;
    --charcoal: #1A1A1A;
    --navy: #1A1F2E;
    --mid: #2A2A2A;
    --gold-light: #ffc107;
    --gold: #C9A46F;
    --gold-pale: #E8D5B7;
    --cream: #F8F4ED;
    --off-white: #EDE8E0;
    --muted: #9A9489;
    --border: rgba(201, 164, 111, 0.15);
    --border-light: rgba(201, 164, 111, 0.3);
    --grad: linear-gradient(135deg, #FFC107 5%, #FFE68A 50%, #E89B00 95%);
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--light-grey);
    color: var(--black);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 18px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: var(--white);
    transition: all 0.5s ease;
}

header.scrolled {
    background: var(--white);
    backdrop-filter: blur(1.25rem);
    padding: 18px 60px;
    border-bottom: 1px solid var(--border);
}

header.scrolled .logo {
    color: var(--black) !important;
}

.logo {
    font-family: 'Nunito Sans', serif;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: var(--black);
    text-decoration: none;
    text-transform: uppercase;
}

.logo span {
    color: var(--gold-light);
}

/* Desktop Navigation */
nav {
    display: flex;
    gap: 2.75rem;
    align-items: center;
}

nav a {
    color: var(--black) !important;
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--black) !important;
    background: var(--grad);
    border-radius: 20px;
    padding: 5px 20px;
}

/* Nav CTA Button */
.nav-cta {
    color: var(--black) !important;
    padding: 5px 20px;
    border: 1px solid var(--gold-light);
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-cta:hover {
    background: var(--grad) !important;
    color: var(--black) !important;
    border-color: var(--gold);
}

/* Scrolled State */
header.scrolled .logo {
    color: var(--black) !important;
}

header.scrolled .logo span {
    color: var(--gold-light) !important;
}

header.scrolled nav a {
    color: #444444 !important;
}

header.scrolled nav a:hover {
    color: var(--gold) !important;
}

header.scrolled .nav-cta {
    color: var(--black) !important;
}

/* ─── LUXURY MOBILE NAV ─── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 200;
}

@media (max-width: 768px) {
    .nav-toggle { display: flex !important; }
    nav { display: none !important; }
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 2.5px;
    background: var(--white);
    transition: all 0.4s ease;
}

header.scrolled .nav-toggle span {
    background: var(--black);
}

/* Luxury Mobile Drawer */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    max-width: 88vw;
    background: rgba(15, 15, 15, 0.96);     /* Deep elegant black with slight transparency */
    backdrop-filter: blur(20px);
    z-index: 150;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 120px 40px 60px;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 1px solid rgba(212, 168, 67, 0.2);
}

.mobile-nav.open {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 400;
    padding: 18px 0;
    border-bottom: 1px solid rgba(212, 168, 67, 0.15);
    transition: all 0.4s ease;
    letter-spacing: 0.04em;
}

.mobile-nav a:hover {
    color: var(--gold-light);
    padding-left: 12px;
    border-bottom-color: var(--gold);
}

.mobile-nav a::after {
    content: '→';
    float: right;
    opacity: 0;
    transition: all 0.4s ease;
    color: var(--gold-light);
}

.mobile-nav a:hover::after {
    opacity: 1;
}

/* Overlay */
.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(8px);
    z-index: 140;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.mobile-close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.mobile-close-btn:hover {
    color: var(--gold-light);
    opacity: 1;
    transform: rotate(90deg);
}

/* PAGE HERO */
.page-hero {
    padding: 180px 60px 180px;
    position: relative;
    overflow: hidden;
    background: var(--light-grey);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.page-hero-bg {
    position: absolute;
    overflow: hidden;
    inset: 0;
    filter: brightness(0.65);
    background-image: url('/images/collection.png');
    background-size: cover;
    background-position: center 35%;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.page-hero-bg.loaded {
    transform: scale(1);
}

.page-hero-text h1 {
    font-family: 'Nunito Sans', serif;
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    font-weight: 600;
    line-height: 1.1;
    position: relative;
    text-align: left;
    margin-top: 120px;
    text-transform: uppercase;
    color: var(--white);
    z-index: 2;
}

.page-hero-text h1 em {
    font-style: italic;
    color: var(--white);
}

/* FILTERS BAR */
.filters-bar {
    padding: 20px 20px;
    background: var(--light-grey);
    border-bottom: 1px solid var(--grad);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    position: relative;
}

.desktop-filters {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* Mobile Dropdown */
.mobile-filters {
    display: none;
    position: relative;
}

.dropdown-btn {
    display: flex;
    font-size: 1rem;
    padding: 9px 22px;
    align-items: center;
    gap: 8px;
    background: var(--grad);
    border: var(--grad);
    border-radius: 25px;
}

.dropdown-btn:hover {
    background: var(--gold-light);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    align-content: left;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 100;
    min-width: 180px;
    margin-top: 8px;
}

.dropdown-menu.show {
    display: flex;
    flex-direction: column;
    align-items: left;
}

.dropdown-menu .filter-btn {
    text-align: left;
    padding: 12px 20px;
    border: none;
    border-radius: 0;
    width: 100%;
}

/* Filter Button Styles */
.filter-btn {
    padding: 9px 22px;
    border: 1px solid var(--grad);
    background: transparent;
    color: var(--black);
    font-size: 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--gold-light);
    color: var(--black);
    background: var(--gold-light);
}

.filter-btn.active {
    background: var(--grad);
    color: var(--black);
    border-color: var(--grad);
    font-weight: 700;
}

.mobile-filter-btn {
    padding: 9px 22px;
    border: 1px solid var(--grad);
    background: transparent;
    color: var(--black);
    font-size: 0.85rem;
    border-radius: 50px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.mobile-filter-btn:hover {
    border-color: var(--gold-light);
    color: var(--black);
    background: var(--gold-light);
}

.mobile-filter-btn.active {
    background: var(--grad);
    color: var(--black);
    border-color: var(--grad);
    font-weight: 700;
}

.filter-count {
    margin-left: auto;
    font-size: clamp(0.6rem, 5vw, 1.3rem);
    color: var(--black);
    font-weight: 200;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ─── MOBILE RESPONSIVE ─── */
@media (max-width: 768px) {
    .desktop-filters {
        display: none;
    }
    
    .mobile-filters {
        display: block;
    }

    .filters-bar {
        padding: 24px 20px;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .filters-bar {
        padding: 20px 16px;
    }
}

/* ─── PROFESSIONAL SEARCH BAR ─── */
.search-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 30px;
    text-align: center;
}

.search-wrapper {
    position: relative;
    max-width: 850px !important;
    width: 100% !important;
    margin: 0 auto;
}

#searchInput {
    width: 100%;
    padding: 20px 28px 20px 62px;
    font-size: 1.05rem;
    font-family: 'Nunito Sans', system-ui, sans-serif;
    background: white;
    border: 1px solid var(--grad);
    border-radius: 50px;
    color: black;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

#searchInput:focus {
    outline: none;
    border-color: var(--grad);
    background: white;
    box-shadow: 0 8px 35px rgba(212, 168, 67, 0.18);
    transform: translateY(-2px);
}

.search-wrapper::before {
    content: '✦';
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.35rem;
    color: var(--gold-light);
    opacity: 0.85;
    pointer-events: none;
}

.search-clear {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.4rem;
    color: black;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}

.search-clear.visible {
    opacity: 0.8;
}

.search-clear:hover {
    color: var(--gold-light);
    transform: translateY(-50%) scale(1.1);
}

.search-count {
    margin-top: 14px;
    font-size: 1.2rem;
    letter-spacing: 0.5px;
    color: var(--black);
    text-transform: uppercase;
    font-weight: 400;
}

/* PRODUCTS GRID */
.products-section {
    padding: 25px 60px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* PRODUCT CARD */
.product-card {
    background: var(--light-grey);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gold);
    border-radius: 15px;
}

.product-card:hover {
    background: var(--cream);
}

.product-card-img-wrap {
    position: relative;
    height: 60px;
    overflow: hidden;
    background: var(--light-grey);
}

.product-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.8);
}

.product-card:hover .product-card-img {
    transform: scale(1.06);
    filter: brightness(0.65);
}

.product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: var(--grad);
    border-radius: 12px;
    color: var(--black);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 12px;
    font-weight: 500;
}

.product-card-body {
    padding: 6px 12px 12px 12px;
}

.product-category {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-family: 'Nunito Sans', serif;
    min-height: 3em; /* Ensure enough space for two lines */
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--black);
    margin-bottom: 6px;
    line-height: 1.3;
    animation: none;
    -webkit-animation: none;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--black);
    margin-bottom: 14px;
    letter-spacing: 0.05em;
}

.product-notes {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    align-items: center;
}

.note-tag {
    font-size: 0.7rem;
    font-weight: 1000;
    letter-spacing: 0.1em;
    color: var(--white);
    background: var(--navy);
    border-radius: 8px;
    padding: 2px 6px;
}

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

.product-price {
    font-family: 'Nunito Sans', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--black);
    letter-spacing: 0.02em;
}

.add-btn {
    background: var(--grad);
    border: 1px solid var(--gold-light);
    border-radius: 50px;
    color: var(--black);
    padding: 5px 15px;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
}

.add-btn:hover {
    background: var(--grad);
    color: var(--black);
    border-color: var(--gold-light);
}

/* PRODUCT DETAIL MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--light-grey);
    border: 1px solid var(--border);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: translateY(30px) scale(0.97);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-img {
    height: 100%;
    min-height: 500px;
}

.modal-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.modal-body {
    padding: 10px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.modal-close {
    align-self: flex-end;
    background: none;
    border: none;
    color: var(--black);
    font-size: 1.4rem;
    margin-bottom: 24px;
    transition: color 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    color: var(--gold-light);
}

.modal-category {
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--grad);
    border-radius: 25px;
    margin-bottom: 12px;
    padding: 5px 12px 5px 12px;
    display: block;
}

.modal-name {
    font-family: 'Nunito Sans', serif;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 6px;
}

.modal-brand {
    color: var(--black);
    font-size: 1rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.modal-desc {
    font-family: 'Nunito Sans', serif;
    font-size: 1.05rem;
    color: var(--black);
    line-height: 1.8;
    margin-bottom: 24px;
}

.modal-notes-title {
    font-size: 1rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 12px;
}

.modal-notes {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.modal-note-tag {
    font-size: 0.85rem;
    font-weight: 1000;
    letter-spacing: 0.1em;
    border: 1px solid var(--border-light);
    border-radius: 15px;
    background: var(--gold-light);
    color: var(--black);
    padding: 5px 12px;
}

.modal-concentration {
    font-size: 0.72rem;
    color: var(--black);
    margin-bottom: 28px;
    letter-spacing: 0.05em;
}

.modal-concentration strong {
    color: var(--gold-light);
    font-weight: 700;
}

.size-label {
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--black);
    margin-bottom: 12px;
    display: block;
}

.size-options {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-wrap: nowrap;
    margin-bottom: 28px;
    width: 100%;
}

.size-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;     /* Pushes label left, price right */
    width: 100%;
    padding: 14px 20px;
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    background: transparent;
    color: var(--black);
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
    cursor: pointer;
    min-height: 58px;                   /* Consistent height */
}

.size-btn .size-ml {
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}

.size-btn .size-price {
    font-size: 1.35rem;
    font-weight: 700;
    color: inherit;
    text-align: right;
}

.size-btn.selected,
.size-btn:hover {
    border-color: var(--gold-light);
    background: var(--grad);
}

.size-btn.selected {
    border-color: var(--gold);
}

.modal-add-btn {
    background: var(--grad);
    color: var(--black);
    border: none;
    padding: 16px 32px;
    font-size: 0.82rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-add-btn:hover {
    background: var(--gold-pale);
}

/* ADDED TO CART POPUP */
.cart-popup {
    position: fixed;
    top: 100px;
    right: 40px;
    z-index: 600;
    background: var(--light-grey);
    border: 1px solid var(--gold-light);
    border-radius: 12px;
    padding: 28px 32px;
    min-width: 320px;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cart-popup.show {
    transform: translateX(0);
}

.popup-check {
    font-size: 1.5rem;
    color: var(--gold-light);
    margin-bottom: 8px;
    display: block;
}

.popup-title {
    font-family: 'Nunito Sans', serif;
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.popup-sub {
    font-size: 0.78rem;
    color: var(--black);
    margin-bottom: 20px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.popup-cart-btn {
    background: var(--gold-light);
    color: var(--black);
    text-decoration: none;
    padding: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    text-align: center;
    transition: background 0.3s ease;
    display: block;
}

.popup-cart-btn:hover {
    background: var(--grad);
}

.popup-continue-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--black);
    padding: 12px;
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-family: 'Nunito Sans', sans-serif;
    transition: all 0.3s ease;
}

.popup-continue-btn:hover {
    border-color: var(--gold-light);
    color: var(--gold-light);
}

/* EMPTY / LOADING */
.no-products {
    text-align: center;
    padding: 100px 40px;
    color: var(--black);
    font-family: 'Nunito Sans', serif;
    font-size: 1.3rem;
}

/* ─── FOOTER ─── */
footer {
    background: var(--black);
    position: relative;
    overflow: hidden;
}

/* Top gradient line */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0.1rem;
    background: var(--gold-light);
}

/* Subtle background glow */
footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 37.5rem;
    height: 18.75rem;
    background: radial-gradient(ellipse, rgba(212,168,67,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3.75rem;
    padding: 5rem 3.75rem 3.75rem;
    position: relative;
    z-index: 1;
}

.footer-brand .logo {
    display: block;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.footer-brand p {
    font-family: 'Nunito Sans', serif;
    color: var(--white);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 260px;
    margin-bottom: 2rem;
}

.footer-social-row {
    display: flex;
    gap: 0.75rem;
}

.footer-social-btn {
    width: 2.375rem;
    height: 2.375rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: var(--charcoal);
    color: var(--white);
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.footer-social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 1px;
    background: var(--grad-border);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-btn:hover {
    color: var(--gold-light);
    background: rgba(212, 168, 67, 0.08);
}

.footer-social-btn:hover::before {
    opacity: 1;
}

.footer-col h5 {
    font-size: 1rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.75rem;
    font-weight: 500;
    display: block;
}

.footer-col a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: 0.83rem;
    margin-bottom: 1.75rem;
    transition: all 0.3s ease;
    letter-spacing: 0.02em;
    position: relative;
    padding-left: 0;
}

.footer-col a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    color: var(--gold);
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.footer-col a:hover {
    color: var(--gold-light);
    padding-left: 16px;
}

.footer-col a:hover::before {
    opacity: 1;
}

.footer-divider {
    height: 1px;
    background: var(--grad);
    margin: 0 60px;
    opacity: 0.3;
    position: relative;
    z-index: 1;
}

.footer-bottom {
    padding: 28px 60px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    font-size: 0.72rem;
    color: var(--white);
    letter-spacing: 0.05em;
}

.footer-bottom-right {
    display: flex;
    gap: 32px;
    align-items: center;
}

.footer-bottom-right a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-bottom-right a:hover {
    color: var(--gold-light);
}

/* Phone */
@media (min-width: 375px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Tablet */
@media (min-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* Large Desktop */
@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);   /* or 5 if you prefer */
        gap: 28px;
    }
}

/* Extra Large Screens */
@media (min-width: 1280px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 16px 24px;
    }

    nav {
        display: none;
    }

    .page-hero {
        padding: 120px 24px 60px;
        flex-direction: column;
        gap: 24px;
    }

    .page-hero-meta {
        text-align: left;
    }

    .products-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 18px;
    }

    .filters-bar {
        padding: 24px;
    }

    .products-section {
        padding: 40px 24px;
    }

    .modal {
        grid-template-columns: 1fr;
    }

    .modal-img {
        min-height: 280px;
    }

    .cart-popup {
        right: 16px;
        left: 16px;
        min-width: unset;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 60px 24px 40px;
    }

    .footer-divider {
        margin: 0 24px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
        text-align: center;
    }

    .footer-bottom-right {
        flex-direction: column;
        gap: 16px;
    }
}

/* ─── MOBILE FIRST IMPROVEMENTS ─── */
@media (max-width: 768px) {
    body {
        font-size: 16px; /* Base font for readability */
    }

    header {
        padding: 18px 20px !important;
    }

    .logo {
        font-size: 24px !important;
    }

    section, .hero-content {
        padding: 60px 20px !important;
    }

    .hero {
        height: 100dvh;
        min-height: 620px;
    }

    .hero-title {
        font-size: clamp(2.8rem, 10vw, 4.5rem) !important;
    }

    .hero-sub {
        font-size: 1.05rem !important;
        max-width: 100% !important;
    }

    .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .cat-card {
        height: 280px !important;
    }

    .product-card {
        margin-bottom: 20px;
    }

    /* Better spacing in cart */
    .cart-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px;
    }

    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    header {
        padding: 16px 16px !important;
    }

    .hero-content {
        padding: 0 16px 80px !important;
    }

    .btn {
        padding: 14px 28px !important;
        font-size: 0.95rem !important;
    }
}