  :root{
    --orange-1:#ff7a1a;
    --orange-2:#ff9d2e;
    --orange-3:#ffb347;
    --yellow:#ffd23f;
    --dark:#241a12;
    --gray-text:#5b5148;
    --soft-bg:#fff8f0;
    --white:#ffffff;
    --radius-lg:20px;
    --radius-md:14px;
    --shadow:0 10px 30px rgba(255,122,26,0.18);

    /* ---- Theme upgrade: secondary accent + a refined elevation scale ---- */
    --navy:#1b2436;
    --navy-soft:#2c3650;
    --shadow-sm:0 2px 8px rgba(36,26,18,.06);
    --shadow-md:0 8px 24px rgba(36,26,18,.08);
    --shadow-lg:0 20px 45px rgba(36,26,18,.12);
    --transition-fast:.18s cubic-bezier(.4,0,.2,1);
    --transition-med:.3s cubic-bezier(.4,0,.2,1);
  }
  *{margin:0;padding:0;box-sizing:border-box;}
  body{font-family:'Inter',sans-serif;color:var(--dark);background:var(--white);}
  h1,h2,h3,h4{font-family:'Poppins',sans-serif;letter-spacing:-0.01em;line-height:1.25;}

  /* ---- Dark mode (toggle via JS, persisted in localStorage) ---- */
  body[data-theme="dark"]{
    --dark:#f1ece4;
    --gray-text:#b8afa2;
    --soft-bg:#20180f;
    --white:#15100a;
    --shadow:0 10px 30px rgba(0,0,0,.4);
    --shadow-sm:0 2px 8px rgba(0,0,0,.3);
    --shadow-md:0 8px 24px rgba(0,0,0,.35);
    --shadow-lg:0 20px 45px rgba(0,0,0,.5);
    background:var(--white);
  }
  body[data-theme="dark"] .panel-box,
  body[data-theme="dark"] .zm-bot-panel,
  body[data-theme="dark"] .cat-circle{ box-shadow:var(--shadow-md); }
  body[data-theme="dark"] input, body[data-theme="dark"] textarea, body[data-theme="dark"] select{
    background:#241b12; color:var(--dark); border-color:#3a2d1c;
  }

  .zm-theme-toggle{
    position:fixed; bottom:24px; left:24px; width:46px; height:46px; border-radius:50%;
    background:var(--navy); color:#fff; border:none; cursor:pointer; z-index:996;
    display:flex; align-items:center; justify-content:center; font-size:19px;
    box-shadow:var(--shadow-md); transition:transform var(--transition-fast);
  }
  .zm-theme-toggle:hover{ transform:scale(1.08); }
  @media(max-width:520px){ .zm-theme-toggle{ bottom:20px; left:16px; width:42px; height:42px; } }
  img{max-width:100%;display:block;}
  a{text-decoration:none;color:inherit;}
  ul{list-style:none;}
  .container{max-width:1240px;margin:0 auto;padding:0 20px;}

  /* ===== Announcement bar ===== */
  .announce-track{
    background:linear-gradient(90deg,var(--navy),var(--orange-1));
    color:#fff;
    overflow:hidden;
    white-space:nowrap;
    padding:8px 0;
    font-size:13px;
    font-weight:600;
    letter-spacing:.3px;
  }
  .announce-track span{
    display:inline-block;
    padding-right:60px;
    animation:scrollLeft 22s linear infinite;
  }
  @keyframes scrollLeft{
    0%{transform:translateX(0);}
    100%{transform:translateX(-50%);}
  }

  /* ===== Top utility bar ===== */
  .topbar{
    background:var(--dark);
    color:#f2e9df;
    font-size:12px;
  }
  .topbar .container{
    display:flex;justify-content:space-between;align-items:center;height:34px;
  }
  .topbar-links{display:flex;gap:18px;}
  .countdown{display:flex;gap:6px;align-items:center;font-weight:600;}
  .countdown b{background:rgba(255,255,255,.12);padding:2px 6px;border-radius:4px;}

  /* ===== Header ===== */
  header{
    background:#fff;
    box-shadow:0 4px 20px rgba(27,36,54,.08);
    position:sticky;top:0;z-index:100;
  }
  .header-inner{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 0;
    gap:24px;
  }
  .logo{
    font-family:'Poppins',sans-serif;
    font-weight:800;
    font-size:24px;
    display:flex;align-items:center;gap:8px;
  }
  .logo .mark{
    width:38px;height:38px;border-radius:50%;
    background:linear-gradient(135deg,var(--orange-1),var(--yellow));
    display:flex;align-items:center;justify-content:center;
    color:#fff;font-size:18px;font-weight:900;
  }
  .logo .sub{font-size:10px;font-weight:600;color:var(--gray-text);display:block;letter-spacing:1px;}

  .search-bar{
    flex:1;max-width:480px;
    display:flex;align-items:center;
    border:2px solid #ffe1c2;
    border-radius:999px;
    padding:6px 6px 6px 18px;
    background:var(--soft-bg);
  }
  .search-bar input{
    flex:1;border:none;background:transparent;outline:none;font-size:14px;
  }
  .search-bar button{
    border:none;background:linear-gradient(135deg,var(--orange-1),var(--orange-2));
    color:#fff;width:38px;height:38px;border-radius:50%;
    cursor:pointer;display:flex;align-items:center;justify-content:center;
  }

  .header-actions{display:flex;align-items:center;gap:20px;}
  .header-actions .action{position:relative;text-align:center;cursor:pointer;}
  .header-actions .icon-circle{
    width:42px;height:42px;border-radius:50%;background:var(--soft-bg);
    display:flex;align-items:center;justify-content:center;font-size:18px;
    border:1px solid #ffe1c2;
  }
  .badge{
    position:absolute;top:-4px;right:-4px;
    background:var(--orange-1);color:#fff;font-size:10px;font-weight:700;
    width:18px;height:18px;border-radius:50%;
    display:flex;align-items:center;justify-content:center;
  }

  nav.mainnav{background:linear-gradient(90deg,var(--navy) 0%,var(--orange-1) 55%,var(--orange-2) 100%);}
  nav.mainnav .container{display:flex;gap:32px;overflow-x:auto;}
  nav.mainnav a{
    color:#fff;font-size:14px;font-weight:600;padding:13px 0;white-space:nowrap;
    border-bottom:3px solid transparent;
    transition:border-color .2s;
  }
  nav.mainnav a:hover{border-bottom-color:var(--yellow);}
  nav.mainnav a.active-link{border-bottom-color:#fff;}

  /* ===== Hero ===== */
  .hero{
    position:relative;
    background:linear-gradient(120deg,var(--navy) 0%,#c94a12 42%,var(--orange-1) 68%,var(--orange-3) 100%);
    overflow:hidden;
  }
  .hero-slide{
    display:grid;grid-template-columns:1fr 1.05fr;
    align-items:center;gap:30px;
    padding:60px 20px;
    max-width:1280px;margin:0 auto;
    min-height:480px;
  }
  .hero-copy .eyebrow{
    display:inline-flex;align-items:center;gap:8px;
    background:rgba(255,255,255,.18);color:#fff;
    font-size:12px;font-weight:700;letter-spacing:1px;
    padding:6px 14px;border-radius:999px;margin-bottom:18px;
  }
  .hero-copy .script{
    font-family:'Poppins',sans-serif;font-style:italic;font-weight:600;
    color:var(--yellow);font-size:28px;margin-bottom:-6px;
  }
  .hero-copy h1{
    font-size:64px;font-weight:900;line-height:1;color:#fff;
    text-shadow:0 6px 20px rgba(0,0,0,.15);
  }
  .hero-copy h1 span{color:var(--yellow);}
  .hero-copy p{color:#fff;opacity:.9;margin:18px 0 26px;font-size:15px;max-width:380px;}
  .hero-cta{
    display:inline-flex;align-items:center;gap:10px;
    background:linear-gradient(135deg,var(--navy),var(--navy-soft));color:#fff;font-weight:700;font-size:14px;
    padding:15px 30px;border-radius:999px;
    box-shadow:0 12px 28px rgba(27,36,54,.35);
    transition:transform var(--transition-fast),box-shadow var(--transition-fast);
    border:none;cursor:pointer;
  }
  .hero-cta:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(27,36,54,.45);}
  .hero-visual{
    position:relative;display:flex;align-items:center;justify-content:center;width:100%;
  }
  .hero-visual .plate{
    width:100%;max-width:540px;height:420px;border-radius:28px;
    background:radial-gradient(circle at 35% 30%,#fff,#ffe9d1 70%);
    box-shadow:0 30px 70px rgba(0,0,0,.28);
    display:flex;align-items:center;justify-content:center;
    font-size:80px;overflow:hidden;
  }
  .hero-badge{
    position:absolute;top:-14px;right:16px;
    background:var(--yellow);color:var(--dark);
    width:90px;height:90px;border-radius:50%;
    display:flex;flex-direction:column;align-items:center;justify-content:center;
    font-weight:800;font-size:13px;text-align:center;
    box-shadow:0 10px 20px rgba(0,0,0,.25);
    transform:rotate(8deg);z-index:2;
  }
  /* Subtle pulse only for the "NEW" launch badge — not applied site-wide, so it doesn't slow anything down */
  .hero-badge.pulse{ animation: zmBadgePulse 1.8s ease-in-out infinite; }
  @keyframes zmBadgePulse{
    0%, 100%{ transform:rotate(8deg) scale(1); }
    50%{ transform:rotate(8deg) scale(1.08); }
  }
  .hero-badge span{font-size:22px;}
  .hero-dots{
    position:absolute;bottom:24px;left:50%;transform:translateX(-50%);
    display:flex;gap:8px;
  }
  .hero-dots i{
    width:8px;height:8px;border-radius:50%;background:rgba(255,255,255,.5);
  }
  .hero-dots i.active{background:#fff;width:22px;border-radius:5px;}

  /* ---- Visible-immediately entrance animation (no hover/scroll needed) ---- */
  @keyframes zmFadeInUp{
    from{ opacity:0; transform:translateY(18px); }
    to{ opacity:1; transform:translateY(0); }
  }
  .hero-copy{ animation: zmFadeInUp .7s cubic-bezier(.4,0,.2,1) both; }
  .hero-visual{ animation: zmFadeInUp .8s .12s cubic-bezier(.4,0,.2,1) both; }

  /* ---- Replays on every auto-rotate / dot click, not just first page load ---- */
  .hero-copy.zm-replay{ animation: zmFadeInUp .55s cubic-bezier(.4,0,.2,1) both; }
  .hero-visual.zm-replay .plate{ animation: zmFadeInUp .6s .08s cubic-bezier(.4,0,.2,1) both; }

  /* ---- Continuous gentle float on the hero product image — subtle, never stops, no reflow cost ---- */
  .hero-visual .plate img{ animation: zmFloat 4.5s ease-in-out infinite; }
  @keyframes zmFloat{
    0%, 100%{ transform:translateY(0); }
    50%{ transform:translateY(-10px); }
  }
  @media (prefers-reduced-motion: reduce){
    .hero-visual .plate img, .hero-badge.pulse, .hero-copy, .hero-visual, .hero-copy.zm-replay, .hero-visual.zm-replay .plate{ animation:none !important; }
  }

  /* ---- Hero feature row (Professional Repairing / Quality Service / Genuine Parts / Fast Turnaround) ---- */
  .hero-features{
    display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:32px;max-width:420px;
  }
  .hero-feature{
    display:flex;flex-direction:column;align-items:flex-start;gap:8px;color:#fff;
  }
  .hero-feature svg{ opacity:.95; }
  .hero-feature span{ font-size:10.5px; font-weight:700; line-height:1.35; opacity:.9; }
  @media(max-width:900px){
    .hero-features{ grid-template-columns:repeat(4,1fr); max-width:100%; }
  }
  @media(max-width:520px){
    .hero-features{ gap:8px; margin-top:22px; }
    .hero-feature span{ font-size:9.5px; }
  }

  /* ===== Categories ===== */
  .section{padding:60px 0;}
  .section-title{
    text-align:center;font-size:32px;font-weight:800;margin-bottom:14px;
    position:relative;padding-bottom:16px;
  }
  .section-title::after{
    content:'';position:absolute;bottom:0;left:50%;transform:translateX(-50%);
    width:64px;height:4px;border-radius:4px;
    background:linear-gradient(90deg,var(--orange-1),var(--navy));
  }
  .section-title[style*="text-align:left"]::after{ left:0;transform:none; }
  .section-sub{text-align:center;color:var(--gray-text);font-size:14px;margin-bottom:36px;}

  .cat-row{
    display:flex;justify-content:space-between;gap:16px;overflow-x:auto;padding-bottom:8px;
  }
  .cat-item{
    flex:1;min-width:110px;text-align:center;cursor:pointer;
  }
  .cat-circle{
    width:96px;height:96px;border-radius:50%;
    background:linear-gradient(150deg,var(--orange-2),var(--orange-1));
    margin:0 auto 12px;display:flex;align-items:center;justify-content:center;
    font-size:34px;color:#fff;
    box-shadow:var(--shadow);
    border:4px solid #fff;
    outline:2px solid #ffd9ad;
    transition:transform var(--transition-med),box-shadow var(--transition-med);
  }
  .cat-item:hover .cat-circle{transform:translateY(-6px) scale(1.04);box-shadow:var(--shadow-lg);}
  .cat-item span{font-size:13px;font-weight:600;}

  /* ===== Promo banner ===== */
  .promo-banner{
    background:linear-gradient(100deg,#2b2019,#3a291c);
    border-radius:var(--radius-lg);
    display:grid;grid-template-columns:1fr 1fr;align-items:center;
    overflow:hidden;margin:0 20px;
    max-width:1200px;margin-left:auto;margin-right:auto;
  }
  .promo-copy{padding:50px;color:#fff;}
  .promo-copy .tag{color:var(--yellow);font-weight:700;font-size:13px;letter-spacing:2px;}
  .promo-copy h2{font-size:38px;font-weight:900;margin:10px 0 6px;line-height:1.05;}
  .promo-copy p{opacity:.75;font-size:14px;margin-bottom:22px;}
  .promo-btn{
    display:inline-flex;align-items:center;gap:8px;
    background:var(--yellow);color:var(--dark);font-weight:800;font-size:13px;
    padding:12px 26px;border-radius:999px;
  }
  .promo-visual{
    background:linear-gradient(135deg,var(--orange-1),var(--orange-3));
    height:100%;min-height:260px;
    display:flex;align-items:center;justify-content:center;
    font-size:90px;
  }

  /* ===== Best selling ===== */
  .ribbon{
    background:repeating-linear-gradient(90deg,var(--orange-1),var(--orange-1) 160px,var(--orange-2) 160px,var(--orange-2) 320px);
    color:#fff;font-size:12px;font-weight:700;letter-spacing:1px;
    padding:10px 0;text-align:center;
  }
  .product-grid{
    display:grid;grid-template-columns:repeat(4,1fr);gap:22px;
  }
  .product-card{
    background:#fff;border:1px solid #f1e6d8;border-radius:var(--radius-md);
    overflow:hidden;transition:box-shadow var(--transition-med),transform var(--transition-med),border-color var(--transition-med);position:relative;
  }
  .product-card:hover{box-shadow:var(--shadow-lg);transform:translateY(-6px);border-color:transparent;}
  .product-thumb{
    background:var(--soft-bg);height:180px;display:flex;align-items:center;justify-content:center;
    font-size:60px;position:relative;
  }
  .discount-badge{
    position:absolute;top:12px;left:12px;
    background:var(--orange-1);color:#fff;font-size:11px;font-weight:800;
    padding:4px 9px;border-radius:6px;
  }
  .wishlist-btn{
    position:absolute;top:12px;right:12px;
    width:32px;height:32px;border-radius:50%;background:#fff;
    display:flex;align-items:center;justify-content:center;font-size:14px;
    box-shadow:0 4px 10px rgba(0,0,0,.1);
  }
  .product-info{padding:16px;}
  .product-info h4{font-size:14px;font-weight:600;margin-bottom:6px;line-height:1.3;height:36px;overflow:hidden;}
  .price-row{display:flex;align-items:baseline;gap:8px;margin-bottom:6px;}
  .price-new{font-size:17px;font-weight:800;color:var(--orange-1);}
  .price-old{font-size:12px;color:#aaa;text-decoration:line-through;}
  .sold-count{font-size:11px;color:var(--gray-text);}
  .sold-bar{height:5px;background:#f1e6d8;border-radius:3px;margin-top:8px;overflow:hidden;}
  .sold-bar i{display:block;height:100%;background:linear-gradient(90deg,var(--orange-1),var(--yellow));}

  /* ---- Out of stock state ---- */
  .product-card.out-of-stock .product-thumb img{opacity:.5;filter:grayscale(40%);}
  .oos-overlay{
    position:absolute;bottom:12px;left:12px;right:12px;text-align:center;
    background:rgba(27,36,54,.85);color:#fff;font-size:11px;font-weight:700;
    padding:6px 10px;border-radius:6px;letter-spacing:.03em;
  }

  /* ---- Used mobile condition badge ---- */
  .condition-badge{display:inline-block;font-size:10.5px;font-weight:700;padding:2px 9px;border-radius:10px;margin:4px 0;}
  .condition-badge.condition-brand_new{background:#e3f6e8;color:#1a7a3c;}
  .condition-badge.condition-like_new{background:#e3f0f6;color:#1a5a7a;}
  .condition-badge.condition-good{background:#fff4e0;color:#a15c00;}
  .condition-badge.condition-fair{background:#fdecea;color:#c0392b;}

  /* ---- Product image zoom lightbox ---- */
  .pd-main-img{ position:relative; cursor:zoom-in; }
  .pd-zoom-hint{
    position:absolute; bottom:10px; right:10px; background:rgba(27,36,54,.75); color:#fff;
    font-size:11px; font-weight:600; padding:5px 10px; border-radius:20px; pointer-events:none;
    opacity:0; transition:opacity var(--transition-fast);
  }
  .pd-main-img:hover .pd-zoom-hint{ opacity:1; }
  .pd-zoom-overlay{
    display:none; position:fixed; inset:0; background:rgba(10,8,5,.94); z-index:2000;
    align-items:center; justify-content:center; flex-direction:column; overflow:hidden;
  }
  .pd-zoom-overlay.open{ display:flex; }
  .pd-zoom-overlay img{
    max-width:90vw; max-height:80vh; object-fit:contain; cursor:zoom-in;
    transition:transform .25s ease; transform:scale(1); touch-action:pinch-zoom;
  }
  .pd-zoom-overlay img.zoomed{ cursor:zoom-out; transform:scale(2.2); }
  .pd-zoom-close{
    position:absolute; top:20px; right:24px; background:rgba(255,255,255,.12); color:#fff;
    border:none; width:40px; height:40px; border-radius:50%; font-size:18px; cursor:pointer;
  }
  .pd-zoom-tip{ color:#fff; opacity:.7; font-size:12px; margin-top:16px; }
  @media(max-width:640px){
    .pd-zoom-overlay img{ max-width:94vw; }
    .pd-zoom-overlay img.zoomed{ transform:scale(1.8); }
  }

  /* ===== Features strip ===== */
  .features-strip{
    display:grid;grid-template-columns:repeat(4,1fr);gap:20px;
    background:var(--soft-bg);border-radius:var(--radius-lg);padding:30px;
  }
  .feature-item{display:flex;align-items:center;gap:14px;}
  .feature-item .fi-icon{
    width:46px;height:46px;border-radius:50%;background:#fff;
    display:flex;align-items:center;justify-content:center;font-size:20px;
    box-shadow:0 4px 12px rgba(255,122,26,.15);
  }
  .feature-item b{display:block;font-size:13px;}
  .feature-item span{font-size:11px;color:var(--gray-text);}

  /* ===== Footer ===== */
  footer{background:var(--dark);color:#e9dfd3;margin-top:60px;}
  .footer-top{
    display:grid;grid-template-columns:1.4fr 1fr 1fr 1.2fr;gap:40px;
    padding:60px 0 40px;
  }
  .footer-top h5{color:#fff;font-size:14px;margin-bottom:18px;letter-spacing:.5px;}
  .footer-top p, .footer-top li{font-size:13px;color:#c7bba9;line-height:2;}
  .footer-top .logo{color:#fff;margin-bottom:14px;}
  .newsletter{display:flex;margin-top:14px;}
  .newsletter input{
    flex:1;border:none;padding:10px 14px;border-radius:8px 0 0 8px;font-size:13px;
  }
  .newsletter button{
    border:none;background:var(--orange-1);color:#fff;padding:0 18px;border-radius:0 8px 8px 0;font-weight:700;cursor:pointer;
  }
  .footer-bottom{
    border-top:1px solid rgba(255,255,255,.08);
    padding:20px 0;font-size:12px;color:#9c907f;
    display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;
  }

  @media(max-width:900px){
    .hero-slide{grid-template-columns:1fr;text-align:center;padding:50px 20px;}
    .hero-visual .plate{max-width:100%;height:260px;margin:0 auto;border-radius:20px;}
    .hero-copy p{margin-left:auto;margin-right:auto;}
    .hero-copy h1{font-size:42px;}
    .promo-banner{grid-template-columns:1fr;}
    .product-grid{grid-template-columns:repeat(2,1fr);}
    .features-strip{grid-template-columns:repeat(2,1fr);}
    .footer-top{grid-template-columns:1fr 1fr;}
    .search-bar{ display:flex; order:3; flex-basis:100%; max-width:100%; margin-top:10px; }
    .header-inner{ flex-wrap:wrap; }
    nav.mainnav .container{gap:20px;}
  }

/* Wishlist active state (JS toggled) */
.wishlist-btn.active{
  box-shadow:0 4px 12px rgba(255,122,26,.35);
}

/* ===================================================================
   Phase 2 additions — Category, Product, Cart, Checkout, AI widgets
   =================================================================== */

.breadcrumb{padding:16px 0;font-size:13px;color:var(--gray-text);}
.breadcrumb a{color:var(--orange-1);font-weight:600;}

/* ---- Category / listing page ---- */
.cat-layout{display:grid;grid-template-columns:250px 1fr;gap:30px;align-items:start;}
.filters-panel{background:var(--soft-bg);border:1px solid #ffe1c2;border-radius:var(--radius-md);padding:22px;position:sticky;top:90px;}
.filters-panel h3{font-size:16px;margin-bottom:16px;}
.filter-group{margin-bottom:20px;}
.filter-group h4{font-size:13px;margin-bottom:10px;color:var(--dark);}
.filter-group label{display:flex;gap:8px;align-items:center;font-size:13px;margin-bottom:8px;color:var(--gray-text);cursor:pointer;}
.price-slider{width:100%;}
.price-labels{display:flex;justify-content:space-between;font-size:12px;color:var(--gray-text);}

.cat-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;font-size:13px;color:var(--gray-text);}
.sort-select{border:1px solid #eee;border-radius:8px;padding:8px 12px;font-size:13px;background:#fff;}
.add-cart-mini{
  width:100%;margin-top:10px;padding:9px 0;border:none;border-radius:8px;
  background:var(--dark);color:#fff;font-weight:700;font-size:12px;cursor:pointer;
  transition:background .2s;
}
.add-cart-mini:hover{background:var(--orange-1);}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:36px;}
.page-btn{width:38px;height:38px;border-radius:8px;border:1px solid #eee;background:#fff;font-weight:600;cursor:pointer;}
.page-btn.active{background:var(--orange-1);color:#fff;border-color:var(--orange-1);}

/* ---- Product detail page ---- */
.product-detail{display:grid;grid-template-columns:1fr 1fr;gap:50px;padding:20px 0 40px;}
.pd-main-img{
  background:var(--soft-bg);border-radius:var(--radius-lg);height:380px;
  display:flex;align-items:center;justify-content:center;font-size:140px;overflow:hidden;
}
.pd-thumbs{display:flex;gap:12px;margin-top:14px;}
.pd-thumb{
  width:70px;height:70px;border-radius:10px;background:var(--soft-bg);
  display:flex;align-items:center;justify-content:center;font-size:28px;
  border:2px solid transparent;cursor:pointer;overflow:hidden;
}
.pd-thumb.active{border-color:var(--orange-1);}
.pd-info h1{font-size:26px;font-weight:800;margin-bottom:10px;}
.pd-rating{font-size:13px;color:var(--gray-text);margin-bottom:4px;}

.ai-box{
  background:linear-gradient(120deg,#fff8f0,#fff);border:1px solid #ffe1c2;
  border-radius:var(--radius-md);padding:16px 18px;margin:16px 0;
}
.ai-box-title{font-weight:800;font-size:13px;margin-bottom:6px;color:var(--orange-1);}
.ai-box p{font-size:13px;color:var(--gray-text);line-height:1.6;}
.ai-textarea{width:100%;border:1px solid #eee;border-radius:10px;padding:12px;font-size:13px;margin-top:10px;font-family:inherit;resize:vertical;min-height:80px;}
.ai-manual-note{margin-top:10px;font-size:12px;}
.ai-manual-note a{color:var(--orange-1);font-weight:700;}

.pd-variants h4{font-size:13px;margin-bottom:8px;}
.variant-row{display:flex;gap:10px;}
.variant-dot{width:30px;height:30px;border-radius:50%;display:inline-block;border:3px solid transparent;cursor:pointer;}
.variant-dot.active{border-color:var(--orange-1);}

.pd-qty-row{display:flex;align-items:center;gap:14px;margin:20px 0;flex-wrap:wrap;}
.qty-box{display:flex;align-items:center;border:1px solid #eee;border-radius:999px;overflow:hidden;}
.qty-box button{width:36px;height:36px;border:none;background:var(--soft-bg);font-size:16px;cursor:pointer;}
.qty-box input{width:40px;text-align:center;border:none;font-weight:700;}
.qty-box.small button{width:28px;height:28px;font-size:14px;}
.qty-box.small input{width:30px;}

.pd-actions-row{display:flex;gap:16px;margin-top:6px;}
.pd-mini-btn{background:none;border:1px solid #eee;border-radius:999px;padding:8px 16px;font-size:12px;font-weight:600;color:var(--gray-text);cursor:pointer;}

.stock-badge{margin:8px 0 4px;font-size:13px;font-weight:700;}
.stock-badge .stock-ok{color:#1a7a3d;}
.stock-badge .stock-low{color:#c0392b;background:#fdecea;padding:5px 10px;border-radius:6px;display:inline-block;animation:zmUrgentPulse 1.8s ease-in-out infinite;}
.stock-badge .stock-out{color:#8a8a8a;}
@keyframes zmUrgentPulse{ 0%,100%{opacity:1;} 50%{opacity:.6;} }

.pd-sticky-bar{
  display:none;
  position:fixed; left:0; right:0; bottom:0; z-index:500;
  background:#fff; border-top:1px solid #eee; box-shadow:0 -4px 16px rgba(0,0,0,.08);
  padding:10px 16px; align-items:center; justify-content:space-between; gap:12px;
}
.pd-sticky-bar.show{ display:flex; animation:zmFadeInUp .25s ease both; }
.pd-sticky-price{font-weight:800;font-size:16px;color:var(--dark);}
.pd-sticky-bar .hero-cta{padding:10px 22px;white-space:nowrap;}
@media(min-width:901px){ .pd-sticky-bar{ display:none !important; } } /* desktop already has the buttons on screen */

.pd-tabs{display:flex;gap:10px;border-bottom:2px solid #f1e6d8;margin:40px 0 24px;overflow-x:auto;}
.pd-tab{background:none;border:none;padding:12px 18px;font-weight:700;font-size:13px;color:var(--gray-text);cursor:pointer;border-bottom:3px solid transparent;white-space:nowrap;}
.pd-tab.active{color:var(--orange-1);border-color:var(--orange-1);}
.pd-tab-panel{display:none;font-size:14px;color:var(--gray-text);line-height:1.7;}
.pd-tab-panel.active{display:block;}
.spec-table{width:100%;border-collapse:collapse;}
.spec-table td{padding:12px 14px;border-bottom:1px solid #f1e6d8;font-size:13px;}
.spec-table td:first-child{font-weight:700;color:var(--dark);width:220px;}
.review-item{padding:14px 0;border-bottom:1px solid #f1e6d8;}
.review-item p{margin-top:4px;}

/* ---- Cart page ---- */
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:30px;align-items:start;}
.cart-line{display:grid;grid-template-columns:60px 1fr auto auto auto;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid #f1e6d8;}
.cart-line-thumb{width:60px;height:60px;background:var(--soft-bg);border-radius:10px;display:flex;align-items:center;justify-content:center;font-size:28px;overflow:hidden;}
.cart-line-info h4{font-size:14px;margin-bottom:4px;}
.cart-line-info span{font-size:13px;color:var(--orange-1);font-weight:700;}
.cart-line-total{font-weight:800;font-size:14px;}
.cl-remove{background:none;border:none;color:#c0392b;font-size:16px;cursor:pointer;}
.cart-summary{background:var(--soft-bg);border:1px solid #ffe1c2;border-radius:var(--radius-md);padding:22px;position:sticky;top:90px;}
.cart-summary h3{font-size:16px;margin-bottom:16px;}
.summary-row{display:flex;justify-content:space-between;font-size:13px;color:var(--gray-text);margin-bottom:10px;}
.summary-row.total{font-size:16px;font-weight:800;color:var(--dark);border-top:1px solid #ffe1c2;padding-top:10px;margin-top:10px;}
.promo-code-row{display:flex;margin:14px 0;}
.promo-code-row input{flex:1;border:1px solid #eee;border-radius:8px 0 0 8px;padding:10px;font-size:13px;}
.promo-code-row button{border:none;background:var(--dark);color:#fff;padding:0 16px;border-radius:0 8px 8px 0;font-weight:700;cursor:pointer;}
.empty-state{text-align:center;padding:60px 20px;}
.empty-state h3{margin:14px 0 6px;}
.empty-state p{color:var(--gray-text);margin-bottom:20px;}

/* ---- Checkout page ---- */
.checkout-layout{display:grid;grid-template-columns:1fr 340px;gap:30px;align-items:start;}
.checkout-form{background:#fff;border:1px solid #f1e6d8;border-radius:var(--radius-md);padding:26px;}
.checkout-form h3{font-size:16px;margin-bottom:16px;}
.checkout-form input, .checkout-form select, .checkout-form textarea{
  width:100%;border:1px solid #eee;border-radius:8px;padding:12px;font-size:13px;margin-bottom:14px;font-family:inherit;
}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.payment-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.pay-opt{display:flex;align-items:center;gap:8px;border:1px solid #eee;border-radius:10px;padding:12px;font-size:13px;cursor:pointer;}
.co-line{display:flex;justify-content:space-between;font-size:12px;color:var(--gray-text);margin-bottom:8px;}

.modal-overlay{
  position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;
  align-items:center;justify-content:center;z-index:999;
}
.modal-overlay.show{display:flex;}
.modal-box{background:#fff;border-radius:var(--radius-lg);padding:40px;text-align:center;max-width:360px;}
.modal-box h3{margin:10px 0;}
.modal-box p{color:var(--gray-text);font-size:13px;margin-bottom:20px;}

/* ---- AI Chat widget (site-wide) ---- */
.ai-chat-fab{
  position:fixed;bottom:24px;right:24px;width:58px;height:58px;border-radius:50%;
  background:linear-gradient(135deg,var(--orange-1),var(--yellow));border:none;color:#fff;
  font-size:26px;box-shadow:0 10px 25px rgba(255,122,26,.4);cursor:pointer;z-index:998;
}
.ai-chat-panel{
  position:fixed;bottom:92px;right:24px;width:320px;max-height:440px;
  background:#fff;border-radius:var(--radius-md);box-shadow:0 20px 50px rgba(0,0,0,.2);
  display:none;flex-direction:column;overflow:hidden;z-index:998;
}
.ai-chat-panel.open{display:flex;}
.ai-chat-header{background:var(--dark);color:#fff;padding:14px 16px;font-weight:700;font-size:13px;display:flex;justify-content:space-between;align-items:center;}
.ai-chat-header span{display:flex;gap:10px;}
.ai-chat-header button{background:none;border:none;color:#fff;cursor:pointer;font-size:14px;}
.ai-chat-status{padding:8px 14px;font-size:11px;color:var(--gray-text);background:var(--soft-bg);border-bottom:1px solid #f1e6d8;}
.ai-chat-body{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;}
.ai-chat-msg{max-width:80%;padding:9px 13px;border-radius:14px;font-size:12.5px;line-height:1.5;}
.ai-chat-msg.bot{background:var(--soft-bg);align-self:flex-start;}
.ai-chat-msg.user{background:var(--orange-1);color:#fff;align-self:flex-end;}
.ai-chat-input-row{display:flex;border-top:1px solid #f1e6d8;}
.ai-chat-input-row input{flex:1;border:none;padding:12px;font-size:13px;}
.ai-chat-input-row button{border:none;background:var(--orange-1);color:#fff;width:44px;cursor:pointer;}

@media(max-width:900px){
  .cat-layout, .cart-layout, .checkout-layout, .product-detail{grid-template-columns:1fr;}
  .filters-panel, .cart-summary{position:static;}
  .form-row, .payment-options{grid-template-columns:1fr;}
  .ai-chat-panel{width:88vw;right:6vw;}
}

/* ---- Real product photo sizing (Phase 2.1 — replaced emoji placeholders) ---- */
.product-thumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.pd-main-img img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.pd-thumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.cart-line-thumb img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.plate img{width:100%;height:100%;object-fit:cover;border-radius:inherit;}

/* ===================================================================
   Phase 3 additions — Mobile store hero, Repair grid, Compare, Category
   slider, WhatsApp floating button
   =================================================================== */

/* ---- Category auto-slider ---- */
.cat-slider-viewport{overflow-x:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x;scrollbar-width:none;}
.cat-slider-viewport::-webkit-scrollbar{display:none;}
.cat-slider-viewport .cat-row{flex-wrap:nowrap;justify-content:flex-start;user-select:none;}
.cat-slider-viewport .cat-item{flex:0 0 auto;width:120px;}

/* ---- Repair services grid (homepage teaser) ---- */
.repair-grid{
  display:grid;grid-template-columns:repeat(5,1fr);gap:16px;
}
.repair-item{
  background:var(--soft-bg);border:1px solid #ffe1c2;border-radius:var(--radius-md);
  padding:20px 12px;text-align:center;transition:transform .2s,box-shadow .2s;
}
.repair-item:hover{transform:translateY(-4px);box-shadow:var(--shadow);}
.ri-icon{font-size:30px;margin-bottom:8px;}
.repair-item span{font-size:12.5px;font-weight:700;color:var(--dark);}

/* ---- Compare Mobiles ---- */
.compare-picker{display:flex;align-items:center;gap:16px;max-width:680px;margin:0 auto 26px;}
.compare-picker select{flex:1;padding:12px;border:1px solid #eee;border-radius:8px;font-size:13px;background:#fff;}
.compare-vs{font-weight:800;color:var(--orange-1);font-size:14px;}
.compare-table-wrap{overflow-x:auto;}
.compare-table{width:100%;max-width:820px;margin:0 auto;border-collapse:collapse;font-size:13px;}
.compare-table th{background:var(--soft-bg);padding:12px;text-align:left;font-size:13px;}
.compare-table td{padding:11px 12px;border-bottom:1px solid #f1e6d8;}
.compare-table .ct-label{font-weight:700;color:var(--gray-text);width:140px;}
.compare-table .ct-win{background:#fff4e8;font-weight:800;color:var(--orange-1);}
.compare-verdict{max-width:820px;margin:16px auto 0;background:var(--soft-bg);border:1px solid #ffe1c2;border-radius:var(--radius-md);padding:14px 18px;font-size:13px;text-align:center;}

/* ---- Floating WhatsApp button (replaces the old floating AI button —
   AI Assistant now lives in the header icon strip, see script.js) ---- */
.wa-float-btn{
  position:fixed;bottom:24px;right:24px;width:58px;height:58px;border-radius:50%;
  background:#25D366;color:#fff;font-size:28px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 25px rgba(37,211,102,.45);z-index:997;text-decoration:none;
}

/* ---- Premium floating chatbot (site-wide) — stacked above the WhatsApp
   button so both stay visible and neither blocks the other. ---- */
.zm-bot-float-btn{
  position:fixed;bottom:96px;right:24px;width:58px;height:58px;border-radius:50%;
  background:linear-gradient(135deg,#ffb85c,#ff6b00);color:#fff;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 10px 25px rgba(255,107,0,.4);z-index:997;
  transition:transform .2s;
}
.zm-bot-float-btn:hover{ transform:translateY(-3px); }

.zm-bot-panel{
  position:fixed;bottom:162px;right:24px;width:340px;max-width:calc(100vw - 32px);
  background:#fff;border-radius:18px;box-shadow:0 20px 50px rgba(0,0,0,.18);
  overflow:hidden;z-index:998;
  opacity:0;visibility:hidden;transform:translateY(16px) scale(.97);
  transition:opacity .25s ease,transform .25s ease,visibility .25s;
}
.zm-bot-panel.open{ opacity:1;visibility:visible;transform:translateY(0) scale(1); }

.zm-bot-header{
  display:flex;align-items:center;gap:12px;padding:16px 16px;
  background:linear-gradient(135deg,#ff8a00,#ff5e00);color:#fff;
}
.zm-bot-avatar{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.2);
  display:flex;align-items:center;justify-content:center;font-weight:800;font-size:16px;flex-shrink:0;
}
.zm-bot-header div:nth-child(2){display:flex;flex-direction:column;flex:1;}
.zm-bot-header b{font-size:14px;}
.zm-bot-header span{font-size:11px;opacity:.85;}
.zm-bot-header button{background:none;border:none;color:#fff;font-size:15px;cursor:pointer;opacity:.85;}
.zm-bot-header button:hover{opacity:1;}

.zm-bot-body{max-height:340px;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#fffaf5;}
.zm-bot-msg{padding:9px 13px;border-radius:14px;font-size:13px;line-height:1.5;max-width:82%;}
.zm-bot-msg.bot{background:#fff;border:1px solid #f0e2d0;align-self:flex-start;border-bottom-left-radius:4px;}
.zm-bot-msg.user{background:var(--orange-1,#ff6b00);color:#fff;align-self:flex-end;border-bottom-right-radius:4px;}

.zm-bot-quick{display:flex;flex-wrap:wrap;gap:8px;margin-top:2px;}
.zm-bot-quick button{
  background:#fff;border:1px solid #ffddb0;color:#a15c00;font-size:12px;font-weight:600;
  padding:7px 12px;border-radius:20px;cursor:pointer;transition:background .2s;
}
.zm-bot-quick button:hover{background:#fff1de;}

.zm-bot-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid #f1e6d8;background:#fff;}
.zm-bot-input-row input{flex:1;padding:10px 12px;border:1px solid #eee;border-radius:20px;font-size:13px;}
.zm-bot-input-row button{
  width:38px;height:38px;border-radius:50%;border:none;background:var(--orange-1,#ff6b00);color:#fff;cursor:pointer;flex-shrink:0;
}

@media(max-width:520px){
  .zm-bot-panel{ right:16px; bottom:150px; width:calc(100vw - 32px); }
  .zm-bot-float-btn{ right:16px; bottom:88px; width:52px; height:52px; }
  .wa-float-btn{ right:16px; bottom:20px; width:52px; height:52px; }
}

@media(max-width:900px){
  .repair-grid{grid-template-columns:repeat(3,1fr);}
  .compare-picker{flex-direction:column;}
  .compare-vs{transform:rotate(90deg);}
}
@media(max-width:520px){
  .repair-grid{grid-template-columns:repeat(2,1fr);}
}

/* ---- PTA status badge on product cards ---- */
.pta-badge{
  position:absolute;bottom:8px;left:8px;padding:4px 9px;border-radius:999px;
  font-size:10px;font-weight:800;color:#fff;
}
.pta-badge.pta-ok{background:#1e8e5a;}
.pta-badge.pta-warn{background:#c0392b;}

/* ---- New Arrival / Best Seller badges (bottom-right, free corner) ---- */
.new-arrival-badge, .bestseller-badge{
  position:absolute; bottom:8px; right:8px; padding:4px 9px; border-radius:999px;
  font-size:10px; font-weight:800; color:#fff;
}
.new-arrival-badge{ background:var(--navy); }
.bestseller-badge{ background:linear-gradient(90deg,#ff5e00,var(--yellow)); color:var(--dark); }
