/* 
   ELDODG Online Store - Premium Dark Theme
   Modern, Sleek, Glassmorphism-inspired
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
    --bg-dark: #0a0c10;
    --bg-card: #12151c;
    --bg-card-hover: #181c26;
    --bg-input: #1a1f2b;
    --bg-overlay: rgba(10, 12, 16, 0.85);
    --text-primary: #f0f1f5;
    --text-secondary: #c5c8d4;
    --text-muted: #7a7f92;
    --gold: #d4af37;
    --gold-hover: #e8c84a;
    --gold-glow: rgba(212, 175, 55, 0.25);
    --accent-green: #2ed573;
    --accent-red: #ff4757;
    --accent-blue: #3a86ff;
    --accent-cyan: #00bcd4;
    --border-color: #1e2333;
    --border-glow: rgba(212, 175, 55, 0.12);
    --font-family: 'Cairo', sans-serif;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.55);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* ================================
   Scrollbar
================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #2b313e; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ================================
   Typography
================================ */
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; }
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-hover); }

/* ================================
   Header / Navbar
================================ */
.store-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(10, 12, 16, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: var(--transition);
}
.store-header.scrolled {
    background: rgba(10, 12, 16, 0.95);
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.store-logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 10px;
}
.store-logo img { height: 38px; border-radius: 6px; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn {
    position: relative;
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.15);
    color: var(--gold);
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: var(--transition);
}
.cart-btn:hover { background: rgba(212,175,55,0.15); transform: translateY(-2px); }
.cart-badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--accent-red);
    color: #fff; font-size: 0.65rem;
    font-weight: 800; width: 20px; height: 20px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg-dark);
    transition: var(--transition);
}
.cart-badge.empty { display: none; }

.search-box {
    position: relative;
    width: 280px;
}
.search-box input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    font-family: var(--font-family);
    font-size: 0.9rem;
    transition: var(--transition);
}
.search-box input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.search-box input::placeholder { color: var(--text-muted); }
.search-box i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 0.85rem; }

/* ================================
   Hero Section
================================ */
.hero-section {
    padding: 140px 2rem 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
    top: -200px; right: -150px;
    pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(58,134,255,0.04) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    pointer-events: none;
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}
.hero-title span { color: var(--gold); }
.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}
.hero-badge {
    display: flex; align-items: center; gap: 8px;
    background: rgba(212,175,55,0.06);
    border: 1px solid rgba(212,175,55,0.1);
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}
.hero-badge i { color: var(--gold); }

/* ================================
   Category Filter
================================ */
.category-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: none;
}
.category-scroll::-webkit-scrollbar { display: none; }
.cat-pill {
    flex-shrink: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1.4rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    user-select: none;
}
.cat-pill:hover { border-color: var(--gold); color: var(--gold); }
.cat-pill.active {
    background: var(--gold);
    border-color: var(--gold);
    color: #0a0c10;
    box-shadow: 0 4px 15px var(--gold-glow);
}

/* ================================
   Product Grid
================================ */
.products-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}
.section-title {
    font-size: 1.5rem; font-weight: 800;
    margin-bottom: 1.5rem;
    display: flex; align-items: center; gap: 10px;
}
.section-title i { color: var(--gold); font-size: 1.2rem; }

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(212,175,55,0.2);
    box-shadow: var(--shadow-hover), 0 0 40px rgba(212,175,55,0.05);
}

.product-img-wrap {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-img-wrap .no-img {
    font-size: 3.5rem;
    color: var(--text-muted);
    opacity: 0.3;
}

.product-discount-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: var(--accent-red);
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 800;
}
.product-featured-tag {
    position: absolute;
    top: 12px; right: 12px;
    background: var(--gold);
    color: #0a0c10;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 800;
}
.product-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}
.product-view-overlay span {
    background: rgba(212, 175, 55, 0.95);
    color: #1a1a1a;
    padding: 6px 14px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(10px);
    transition: transform 0.3s ease;
}
.product-card:hover .product-view-overlay {
    opacity: 1;
}
.product-card:hover .product-view-overlay span {
    transform: translateY(0);
}

.product-info { padding: 1.2rem; }
.product-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.product-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--gold);
}
.product-old-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.product-add-btn {
    background: rgba(212,175,55,0.1);
    border: 1px solid rgba(212,175,55,0.2);
    color: var(--gold);
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}
.product-add-btn:hover {
    background: var(--gold);
    color: #0a0c10;
    transform: scale(1.1);
}

.product-stock-out {
    background: rgba(255,71,87,0.1);
    color: var(--accent-red);
    text-align: center;
    padding: 6px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* ================================
   Cart Drawer
================================ */
.cart-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
    position: fixed;
    top: 0; left: 0;
    width: min(420px, 90vw);
    height: 100vh;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 2001;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 50px rgba(0,0,0,0.5);
}
.cart-drawer.open { transform: translateX(0); }

.cart-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.cart-drawer-header h4 { margin: 0; font-weight: 800; color: var(--gold); }
.cart-close-btn {
    background: rgba(255,71,87,0.1);
    border: none;
    color: var(--accent-red);
    width: 36px; height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.cart-close-btn:hover { background: var(--accent-red); color: #fff; }

.cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}
.cart-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}
.cart-empty i { font-size: 3rem; margin-bottom: 1rem; display: block; opacity: 0.3; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    animation: fadeInUp 0.3s ease;
}
.cart-item-img {
    width: 60px; height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-input);
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-img i { color: var(--text-muted); opacity: 0.3; }
.cart-item-details { flex: 1; }
.cart-item-name { font-weight: 700; font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-price { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qty-btn {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 30px; height: 30px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-weight: 800;
    transition: var(--transition);
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-val { font-weight: 800; font-size: 0.95rem; min-width: 20px; text-align: center; }
.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-red);
    cursor: pointer;
    font-size: 0.85rem;
    opacity: 0.6;
    transition: var(--transition);
    padding: 4px;
}
.cart-item-remove:hover { opacity: 1; }

.cart-drawer-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(18, 21, 28, 0.95);
}
.cart-summary-row {
    display: flex; justify-content: space-between;
    margin-bottom: 8px; font-size: 0.92rem;
    color: var(--text-secondary);
}
.cart-summary-row.total {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    margin-top: 6px;
}
.checkout-btn {
    display: block;
    width: 100%;
    background: var(--gold);
    color: #0a0c10;
    font-weight: 800;
    font-size: 1rem;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.9rem;
    margin-top: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-family);
}
.checkout-btn:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--gold-glow);
}
.checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ================================
   Checkout Modal
================================ */
.checkout-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
    padding: 1rem;
}
.checkout-overlay.open { opacity: 1; visibility: visible; }

.checkout-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.checkout-overlay.open .checkout-modal { transform: translateY(0) scale(1); }

.checkout-modal h3 {
    text-align: center;
    color: var(--gold);
    margin-bottom: 1.5rem;
    font-weight: 800;
}
.checkout-modal .form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

/* ================================
   Success Modal
================================ */
.success-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    z-index: 4000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}
.success-overlay.open { opacity: 1; visibility: visible; }

.success-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 3rem 2rem;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.success-overlay.open .success-modal { transform: scale(1); }
.success-icon {
    width: 80px; height: 80px;
    border-radius: 50%;
    background: rgba(46,213,115,0.1);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--accent-green);
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0%, 100% { box-shadow: 0 0 0 0 rgba(46,213,115,0.3); }
    50% { box-shadow: 0 0 0 15px rgba(46,213,115,0); }
}

/* ================================
   Form elements
================================ */
.form-control, .form-select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
    font-family: var(--font-family);
    transition: var(--transition);
}
.form-control:focus, .form-select:focus {
    background-color: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-control::placeholder { color: var(--text-muted); }

/* ================================
   Buttons
================================ */
.btn-gold {
    background: var(--gold);
    color: #0a0c10;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.7rem 1.5rem;
    font-family: var(--font-family);
    transition: var(--transition);
    cursor: pointer;
}
.btn-gold:hover {
    background: var(--gold-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--gold-glow);
}

.btn-outline-gold {
    border: 1.5px solid var(--gold);
    color: var(--gold);
    background: transparent;
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.4rem;
    font-family: var(--font-family);
    transition: var(--transition);
}
.btn-outline-gold:hover { background: var(--gold); color: #0a0c10; }

/* ================================
   Admin Cards
================================ */
.main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

/* ================================
   Tables (Dark Mode Overrides)
================================ */
.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-hover-bg: rgba(212, 175, 55, 0.06) !important;
    --bs-table-hover-color: var(--text-primary) !important;
    color: var(--text-primary) !important;
    vertical-align: middle;
    border-color: var(--border-color) !important;
}
.table > :not(caption) > * > * {
    background-color: transparent !important;
    color: var(--text-primary) !important;
    border-bottom-color: var(--border-color) !important;
}
.table thead th {
    border-bottom: 2px solid var(--border-color) !important;
    color: var(--gold) !important;
    font-weight: 700;
    font-size: 0.88rem;
    background-color: rgba(26, 31, 43, 0.6) !important;
}
.table tbody td {
    border-bottom: 1px solid var(--border-color) !important;
    font-size: 0.9rem;
    color: var(--text-primary) !important;
}
.table-hover tbody tr:hover > * {
    background-color: rgba(212, 175, 55, 0.06) !important;
    color: var(--text-primary) !important;
}

/* Dropdown Select Options styling */
select option {
    background-color: var(--bg-card) !important;
    color: #ffffff !important;
    padding: 8px 12px !important;
}

/* ================================
   Footer
================================ */
.store-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}
.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
}
.footer-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--gold);
    margin-bottom: 0.5rem;
}
.footer-text { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.social-links { display: flex; justify-content: center; gap: 12px; margin-bottom: 1.5rem; }
.social-link {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 1rem;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-3px); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }

/* ================================
   Animations
================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }

/* ================================
   Toast Notification
================================ */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
}
.toast-msg {
    background: var(--gold);
    color: #0a0c10;
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 8px 30px var(--gold-glow);
    animation: toastIn 0.4s ease, toastOut 0.4s ease 2s forwards;
    pointer-events: auto;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-10px); } }

/* ================================
   No Products Message
================================ */
.no-products {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}
.no-products i { font-size: 4rem; margin-bottom: 1rem; display: block; opacity: 0.2; }

/* ================================
   Responsive
================================ */
@media (max-width: 768px) {
    .search-box { width: 100%; order: 3; margin-top: 8px; }
    .header-inner { flex-wrap: wrap; }
    .hero-section { padding: 120px 1rem 50px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
    .product-img-wrap { height: 180px; }
    .product-info { padding: 0.8rem; }
    .product-name { font-size: 0.9rem; }
    .product-price { font-size: 1rem; }
    .category-section, .products-section { padding-left: 1rem; padding-right: 1rem; }
}

@media (max-width: 480px) {
    .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
    .product-img-wrap { height: 150px; }
    .product-add-btn { width: 34px; height: 34px; border-radius: 8px; }
}

/* ================================
   Print (hide for receipt)
================================ */
@media print {
    body { background: #fff !important; color: #000 !important; }
    .store-header, .store-footer, .cart-overlay, .cart-drawer { display: none !important; }
}

/* ================================
   Lightbox
================================ */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
.lightbox-content {
    max-width: 90%;
    max-height: 50vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    object-fit: contain;
    transition: transform 0.3s ease;
}
.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s ease;
}
.lightbox-prev:hover, .lightbox-next:hover {
    background: rgba(212, 175, 55, 0.8);
}
.lightbox-prev { right: 20px; }
.lightbox-next { left: 20px; }

.lightbox-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    overflow-x: auto;
    max-width: 90%;
    padding: 10px;
}
.lightbox-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
}
.lightbox-thumb:hover, .lightbox-thumb.active {
    opacity: 1;
    border-color: var(--primary-gold);
}
