/* ============================================
   Titan Fashions — UK Fashion Storefront
   ============================================ */

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

:root {
  --bg: #f4f4f0;
  --bg-tinted: #e8e9e3;
  --bg-dark: #0f1419;
  --text: #0f1419;
  --text-soft: #4d5560;
  --text-muted: #8a91a0;
  --line: #d8dce0;
  --accent: #1e3a5f;
  --accent-2: #112744;
  --gold: #4a6b3f;
  --green: #4a6b3f;
  --pink: #6b819a;
  --shadow-sm: 0 1px 2px rgba(20,15,10,.05), 0 2px 6px rgba(20,15,10,.04);
  --shadow-md: 0 4px 14px rgba(20,15,10,.08), 0 12px 28px rgba(20,15,10,.06);
  --shadow-lg: 0 10px 30px rgba(20,15,10,.10), 0 30px 60px rgba(20,15,10,.10);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: 0; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: none;
}

h2 { font-size: clamp(28px, 4vw, 44px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }

.gradient-text {
  background: linear-gradient(120deg, var(--accent) 0%, var(--gold) 50%, var(--pink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid rgba(212,84,58,0.25);
  border-radius: 999px;
  background: rgba(212,84,58,0.06);
}

/* ====== Ticker ====== */
.ticker {
  background: var(--bg-dark);
  color: #f7e7d6;
  font-size: 13px;
  padding: 10px 0;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  width: max-content;
  animation: tickerScroll 40s linear infinite;
}
.ticker-track span {
  letter-spacing: 0.04em;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Header ====== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,248,244,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
}
.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1.2);
}
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .logo-word { font-size: 17px; }
}
.logo-light .logo-word { color: #f7e7d6; }

.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav-actions { display: flex; gap: 8px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: var(--text);
  transition: background .2s ease, transform .2s ease;
}
.icon-btn:hover { background: rgba(20,15,10,0.06); transform: translateY(-1px); }

.cart-count {
  position: absolute;
  top: 4px; right: 4px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 999px;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform .25s cubic-bezier(.5, 1.5, .6, 1);
}
.cart-count.show { transform: scale(1); }

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: 64px 0 96px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}
.blob-1 {
  width: 480px; height: 480px;
  background: #f3b9ad;
  top: -120px; left: -100px;
  animation: blobMove1 16s ease-in-out infinite;
}
.blob-2 {
  width: 380px; height: 380px;
  background: #c89b4a;
  top: 40%; right: -80px;
  animation: blobMove2 18s ease-in-out infinite;
}
.blob-3 {
  width: 320px; height: 320px;
  background: #dcd1f4;
  bottom: -120px; left: 35%;
  animation: blobMove3 22s ease-in-out infinite;
}
@keyframes blobMove1 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(60px,80px) scale(1.1); }
}
@keyframes blobMove2 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-50px,-40px) scale(.92); }
}
@keyframes blobMove3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-30px,30px) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy { max-width: 560px; }
.hero-title {
  font-size: clamp(48px, 8vw, 96px);
  margin: 18px 0 22px;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  margin-bottom: 32px;
  max-width: 480px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: rgba(20,15,10,0.04); border-color: var(--text); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-soft);
}
.stars { display: flex; gap: 2px; }
.stars svg {
  width: 18px; height: 18px;
  fill: var(--gold);
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 540px;
}

.hero-card {
  position: absolute;
  width: 230px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.04);
}
.hero-card-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-card-body {
  padding: 14px 16px 16px;
  position: relative;
}
.hero-card-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(212,84,58,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.tag-new { color: var(--green); background: rgba(47,125,92,0.1); }
.tag-deal { color: var(--accent-2); background: rgba(181,61,36,0.12); }

.hero-card-body p {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 4px;
}
.hero-card-body strong {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
}

.card-1 { top: 30px; left: 0; transform: rotate(-6deg); }
.card-2 { top: 70px; right: 20px; transform: rotate(4deg); z-index: 2; }
.card-3 { bottom: 30px; left: 70px; transform: rotate(-2deg); }

.floaty { animation: floaty 6s ease-in-out infinite; }
.floaty-delay { animation-delay: 1.5s; }
.floaty-delay-2 { animation-delay: 3s; }

@keyframes floaty {
  0%,100% { transform: translateY(0) rotate(var(--r,0deg)); }
  50% { transform: translateY(-12px) rotate(var(--r,0deg)); }
}
.card-1 { --r: -6deg; }
.card-2 { --r: 4deg; }
.card-3 { --r: -2deg; }

.pay-chip {
  position: absolute;
  bottom: -6px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: var(--bg);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 3;
  animation: pulseChip 3s ease-in-out infinite;
}
@keyframes pulseChip {
  0%, 100% { box-shadow: 0 10px 30px rgba(20,15,10,.10), 0 0 0 0 rgba(212,84,58,0.4); }
  50% { box-shadow: 0 10px 30px rgba(20,15,10,.10), 0 0 0 14px rgba(212,84,58,0); }
}

/* ====== Logos marquee ====== */
.logos {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  white-space: nowrap;
  width: max-content;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--text-soft);
  animation: marqueeScroll 32s linear infinite;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Sections ====== */
.section {
  padding: 90px 0;
  position: relative;
}
.section-tinted { background: var(--bg-tinted); }
.section-dark { background: var(--bg-dark); color: #f7e7d6; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); border-color: rgba(200,155,74,0.4); background: rgba(200,155,74,0.1); }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.link-arrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color .2s ease;
}
.link-arrow:hover { color: var(--accent); }

/* ====== Categories ====== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--bg);
  isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  cursor: pointer;
}
.cat-card:hover { transform: translateY(-6px); }
.cat-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s cubic-bezier(.2,.8,.2,1);
}
.cat-card:hover .cat-img { transform: scale(1.06); }
.cat-card::after {
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.55));
  z-index: 1;
}
.cat-meta {
  position: absolute;
  left: 22px; bottom: 22px;
  z-index: 2;
  color: #fff;
}
.cat-meta span {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: 0.85;
}
.cat-meta h3 {
  font-size: 26px;
  margin-top: 4px;
}

/* ====== Product grid ====== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s ease, box-shadow .3s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img {
  position: relative;
  aspect-ratio: 3/4;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.product-img::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.2));
  opacity: 0;
  transition: opacity .35s ease;
}
.product-card:hover .product-img::after { opacity: 1; }

.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 10px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  color: var(--accent);
}
.product-badge.green { color: var(--green); }
.product-badge.dark { background: var(--text); color: #fff; }

.product-add {
  position: absolute;
  bottom: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  transform: translateY(8px);
  opacity: 0;
  transition: transform .3s ease, opacity .3s ease, background .2s ease;
}
.product-card:hover .product-add { transform: translateY(0); opacity: 1; }
.product-add:hover { background: var(--text); color: #fff; }
.product-add.added { background: var(--green); color: #fff; }

.product-info {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-info .cat {
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-info .name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.product-info .price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
}
.product-info .price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.product-info .price-was {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* ====== How it works ====== */
.how-head {
  text-align: center;
  margin-bottom: 56px;
}
.how-head h2 { margin-top: 18px; max-width: 700px; margin-inline: auto; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
  overflow: hidden;
}
.how-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,84,58,0.12), transparent 70%);
  transition: transform .5s ease;
}
.how-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.how-card:hover::before { transform: scale(1.4); }
.how-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 14px;
}
.how-card h3 { margin-bottom: 8px; font-size: 22px; }
.how-card p { color: var(--text-soft); font-size: 15px; }

/* ====== Testimonials ====== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(247,231,214,0.12);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .3s ease, background .3s ease;
}
.testi:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); }
.testi p {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  line-height: 1.45;
  margin-bottom: 16px;
  color: #f7e7d6;
}
.testi span { font-size: 13px; color: rgba(247,231,214,0.6); }

/* ====== Newsletter ====== */
.newsletter {
  background: linear-gradient(135deg, #f3b9ad 0%, #c89b4a 100%);
  border-radius: var(--r-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  animation: blobMove2 14s ease-in-out infinite;
}
.newsletter h2 { color: #1a1715; }
.newsletter p { color: rgba(26,23,21,0.75); margin-top: 8px; max-width: 380px; }
.newsletter-form {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  box-shadow: var(--shadow-md);
  position: relative; z-index: 1;
}
.newsletter-form input {
  flex: 1;
  border: 0;
  outline: 0;
  padding: 12px 18px;
  background: transparent;
  font: inherit;
}
.newsletter-form button {
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  transition: background .2s ease;
}
.newsletter-form button:hover { background: var(--accent); }

/* ====== Footer ====== */
.footer {
  background: var(--bg-dark);
  color: rgba(247,231,214,0.7);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(247,231,214,0.08);
}
.footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid a {
  display: block;
  font-size: 14px;
  padding: 5px 0;
  transition: color .2s ease;
}
.footer-grid a:hover { color: #fff; }
.footer-about {
  margin-top: 16px;
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(247,231,214,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   SHOP / CATALOGUE PAGE
   ============================================ */
.shop-hero {
  padding: 56px 0 32px;
  text-align: center;
  background: var(--bg);
}
.shop-hero h1 {
  font-size: clamp(40px, 6vw, 64px);
}
.shop-hero p { color: var(--text-soft); margin-top: 12px; }

.shop-layout {
  padding: 24px 0 90px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}
.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  height: fit-content;
}
.filter-group { margin-bottom: 28px; }
.filter-group h4 {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.filter-list { list-style: none; }
.filter-list li {
  padding: 7px 0;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--text-soft);
  transition: color .2s ease, transform .2s ease;
}
.filter-list li:hover { color: var(--text); transform: translateX(4px); }
.filter-list li.active { color: var(--accent); font-weight: 600; }

.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-toolbar select {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  background: #fff;
}
.shop-count { font-size: 14px; color: var(--text-muted); }

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.pdp {
  padding: 40px 0 90px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
}
.pdp-gallery {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-tinted);
}
.pdp-info h1 {
  font-size: clamp(32px, 4vw, 44px);
  margin: 8px 0 12px;
}
.pdp-cat {
  font-size: 12px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted);
}
.pdp-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0;
}
.pdp-desc {
  color: var(--text-soft);
  margin-bottom: 28px;
  line-height: 1.7;
}
.pdp-options { margin-bottom: 28px; }
.pdp-options label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.size-options button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
}
.size-options button:hover { border-color: var(--text); }
.size-options button.active {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.pdp-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
}
.pdp-actions .btn-primary { flex: 1; justify-content: center; }
.pdp-perks { display: grid; gap: 12px; }
.pdp-perks div {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  color: var(--text-soft);
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page { padding: 60px 0 100px; }
.cart-page h1 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 32px; }

.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
.cart-list {
  border-top: 1px solid var(--line);
}
.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 100px; height: 130px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
}
.cart-item-info .name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 17px;
  font-weight: 600;
}
.cart-item-info .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 32px; height: 32px;
  background: #fff;
  font-size: 16px;
  color: var(--text-soft);
  transition: background .2s ease;
}
.qty button:hover { background: var(--bg-tinted); }
.qty span { padding: 0 12px; font-weight: 600; min-width: 30px; text-align: center; }
.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.remove-btn {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: underline;
  margin-top: 6px;
  display: inline-block;
}
.remove-btn:hover { color: var(--accent); }

.summary {
  background: var(--bg-tinted);
  border-radius: var(--r-lg);
  padding: 28px;
  position: sticky;
  top: 96px;
}
.summary h3 { font-size: 22px; margin-bottom: 18px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-soft);
}
.summary-row.total {
  border-top: 1px solid var(--line);
  margin-top: 8px;
  padding-top: 18px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  color: var(--text);
  font-weight: 700;
}

.checkout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  transition: background .2s ease, transform .2s ease;
}
.checkout-btn:hover { background: var(--accent); transform: translateY(-2px); }

.giftcard-note {
  margin-top: 16px;
  padding: 14px;
  background: rgba(212,84,58,0.08);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-soft);
  display: flex;
  gap: 10px;
}
.giftcard-note svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }

.empty-cart {
  text-align: center;
  padding: 80px 20px;
}
.empty-cart svg { color: var(--text-muted); margin-bottom: 20px; }
.empty-cart h2 { margin-bottom: 10px; }
.empty-cart p { color: var(--text-soft); margin-bottom: 24px; }

/* ============================================
   CHECKOUT PAGE
   ============================================ */
.checkout-page { padding: 60px 0 100px; }
.checkout-page h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 8px; }
.checkout-page > .container > p { color: var(--text-soft); margin-bottom: 36px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}
.checkout-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  margin-bottom: 20px;
}
.checkout-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.checkout-card h3 .step {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--text);
  color: var(--bg);
  border-radius: 50%;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field select:focus {
  outline: 0;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(20,15,10,0.06);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.giftcard-list { margin-bottom: 20px; }
.giftcard-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
  background: var(--bg-tinted);
  border-radius: var(--r-sm);
  align-items: end;
}
.giftcard-row .field { margin-bottom: 0; }
.giftcard-remove {
  width: 38px; height: 38px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  transition: color .2s ease, background .2s ease;
}
.giftcard-remove:hover { color: var(--accent); background: rgba(212,84,58,0.08); }

.add-giftcard {
  width: 100%;
  padding: 14px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: border-color .2s ease, color .2s ease;
}
.add-giftcard:hover { border-color: var(--accent); color: var(--accent); }

.giftcard-balance {
  background: rgba(47,125,92,0.08);
  border-radius: var(--r-sm);
  padding: 14px 16px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 14.5px;
}
.giftcard-balance strong { color: var(--green); }

.place-order {
  width: 100%;
  padding: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  transition: background .2s ease, transform .2s ease, box-shadow .25s ease;
  box-shadow: var(--shadow-md);
}
.place-order:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.success-state {
  text-align: center;
  padding: 80px 20px;
}
.success-icon {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  animation: popIn .6s cubic-bezier(.5, 1.5, .6, 1);
}
@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}
.success-state h1 { margin-bottom: 12px; }
.success-state p { color: var(--text-soft); margin-bottom: 32px; }

/* ============================================
   How it works full page
   ============================================ */
.hiw-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.hiw-hero h1 { font-size: clamp(48px, 7vw, 72px); }
.hiw-hero p {
  color: var(--text-soft);
  font-size: 18px;
  margin: 18px auto 0;
  max-width: 580px;
}

.hiw-steps {
  padding: 60px 0;
  display: grid;
  gap: 40px;
}
.hiw-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 48px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.hiw-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hiw-step:nth-child(even) > div:first-child { order: 2; }
.hiw-step .num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 100px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.hiw-step h2 { margin: 12px 0 14px; }
.hiw-step p { color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.hiw-illu {
  aspect-ratio: 4/3;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
}

/* ============================================
   Reveal animations
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: .08s; }
.reveal:nth-child(3) { transition-delay: .16s; }
.reveal:nth-child(4) { transition-delay: .24s; }
.reveal:nth-child(5) { transition-delay: .32s; }
.reveal:nth-child(6) { transition-delay: .4s; }

/* ============================================
   Cookie banner
   ============================================ */
.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  padding: 18px 22px;
  transform: translateY(110%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: 980px;
  margin: 0 auto;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner.hide { transform: translateY(110%); opacity: 0; }
.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
}
.cookie-text strong { font-family: 'Space Grotesk', sans-serif; font-size: 17px; }
.cookie-text p { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; line-height: 1.55; }
.cookie-text a { color: var(--accent); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, transform .15s ease;
}
.cookie-decline { background: transparent; border: 1px solid var(--line); color: var(--text); }
.cookie-decline:hover { background: var(--bg-tinted); }
.cookie-accept { background: var(--text); color: var(--bg); }
.cookie-accept:hover { background: var(--accent); transform: translateY(-1px); }

@media (max-width: 700px) {
  .cookie-inner { grid-template-columns: 1fr; }
}

/* ============================================
   Toast
   ============================================ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 30px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 480px; max-width: 480px; margin: 0 auto; }
  .cat-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid, .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter { grid-template-columns: 1fr; padding: 36px; }
  .pdp, .cart-layout, .checkout-grid { grid-template-columns: 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hiw-step { grid-template-columns: 1fr; padding: 32px; }
  .hiw-step:nth-child(even) > div:first-child { order: initial; }
  .nav-links { display: none; }
}

@media (max-width: 540px) {
  .cat-grid, .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-info .name { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; gap: 14px; }
  .cart-item-img { width: 80px; height: 100px; }
  .cart-item-price, .qty { grid-column: 2; }
  .giftcard-row { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   MEN — Theme overrides (architectural, structured)
   ============================================ */

:root {
  --r-sm: 0px;
  --r: 2px;
  --r-lg: 4px;
}

body { letter-spacing: 0.005em; }

h1, h2, h3, h4 { letter-spacing: -0.035em; line-height: 1.02; }

/* No soft blobs — replace with diagonal line motif */
.hero-blob { display: none; }
.hero {
  background:
    repeating-linear-gradient(45deg,
      transparent 0,
      transparent 22px,
      rgba(15,20,25,0.025) 22px,
      rgba(15,20,25,0.025) 23px);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 88px;
}

/* Eyebrow as a hard line label */
.eyebrow {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 4px 0 4px 12px;
  letter-spacing: 0.22em;
  font-size: 11.5px;
  color: var(--accent);
  text-transform: uppercase;
}

/* Square buttons */
.btn { border-radius: 0; padding: 16px 28px; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: none; }
.btn-ghost { border-radius: 0; }

/* Logo mark — sharp navy square */
.logo-mark {
  border-radius: 4px;
  background: var(--accent);
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 17px;
}
.logo:hover .logo-mark { transform: none; }

/* Header — solid bg, no blur */
.header { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
.nav-links a { text-transform: uppercase; letter-spacing: 0.1em; font-size: 12.5px; font-weight: 600; }
.nav-links a::after { background: var(--accent); height: 1.5px; }

/* Ticker — segmented hard-edge */
.ticker { background: var(--accent); padding: 12px 0; font-weight: 500; }
.ticker-track span { letter-spacing: 0.12em; text-transform: uppercase; font-size: 11.5px; }

/* Hero cards — sharp, no rounded edges, no float anim */
.hero-card { border-radius: 2px; box-shadow: none; border: 1px solid var(--line); }
.floaty, .floaty-delay, .floaty-delay-2 { animation: none !important; }
.card-1, .card-2, .card-3 { transform: none !important; }
.hero-visual { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; height: auto; }
.hero-card { position: static; width: auto; }
.hero-card.card-1 { grid-row: span 2; }
.hero-card-img { height: 280px; border-radius: 0; }
.hero-card.card-1 .hero-card-img { height: 100%; min-height: 360px; }
.hero-card-tag { border-radius: 0; background: var(--accent); color: #fff; }
.tag-new { background: var(--gold); color: #fff; }
.tag-deal { background: var(--accent-2); color: #fff; }
.pay-chip { display: none; }

/* Gradient text → solid accent for editorial feel */
.gradient-text {
  background: var(--accent);
  -webkit-background-clip: text;
  background-clip: text;
  animation: none;
  font-style: italic;
  font-weight: 500;
}

/* Category cards — full-bleed bands, no aspect-ratio panels */
.cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { aspect-ratio: 16/10; border-radius: 0; }
.cat-meta h3 { font-size: 28px; }
.cat-card::after { background: linear-gradient(180deg, rgba(15,20,25,0.1) 0%, rgba(15,20,25,0.7) 100%); }

/* Product cards — borderless, image-first */
.product-card { border-radius: 0; border: 0; background: transparent; }
.product-card:hover { box-shadow: none; transform: translateY(-2px); }
.product-img { border-radius: 0; aspect-ratio: 4/5; }
.product-info { padding: 14px 0 0; }
.product-info .name { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15.5px; }
.product-info .price { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 600; }
.product-badge { border-radius: 0; background: var(--accent); color: #fff; }
.product-badge.green { background: var(--gold); }
.product-badge.dark { background: #0f1419; }
.product-add { border-radius: 0; box-shadow: none; border: 1px solid #fff; background: rgba(15,20,25,0.85); color: #fff; }
.product-add:hover { background: var(--accent); }

/* Sections */
.section { padding: 80px 0; }
.section-tinted { background: var(--bg-tinted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--bg-dark); }
.section-dark h2 { color: #fff; }

/* How-it-works cards — sharp */
.how-card { border-radius: 0; padding: 40px 32px; }
.how-card::before { display: none; }
.how-num { color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-size: 13px; }
.how-card h3 { font-size: 24px; }

/* Newsletter — hard rectangle, contrast block */
.newsletter {
  border-radius: 0;
  background: var(--bg-dark);
  color: #f4f4f0;
  border: 0;
}
.newsletter::before { display: none; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(244,244,240,0.7); }
.newsletter-form { border-radius: 0; }
.newsletter-form button { border-radius: 0; background: var(--accent); }

/* Marquee logos */
.marquee-track { font-family: 'Space Grotesk', sans-serif; font-weight: 500; font-size: 18px; }

/* Footer */
.footer { background: var(--bg-dark); }
.footer h4 { color: var(--gold); }

/* Cookie banner */
.cookie-banner { border-radius: 0; }
.cookie-btn { border-radius: 0; }
