/* ==========================================================================
   Karachi Laptop House - Base & Desktop Styles
   ========================================================================== */
:root {
  --ink: #20252d;
  --muted: #6d7480;
  --line: #e6e9ed;
  --surface: #f5f7f8;
  --blue: #2559d8;
  --dark: #171b23;
  --radius: 12px;
  --header-h: 78px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: #fff;
}

img, video, iframe, svg, canvas {
  max-width: 100%;
  height: auto;
}

.shell {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

/* ==========================================================================
   Sticky Header — hide on scroll down, show on scroll up
   ========================================================================== */
.site-header {
  height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .77);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(230, 233, 237, .75);
  width: 100%;
  transition: transform 280ms ease;
  will-change: transform;
}

.site-header.header-hidden {
  transform: translateY(-100%);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.04em;
  display: flex;
  gap: 9px;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img, .custom-logo img, .custom-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-family: Georgia, serif;
  font-style: italic;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a, .footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}

.nav-links a:hover, .footer a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

.search, .cart {
  height: 38px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  color: var(--ink);
  font: 500 12px Inter;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}

.cart {
  position: relative;
  padding-left: 34px;
}

.cart::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 13px;
  width: 11px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.cart::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 9px;
  width: 7px;
  height: 6px;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
}

.search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  flex-shrink: 0;
}

.cart b {
  background: var(--ink);
  color: #fff;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  font-size: 9px;
}

/* ==========================================================================
   Search Drawer — slides down below header when 🔍 tapped
   ========================================================================== */
.search-drawer {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 12px 20px;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 280ms ease, opacity 200ms ease;
  pointer-events: none;
}

.search-drawer.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-drawer form {
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
}

.search-drawer input {
  flex: 1;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font: 14px Inter;
  color: var(--ink);
  outline: 0;
  min-width: 0;
}

.search-drawer input:focus {
  border-color: #91acef;
  box-shadow: 0 0 0 3px #edf2ff;
}

.search-drawer .search-close {
  width: 36px;
  height: 36px;
  border: 0;
  background: var(--surface);
  border-radius: 9px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--ink);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-top: 95px;
  display: grid;
  grid-template-columns: 1fr 1.04fr;
  position: relative;
  column-gap: 50px;
  align-items: center;
}

.eyebrow {
  font: 500 10px "DM Mono", monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 19px;
}

.eyebrow i {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--blue);
  display: inline-block;
  margin: 0 7px 1px 0;
}

/* FIX: Scoped h2 sizing — the old `h2` was unscoped and applied 49px globally */
.hero h1 {
  font-size: 49px;
  line-height: 1.08;
  letter-spacing: -.065em;
  margin: 0;
  font-weight: 700;
}

h2 {
  font-size: 49px;
  line-height: 1.08;
  letter-spacing: -.065em;
  margin: 0;
  font-weight: 700;
}

.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.hero-text {
  max-width: 496px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 25px 0 27px;
}

.hero-buttons {
  display: flex;
  gap: 10px;
}

.button {
  border: 0;
  border-radius: 12px;
  padding: 13px 17px;
  font: 600 13px Inter;
  text-decoration: none;
  display: inline-flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  transition: .2s ease;
  cursor: pointer;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 7px 14px rgba(37, 89, 216, .16);
}

.button-quiet {
  background: var(--surface);
  color: var(--ink);
}

.proof {
  display: flex;
  gap: 19px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 11px;
}

.proof b {
  color: var(--blue);
  margin-right: 4px;
}

.hero-art {
  height: 412px;
  border-radius: 24px;
  background: #edf0f3;
  position: relative;
  overflow: hidden;      /* contains all absolute children */
  isolation: isolate;
  width: 100%;
}

/* FIX: .glow contained by .hero-art overflow:hidden — no overflow */
.glow {
  width: 270px;
  height: 270px;
  border-radius: 50%;
  position: absolute;
  top: 45px;
  left: 105px;
  background: #dce5fc;
  filter: blur(35px);
}

.laptop {
  z-index: 1;
  position: absolute;
  left: 10%;
  top: 19%;
  width: 83%;
  height: 65%;
  transform: rotate(-4deg);
}

.screen {
  height: 84%;
  width: 89%;
  margin: auto;
  border: 8px solid #222831;
  border-radius: 12px 12px 3px 3px;
  background: #12235c;
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 27px rgba(27, 35, 46, .26);
}

.screen-dot {
  position: absolute;
  top: 3px;
  left: 50%;
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: #59616d;
}

.screen-wave {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  transform: rotate(-21deg);
}

.wave-one {
  height: 220px;
  width: 330px;
  background: #4c77ed;
  left: -60px;
  top: 54px;
}

.wave-two {
  height: 185px;
  width: 310px;
  background: #accaff;
  left: 110px;
  top: 70px;
}

/* FIX: wave-three had right: -100px which extended past .hero-art even with overflow:hidden
   on some browsers. Constrained to stay inside. */
.wave-three {
  height: 135px;
  width: 310px;
  background: #f4f3f8;
  right: -50px;
  top: -38px;
}

.hinge {
  height: 6px;
  width: 88%;
  margin: auto;
  background: #a1a6ad;
}

.base {
  width: 100%;
  height: 16%;
  background: linear-gradient(105deg, #c3c9d0, #ecf0f3 45%, #a6adb7);
  clip-path: polygon(5% 0, 94% 0, 100% 77%, 0 77%);
  border-radius: 0 0 15px 15px;
}

.base span {
  width: 22%;
  height: 4px;
  background: #8c939d;
  position: absolute;
  bottom: 22px;
  left: 39%;
  border-radius: 0 0 5px 5px;
}

.art-label {
  position: absolute;
  font: 500 8px "DM Mono";
  color: #7b8390;
  letter-spacing: .12em;
  line-height: 1.6;
  z-index: 2;
}

.top-label {
  top: 18px;
  left: 20px;
}

.bottom-label {
  bottom: 17px;
  right: 20px;
  text-align: right;
}

.stat-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 7px;
}

.stat-card small {
  font: 500 10px "DM Mono";
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  grid-column: 1 / -1;
}

.stat-card strong {
  letter-spacing: -.05em;
  font-size: 21px;
  margin-top: 6px;
}

.stat-card span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 13px;
}

.brands {
  padding-top: 105px;
}

.brands > p {
  font: 500 10px "DM Mono";
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 13px;
}

.brand-cloud {
  min-height: 104px;
  border-radius: 18px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 20px 27px;
  color: #707782;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.05em;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-cloud .apple {
  font-size: 19px;
}

.brand-cloud .hp {
  font-size: 24px;
  font-weight: 400;
}

.brand-cloud .intel {
  font-family: Georgia, serif;
  font-style: italic;
}

.section {
  padding-top: 136px;
}

.section-head, .product-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 37px;
}

.section-head > p {
  max-width: 355px;
  margin: 0 10px 4px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category {
  min-height: 204px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: .25s ease;
  position: relative;
  overflow: hidden;
}

.category:hover, .product:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(26, 36, 50, .09);
}

.category.wide {
  background: #eef3fd;
}

.category-icon {
  font-size: 30px;
  color: var(--blue);
}

.category h3, .product h3 {
  margin: 0 0 4px;
  letter-spacing: -.045em;
  font-size: 17px;
}

.category p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.arrow {
  position: absolute;
  right: 18px;
  bottom: 17px;
  font-size: 19px;
  color: var(--blue);
}

.product-heading .text-link {
  color: var(--blue);
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}

.text-link span {
  margin-left: 8px;
}

.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
}

.product {
  border-radius: 16px;
  transition: .25s ease;
}

.product-image {
  height: 265px;
  border-radius: 16px;
  background: #f1f3f5;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.product-image:before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  filter: blur(15px);
}

.product-image.legion {
  background: #202c38;
}

.product-image.legion:before {
  background: #29456f;
}

.product-image.xps {
  background: #e4e4e2;
}

.mini-laptop {
  width: 72%;
  height: 55%;
  transform: rotate(-8deg);
  z-index: 1;
}

.mini-laptop:before {
  content: "";
  display: block;
  width: 79%;
  height: 75%;
  margin: auto;
  border: 5px solid #353a40;
  border-bottom: 3px solid #2a2e34;
  border-radius: 7px 7px 2px 2px;
  background: #2444a4;
  box-shadow: 0 13px 17px rgba(25, 32, 41, .2);
}

.mini-laptop i {
  display: block;
  width: 100%;
  height: 11%;
  background: #b8c0c8;
  clip-path: polygon(5% 0, 95% 0, 100% 80%, 0 80%);
  border-radius: 0 0 8px 8px;
}

.legion .mini-laptop:before {
  background: #23396d;
  border-color: #111820;
}

.badge {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #fff;
  border-radius: 7px;
  padding: 5px 7px;
  font: 500 9px "DM Mono";
  text-transform: uppercase;
  color: var(--blue);
}

.product-info {
  padding: 15px 2px;
}

.product-info p {
  font: 500 10px "DM Mono";
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 5px;
}

.product-info span {
  font-size: 11px;
  color: var(--muted);
  display: block;
}

.product-info strong {
  display: block;
  margin-top: 14px;
  font-size: 14px;
  letter-spacing: -.02em;
}

.arrival-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.arrival-grid article {
  min-height: 192px;
  background: var(--surface);
  border-radius: 16px;
  padding: 19px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: .25s;
}

.arrival-grid article:hover {
  background: #edf2ff;
  transform: translateY(-3px);
}

.arrival-grid span, .why-grid b {
  font: 500 10px "DM Mono";
  color: var(--blue);
  margin-bottom: auto;
}

.arrival-grid h3 {
  font-size: 16px;
  letter-spacing: -.04em;
  margin: 0 0 5px;
}

.arrival-grid p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.best {
  padding-top: 136px;
  display: grid;
  grid-template-columns: 2.1fr 1fr;
  gap: 12px;
}

.best-product {
  min-height: 405px;
  background: var(--dark);
  border-radius: 20px;
  padding: 47px;
  position: relative;
  overflow: hidden;      /* contains .best-laptop */
  color: #fff;
}

.light {
  color: #96b3ff;
}

.best h2 {
  font-size: 35px;
  position: relative;
  z-index: 1;
}

.best-product > div:first-child > p:not(.eyebrow) {
  max-width: 420px;
  color: #b1b7c1;
  line-height: 1.7;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.button-light {
  background: #fff;
  color: var(--ink);
  position: relative;
  z-index: 1;
  margin-top: 5px;
}

/* FIX: .best-laptop uses negative right, but .best-product has overflow:hidden.
   Reduced negative offset to stay inside container. */
.best-laptop {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 52%;
  height: 60%;
  opacity: .8;
}

.best-laptop .mini-laptop {
  width: 100%;
  height: 100%;
  transform: rotate(-12deg);
}

.best aside {
  padding: 31px;
  background: #eff3ff;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.best aside > p:last-child {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -.04em;
  margin: 0;
}

.center-head {
  text-align: center;
  margin-bottom: 36px;
}

.center-head .eyebrow {
  margin-bottom: 17px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.why-grid article {
  padding: 27px 22px 29px;
  border-right: 1px solid var(--line);
}

.why-grid article:last-child {
  border: 0;
}

.why-grid h3 {
  font-size: 16px;
  letter-spacing: -.04em;
  margin: 32px 0 8px;
}

.why-grid p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.testimonials blockquote {
  background: var(--surface);
  border-radius: 16px;
  margin: 0;
  padding: 24px;
  min-height: 209px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -.02em;
}

.testimonials footer {
  font-size: 11px;
  font-weight: 600;
  margin-top: 22px;
}

.testimonials footer span {
  font-weight: 400;
  color: var(--muted);
}

.newsletter {
  margin-top: 136px;
  background: var(--dark);
  color: #fff;
  border-radius: 22px;
  padding: 44px 50px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
  align-items: center;
}

.newsletter h2 {
  font-size: 34px;
}

.newsletter p:not(.eyebrow) {
  font-size: 12px;
  color: #aeb5c0;
  max-width: 490px;
  margin: 12px 0 0;
}

/* FIX: Removed min-width:350px — this was the #1 overflow cause on 375px viewports.
   The form uses flex:1 to fill available space naturally. */
.newsletter form {
  display: flex;
  gap: 9px;
  flex: 1;
  min-width: 0;
}

.newsletter input {
  background: #282e38;
  color: #fff;
  border: 1px solid #373f4a;
  border-radius: 12px;
  padding: 0 14px;
  font: 13px Inter;
  outline: 0;
  flex: 1;
  min-width: 0;
  height: 46px;
}

.newsletter input:focus {
  border-color: #7799ff;
}

.subscribed {
  background: #3b8d67;
}

.footer {
  padding-top: 55px;
  padding-bottom: 30px;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 26px;
  border-bottom: 0;
}

.footer > div {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer p, .footer small {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}

.footer small {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 6px;
}

/* ==========================================================================
   Responsive Breakpoints: 1024px, 768px, 480px
   ========================================================================== */

/* ── 1024px Breakpoint ─────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --header-h: 72px;
  }
  .shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero {
    grid-template-columns: 1fr 1fr;
    column-gap: 30px;
    padding-top: 75px;
  }
  .hero h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 40px;
  }
  .category-grid, .products {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
  .newsletter {
    gap: 30px;
    padding: 40px;
  }
}

/* ── 768px Breakpoint ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --header-h: 60px;
  }
  .shell {
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Header & Navigation */
  .site-header {
    height: var(--header-h);
  }
  .brand {
    font-size: 14px;
  }
  .brand img, .custom-logo img, .custom-logo {
    max-height: 42px !important;
    width: auto;
    object-fit: contain;
  }
  .brand-mark {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  .nav-links {
    display: none !important;
  }
  .nav-actions {
    margin-left: auto;
    gap: 6px;
  }
  
  /* On mobile: search button is icon-only, triggers drawer */
  .search {
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 10px;
  }
  .search span {
    display: none;
  }
  .cart {
    height: 36px;
    padding: 0 10px 0 30px;
    font-size: 11px;
  }
  .cart::before {
    left: 10px;
  }
  .cart::after {
    left: 13px;
  }
  .cart b {
    width: 15px;
    height: 15px;
    font-size: 8px;
  }
  
  /* Search drawer offset for shorter header */
  .search-drawer {
    top: var(--header-h);
  }
  
  /* Hero Section: Single-Column */
  .hero {
    grid-template-columns: 1fr;
    row-gap: 28px;
    padding-top: 45px;
  }
  .hero h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 36px;
  }
  .hero-text {
    max-width: 100%;
    margin: 18px 0 22px;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-buttons .button {
    width: 100%;
    justify-content: space-between;
    text-align: center;
  }
  .hero-art {
    width: 100%;
    max-width: 100%;
    margin-top: 24px;
    height: auto;
    aspect-ratio: 16 / 10;
    min-height: 220px;
  }
  .laptop {
    left: 6%;
    width: 88%;
    height: 68%;
    top: 16%;
  }
  .glow {
    width: 55%;
    height: 55%;
    left: 15%;
    top: 15%;
  }
  .stat-row {
    grid-column: auto;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  
  /* Vertical Card Stacking */
  .brands {
    padding-top: 75px;
  }
  .brand-cloud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 16px;
    min-height: auto;
    font-size: 16px;
    text-align: center;
  }
  .section {
    padding-top: 80px;
  }
  .section-head, .product-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }
  .category-grid, .products {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .product-image {
    height: 240px;
  }
  .arrival-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .best {
    padding-top: 80px;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .best-product {
    padding: 32px 24px;
    min-height: auto;
  }
  .best h2 {
    font-size: 28px;
  }
  .best-laptop {
    width: 50%;
    height: 45%;
    right: -5px;
    bottom: -5px;
    opacity: 0.6;
  }
  .best aside {
    padding: 24px;
  }
  .why-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--line);
    border-bottom: 0;
  }
  .why-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }
  .why-grid article h3 {
    margin-top: 16px;
  }
  .testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .newsletter {
    margin-top: 80px;
    padding: 32px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    border-radius: 18px;
  }
  .newsletter h2 {
    font-size: 28px;
  }
  .newsletter p:not(.eyebrow) {
    max-width: 100%;
  }
  .newsletter form {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .newsletter input {
    height: 46px;
    width: 100%;
  }
  .newsletter button {
    width: 100%;
    height: 46px;
    justify-content: center;
  }
  .footer {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 40px;
  }
  .footer > div {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ── 480px Breakpoint ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .shell {
    padding-left: 16px;
    padding-right: 16px;
  }
  .brand {
    font-size: 13px;
  }
  .brand img, .custom-logo img, .custom-logo {
    max-height: 38px !important;
  }
  .search {
    width: 36px;
    height: 36px;
  }
  .cart {
    height: 34px;
    padding: 0 8px 0 28px;
    font-size: 10px;
  }
  .cart::before {
    left: 9px;
    top: 11px;
    width: 10px;
    height: 9px;
  }
  .cart::after {
    left: 11px;
    top: 7px;
  }
  .hero h1 {
    font-size: 30px;
  }
  h2 {
    font-size: 30px;
  }
  .section-head h2 br, .product-heading h2 br, .center-head h2 br, .best h2 br {
    display: none;
  }
  .proof {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .brand-cloud {
    grid-template-columns: repeat(2, 1fr);
    font-size: 15px;
  }
  .best-product {
    padding: 24px 18px;
  }
  .best h2 {
    font-size: 24px;
  }
  .newsletter {
    padding: 24px 18px;
  }
  .newsletter h2 {
    font-size: 24px;
  }
}

/* ==========================================================================
   WordPress Blog, Templates & Component Styles
   ========================================================================== */

.blog-index, .archive-posts, .page-default, .post-single, .catalog-search-results {
  padding-top: 50px;
  padding-bottom: 80px;
  min-height: 50vh;
}

.page-header {
  margin-bottom: 40px;
}

.page-header h1, .page-header .page-title {
  font-size: 36px;
  letter-spacing: -.05em;
  font-weight: 700;
  margin: 0 0 10px;
}

.archive-description {
  font-size: 14px;
  color: var(--muted);
}

.posts-list {
  display: grid;
  gap: 30px;
}

.post-card {
  border-bottom: 1px solid var(--line);
  padding-bottom: 30px;
}

.entry-header {
  margin-bottom: 15px;
}

.entry-title {
  font-size: 24px;
  letter-spacing: -.04em;
  margin: 0 0 10px;
  font-weight: 600;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--blue);
}

.entry-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
}

.post-thumbnail {
  margin-bottom: 15px;
  border-radius: 12px;
  overflow: hidden;
  max-height: 280px;
}

.post-thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.entry-summary {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.entry-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink);
}

.entry-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
}

.empty-state-block {
  text-align: center;
  padding: 60px 0;
}

.empty-state-block h2 {
  font-size: 24px;
  letter-spacing: -.04em;
  margin: 0 0 10px;
}

.empty-state-block p {
  color: var(--muted);
}

/* Comments Area */
.comments-area {
  margin-top: 50px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}

.comments-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: -.03em;
}

.comment-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 20px;
}

/* Search & 404 States */
.post-search-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.post-search-card h2 {
  font-size: 18px;
  margin: 0 0 10px;
  font-weight: 600;
}

.post-search-card h2 a {
  color: inherit;
  text-decoration: none;
}

.post-search-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 10px 0;
}

.states-grid-wrapper {
  display: block;
  max-width: 600px;
  margin: 40px auto 0;
}

.state-card-clean {
  border: 0;
  padding: 0;
  background: transparent;
}

.search-input-hidden {
  display: none;
}
