/* ============================================
   SHOPPRIME - CLEAN LIGHT PREMIUM THEME
   Coral Red + Soft White + Warm Neutrals
   ============================================ */
:root {
  --primary: #e8463a;
  --primary-dark: #c93328;
  --primary-light: #ff6b5b;
  --primary-bg: #fff5f4;
  --secondary: #1c2b3a;
  --secondary-light: #2d3f52;
  --accent: #f97316;
  --teal: #0ea5a0;
  --gold: #f59e0b;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --dark: #0f172a;
  --text: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --white: #ffffff;
  --shadow-xs: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 4px 6px rgba(0,0,0,.05), 0 2px 4px rgba(0,0,0,.03);
  --shadow: 0 10px 25px rgba(0,0,0,.08), 0 4px 10px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.1), 0 8px 20px rgba(0,0,0,.06);
  --shadow-primary: 0 8px 24px rgba(232,70,58,.25);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: .2s ease;
  --transition-slow: .35s ease;
}

/* ====== RESET & BASE ====== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; font-size: 15px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
button { cursor: pointer; font-family: inherit; }
.container-xl { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ====== TOPBAR ====== */
.topbar { background: var(--secondary); color: #94a3b8; font-size: 13px; padding: 9px 0; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.topbar i { color: var(--primary-light); margin-right: 6px; }
.topbar a { color: #94a3b8; transition: color var(--transition); }
.topbar a:hover { color: #fff; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right span { color: #334155; }

/* ====== HEADER ====== */
.site-header { background: var(--white); box-shadow: 0 1px 0 var(--border), 0 4px 12px rgba(0,0,0,.04); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; gap: 24px; padding: 14px 0; }

/* Logo */
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-icon { width: 40px; height: 40px; background: var(--primary); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; flex-shrink: 0; }
.logo-name { font-size: 21px; font-weight: 800; color: var(--dark); line-height: 1; }
.logo-name strong { color: var(--primary); }
.logo-tagline { font-size: 11px; color: var(--text-muted); display: block; margin-top: 1px; }

/* Search */
.search-form { flex: 1; max-width: 520px; }
.search-box { display: flex; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; background: var(--bg); transition: all var(--transition); }
.search-box:focus-within { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(232,70,58,.1); }
.search-input { flex: 1; border: none; outline: none; padding: 10px 18px; font-size: 14px; background: transparent; color: var(--text); }
.search-input::placeholder { color: var(--text-muted); }
.search-btn { background: var(--primary); color: #fff; border: none; padding: 10px 20px; font-size: 15px; transition: background var(--transition); flex-shrink: 0; }
.search-btn:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.action-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; border: none; background: transparent; color: var(--text-secondary); border-radius: var(--radius-sm); transition: all var(--transition); text-decoration: none; cursor: pointer; }
.action-btn:hover { background: var(--primary-bg); color: var(--primary); }
.action-btn i { font-size: 19px; }
.action-label { font-size: 11px; font-weight: 600; }
.cart-btn { position: relative; }
.cart-badge { position: absolute; top: 4px; right: 8px; background: var(--primary); 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 #fff; }
.admin-btn { color: var(--primary) !important; }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 22px; padding: 8px; color: var(--text); }

/* ====== NAV ====== */
.main-nav { background: var(--white); border-top: 1px solid var(--border); }
.nav-list { display: flex; list-style: none; }
.nav-link { display: flex; align-items: center; gap: 7px; padding: 13px 16px; color: var(--text-secondary); font-size: 14px; font-weight: 500; transition: all var(--transition); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav-link:hover, .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--primary-bg); }
.nav-link i { font-size: 13px; opacity: .7; }
.has-dropdown { position: relative; }
.has-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu { position: absolute; top: calc(100% + 1px); left: 0; background: #fff; min-width: 220px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all .22s; z-index: 100; padding: 8px 0; border: 1px solid var(--border); border-top: 2px solid var(--primary); }
.dropdown-menu a { display: block; padding: 10px 18px; color: var(--text); font-size: 14px; transition: all var(--transition); }
.dropdown-menu a:hover { background: var(--primary-bg); color: var(--primary); padding-left: 24px; }
.dd-loading { padding: 16px 18px; color: var(--text-muted); font-size: 14px; }

/* ====== HERO ====== */
.hero-slide { min-height: 480px; display: flex; align-items: center; background: linear-gradient(120deg, #1c2b3a 0%, #2d3f52 60%, #1c2b3a 100%); position: relative; overflow: hidden; }
.default-hero { background: linear-gradient(120deg, var(--secondary) 0%, #2d4a5e 60%, #1a3345 100%); }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.hero-content { position: relative; z-index: 2; padding: 60px 0; color: #fff; max-width: 600px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(232,70,58,.9); color: #fff; padding: 5px 14px; border-radius: 20px; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 18px; }
.hero-title { font-size: clamp(28px, 4vw, 50px); font-weight: 800; line-height: 1.12; margin-bottom: 14px; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.75); margin-bottom: 32px; line-height: 1.65; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary { background: var(--primary); color: #fff; padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; transition: all var(--transition); box-shadow: var(--shadow-primary); }
.hero-btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.hero-btn-outline { border: 2px solid rgba(255,255,255,.4); color: #fff; padding: 13px 28px; border-radius: 50px; font-weight: 700; font-size: 15px; transition: all var(--transition); background: rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.hero-btn-outline:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); }
.hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 7px; z-index: 10; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); cursor: pointer; transition: all .3s; }
.hero-dot.active { background: var(--primary); width: 22px; border-radius: 4px; }

/* ====== FEATURES BAR ====== */
.features-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 18px 0; }
.features-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 13px; }
.feature-item i { font-size: 26px; color: var(--primary); flex-shrink: 0; }
.feature-item strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.feature-item span { font-size: 12px; color: var(--text-muted); }

/* ====== SECTION ====== */
.section { padding: 56px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.section-header h2 { font-size: 24px; font-weight: 800; color: var(--dark); }
.view-all { color: var(--primary); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; border: 1.5px solid var(--primary); border-radius: 50px; transition: all var(--transition); }
.view-all:hover { background: var(--primary); color: #fff; gap: 8px; }
.text-accent { color: var(--primary); }

/* ====== CATEGORIES ====== */
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px,1fr)); gap: 14px; }
.category-card { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; background: #fff; border-radius: var(--radius); border: 1.5px solid var(--border); transition: all var(--transition); text-align: center; box-shadow: var(--shadow-xs); }
.category-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow), 0 0 0 3px rgba(232,70,58,.08); }
.category-img { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all var(--transition); }
.category-card:hover .category-img { background: var(--primary); }
.category-img img { width: 100%; height: 100%; object-fit: cover; }
.category-img i { font-size: 26px; color: var(--primary); transition: color var(--transition); }
.category-card:hover .category-img i { color: #fff; }
.category-name { font-size: 13px; font-weight: 600; color: var(--text); }
.category-card:hover .category-name { color: var(--primary); }

/* ====== PRODUCT CARD ====== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(218px,1fr)); gap: 18px; }
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); transition: all var(--transition-slow); border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(232,70,58,.2); }
.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 1; background: var(--bg); }
.product-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.product-card:hover .product-img { transform: scale(1.07); }
.product-img-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #cbd5e1; font-size: 44px; }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-featured { position: absolute; top: 10px; right: 10px; background: var(--gold); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.product-actions { position: absolute; bottom: -52px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.3)); transition: bottom .28s; }
.product-card:hover .product-actions { bottom: 0; }
.action-icon { width: 36px; height: 36px; border-radius: 50%; background: #fff; border: none; display: flex; align-items: center; justify-content: center; color: var(--text); font-size: 14px; transition: all var(--transition); box-shadow: var(--shadow-sm); }
.action-icon:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.product-info { padding: 14px; }
.product-category { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--primary); margin-bottom: 4px; font-weight: 600; }
.product-title { font-size: 14px; font-weight: 600; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px; line-height: 1.4; transition: color var(--transition); }
.product-title:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 3px; margin-bottom: 8px; }
.product-rating i { font-size: 12px; color: #e2e8f0; }
.product-rating i.filled { color: var(--gold); }
.product-rating span { font-size: 12px; color: var(--text-muted); margin-left: 3px; }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-sale { font-size: 18px; font-weight: 800; color: var(--dark); }
.price-original, .price-was { text-decoration: line-through; color: var(--text-muted); font-size: 13px; }
.btn-add-cart { width: 100%; padding: 10px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 7px; }
.btn-add-cart:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.btn-add-cart:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; box-shadow: none; }

/* ====== OFFERS ====== */
.offers-section { padding: 40px 0; background: var(--primary-bg); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px,1fr)); gap: 18px; }
.offer-card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid #fecaca; position: relative; overflow: hidden; transition: all var(--transition); }
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); }
.offer-badge { display: inline-block; background: var(--primary-bg); color: var(--primary); padding: 4px 14px; border-radius: 20px; font-size: 13px; font-weight: 800; margin-bottom: 12px; border: 1.5px solid #fecaca; }
.offer-card h3 { font-size: 18px; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.offer-card p { color: var(--text-secondary); font-size: 14px; margin-bottom: 14px; line-height: 1.55; }
.coupon-code { background: var(--bg); padding: 8px 14px; border-radius: 8px; border: 1.5px dashed #fca5a5; font-size: 14px; margin-bottom: 14px; display: inline-block; }
.coupon-code strong { font-size: 15px; letter-spacing: 1.5px; color: var(--primary); }
.offer-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--primary); color: #fff; padding: 9px 22px; border-radius: 50px; font-weight: 700; font-size: 13px; transition: all var(--transition); }
.offer-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

/* ====== MID BANNER ====== */
.mid-banner { position: relative; overflow: hidden; max-height: 300px; }
.mid-banner img { width: 100%; height: 300px; object-fit: cover; }
.mid-banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(15,23,42,.8) 0%, rgba(15,23,42,.4) 55%, transparent 85%); display: flex; align-items: center; }
.mid-banner-overlay h2 { font-size: 34px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.mid-banner-overlay p { color: rgba(255,255,255,.8); font-size: 15px; margin-bottom: 20px; }
.btn-shop-now { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; padding: 12px 26px; border-radius: 50px; font-weight: 700; font-size: 14px; }

/* ====== PAGE HERO ====== */
.page-hero-sm { background: var(--secondary); color: #fff; padding: 36px 0; }
.page-hero-sm h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.breadcrumb { display: flex; align-items: center; gap: 7px; font-size: 13px; color: rgba(255,255,255,.5); }
.breadcrumb a { color: rgba(255,255,255,.65); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb i { font-size: 9px; }

/* ====== PRODUCT LIST ====== */
.product-page { padding: 28px 0 60px; }
.product-page-inner { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.filters-sidebar { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); position: sticky; top: 88px; border: 1px solid var(--border); }
.filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.filters-header h3 { font-size: 15px; font-weight: 700; }
.filters-close { display: none; background: none; border: none; font-size: 18px; color: var(--text-muted); cursor: pointer; }
.filter-section { margin-bottom: 22px; }
.filter-section h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--primary); margin-bottom: 10px; }
.filter-list { list-style: none; }
.filter-link { display: block; padding: 8px 10px; font-size: 14px; border-radius: var(--radius-sm); transition: all var(--transition); color: var(--text-secondary); }
.filter-link:hover, .filter-link.active { background: var(--primary-bg); color: var(--primary); font-weight: 600; }
.products-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.toolbar-left { display: flex; align-items: center; gap: 12px; }
.btn-filters-toggle { display: none; background: var(--primary); color: #fff; border: none; padding: 8px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 700; }
.results-count { font-size: 14px; color: var(--text-muted); }
.toolbar-right { display: flex; align-items: center; gap: 10px; }
.sort-select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; cursor: pointer; background: #fff; }
.sort-select:focus { border-color: var(--primary); }
.view-toggle { display: flex; gap: 3px; }
.view-btn { width: 34px; height: 34px; border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm); cursor: pointer; font-size: 13px; transition: all var(--transition); }
.view-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.no-products { text-align: center; padding: 80px 20px; color: var(--text-muted); grid-column: 1/-1; }
.no-products i { font-size: 52px; margin-bottom: 16px; display: block; color: #cbd5e1; }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; }
.page-btn { padding: 9px 15px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--text-secondary); font-size: 14px; font-weight: 600; transition: all var(--transition); }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-primary); }
.filters-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 200; }

/* ====== PRODUCT DETAIL ====== */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.gallery-main { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 1; background: var(--bg); position: relative; }
.main-img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery-badge { position: absolute; top: 14px; left: 14px; background: var(--primary); color: #fff; padding: 5px 14px; border-radius: 20px; font-weight: 700; font-size: 13px; }
.gallery-thumbs { display: flex; gap: 9px; margin-top: 10px; overflow-x: auto; padding-bottom: 3px; }
.thumb { width: 68px; height: 68px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid transparent; cursor: pointer; flex-shrink: 0; transition: border-color var(--transition); }
.thumb.active, .thumb:hover { border-color: var(--primary); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-brand { font-size: 12px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.product-detail-title { font-size: 24px; font-weight: 800; margin-bottom: 10px; line-height: 1.25; color: var(--dark); }
.detail-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.detail-rating i { color: #e2e8f0; font-size: 15px; }
.detail-rating i.filled { color: var(--gold); }
.detail-rating span { font-size: 14px; color: var(--text-muted); }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.price-current { font-size: 32px; font-weight: 800; color: var(--dark); }
.price-save { font-size: 13px; background: #dcfce7; color: var(--success); padding: 3px 10px; border-radius: 20px; font-weight: 700; }
.detail-short-desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 22px; line-height: 1.65; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.variant-section { margin-bottom: 18px; }
.variant-label { font-size: 14px; font-weight: 700; margin-bottom: 9px; display: block; color: var(--text); }
.size-options { display: flex; flex-wrap: wrap; gap: 7px; }
.size-btn { min-width: 44px; height: 44px; border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; transition: all var(--transition); padding: 0 12px; color: var(--text); }
.size-btn:hover, .size-btn.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.size-btn.disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.color-options { display: flex; gap: 9px; flex-wrap: wrap; }
.color-btn { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; cursor: pointer; transition: all var(--transition); box-shadow: var(--shadow-xs); }
.color-btn.selected { border-color: var(--dark); transform: scale(1.18); }
.qty-section { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn { width: 40px; height: 40px; border: none; background: var(--bg); font-size: 17px; font-weight: 700; cursor: pointer; transition: background var(--transition); color: var(--primary); }
.qty-btn:hover { background: var(--primary-bg); }
.qty-input { width: 60px; height: 40px; border: none; text-align: center; font-size: 15px; font-weight: 700; outline: none; color: var(--dark); }
.in-stock { color: var(--success); font-size: 13px; font-weight: 700; }
.low-stock { color: var(--warning); font-size: 13px; font-weight: 700; }
.out-stock { color: var(--danger); font-size: 13px; font-weight: 700; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.btn-cart-detail { flex: 1; padding: 14px 22px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 9px; transition: all var(--transition); }
.btn-cart-detail:hover { background: var(--primary-dark); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-cart-detail:disabled { background: #cbd5e1; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-buy-now { padding: 14px 22px; background: var(--secondary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 800; display: flex; align-items: center; gap: 8px; transition: all var(--transition); }
.btn-buy-now:hover { background: var(--secondary-light); transform: translateY(-1px); }
.btn-wishlist-detail { width: 50px; height: 50px; border: 1.5px solid var(--border); background: #fff; border-radius: var(--radius-sm); font-size: 20px; color: var(--text-muted); transition: all var(--transition); }
.btn-wishlist-detail:hover, .btn-wishlist-detail.active { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.product-meta { padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--text-secondary); }
.product-meta a { color: var(--primary); font-weight: 600; }
.product-tabs { margin-top: 44px; }
.tab-headers { display: flex; border-bottom: 2px solid var(--border); gap: 0; }
.tab-btn { padding: 13px 24px; border: none; background: transparent; font-size: 15px; font-weight: 700; color: var(--text-muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -2px; transition: all var(--transition); }
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { padding: 28px 0; }
.description-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.review-item { padding: 22px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 10px; }
.reviewer-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; flex-shrink: 0; }
.reviewer-info { flex: 1; }
.reviewer-info strong { display: block; margin-bottom: 3px; }
.verified-badge { font-size: 12px; color: var(--success); display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.review-stars { display: flex; gap: 2px; margin-top: 4px; }
.review-stars i { font-size: 12px; color: #e2e8f0; }
.review-stars i.filled { color: var(--gold); }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-title { font-weight: 700; margin-bottom: 5px; }
.review-comment { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.reviews-summary { display: flex; align-items: center; gap: 20px; padding: 22px; background: var(--primary-bg); border-radius: var(--radius); margin-bottom: 22px; border: 1px solid #fecaca; }
.rating-big { font-size: 52px; font-weight: 800; color: var(--primary); line-height: 1; }
.no-reviews { text-align: center; padding: 44px; color: var(--text-muted); }
.no-reviews i { font-size: 36px; margin-bottom: 12px; display: block; color: var(--gold); }
.shipping-info { display: flex; flex-direction: column; gap: 20px; }
.shipping-item { display: flex; gap: 15px; align-items: flex-start; }
.shipping-item i { font-size: 22px; color: var(--primary); margin-top: 2px; }
.shipping-item strong { display: block; margin-bottom: 4px; }
.shipping-item p { color: var(--text-secondary); font-size: 14px; }

/* ====== AUTH ====== */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 120px); }
.auth-card { padding: 56px 44px; display: flex; flex-direction: column; justify-content: center; max-width: 480px; margin: 0 auto; width: 100%; }
.auth-logo { font-size: 22px; font-weight: 800; color: var(--primary); margin-bottom: 26px; display: flex; align-items: center; gap: 8px; }
.auth-header h2 { font-size: 28px; font-weight: 800; margin-bottom: 6px; color: var(--dark); }
.auth-header p { color: var(--text-muted); margin-bottom: 30px; }
.auth-form { display: flex; flex-direction: column; gap: 18px; }
.input-icon-wrap { position: relative; }
.input-icon-wrap i:first-child { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; }
.input-icon-wrap .form-control { padding-left: 40px; }
.pass-toggle { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; }
.auth-btn { padding: 13px; background: var(--primary); color: #fff; border: none; border-radius: var(--radius-sm); font-size: 15px; font-weight: 700; transition: all var(--transition); display: flex; align-items: center; justify-content: center; gap: 9px; box-shadow: var(--shadow-primary); }
.auth-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.auth-footer { margin-top: 22px; text-align: center; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--primary); font-weight: 700; }
.auth-image { background: var(--secondary); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.auth-image::before { content: ''; position: absolute; width: 480px; height: 480px; background: rgba(232,70,58,.08); border-radius: 50%; top: -120px; right: -120px; }
.auth-image-content { color: #fff; padding: 56px; position: relative; z-index: 1; }
.auth-image-content h2 { font-size: 36px; font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
.auth-image-content p { font-size: 16px; color: rgba(255,255,255,.65); }

/* ====== FORM ====== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.form-control { width: 100%; padding: 10px 13px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 14px; outline: none; transition: all var(--transition); font-family: inherit; background: #fff; color: var(--text); }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,70,58,.1); }
.form-control::placeholder { color: #cbd5e1; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-size: 14px; font-weight: 600; }
.checkbox-label input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }

/* ====== CART ====== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-items { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.cart-header-row { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 10px; padding: 10px 0; border-bottom: 2px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--text-muted); }
.cart-item { display: grid; grid-template-columns: 3fr 1fr 1fr 1fr 40px; gap: 10px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-light); }
.cart-item-product { display: flex; align-items: center; gap: 13px; }
.cart-item-product img { width: 68px; height: 68px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-item-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.cart-item-variant { font-size: 12px; color: var(--primary); font-weight: 600; }
.cart-item-price, .cart-item-total { font-weight: 700; color: var(--dark); }
.cart-qty-control { display: flex; align-items: center; gap: 7px; }
.cart-qty-control .qty-btn { width: 28px; height: 28px; border: 1.5px solid var(--border); background: #fff; border-radius: 7px; font-size: 14px; font-weight: 700; color: var(--primary); transition: all var(--transition); }
.cart-qty-control .qty-btn:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.cart-remove-btn { background: none; border: none; color: var(--text-muted); font-size: 15px; transition: color var(--transition); }
.cart-remove-btn:hover { color: var(--danger); }

/* ====== SUMMARY ====== */
.cart-summary, .checkout-summary { position: sticky; top: 88px; }
.summary-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.summary-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; color: var(--dark); }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
.total-row { font-size: 17px; font-weight: 800; padding: 12px 0; color: var(--dark); }
.discount-row { color: var(--success); font-weight: 700; }
.summary-divider { border-top: 1.5px dashed var(--border); margin: 8px 0; }
.coupon-section { display: flex; gap: 7px; margin: 14px 0 7px; }
.coupon-section .form-control { flex: 1; }
.coupon-msg { font-size: 13px; padding: 4px 0; font-weight: 600; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.btn-checkout { padding: 15px; font-size: 15px; font-weight: 800; gap: 9px; }
.btn-block { display: flex; width: 100%; justify-content: center; align-items: center; }

/* ====== CHECKOUT ====== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.checkout-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); margin-bottom: 18px; border: 1px solid var(--border); }
.checkout-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 9px; color: var(--dark); }
.checkout-card h3 i { color: var(--primary); }
.checkout-steps { display: flex; align-items: center; margin-top: 16px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: rgba(255,255,255,.4); }
.step.active { color: #fff; }
.step span { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.step.active span { background: #fff; color: var(--primary); border-color: #fff; }
.step-line { flex: 1; height: 1.5px; background: rgba(255,255,255,.15); margin: 0 10px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-option { display: flex; align-items: center; gap: 13px; padding: 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition); }
.payment-option.active { border-color: var(--primary); background: var(--primary-bg); }
.payment-option i { font-size: 22px; color: var(--text-muted); width: 26px; }
.payment-option.active i { color: var(--primary); }
.payment-option strong { display: block; font-size: 14px; font-weight: 700; }
.payment-option span { font-size: 12px; color: var(--text-muted); }
.payment-option input { display: none; }
.checkout-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.checkout-item img { width: 50px; height: 50px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.checkout-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.checkout-item-info span:first-child { font-weight: 700; }
.checkout-item-info small { color: var(--text-muted); }
.checkout-item-price { font-weight: 800; white-space: nowrap; color: var(--dark); }
.secure-badge { text-align: center; margin-top: 13px; font-size: 12px; color: var(--text-muted); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; }
.secure-badge i { color: var(--success); }

/* ====== ORDERS ====== */
.order-confirm-icon { font-size: 72px; color: var(--success); }
.order-number-badge { display: inline-block; background: var(--primary-bg); padding: 11px 26px; border-radius: 50px; font-size: 17px; font-weight: 800; margin: 22px 0; border: 1.5px solid #fecaca; color: var(--primary); }
.confirm-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; text-align: left; }
.confirm-card { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.confirm-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 14px; color: var(--dark); }
.confirm-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--border-light); }
.confirm-item img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); }
.confirm-total { margin-top: 14px; font-size: 15px; font-weight: 800; text-align: right; color: var(--primary); }
.order-progress { display: flex; align-items: center; padding: 22px; background: #fff; border-radius: var(--radius); margin-bottom: 24px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.progress-dot { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; background: #fff; transition: all var(--transition); }
.progress-step.done .progress-dot { border-color: var(--primary); background: var(--primary); color: #fff; }
.progress-step.current .progress-dot { border-color: var(--primary); color: var(--primary); }
.progress-step span { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.progress-step.done span, .progress-step.current span { color: var(--primary); }
.progress-line { flex: 1; height: 2px; background: var(--border); border-radius: 2px; }
.progress-line.done { background: var(--primary); }
.order-status { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-processing { background: #dbeafe; color: #1e40af; }
.status-shipped { background: #d1fae5; color: #065f46; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-returned { background: #fef9c3; color: #854d0e; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 22px; }
.order-detail-item { display: flex; align-items: center; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--border-light); }
.order-detail-item img { width: 58px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.order-detail-item-info { flex: 1; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.order-detail-item-total { font-weight: 800; text-align: right; min-width: 80px; color: var(--dark); }
.order-detail-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.order-detail-header h2 { font-size: 22px; font-weight: 800; color: var(--dark); }
.order-detail-header p { color: var(--text-muted); font-size: 14px; }
.status-lg { font-size: 13px; padding: 6px 16px; }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.order-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); transition: all var(--transition); }
.order-card:hover { box-shadow: var(--shadow); border-color: rgba(232,70,58,.2); }
.order-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.order-date { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-light); }
.order-total span { font-size: 15px; }
.order-total strong { color: var(--primary); }
.order-items-preview { display: flex; gap: 9px; flex-wrap: wrap; }
.order-item-mini { display: flex; align-items: center; gap: 7px; background: var(--bg); padding: 6px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border-light); }
.order-item-mini img { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; }
.order-item-mini span { font-size: 13px; font-weight: 600; }
.order-item-mini small { font-size: 11px; color: var(--text-muted); display: block; }
.more-items { font-size: 13px; color: var(--text-muted); align-self: center; }

/* ====== WISHLIST ====== */
.wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px; }
.wishlist-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--border); transition: all var(--transition-slow); }
.wishlist-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.wishlist-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.wishlist-card-info { padding: 14px; }

/* ====== PROFILE ====== */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.profile-sidebar { position: sticky; top: 88px; }
.profile-card { background: #fff; border-radius: var(--radius); padding: 26px; text-align: center; box-shadow: var(--shadow-xs); margin-bottom: 14px; border: 1px solid var(--border); }
.profile-avatar { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; border: 3px solid var(--primary); }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-initials { width: 86px; height: 86px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; margin: 0 auto 14px; }
.profile-stats { display: flex; justify-content: center; gap: 28px; margin-top: 14px; }
.profile-stats div { display: flex; flex-direction: column; align-items: center; }
.profile-stats strong { font-size: 22px; font-weight: 800; color: var(--primary); }
.profile-stats span { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.profile-nav { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-xs); border: 1px solid var(--border); }
.profile-nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; color: var(--text-secondary); transition: all var(--transition); }
.profile-nav-link:hover, .profile-nav-link.active { background: var(--primary-bg); color: var(--primary); }
.profile-nav-link.logout { color: var(--danger); }
.profile-nav-link.logout:hover { background: #fee2e2; }
.profile-nav-link i { width: 17px; }

/* ====== STAR RATING ====== */
.star-rating { display: flex; gap: 8px; margin-bottom: 8px; }
.star-pick { font-size: 32px; color: #e2e8f0; cursor: pointer; transition: color var(--transition); }
.star-pick:hover, .star-pick.filled { color: var(--gold); }

/* ====== BUTTONS ====== */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 20px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; cursor: pointer; border: none; transition: all var(--transition); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-primary); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 6px 14px; font-size: 12px; }

/* ====== ALERTS & TOAST ====== */
.page-alert { padding: 13px 18px; display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; }
.page-alert.success { background: #f0fdf4; color: #166534; border-bottom: 3px solid var(--success); }
.page-alert.error { background: #fef2f2; color: #991b1b; border-bottom: 3px solid var(--danger); }
.page-alert button { margin-left: auto; background: none; border: none; cursor: pointer; font-size: 16px; opacity: .55; }
.page-alert button:hover { opacity: 1; }
.toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 9px; z-index: 9999; }
.toast { background: #fff; border-radius: var(--radius-sm); padding: 13px 18px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 600; min-width: 280px; transform: translateX(400px); transition: transform .32s cubic-bezier(.34,1.56,.64,1); border-left: 4px solid var(--primary); color: var(--text); }
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast i { font-size: 18px; }
.toast.success i { color: var(--success); }
.toast.error i { color: var(--danger); }

/* ====== EMPTY STATE ====== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state i { font-size: 56px; color: #cbd5e1; margin-bottom: 18px; display: block; }
.empty-state h2 { font-size: 20px; font-weight: 800; margin-bottom: 7px; color: var(--dark); }
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* ====== SIDEBAR & POPUP ADS ====== */
.home-with-sidebar { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
.home-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 88px; }
.sidebar-ad-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--border); transition: all var(--transition); background: #fff; }
.sidebar-ad-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sidebar-ad-card img { width: 100%; height: 150px; object-fit: cover; display: block; }
.sidebar-ad-info { padding: 13px; }
.sidebar-ad-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.sidebar-ad-info p { font-size: 12px; color: var(--text-muted); margin-bottom: 9px; line-height: 1.5; }
.sidebar-ad-cta { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--primary); }
.sidebar-ad-cta:hover { gap: 8px; }
.popup-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 9000; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); padding: 20px; }
.popup-ad { background: #fff; border-radius: var(--radius); overflow: hidden; max-width: 500px; width: 100%; box-shadow: var(--shadow-lg); position: relative; animation: popupIn .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes popupIn { from { transform: scale(.88) translateY(16px); opacity: 0; } to { transform: scale(1) translateY(0); opacity: 1; } }
.popup-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.95); border: none; font-size: 19px; line-height: 1; color: var(--dark); cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: all var(--transition); }
.popup-close:hover { background: var(--danger); color: #fff; transform: rotate(90deg); }
.popup-ad img { width: 100%; height: 220px; object-fit: cover; display: block; }
.popup-ad-body { padding: 22px; background: var(--secondary); color: #fff; }
.popup-ad-body h3 { font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.popup-ad-body p { font-size: 14px; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.popup-cta { display: inline-flex; align-items: center; gap: 7px; background: var(--primary); color: #fff; padding: 10px 22px; border-radius: 50px; font-weight: 700; font-size: 14px; transition: all var(--transition); }
.popup-cta:hover { background: var(--primary-dark); }

/* ====== FOOTER ====== */
.site-footer { background: var(--secondary); color: rgba(255,255,255,.55); margin-top: auto; }
.footer-top { padding: 56px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 44px; }
.footer-logo { font-size: 22px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo i { color: var(--primary); }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 9px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.07); color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; font-size: 14px; transition: all var(--transition); }
.footer-social a:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-col h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #fff; margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a { font-size: 14px; color: rgba(255,255,255,.5); transition: all var(--transition); }
.footer-col ul a:hover { color: var(--primary); padding-left: 4px; }
.footer-contact p { font-size: 14px; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-contact i { width: 16px; color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 18px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }

/* ====== SKELETON ====== */
@keyframes shimmer { 0% { background-position: -800px 0; } 100% { background-position: 800px 0; } }
.skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%); background-size: 1600px 100%; animation: shimmer 1.8s infinite; }

/* ====== RESPONSIVE ====== */
@media (max-width: 1024px) {
  .product-detail-grid, .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .confirm-details, .order-detail-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-with-sidebar { grid-template-columns: 1fr; }
  .home-sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar-ad-card { flex: 1; min-width: 220px; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .product-page-inner { grid-template-columns: 1fr; }
  .filters-sidebar { position: fixed; left: -260px; top: 0; height: 100vh; z-index: 300; overflow-y: auto; transition: left .3s; border-radius: 0; }
  .filters-sidebar.open { left: 0; }
  .filters-overlay.show { display: block; }
  .filters-close { display: block; }
  .btn-filters-toggle { display: flex; }
  .header-inner { flex-wrap: wrap; }
  .search-form { order: 3; width: 100%; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-image { display: none; }
  .mobile-menu-btn { display: block; }
  .main-nav { display: none; }
  .main-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .cart-header-row { display: none; }
  .cart-item { grid-template-columns: 1fr; gap: 8px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(3,1fr); }
  .products-grid { grid-template-columns: repeat(2,1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ====== NOTIFICATION BELL & PANEL ====== */
.notif-bell-wrap {
    position: relative;
}
.notif-bell-btn {
    position: relative;
}
.notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
    animation: notifPulse 2s infinite;
}
@keyframes notifPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.15); }
}

/* Panel */
.notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: -8px;
    width: 360px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 2000;
    overflow: hidden;
    animation: notifSlideIn .22s ease;
}
@keyframes notifSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.notif-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.notif-panel-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 7px;
}
.notif-panel-title i { color: var(--primary); }
.notif-mark-all {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 20px;
    transition: all var(--transition);
}
.notif-mark-all:hover { background: var(--primary-bg); }

/* Notification list */
.notif-list {
    max-height: 380px;
    overflow-y: auto;
}
.notif-list::-webkit-scrollbar { width: 4px; }
.notif-list::-webkit-scrollbar-track { background: transparent; }
.notif-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.notif-loading {
    padding: 32px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}
.notif-empty {
    padding: 40px 24px;
    text-align: center;
    color: var(--text-muted);
}
.notif-empty i { font-size: 36px; display: block; margin-bottom: 10px; color: #e2e8f0; }
.notif-empty p { font-size: 14px; }

/* Individual notification item */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition);
    position: relative;
    text-decoration: none;
    color: inherit;
}
.notif-item:hover { background: var(--bg); }
.notif-item.unread { background: #fff8f7; }
.notif-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
    border-radius: 0 2px 2px 0;
}
.notif-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.notif-info   { background: #eff6ff; color: #2563eb; }
.notif-success{ background: #f0fdf4; color: #16a34a; }
.notif-warning{ background: #fef3c7; color: #d97706; }
.notif-order  { background: var(--primary-bg); color: var(--primary); }
.notif-offer  { background: #fdf4ff; color: #7c3aed; }

.notif-body { flex: 1; min-width: 0; }
.notif-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-msg {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
}
.notif-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.notif-del-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition);
}
.notif-item:hover .notif-del-btn { opacity: 1; }
.notif-del-btn:hover { background: #fee2e2; color: var(--danger); }

.notif-panel-footer {
    padding: 11px 16px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: var(--bg);
}
.notif-panel-footer a {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.notif-panel-footer a:hover { text-decoration: underline; }

/* ====== ADMIN: Notification page ====== */
.notif-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.notif-type-info    { background: #eff6ff; color: #2563eb; }
.notif-type-success { background: #f0fdf4; color: #16a34a; }
.notif-type-warning { background: #fef3c7; color: #d97706; }
.notif-type-order   { background: var(--primary-bg); color: var(--primary); }
.notif-type-offer   { background: #fdf4ff; color: #7c3aed; }
