@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&family=Source+Serif+4:wght@700;800&display=swap");

:root {
  --ink: #0b2948;
  --ink-2: #153f66;
  --blue: #0a73d9;
  --blue-2: #51a8f4;
  --sky: #d9ecff;
  --ice: #f4f9ff;
  --line: #bfd9f2;
  --muted: #5d7894;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(17, 78, 130, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", Helvetica, sans-serif;
  background:
    linear-gradient(180deg, #eef7ff 0%, #f8fbff 42%, #edf7ff 100%);
  color: var(--ink);
  line-height: 1.6;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled {
  cursor: not-allowed;
  opacity: .52;
  transform: none;
}

.topbar {
  background: #d7ebff;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 7px 16px;
  text-align: center;
  text-transform: uppercase;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.88);
  border-bottom: 1px solid rgba(157,196,230,.55);
  backdrop-filter: blur(16px);
}
.head {
  align-items: center;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin: auto;
  max-width: 1200px;
  padding: 13px 20px;
}
.brand {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 19px;
  font-weight: 900;
  gap: 10px;
  white-space: nowrap;
}
.brand-logo-img {
  height: 48px;
  object-fit: contain;
  width: 43px;
}
nav {
  align-items: center;
  display: flex;
  gap: 22px;
}
nav a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}
nav a:hover { color: var(--blue); }
.cart-trigger {
  align-items: center;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  color: white;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  padding: 10px 15px;
}
.cart-count {
  background: var(--blue-2);
  border-radius: 999px;
  color: var(--ink);
  display: inline-grid;
  font-size: 12px;
  height: 22px;
  min-width: 22px;
  padding: 0 6px;
  place-items: center;
}

.container {
  margin: auto;
  max-width: 1200px;
  padding: 0 20px;
}
.hero {
  background:
    linear-gradient(90deg, rgba(6,35,67,.82) 0%, rgba(7,58,103,.66) 42%, rgba(255,255,255,.08) 100%),
    url("assets/hero-bg.jpg") center / cover no-repeat;
  min-height: 78vh;
  padding: 86px 0 72px;
}
.hero .container {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 640px) 1fr;
}
.hero-text {
  color: white;
  max-width: 670px;
  text-align: left;
}
.pill {
  background: rgba(217,236,255,.16);
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  margin-bottom: 18px;
  padding: 8px 13px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(42px, 7vw, 76px);
  letter-spacing: 0;
  line-height: .98;
  margin-bottom: 18px;
  max-width: 720px;
  text-shadow: 0 4px 26px rgba(3, 22, 43, .46);
}
.hero h1 span {
  color: #9fdbff;
  display: block;
}
.hero p {
  color: rgba(245,250,255,.94);
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 700;
  max-width: 590px;
  text-shadow: 0 3px 16px rgba(3, 22, 43, .42);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 28px;
}
.btn, .hero-actions a, .card button, form button {
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  padding: 12px 18px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover, .hero-actions a:hover, .card button:hover, form button:hover {
  transform: translateY(-2px);
}
.primary, .card button, form button {
  background: linear-gradient(180deg, #1f86ea 0%, #0a73d9 52%, #0860ba 100%);
  color: white;
  box-shadow: 0 10px 26px rgba(10, 115, 217, .32), inset 0 1px 0 rgba(255,255,255,.34);
}
.primary:hover, .card button:hover, form button:hover {
  background: linear-gradient(180deg, #1877d1 0%, #075eb4 100%);
  box-shadow: 0 16px 34px rgba(10, 92, 164, .36), inset 0 1px 0 rgba(255,255,255,.34);
}
.ghost {
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.56);
  color: white;
}

.section { padding: 70px 0; }
.featured-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(10,115,217,.16), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eaf5ff 48%, #f8fbff 100%);
  border-top: 1px solid rgba(162,202,235,.38);
  overflow: hidden;
  position: relative;
}
.featured-section::before {
  background:
    linear-gradient(90deg, transparent, rgba(158, 196, 229, .32), transparent),
    linear-gradient(180deg, transparent, rgba(255,255,255,.72), transparent);
  content: "";
  height: 1px;
  left: 50%;
  max-width: 980px;
  position: absolute;
  top: 42px;
  transform: translateX(-50%);
  width: calc(100% - 40px);
}
.featured-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(235,246,255,.88));
  border: 1px solid rgba(150, 197, 238, .48);
  border-radius: 8px;
  box-shadow:
    0 34px 86px rgba(11, 54, 92, .16),
    inset 0 0 0 1px rgba(145, 187, 225, .28);
  padding: clamp(26px, 4vw, 48px);
  position: relative;
}
.featured-panel::after {
  background: linear-gradient(180deg, var(--blue), #84caff);
  border-radius: 999px;
  content: "";
  height: 92px;
  position: absolute;
  right: clamp(22px, 4vw, 46px);
  top: -18px;
  width: 7px;
}
.section-head {
  align-items: end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.featured-head {
  align-items: start;
  margin-bottom: 18px;
  padding-right: 28px;
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
h1, h2, h3 { letter-spacing: 0; }
.section-head h2, .page-hero h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02;
}
.section-head p, .page-hero p, .desc, .quality-copy p {
  color: var(--muted);
}
.section-head p { max-width: 440px; }
.featured-head p {
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.48;
  max-width: 430px;
}
.featured-strip {
  border-block: 1px solid rgba(155, 194, 229, .58);
  color: var(--ink-2);
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 24px;
  padding: 12px 0;
}
.featured-strip span {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 8px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.featured-strip span::before {
  background: var(--blue);
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(10,115,217,.11);
  content: "";
  height: 7px;
  width: 7px;
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(6, 39, 75, .76), rgba(10, 115, 217, .22)),
    radial-gradient(circle at 80% 14%, rgba(255,255,255,.84), transparent 24%),
    linear-gradient(135deg, #bee0ff 0%, #f7fbff 50%, #9fd0fb 100%);
  border-bottom: 8px solid white;
  padding: 78px 20px 70px;
  text-align: center;
}
.page-hero h1 { color: white; text-shadow: 0 4px 24px rgba(4, 27, 52, .32); }
.page-hero p {
  color: rgba(245,250,255,.92);
  font-size: 17px;
  font-weight: 700;
  margin: 12px auto 0;
  max-width: 680px;
  text-shadow: 0 2px 16px rgba(4, 27, 52, .28);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin: -28px auto 30px;
  max-width: 1040px;
  position: relative;
  z-index: 2;
}
.filter {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(121, 180, 232, .62);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(14, 78, 132, .08);
  color: var(--ink-2);
  font-weight: 900;
  padding: 10px 15px;
}
.filter.active {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.card {
  background:
    linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
  border: 1px solid rgba(191, 217, 242, .55);
  border-radius: 20px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 20px 46px rgba(11, 68, 116, .12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(120,180,240,.14) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
.featured-panel .card:first-child {
  grid-row: span 2;
}
.featured-panel .product-grid {
  align-items: stretch;
  gap: 8px;
  grid-template-columns: minmax(0, 1.28fr) minmax(280px, .82fr);
}
.featured-panel .card {
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(232,245,255,.96));
  border-color: rgba(255,255,255,.95);
  box-shadow: 0 18px 42px rgba(14, 65, 108, .11);
}
.featured-panel .card:first-child {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(221,240,255,.96));
  border-color: rgba(10,115,217,.35);
  box-shadow: 0 28px 70px rgba(10, 92, 164, .18);
}
.featured-panel .card-image {
  background:
    radial-gradient(circle at 50% 2%, rgba(255,255,255,.96) 0%, rgba(255,255,255,.58) 18%, transparent 46%),
    linear-gradient(180deg, #bfe1ff 0%, #eaf6ff 58%, #c7e7ff 100%);
  height: 245px;
}
.featured-panel .card:first-child .card-image {
  height: 385px;
}
.featured-panel .label {
  background: linear-gradient(90deg, #064fb8, #0a73d9);
  border-color: rgba(255,255,255,.72);
  color: white;
}
.featured-panel .card-body {
  padding: 20px;
}
.featured-panel .name {
  font-family: "Manrope", Helvetica, sans-serif;
  font-size: 23px;
  font-weight: 800;
}
.featured-panel .card:first-child .name {
  font-size: clamp(31px, 4vw, 42px);
  line-height: .98;
}
.featured-panel .card:first-child .desc {
  font-size: 15px;
  line-height: 1.55;
  -webkit-line-clamp: 4;
}
.featured-panel .card:first-child .price {
  font-size: 32px;
}
.featured-panel .price {
  color: var(--ink);
}
.card:hover {
  border-color: rgba(10, 115, 217, .28);
  box-shadow:
    0 1px 0 rgba(255,255,255,.9) inset,
    0 30px 66px rgba(10, 92, 164, .22);
  transform: translateY(-6px);
}
.card-image {
  align-items: center;
  background: linear-gradient(180deg, #dbeeff 0%, #eef7ff 52%, #cfe6ff 100%);
  border-bottom: 1px solid rgba(191, 217, 242, .5);
  display: flex;
  height: 288px;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* Soft top gloss + grounding vignette that sits over the photographic product
   tiles, echoing the icy-blue studio lighting of the reference photography. */
.card-image::before {
  background:
    linear-gradient(180deg, rgba(255,255,255,.35) 0%, transparent 22%),
    linear-gradient(118deg, transparent 0 42%, rgba(255,255,255,.28) 46% 49%, transparent 54%),
    radial-gradient(72% 46% at 50% 104%, rgba(4, 44, 92, .16), transparent 72%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}
.card-image img {
  height: 100%;
  max-height: none;
  max-width: none;
  object-fit: cover;
  position: relative;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
  width: 100%;
  z-index: 1;
}
.card:hover .card-image img {
  transform: scale(1.07);
}
.label {
  backdrop-filter: blur(6px);
  background: rgba(6, 40, 84, .58);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  bottom: 14px;
  box-shadow: 0 6px 16px rgba(5, 66, 137, .28);
  color: white;
  font-size: 9.5px;
  font-weight: 800;
  left: 50%;
  letter-spacing: .14em;
  padding: 6px 14px;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 3;
}
.card-body {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 20px 20px;
  text-align: center;
}
.card-kicker {
  color: var(--blue);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.cat {
  background: transparent;
  border: 1px solid rgba(10, 115, 217, .32);
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 9.5px;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .1em;
  line-height: 1.15;
  margin-bottom: 12px;
  max-width: 100%;
  padding: 5px 12px;
  text-transform: uppercase;
}
.name {
  color: #0b2036;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.05;
  margin-bottom: 9px;
  text-transform: uppercase;
}
.desc {
  display: -webkit-box;
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin-bottom: auto;
  overflow: hidden;
}
.card-purchase {
  align-items: center;
  border-top: 1px solid rgba(149, 190, 225, .4);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 15px;
  width: 100%;
}
.price {
  color: var(--ink);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
  margin-top: 0;
}
.card button {
  align-self: auto;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(10, 92, 164, .28);
  letter-spacing: .03em;
  margin-top: 0;
  min-height: 42px;
  padding: 10px 18px;
  white-space: nowrap;
}

.quality-copy {
  margin: auto;
  max-width: 900px;
}
.quality-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin-top: 22px;
}
.quality-list li, form {
  background: white;
  border: 1px solid rgba(151,195,232,.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.quality-list li {
  color: var(--ink);
  font-weight: 900;
  padding: 18px 20px;
}
form {
  display: grid;
  gap: 14px;
  margin: auto;
  max-width: 620px;
  padding: 28px;
}
label {
  color: var(--ink-2);
  display: grid;
  font-size: 13px;
  font-weight: 900;
  gap: 7px;
}
input, textarea {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 13px 14px;
  width: 100%;
}
.hidden-field { display: none; }

.checkout-hero {
  padding-bottom: 86px;
}
.checkout-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
}
.checkout-form {
  margin: -58px 0 0;
  max-width: none;
  position: relative;
  z-index: 2;
}
.form-section {
  border-bottom: 1px solid rgba(151,195,232,.58);
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
}
.form-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.form-section-head {
  align-items: center;
  display: flex;
  gap: 12px;
}
.form-section-head span {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  display: inline-grid;
  font-size: 12px;
  font-weight: 900;
  height: 32px;
  place-items: center;
  width: 32px;
}
.form-section-head h2,
.summary-head h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 30px;
  line-height: 1.05;
}
.form-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid.three {
  grid-template-columns: 1.2fr .8fr .8fr;
}
.shipping-options {
  display: grid;
  gap: 10px;
}
.ship-card {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: auto 1fr auto;
  padding: 13px 14px;
}
.ship-card input {
  accent-color: var(--blue);
  width: auto;
}
.ship-card span {
  color: var(--blue);
  font-weight: 900;
}
.promo-help {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.checkout-summary {
  margin-top: -58px;
  position: sticky;
  top: 106px;
  z-index: 2;
}
.summary-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(237,247,255,.96));
  border: 1px solid rgba(151,195,232,.76);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.summary-head {
  align-items: start;
  border-bottom: 1px solid rgba(151,195,232,.58);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 16px;
}
.summary-head a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}
.summary-items {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
}
.summary-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr auto;
  padding: 9px;
}
.summary-item img {
  background: #eaf6ff;
  border-radius: 6px;
  height: 54px;
  object-fit: contain;
  width: 54px;
}
.summary-item strong,
.summary-item span {
  display: block;
  line-height: 1.25;
}
.summary-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.summary-item b {
  color: var(--ink);
  font-size: 14px;
}
.summary-totals {
  border-top: 1px solid rgba(151,195,232,.58);
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
}
.summary-totals div {
  display: flex;
  justify-content: space-between;
}
.summary-totals span {
  color: var(--muted);
  font-weight: 800;
}
.summary-totals strong {
  color: var(--ink);
  font-weight: 900;
}
.summary-totals .grand-total {
  border-top: 1px solid rgba(151,195,232,.58);
  font-size: 22px;
  margin-top: 4px;
  padding-top: 12px;
}

.cart-drawer, .gate {
  position: fixed;
  inset: 0;
  z-index: 60;
}
.cart-drawer[hidden], .gate[hidden] { display: none; }
.cart-backdrop, .gate-backdrop {
  background: rgba(5, 21, 39, .56);
  inset: 0;
  position: absolute;
}
.cart-panel, .gate-panel {
  background: white;
  box-shadow: -26px 0 80px rgba(4, 31, 58, .26);
  position: absolute;
}
.cart-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 430px;
  right: 0;
  top: 0;
  width: min(100%, 430px);
}
.cart-head, .cart-foot {
  border-color: rgba(151,195,232,.76);
  border-style: solid;
  padding: 18px;
}
.cart-head {
  align-items: center;
  border-width: 0 0 1px;
  display: flex;
  justify-content: space-between;
}
.cart-close {
  background: #e8f4ff;
  border: 0;
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  height: 34px;
  width: 34px;
}
.cart-items {
  display: grid;
  gap: 12px;
  overflow: auto;
  padding: 18px;
}
.cart-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 64px 1fr;
  padding: 10px;
}
.cart-item img {
  align-self: start;
  background: #eaf6ff;
  border-radius: 6px;
  height: 64px;
  object-fit: contain;
  width: 64px;
}
.cart-item strong { display: block; line-height: 1.2; }
.cart-controls {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-top: 7px;
}
.cart-controls button {
  background: #e8f4ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 900;
  height: 28px;
  width: 28px;
}
.cart-foot {
  border-width: 1px 0 0;
  margin-top: auto;
}
.cart-total {
  display: flex;
  font-size: 20px;
  font-weight: 900;
  justify-content: space-between;
  margin-bottom: 12px;
}
.checkout-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}
.empty-cart {
  color: var(--muted);
  padding: 28px 10px;
  text-align: center;
}

.gate {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 20px;
}
.gate-panel {
  border-radius: 8px;
  max-width: 540px;
  padding: 30px;
  position: relative;
  width: min(100%, 540px);
}
.gate-panel h2 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 36px;
  line-height: 1.05;
  margin-bottom: 12px;
}
.gate-panel p { color: var(--muted); margin-bottom: 14px; }
.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

footer {
  background: var(--ink);
  color: #eff6ff;
  padding: 42px 0;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 2fr 1fr 1fr;
  margin: auto;
  max-width: 1200px;
  padding: 0 20px;
}
footer h3 { color: white; font-size: 18px; margin-bottom: 10px; }
footer p, footer a { color: #bad2eb; font-size: 14px; }
footer a:hover { color: white; }

@media (max-width: 900px) {
  .head { align-items: flex-start; flex-direction: column; }
  nav { flex-wrap: wrap; gap: 14px; }
  .hero { min-height: auto; padding: 72px 0; }
  .hero .container { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .featured-panel::after { display: none; }
  .featured-strip { grid-template-columns: 1fr; }
  .featured-panel .card:first-child { grid-row: auto; }
  .featured-panel .product-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { margin-top: 0; position: static; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand { font-size: 16px; }
  .brand-logo-img { height: 42px; width: 38px; }
  .topbar { font-size: 10px; }
  .hero-actions a, .btn { width: 100%; }
  .filters { margin-top: -22px; }
  .featured-panel { padding: 18px; }
  .featured-head { padding-right: 0; }
  .featured-panel .card:first-child .card-image,
  .featured-panel .card-image,
  .card-image { height: 230px; }
  .product-grid { grid-template-columns: 1fr; }
  .card-purchase {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .card button { width: 100%; }
  .checkout-form { padding: 20px; }
  .form-grid,
  .form-grid.three { grid-template-columns: 1fr; }
  .ship-card { grid-template-columns: auto 1fr; }
  .ship-card span { grid-column: 2; }
  .summary-item { grid-template-columns: 48px 1fr; }
  .summary-item b { grid-column: 2; }
}

/* Product page layout */
.product-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-top: 40px;
}
.product-gallery img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #f8fbff;
  object-fit: contain;
}
.product-details h1 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.product-details .product-cat {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.product-details .product-price {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 16px;
}
.quantity {
  margin-bottom: 20px;
}
.quantity label {
  font-weight: 800;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.quantity input {
  width: 80px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbff;
  color: var(--ink);
  font-size: 16px;
}
.product-details .product-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 22px;
  max-width: 600px;
}
@media (max-width: 768px) {
  .product-view {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}


/* Affiliate Program Page */
.affiliate-hero {
  padding: 82px 0 92px;
}
.affiliate-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 740px);
  justify-content: center;
  text-align: center;
}
.affiliate-section {
  background:
    radial-gradient(circle at 14% 8%, rgba(10,115,217,.13), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #eaf5ff 100%);
}
.affiliate-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
}
.affiliate-info-card,
.affiliate-form {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(151,195,232,.76);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.affiliate-info-card {
  display: grid;
  gap: 18px;
  padding: 34px;
}
.affiliate-info-card h2 {
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
}
.affiliate-info-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}
.affiliate-steps {
  display: grid;
  gap: 14px;
  margin-top: 6px;
}
.affiliate-steps div {
  background: linear-gradient(135deg, #f8fbff, #edf7ff);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
}
.affiliate-steps span {
  background: var(--blue);
  border-radius: 999px;
  color: white;
  display: inline-grid;
  font-size: 12px;
  font-weight: 900;
  height: 34px;
  margin-bottom: 10px;
  place-items: center;
  width: 34px;
}
.affiliate-steps h3 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 4px;
}
.affiliate-note {
  background: #0b2948;
  border-radius: 12px;
  color: white;
  font-weight: 800;
  padding: 16px 18px;
}
.affiliate-note.soft {
  background: #e8f4ff;
  color: var(--ink-2);
}
.affiliate-form {
  margin: 0;
  max-width: none;
  padding: 30px;
  position: sticky;
  top: 104px;
}
.affiliate-form-sub,
.affiliate-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.affiliate-status.success { color: #0a7a3d; }
.affiliate-status.error { color: #b42318; }
select {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  padding: 13px 14px;
  width: 100%;
}
@media (max-width: 900px) {
  .affiliate-layout { grid-template-columns: 1fr; }
  .affiliate-form { position: static; }
}
@media (max-width: 560px) {
  .affiliate-hero { padding: 54px 0 60px; }
  .affiliate-info-card,
  .affiliate-form { padding: 20px; }
  .affiliate-info-card h2 { font-size: 34px; }
}
