:root {
    --gold: #D4A843;
    --gold-light: #e8c76a;
    --gold-dark: #b8922f;
    --dark: #1a1a1a;
    --text: #2d2d2d;
    --text-light: #777;
    --text-muted: #aaa;
    --bg: #ffffff;
    --bg-subtle: #f8f8f8;
    --border: #eeeeee;
    --border-light: #f5f5f5;
    --danger: #e05050;
    --success: #2ecc71;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; }

/* ─── Top Bar ──────────────────────────────────────────────────────────── */
.top-bar { background: var(--dark); color: var(--gold); text-align: center; padding: 9px 20px; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; }

/* ─── Header ───────────────────────────────────────────────────────────── */
.header { background: var(--bg); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner { max-width: 1240px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; }
.logo img { height: 86px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a, .nav-link { font-weight: 500; font-size: 14px; color: var(--text-light); padding: 8px 16px; border-radius: 8px; transition: all var(--transition); text-transform: uppercase; letter-spacing: 0.6px; cursor: pointer; background: none; border: none; }
.nav a:hover, .nav-link:hover { color: var(--dark); background: var(--bg-subtle); }
.nav a.active { color: var(--gold); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }

.cart-btn { position: relative; background: none; border: none; cursor: pointer; padding: 8px; border-radius: 8px; transition: background var(--transition); color: var(--text); }
.cart-btn:hover { background: var(--bg-subtle); }
.cart-btn svg { width: 22px; height: 22px; }
.cart-badge { position: absolute; top: 2px; right: 2px; background: var(--gold); color: white; font-size: 10px; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }

/* ─── Mobile Menu ──────────────────────────────────────────────────────── */
.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.menu-toggle svg { width: 24px; height: 24px; }
.mobile-menu { display: none; position: fixed; inset: 0; background: white; z-index: 150; flex-direction: column; padding: 20px; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu .close-btn { align-self: flex-end; background: none; border: none; cursor: pointer; padding: 8px; color: var(--text); }
.mobile-menu a, .mobile-menu button { display: block; padding: 14px 0; font-size: 16px; font-weight: 500; color: var(--text); border: none; background: none; cursor: pointer; text-align: left; border-bottom: 1px solid var(--border-light); width: 100%; }
.mobile-menu .cat-link { padding-left: 20px; color: var(--text-light); font-size: 14px; }

/* ─── Banner Carousel ──────────────────────────────────────────────────── */
.banner-carousel { position: relative; width: 100%; height: clamp(240px, 42vw, 480px); overflow: hidden; background: var(--bg-subtle); }
.banner-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; }
.banner-slide.active { opacity: 1; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.55); }
.banner-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--dark), #333); }
.banner-content { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; padding: 24px; }
.banner-content h2 { font-size: clamp(22px, 4.5vw, 48px); font-weight: 800; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.banner-content p { font-size: clamp(14px, 2vw, 20px); font-weight: 300; opacity: 0.9; margin-bottom: 24px; }
.banner-dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.banner-dot { width: 10px; height: 10px; border-radius: 5px; border: none; cursor: pointer; background: rgba(255,255,255,0.4); transition: all 0.3s; }
.banner-dot.active { background: var(--gold); width: 28px; }

/* ─── Buttons ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; border: none; border-radius: var(--radius); cursor: pointer; padding: 11px 28px; transition: all var(--transition); letter-spacing: 0.2px; }
.btn-primary { background: var(--gold); color: white; }
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,168,67,0.35); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: white; }
.btn-dark { background: var(--dark); color: white; }
.btn-danger { background: var(--danger); color: white; }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

/* ─── Section ──────────────────────────────────────────────────────────── */
.section { max-width: 1240px; margin: 0 auto; padding: 50px 24px; }
.section-title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; text-align: center; margin-bottom: 8px; }
.section-subtitle { text-align: center; color: var(--text-light); font-size: 15px; margin-bottom: 36px; }

/* ─── Categories Home ──────────────────────────────────────────────────── */
.categories-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.category-home-card { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: #fff; border: 1px solid #eee; border-radius: 14px; text-decoration: none; color: inherit; transition: all var(--transition); animation: fadeInUp 0.5s ease both; }
.category-home-card:hover { border-color: var(--gold); box-shadow: 0 6px 24px rgba(212,168,67,0.12); transform: translateY(-2px); }
.cat-text { flex: 1; }
.cat-name { font-size: 16px; font-weight: 600; color: var(--dark); }
.cat-count { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.cat-arrow { color: #ddd; flex-shrink: 0; transition: color 0.2s, transform 0.2s; }
.category-home-card:hover .cat-arrow { color: var(--gold); transform: translateX(3px); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Products Grid ────────────────────────────────────────────────────── */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.product-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); position: relative; }
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.product-card .image-wrap { position: relative; padding-top: 100%; background: var(--bg-subtle); overflow: hidden; }
.product-card .image-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .image-wrap img { transform: scale(1.05); }
.product-card .placeholder-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; color: var(--text-muted); background: var(--bg-subtle); }
.product-card .badge-featured { position: absolute; top: 10px; left: 10px; background: var(--gold); color: white; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 700; z-index: 2; }
.product-card .badge-stock { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 20px; font-size: 10px; font-weight: 700; z-index: 2; }
.badge-instock { background: #d4edda; color: #155724; }
.badge-lowstock { background: #fff3cd; color: #856404; }
.badge-nostock { background: #f8d7da; color: #721c24; }
.product-card .info { padding: 18px; }
.product-card .sku { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-card .name { font-size: 15px; font-weight: 600; line-height: 1.3; margin-bottom: 4px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card .name a { color: var(--text); }
.product-card .name a:hover { color: var(--gold); }
.product-card .talle-info { font-size: 12px; color: var(--text-light); margin-bottom: 6px; }
.product-card .price { font-size: 20px; font-weight: 800; color: var(--gold); margin-bottom: 2px; }
.product-card .iva-note { font-size: 10px; color: var(--text-muted); margin-bottom: 12px; font-weight: 500; }

/* ─── Product Detail ───────────────────────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-gallery .main-image { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-subtle); aspect-ratio: 1; }
.product-gallery .main-image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery .thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.product-gallery .thumb { width: 72px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid var(--border); cursor: pointer; transition: border-color var(--transition); flex-shrink: 0; }
.product-gallery .thumb:hover, .product-gallery .thumb.active { border-color: var(--gold); }
.product-gallery .thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .cat-badge { display: inline-block; padding: 4px 14px; border-radius: 20px; font-size: 12px; font-weight: 600; background: var(--bg-subtle); color: var(--text-light); margin-bottom: 12px; }
.detail-info h1 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin-bottom: 6px; letter-spacing: -0.5px; line-height: 1.2; }
.detail-info .sku { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.detail-info .price { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--gold); margin-bottom: 4px; }
.detail-info .iva-label { font-size: 13px; color: var(--text-light); margin-bottom: 20px; font-weight: 500; }
.detail-info .desc { font-size: 15px; line-height: 1.8; color: var(--text-light); margin-bottom: 24px; }
.detail-info .meta-row { display: flex; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-info .meta-item { font-size: 13px; color: var(--text-light); }
.detail-info .meta-item strong { color: var(--text); font-weight: 600; }

.qty-selector { display: inline-flex; align-items: center; border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-right: 16px; }
.qty-selector button { width: 40px; height: 40px; border: none; background: var(--bg-subtle); cursor: pointer; font-size: 18px; font-weight: 600; color: var(--text); }
.qty-selector button:hover { background: var(--border); }
.qty-selector input { width: 50px; height: 40px; border: none; text-align: center; font-size: 15px; font-weight: 600; background: white; }

/* ─── Variant Selector ────────────────────────────────────────────────── */
.variant-selector { display: flex; flex-wrap: wrap; gap: 8px; }
.variant-btn { padding: 8px 20px; border: 2px solid var(--border); border-radius: 8px; background: white; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text); transition: all var(--transition); position: relative; }
.variant-btn:hover:not(:disabled) { border-color: var(--gold); }
.variant-btn.selected { border-color: var(--gold); background: rgba(212,168,67,0.08); color: var(--gold); }
.variant-btn.out-of-stock { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }
.variant-btn .vs-label { display: block; font-size: 9px; font-weight: 500; color: var(--text-muted); margin-top: 2px; text-decoration: none; }
.variant-btn.out-of-stock .vs-label { color: var(--danger); }

/* ─── Payment Methods ──────────────────────────────────────────────────── */
.payment-section { background: var(--bg-subtle); border-radius: var(--radius-lg); padding: 28px; margin-top: 32px; border: 1px solid var(--border); }
.payment-section h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.payment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.payment-item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: white; border: 1px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 500; }
.payment-item .pay-icon { font-size: 20px; }

/* ─── ARCA QR ──────────────────────────────────────────────────────────── */
.arca-qr { display: flex; align-items: center; gap: 12px; padding: 16px; background: white; border: 1px solid var(--border); border-radius: 10px; margin-top: 12px; }
.arca-qr img { height: 50px; }
.arca-qr span { font-size: 12px; color: var(--text-light); }

/* ─── Cart Sidebar ─────────────────────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.35); z-index: 200; opacity: 0; visibility: hidden; transition: all 0.3s; }
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: -460px; bottom: 0; width: min(440px, 92vw); background: white; z-index: 201; display: flex; flex-direction: column; box-shadow: -4px 0 30px rgba(0,0,0,0.1); transition: right 0.35s cubic-bezier(0.4,0,0.2,1); }
.cart-drawer.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.cart-header h3 { font-size: 18px; font-weight: 700; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.cart-item img { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; }
.cart-item .item-info { flex: 1; }
.cart-item .item-name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.cart-item .item-price { font-size: 14px; font-weight: 700; color: var(--gold); margin-bottom: 8px; }
.cart-item .item-controls { display: flex; align-items: center; gap: 8px; }
.cart-item .qty-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: white; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.cart-item .qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.cart-item .qty-num { font-size: 14px; font-weight: 600; min-width: 24px; text-align: center; }
.cart-item .remove-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; }
.cart-item .remove-btn:hover { color: var(--danger); }
.cart-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }
.cart-empty .icon { font-size: 48px; margin-bottom: 12px; }
.cart-total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.cart-total .amount { color: var(--gold); }
.cart-iva-note { font-size: 12px; color: var(--text-light); margin-bottom: 4px; text-align: right; }
.cart-factura-note { font-size: 11px; color: var(--gold-dark); font-weight: 600; margin-bottom: 14px; text-align: right; }
.min-order-warning { background: #fff3cd; color: #856404; padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-bottom: 14px; text-align: center; font-weight: 500; border: 1px solid #ffc107; }

/* ─── Contact ──────────────────────────────────────────────────────────── */
.contact-section { background: var(--bg-subtle); padding: 64px 24px; }
.contact-form { max-width: 620px; margin: 0 auto; background: white; padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 2fr 2fr 1fr; gap: 12px; }
.form-control { width: 100%; padding: 11px 16px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; transition: border-color var(--transition); background: white; color: var(--text); }
.form-control:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212,168,67,0.1); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-section-title { font-size: 13px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 14px; padding-top: 16px; border-top: 1px solid var(--border); }

/* ─── Chips ────────────────────────────────────────────────────────────── */
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { padding: 7px 18px; border-radius: 24px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all var(--transition); border: 1px solid var(--border); background: white; color: var(--text-light); text-decoration: none; }
.chip:hover, .chip.active { background: var(--gold); color: white; border-color: var(--gold); }

/* ─── Search ───────────────────────────────────────────────────────────── */
.search-bar { position: relative; width: min(340px, 100%); }
.search-bar input { width: 100%; padding: 10px 16px 10px 42px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; background: white; }
.search-bar input:focus { outline: none; border-color: var(--gold); }
.search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

/* ─── Breadcrumb ───────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); margin-bottom: 24px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--border); }

/* ─── Checkout summary ─────────────────────────────────────────────────── */
.checkout-summary { background: var(--bg-subtle); border-radius: var(--radius); padding: 16px; margin-top: 12px; }
.checkout-summary .line { display: flex; justify-content: space-between; font-size: 13px; margin: 4px 0; }
.checkout-summary .line.total { border-top: 1px solid var(--border); padding-top: 8px; margin-top: 8px; font-weight: 700; font-size: 16px; }
.checkout-summary .line.total .amount { color: var(--gold); }

/* ─── Alert ────────────────────────────────────────────────────────────── */
.alert { padding: 14px 20px; border-radius: var(--radius); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ─── Footer ───────────────────────────────────────────────────────────── */
.footer { background: var(--dark); color: white; padding: 52px 24px 24px; }
.footer-inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px; margin-bottom: 36px; }
.footer h4 { font-size: 14px; font-weight: 600; color: var(--gold); margin-bottom: 14px; }
.footer p, .footer a { color: #999; font-size: 13px; line-height: 1.7; }
.footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid #333; padding-top: 20px; text-align: center; color: #555; font-size: 12px; max-width: 1240px; margin: 0 auto; }
.footer-social { display: flex; gap: 12px; margin-top: 12px; }
.footer-social a { color: #888; font-size: 13px; transition: color 0.2s; }
.footer-social a:hover { color: var(--gold); }

/* ─── WhatsApp ─────────────────────────────────────────────────────────── */
.whatsapp-float { position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 20px rgba(37,211,102,0.4); z-index: 90; border: none; transition: transform 0.2s; }
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ─── Toast ────────────────────────────────────────────────────────────── */
.toast { position: fixed; bottom: 90px; right: 24px; background: var(--dark); color: white; padding: 12px 24px; border-radius: var(--radius); font-size: 14px; font-weight: 500; z-index: 300; box-shadow: var(--shadow-lg); animation: slideUp 0.3s ease, fadeOut 0.3s ease 2.2s forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeOut { to { opacity: 0; } }

/* ─── Admin ────────────────────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar { width: 240px; background: var(--dark); color: white; padding: 24px 0; flex-shrink: 0; display: flex; flex-direction: column; position: fixed; top: 0; left: 0; bottom: 0; overflow-y: auto; z-index: 50; }
.admin-sidebar .sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid #333; }
.admin-sidebar .sidebar-logo img { height: 36px; }
.admin-sidebar nav { padding: 16px 0; flex: 1; }
.admin-sidebar a { display: flex; align-items: center; gap: 12px; padding: 12px 24px; color: #999; font-size: 14px; font-weight: 500; transition: all var(--transition); }
.admin-sidebar a:hover { color: white; background: rgba(255,255,255,0.05); }
.admin-sidebar a.active { color: var(--gold); background: rgba(212,168,67,0.08); border-right: 3px solid var(--gold); }
.admin-main { flex: 1; background: var(--bg-subtle); margin-left: 240px; min-width: 0; }
.admin-header { background: white; padding: 18px 32px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-header h1 { font-size: 20px; font-weight: 700; }
.admin-content { padding: 32px; }
.admin-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 24px; }
.admin-card .card-header { padding: 18px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.admin-card .card-header h3 { font-size: 16px; font-weight: 700; }
.admin-card .card-body { padding: 24px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-subtle); white-space: nowrap; }
.admin-table td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:hover td { background: var(--bg-subtle); }
.admin-table .thumb { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--bg-subtle); }
.admin-form { max-width: 700px; }
.admin-form .form-group { margin-bottom: 20px; }
.admin-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
select.form-control { appearance: auto; -webkit-appearance: auto; cursor: pointer; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.stat-card .label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 4px; }
.stat-card .value.gold { color: var(--gold); }
.img-preview { width: 120px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--bg-subtle); margin-top: 8px; }
.multi-img-preview { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.multi-img-preview .thumb-prev { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; border: 1px solid var(--border); }
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg-subtle); padding: 24px; }
.login-card { background: white; border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.login-card .logo-wrap { text-align: center; margin-bottom: 32px; }
.login-card .logo-wrap img { height: 56px; margin: 0 auto 16px; }
.login-card .logo-wrap h2 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.login-card .logo-wrap p { font-size: 14px; color: var(--text-muted); margin: 0; }
.login-error { background: #fef2f2; color: #dc2626; padding: 12px 16px; border-radius: 10px; font-size: 14px; margin-bottom: 20px; border: 1px solid #fecaca; text-align: center; }

/* ─── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; gap: 28px; }
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
    .admin-content { padding: 16px; }
    .admin-header { padding: 14px 16px; }
    .form-row-3 { grid-template-columns: 1fr 1fr; }
    .admin-table td, .admin-table th { padding: 10px 8px; font-size: 12px; }
}
@media (max-width: 768px) {
    .nav { display: none; }
    .menu-toggle { display: block; }
    .header-actions .btn { display: none; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
    .product-card .info { padding: 12px; }
    .product-card .name { font-size: 13px; min-height: 34px; }
    .product-card .price { font-size: 17px; }
    .form-row { grid-template-columns: 1fr; }
    .form-row-3 { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .section { padding: 36px 16px; }
    .categories-home-grid { grid-template-columns: 1fr; }
    .payment-grid { grid-template-columns: 1fr 1fr; }
    .admin-form .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .banner-carousel { height: 200px; }
    .payment-grid { grid-template-columns: 1fr; }
}
