/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --gray: #64748b;
    --light: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all .3s ease;
}
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; color: var(--dark); background: var(--light); line-height: 1.6; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; }

/* ===== HEADER ===== */
.header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-top { background: var(--dark); color: var(--white); padding: 6px 0; font-size: .8rem; text-align: center; }
.header-main { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; max-width: 1280px; margin: 0 auto; gap: 16px; }
.logo img { height: 60px; object-fit: contain; }
.search-bar { flex: 1; max-width: 500px; display: flex; }
.search-bar input { flex: 1; padding: 10px 16px; border: 2px solid var(--border); border-right: none; border-radius: var(--radius) 0 0 var(--radius); font-size: .95rem; outline: none; transition: var(--transition); }
.search-bar input:focus { border-color: var(--primary); }
.search-bar button { padding: 10px 18px; background: var(--primary); color: var(--white); border: none; border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; transition: var(--transition); }
.search-bar button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.btn-icon { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px; border-radius: var(--radius); cursor: pointer; transition: var(--transition); background: none; border: none; color: var(--dark); font-size: .7rem; position: relative; }
.btn-icon:hover { background: var(--light); color: var(--primary); }
.btn-icon i { font-size: 1.3rem; }
.cart-badge { position: absolute; top: 2px; right: 2px; background: var(--danger); color: var(--white); border-radius: 50%; width: 18px; height: 18px; font-size: .65rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }

/* NAV */
.nav { background: var(--primary); }
.nav-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; padding: 0 20px; }
.nav-links { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--white); padding: 14px 18px; display: block; font-size: .9rem; transition: var(--transition); white-space: nowrap; }
.nav a:hover, .nav a.active { background: var(--primary-dark); }
.nav .dropdown { position: relative; }
.nav .dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); min-width: 200px; box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius) var(--radius); z-index: 999; }
.nav .dropdown:hover .dropdown-menu { display: block; }
.nav .dropdown-menu a { color: var(--dark); padding: 10px 16px; border-bottom: 1px solid var(--border); display: block; }
.nav .dropdown-menu a:hover { background: var(--light); color: var(--primary); }
.hamburger { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; padding: 10px; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: var(--white); padding: 80px 20px; text-align: center; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 16px; }
.hero p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--white); border-color: var(--secondary); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-white { background: var(--white); color: var(--primary); }
.btn-white:hover { background: var(--light); }
.btn-danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.btn-success { background: var(--success); color: var(--white); border-color: var(--success); }
.btn-sm { padding: 6px 14px; font-size: .85rem; }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: center; }

/* ===== CONTAINER ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { font-size: 1.8rem; color: var(--dark); margin-bottom: 8px; }
.section-title p { color: var(--gray); }

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; }
.product-card { background: var(--white); border-radius: var(--radius-lg); overflow: visible; box-shadow: var(--shadow); transition: var(--transition); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-img { position: relative; overflow: hidden; height: 200px; background: var(--light); border-radius: var(--radius-lg) var(--radius-lg) 0 0; display: flex; align-items: center; justify-content: center; }
.product-img a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: var(--transition); cursor: zoom-in; }
.product-card:hover .product-img img { transform: scale(1.03); }
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--danger); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; z-index: 1; }
.product-actions { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: var(--transition); z-index: 1; }
.product-card:hover .product-actions { opacity: 1; }
.product-actions button { width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); transition: var(--transition); }
.product-actions button:hover { background: var(--primary); color: var(--white); }
.product-info { padding: 16px; }
.product-category { font-size: .75rem; color: var(--primary); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }

/* ===== IMAGE ZOOM LENS ===== */
.img-zoom-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.75); z-index: 9998; cursor: zoom-out; animation: fadeInOverlay .2s ease; }
.img-zoom-overlay.active { display: flex; align-items: center; justify-content: center; }
.img-zoom-box { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; animation: zoomIn .25s ease; }
.img-zoom-box img { max-width: 88vw; max-height: 88vh; object-fit: contain; border-radius: var(--radius-lg); box-shadow: 0 25px 60px rgba(0,0,0,.5); background: var(--white); padding: 12px; }
.img-zoom-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; background: var(--danger); color: #fff; border: none; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); z-index: 9999; transition: var(--transition); }
.img-zoom-close:hover { background: #c0392b; transform: scale(1.1); }
.img-zoom-hint { position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: .8rem; white-space: nowrap; }

/* Tooltip de lupa al hover sobre la imagen */
.zoom-lupa { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .9rem; opacity: 0; transition: var(--transition); pointer-events: none; z-index: 2; }
.product-img:hover .zoom-lupa { opacity: 1; }
@keyframes fadeInOverlay { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoomIn { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.product-name { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: var(--dark); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-rating { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.stars { color: var(--secondary); font-size: .85rem; }
.rating-count { font-size: .8rem; color: var(--gray); }
.product-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.price-old { font-size: .9rem; color: var(--gray); text-decoration: line-through; }
.product-stock { font-size: .8rem; color: var(--success); margin-bottom: 12px; }
.product-stock.low { color: var(--warning); }
.product-stock.out { color: var(--danger); }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.category-card { background: var(--white); border-radius: var(--radius-lg); padding: 24px 16px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.category-card:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.category-card i { font-size: 2rem; margin-bottom: 10px; color: var(--primary); }
.category-card:hover i { color: var(--white); }
.category-card span { font-size: .9rem; font-weight: 600; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-control { width: 100%; padding: 10px 14px; border: 2px solid var(--border); border-radius: var(--radius); font-size: .95rem; transition: var(--transition); background: var(--white); }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-control.error { border-color: var(--danger); }
.form-error { font-size: .8rem; color: var(--danger); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ===== ALERTS ===== */
.alert { padding: 12px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.alert-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--success); }
.alert-danger { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--danger); }
.alert-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--warning); }
.alert-info { background: #dbeafe; color: #1e40af; border-left: 4px solid var(--info); }

/* ===== CARDS ===== */
.card { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-header h3 { font-size: 1rem; font-weight: 700; }
.card-body { padding: 20px; }

/* ===== TABLES ===== */
.table-responsive { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); font-size: .9rem; }
th { background: var(--light); font-weight: 700; color: var(--gray); text-transform: uppercase; font-size: .75rem; letter-spacing: .05em; }
tr:hover td { background: #f8fafc; }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700; }
.badge-pendiente_pago { background: #fef3c7; color: #92400e; }
.badge-confirmado { background: #dbeafe; color: #1e40af; }
.badge-preparacion { background: #ede9fe; color: #5b21b6; }
.badge-en_camino { background: #d1fae5; color: #065f46; }
.badge-entregado { background: #d1fae5; color: #065f46; }
.badge-cancelado { background: #fee2e2; color: #991b1b; }

/* ===== ORDER TRACKER ===== */
.order-tracker { display: flex; align-items: center; justify-content: center; padding: 30px 0; flex-wrap: wrap; gap: 0; }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 80px; position: relative; }
.tracker-step::before { content: ''; position: absolute; top: 20px; left: -50%; width: 100%; height: 3px; background: var(--border); z-index: 0; }
.tracker-step:first-child::before { display: none; }
.tracker-step.active::before, .tracker-step.done::before { background: var(--primary); }
.tracker-icon { width: 42px; height: 42px; border-radius: 50%; background: var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--gray); z-index: 1; transition: var(--transition); }
.tracker-step.active .tracker-icon { background: var(--primary); color: var(--white); box-shadow: 0 0 0 4px rgba(37,99,235,.2); }
.tracker-step.done .tracker-icon { background: var(--success); color: var(--white); }
.tracker-label { font-size: .75rem; font-weight: 600; color: var(--gray); text-align: center; }
.tracker-step.active .tracker-label { color: var(--primary); }
.tracker-step.done .tracker-label { color: var(--success); }

/* ===== ADMIN LAYOUT ===== */
.admin-wrapper { display: flex; min-height: 100vh; }
.sidebar { width: 260px; background: var(--dark); color: var(--white); flex-shrink: 0; display: flex; flex-direction: column; }
.sidebar-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,.1); text-align: center; }
.sidebar-logo img { height: 50px; }
.sidebar-logo span { display: block; font-size: .8rem; opacity: .6; margin-top: 4px; }
.sidebar-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.sidebar-nav a { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,.7); font-size: .9rem; transition: var(--transition); }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,.1); color: var(--white); border-left: 3px solid var(--primary); }
.sidebar-nav a i { width: 20px; text-align: center; }
.sidebar-section { padding: 8px 20px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4); margin-top: 8px; }
.admin-content { flex: 1; overflow-x: hidden; }
.admin-topbar { background: var(--white); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.admin-topbar h1 { font-size: 1.2rem; }
.admin-main { padding: 24px; }

/* ===== STATS CARDS ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 24px; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.stat-icon { width: 52px; height: 52px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-icon.blue { background: #dbeafe; color: var(--primary); }
.stat-icon.green { background: #d1fae5; color: var(--success); }
.stat-icon.yellow { background: #fef3c7; color: var(--warning); }
.stat-icon.red { background: #fee2e2; color: var(--danger); }
.stat-info h3 { font-size: 1.6rem; font-weight: 700; }
.stat-info p { font-size: .8rem; color: var(--gray); }

/* ===== COMMENTS ===== */
.comment { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.comment.admin-comment { border-left: 4px solid var(--primary); background: #eff6ff; }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.comment-author { font-weight: 700; font-size: .9rem; }
.comment-date { font-size: .8rem; color: var(--gray); }
.comment-text { font-size: .9rem; color: var(--dark); }
.comment-admin-badge { background: var(--primary); color: var(--white); font-size: .7rem; padding: 2px 8px; border-radius: 20px; }

/* ===== CART ===== */
.cart-item { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); }
.cart-item img { width: 80px; height: 80px; object-fit: contain; background: var(--light); padding: 4px; border-radius: var(--radius); }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-price { color: var(--primary); font-weight: 700; }
.qty-control { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 30px; height: 30px; border: 2px solid var(--border); border-radius: var(--radius); background: var(--white); cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-input { width: 50px; text-align: center; border: 2px solid var(--border); border-radius: var(--radius); padding: 4px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--white); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: .9rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: rgba(255,255,255,.8); padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 32px; }
.footer-col h4 { color: var(--white); margin-bottom: 16px; font-size: 1rem; }
.footer-col a { display: block; color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; text-align: center; font-size: .85rem; color: rgba(255,255,255,.4); }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.social-links a:hover { background: var(--primary); }

/* ===== MODAL ===== */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 2000; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; }
.modal { background: var(--white); border-radius: var(--radius-lg); max-width: 500px; width: 100%; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-close { background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--gray); }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-gallery .main-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 12px; }
.product-gallery .main-img img { width: 100%; height: 400px; object-fit: contain; background: var(--light); padding: 12px; }
.thumb-list { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-list img { width: 70px; height: 70px; object-fit: contain; background: var(--light); padding: 4px; border-radius: var(--radius); cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.thumb-list img.active, .thumb-list img:hover { border-color: var(--primary); }
.product-detail-info h1 { font-size: 1.6rem; margin-bottom: 12px; }
.product-detail-price { font-size: 2rem; font-weight: 700; color: var(--primary); margin-bottom: 16px; }
.product-detail-price .old-price { font-size: 1.1rem; color: var(--gray); text-decoration: line-through; margin-left: 10px; }

/* Normalizar fuente en descripción y características al mostrar en página */
.producto-descripcion, .producto-caracteristicas {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: .95rem;
    line-height: 1.7;
    color: var(--gray);
}
.producto-descripcion *, .producto-caracteristicas * {
    font-family: 'Segoe UI', system-ui, sans-serif !important;
    font-size: .95rem !important;
    line-height: 1.7 !important;
    background: transparent !important;
}
/* Conservar formato visual */
.producto-descripcion strong, .producto-caracteristicas strong,
.producto-descripcion b, .producto-caracteristicas b { font-weight: 700; }
.producto-descripcion em, .producto-caracteristicas em,
.producto-descripcion i, .producto-caracteristicas i { font-style: italic; }
.producto-descripcion u, .producto-caracteristicas u { text-decoration: underline; }
.producto-descripcion s, .producto-caracteristicas s { text-decoration: line-through; }
.producto-descripcion ul, .producto-caracteristicas ul { padding-left: 20px; list-style: disc; }
.producto-descripcion ol, .producto-caracteristicas ol { padding-left: 20px; list-style: decimal; }
.producto-descripcion p, .producto-caracteristicas p { margin-bottom: 8px; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--gray); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { color: var(--gray); }

/* ===== PROFILE ===== */
.profile-layout { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.profile-sidebar { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.profile-avatar { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 30px; text-align: center; color: var(--white); }
.profile-avatar .avatar { width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 12px; }
.profile-menu a { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-bottom: 1px solid var(--border); font-size: .9rem; transition: var(--transition); }
.profile-menu a:hover, .profile-menu a.active { background: var(--light); color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .product-detail { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
    .admin-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
}
@media (max-width: 768px) {
    .header-main { flex-wrap: wrap; }
    .search-bar { order: 3; max-width: 100%; width: 100%; }
    .nav-inner { flex-wrap: wrap; }
    .nav a { padding: 10px 12px; font-size: .85rem; }
    .hamburger { display: block; }
    .nav-links { display: none; width: 100%; flex-direction: column; }
    .nav-links.open { display: flex; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .order-tracker { gap: 8px; }
    .tracker-step::before { display: none; }
    .hero { padding: 50px 20px; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr 1fr; }
    .cart-item { flex-wrap: wrap; }
}
