/*
Theme Name: Nimbus Store
Theme URI: https://example.com/nimbus-store
Author: Nimbus
Author URI: https://example.com
Description: A precision consumer-electronics e-commerce landing page — converted from a static HTML/CSS/JS build into a minimal, installable WordPress theme. Includes sticky header, category mega-dropdowns, filterable product grid, cart/account/wishlist drawers, quick-view modal, and a 3D-tilt hero.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nimbus-store
*/

:root{
    --bg:#FFFFFF;
    --bg-slate:#F3F5F9;
    --bg-slate-2:#ECEFF4;
    --text:#12151C;
    --text-muted:#5B6472;
    --text-faint:#8B93A1;
    --border:#E5E8EF;
    --border-strong:#D6DBE4;
    --blue:#4F46E5;
    --blue-dark:#3F37D6;
    --cyan:#38BDF8;
    --orange:#FF5A2E;
    --orange-dark:#E64A20;
    --green:#22C55E;
    --green-dark:#16A34A;
    --radius-sm:8px;
    --radius:14px;
    --radius-lg:22px;
    --font-display:'Space Grotesk', sans-serif;
    --font-body:'Inter', sans-serif;
    --font-mono:'JetBrains Mono', monospace;
    --shadow-sm: 0 1px 2px rgba(18,21,28,0.06);
    --shadow-md: 0 8px 24px rgba(18,21,28,0.08);
    --shadow-lg: 0 20px 48px rgba(18,21,28,0.14);
    --header-h: 76px;
  }

  *{box-sizing:border-box; margin:0; padding:0;}
  html{scroll-behavior:smooth;}
  body{
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    line-height:1.5;
  }
  img,svg{display:block;}
  a{color:inherit; text-decoration:none;}
  button{font-family:inherit; cursor:pointer; border:none; background:none; color:inherit;}
  ul{list-style:none;}
  input{font-family:inherit;}
  .container{
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
  }
  .visually-hidden{
    position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap;
  }
  :focus-visible{ outline: 2px solid var(--blue); outline-offset: 2px; }

  .icon{ width:20px; height:20px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }
  .icon-fill{ fill:currentColor; stroke:none; }

  /* ============ TOP BAR ============ */
  .topbar{
    background: var(--bg-slate);
    border-bottom: 1px solid var(--border);
    font-size: 13.5px;
  }
  .topbar.is-hidden{ display:none; }
  .topbar-inner{
    max-width:1320px;
    margin:0 auto;
    padding: 12px 32px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
  }
  .topbar-msg{ color: var(--text-muted); }
  .topbar-links{ display:flex; align-items:center; gap:28px; }
  .topbar-links a{
    color: var(--text-muted); font-weight:500;
    display:inline-flex; align-items:center; gap:5px;
    transition: color .15s;
  }
  .topbar-links a:hover{ color: var(--text); }
  .topbar-links .icon{ width:13px; height:13px; color: var(--text-faint); }
  .topbar-dismiss{
    width:20px; height:20px; display:flex; align-items:center; justify-content:center;
    color: var(--text-faint); border-radius:50%; transition: color .15s, background .15s;
  }
  .topbar-dismiss:hover{ color:var(--text); background: var(--bg-slate-2); }
  .topbar-dismiss .icon{ width:13px; height:13px; }

  /* ============ HEADER ============ */
  .site-header{
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top:0;
    z-index: 60;
  }
  .header-inner{
    display:flex;
    align-items:center;
    gap:28px;
    padding: 16px 32px;
    max-width:1320px;
    margin:0 auto;
  }
  .logo{
    display:flex; align-items:center; gap:9px;
    font-family: var(--font-display);
    font-weight:700;
    font-size:22px;
    letter-spacing:-.01em;
    flex-shrink:0;
  }
  .logo-mark{
    width:32px; height:32px;
    border-radius:9px;
    background: linear-gradient(135deg, var(--blue), var(--cyan));
    display:flex; align-items:center; justify-content:center;
  }
  .logo-mark svg{ width:18px; height:18px; stroke:#fff; }

  .header-search{
    flex:1;
    max-width:560px;
    position:relative;
  }
  .header-search-inner{
    display:flex; align-items:center; gap:10px;
    background: var(--bg-slate);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 10px 16px;
    transition: border-color .15s, background .15s;
  }
  .header-search-inner:focus-within{
    border-color: var(--blue);
    background: var(--bg);
  }
  .header-search-inner .icon{ color: var(--text-faint); width:18px; height:18px; }
  .header-search input{
    border:none; background:none; outline:none; flex:1;
    font-size:14px; color:var(--text);
  }
  .header-search input::placeholder{ color: var(--text-faint); }
  .search-suggest{
    position:absolute; top:calc(100% + 8px); left:0; right:0;
    background:#fff; border:1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding:8px;
    display:none;
    max-height:320px; overflow-y:auto;
    z-index:70;
  }
  .search-suggest.is-open{ display:block; }
  .search-suggest-item{
    display:flex; align-items:center; gap:12px;
    padding:9px 10px; border-radius:10px; font-size:13.5px;
  }
  .search-suggest-item:hover{ background: var(--bg-slate); }
  .search-suggest-item .swatch{
    width:32px; height:32px; border-radius:8px; background:var(--bg-slate-2);
    display:flex; align-items:center; justify-content:center; flex-shrink:0; color:var(--blue);
  }
  .search-suggest-item .swatch .icon{ width:16px; height:16px; }
  .search-suggest-name{ font-weight:600; }
  .search-suggest-cat{ color:var(--text-muted); font-size:11.5px; }
  .search-suggest-price{ margin-left:auto; font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted); }
  .search-suggest-empty{ padding:14px 10px; font-size:13px; color:var(--text-muted); text-align:center; }

  .header-utils{
    display:flex; align-items:center; gap:4px; flex-shrink:0;
  }
  .util-stack{
    position:relative;
    display:flex; align-items:center; gap:10px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--text);
    transition: background .15s;
  }
  .util-stack:hover{ background: var(--bg-slate); }
  .util-stack .icon{ width:22px; height:22px; color: var(--blue); flex-shrink:0; }
  .util-stack-text{ display:flex; flex-direction:column; line-height:1.28; }
  .util-stack-text .label{ font-size:11.5px; color: var(--text-faint); }
  .util-stack-text .value{ font-size:13px; font-weight:600; color: var(--text); }
  .util-stack.support{ cursor:default; }
  .util-stack.support:hover{ background:none; }
  .util-badge{
    position:absolute; top:2px; left:24px;
    min-width:16px; height:16px; padding:0 3px;
    background: var(--green);
    color:#fff; font-size:9.5px; font-weight:700; font-family:var(--font-mono);
    border-radius:999px;
    display:flex; align-items:center; justify-content:center;
    border:2px solid var(--bg);
  }
  .header-burger{ display:none; }
  @media (max-width: 1080px){
    .util-stack-text{ display:none; }
  }
  .icon-btn{
    width:38px; height:38px; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    color: var(--text);
    transition: background .15s;
  }
  .icon-btn:hover{ background: var(--bg-slate); }

  /* ============ NAVBAR ============ */
  .navbar{
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .navbar-inner{
    display:flex; align-items:center; gap:2px;
    max-width:1320px; margin:0 auto; padding: 0 32px;
  }
  .nav-cat{ position:relative; }
  .nav-cat-btn{
    display:flex; align-items:center; gap:9px;
    font-weight:600; font-size:14px;
    padding: 16px 14px;
    color: var(--text);
  }
  .nav-cat-btn .icon{ width:19px; height:19px; color: var(--blue); }
  .nav-cat-btn .chev{ width:13px; height:13px; transition: transform .15s; color:var(--text-faint); }
  .nav-cat.is-open .chev{ transform: rotate(180deg); }
  .nav-cat.is-open .nav-cat-btn{ color: var(--blue); }

  .nav-cat-drop{
    position:absolute; top:100%; left:0;
    min-width:200px;
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 10px;
    display:none;
    flex-direction:column; gap:2px;
    z-index:65;
  }
  .nav-cat.is-open .nav-cat-drop{ display:flex; }
  .nav-cat-drop a{
    display:flex; align-items:center; justify-content:space-between;
    padding: 10px 12px; border-radius:9px;
    font-size:13px; font-weight:500; color: var(--text-muted);
    transition: background .15s, color .15s;
  }
  .nav-cat-drop a:hover{ background: var(--bg-slate); color: var(--text); }
  .nav-cat-drop a .icon{ width:13px; height:13px; color: var(--text-faint); }

  .nav-viewall{
    display:flex; align-items:center; gap:9px;
    font-weight:600; font-size:14px;
    padding: 16px 6px;
    margin-left:6px;
    color: var(--text);
  }
  .nav-viewall .icon{ width:18px; height:18px; color: var(--blue); }
  .nav-viewall:hover{ color: var(--blue); }

  /* ============ HERO ============ */
  .hero{
    position:relative;
    overflow:hidden;
    background:
      linear-gradient(135deg, #4A3FE0 0%, #5C4CF0 22%, #6D6BF5 42%, #4C8DEE 68%, #38C6E8 100%);
  }
  .hero::before{
    /* thin diagonal stripes, echoing the reference banner's diagonal facets */
    content:"";
    position:absolute; inset:-20% -10%;
    background: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 2px, transparent 2px 90px);
    pointer-events:none;
  }
  .hero-inner{
    position:relative;
    display:grid;
    grid-template-columns: 1fr 1fr;
    align-items:center;
    gap: 24px;
    padding: 76px 32px 84px;
    max-width:1320px; margin:0 auto;
  }
  .hero-eyebrow{
    display:inline-flex; align-items:center; gap:6px;
    font-family: var(--font-mono); font-size:11.5px; font-weight:600; letter-spacing:.05em;
    text-transform:uppercase;
    color:#fff;
    background: rgba(255,255,255,.14);
    border: 1.5px solid rgba(255,255,255,.4);
    padding: 7px 16px; border-radius:999px;
    margin-bottom:26px;
  }
  .hero h1{
    font-family: var(--font-display);
    font-size: 68px;
    line-height: .98;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #fff;
  }
  .hero p{
    font-size:17px; color: rgba(255,255,255,.82); max-width:420px; margin-bottom:34px;
  }
  .hero-ctas{ display:flex; align-items:center; gap:16px; margin-bottom:40px; }
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap:8px;
    font-weight:600; font-size:14.5px;
    padding: 15px 28px;
    border-radius: 12px;
    transition: transform .15s, box-shadow .15s, background .15s, color .15s;
    white-space:nowrap;
  }
  .btn:active{ transform: translateY(1px) scale(.97); transition-duration: .06s; }
  .btn-primary{
    background: var(--blue); color:#fff;
  }
  .btn-primary:hover{ background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .btn-ghost{
    background: rgba(255,255,255,.1); color: #fff; border: 1.5px solid rgba(255,255,255,.5);
  }
  .btn-ghost:hover{ background: rgba(255,255,255,.2); transform: translateY(-2px); }
  .btn-block{ width:100%; }
  .btn .icon{ width:16px; height:16px; }

  .hero-trust{ display:flex; gap:26px; flex-wrap:wrap; }
  .hero-trust-item{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:rgba(255,255,255,.85); font-weight:500; }
  .hero-trust-item .icon{ width:16px; height:16px; color: #fff; }

  .hero-visual{ position:relative; height:460px; perspective: 1600px; }
  .hero-card{
    position:absolute; inset: 6% 4%;
    background: linear-gradient(155deg, #171B24 0%, #262E3D 55%, #3A2E6E 100%);
    border-radius: var(--radius-lg);
    display:flex; align-items:center; justify-content:center;
    box-shadow: 0 40px 70px rgba(15,10,50,.35), 0 10px 24px rgba(15,10,50,.25);
    transform-style: preserve-3d;
    transform: perspective(1600px) rotateY(-10deg) rotateX(6deg) translateZ(0);
    transition: transform .5s cubic-bezier(.16,1,.3,1);
    will-change: transform;
  }
  .hero-card::after{
    /* screen glare — sells the glass/3D illusion */
    content:"";
    position:absolute; inset:8%;
    background: linear-gradient(120deg, rgba(255,255,255,.18) 0%, transparent 40%);
    border-radius: calc(var(--radius-lg) - 6px);
    pointer-events:none;
  }
  .hero-card svg{ width:56%; height:56%; color: rgba(255,255,255,.92); transform: translateZ(30px); }
  .hero-floater{
    position:absolute;
    background:#fff;
    border-radius:14px;
    box-shadow: var(--shadow-lg);
    padding: 11px 15px;
    display:flex; align-items:center; gap:10px;
    font-family: var(--font-mono);
    animation: float 4.5s ease-in-out infinite;
    transform-style: preserve-3d;
  }
  .hero-floater.f1{ top:2%; right:2%; animation-delay:0s; --fz:55px; }
  .hero-floater.f2{ top:38%; right:-4%; animation-delay:1.2s; --fz:85px; }
  .hero-floater.f3{ bottom:6%; right:6%; animation-delay:2.1s; --fz:45px; }
  .hero-floater.f-buy{
    top:-2%; right:-6%;
    background: var(--green);
    color:#fff;
    flex-direction:column; align-items:center; gap:6px;
    padding:16px 20px; border-radius:16px;
    animation-delay:.6s;
    --fz:110px;
    box-shadow: var(--shadow-lg), 0 18px 30px rgba(34,197,94,.4);
  }
  .hero-floater.f-buy .icon{ width:24px; height:24px; }
  .hero-floater.f-buy span{ font-size:13px; font-weight:700; }
  .hero-floater.f-stat{
    bottom:-4%; right:-8%;
    background: var(--text); color:#fff;
    animation-delay:1.8s;
    --fz:70px;
  }
  @keyframes float{
    0%,100%{ transform: translate3d(var(--mx,0px), var(--my,0px), var(--fz,0px)) translateY(0); }
    50%{ transform: translate3d(var(--mx,0px), var(--my,0px), var(--fz,0px)) translateY(-10px); }
  }
  .hero-floater-label{ font-size:9.5px; color:var(--text-faint); text-transform:uppercase; letter-spacing:.06em; display:block; }
  .hero-floater-value{ font-size:14.5px; font-weight:600; color:var(--text); }
  .hero-floater .icon{ width:20px; height:20px; color: var(--blue); }
  .hero-floater.f-stat .hero-floater-value{ color:#fff; }
  .hero-floater.f-stat .hero-floater-label{ color: rgba(255,255,255,.55); }
  .hero-floater.f-stat .icon{ color:var(--cyan); }

  @media (prefers-reduced-motion: reduce){
    .hero-floater{ animation:none; }
    .hero-card{ transition:none; }
  }
  @media (max-width: 900px){
    .hero-floater.f1, .hero-floater.f2, .hero-floater.f3{ display:none; }
    .hero-floater.f-buy{ top:6%; right:4%; }
    .hero-floater.f-stat{ bottom:8%; right:4%; }
    .hero-visual{ perspective:none; }
    .hero-card{ transform:none !important; inset:8%; }
  }

  /* ============ SECTION HEADINGS ============ */
  .section{ padding: 64px 0; }
  .section-slate{ background: var(--bg-slate); }
  .section-head{
    display:flex; align-items:flex-end; justify-content:space-between; gap:24px;
    margin-bottom: 36px;
    flex-wrap:wrap;
  }
  .section-eyebrow{
    font-family: var(--font-mono); font-size:11.5px; font-weight:500; letter-spacing:.08em; text-transform:uppercase;
    color: var(--blue); margin-bottom:10px; display:block;
  }
  .section-head h2{
    font-family: var(--font-display); font-size:32px; font-weight:700; letter-spacing:-.01em;
  }
  .section-head p{ color:var(--text-muted); font-size:14.5px; margin-top:8px; max-width:480px; }
  .section-link{
    display:inline-flex; align-items:center; gap:6px;
    font-size:13.5px; font-weight:600; color:var(--text);
    padding-bottom:2px; border-bottom:1.5px solid var(--text);
    flex-shrink:0;
  }
  .section-link .icon{ width:14px; height:14px; transition: transform .15s; }
  .section-link:hover .icon{ transform: translateX(3px); }

  /* ============ CATEGORY GRID ============ */
  .cat-grid{
    display:grid;
    grid-template-columns: repeat(8, 1fr);
    gap:16px;
    perspective: 1000px;
  }
  .cat-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 14px 18px;
    display:flex; flex-direction:column; align-items:center; text-align:center; gap:12px;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .cat-card:hover{ box-shadow: var(--shadow-md); border-color:transparent; }
  .cat-icon{
    width:52px; height:52px; border-radius:14px;
    background: var(--bg-slate);
    display:flex; align-items:center; justify-content:center;
    color: var(--blue);
    transition: background .18s, color .18s, transform .18s;
  }
  .cat-card:hover .cat-icon{ background: linear-gradient(135deg, var(--blue), var(--cyan)); color:#fff; transform: translateZ(26px); }
  .cat-icon .icon{ width:24px; height:24px; }
  .cat-name{ font-size:13px; font-weight:600; transition: transform .18s; }
  .cat-card:hover .cat-name{ transform: translateZ(14px); }
  .cat-count{ font-size:11px; color: var(--text-faint); font-family: var(--font-mono); }

  /* ============ TABS ============ */
  .tabs{ display:flex; gap:6px; background:var(--bg-slate); padding:5px; border-radius:999px; }
  .tab-btn{
    font-size:13px; font-weight:600; color:var(--text-muted);
    padding: 9px 18px; border-radius: 999px;
    transition: background .15s, color .15s;
  }
  .tab-btn.is-active{ background:#fff; color:var(--text); box-shadow: var(--shadow-sm); }
  .tab-btn:hover:not(.is-active){ color:var(--text); }

  /* ============ PRODUCT GRID / CARDS ============ */
  .product-grid{
    display:grid;
    grid-template-columns: repeat(4, 1fr);
    gap:22px;
    perspective: 1400px;
  }
  .product-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius: var(--radius);
    overflow:hidden;
    display:flex; flex-direction:column;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position:relative;
    transform-style: preserve-3d;
    will-change: transform;
  }
  .product-card:hover{ box-shadow: var(--shadow-lg); border-color: transparent; }

  .product-media{
    position:relative;
    aspect-ratio: 1.15 / 1;
    background: var(--bg-slate);
    display:flex; align-items:center; justify-content:center;
    overflow:hidden;
  }
  .product-media svg{ width:56%; height:56%; color: var(--text); opacity:.86; transition: transform .3s; }
  .product-card:hover .product-media svg{ transform: scale(1.06) rotate(-2deg) translateZ(24px); }

  .badge-row{ position:absolute; top:12px; left:12px; display:flex; flex-direction:column; gap:6px; z-index:2;}
  .badge{
    font-family: var(--font-mono); font-size:10.5px; font-weight:700;
    padding: 4px 8px; border-radius:6px; letter-spacing:.02em;
    color:#fff;
    box-shadow: 0 3px 8px rgba(0,0,0,.18);
  }
  .badge-sale{ background: var(--orange); }
  .badge-new{ background: var(--blue); }
  .badge-best{ background: var(--text); }

  .wishlist-btn{
    position:absolute; top:10px; right:10px; z-index:2;
    width:34px; height:34px; border-radius:50%;
    background: rgba(255,255,255,.92);
    display:flex; align-items:center; justify-content:center;
    color: var(--text);
    box-shadow: var(--shadow-sm);
    transition: color .15s, transform .15s;
    transform-style: preserve-3d;
  }
  .wishlist-btn:hover{ transform: scale(1.08) translateZ(10px); }
  .wishlist-btn .icon{ width:16px; height:16px; transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
  .wishlist-btn.is-active{ color: var(--orange); }
  .wishlist-btn.is-active .icon{ fill: var(--orange); stroke: var(--orange); }
  .wishlist-btn.is-flipping .icon{ transform: rotateY(360deg) scale(1.3); }

  .quickview-btn{
    position:absolute; left:12px; right:12px; bottom:12px; z-index:2;
    background: var(--text); color:#fff;
    font-size:12.5px; font-weight:600;
    padding: 10px; border-radius: 10px;
    display:flex; align-items:center; justify-content:center; gap:6px;
    opacity:0; transform: translateY(6px);
    transition: opacity .18s, transform .18s;
  }
  .product-card:hover .quickview-btn{ opacity:1; transform: translateY(0) translateZ(20px); }
  .quickview-btn .icon{ width:14px; height:14px; }

  .product-body{ padding: 16px 16px 18px; display:flex; flex-direction:column; gap:8px; flex:1; }
  .product-cat{ font-size:11px; color: var(--text-faint); text-transform:uppercase; letter-spacing:.05em; font-weight:600; }
  .product-name{ font-size:14.5px; font-weight:600; line-height:1.35; }
  .product-rating{ display:flex; align-items:center; gap:6px; }
  .stars{ display:flex; gap:1px; color: var(--orange); }
  .stars .icon{ width:13px; height:13px; }
  .product-rating span{ font-size:11.5px; color:var(--text-faint); font-family:var(--font-mono); }
  .product-footer{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; padding-top:6px; }
  .price-group{ display:flex; align-items:baseline; gap:8px; font-family:var(--font-mono); }
  .price-now{ font-size:16px; font-weight:600; color:var(--text); }
  .price-old{ font-size:12.5px; color: var(--text-faint); text-decoration: line-through; }
  .stock-dot{ display:flex; align-items:center; gap:5px; font-size:10.5px; color: var(--green); font-weight:600; }
  .stock-dot::before{ content:""; width:6px; height:6px; border-radius:50%; background: var(--green); }
  .add-cart-btn{
    width:38px; height:38px; border-radius:50%;
    background: var(--bg-slate);
    display:flex; align-items:center; justify-content:center;
    color: var(--text);
    flex-shrink:0;
    transition: background .15s, color .15s, transform .15s;
  }
  .add-cart-btn:hover{ background: var(--text); color:#fff; transform: scale(1.06); }
  .add-cart-btn .icon{ width:16px; height:16px; }

  .grid-loadmore{ display:flex; justify-content:center; margin-top:40px; }

  /* ============ VALUE PROPS / PROMO BANNERS ============ */
  .promo-row{
    display:grid; grid-template-columns: 1.4fr 1fr; gap:20px; margin-bottom:20px;
  }
  .promo-banner{
    border-radius: var(--radius-lg);
    padding: 40px;
    position:relative;
    overflow:hidden;
    display:flex; flex-direction:column; justify-content:center;
    min-height: 260px;
  }
  .promo-banner.dark{ background: linear-gradient(135deg,#171B24, #262E3D); color:#fff; }
  .promo-banner.orange{ background: linear-gradient(135deg, var(--orange), #FF8A5B); color:#fff; }
  .promo-eyebrow{ font-family:var(--font-mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase; opacity:.75; margin-bottom:12px; }
  .promo-banner h3{ font-family: var(--font-display); font-size:30px; font-weight:700; letter-spacing:-.01em; max-width:380px; margin-bottom:14px; }
  .promo-banner p{ opacity:.82; font-size:14px; max-width:340px; margin-bottom:24px; }
  .promo-banner .icon-decor{ position:absolute; right:-30px; bottom:-30px; width:220px; height:220px; opacity:.12; }
  .promo-banner .icon-decor .icon{ width:100%; height:100%; }

  .value-props{ display:grid; grid-template-columns: repeat(3,1fr); gap:20px; }
  .value-card{
    background:#fff; border:1px solid var(--border); border-radius: var(--radius);
    padding: 26px 24px; display:flex; align-items:center; gap:16px;
    transition: box-shadow .18s, transform .18s;
  }
  .value-card:hover{ box-shadow: var(--shadow-md); transform: translateY(-2px); }
  .value-icon{
    width:48px; height:48px; border-radius:12px; flex-shrink:0;
    background: var(--bg-slate); display:flex; align-items:center; justify-content:center; color: var(--blue);
  }
  .value-icon .icon{ width:22px; height:22px; }
  .value-card h4{ font-size:14.5px; font-weight:600; margin-bottom:4px; }
  .value-card p{ font-size:12.5px; color: var(--text-muted); }

  /* ============ NEWSLETTER STRIP ============ */
  .newsletter-strip{
    background: var(--text); color:#fff; border-radius: var(--radius-lg);
    padding: 40px 44px;
    display:flex; align-items:center; justify-content:space-between; gap:32px;
    flex-wrap:wrap;
  }
  .newsletter-copy h3{ font-family:var(--font-display); font-size:24px; font-weight:700; margin-bottom:6px; }
  .newsletter-copy p{ font-size:13.5px; color: rgba(255,255,255,.65); }
  .newsletter-form{ display:flex; gap:10px; flex-shrink:0; }
  .newsletter-form input{
    background: rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.16); border-radius:999px;
    padding: 13px 18px; color:#fff; font-size:13.5px; min-width:280px; outline:none;
  }
  .newsletter-form input::placeholder{ color: rgba(255,255,255,.45); }
  .newsletter-form input:focus{ border-color: var(--cyan); }
  .newsletter-form .btn-primary{ background: var(--cyan); color: var(--text); }
  .newsletter-form .btn-primary:hover{ background:#fff; }

  /* ============ FOOTER ============ */
  .site-footer{ background: var(--bg-slate); border-top:1px solid var(--border); padding-top: 60px; }
  .footer-grid{
    display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap:40px;
    padding-bottom: 44px; border-bottom: 1px solid var(--border);
  }
  .footer-brand .logo{ margin-bottom:14px; }
  .footer-brand p{ font-size:13px; color:var(--text-muted); max-width:260px; margin-bottom:20px; }
  .social-row{ display:flex; gap:10px; }
  .social-btn{
    width:36px; height:36px; border-radius:50%; background:#fff; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center; color:var(--text);
    transition: background .15s, color .15s;
  }
  .social-btn:hover{ background: var(--text); color:#fff; }
  .social-btn .icon{ width:15px; height:15px; }

  .footer-col h5{ font-size:12.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; margin-bottom:18px; color:var(--text-faint); }
  .footer-col ul{ display:flex; flex-direction:column; gap:11px; }
  .footer-col a{ font-size:13.5px; color:var(--text-muted); transition: color .15s; }
  .footer-col a:hover{ color:var(--text); }

  .footer-bottom{
    display:flex; align-items:center; justify-content:space-between; gap:20px;
    padding: 24px 0; flex-wrap:wrap;
  }
  .footer-copy{ font-size:12.5px; color: var(--text-faint); }
  .payment-badges{ display:flex; gap:8px; }
  .pay-badge{
    width:42px; height:26px; border-radius:6px; background:#fff; border:1px solid var(--border);
    display:flex; align-items:center; justify-content:center;
    font-family:var(--font-mono); font-size:8.5px; font-weight:700; color:var(--text-muted); letter-spacing:-.02em;
  }

  /* ============ CART DRAWER ============ */
  .overlay{
    position:fixed; inset:0; background: rgba(18,21,28,.5);
    opacity:0; pointer-events:none; transition: opacity .25s;
    z-index:90;
  }
  .overlay.is-open{ opacity:1; pointer-events:auto; }

  .drawer{
    position:fixed; top:0; right:0; height:100%; width:400px; max-width:92vw;
    background:#fff; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index:95; display:flex; flex-direction:column;
  }
  .drawer.is-open{ transform: translateX(0); }
  .drawer-head{ display:flex; align-items:center; justify-content:space-between; padding: 22px 24px; border-bottom:1px solid var(--border); }
  .drawer-head h3{ font-family: var(--font-display); font-size:19px; font-weight:700; }
  .drawer-close{ width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
  .drawer-close:hover{ background: var(--bg-slate); }
  .drawer-close .icon{ width:17px; height:17px; }
  .drawer-body{ flex:1; overflow-y:auto; padding: 8px 24px; }
  .cart-item{ display:flex; gap:14px; padding: 16px 0; border-bottom:1px solid var(--border); }
  .cart-item-media{ width:64px; height:64px; border-radius:10px; background:var(--bg-slate); display:flex; align-items:center; justify-content:center; flex-shrink:0; color: var(--text); }
  .cart-item-media .icon{ width:30px; height:30px; }
  .cart-item-info{ flex:1; display:flex; flex-direction:column; gap:4px; }
  .cart-item-name{ font-size:13.5px; font-weight:600; }
  .cart-item-price{ font-family:var(--font-mono); font-size:12.5px; color:var(--text-muted); }
  .cart-item-remove{ font-size:11.5px; color: var(--text-faint); text-decoration:underline; align-self:flex-start; margin-top:2px; }
  .cart-item-remove:hover{ color: var(--orange); }
  .cart-empty{ padding: 60px 10px; text-align:center; color:var(--text-muted); font-size:13.5px; }
  .cart-empty .icon{ width:40px; height:40px; margin: 0 auto 14px; color: var(--text-faint); }
  .drawer-foot{ padding: 20px 24px 26px; border-top:1px solid var(--border); }
  .drawer-subtotal{ display:flex; justify-content:space-between; align-items:center; margin-bottom:16px; }
  .drawer-subtotal span:first-child{ font-size:13.5px; color:var(--text-muted); }
  .drawer-subtotal span:last-child{ font-family:var(--font-mono); font-size:18px; font-weight:700; }

  /* Account drawer (quick login) */
  .drawer.account-drawer{ width:360px; }
  .field-group{ margin-bottom:16px; }
  .field-group label{ display:block; font-size:12px; font-weight:600; margin-bottom:7px; color:var(--text-muted); }
  .field-group input{
    width:100%; padding: 12px 14px; border:1px solid var(--border-strong); border-radius:10px;
    font-size:13.5px; outline:none; transition: border-color .15s;
  }
  .field-group input:focus{ border-color: var(--blue); }
  .form-note{ font-size:12px; color: var(--text-faint); text-align:center; margin-top:16px; }
  .form-note a{ color: var(--blue); font-weight:600; }

  /* ============ QUICK VIEW MODAL ============ */
  .modal{
    position:fixed; inset:0; z-index:100; display:flex; align-items:center; justify-content:center;
    padding: 24px; opacity:0; pointer-events:none; transition: opacity .2s;
  }
  .modal.is-open{ opacity:1; pointer-events:auto; }
  .modal-card{
    background:#fff; border-radius: var(--radius-lg); max-width:760px; width:100%;
    display:grid; grid-template-columns: 1fr 1fr; overflow:hidden;
    box-shadow: var(--shadow-lg);
    transform: translateY(16px); transition: transform .25s;
    max-height:88vh;
  }
  .modal.is-open .modal-card{ transform: translateY(0); }
  .modal-media{ background: var(--bg-slate); display:flex; align-items:center; justify-content:center; padding:40px; position:relative; }
  .modal-media svg{ width:70%; height:70%; color:var(--text); }
  .modal-close{ position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%; background:#fff; box-shadow:var(--shadow-sm); display:flex; align-items:center; justify-content:center; z-index:2; }
  .modal-close .icon{ width:16px; height:16px; }
  .modal-info{ padding: 34px 32px; overflow-y:auto; }
  .modal-info .product-cat{ margin-bottom:8px; }
  .modal-info h3{ font-family:var(--font-display); font-size:23px; font-weight:700; margin-bottom:10px; }
  .modal-price{ display:flex; align-items:baseline; gap:10px; font-family:var(--font-mono); margin-bottom:18px; }
  .modal-price .price-now{ font-size:22px; }
  .spec-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:24px; padding: 14px 16px; background:var(--bg-slate); border-radius:12px; }
  .spec-row{ display:flex; justify-content:space-between; font-size:12px; font-family:var(--font-mono); }
  .spec-row span:first-child{ color:var(--text-faint); }
  .spec-row span:last-child{ font-weight:600; }
  .modal-actions{ display:flex; gap:10px; }

  /* ============ MOBILE MENU ============ */
  .mobile-menu{
    position:fixed; inset:0; z-index:98; background:#fff;
    transform: translateX(-100%); transition: transform .28s;
    padding: 20px 24px; overflow-y:auto;
  }
  .mobile-menu.is-open{ transform: translateX(0); }
  .mobile-menu-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:24px; }
  .mobile-menu a{ display:block; padding: 14px 4px; font-size:15.5px; font-weight:600; border-bottom:1px solid var(--border); }
  .mobile-menu h5{ font-size:11.5px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin: 24px 4px 8px; }

  /* ============ RESPONSIVE ============ */
  @media (max-width: 1180px){
    .product-grid{ grid-template-columns: repeat(3,1fr); }
    .cat-grid{ grid-template-columns: repeat(4,1fr); }
    .hero h1{ font-size:44px; }
    .promo-row{ grid-template-columns: 1fr; }
  }
  @media (max-width: 900px){
    .container, .header-inner, .navbar-inner, .topbar-inner{ padding-left:20px; padding-right:20px; }
    .header-search{ display:none; }
    .navbar{ display:none; }
    .topbar-links{ display:none; }
    .header-burger{ display:flex; }
    .hero-inner{ grid-template-columns:1fr; padding-top:44px; }
    .hero-visual{ height:340px; order:-1; margin-bottom:8px; }
    .hero h1{ font-size:36px; }
    .value-props{ grid-template-columns:1fr; }
    .footer-grid{ grid-template-columns: 1fr 1fr; gap:32px 20px; }
  }
  @media (max-width: 640px){
    .product-grid{ grid-template-columns: repeat(2,1fr); gap:14px; }
    .cat-grid{ grid-template-columns: repeat(3,1fr); }
    .section{ padding: 44px 0; }
    .section-head h2{ font-size:25px; }
    .newsletter-strip{ flex-direction:column; align-items:flex-start; padding: 30px 26px; }
    .newsletter-form{ width:100%; }
    .newsletter-form input{ min-width:0; flex:1; }
    .footer-grid{ grid-template-columns:1fr; }
    .footer-bottom{ flex-direction:column; align-items:flex-start; }
    .modal-card{ grid-template-columns:1fr; }
    .modal-media{ padding:24px; min-height:200px; }
    .promo-banner h3{ font-size:24px; }
    .drawer{ width:100%; }
  }
