/* ==========================================================================
   TIPPY TAILS — Brand Design System
   Fonts: Playfair Display (headlines) / Futura, falls back to Jost (labels, nav, buttons, body)
   ========================================================================== */

:root {
  /* Brand palette */
  --cream-1: #faf2e0;
  --cream-2: #f5e5c4;
  --tan-1: #e6d9ba;
  --tan-2: #dbb88b;
  --amber: #ffab00;
  --orange: #ff4f00;
  --gray: #4b4b4b;
  --ink: #212121;
  --white: #ffffff;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-label: 'Futura', 'Jost', sans-serif;
  --font-body: 'Futura', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --max-width: 1320px;
  --section-pad: clamp(64px, 9vw, 128px);
  --side-pad: clamp(24px, 6vw, 80px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
}

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

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

ul { list-style: none; }

section { position: relative; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--side-pad);
  padding-right: var(--side-pad);
}

/* ---- Typography helpers ---- */

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  display: inline-block;
  margin-bottom: 18px;
}

.eyebrow.on-dark { color: rgba(255,255,255,0.85); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.1; }
h3 { font-size: 1.3rem; line-height: 1.3; }

p.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--gray);
  max-width: 46ch;
}
h2 + p.lead { margin-top: 16px; }

/* ---- Buttons ---- */

.btn {
  font-family: var(--font-label);
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 17px 34px;
  border: 1px solid var(--ink);
  display: inline-block;
  cursor: pointer;
  transition: background var(--ease) .25s, color var(--ease) .25s, border-color var(--ease) .25s;
  background: transparent;
}

.btn-solid {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-solid:hover { background: var(--orange); border-color: var(--orange); }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--white); }

.btn-outline.on-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline.on-dark:hover { background: var(--white); color: var(--ink); }

.btn-solid.on-dark {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}
.btn-solid.on-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--white); }

.btn-cart {
  width: 100%;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 14px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background var(--ease) .25s, color var(--ease) .25s;
}
.btn-cart:hover { background: var(--ink); color: var(--white); }


/* ==========================================================================
   NAV
   ========================================================================== */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--side-pad);
  font-family: var(--font-label);
  color: var(--white);
  transition: background var(--ease) .3s, padding var(--ease) .3s, color var(--ease) .3s;
}

.site-nav.scrolled {
  background: var(--cream-1);
  color: var(--ink);
  padding-top: 16px;
  padding-bottom: 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-left, .nav-right { display: flex; align-items: center; gap: 22px; flex: 1; }
.nav-right { justify-content: flex-end; }

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: none;
  border: none;
  color: inherit;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle .bars { display: flex; flex-direction: column; gap: 4px; }
.menu-toggle .bars span { width: 20px; height: 1.5px; background: currentColor; display: block; }

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
.nav-logo-img {
  height: 42px;
  width: auto;
  transition: opacity .25s var(--ease);
}
.nav-logo-rect { height: 38px; }
.nav-logo-on-light { display: none; }
.site-nav.scrolled .nav-logo-on-dark { display: none; }
.site-nav.scrolled .nav-logo-on-light { display: block; }

.nav-icon-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 9px 18px;
  transition: background var(--ease) .25s, color var(--ease) .25s, border-color var(--ease) .25s;
}
.nav-icon-link:hover { background: var(--orange); border-color: var(--orange); color: #fff; }

.nav-social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.nav-social a {
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: background var(--ease) .25s, color var(--ease) .25s;
}
.nav-social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.nav-social svg { width: 14px; height: 14px; fill: currentColor; }

/* Full screen menu overlay */
.nav-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--cream-1);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}
.nav-menu.open { transform: translateY(0); }
.nav-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}
.nav-menu a:hover { color: var(--orange); }
.nav-menu-close {
  position: absolute;
  top: 28px; right: var(--side-pad);
  background: none; border: none;
  color: var(--cream-1);
  font-size: 1rem;
  font-family: var(--font-label);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: linear-gradient(160deg, #4a5a52 0%, #6d7d6f 45%, #93a180 100%);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(10,12,10,0.6) 0%, rgba(10,12,10,0.25) 45%, rgba(10,12,10,0) 70%),
    linear-gradient(180deg, rgba(20,24,20,0.3) 0%, rgba(20,24,20,0.05) 35%, rgba(20,24,20,0.72) 100%);
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; }

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--side-pad) 96px;
  width: 100%;
}

.hero h1 {
  color: var(--white);
  max-width: 15ch;
  margin-bottom: 26px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.35);
}

.hero p.lead {
  color: rgba(255,255,255,0.92);
  margin-bottom: 40px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SECTION SHELLS
   ========================================================================== */

.section {
  padding: var(--section-pad) 0;
}

.section-cream { background: var(--cream-1); }
.section-tan { background: var(--tan-1); }
.section-tan-2 { background: var(--cream-2); }

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

.badge-launch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}
.badge-launch .tag {
  background: none;
  color: var(--orange);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0;
}
.badge-launch .price-now {
  font-family: var(--font-display);
  font-size: 1.6rem;
}
.badge-launch .price-was {
  font-family: var(--font-label);
  color: var(--gray);
  text-decoration: line-through;
  font-size: 0.95rem;
}

/* ---- Product grid ---- */

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

.product-card { display: flex; flex-direction: column; }

.product-img {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--tan-2), var(--tan-1));
  margin-bottom: 20px;
}
.product-img img, .product-img .zoom-el {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-img .stock-tag {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 3;
  background: var(--cream-1);
  font-family: var(--font-label);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 999px;
}

/* two-layer hover swap — front photo fades to alt angle on hover */
.img-angle {
  position: absolute;
  inset: 0;
}
.img-angle-a { opacity: 1; z-index: 1; }
.img-angle-b {
  opacity: 0;
  z-index: 2;
  transform: scale(1.03);
}
.product-img:hover .img-angle-a { opacity: 0; }
.product-img:hover .img-angle-b { opacity: 1; transform: scale(1); }

.product-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.product-title-row h3 { font-family: var(--font-display); }
.product-price { font-family: var(--font-label); }
.product-price .was { color: var(--gray); text-decoration: line-through; font-size: 0.8rem; margin-left: 6px; }

.product-colour {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 16px;
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-yellow { background: var(--amber); }
.dot-grey { background: #9aa39a; }
.dot-plum { background: #b06a7a; }

.size-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.size-pill {
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  padding: 8px 14px;
  cursor: pointer;
  transition: background var(--ease) .2s, color var(--ease) .2s;
}
.size-pill:hover { background: var(--ink); color: var(--white); }
.size-pill.selected { background: var(--ink); color: var(--white); }
.size-pill.disabled {
  color: #b7ada0;
  border-color: #d8cfc0;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.size-measure {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--cream-2);
  border-left: 2px solid var(--orange);
  transition: max-height .3s var(--ease), opacity .3s var(--ease), margin .3s var(--ease);
}
.size-measure.show {
  max-height: 44px;
  opacity: 1;
  padding: 9px 12px;
  margin-bottom: 12px;
}
.size-measure.warn { color: var(--orange); border-left-color: var(--orange); }

.stock-note { font-size: 0.8rem; color: var(--gray); margin-bottom: 16px; }

/* ---- Size guide ---- */

.size-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

table.size-table { width: 100%; border-collapse: collapse; }
table.size-table th {
  text-align: left;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
table.size-table td {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: var(--font-display);
  font-size: 1.15rem;
}
table.size-table td:first-child { font-family: var(--font-label); font-size: 1rem; }

/* ---- Full-bleed banner (image with overlaid text, hero-style) ---- */

.details-banner {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--white);
}
.details-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.details-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,20,0.2) 0%, rgba(20,24,20,0.05) 35%, rgba(20,24,20,0.68) 100%);
}
.details-banner-content {
  position: relative;
  z-index: 2;
  padding-top: 56px;
  padding-bottom: 56px;
}
.details-banner-content h2 {
  color: var(--white);
  text-shadow: 0 2px 24px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.35);
}
.details-banner-content p.lead {
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.details-features-wrap { padding-bottom: var(--section-pad); }

/* ---- Feature icons ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 56px;
}
.feature {
  text-align: left;
}
.feature-icon {
  width: 58px; height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.15);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  color: var(--orange);
}
.feature-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.feature h3 { font-size: 1.05rem; margin-bottom: 10px; }
.feature p { font-size: 0.92rem; color: var(--gray); }

/* ---- Story split ---- */

.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.story-copy p { color: var(--gray); margin-bottom: 20px; max-width: 58ch; }
.story-stats {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.story-stats div span {
  display: block;
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.story-stats div strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }

/* ---- FAQ ---- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
}
.faq-contact { margin-top: 4px; }
.faq-contact a { text-decoration: underline; }

.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  padding: 22px 4px;
  cursor: pointer;
  transition: color var(--ease) .2s;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.faq-question .icon::before, .faq-question .icon::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.faq-question .icon::before { width: 10px; height: 1px; }
.faq-question .icon::after { width: 1px; height: 10px; transition: transform .25s var(--ease); }
.faq-item.open .faq-question .icon::after { transform: rotate(90deg) scaleY(0); }
.faq-item.open .faq-question { color: var(--orange); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer p {
  padding: 0 4px 24px;
  color: var(--gray);
  max-width: 62ch;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  background: var(--ink);
  color: var(--cream-1);
  padding: var(--section-pad) 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

.footer-logo {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
}
.footer-logo-img { height: 48px; width: auto; }
.footer-top p { color: rgba(250,242,224,0.65); max-width: 34ch; font-size: 0.92rem; }

.footer-col h4 {
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250,242,224,0.55);
  margin-bottom: 18px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: rgba(250,242,224,0.85); font-size: 0.92rem; transition: color .2s; }
.footer-col a:hover { color: var(--orange); }

.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(250,242,224,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.footer-social a:hover { background: var(--orange); border-color: var(--orange); }
.footer-social svg { width: 16px; height: 16px; fill: rgba(250,242,224,0.9); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(250,242,224,0.15);
  font-size: 0.78rem;
  color: rgba(250,242,224,0.55);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   CUSTOM CURSOR
   ========================================================================== */

.paw-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s var(--ease), height .2s var(--ease), opacity .2s;
  opacity: 0;
}
.paw-cursor.active { opacity: 1; }
.paw-cursor img { width: 100%; height: 100%; object-fit: contain; }
.paw-cursor.grow { width: 40px; height: 40px; }

@media (hover: none) {
  .paw-cursor { display: none; }
}

.cursor-react { transition: transform .5s var(--ease), background .25s var(--ease), border-color .25s var(--ease); }

/* ==========================================================================
   CHECKOUT PAGE
   ========================================================================== */

.checkout-shell {
  min-height: 100vh;
  padding: 140px var(--side-pad) 96px;
  max-width: 720px;
  margin: 0 auto;
}
.checkout-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--gray);
}
.checkout-back:hover { color: var(--orange); }
.checkout-box {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  padding: 48px;
}
.checkout-placeholder-note {
  background: var(--cream-2);
  border: 1px dashed var(--tan-2);
  padding: 20px 22px;
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 28px;
}

.cart-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  font-family: var(--font-label);
  font-size: 0.92rem;
}
.cart-line-right { display: flex; align-items: center; gap: 12px; }
.cart-remove {
  background: none;
  border: 1px solid rgba(0,0,0,0.2);
  border-radius: 50%;
  width: 22px; height: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--gray);
  font-size: 0.9rem;
}
.cart-remove:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.cart-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--gray);
  display: none;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-family: var(--font-display);
  font-size: 1.3rem;
}
.btn-added {
  background: var(--ink) !important;
  color: var(--white) !important;
}

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

@media (max-width: 980px) {
  .product-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .size-guide { grid-template-columns: 1fr; gap: 40px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .faq-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-icon-link span.label { display: none; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { text-align: center; }
  .story-stats { flex-wrap: wrap; gap: 28px; }
  .nav-social { display: none; }
}
