/* ═══════════════════════════════════════════════════════════
   RBJPJ SALON — Land Page Styles
   Theme from admin setting | 11px border radius
   Font: Segoe UI + Playfair Display
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&display=swap');

:root {
    --radius:       11px;
    --transition:   all 0.22s ease;
    --accent:       #e74c3c;
    --accent-dark:  #c0392b;
    --accent-light: #fdecea;
    --green:        #27ae60;
    --green-dark:   #229954;
    --dark-btn:     #34495e;
    --dark-btn-hov: #2c3e50;

    /* Light */
    --bg:           #f8f9fa;
    --surface:      #ffffff;
    --surface-alt:  #f1f3f5;
    --border:       #e0e0e0;
    --text:         #2c3e50;
    --text-muted:   #7f8c8d;
    --text-light:   #bdc3c7;
    --header-bg:    #ffffff;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.07);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.11);
    --shadow-lg:    0 8px 36px rgba(0,0,0,0.15);
    --footer-bg:    #2c3e50;
    --sidebar-w:    240px;
}

body.dark {
    --bg:           #151210;
    --surface:      #1e1a17;
    --surface-alt:  #252018;
    --border:       #332d26;
    --text:         #f0ebe5;
    --text-muted:   #9e9080;
    --text-light:   #5a5046;
    --header-bg:    #1a1714;
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.35);
    --shadow-md:    0 4px 20px rgba(0,0,0,0.45);
    --shadow-lg:    0 8px 36px rgba(0,0,0,0.55);
    --footer-bg:    #0f0d0b;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--header-bg);
    padding: 14px 40px;
    box-shadow: var(--shadow-md);
    transition: background 0.3s;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img {
    width: 48px; height: 48px; border-radius: var(--radius);
    object-fit: cover; flex-shrink: 0;
    background: var(--accent-light);
}
.nav-logo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px; color: var(--text); line-height: 1.1;
}
.nav-logo-text p { font-size: 11px; color: var(--text-muted); }

/* ── Search ──────────────────────────────────────────────── */
.nav-search {
    flex: 1;
    max-width: 520px;
    position: relative;
    z-index: 600;
}
.search-wrap { position: relative; width: 100%; }
.nav-search input {
    width: 100%;
    padding: 11px 44px 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}
.nav-search input::placeholder { color: var(--text-light); }
.nav-search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}
.search-icon-btn {
    position: absolute;
    right: 0; top: 0;
    height: 100%; width: 44px;
    background: var(--accent);
    border: none;
    border-radius: 0 var(--radius) var(--radius) 0;
    color: #fff; font-size: 14px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition);
}
.search-icon-btn:hover { background: var(--accent-dark); }

.search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    z-index: 9999; overflow: hidden;
    max-height: 360px; overflow-y: auto;
}
.search-dropdown.open { display: block; }
.search-dropdown::-webkit-scrollbar { width: 4px; }
.search-dropdown::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ── Nav Right ───────────────────────────────────────────── */
.nav-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* ── Nav User — logged in (desktop) ─────────────────────── */
.nav-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-user-name {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition);
}
.nav-user-name i { font-size: 13px; flex-shrink: 0; }

.nav-logout-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
    cursor: pointer;
}
.nav-logout-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
}
.nav-logout-btn i { font-size: 12px; }

.nav-cart {
    position: relative; font-size: 22px; color: var(--accent);
    cursor: pointer; padding: 8px; border-radius: var(--radius);
    transition: var(--transition); background: none; border: none;
}
.nav-cart:hover { background: var(--accent-light); }
.cart-count {
    position: absolute; top: 1px; right: 1px;
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 17px; height: 17px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px; border: 2px solid var(--header-bg);
}
.cart-count.hidden { display: none; }

.nav-login-btn {
    display: flex; align-items: center; gap: 6px;
    padding: 9px 18px; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: var(--surface);
    color: var(--text); font-size: 13px; font-weight: 600;
    transition: var(--transition);
}
.nav-login-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* ══════════════════════════════════════════════════════════
   SIDE NAV DRAWER (mobile)
══════════════════════════════════════════════════════════ */
.side-nav-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 800;
    backdrop-filter: blur(2px);
}
.side-nav-overlay.open { display: block; }

.side-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100%; width: 280px;
    background: var(--surface);
    z-index: 900;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex; flex-direction: column;
    overflow-y: auto;
}
.side-nav.open { transform: translateX(0); }

.side-nav-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.side-nav-logo { display: flex; align-items: center; gap: 10px; }
.side-nav-logo img {
    width: 38px; height: 38px; border-radius: var(--radius);
    object-fit: cover; background: var(--accent-light);
}
.side-nav-logo span {
    font-family: 'Playfair Display', serif;
    font-size: 17px; font-weight: 700; color: var(--text);
}
.side-nav-close {
    background: none; border: none; font-size: 22px;
    color: var(--text-muted); cursor: pointer; padding: 4px;
    border-radius: var(--radius); transition: var(--transition);
}
.side-nav-close:hover { color: var(--accent); background: var(--accent-light); }

.side-nav-user {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-alt);
}

.sn-user-name {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sn-user-name i { font-size: 14px; flex-shrink: 0; }

.side-nav-user .sn-greeting {
    font-size: 13px; color: var(--text-muted); margin-bottom: 10px;
}
.side-nav-user .sn-greeting strong { color: var(--accent); }
.side-nav-user .sn-btn-row { display: flex; gap: 8px; }

.sn-btn {
    flex: 1; padding: 9px 12px; border-radius: var(--radius);
    font-size: 13px; font-weight: 600; border: none;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    transition: var(--transition); text-align: center; cursor: pointer;
}
.sn-btn-login  { background: var(--accent); color: #fff; }
.sn-btn-login:hover  { background: var(--accent-dark); }
.sn-btn-signup { background: var(--surface); border: 1.5px solid var(--border); color: var(--text); }
.sn-btn-signup:hover { border-color: var(--accent); color: var(--accent); }
.sn-btn-logout { background: var(--surface); border: 1.5px solid var(--border); color: var(--text-muted); }
.sn-btn-logout:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

.side-nav-links {
    flex: 1; padding: 12px 0; list-style: none;
}
.side-nav-links li a,
.side-nav-links li button {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 20px; width: 100%;
    font-size: 14px; font-weight: 500; color: var(--text);
    background: none; border: none; text-align: left;
    cursor: pointer; transition: var(--transition);
    border-left: 3px solid transparent;
}
.side-nav-links li a:hover,
.side-nav-links li button:hover {
    background: var(--accent-light);
    color: var(--accent);
    border-left-color: var(--accent);
}
.side-nav-links li a i,
.side-nav-links li button i {
    width: 18px; text-align: center; color: var(--accent); font-size: 15px;
}

.sn-cat-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 20px; cursor: pointer;
    font-size: 14px; font-weight: 500; color: var(--text);
    transition: var(--transition); border-left: 3px solid transparent;
}
.sn-cat-toggle:hover { background: var(--accent-light); color: var(--accent); border-left-color: var(--accent); }
.sn-cat-toggle .sn-cat-left { display: flex; align-items: center; gap: 12px; }
.sn-cat-toggle i { color: var(--accent); width: 18px; text-align: center; font-size: 15px; }
.sn-cat-toggle .sn-arrow { font-size: 11px; transition: transform 0.25s; color: var(--text-muted); }
.sn-cat-toggle.expanded .sn-arrow { transform: rotate(180deg); }

/* ── Side nav category list — overflow fix ── */
.sn-cat-list {
    display: none;
    list-style: none;
    background: var(--surface-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
}
.sn-cat-list::-webkit-scrollbar { width: 4px; }
.sn-cat-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
.sn-cat-list.open { display: block; }
.sn-cat-list li button {
    padding: 10px 20px 10px 52px;
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    display: block;
    text-align: left;
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}
.sn-cat-list li button:hover {
    color: var(--accent);
    background: var(--accent-light);
    border-left-color: var(--accent);
}

/* ══════════════════════════════════════════════════════════
   HERO SPACER
══════════════════════════════════════════════════════════ */
.hero-spacer { height: 100vh; pointer-events: none; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: 1;
}
.hero-slides { position: absolute; inset: 0; overflow: hidden; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: blur(3px); transform: scale(1.08);
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.28) 60%, transparent 100%);
}
.hero-content {
    position: absolute; top: 50%; left: 60px;
    transform: translateY(-50%); color: #fff;
    max-width: 560px; z-index: 10;
    animation: heroIn 0.9s ease both;
}
@keyframes heroIn {
    from { opacity: 0; transform: translateY(calc(-50% + 30px)); }
    to   { opacity: 1; transform: translateY(-50%); }
}
.hero-eyebrow {
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 2.5px; color: #fad0c4; margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}
.hero-eyebrow::before {
    content: ''; display: block; width: 32px; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 50px; font-weight: 700; line-height: 1.15;
    margin-bottom: 18px; text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}
.hero-content p {
    font-size: 18px; line-height: 1.55; margin-bottom: 32px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
    color: rgba(255,255,255,0.9);
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-btn {
    padding: 13px 28px; border-radius: var(--radius); font-size: 15px;
    font-weight: 700; border: 2px solid transparent;
    display: inline-flex; align-items: center; gap: 8px;
    transition: var(--transition); cursor: pointer;
}
.hero-btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.hero-btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.hero-btn-secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.8); }
.hero-btn-secondary:hover { background: #fff; color: var(--text); transform: translateY(-2px); }

.scroll-hint {
    position: absolute; bottom: 32px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    color: rgba(255,255,255,0.7); font-size: 11px;
    letter-spacing: 1.5px; text-transform: uppercase;
    animation: bounce 2s infinite; z-index: 10;
}
@keyframes bounce {
    0%,100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ══════════════════════════════════════════════════════════
   CONTENT
══════════════════════════════════════════════════════════ */
.content-section {
    position: relative; z-index: 10; margin-top: 0;
    background: var(--bg);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 44px rgba(0,0,0,0.18);
}

.features-strip {
    background: var(--surface); padding: 44px 40px;
    border-bottom: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
}
.features-grid {
    display: grid; grid-template-columns: repeat(4,1fr);
    gap: 24px; max-width: 1200px; margin: 0 auto;
}
.feature-item { text-align: center; padding: 16px; }
.feature-icon {
    width: 52px; height: 52px; margin: 0 auto 14px;
    background: var(--accent-light); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--accent);
}
.feature-title { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.feature-desc  { font-size: 13px; color: var(--text-muted); line-height: 1.4; }

/* ══════════════════════════════════════════════════════════
   BROWSE
══════════════════════════════════════════════════════════ */
.browse-outer { background: var(--bg); padding: 32px 0 48px; }
.browse-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 40px; display: flex; gap: 28px; align-items: flex-start;
}

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    position: sticky; top: 80px;
    display: flex; flex-direction: column; gap: 16px;
    align-self: flex-start;
}
.sidebar-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
}
.sidebar-title {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.4px; color: var(--text-muted); margin-bottom: 14px;
}
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.cat-item {
    padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
    font-size: 13.5px; color: var(--text-muted); font-weight: 500;
    display: flex; justify-content: space-between; align-items: center;
    transition: var(--transition);
}
.cat-item:hover { background: var(--accent-light); color: var(--accent); }
.cat-item.active { background: var(--accent); color: #fff; }
.cat-count { font-size: 11px; opacity: 0.7; }

.price-inputs { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.price-inputs input {
    flex: 1; padding: 8px 10px; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: var(--surface-alt);
    color: var(--text); font-family: inherit; font-size: 13px;
    outline: none; width: 0; transition: var(--transition);
}
.price-inputs input:focus { border-color: var(--accent); }
.price-inputs span { color: var(--text-muted); font-size: 12px; }
.apply-btn {
    width: 100%; padding: 9px; background: var(--surface-alt);
    border: 1.5px solid var(--border); border-radius: var(--radius);
    color: var(--text); font-size: 13px; font-weight: 600; transition: var(--transition);
}
.apply-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.browse-main { flex: 1; min-width: 0; }
.browse-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.result-info { font-size: 13px; color: var(--text-muted); }
.result-info strong { color: var(--text); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-wrap label { font-size: 13px; color: var(--text-muted); }
.sort-select {
    padding: 9px 32px 9px 12px; border: 1.5px solid var(--border);
    border-radius: var(--radius); background: var(--surface); color: var(--text);
    font-family: inherit; font-size: 13px; cursor: pointer;
    outline: none; 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='%237f8c8d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 10px center;
    transition: var(--transition);
}
.sort-select:focus { border-color: var(--accent); }

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

.product-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: var(--transition); display: flex; flex-direction: column;
    animation: fadeUp 0.35s ease both;
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--accent); }

.card-img-wrap {
    position: relative; aspect-ratio: 1;
    background: var(--surface-alt); overflow: hidden; cursor: pointer;
}
.card-img-wrap img { width:100%; height:100%; object-fit:cover; transition: transform 0.35s ease; }
.product-card:hover .card-img-wrap img { transform: scale(1.06); }

.card-badges { position:absolute; top:10px; left:10px; display:flex; flex-direction:column; gap:5px; }
.badge {
    display:inline-flex; align-items:center; padding:4px 9px;
    border-radius: 7px; font-size:10px; font-weight:700;
    letter-spacing:0.3px; text-transform:uppercase;
}
.badge-promo { background:var(--accent); color:#fff; }
.badge-low   { background:#f0a500; color:#fff; }
.badge-out   { background:#9e9e9e; color:#fff; }

.card-body { padding:13px 15px; flex:1; display:flex; flex-direction:column; gap:3px; }
.card-brand { font-size:10px; text-transform:uppercase; letter-spacing:0.8px; color:var(--accent); font-weight:700; }
.card-name {
    font-size:14px; font-weight:600; color:var(--text); line-height:1.35;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; cursor:pointer; transition:var(--transition);
}
.card-name:hover { color:var(--accent); }
.card-cat { font-size:11px; color:var(--text-light); }
.card-pricing { margin-top:8px; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.price-final    { font-size:18px; font-weight:700; color:var(--accent); }
.price-original { font-size:12px; color:var(--text-light); text-decoration:line-through; }
.promo-tag {
    font-size:10px; background:var(--accent-light); color:var(--accent);
    padding:2px 8px; border-radius:7px; font-weight:600; margin-top:4px; display:inline-block;
}

.card-footer { padding:10px 15px 15px; display:flex; gap:8px; }
.btn-cart {
    flex:1; padding:9px 10px; background:var(--dark-btn); color:#fff;
    border:none; border-radius:var(--radius); font-size:12.5px; font-weight:600;
    display:flex; align-items:center; justify-content:center; gap:5px; transition:var(--transition);
}
.btn-cart:hover:not(:disabled) { background:var(--dark-btn-hov); transform:translateY(-1px); }
.btn-cart:disabled { background:var(--border); color:var(--text-muted); cursor:not-allowed; }
.btn-buy {
    flex:1; padding:9px 10px; background:var(--green); color:#fff;
    border:none; border-radius:var(--radius); font-size:12.5px; font-weight:600;
    display:flex; align-items:center; justify-content:center; gap:5px; transition:var(--transition);
}
.btn-buy:hover:not(:disabled) { background:var(--green-dark); transform:translateY(-1px); }
.btn-buy:disabled { background:var(--border); color:var(--text-muted); cursor:not-allowed; }

.empty-state { grid-column:1/-1; text-align:center; padding:80px 24px; color:var(--text-muted); }
.empty-state .empty-icon { font-size:48px; margin-bottom:16px; opacity:0.4; }
.empty-state p { font-size:15px; font-weight:500; }

.skeleton { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.skeleton-img {
    aspect-ratio:1;
    background:linear-gradient(90deg,var(--surface-alt) 25%,var(--border) 50%,var(--surface-alt) 75%);
    background-size:200% 100%; animation:shimmer 1.4s infinite;
}
.skeleton-body { padding:13px 15px; }
.skeleton-line {
    height:10px; border-radius:6px;
    background:linear-gradient(90deg,var(--surface-alt) 25%,var(--border) 50%,var(--surface-alt) 75%);
    background-size:200% 100%; animation:shimmer 1.4s infinite; margin-bottom:8px;
}
.skeleton-line.short { width:55%; }
.skeleton-line.price { width:38%; height:16px; margin-top:8px; }
@keyframes shimmer { from{background-position:200% 0;} to{background-position:-200% 0;} }

/* ══════════════════════════════════════════════════════════
   SHARED SECTIONS
══════════════════════════════════════════════════════════ */
.section-wrap { padding:50px 40px; max-width:1400px; margin:0 auto; }
.section-bg   { background:var(--surface); }
.section-header {
    display:flex; align-items:center; justify-content:center; margin-bottom:32px;
}
.section-title {
    font-family:'Playfair Display',serif; font-size:26px; font-weight:700;
    color:var(--text); border-bottom:3px solid var(--accent);
    display:inline-block; padding-bottom:6px;
}

.nav-arrows { display:flex; gap:10px; }
.nav-arrow {
    width:38px; height:38px; border:2px solid var(--accent);
    border-radius:var(--radius); display:flex; align-items:center;
    justify-content:center; cursor:pointer; color:var(--accent);
    background:var(--surface); transition:var(--transition); font-size:14px;
}
.nav-arrow:hover { background:var(--accent); color:#fff; }

.h-scroll-section { background:var(--surface); padding:44px 0; }
.h-scroll-header  { padding:0 40px; display:flex; align-items:center; justify-content:space-between; margin-bottom:4px; }
.h-scroll {
    display:flex; overflow-x:auto; padding:16px 40px 20px; gap:20px; scroll-behavior:smooth;
}
.h-scroll::-webkit-scrollbar { height:5px; }
.h-scroll::-webkit-scrollbar-track { background:var(--surface-alt); border-radius:6px; }
.h-scroll::-webkit-scrollbar-thumb { background:var(--accent); border-radius:6px; }

.h-product-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:16px; min-width:210px; width:210px;
    box-shadow:var(--shadow-sm); transition:var(--transition); flex-shrink:0;
    display:flex; flex-direction:column; align-items:center; text-align:center;
}
.h-product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--accent); }
.h-product-card img { width:100%; height:140px; object-fit:cover; border-radius:var(--radius); margin-bottom:12px; cursor:pointer; }
.h-product-card h4 { font-size:13.5px; font-weight:600; color:var(--text); margin-bottom:4px; line-height:1.3; }
.h-desc { font-size:11.5px; color:var(--text-muted); margin-bottom:8px; line-height:1.3; }
.h-price { color:var(--accent); font-size:17px; font-weight:700; margin-bottom:12px; display:block; }
.h-btn-row { display:flex; gap:6px; width:100%; }
.h-btn-row button {
    flex:1; padding:8px 4px; border:none; border-radius:var(--radius);
    font-size:11.5px; font-weight:600; display:flex; align-items:center;
    justify-content:center; gap:4px; transition:var(--transition);
}
.h-btn-cart { background:var(--dark-btn); color:#fff; }
.h-btn-cart:hover { background:var(--dark-btn-hov); }
.h-btn-buy  { background:var(--green); color:#fff; }
.h-btn-buy:hover  { background:var(--green-dark); }

.cat-cards-grid {
    display:grid; grid-template-columns:repeat(3,1fr);
    gap:22px; max-width:1100px; margin:0 auto;
}
.cat-card {
    background:var(--surface); border-radius:var(--radius); overflow:hidden;
    box-shadow:var(--shadow-sm); transition:var(--transition);
    cursor:pointer; border:1px solid var(--border);
}
.cat-card:hover { transform:translateY(-5px); box-shadow:var(--shadow-md); border-color:var(--accent); }
.cat-card-img { width:100%; height:150px; background-size:cover; background-position:center; }
.cat-card-body {
    padding:18px 20px; display:flex; align-items:center;
    justify-content:center; gap:10px;
    font-size:16px; font-weight:700; color:var(--text);
}
.cat-card-body i { color:var(--accent); font-size:14px; }

.products-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid-product-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:16px; box-shadow:var(--shadow-sm);
    transition:var(--transition); display:flex; flex-direction:column;
    align-items:center; text-align:center;
}
.grid-product-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--accent); }
.grid-product-card img {
    width:100%; height:160px; object-fit:cover;
    border-radius:var(--radius); margin-bottom:12px; cursor:pointer;
}
.grid-product-card h4 { font-size:15px; font-weight:600; color:var(--text); margin-bottom:5px; }
.g-desc { font-size:12.5px; color:var(--text-muted); margin-bottom:8px; line-height:1.35; }
.g-price { color:var(--accent); font-size:19px; font-weight:700; margin-bottom:12px; }
.g-price-orig { font-size:12px; text-decoration:line-through; color:var(--text-light); margin-left:6px; font-weight:400; }
.g-btn-row { display:flex; gap:8px; width:100%; }
.g-btn-row button {
    flex:1; padding:9px 6px; border:none; border-radius:var(--radius);
    font-size:12.5px; font-weight:600; display:flex; align-items:center;
    justify-content:center; gap:5px; transition:var(--transition);
}
.g-btn-cart { background:var(--dark-btn); color:#fff; }
.g-btn-cart:hover { background:var(--dark-btn-hov); }
.g-btn-buy  { background:var(--green); color:#fff; }
.g-btn-buy:hover  { background:var(--green-dark); }

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.testimonial-wrap { max-width:700px; margin:0 auto; }
.testimonial-card {
    background:var(--surface); border:1px solid var(--border);
    border-radius:var(--radius); padding:40px; box-shadow:var(--shadow-sm); text-align:center;
}
.stars i { color:#ffd700; font-size:18px; margin:0 2px; }
.testimonial-text {
    font-size:17px; color:var(--text); line-height:1.65;
    margin:20px 0 28px; font-style:italic;
}
.testimonial-author { display:flex; align-items:center; justify-content:center; gap:14px; }
.author-avatar {
    width:52px; height:52px; background:var(--accent); border-radius:var(--radius);
    display:flex; align-items:center; justify-content:center; color:#fff; font-size:20px; flex-shrink:0;
}
.author-info h4 { font-size:16px; font-weight:700; color:var(--text); }
.author-info p  { font-size:13px; color:var(--text-muted); margin-top:3px; }

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.footer {
    background: var(--footer-bg);
    color: #ecf0f1;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;
    min-height: 420px;
}
.footer-map { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.footer-map iframe {
    width: 100%; height: 100%; border: none;
    filter: grayscale(40%) brightness(0.55);
}
.footer-map-overlay { position: absolute; inset: 0; background: rgba(20,14,10,0.78); }
.footer-inner, .footer-bottom { position: relative; z-index: 2; }
.footer-inner {
    display:grid; grid-template-columns:repeat(4,1fr); gap:40px;
    max-width:1200px; margin:0 auto; padding:60px 40px 40px;
}
.footer-col h4 { color:var(--accent); font-size:16px; font-weight:700; margin-bottom:18px; }
.footer-logo-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
.footer-logo-row img { width:40px; height:40px; border-radius:50%; object-fit:cover; }
.footer-logo-row h3 { font-family:'Playfair Display',serif; font-size:18px; color:#fff; }
.footer-desc { color:#bdc3c7; font-size:13px; line-height:1.55; margin-bottom:20px; }
.footer-socials { display:flex; gap:10px; }
.footer-socials a {
    width:38px; height:38px; background:#34495e; border-radius:var(--radius);
    display:flex; align-items:center; justify-content:center;
    color:#fff; font-size:15px; transition:var(--transition);
}
.footer-socials a:hover { background:var(--accent); transform:translateY(-2px); }

/* ── Footer Quick Links — plain text, no icons ── */
.footer-links { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-links li a {
    color: #bdc3c7;
    font-size: 13.5px;
    transition: var(--transition);
    display: block;
}
.footer-links li a:hover { color:var(--accent); padding-left:4px; }

.footer-contact { display:flex; flex-direction:column; gap:14px; }
.footer-contact-item { display:flex; align-items:flex-start; gap:10px; }
.footer-contact-item i { color:var(--accent); font-size:14px; margin-top:2px; flex-shrink:0; }
.footer-contact-item p { color:#bdc3c7; font-size:13px; line-height:1.45; margin:0; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.1); padding:20px 0; }
.footer-bottom-inner {
    max-width:1200px; margin:0 auto; padding:0 40px;
    display:flex; justify-content:space-between; align-items:center;
    flex-wrap:wrap; gap:12px;
}
.footer-bottom-inner p { color:#bdc3c7; font-size:13px; }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { color:#bdc3c7; font-size:13px; transition:var(--transition); }
.footer-bottom-links a:hover { color:var(--accent); }
.footer-brand-text { display: flex; align-items: center; gap: 7px; }
.footer-brand-icon {
    width: 28px; height: 28px; background: var(--accent); border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 13px; flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast-container {
    position:fixed; bottom:90px; right:28px; z-index:9999;
    display:flex; flex-direction:column; gap:10px; pointer-events:none;
}
.toast {
    padding:12px 20px; border-radius:var(--radius); font-size:13.5px; font-weight:600;
    color:#fff; box-shadow:var(--shadow-lg);
    animation:slideIn 0.3s ease, fadeOut 0.4s ease 2.6s forwards;
    pointer-events:auto; max-width:320px;
}
.toast.success { background:#27ae60; }
.toast.error   { background:var(--accent); }
.toast.info    { background:#2980b9; }
@keyframes slideIn { from{opacity:0;transform:translateX(40px);} to{opacity:1;transform:translateX(0);} }
@keyframes fadeOut { to{opacity:0;transform:translateX(40px);} }

/* ══════════════════════════════════════════════════════════
   FLOATING CHAT
══════════════════════════════════════════════════════════ */
.float-chat {
    position:fixed; bottom:28px; right:28px; width:56px; height:56px;
    background:var(--accent); color:#fff; border:none; border-radius:50%;
    font-size:24px; display:flex; align-items:center; justify-content:center;
    box-shadow:0 4px 18px rgba(231,76,60,0.4); cursor:pointer; z-index:500;
    transition:var(--transition);
}
.float-chat:hover { background:var(--accent-dark); transform:scale(1.1); }

/* ══════════════════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
    display:none; position:fixed; inset:0; background:rgba(0,0,0,0.55);
    z-index:2000; align-items:center; justify-content:center; backdrop-filter:blur(3px);
}
.modal-overlay.open { display:flex; }
.modal {
    background:var(--surface); border-radius:var(--radius); padding:36px 32px;
    width:100%; max-width:400px; box-shadow:var(--shadow-lg);
    animation:modalIn 0.25s ease; border:1px solid var(--border);
}
@keyframes modalIn { from{opacity:0;transform:scale(0.95) translateY(-10px);} to{opacity:1;transform:scale(1);} }
.modal-close-row { text-align:right; margin-bottom:6px; }
.modal-close { background:none; border:none; color:var(--text-muted); font-size:20px; cursor:pointer; }
.modal-close:hover { color:var(--text); }
.modal-title { font-family:'Playfair Display',serif; font-size:24px; color:var(--text); margin-bottom:6px; }
.modal-sub { font-size:13px; color:var(--text-muted); margin-bottom:24px; }
.form-group { margin-bottom:16px; }
.form-group label {
    display:block; font-size:11px; font-weight:700; text-transform:uppercase;
    letter-spacing:0.7px; color:var(--text-muted); margin-bottom:6px;
}
.form-group input {
    width:100%; padding:11px 14px; border:1.5px solid var(--border);
    border-radius:var(--radius); background:var(--surface-alt); color:var(--text);
    font-family:inherit; font-size:14px; outline:none; transition:var(--transition);
}
.form-group input:focus { border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-light); }
.btn-login {
    width:100%; padding:12px; background:var(--accent); color:#fff; border:none;
    border-radius:var(--radius); font-size:14px; font-weight:700;
    transition:var(--transition); margin-top:8px;
}
.btn-login:hover { background:var(--accent-dark); }
.modal-error { font-size:12.5px; color:var(--accent); margin-top:10px; text-align:center; min-height:18px; }
.modal-switch { text-align:center; margin-top:16px; font-size:13px; color:var(--text-muted); }
.modal-switch-btn {
    background:none; border:none; color:var(--accent);
    font-size:13px; font-weight:600; cursor:pointer;
    text-decoration:underline; padding:0; margin-left:4px;
}
.modal-switch-btn:hover { color:var(--accent-dark); }

/* Eye toggle inside modal password field */
.modal-eye-toggle {
    position: absolute; right: 10px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none; padding: 4px;
    color: var(--text-light); font-size: 14px;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; line-height: 1;
}
.modal-eye-toggle:hover { color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   LOGOUT CONFIRMATION MODAL
══════════════════════════════════════════════════════════ */
.logout-modal-icon {
    width: 68px; height: 68px;
    background: var(--accent-light);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; color: var(--accent);
    margin: 0 auto 20px;
}
.btn-logout-cancel {
    flex: 1; padding: 12px;
    background: var(--surface-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    color: var(--text); font-family: inherit;
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; transition: var(--transition);
}
.btn-logout-cancel:hover { border-color: var(--accent); color: var(--accent); }
.btn-logout-confirm {
    flex: 1; padding: 12px;
    background: var(--accent); color: #fff;
    border: none; border-radius: var(--radius);
    font-family: inherit; font-size: 14px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    cursor: pointer; transition: var(--transition); text-decoration: none;
}
.btn-logout-confirm:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   AUTOCOMPLETE
══════════════════════════════════════════════════════════ */
.ac-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; cursor: pointer;
    transition: var(--transition); outline: none;
    border-bottom: 1px solid var(--border);
}
.ac-item:last-child { border-bottom: none; }
.ac-item:hover, .ac-item:focus { background: var(--accent-light); }
.ac-img {
    width: 40px; height: 40px; object-fit: cover;
    border-radius: 7px; flex-shrink: 0; background: var(--surface-alt);
}
.ac-info { flex: 1; min-width: 0; }
.ac-name {
    font-size: 13px; font-weight: 600; color: var(--text);
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-name mark {
    background: var(--accent-light); color: var(--accent);
    font-weight: 700; padding: 0 2px; border-radius: 3px;
}
.ac-brand { font-size: 11px; color: var(--text-muted); display: block; }
.ac-price { font-size: 13px; font-weight: 700; color: var(--accent); flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width:1100px) {
    .product-grid    { grid-template-columns:repeat(2,1fr); }
    .products-grid-3 { grid-template-columns:repeat(2,1fr); }
    .features-grid   { grid-template-columns:repeat(2,1fr); }
    .footer-inner    { grid-template-columns:repeat(2,1fr); }
}

@media (max-width:860px) {
    .hamburger        { display: flex; }
    .nav-login-btn    { display: none; }
    .nav-user         { display: none; }
    .nav-logo-desktop { display: none; }
    .sidebar          { display:none; }
    .browse-inner     { padding:0 20px; }
    .cat-cards-grid   { grid-template-columns:repeat(2,1fr); }
    .navbar           { padding:12px 16px; gap:10px; }
    .hero-content     { left:28px; max-width:90%; }
    .hero-content h1  { font-size:34px; }
    .section-wrap     { padding:36px 20px; }
    .h-scroll         { padding:16px 20px 20px; }
    .h-scroll-header  { padding:0 20px; }
    .nav-search       { max-width: unset; flex: 1; }
    .footer-inner     { grid-template-columns: 1fr 1fr; padding: 40px 20px 28px; gap: 28px; }
    .footer           { min-height: 360px; }
}

@media (max-width:560px) {
    .product-grid       { grid-template-columns:1fr; }
    .cat-cards-grid     { grid-template-columns:1fr; }
    .products-grid-3    { grid-template-columns:1fr; }
    .footer-inner       { grid-template-columns:1fr; padding: 32px 16px 20px; }
    .footer             { min-height: 0; }
    .hero-content h1    { font-size:26px; }
    .hero-content p     { font-size:15px; }
    .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding: 0 16px; }
    .footer-bottom-links { flex-wrap: wrap; gap: 12px; }
}