/* ── TOKENS ── */
:root {
    --gold:          #c9a96e;
    --gold-dark:     #a8834a;
    --gold-light:    #f7f0e6;
    --gold-shine:    #e8d5a3;
    --black:         #111111;
    --charcoal:      #1e1e1e;
    --mid:           #535766;
    --muted:         #94969f;
    --border:        #e8e0d5;
    --surface:       #f8f5f0;
    --white:         #ffffff;
    --nav-height:    64px;
    --font:          'Poppins', sans-serif;
    --radius-sm:     3px;
    --radius-md:     6px;
    --shadow-card:   0 2px 16px rgba(0,0,0,0.08);
    --shadow-gold:   0 4px 18px rgba(201,169,110,0.30);
    --transition:    0.22s ease;
}

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

body {
    font-family: var(--font);
    background: var(--surface);
    color: var(--black);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: var(--nav-height);
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--gold);
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
}

/* Desktop links */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.navbar-links a {
    text-decoration: none;
    color: var(--black);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color var(--transition);
    position: relative;
    padding-bottom: 3px;
}

.navbar-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.25s ease;
}

.navbar-links a:hover,
.navbar-links a.active {
    color: var(--gold);
}

.navbar-links a:hover::after,
.navbar-links a.active::after {
    width: 100%;
}

/* Right side: cart icon */
.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-right a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition);
}
.nav-right i{
    display: none;
}

.nav-right a:hover {
    color: var(--gold);
}

.nav-right .wishlist {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-right .wishlist a {
    text-decoration: none;
    color: var(--black);
    font-size: 14px;
    font-weight: 600;
}

#wishlist-count {
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-size: 10px;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}


#cart-count {
    background: var(--gold);
    color: var(--white);
    border-radius: 50%;
    font-size: 10px;
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Hamburger — visible on mobile */
.menu-toggle {
    display: none;
    font-size: 21px;
    cursor: pointer;
    color: var(--black);
    transition: color var(--transition);
}

.menu-toggle:hover {
    color: var(--gold);
}

/* =========================================
   PROFILE DROPDOWN
   ========================================= */
.profile-menu {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.profile-menu > i {
    color: var(--black);
    transition: color var(--transition);
}

.profile-menu:hover > i {
    color: var(--gold);
}

.dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: var(--white);
    width: 190px;
    border-radius: var(--radius-md);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--transition);
    z-index: 2000;
    border-top: 3px solid var(--gold);
}

.profile-menu:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--mid);
    font-size: 12px;
    font-weight: 500;
    transition: background var(--transition), color var(--transition);
    border-bottom: 1px solid #f0ebe3;
}

.dropdown a:last-child {
    border-bottom: none;
}

.dropdown a:hover {
    background: var(--gold-light);
    color: var(--gold-dark);
}

/* =========================================
   SIDE NAVBAR (Mobile)
   ========================================= */
.side-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 270px;
    height: 100%;
    background: var(--white);
    padding: 0;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 4px 0 24px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
}

.side-navbar.active {
    transform: translateX(0);
}

/* Side nav header bar */
.side-nav-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--charcoal);
}

.side-nav-header .side-brand {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.2em;
    color: var(--gold);
    text-transform: uppercase;
}

.side-navbar .close-btn {
    font-size: 20px;
    cursor: pointer;
    color: rgba(255,255,255,0.6);
    transition: color var(--transition);
}

.side-navbar .close-btn:hover {
    color: var(--gold);
}

.side-navbar a {
    display: block;
    color: var(--black);
    text-decoration: none;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition), background var(--transition), padding-left var(--transition);
}

.side-navbar a:hover {
    color: var(--gold-dark);
    background: var(--gold-light);
    padding-left: 28px;
}

/* Overlay behind side nav */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1999;
}

.nav-overlay.active {
    display: block;
}

.nav-right menu-toggle {
    display: none;
}


/* COLLECTION HEADER */
.collection-header {
    background: var(--white);
    padding: 30px 40px 18px;
    border-bottom: 1px solid var(--border);
}
.collection-header h2 {
    font-size: 22px; font-weight: 800;
    letter-spacing: 0.1em; text-transform: uppercase;
    color: var(--black); margin-bottom: 4px;
}
.collection-header h2::after {
    content: '';
    display: block; width: 36px; height: 3px;
    background: var(--gold); margin-top: 8px;
    border-radius: 2px;
}
.collection-header p { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* TOOLBAR */
.collection-toolbar {
    display: flex; align-items: center;
    justify-content: space-between;
    flex-wrap: wrap; gap: 14px;
    padding: 16px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 64px; z-index: 100;
}

/* SEARCH BOX */
.product-search {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 9px 16px; width: 300px;
    transition: border-color var(--transition);
}
.product-search:focus-within { border-color: var(--gold); }
.product-search i { color: var(--muted); font-size: 13px; flex-shrink: 0; }
.product-search input {
    border: none; background: transparent; outline: none;
    font-family: var(--font); font-size: 13px; color: var(--black); width: 100%;
}
.product-search input::placeholder { color: #bbb; }

/* FILTER DROPDOWNS */
.filter-group { display: flex; gap: 12px; align-items: center; }
.filter-group select {
    padding: 9px 32px 9px 14px;
    border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 12px; font-weight: 600;
    color: var(--black); background: var(--white); cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a96e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    transition: border-color var(--transition);
}
.filter-group select:focus { outline: none; border-color: var(--gold); }

/* RESULTS COUNT */
.results-count {
    padding: 12px 40px 0;
    font-size: 12px; color: var(--muted); font-weight: 500;
}

/* PRODUCTS GRID */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px; padding: 20px 40px 48px;
    background: var(--surface);
}

/* PRODUCT CARD */
.product-box {
    background: var(--white); border-radius: var(--radius-sm);
    overflow: hidden; cursor: pointer; border: 1px solid var(--border);
    transition: box-shadow 0.25s, transform 0.25s;
}
.product-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
    border-color: var(--gold-shine);
}
.product-box img {
    width: 100%; height: 280px; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.product-box:hover img { transform: scale(1.05); }

.product-box-info { padding: 10px 12px 14px; }

.product-box .brand {
    font-size: 10px; font-weight: 700; color: var(--gold-dark);
    letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 3px;
}
.product-box .name {
    font-size: 13px; font-weight: 600; color: var(--black);
    margin-bottom: 4px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.product-box .price {
    font-size: 14px; font-weight: 800; color: var(--black); margin-bottom: 10px;
}

/* BUTTON — inherits global .cartBtn from style.css,
   but overrides width to fill the card info area */
.product-box .cartBtn {
    width: 100%;
    margin: 0;
}

/* HIDDEN STATE */
.product-box.hidden { display: none; }

/* NO RESULTS */
.no-results {
    display: flex; flex-direction: column; align-items: center;
    gap: 12px; padding: 80px 20px; text-align: center; color: var(--muted);
    grid-column: 1 / -1;
}
.no-results i { font-size: 52px; color: var(--border); }
.no-results p { font-size: 15px; font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .collection-toolbar {
        flex-direction: column; align-items: stretch;
        padding: 14px 16px; top: 56px;
    }
    .navbar-links { display: none; }
    .nav-right {
        display:flex;
    }
    .nav-right i{
        display: block;
    }
 
    .product-search { width: 100%; }
    .filter-group { width: 100%; }
    .filter-group select { flex: 1; }
    .products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px; padding: 14px 12px 40px;
    }
    .product-box img { height: 220px; }
    .collection-header { padding: 20px 16px 14px; }
    .results-count { padding: 10px 16px 0; }
}
@media (max-width: 380px) {
    .products { grid-template-columns: 1fr 1fr; gap: 8px; }
}