/* =========================================================
   Shop Pure USA — Shared Stylesheet
   Palette: blue, white, red, light gray
   Modern USA e-commerce style. Responsive: desktop/tablet/mobile
   ========================================================= */

/* ---------- Premium icons (Font Awesome) ---------- */
.fa-solid,
.fa-brands,
.fa-regular {
  vertical-align: -0.06em;
  line-height: 1;
}

/* Header action icons */
.header-actions .h-link .ic i {
  font-size: 20px;
}

.logo .spark i {
  font-size: 16px;
}

/* Image logo in the header */
.logo img {
  height: 54px;
  width: auto;
  display: block;
}

@media (max-width: 720px) {
  .logo img {
    height: 32px;
  }
}

.search button i {
  font-size: 16px;
}

.dept-btn i {
  font-size: 13px;
}

/* Trust ribbon icons get brand color */
.ribbon .cell .ic i {
  font-size: 24px;
  color: var(--blue);
}

/* Footer & brand social icons */
.footer-brand .socials a i {
  font-size: 17px;
}

/* Benefit / value tiles: icon inherits the tile size, keep centered */
.benefit .ic i {
  font-size: 26px;
}

.value .ic i {
  font-size: 24px;
}

/* Nav apple + inline brand marks */
.nav-inner a.hot i,
.announce .apple i {
  margin-right: 2px;
}

.announce .apple i {
  font-size: 13px;
}

/* Social login buttons */
.social-row .btn i {
  font-size: 16px;
}

/* ---------- Design tokens ---------- */
:root {
  --blue: #0b5fff;
  --blue-dark: #0842b8;
  --blue-light: #e8f0ff;
  --red: #e11d2a;
  --red-dark: #b91520;
  --white: #ffffff;
  --gray-50: #f6f8fb;
  --gray-100: #eef1f6;
  --gray-200: #e2e7ef;
  --gray-300: #cbd3df;
  --gray-500: #7a869a;
  --gray-700: #3d475c;
  --ink: #16202f;
  --star: #ffb300;

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(16, 32, 47, .08);
  --shadow: 0 6px 18px rgba(16, 32, 47, .10);
  --shadow-lg: 0 14px 40px rgba(16, 32, 47, .16);
  --header-h: 118px;
  --maxw: 1240px;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--gray-50);
  line-height: 1.5;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
}

input,
select {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow);
}

.btn-red {
  background: var(--red);
  color: #fff;
}

.btn-red:hover {
  background: var(--red-dark);
  box-shadow: var(--shadow);
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border: 2px solid var(--blue);
}

.btn-ghost:hover {
  background: var(--blue-light);
}

.btn-light {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--gray-200);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--blue-dark), var(--blue));
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  text-align: center;
  padding: 8px 14px;
  letter-spacing: .2px;
}

.announce .apple {
  font-weight: 800;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.header-main {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.logo .spark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  font-size: 18px;
}

.logo .usa {
  color: var(--red);
}

/* Search */
.search {
  flex: 1;
  display: flex;
  min-width: 0;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  transition: border .15s ease, background .15s ease;
}

.search:focus-within {
  border-color: var(--blue);
  background: #fff;
}

.search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 12px 18px;
  font-size: 15px;
  outline: none;
}

.search button {
  background: var(--blue);
  color: #fff;
  padding: 0 20px;
  font-size: 17px;
  border-radius: 999px;
  margin: 3px;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.h-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: var(--gray-700);
  font-weight: 600;
  gap: 2px;
}

.h-link .ic {
  font-size: 20px;
}

.h-link:hover {
  color: var(--blue);
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

/* Nav bar (departments row) */
.nav-bar {
  background: #fff;
  border-top: 1px solid var(--gray-100);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 6px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-inner::-webkit-scrollbar {
  display: none;
}

.dept-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  flex-shrink: 0;
}

.nav-inner a {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-inner a:hover {
  background: var(--gray-100);
  color: var(--blue);
}

.nav-inner a.hot {
  color: var(--red);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  font-size: 26px;
  color: var(--ink);
  padding: 4px;
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(82vw, 340px);
  background: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: var(--shadow-lg);
  padding: 18px;
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu h4 {
  font-size: 13px;
  color: var(--gray-500);
  text-transform: uppercase;
  margin: 18px 0 8px;
  letter-spacing: .5px;
}

.mobile-menu a {
  display: block;
  padding: 12px 10px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--gray-700);
}

.mobile-menu a:hover {
  background: var(--gray-100);
}

.mobile-menu .close {
  font-size: 26px;
  float: right;
  background: none;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 47, .45);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}

/* ---------- Section headers ---------- */
.section {
  padding: 30px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 800;
}

.section-head a {
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}

.section-sub {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: -8px;
  margin-bottom: 18px;
}

/* ---------- Hero product slider ---------- */
.hero-slider {
  position: relative;
  margin: 18px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gray-100);
}

.hs-track {
  display: flex;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hs-slide {
  position: relative;
  min-width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hs-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hs-overlay {
  position: absolute;
  inset: 0;
}

.hs-overlay.blue {
  background: linear-gradient(100deg, rgba(8, 66, 184, .94) 30%, rgba(11, 95, 255, .35));
}

.hs-overlay.red {
  background: linear-gradient(100deg, rgba(177, 21, 32, .94) 30%, rgba(225, 29, 42, .35));
}

.hs-overlay.dark {
  background: linear-gradient(100deg, rgba(11, 18, 32, .94) 30%, rgba(31, 42, 68, .4));
}

.hs-overlay.teal {
  background: linear-gradient(100deg, rgba(10, 111, 102, .94) 30%, rgba(15, 157, 143, .35));
}

.hs-overlay.violet {
  background: linear-gradient(100deg, rgba(69, 38, 199, .94) 30%, rgba(107, 70, 255, .35));
}

.hs-body {
  position: relative;
  z-index: 2;
  padding: 44px;
  max-width: 560px;
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(4px);
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 14px;
}

.hs-cat {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .85;
}

.hs-body h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  margin: 6px 0 12px;
}

.hs-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 20px;
}

.hs-price .now {
  font-size: 26px;
  font-weight: 900;
}

.hs-price .was {
  font-size: 15px;
  text-decoration: line-through;
  opacity: .7;
}

.hs-price .cut {
  background: var(--star);
  color: #16202f;
  font-weight: 900;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 999px;
}

.hs-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Arrows */
.hs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-size: 16px;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  transition: background .15s ease, transform .15s ease;
}

.hs-arrow:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.hs-arrow.prev {
  left: 16px;
}

.hs-arrow.next {
  right: 16px;
}

/* Dots */
.hs-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hs-dots button {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
  transition: width .2s ease, background .2s ease;
}

.hs-dots button.active {
  width: 26px;
  background: #fff;
}

@media (max-width: 720px) {
  .hs-slide {
    min-height: 340px;
  }

  .hs-body {
    padding: 22px 20px;
    max-width: 100%;
  }

  .hs-badge {
    font-size: 10.5px;
    padding: 4px 10px;
    margin-bottom: 12px;
  }

  .hs-cat {
    font-size: 10.5px;
  }

  .hs-body h2 {
    font-size: 18px;
    margin: 5px 0 10px;
  }

  .hs-price .now {
    font-size: 18px;
  }

  .hs-price .was {
    font-size: 12px;
  }

  .hs-cta .btn {
    flex: 1;
  }

  .hs-arrow {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .hs-arrow.prev {
    left: 8px;
  }

  .hs-arrow.next {
    right: 8px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  margin: 18px 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  color: #fff;
  background: linear-gradient(120deg, rgba(8, 66, 184, .92), rgba(11, 95, 255, .55)),
    url("images/hero-essentials.jpg") center/cover;
}

.hero-content {
  padding: 44px;
  max-width: 620px;
}

.hero .kicker {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.08;
  font-weight: 900;
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  opacity: .95;
  margin-bottom: 26px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Category circles ---------- */
.cat-strip {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 14px;
}

.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 14px 6px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}

.cat-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-item img {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--blue-light);
}

.cat-item span {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.product-grid.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--gray-100);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
}

.badge-ios {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-cat {
  font-size: 11.5px;
  color: var(--gray-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 42px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--gray-500);
}

.stars {
  color: var(--star);
  letter-spacing: 1px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
}

.price {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
}

.old-price {
  font-size: 13px;
  color: var(--gray-500);
  text-decoration: line-through;
}

.save {
  font-size: 12px;
  color: var(--red);
  font-weight: 800;
}

.add-cart {
  margin-top: 8px;
  background: var(--blue);
  color: #fff;
  padding: 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  transition: background .15s ease;
}

.add-cart:hover {
  background: var(--blue-dark);
}

/* Horizontal scroll carousel on small screens */
.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

/* ---------- Promo cards ---------- */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.promo {
  border-radius: var(--radius);
  padding: 22px;
  color: #fff;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.promo h3 {
  font-size: 19px;
  font-weight: 800;
}

.promo p {
  font-size: 13.5px;
  opacity: .95;
  margin: 4px 0 10px;
}

.promo a {
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: underline;
}

.promo.blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.promo.red {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.promo.dark {
  background: linear-gradient(135deg, #1f2a44, #0b1220);
}

.promo.teal {
  background: linear-gradient(135deg, #0f9d8f, #0a6f66);
}

.promo.violet {
  background: linear-gradient(135deg, #6b46ff, #4526c7);
}

/* ---------- Banner strip ---------- */
.ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 8px 0;
}

.ribbon .cell {
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 12px;
}

.ribbon .cell .ic {
  font-size: 26px;
}

.ribbon .cell strong {
  display: block;
  font-size: 15px;
}

.ribbon .cell span {
  font-size: 12.5px;
  color: var(--gray-500);
}

/* ---------- iOS band ---------- */
.ios-band {
  background: linear-gradient(120deg, #0b1220, #1f2a44);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.ios-band h2 {
  font-size: 26px;
  font-weight: 900;
}

.ios-band p {
  opacity: .85;
  margin-top: 8px;
  max-width: 520px;
}

/* =========================================================
   PRODUCTS PAGE — layout with sidebar filters
   ========================================================= */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  padding: 24px 0 50px;
}

.filters {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: sticky;
  top: 130px;
}

.filters h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.filter-group {
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
  border-bottom: none;
}

.filter-group h4 {
  font-size: 14px;
  margin-bottom: 10px;
}

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 14px;
  color: var(--gray-700);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.filter-group input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.price-out {
  font-size: 13px;
  color: var(--gray-700);
  font-weight: 700;
  margin-top: 6px;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.shop-toolbar .count {
  font-weight: 700;
  font-size: 14px;
}

.shop-search {
  display: flex;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
  background: var(--gray-100);
  border-radius: 999px;
  overflow: hidden;
}

.shop-search input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  outline: none;
}

.shop-toolbar select {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--gray-200);
  background: #fff;
  font-weight: 600;
  font-size: 14px;
}

.filter-toggle {
  display: none;
}

.no-results {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-500);
}

/* =========================================================
   CATEGORIES PAGE
   ========================================================= */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card .thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.cat-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cat-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.cat-card-body h3 {
  font-size: 19px;
  font-weight: 800;
}

.cat-card-body p {
  color: var(--gray-500);
  font-size: 14px;
  flex: 1;
}

/* =========================================================
   iOS BENEFITS PAGE
   ========================================================= */
.ios-hero {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(120deg, #05070f, #1c2b52 70%);
  color: #fff;
  padding: 56px 40px;
  text-align: center;
  margin: 18px 0;
}

.ios-hero h1 {
  font-size: 42px;
  font-weight: 900;
  margin-bottom: 14px;
}

.ios-hero p {
  font-size: 18px;
  opacity: .9;
  max-width: 640px;
  margin: 0 auto 26px;
}

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

.benefit {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
  text-align: center;
}

.benefit .ic {
  width: 60px;
  height: 60px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 28px;
}

.benefit h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.benefit p {
  color: var(--gray-500);
  font-size: 14px;
}

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

.coupon {
  background: #fff;
  border: 2px dashed var(--blue);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  position: relative;
}

.coupon .pct {
  font-size: 34px;
  font-weight: 900;
  color: var(--red);
}

.coupon .code {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 12px 0;
  font-size: 17px;
}

.coupon p {
  color: var(--gray-500);
  font-size: 13.5px;
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--header-h));
  gap: 0;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 26px 0;
}

.login-form-side {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.login-form-side h1 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 6px;
}

.login-form-side .sub {
  color: var(--gray-500);
  margin-bottom: 26px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border .15s ease;
}

.field input:focus {
  border-color: var(--blue);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 20px;
  font-size: 14px;
}

.form-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray-700);
}

.form-row a {
  color: var(--blue);
  font-weight: 700;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--gray-500);
  font-size: 13px;
  margin: 22px 0;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-row .btn {
  flex: 1;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.login-foot {
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-500);
  text-align: center;
}

.login-foot a {
  color: var(--blue);
  font-weight: 700;
}

.login-promo {
  background: linear-gradient(150deg, rgba(8, 66, 184, .9), rgba(11, 95, 255, .45)),
    url("images/promo-ios-accessories.jpg") center/cover;
  color: #fff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.login-promo h2,
.login-promo p,
.login-promo li {
  overflow-wrap: anywhere;
}

.login-promo h2 {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
}

.login-promo p {
  font-size: 16px;
  opacity: .95;
  margin-bottom: 22px;
}

.login-promo li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  font-weight: 600;
}

/* ---------- Page hero (secondary) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-dark), var(--blue));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 18px 0;
}

.page-hero h1 {
  font-size: 34px;
  font-weight: 900;
}

.page-hero p {
  opacity: .92;
  margin-top: 8px;
  max-width: 640px;
}

/* =========================================================
   LEGAL / ARTICLE CONTENT PAGES
   ========================================================= */
.article-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
  align-items: start;
  padding: 24px 0 50px;
}

.toc {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  position: sticky;
  top: 130px;
}

.toc h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--gray-500);
  margin-bottom: 10px;
}

.toc a {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.toc a:last-child {
  border-bottom: none;
}

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

.article {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 40px 44px;
}

.article .meta {
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 24px;
}

.article h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 32px 0 12px;
  scroll-margin-top: 140px;
}

.article h2:first-of-type {
  margin-top: 0;
}

.article h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 20px 0 8px;
}

.article p {
  color: var(--gray-700);
  margin-bottom: 14px;
  font-size: 15.5px;
}

.article ul.bullets {
  margin: 0 0 16px 20px;
}

.article ul.bullets li {
  list-style: disc;
  color: var(--gray-700);
  margin-bottom: 8px;
  font-size: 15.5px;
  padding-left: 4px;
}

.article a.inline {
  color: var(--blue);
  font-weight: 600;
  text-decoration: underline;
}

.article .callout {
  background: var(--blue-light);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 18px 0;
  font-size: 15px;
  color: var(--gray-700);
}

/* About page extras */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 8px 0;
}

.stat {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  text-align: center;
}

.stat .num {
  font-size: 34px;
  font-weight: 900;
  color: var(--blue);
}

.stat .label {
  color: var(--gray-500);
  font-size: 14px;
  margin-top: 4px;
}

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

.value {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px;
}

.value .ic {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 24px;
  margin-bottom: 12px;
}

.value h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.value p {
  color: var(--gray-500);
  font-size: 14px;
}

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

.member {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: center;
}

.member img {
  aspect-ratio: 1/1;
  object-fit: cover;
  width: 100%;
}

.member .avatar {
  aspect-ratio: 1/1;
  width: 100%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}

.member .avatar.av1 {
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}

.member .avatar.av2 {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.member .avatar.av3 {
  background: linear-gradient(135deg, #0f9d8f, #0a6f66);
}

.member .avatar.av4 {
  background: linear-gradient(135deg, #6b46ff, #4526c7);
}

.member .info {
  padding: 16px;
}

.member h3 {
  font-size: 16px;
}

.member span {
  color: var(--gray-500);
  font-size: 13px;
}

@media (max-width: 900px) {
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    display: none;
  }
}

@media (max-width: 720px) {
  .article {
    padding: 26px 22px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 24px 0 4px;
}

.cart-head h1 {
  font-size: 30px;
  font-weight: 900;
}

.cart-count-label {
  color: var(--gray-500);
  font-weight: 700;
  font-size: 15px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
  padding: 16px 0 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: grid;
  grid-template-columns: 110px 1fr auto auto;
  gap: 16px;
  align-items: center;
}

.ci-media {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--gray-100);
}

.ci-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ci-ios {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #111;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 11px;
}

.ci-info {
  min-width: 0;
}

.ci-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 2px 0 4px;
}

.ci-price-m {
  font-size: 14px;
  font-weight: 800;
  margin: 6px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ci-price-m .old-price {
  font-weight: 400;
}

.ci-remove {
  background: none;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ci-remove:hover {
  color: var(--red);
}

.ci-qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: 999px;
  overflow: hidden;
}

.ci-qty button {
  background: var(--gray-100);
  color: var(--ink);
  width: 34px;
  height: 34px;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.ci-qty button:hover {
  background: var(--blue);
  color: #fff;
}

.ci-qty span {
  min-width: 38px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
}

.ci-line {
  font-size: 18px;
  font-weight: 900;
  text-align: right;
  min-width: 74px;
}

.continue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

.cart-summary {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 22px;
  position: sticky;
  top: 130px;
}

.cart-summary h2 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 14px;
}

.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-size: 15px;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

.sum-row.total {
  border-bottom: none;
  border-top: 2px solid var(--gray-200);
  margin-top: 6px;
  padding-top: 14px;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
}

.sum-row .save {
  color: var(--red);
  font-weight: 700;
}

.ship-free {
  color: #0a8f3c;
  font-weight: 800;
}

.ship-note {
  color: var(--gray-500);
  font-size: 12px;
  font-weight: 500;
}

.promo-box {
  margin: 16px 0;
}

.promo-box label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.promo-input {
  display: flex;
  gap: 8px;
}

.promo-input input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.promo-input input:focus {
  border-color: var(--blue);
}

.promo-msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
}

.promo-msg .ok {
  color: #0a8f3c;
  font-weight: 700;
}

.promo-msg .err {
  color: var(--red);
  font-weight: 700;
}

.checkout-btn {
  margin-top: 6px;
  font-size: 15px;
}

.secure-note {
  text-align: center;
  color: var(--gray-500);
  font-size: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.cart-empty {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 60px 24px;
  text-align: center;
  margin: 16px 0 24px;
}

.cart-empty i {
  font-size: 54px;
  color: var(--gray-300);
  margin-bottom: 16px;
}

.cart-empty h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
}

.cart-empty p {
  color: var(--gray-500);
  margin-bottom: 20px;
}

@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
  }
}

@media (max-width: 560px) {

  /* Compact stacked cart item on mobile */
  .cart-item {
    grid-template-columns: 84px 1fr;
    grid-template-areas: "media info" "media qty" "line line";
    row-gap: 10px;
  }

  .ci-media {
    width: 84px;
    height: 84px;
    grid-area: media;
    align-self: start;
  }

  .ci-info {
    grid-area: info;
  }

  .ci-qty {
    grid-area: qty;
    justify-self: start;
  }

  .ci-line {
    grid-area: line;
    text-align: right;
    border-top: 1px solid var(--gray-100);
    padding-top: 8px;
  }

  .cart-head h1 {
    font-size: 24px;
  }
}

/* Deal banner */
.deal-banner {
  border-radius: var(--radius);
  padding: 30px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.deal-banner h2 {
  font-size: 26px;
  font-weight: 900;
}

.deal-banner p {
  opacity: .9;
}

/* =========================================================
   FOOTER
   ========================================================= */
.newsletter {
  background: linear-gradient(120deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.newsletter h2 {
  font-size: 26px;
  font-weight: 900;
}

.newsletter p {
  opacity: .9;
  margin-top: 4px;
}

.newsletter form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter input {
  padding: 13px 18px;
  border: none;
  border-radius: 999px;
  min-width: 260px;
  font-size: 15px;
  outline: none;
}

.site-footer {
  background: var(--ink);
  color: #c7d0dd;
  padding: 46px 0 26px;
  margin-top: 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-grid h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  padding: 5px 0;
  font-size: 14px;
  color: #a9b4c4;
}

.footer-grid a:hover {
  color: #fff;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: #a9b4c4;
  max-width: 280px;
}

.footer-brand .socials {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-brand .socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  place-items: center;
  font-size: 18px;
  padding: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 32px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8f9bad;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large tablet / small desktop */
@media (max-width: 1080px) {

  .product-grid,
  .product-grid.cols-4 {
    grid-template-columns: repeat(3, 1fr);
  }

  .promo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .cat-strip {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .header-actions .h-link.hide-tab {
    display: none;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit-grid,
  .coupon-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ribbon {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero h1 {
    font-size: 36px;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  /* Sidebar becomes a drawer */
  .filters {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(85vw, 320px);
    z-index: 200;
    border-radius: 0;
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  .filters.open {
    transform: translateX(0);
  }

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
  }
}

/* Mobile */
@media (max-width: 720px) {
  :root {
    --header-h: 132px;
  }

  .hamburger {
    display: block;
  }

  .nav-bar {
    display: none;
  }

  .header-actions {
    gap: 14px;
  }

  .header-actions .h-link.hide-mob {
    display: none;
  }

  .header-main {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
  }

  .logo {
    font-size: 19px;
    order: 1;
  }

  .header-actions {
    order: 2;
    margin-left: auto;
  }

  .search {
    order: 3;
    flex-basis: 100%;
  }

  .section {
    padding: 22px 0;
  }

  .section-head h2 {
    font-size: 20px;
  }

  .hero {
    min-height: 320px;
    margin: 14px 0;
  }

  .hero-content {
    padding: 26px 22px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-cta .btn {
    flex: 1;
  }

  .cat-strip {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .cat-item img {
    width: 60px;
    height: 60px;
  }

  .cat-item span {
    font-size: 12px;
  }

  .product-grid,
  .product-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .promo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .benefit-grid,
  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .ribbon {
    grid-template-columns: 1fr;
  }

  .card-title {
    font-size: 13px;
    min-height: 36px;
  }

  .price {
    font-size: 16px;
  }

  .add-cart {
    font-size: 13px;
    padding: 9px;
  }

  .card-body {
    padding: 10px 11px 12px;
  }

  .newsletter,
  .ios-band,
  .page-hero,
  .ios-hero {
    padding: 24px 20px;
  }

  .newsletter input {
    min-width: 0;
    flex: 1;
  }

  .ios-hero h1 {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  /* Login: form first, image below — compact, no horizontal overflow */
  .login-wrap {
    grid-template-columns: 1fr;
    margin: 16px 0;
    min-height: 0;
  }

  .login-form-side {
    padding: 26px 18px;
    order: 1;
  }

  .login-form-side h1 {
    font-size: 25px;
  }

  .login-form-side .sub {
    margin-bottom: 20px;
  }

  .login-promo {
    order: 2;
    padding: 26px 20px;
  }

  .login-promo h2 {
    font-size: 22px;
  }

  .login-promo p {
    font-size: 15px;
  }

  /* Stack social buttons so long labels never overflow */
  .social-row {
    flex-direction: column;
  }

  .social-row .btn {
    width: 100%;
  }

  .form-row {
    flex-wrap: wrap;
    gap: 8px;
  }
}

/* Very small phones — single column product cards */
@media (max-width: 400px) {

  .product-grid,
  .product-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }
}