  /* ===== CSS VARIABLES ===== */
  :root {
    --navy: #0a0e1a;
    --navy2: #111827;
    --blue: #1d4ed8;
    --blue-light: #3b82f6;
    --tick: #1da1f2;
    --gold: #c9a84c;
    --white: #f8fafc;
    --gray: #6b7280;
    --gray-light: #e5e7eb;
    --gray-bg: #f1f5f9;
    --red: #ef4444;
    --green: #22c55e;
    --radius: 10px;
    --shadow: 0 4px 24px rgba(0,0,0,0.10);
    --shadow-md: 0 8px 40px rgba(0,0,0,0.15);
  }

  * { margin:0; padding:0; box-sizing:border-box; }
  html { scroll-behavior: smooth; }
  body {
    font-family: 'DM Sans', sans-serif;
    background: #0a0e1a;
    color: #e8eaf0;
    min-height: 100vh;
  }

  /* ===== UTILITY ===== */
  .hidden { display:none !important; }
  .btn {
    display:inline-flex; align-items:center; gap:8px;
    padding:12px 28px; border-radius:var(--radius);
    border:none; cursor:pointer; font-family:inherit;
    font-weight:600; font-size:15px; transition:all 0.2s;
    text-decoration:none;
  }
  .btn-primary { background:var(--blue); color:#fff; }
  .btn-primary:hover { background:#1a43b8; transform:translateY(-1px); }
  .btn-outline { background:transparent; color:#fff; border:2px solid rgba(255,255,255,0.3); }
  .btn-outline:hover { background:rgba(255,255,255,0.08); border-color:#fff; }
  .btn-gold { background:var(--gold); color:#fff; }
  .btn-gold:hover { background:#b8922f; }
  .btn-danger { background:var(--red); color:#fff; }
  .btn-sm { padding:8px 18px; font-size:13px; }
  .badge {
    display:inline-block; padding:3px 10px; border-radius:20px;
    font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.5px;
  }
  .badge-blue { background:var(--blue); color:#fff; }
  .badge-gold { background:var(--gold); color:#fff; }
  .badge-green { background:var(--green); color:#fff; }
  .badge-red { background:var(--red); color:#fff; }
  .tag-new { background:#dcfce7; color:#15803d; }
  .tag-sale { background:#fee2e2; color:#b91c1c; }
  input, select, textarea {
    width:100%; padding:12px 16px; border:1.5px solid #2a3550;
    border-radius:var(--radius); font-family:inherit; font-size:15px;
    transition:border 0.2s; outline:none; background:#12151f; color:#e8eaf0;
  }
  input::placeholder, textarea::placeholder { color:#6b7280; }
  input:focus, select:focus, textarea:focus { border-color:var(--blue); }
  label { display:block; margin-bottom:6px; font-weight:500; font-size:14px; color:#c8cede; }
  .form-group { margin-bottom:18px; }
  .form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
  .error-msg { color:var(--red); font-size:13px; margin-top:4px; }
  .success-msg { color:var(--green); font-size:13px; margin-top:4px; }
  .divider { height:1px; background:var(--gray-light); margin:24px 0; }
  .text-center { text-align:center; }
  .text-right { text-align:right; }
  .mt-1 { margin-top:8px; } .mt-2 { margin-top:16px; } .mt-3 { margin-top:24px; }
  .mb-1 { margin-bottom:8px; } .mb-2 { margin-bottom:16px; } .mb-3 { margin-bottom:24px; }

  /* ===== TOAST ===== */
  #toast-container {
    position:fixed; top:80px; right:20px; z-index:9999;
    display:flex; flex-direction:column; gap:10px;
  }
  .toast {
    background:var(--navy); color:#fff; padding:14px 20px; border-radius:var(--radius);
    box-shadow:var(--shadow-md); font-size:14px; min-width:260px; max-width:360px;
    display:flex; align-items:center; gap:10px;
    animation:slideIn 0.3s ease;
  }
  .toast.success { border-left:4px solid var(--green); }
  .toast.error { border-left:4px solid var(--red); }
  .toast.info { border-left:4px solid var(--tick); }
  @keyframes slideIn { from { transform:translateX(120%); opacity:0; } to { transform:none; opacity:1; } }

  /* ===== HEADER / NAV ===== */
  header {
    position:sticky; top:0; z-index:1000;
    background:var(--navy); color:#fff;
    box-shadow:0 2px 20px rgba(0,0,0,0.3);
  }
  .header-top {
    background:#060a14; padding:6px 0;
    font-size:12px; color:var(--gray); text-align:center; letter-spacing:.5px;
  }
  .header-main {
    display:flex; align-items:center; gap:20px;
    padding:14px 40px; max-width:1400px; margin:0 auto;
  }
  .logo {
    display:flex; align-items:center; gap:10px;
    text-decoration:none; flex-shrink:0;
  }
  .logo-icon {
    width:42px; height:42px; background:var(--blue);
    border-radius:10px; display:flex; align-items:center;
    justify-content:center; font-size:20px;
  }
  .logo-text { line-height:1; }
  .logo-text .brand { font-family:'Bebas Neue',sans-serif; font-size:22px; color:#fff; letter-spacing:2px; }
  .logo-text .sub { font-size:10px; color:var(--tick); letter-spacing:3px; text-transform:uppercase; }
  .search-bar {
    flex:1; max-width:600px; position:relative;
  }
  .search-bar input {
    background:#1a2035; border:1.5px solid #2a3550; color:#fff; padding-right:50px;
  }
  .search-bar input::placeholder { color:var(--gray); }
  .search-bar input:focus { border-color:var(--blue); background:#1f2540; }
  .search-bar button {
    position:absolute; right:8px; top:50%; transform:translateY(-50%);
    background:var(--blue); border:none; border-radius:7px; width:34px; height:34px;
    cursor:pointer; display:flex; align-items:center; justify-content:center; color:#fff;
    font-size:16px; transition:.2s;
  }
  .search-bar button:hover { background:var(--blue-light); }
  .header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
  .icon-btn {
    background:transparent; border:none; color:#fff; cursor:pointer;
    width:44px; height:44px; border-radius:var(--radius); display:flex;
    align-items:center; justify-content:center; font-size:20px;
    position:relative; transition:.2s;
  }
  .icon-btn:hover { background:#1a2035; }
  .icon-btn .count {
    position:absolute; top:4px; right:4px; background:var(--red);
    color:#fff; border-radius:50%; width:18px; height:18px;
    font-size:10px; display:flex; align-items:center; justify-content:center;
    font-weight:700;
  }
  .nav-links {
    background:#0d1326; border-top:1px solid #1a2035;
  }
  .nav-links ul {
    display:flex; align-items:center; gap:0;
    max-width:1400px; margin:0 auto; padding:0 40px;
    list-style:none;
  }
  .nav-links ul li a {
    display:flex; align-items:center; gap:6px;
    padding:12px 18px; color:#ccc; text-decoration:none;
    font-size:14px; font-weight:500; transition:.2s;
    border-bottom:3px solid transparent;
  }
  .nav-links ul li a:hover,
  .nav-links ul li a.active { color:#fff; border-bottom-color:var(--blue); }
  .nav-links ul li a.active { color:var(--tick); border-bottom-color:var(--tick); }

  /* ===== PAGES ===== */
  .page { display:none; }
  .page.active { display:block; }

  /* ===== HERO ===== */
  .hero {
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1b3d 50%, #091428 100%);
    min-height:480px; display:flex; align-items:center; padding:60px 40px;
    position:relative; overflow:hidden;
  }
  .hero::before {
    content:''; position:absolute; inset:0;
    background:radial-gradient(ellipse at 70% 50%, rgba(29,78,216,0.18) 0%, transparent 65%);
  }
  .hero-content { max-width:1400px; margin:0 auto; width:100%; position:relative; z-index:1; }
  .hero-text { max-width:600px; }
  .hero-eyebrow { color:var(--tick); font-size:13px; font-weight:700; letter-spacing:3px; text-transform:uppercase; margin-bottom:16px; }
  .hero-title {
    font-family:'Bebas Neue',sans-serif; font-size:80px; line-height:.95;
    color:#fff; letter-spacing:2px; margin-bottom:20px;
  }
  .hero-title span { color:var(--tick); }
  .hero-desc { color:#94a3b8; font-size:17px; line-height:1.7; margin-bottom:32px; max-width:480px; }
  .hero-actions { display:flex; gap:14px; flex-wrap:wrap; }
  .hero-stats {
    display:flex; gap:40px; margin-top:50px; padding-top:40px;
    border-top:1px solid rgba(255,255,255,0.08);
  }
  .hero-stat .num { font-family:'Bebas Neue',sans-serif; font-size:42px; color:#fff; }
  .hero-stat .num span { color:var(--tick); }
  .hero-stat .lbl { color:var(--gray); font-size:13px; }

  /* ===== CATEGORY STRIP ===== */
  .category-strip {
    background:#0d1220; border-bottom:1px solid #1e2433;
    padding:20px 40px;
  }
  .category-strip-inner {
    max-width:1400px; margin:0 auto;
    display:flex; gap:12px; overflow-x:auto; padding-bottom:4px;
  }
  .cat-pill {
    display:flex; align-items:center; gap:8px;
    padding:10px 20px; border-radius:30px; border:1.5px solid #2a3550;
    background:#12151f; cursor:pointer; white-space:nowrap; font-size:14px;
    font-weight:500; color:#c8cede; transition:.2s; flex-shrink:0;
  }
  .cat-pill:hover, .cat-pill.active {
    background:var(--blue); color:#fff; border-color:var(--blue);
  }
  .cat-pill .icon { font-size:18px; }

  /* ===== SECTION ===== */
  .section { padding:50px 40px; max-width:1400px; margin:0 auto; }
  .section-header {
    display:flex; align-items:center; justify-content:space-between;
    margin-bottom:28px;
  }
  .section-title { font-family:'Playfair Display',serif; font-size:30px; color:#fff; }
  .section-title span { color:var(--tick); }
  .see-all { color:var(--blue); font-size:14px; font-weight:600; cursor:pointer; text-decoration:none; }
  .see-all:hover { text-decoration:underline; }

  /* ===== PRODUCT GRID ===== */
  .product-grid {
    display:grid;
    grid-template-columns:repeat(auto-fill, minmax(240px, 1fr));
    gap:24px;
  }
  .product-card {
    background:#12151f; border-radius:12px; overflow:hidden;
    transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease; cursor:pointer;
    border:1px solid #1e2433;
    display:flex; flex-direction:column;
  }
  .product-card:hover { transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,0.45); border-color:var(--blue); }
  .product-img {
    width:100%; aspect-ratio:1; background:#fff;
    display:flex; align-items:center; justify-content:center;
    font-size:70px; position:relative; overflow:hidden;
  }
  .product-img .img-placeholder { transition:.3s; }
  .product-card:hover .img-placeholder { transform:scale(1.08); }
  .product-img img { width:100%; height:100%; object-fit:contain; background:#fff; transition:transform .4s ease; }
  .product-card:hover .product-img img { transform:scale(1.05); }
  .product-badges {
    position:absolute; top:12px; left:12px; display:flex; gap:6px; flex-wrap:wrap; z-index:2;
  }
  .product-wishlist {
    position:absolute; top:12px; right:12px;
    width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.92);
    display:flex; align-items:center; justify-content:center; font-size:16px;
    box-shadow:0 2px 10px rgba(0,0,0,0.18); cursor:pointer; transition:.2s;
    border:none; z-index:2;
  }
  .product-wishlist:hover { background:var(--red); color:#fff; transform:scale(1.1); }
  .product-wishlist.wishlisted { color:var(--red); }
  .product-info { padding:16px 16px 18px; flex:1; display:flex; flex-direction:column; }
  .product-cat { font-size:10px; color:var(--tick); font-weight:700; text-transform:uppercase; letter-spacing:1.5px; margin-bottom:6px; }
  .product-name { font-family:'Bebas Neue',sans-serif; font-weight:400; font-size:20px; letter-spacing:.5px; margin-bottom:8px; line-height:1.1; color:#fff; }
  .product-desc { font-size:13px; color:#8b93a7; margin-bottom:14px; line-height:1.5; flex:1; }
  .product-price-row { display:flex; align-items:center; gap:10px; margin-bottom:14px; }
  .product-price { font-size:22px; font-weight:700; color:#fff; }
  .product-original { font-size:14px; color:#6b7280; text-decoration:line-through; }
  .product-discount { font-size:13px; color:#f87171; font-weight:700; }
  .product-rating { display:flex; align-items:center; gap:5px; margin-bottom:12px; font-size:13px; color:var(--gray); }
  .stars { color:#f59e0b; letter-spacing:-2px; }
  .product-card .btn { width:100%; justify-content:center; }

  /* ===== BANNER ===== */
  .promo-banners {
    display:grid; grid-template-columns:1fr 1fr; gap:20px;
    max-width:1400px; margin:0 auto; padding:0 40px 40px;
  }
  .promo-banner {
    border-radius:16px; padding:36px 40px; position:relative; overflow:hidden;
    display:flex; flex-direction:column; justify-content:center; min-height:180px;
  }
  .promo-banner.blue {
    background:linear-gradient(135deg,#1d4ed8,#1a43b8);
  }
  .promo-banner.gold {
    background:linear-gradient(135deg,#92400e,#c9a84c);
  }
  .promo-banner h3 { color:#fff; font-family:'Bebas Neue',sans-serif; font-size:36px; letter-spacing:1px; margin-bottom:8px; }
  .promo-banner p { color:rgba(255,255,255,0.8); margin-bottom:20px; font-size:15px; }
  .promo-banner::after {
    content:''; position:absolute; right:-30px; top:-30px;
    width:160px; height:160px; border-radius:50%;
    background:rgba(255,255,255,0.06);
  }
  .promo-banner::before {
    content:''; position:absolute; right:60px; bottom:-50px;
    width:200px; height:200px; border-radius:50%;
    background:rgba(255,255,255,0.04);
  }

  /* ===== SHOP PAGE ===== */
  .shop-layout { display:flex; gap:28px; max-width:1400px; margin:0 auto; padding:30px 40px; }
  .shop-sidebar {
    width:260px; flex-shrink:0;
  }
  .sidebar-card {
    background:#12151f; border-radius:var(--radius); padding:20px;
    margin-bottom:20px; border:1px solid #1e2433;
  }
  .sidebar-title { font-weight:700; font-size:15px; margin-bottom:14px; padding-bottom:10px; border-bottom:1px solid #1e2433; color:#fff; }
  .filter-check {
    display:flex; align-items:center; gap:10px; margin-bottom:10px; cursor:pointer; font-size:14px; color:#c8cede;
  }
  .filter-check input[type="checkbox"] { width:auto; }
  .price-range { display:flex; align-items:center; gap:8px; }
  .price-range input { padding:8px 12px; font-size:14px; }
  .shop-main { flex:1; min-width:0; }
  .shop-toolbar {
    display:flex; align-items:center; gap:14px; margin-bottom:20px;
    padding:14px 18px; background:#12151f; border-radius:var(--radius);
    border:1px solid #1e2433;
  }
  .shop-toolbar select { width:auto; padding:8px 12px; font-size:14px; }
  .result-count { font-size:14px; color:#8b93a7; margin-right:auto; }

  /* ===== PRODUCT DETAIL ===== */
  #detail-page { display:none; }
  #detail-page.active { display:block; }
  .detail-layout {
    display:grid; grid-template-columns:1fr 1fr; gap:48px;
    max-width:1400px; margin:0 auto; padding:40px;
  }
  .detail-imgs .main-img {
    width:100%; aspect-ratio:1; background:#fff;
    border-radius:16px; display:flex; align-items:center; justify-content:center;
    font-size:120px; border:1px solid var(--gray-light); overflow:hidden;
  }
  .detail-imgs .main-img img { width:100%; height:100%; object-fit:contain; background:#fff; }
  .detail-thumbs { display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
  .detail-thumb { width:70px; height:70px; border-radius:10px; overflow:hidden; cursor:pointer; border:2px solid var(--gray-light); transition:.2s; position:relative; }
  .detail-thumb.active { border-color:var(--blue); }
  .detail-thumb:hover { border-color:var(--blue-light); }
  .detail-thumb .thumb-num { position:absolute; bottom:2px; right:4px; font-size:11px; font-weight:700; color:#fff; background:rgba(0,0,0,0.6); border-radius:6px; padding:1px 6px; }
  .thumb {
    width:70px; height:70px; border-radius:10px; border:2px solid var(--gray-light);
    display:flex; align-items:center; justify-content:center; font-size:30px;
    cursor:pointer; transition:.2s; background:#f8f9fa;
  }
  .thumb.active, .thumb:hover { border-color:var(--blue); }
  .detail-info {}
  .detail-cat { font-size:12px; color:var(--gray); font-weight:600; text-transform:uppercase; letter-spacing:1px; margin-bottom:8px; }
  .detail-name { font-family:'Playfair Display',serif; font-size:34px; margin-bottom:12px; line-height:1.2; }
  .detail-rating { display:flex; align-items:center; gap:8px; margin-bottom:16px; font-size:14px; color:var(--gray); }
  .detail-price { font-size:36px; font-weight:700; margin-bottom:6px; }
  .detail-original { font-size:18px; color:var(--gray); text-decoration:line-through; }
  .detail-desc { color:var(--gray); line-height:1.8; margin-bottom:24px; font-size:15px; }
  .detail-options { margin-bottom:24px; }
  .detail-options label { font-weight:600; margin-bottom:10px; }
  .option-pills { display:flex; gap:10px; flex-wrap:wrap; margin-top:8px; }
  .option-pill {
    padding:8px 18px; border-radius:8px; border:1.5px solid var(--gray-light);
    cursor:pointer; font-size:14px; font-weight:500; transition:.2s; background:#fff;
  }
  .option-pill:hover, .option-pill.selected {
    border-color:var(--blue); background:var(--blue); color:#fff;
  }
  .qty-row { display:flex; align-items:center; gap:14px; margin-bottom:24px; }
  .qty-ctrl {
    display:flex; align-items:center; gap:0; border:1.5px solid var(--gray-light); border-radius:10px; overflow:hidden;
  }
  .qty-ctrl button {
    width:40px; height:44px; border:none; background:#f8f9fa; cursor:pointer; font-size:20px;
    display:flex; align-items:center; justify-content:center; transition:.2s;
  }
  .qty-ctrl button:hover { background:var(--blue); color:#fff; }
  .qty-ctrl span { width:48px; text-align:center; font-weight:700; font-size:17px; }
  .detail-actions { display:flex; gap:12px; }
  .detail-actions .btn { flex:1; justify-content:center; }
  .detail-features { margin-top:30px; }
  .detail-feature { display:flex; align-items:center; gap:10px; padding:10px 0; border-bottom:1px solid var(--gray-light); font-size:14px; color:var(--gray); }
  .detail-feature:last-child { border:none; }
  .detail-feature strong { color:var(--navy); }

  /* ===== CART ===== */
  .cart-layout {
    display:grid; grid-template-columns:1fr 380px; gap:30px;
    max-width:1400px; margin:0 auto; padding:30px 40px;
  }
  .cart-items {}
  .cart-item {
    background:#fff; border-radius:var(--radius); padding:20px;
    display:flex; gap:20px; margin-bottom:16px;
    box-shadow:var(--shadow); border:1px solid var(--gray-light);
  }
  .cart-item-img {
    width:90px; height:90px; border-radius:10px; background:linear-gradient(135deg,#e8eaf6,#f3f4f6);
    display:flex; align-items:center; justify-content:center; font-size:40px; flex-shrink:0; overflow:hidden;
  }
  .cart-item-img img { width:100%; height:100%; object-fit:contain; background:#fff; }
  .cart-item-info { flex:1; }
  .cart-item-name { font-weight:600; font-size:16px; margin-bottom:4px; }
  .cart-item-meta { font-size:13px; color:var(--gray); margin-bottom:10px; }
  .cart-item-price { font-weight:700; font-size:18px; color:var(--blue); }
  .cart-item-actions { display:flex; align-items:center; gap:12px; margin-top:10px; }
  .cart-summary {
    background:#fff; border-radius:var(--radius); padding:24px;
    box-shadow:var(--shadow); border:1px solid var(--gray-light); height:fit-content;
  }
  .cart-summary h3 { font-size:18px; font-weight:700; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--gray-light); }
  .summary-row { display:flex; justify-content:space-between; margin-bottom:12px; font-size:15px; }
  .summary-row.total { font-weight:700; font-size:18px; color:var(--navy); padding-top:14px; border-top:2px solid var(--navy); margin-top:6px; }
  .cart-empty { text-align:center; padding:80px 20px; color:var(--gray); }
  .cart-empty .icon { font-size:70px; margin-bottom:16px; }

  /* ===== CHECKOUT ===== */
  .checkout-layout {
    display:grid; grid-template-columns:1fr 380px; gap:30px;
    max-width:1400px; margin:0 auto; padding:30px 40px;
  }
  .checkout-card {
    background:#fff; border-radius:var(--radius); padding:28px;
    box-shadow:var(--shadow); border:1px solid var(--gray-light); margin-bottom:20px;
  }
  .checkout-card h3 { font-size:18px; font-weight:700; margin-bottom:20px; display:flex; align-items:center; gap:10px; }
  .checkout-card h3 .step-num {
    width:30px; height:30px; border-radius:50%; background:var(--blue); color:#fff;
    display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; flex-shrink:0;
  }
  .payfast-logo {
    display:flex; align-items:center; gap:8px; padding:14px 18px;
    border:1.5px solid var(--gray-light); border-radius:var(--radius);
    background:#f8f9fa; font-size:14px; color:var(--gray); cursor:pointer; transition:.2s;
  }
  .payfast-logo:hover, .payfast-logo.selected { border-color:var(--blue); background:#eff6ff; }
  .payfast-logo .pf-name { font-weight:700; font-size:15px; color:var(--navy); }
  .secure-badge { display:flex; align-items:center; gap:6px; font-size:12px; color:var(--green); margin-top:10px; }
  .order-note { background:#eff6ff; border:1px solid #bfdbfe; border-radius:var(--radius); padding:14px 18px; font-size:14px; color:#1e40af; margin-top:14px; }

  /* ===== AUTH MODAL ===== */
  .modal-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.6); z-index:2000;
    display:flex; align-items:center; justify-content:center; padding:20px;
  }
  .modal {
    background:#fff; border-radius:16px; width:100%; max-width:460px;
    box-shadow:0 20px 60px rgba(0,0,0,0.3); overflow:hidden;
    animation:modalIn 0.3s ease;
  }
  @keyframes modalIn { from { transform:scale(0.92); opacity:0; } to { transform:none; opacity:1; } }
  .modal-header {
    background:var(--navy); padding:28px 32px 20px;
    text-align:center;
  }
  .modal-header .logo-icon { margin:0 auto 12px; width:50px; height:50px; font-size:24px; }
  .modal-header h2 { color:#fff; font-size:22px; }
  .modal-header p { color:var(--gray); font-size:14px; margin-top:4px; }
  .modal-body { padding:28px 32px; }
  .modal-tabs { display:flex; border-bottom:2px solid var(--gray-light); margin-bottom:24px; }
  .modal-tab {
    flex:1; padding:12px; text-align:center; cursor:pointer; font-weight:600;
    font-size:15px; color:var(--gray); border-bottom:3px solid transparent; margin-bottom:-2px; transition:.2s;
  }
  .modal-tab.active { color:var(--blue); border-bottom-color:var(--blue); }
  .google-btn {
    width:100%; padding:12px; border:1.5px solid var(--gray-light); border-radius:var(--radius);
    background:#fff; display:flex; align-items:center; justify-content:center; gap:10px;
    cursor:pointer; font-family:inherit; font-size:15px; font-weight:500; transition:.2s; margin-bottom:20px;
  }
  .google-btn:hover { border-color:var(--blue); background:#f8faff; }
  .google-icon { width:20px; height:20px; }
  .or-divider { display:flex; align-items:center; gap:12px; margin-bottom:20px; color:var(--gray); font-size:13px; }
  .or-divider::before, .or-divider::after { content:''; flex:1; height:1px; background:var(--gray-light); }

  /* ===== WISHLIST ===== */
  .wishlist-page { max-width:1400px; margin:0 auto; padding:30px 40px; }

  /* ===== ACCOUNT ===== */
  .account-layout { display:grid; grid-template-columns:240px 1fr; gap:28px; max-width:1400px; margin:0 auto; padding:30px 40px; }
  .account-sidebar {
    background:#fff; border-radius:var(--radius); padding:20px; height:fit-content;
    box-shadow:var(--shadow); border:1px solid var(--gray-light);
  }
  .account-avatar {
    width:70px; height:70px; background:var(--blue); border-radius:50%;
    display:flex; align-items:center; justify-content:center; font-size:28px;
    color:#fff; margin:0 auto 12px;
  }
  .account-name { font-weight:700; font-size:16px; text-align:center; margin-bottom:4px; }
  .account-email { font-size:12px; color:var(--gray); text-align:center; margin-bottom:20px; }
  .account-nav { list-style:none; }
  .account-nav li { margin-bottom:4px; }
  .account-nav li a {
    display:flex; align-items:center; gap:10px; padding:10px 14px;
    border-radius:8px; color:var(--navy); text-decoration:none; font-size:14px; font-weight:500; transition:.2s;
  }
  .account-nav li a:hover, .account-nav li a.active { background:var(--blue); color:#fff; }
  .account-content { }
  .account-card {
    background:#fff; border-radius:var(--radius); padding:28px;
    box-shadow:var(--shadow); border:1px solid var(--gray-light); margin-bottom:20px;
  }
  .account-card h3 { font-size:18px; font-weight:700; margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--gray-light); }
  .order-row {
    display:flex; align-items:center; gap:16px; padding:14px 0;
    border-bottom:1px solid var(--gray-light);
  }
  .order-row:last-child { border:none; }
  .order-icon { width:48px; height:48px; background:#eff6ff; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:22px; }
  .order-info { flex:1; }
  .order-id { font-weight:600; margin-bottom:2px; }
  .order-meta { font-size:13px; color:var(--gray); }
  .order-total { font-weight:700; font-size:17px; }

  /* ===== FOOTER ===== */
  footer {
    background:var(--navy); color:#fff; margin-top:60px;
  }
  .footer-main {
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:40px;
    max-width:1400px; margin:0 auto; padding:50px 40px 40px;
  }
  .footer-brand .logo { margin-bottom:14px; display:flex; }
  .footer-brand p { color:var(--gray); font-size:14px; line-height:1.7; max-width:300px; margin-bottom:20px; }
  .social-links { display:flex; gap:10px; }
  .social-link {
    width:38px; height:38px; border-radius:8px; background:#1a2035;
    display:flex; align-items:center; justify-content:center; font-size:16px;
    cursor:pointer; transition:.2s; text-decoration:none;
  }
  .social-link:hover { background:var(--blue); }
  .footer-col h4 { font-weight:700; font-size:15px; margin-bottom:16px; }
  .footer-col ul { list-style:none; }
  .footer-col ul li { margin-bottom:10px; }
  .footer-col ul li a { color:var(--gray); text-decoration:none; font-size:14px; transition:.2s; }
  .footer-col ul li a:hover { color:var(--tick); }
  .footer-bottom {
    border-top:1px solid #1a2035; padding:20px 40px;
    max-width:1400px; margin:0 auto; display:flex;
    align-items:center; justify-content:space-between; font-size:13px; color:var(--gray);
  }
  .payment-icons { display:flex; align-items:center; gap:8px; }
  .payment-icon {
    background:#1a2035; padding:5px 10px; border-radius:5px; font-size:12px;
    color:#ccc; font-weight:600;
  }

  /* ===== BREADCRUMB ===== */
  .breadcrumb {
    max-width:1400px; margin:0 auto; padding:16px 40px 0;
    display:flex; align-items:center; gap:8px; font-size:14px; color:var(--gray);
  }
  .breadcrumb a { color:var(--blue); text-decoration:none; cursor:pointer; }
  .breadcrumb a:hover { text-decoration:underline; }
  .breadcrumb span { color:var(--gray); }

  /* ===== RESPONSIVE — TABLET ===== */
  @media(max-width:900px) {
    .header-main { padding:12px 20px; }
    .nav-links ul { padding:0 10px; overflow-x:auto; flex-wrap:nowrap; }
    .nav-links ul li a { padding:10px 12px; font-size:13px; }
    .hero { padding:40px 20px; }
    .hero-title { font-size:52px; }
    .section { padding:30px 20px; }
    .promo-banners { grid-template-columns:1fr; padding:0 20px 30px; }
    .shop-layout { flex-direction:column; padding:20px; }
    .shop-sidebar { width:100%; }
    .detail-layout { grid-template-columns:1fr; padding:20px; }
    .cart-layout, .checkout-layout { grid-template-columns:1fr; padding:20px; }
    .footer-main { grid-template-columns:1fr 1fr; padding:30px 20px; }
    .account-layout { grid-template-columns:1fr; padding:20px; }
    .form-row { grid-template-columns:1fr; }
    .category-strip { padding:16px 20px; }
    .breadcrumb { padding:12px 20px 0; }
    .wishlist-page { padding:20px; }
    .hero-stats { gap:24px; }
  }

  /* ===== RESPONSIVE — MOBILE ===== */
  @media(max-width:600px) {
    /* Header */
    .header-top { font-size:10px; padding:5px 10px; }
    .header-main { padding:10px 14px; gap:10px; flex-wrap:nowrap; }
    .logo-icon { width:34px; height:34px; font-size:16px; }
    .logo-text .brand { font-size:14px; letter-spacing:1px; }
    .logo-text .sub { font-size:8px; }
    .search-bar { display:none; }
    .icon-btn { width:36px; height:36px; font-size:18px; }

    /* Mobile search bar — shows below header */
    .mobile-search {
      display:block !important;
      padding:10px 14px;
      background:#0d1326;
      border-top:1px solid #1a2035;
    }
    .mobile-search input {
      background:#1a2035; border:1.5px solid #2a3550;
      color:#fff; border-radius:10px; padding:10px 44px 10px 14px;
      font-size:14px; width:100%;
    }
    .mobile-search input::placeholder { color:var(--gray); }

    /* Nav */
    .nav-links ul {
      padding:0 6px; gap:0; overflow-x:auto;
      scrollbar-width:none; -ms-overflow-style:none;
    }
    .nav-links ul::-webkit-scrollbar { display:none; }
    .nav-links ul li a { padding:10px 10px; font-size:12px; white-space:nowrap; gap:4px; }

    /* Hero */
    .hero { padding:30px 16px; min-height:auto; }
    .hero-title { font-size:42px; }
    .hero-desc { font-size:14px; }
    .hero-actions { flex-direction:column; gap:10px; }
    .hero-actions .btn { width:100%; justify-content:center; }
    .hero-stats { flex-wrap:wrap; gap:16px; padding-top:24px; margin-top:24px; }
    .hero-stat .num { font-size:32px; }

    /* Sections */
    .section { padding:24px 14px; }
    .section-title { font-size:22px; }
    .section-header { margin-bottom:16px; }

    /* Products */
    .product-grid { grid-template-columns:repeat(2,1fr); gap:10px; }
    .product-name { font-size:14px; }
    .product-price { font-size:18px; }
    .product-desc { font-size:12px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
    .product-info { padding:12px; }
    .product-img { font-size:50px; }

    /* Category strip */
    .category-strip { padding:12px 14px; }
    .cat-pill { padding:8px 14px; font-size:13px; }

    /* Promo banners */
    .promo-banners { padding:0 14px 24px; gap:12px; }
    .promo-banner { padding:24px 20px; min-height:140px; }
    .promo-banner h3 { font-size:26px; }

    /* Shop page */
    .shop-layout { padding:14px; gap:16px; }
    .shop-toolbar { flex-wrap:wrap; gap:10px; padding:12px; }
    .shop-toolbar select { width:100%; }
    .sidebar-card { padding:14px; }

    /* Product detail */
    .detail-layout { padding:14px; gap:20px; }
    .detail-name { font-size:24px; }
    .detail-price { font-size:28px; }
    .detail-actions { flex-wrap:wrap; }
    .detail-actions .btn { flex:1; min-width:120px; }

    /* Cart */
    .cart-layout { padding:14px; gap:16px; }
    .cart-item { padding:14px; gap:12px; }
    .cart-item-img { width:70px; height:70px; font-size:30px; }
    .cart-item-name { font-size:14px; }
    .cart-item-actions { flex-wrap:wrap; gap:8px; }
    .cart-summary { padding:16px; }

    /* Checkout */
    .checkout-layout { padding:14px; gap:16px; }
    .checkout-card { padding:18px; }
    .checkout-card h3 { font-size:16px; }

    /* Account */
    .account-layout { padding:14px; gap:16px; }
    .account-card { padding:18px; }
    .account-sidebar { padding:16px; }

    /* Auth modal */
    .modal { max-width:100%; margin:0 10px; border-radius:14px; }
    .modal-header { padding:20px 20px 14px; }
    .modal-body { padding:20px; }

    /* Footer */
    .footer-main { grid-template-columns:1fr; padding:24px 16px; gap:24px; }
    .footer-bottom { flex-direction:column; gap:10px; text-align:center; padding:16px; }
    .footer-col { display:none; } /* Hide link columns on mobile to save space */
    .footer-brand { display:block !important; }

    /* Features row */
    #features-row { grid-template-columns:repeat(2,1fr) !important; gap:16px !important; padding:30px 14px !important; }

    /* Breadcrumb */
    .breadcrumb { padding:10px 14px 0; font-size:13px; }

    /* Wishlist */
    .wishlist-page { padding:14px; }

    /* Toast */
    #toast-container { top:auto; bottom:20px; right:10px; left:10px; }
    .toast { min-width:auto; width:100%; }
  }

