/* ==========================================================
   Cloud Doctor — style.css
   Theme: "Bazaar precision" — marketplace energy + tech-grid clarity
   ========================================================== */

:root{
  --bg:#F4F5F7;
  --surface:#FFFFFF;
  --ink:#131A22;
  --muted:#5B6472;
  --line:#E1E4E9;
  --accent:#FF6A1A;
  --accent-ink:#B34600;
  --blue:#145DA0;
  --success:#1B8A5A;
  --radius:6px;
  --container:1200px;
  --shadow-sm: 0 1px 2px rgba(19,26,34,.06);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:'Inter',sans-serif;
  font-size:15px;
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Sora',sans-serif;
  font-weight:700;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
}
p{margin:0 0 1em;color:var(--muted);}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
img{max-width:100%;display:block;}
button{font-family:inherit;cursor:pointer;}
:focus-visible{outline:2px solid var(--blue);outline-offset:2px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.01ms !important;transition-duration:.01ms !important;}
}

.wrap{max-width:var(--container);margin:0 auto;padding:0 24px;}
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 22px;border-radius:var(--radius);border:1px solid transparent;
  font-weight:600;font-size:14.5px;cursor:pointer;transition:transform .15s ease, background .15s ease;
}
.btn-primary{background:var(--accent);color:#fff;}
.btn-primary:hover{background:var(--accent-ink);}
.btn-outline{background:transparent;border-color:var(--ink);color:var(--ink);}
.btn-outline:hover{background:var(--ink);color:#fff;}
.btn-block{width:100%;}

/* ---------- Top utility bar ---------- */
.topbar{background:var(--ink);color:#c8cdd4;font-size:12.5px;}
.topbar .wrap{display:flex;justify-content:space-between;align-items:center;height:34px;}
.topbar a{color:#c8cdd4;}
.topbar a:hover{color:#fff;}
.topbar-links{display:flex;gap:18px;}

/* ---------- Header ---------- */
.site-header{
  background:var(--surface);
  border-bottom:1px solid var(--line);
  position:sticky;top:0;z-index:40;
}
.site-header .wrap{
  display:flex;align-items:center;gap:28px;height:76px;
}
.logo{
  font-family:'Sora',sans-serif;font-weight:700;font-size:22px;
  display:flex;align-items:baseline;gap:2px;flex-shrink:0;
}
.logo .mark{color:var(--accent);}
.logo{flex-direction:column;align-items:flex-start;line-height:1.1;gap:0;}
.logo .by-line{font-size:10.5px;font-weight:600;color:var(--accent);letter-spacing:.02em;}
.footer-brand .logo .by-line{color:var(--accent);}
.search{
  flex:1;display:flex;border:1.5px solid var(--line);border-radius:var(--radius);overflow:hidden;
  max-width:560px;
}
.search input{
  flex:1;border:0;padding:11px 14px;font-size:14px;font-family:inherit;color:var(--ink);
  background:transparent;
}
.search input:focus{outline:none;}
.search button{
  border:0;background:var(--ink);color:#fff;padding:0 18px;font-size:14px;
}
.header-actions{display:flex;align-items:center;gap:22px;margin-left:auto;flex-shrink:0;}
.header-actions .action{
  display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11.5px;color:var(--muted);
  position:relative;
}
.header-actions .action svg{width:22px;height:22px;stroke:var(--ink);}
.header-actions .action:hover{color:var(--ink);}
.badge{
  position:absolute;top:-6px;right:-10px;background:var(--accent);color:#fff;
  font-size:10px;font-weight:700;border-radius:50%;width:17px;height:17px;
  display:flex;align-items:center;justify-content:center;
}

/* ---------- Category strip ---------- */
.catstrip{background:var(--surface);border-bottom:1px solid var(--line);}
.catstrip .wrap{display:flex;gap:6px;overflow-x:auto;padding-top:2px;padding-bottom:2px;}
.catstrip a{
  white-space:nowrap;padding:12px 16px;font-size:13.5px;font-weight:600;color:var(--muted);
  border-bottom:2px solid transparent;
}
.catstrip a:hover, .catstrip a.active{color:var(--ink);border-bottom-color:var(--accent);}

/* ---------- Hero ---------- */
.hero{padding:56px 0 48px;}
.hero .wrap{display:grid;grid-template-columns:1.05fr .95fr;gap:48px;align-items:center;}
.hero .eyebrow{color:var(--blue);font-weight:600;font-size:13.5px;margin-bottom:10px;}
.hero h1{font-size:44px;max-width:9.5em;}
.hero h1 .accent{color:var(--accent);}
.hero .sub{font-size:16px;max-width:480px;}
.hero-cta{display:flex;gap:14px;margin-top:22px;}
.hero-stats{display:flex;gap:32px;margin-top:36px;padding-top:26px;border-top:1px solid var(--line);}
.hero-stats div strong{display:block;font-family:'Sora',sans-serif;font-size:22px;}
.hero-stats div span{font-size:12.5px;color:var(--muted);}

.mosaic{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:12px;height:420px;}
.mosaic .tile{
  border-radius:var(--radius);display:flex;flex-direction:column;justify-content:flex-end;
  padding:16px;color:#fff;font-family:'Sora',sans-serif;font-weight:600;font-size:14px;
  position:relative;overflow:hidden;background-size:cover;background-position:center;
}
.mosaic .tile svg{width:34px;height:34px;stroke:#fff;margin-bottom:auto;opacity:.9;}
.mosaic .t1{background:linear-gradient(135deg,#1a2431,#131A22);grid-row:span 2;}
.mosaic .t2{background:linear-gradient(135deg,#FF7E3D,#FF6A1A);}
.mosaic .t3{background:linear-gradient(135deg,#1B6FC2,#145DA0);}
.mosaic .t4{background:linear-gradient(135deg,#2C3745,#1a2431);}

/* ---------- Trust strip ---------- */
.trust{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;}
.trust .wrap{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.trust .item{display:flex;align-items:center;gap:12px;}
.trust .item svg{width:26px;height:26px;stroke:var(--accent);flex-shrink:0;}
.trust .item strong{display:block;font-size:13.5px;}
.trust .item span{font-size:12px;color:var(--muted);}

/* ---------- Section heading ---------- */
.section{padding:56px 0;}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:28px;}
.section-head h2{font-size:26px;margin-bottom:4px;}
.section-head p{margin:0;}
.section-head .view-all{font-size:13.5px;font-weight:600;color:var(--blue);white-space:nowrap;}

/* ---------- Category grid ---------- */
.category-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.cat-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  padding:22px 16px;text-align:center;transition:border-color .15s ease, transform .15s ease;
}
.cat-card:hover{border-color:var(--accent);transform:translateY(-3px);}
.cat-card .icon{
  width:52px;height:52px;border-radius:50%;background:var(--bg);margin:0 auto 14px;
  background-size:cover;background-position:center;
}
.cat-card strong{display:block;font-size:13.5px;}
.cat-card span{font-size:11.5px;color:var(--muted);}

/* ---------- Deal banner ---------- */
.deal{
  background:linear-gradient(120deg,#131A22,#1E2733);
  border-radius:var(--radius);color:#fff;padding:32px 40px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  margin:0 24px;max-width:calc(var(--container) - 48px);margin:0 auto;
}
.deal .txt .tag{color:var(--accent);font-weight:700;font-size:12.5px;letter-spacing:.02em;}
.deal .txt h3{color:#fff;font-size:24px;margin:4px 0 6px;}
.deal .txt p{color:#aeb6c0;margin:0;}
.deal .timer{display:flex;gap:10px;}
.deal .timer div{
  background:rgba(255,255,255,.08);border-radius:var(--radius);padding:10px 14px;text-align:center;min-width:58px;
}
.deal .timer strong{display:block;font-family:'Sora',sans-serif;font-size:20px;}
.deal .timer span{font-size:10.5px;color:#aeb6c0;}

/* ---------- Filter chips ---------- */
.filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:26px;}
.filters button{
  padding:9px 16px;border-radius:20px;border:1px solid var(--line);background:var(--surface);
  font-size:13px;font-weight:600;color:var(--muted);
}
.filters button.active, .filters button:hover{border-color:var(--ink);color:var(--ink);}

/* ---------- Product grid ---------- */
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.product-card{
  background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);
  overflow:hidden;display:flex;flex-direction:column;
}
.product-card .thumb{
  aspect-ratio:1/1;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
}
.product-card .thumb img{width:100%;height:100%;object-fit:cover;}
.product-card .thumb .wish{
  position:absolute;top:10px;right:10px;width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.9);display:flex;align-items:center;justify-content:center;
}
.product-card .thumb .wish svg{width:15px;height:15px;stroke:var(--ink);opacity:1;}
.product-card .body{padding:14px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1;}
.product-card .cat{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.03em;}
.product-card h4{font-size:14.5px;font-family:'Inter',sans-serif;font-weight:600;margin:0;}
.product-card .rating{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:4px;}
.product-card .rating strong{color:var(--success);background:#e7f6ee;padding:1px 6px;border-radius:4px;font-size:11.5px;}
.product-card .price-row{display:flex;align-items:baseline;gap:8px;margin-top:2px;}
.product-card .price{font-family:'Sora',sans-serif;font-weight:700;font-size:17px;}
.product-card .mrp{font-size:12.5px;color:var(--muted);text-decoration:line-through;}
.product-card .off{font-size:12px;color:var(--success);font-weight:600;}
.product-card .add-btn{
  margin-top:10px;width:100%;padding:10px;border-radius:var(--radius);border:1.5px solid var(--ink);
  background:transparent;font-weight:600;font-size:13px;transition:background .15s ease,color .15s ease;
}
.product-card .add-btn:hover{background:var(--ink);color:#fff;}
.product-card .add-btn.added{background:var(--success);border-color:var(--success);color:#fff;}

/* ---------- Why us ---------- */
.why{background:var(--surface);border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;}
.why-item svg{width:30px;height:30px;stroke:var(--accent);margin-bottom:14px;}
.why-item h3{font-size:16.5px;}

/* ---------- Newsletter ---------- */
.newsletter{background:var(--ink);}
.newsletter .wrap{padding:44px 24px;display:flex;justify-content:space-between;align-items:center;gap:24px;}
.newsletter h3{color:#fff;font-size:20px;margin-bottom:4px;}
.newsletter p{color:#9aa3ae;margin:0;}
.newsletter form{display:flex;gap:10px;flex-shrink:0;}
.newsletter input{
  padding:12px 14px;border-radius:var(--radius);border:0;width:260px;font-family:inherit;font-size:14px;
}

/* ---------- Footer ---------- */
.site-footer{background:#0E141B;color:#8b93a0;padding:52px 0 0;}
.footer-grid{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:32px;padding-bottom:36px;}
.footer-grid h4{color:#fff;font-size:13.5px;margin-bottom:14px;}
.footer-grid li{margin-bottom:9px;font-size:13.5px;}
.footer-grid a:hover{color:#fff;}
.footer-brand .logo{color:#fff;margin-bottom:10px;}
.footer-brand p{max-width:280px;font-size:13.5px;}
.footer-bottom{
  border-top:1px solid #202932;padding:18px 0;display:flex;justify-content:space-between;
  font-size:12.5px;
}

/* ---------- Cart drawer ---------- */
.overlay{
  position:fixed;inset:0;background:rgba(19,26,34,.45);z-index:60;opacity:0;pointer-events:none;
  transition:opacity .2s ease;
}
.overlay.open{opacity:1;pointer-events:auto;}
.cart-drawer{
  position:fixed;top:0;right:0;height:100%;width:400px;max-width:92vw;background:#fff;z-index:70;
  transform:translateX(100%);transition:transform .25s ease;display:flex;flex-direction:column;
}
.cart-drawer.open{transform:translateX(0);}
.cart-head{display:flex;justify-content:space-between;align-items:center;padding:20px 22px;border-bottom:1px solid var(--line);}
.cart-head h3{margin:0;font-size:18px;}
.cart-head button{background:none;border:0;font-size:22px;line-height:1;color:var(--muted);}
.cart-items{flex:1;overflow-y:auto;padding:10px 22px;}
.cart-row{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);}
.cart-row .thumb-sm{
  width:56px;height:56px;border-radius:var(--radius);flex-shrink:0;overflow:hidden;
}
.cart-row .thumb-sm img{width:100%;height:100%;object-fit:cover;}
.cart-row .info{flex:1;}
.cart-row .info strong{display:block;font-size:13.5px;margin-bottom:2px;}
.cart-row .info .cat{font-size:11px;color:var(--muted);}
.cart-row .qty{display:flex;align-items:center;gap:8px;margin-top:8px;}
.cart-row .qty button{width:22px;height:22px;border:1px solid var(--line);background:#fff;border-radius:4px;font-size:13px;}
.cart-row .price{font-weight:700;font-family:'Sora',sans-serif;font-size:14px;}
.cart-row .remove{font-size:11.5px;color:var(--accent-ink);margin-top:6px;background:none;border:0;padding:0;}
.cart-empty{padding:60px 20px;text-align:center;color:var(--muted);}
.cart-empty svg{width:44px;height:44px;stroke:var(--line);margin-bottom:14px;}
.cart-foot{border-top:1px solid var(--line);padding:18px 22px 22px;}
.cart-foot .row{display:flex;justify-content:space-between;font-size:14px;margin-bottom:6px;}
.cart-foot .row.total{font-weight:700;font-size:16px;font-family:'Sora',sans-serif;margin:10px 0 16px;}

/* ---------- Mobile menu button (hidden desktop) ---------- */
.menu-btn{display:none;background:none;border:0;}
.menu-btn svg{width:24px;height:24px;stroke:var(--ink);}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .category-grid{grid-template-columns:repeat(3,1fr);}
  .product-grid{grid-template-columns:repeat(3,1fr);}
  .hero .wrap{grid-template-columns:1fr;}
  .mosaic{height:300px;order:-1;}
  .trust .wrap{grid-template-columns:repeat(2,1fr);row-gap:16px;}
  .why-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr 1fr;}
}
@media (max-width:680px){
  .topbar{display:none;}
  .search{display:none;}
  .menu-btn{display:block;}
  .site-header .wrap{height:64px;}
  .header-actions{gap:16px;}
  .hero h1{font-size:30px;}
  .hero-stats{gap:20px;}
  .category-grid{grid-template-columns:repeat(2,1fr);}
  .product-grid{grid-template-columns:repeat(2,1fr);}
  .deal{flex-direction:column;align-items:flex-start;padding:26px;}
  .newsletter .wrap{flex-direction:column;align-items:flex-start;}
  .newsletter input{width:100%;}
  .newsletter form{width:100%;}
  .footer-grid{grid-template-columns:1fr;}
  .cart-drawer{width:100%;}
}
