/* ======================================================
   HOME PAGE — CLEAN CSS (SOFT AURA LIGHT)
   (Single theme, no duplicates, no fighting overrides)
====================================================== */

/* =====================
   VARIABLES
===================== */
:root{
  --bg:#f4f7fb;                 /* page background */
  --card:#ffffff;               /* cards */
  --text:#0b1220;               /* main text */
  --muted:#475569;              /* secondary text */
  --muted2:#64748b;             /* placeholder + softer */
  --line:rgba(2,6,23,.12);      /* borders */
  --shadow:0 18px 50px rgba(2,6,23,.10);
  --radius:18px;
  --max:1400px;

  /* accents */
  --accent:#6366f1;             /* indigo */
  --accent2:#22c55e;            /* green */
  --accent3:#38bdf8;            /* sky */
  --accent4:#fb7185;            /* soft pink */
}

/* =====================
   BASE
===================== */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  line-height:1.45;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(99,102,241,.18), transparent 60%),
    radial-gradient(900px 520px at 85% 0%, rgba(34,197,94,.16), transparent 60%),
    radial-gradient(700px 450px at 55% 110%, rgba(56,189,248,.18), transparent 60%),
    #f4f7fb;
}
a{color:inherit;text-decoration:none}

/* =====================
   CONTAINER
===================== */
.container{
  max-width:var(--max);
  margin:0 auto;
  padding:0 18px;
}

/* =====================
   TOP BAR / NAV
===================== */
.topbar{
  position:sticky;
  top:0;
  z-index:10;
  background:rgba(255,255,255,.72);
  border-bottom:1px solid var(--line);
  backdrop-filter:blur(14px);
}
.nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.logo{
  width:38px;
  height:38px;
  border-radius:12px;
  background:linear-gradient(135deg,var(--accent),var(--accent2));
  box-shadow:0 12px 30px rgba(99,102,241,.20);
}
.brandSmall{font-size:14px;color:var(--muted)}
.brandBig{font-size:16px;font-weight:900;color:var(--text)}

.navlinks{
  display:flex;
  gap:12px;
  align-items:center;
  font-weight:800;
  flex-wrap:wrap;
}
.navlinks a{
  padding:10px 12px;
  border-radius:12px;
  color:#334155;
}
.navlinks a:hover,
.navlinks .active{
  background:rgba(99,102,241,.12);
  color:#0b1220;
}

/* =====================
   COMMON CARDS
===================== */
.card{
  background:rgba(255,255,255,.90);
  border:1px solid rgba(2,6,23,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

/* =====================
   HERO
===================== */
.hero{padding:26px 0 10px}

.kicker{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(99,102,241,.12), rgba(34,197,94,.10), rgba(56,189,248,.10));
  border:1px solid rgba(99,102,241,.22);
  font-size:13px;
  font-weight:900;
  color:#334155;
}

.h1{
  font-size:44px;
  line-height:1.1;
  margin:14px 0 10px;
  color:#0b1220;
}
@media(max-width:520px){.h1{font-size:34px}}

.sub{
  color:var(--muted);
  max-width:60ch;
}

.heroSplit{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:16px;
  margin-top:12px;
}
@media(max-width:900px){.heroSplit{grid-template-columns:1fr}}

.searchBox{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  border:1px solid rgba(99,102,241,.22);
  box-shadow:0 18px 50px rgba(2,6,23,.10), 0 0 0 6px rgba(99,102,241,.06);
}

.input{
  flex:1 1 260px;
  padding:12px 14px;
  border-radius:14px;
  background:#ffffff;
  border:1px solid rgba(2,6,23,.18);
  color:#0b1220;
  font-weight:700;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
.input::placeholder{
  color:var(--muted2);
  opacity:1;
  font-weight:600;
}
.input:focus{
  outline:none;
  border-color:rgba(99,102,241,.60);
  box-shadow:0 0 0 5px rgba(99,102,241,.18);
}

.btn{
  padding:12px 16px;
  border-radius:14px;
  border:none;
  font-weight:900;
  cursor:pointer;
}
.btnPrimary{
  background:linear-gradient(135deg,#6366f1,#818cf8);
  color:#fff;
  box-shadow:0 12px 30px rgba(99,102,241,.22);
}
.btnGood{
  background:linear-gradient(135deg,#22c55e,#4ade80);
  color:#052e16;
  box-shadow:0 12px 30px rgba(34,197,94,.18);
}
.btnGhost{
  background:rgba(2,6,23,.06);
  border:1px solid rgba(2,6,23,.12);
  color:#0f172a;
}

.heroStats{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}
@media(max-width:520px){.heroStats{grid-template-columns:1fr}}

.stat{
  padding:12px;
  border-radius:14px;
  background:rgba(255,255,255,.85);
  border:1px solid rgba(2,6,23,.10);
}
.statNum{font-weight:950;font-size:18px;color:#0b1220}
.statLabel{color:var(--muted);font-size:13px}

.note{margin-top:12px;color:var(--muted);font-size:13px}

/* ===== Hero image card ===== */
.heroArt{display:flex}
.artCard{
  width:100%;
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.76));
  border:1px solid rgba(2,6,23,.10);
}
.artTitle{font-weight:950;margin:2px 0 4px;color:#0b1220}
.artSub{color:var(--muted);font-size:13px;margin-bottom:10px}
.laptopSvg{width:100%;height:auto;display:block}

/* =====================
   HOME GRID
===================== */
.section{padding:10px 0 30px}

.homeGrid{
  display:grid;
  grid-template-columns:260px 1fr 320px;
  gap:16px;
  padding:18px 0 18px;
}
@media(max-width:1200px){.homeGrid{grid-template-columns:1fr}}

/* =====================
   SIDEBARS
===================== */
.sidebar{
  position:sticky;
  top:74px;
  padding:16px;
}
.sideBlock{
  padding:14px;
  border-radius:16px;
  background:linear-gradient(180deg, #f8fbff, #eef3ff);
  border:1px solid rgba(2,6,23,.10);
  box-shadow:0 18px 45px rgba(2,6,23,.08);
  margin-bottom:14px;
  position:relative;
  overflow:hidden;
}

/* small top accent strip */
.sideBlock::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  border-radius:16px 16px 0 0;
  background:linear-gradient(90deg,var(--accent),var(--accent3),var(--accent2));
  opacity:.55;
}

.sideHead{
  font-weight:950;
  margin:0 0 8px;
  background:linear-gradient(90deg,var(--accent),var(--accent3),var(--accent2));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
}
.sideSub{font-size:13px;color:var(--muted);margin:0 0 10px}

.brandList{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}

.sideLinks{
  display:flex;
  flex-direction:column;
  gap:8px;
}

/* common clickable items */
.brandList a,
.sideLinks a{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px;
  border-radius:12px;
  background:linear-gradient(180deg, #ffffff, #f7faff);
  border:1px solid rgba(99,102,241,.18);
  font-size:13px;
  font-weight:900;
  color:#0b1220;
  position:relative;
  overflow:hidden;
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

/* left color edge (Brands + Categories same) */
.brandList a::before,
.sideLinks a::before{
  content:"";
  position:absolute;
  left:0; top:0; bottom:0;
  width:6px;
  background:linear-gradient(180deg,var(--accent),var(--accent3),var(--accent2));
  opacity:.85;
}

/* hover */
.brandList a:hover,
.sideLinks a:hover{
  background:rgba(99,102,241,.08);
  border-color:rgba(99,102,241,.25);
  box-shadow:0 14px 28px rgba(2,6,23,.10);
  transform:translateY(-1px);
}

.badge{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  background:linear-gradient(135deg, #e0e7ff, #dcfce7);
  border:1px solid rgba(99,102,241,.35);
  font-weight:950;
  color:#111827;
}

/* =====================
   TITLES + LINKS
===================== */
.sectionTitle{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-end;
  margin:6px 0 14px;
}
.sectionTitle h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.2px;
  color:#0b1220;
}
.sectionTitle p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
}

.miniLink{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(2,6,23,.10);
  color:#0b1220;
  font-weight:900;
  font-size:13px;
}
.miniLink:hover{background:rgba(99,102,241,.08);border-color:rgba(99,102,241,.22)}

/* =====================
   FEED / STORY CARDS
===================== */
.feed{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
@media(max-width:900px){.feed{grid-template-columns:1fr}}

.storyCard{
  padding:16px;
  border-radius:18px;
  background:rgba(255,255,255,.90);
  border:1px solid rgba(2,6,23,.10);
  box-shadow:0 18px 45px rgba(2,6,23,.08);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  position:relative;
  overflow:hidden;
}
.storyCard::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:3px;
  border-radius:18px 18px 0 0;
  background:linear-gradient(90deg,var(--accent),var(--accent3),var(--accent2));
  opacity:.55;
}
.storyCard:hover{
  transform:translateY(-2px);
  border-color:rgba(99,102,241,.22);
  box-shadow:0 26px 70px rgba(2,6,23,.12);
}

.thumb{
  height:160px;
  border-radius:16px;
  background:
    radial-gradient(140px 140px at 22% 30%, rgba(99,102,241,.25), transparent 58%),
    radial-gradient(190px 160px at 72% 22%, rgba(56,189,248,.18), transparent 60%),
    radial-gradient(240px 180px at 65% 75%, rgba(34,197,94,.14), transparent 60%),
    rgba(2,6,23,.06);
  border:1px solid rgba(2,6,23,.08);
  margin-bottom:12px;
}

.storyTitle{font-weight:950;margin:0 0 6px;color:#0b1220}
.storyText{color:var(--muted);font-size:13px;margin:0 0 12px}

.storyMeta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.tag,
.pill{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(2,6,23,.05);
  border:1px solid rgba(2,6,23,.10);
  color:#0f172a;
  font-weight:900;
}

/* =====================
   GRID TILES
===================== */
.grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
}
@media(max-width:1000px){.grid{grid-template-columns:1fr}}
.tile{padding:12px}
.tile h3{margin:0 0 6px;color:#0b1220}
.tile p{margin:0 0 12px;color:var(--muted);font-size:13px}
.row{display:flex;gap:8px;flex-wrap:wrap}

/* =========================
   NEW LAUNCHES
========================= */
.launchGrid{
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:12px;
}
@media (max-width:1300px){ .launchGrid{grid-template-columns:repeat(3,1fr);} }
@media (max-width:900px){ .launchGrid{grid-template-columns:1fr;} }

.launchCard{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(2,6,23,.10);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 45px rgba(2,6,23,.08);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.launchCard:hover{
  transform:translateY(-2px);
  border-color:rgba(99,102,241,.22);
  box-shadow:0 26px 70px rgba(2,6,23,.12);
}

.launchImg{
  height:150px;
  border-radius:16px 16px 0 0;
  overflow:hidden;
  background:#f1f5f9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.launchImg img{
  width:100%;
  height:100%;
  object-fit:contain; /* important for laptops */
  display:block;
}

/* =========================
   OFFERS
========================= */
.offerGrid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
}
@media (max-width:1100px){ .offerGrid{grid-template-columns:1fr;} }

.offerCard{
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(2,6,23,.10);
  background:rgba(255,255,255,.92);
  box-shadow:0 18px 45px rgba(2,6,23,.08);
  transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.offerCard:hover{
  transform:translateY(-2px);
  border-color:rgba(34,197,94,.22);
  box-shadow:0 26px 70px rgba(2,6,23,.12);
}

.offerTop{
  display:flex;
  gap:12px;
  align-items:stretch;
  margin-bottom:10px;
}
.offerImg{
  flex:0 0 140px;
  height:110px;
  border-radius:14px;
  overflow:hidden;
  background:#f1f5f9;
}

.offerImg img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}

.offerPrices{
  flex:1;
  border-radius:14px;
  padding:12px;
  background:rgba(2,6,23,.05);
  border:1px solid rgba(2,6,23,.10);
}
.priceNow{
  font-size:22px;
  font-weight:950;
  letter-spacing:-.2px;
  color:#0b1220;
}
.priceWas{
  margin-top:2px;
  font-size:13px;
  color:var(--muted);
  text-decoration:line-through;
}
.discount{
  margin-top:8px;
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.22);
  color:#064e3b;
}

.offerTitle{margin:6px 0 6px;font-size:16px;color:#0b1220;font-weight:950}
.offerText{margin:0 0 12px;color:var(--muted);font-size:13px}

.offerSpecs{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}
.spec{
  font-size:12px;
  font-weight:950;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(2,6,23,.05);
  border:1px solid rgba(2,6,23,.10);
  color:#0f172a;
}
.offerActions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* =====================
   FOOTER
===================== */
.footer{
  border-top:1px solid rgba(2,6,23,.10);
  padding:26px 0;
  text-align:center;
  color:var(--muted);
}
.small{font-size:13px}
/* =====================================
   IMAGE HOVER POLISH (Launch + Offers)
===================================== */

.launchImg img,
.offerImg img{
  transition: transform .25s ease;
}

.launchCard:hover img,
.offerCard:hover img{
  transform: scale(1.04);
}
/* Launch cards - make image area look like Offer cards */
.launchImg{
  padding: 12px !important;             /* space around image */
  background: rgba(0,0,0,.03) !important;
  border-bottom: 1px solid rgba(2,6,23,.06) !important;
}

/* Make the image fit nicely with rounded corners */
.launchImg img{
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

/* Body spacing (text should not touch edges) */
.launchBody{
  padding: 14px 16px 16px !important;
}
.launchCard{
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.launchCard:hover{
  transform: translateY(-2px);
}
#launches{
  padding-top: 6px !important;
}
/* Reduce spacing before/after Launches section only */
#launches.section{
  padding-top: 4px !important;   /* reduce top gap */
  padding-bottom: 18px !important;
}
/* Launch cards: make image spacing match Offer cards */
.launchCard{
  overflow: hidden;              /* ensures rounded corners behave */
}

.launchImg{
  padding: 12px !important;      /* same feel as offer */
  padding-bottom: 0 !important;  /* keeps image near top, but not touching */
}

.launchImg img{
  width: 100% !important;
  height: 150px !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 14px !important;
}

/* Keep text away from edges */
.launchBody{
  padding: 14px 16px 16px !important;
}
.launchImg img,
.offerImg img{
  transition:transform .25s ease;
}

.launchCard:hover img,
.offerCard:hover img{
  transform:scale(1.04);
}
/* Match spacing above Launches to other sections (like Offers) */
#launches.section{
  padding-top: 10px !important;     /* same feel as your normal .section */
  margin-top: 0 !important;
}

/* Sometimes the extra gap comes from the title block itself */
#launches .sectionTitle{
  margin-top: 0 !important;
  margin-bottom: 14px !important;   /* keep same as offers */
}
/* Reduce bottom gap of the section just before launches (safe global tweak) */
.section{
  padding-bottom: 26px !important;
}
/* Launch images: stop cutting, show full image nicely */
.launchImg{
  height: 170px !important;
  padding: 12px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid rgba(2,6,23,.08) !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.launchImg img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;   /* key fix */
  display: block !important;
  border-radius: 12px !important;
}
.launchImg img,
.offerImg img{
  transition: transform .25s ease;
}

.launchCard:hover .launchImg img,
.offerCard:hover .offerImg img{
  transform: scale(1.03);
}
/* Fix extra gap above "New laptop launches" */
.section + #launches{
  margin-top: 0 !important;
}

/* Reduce bottom gap of the section just before launches */
.section{
  padding-bottom: 20px !important;
}
/* Force same vertical rhythm as "Latest laptop offers" */
#launches.section{
  padding-top: 12px !important;
}
/* Normalize vertical spacing between sections */
.section{
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Reduce extra bottom space of the section before launches */
.section:not(#launches){
  margin-bottom: 0 !important;
}

/* Ensure launches section does not add extra top gap */
#launches{
  margin-top: 0 !important;
  padding-top: 24px !important;
}
/* Kill bottom margin from previous grids */
.homeGrid,
.compareGrid,
.popularGrid,
.launchGrid{
  margin-bottom: 0 !important;
}
