@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #f3fcff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #67e8d7;
  --brand-dark: #22c4af;
  --accent: #ff9f43;
  --line: #dbeaf2;
  /* —— Full header system: announce bar, main nav, mobile drawer, auth-slim (storefront mock) —— */
  --header-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-surface: #ffffff;
  --header-border: #e2ebe8;
  --header-elev-1: 0 1px 0 rgba(0, 60, 58, 0.07);
  --header-elev-2: 0 2px 14px rgba(0, 50, 48, 0.05);
  /* Top bar: dark teal; nav: bright #4fd3c4 accents */
  --header-announce: #006b6b;
  --header-announce-text: #ffffff;
  --header-teal: #0d9488;
  --header-teal-bright: #4fd3c4;
  --header-teal-mid: #2ec4b4;
  /* Account pill: solid teal, white label (per mock) */
  --header-account-grad-0: #4fd3c4;
  --header-account-bg: #0d9488;
  --header-account-text: #ffffff;
  --header-ink: #1a1a1a;
  --header-nav-ink: #1f1f1f;
  --header-link-hover: #e8f7f4;
  --header-icon: #2d2d2d;
  --header-icon-bg: transparent;
  --header-icon-bg-hover: #eef3f0;
  --header-k-mark: #141414;
  --header-sep: #d4e0db;
  --header-backdrop: rgba(5, 40, 36, 0.45);
  --header-drawer-w: min(78vw, 300px);
  --header-drawer-shadow: -8px 0 40px rgba(15, 23, 42, 0.12), -2px 0 0 rgba(13, 148, 136, 0.06);
  --header-drawer-surface: linear-gradient(180deg, #fafcfb 0%, #ffffff 28%, #ffffff 100%);
  --header-account-sh: 0 3px 12px rgba(0, 80, 75, 0.28);
  --header-account-sh-hover: 0 5px 20px rgba(0, 80, 75, 0.34);
  --header-focus: var(--header-teal-bright);
  --header-badge: linear-gradient(135deg, #ef4444, #e11d48);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  width: min(1180px, 94%);
  margin: 0 auto;
}

/* Legacy topbar — hidden. New sites use .site-announce / .site-header. */
.topbar { display: none; }

/* Top announcement */
.site-announce {
  background: var(--header-announce);
  color: var(--header-announce-text);
  font-family: var(--header-font);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

.site-announce__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  text-align: center;
}

.site-announce__arrow {
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  flex: 0 0 auto;
  opacity: 0.95;
}

.site-announce__text {
  line-height: 1.4;
}

@media (max-width: 600px) {
  .site-announce { font-size: 11.5px; }
  .site-announce__row { padding: 7px 12px; }
}

.nav-wrap,
.site-header {
  background: var(--header-surface);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  /* Must sit above the mobile menu backdrop so the drawer inside it
     (position:fixed) is not trapped below the overlay. */
  z-index: 60;
  box-shadow: var(--header-elev-1), var(--header-elev-2);
  font-family: var(--header-font);
  -webkit-font-smoothing: antialiased;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 14px;
  min-height: 64px;
}

/* Center column: single row of primary links (wraps on narrow desktops) */
.nav > .nav__center {
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--header-teal);
  letter-spacing: -0.02em;
  flex: 0 0 auto;
  max-width: 60%;
  line-height: 1.2;
}

.brand__logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  flex: 0 0 auto;
}

.brand__mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--header-teal-bright);
  color: var(--header-k-mark);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 2px 12px rgba(79, 211, 196, 0.45);
  flex: 0 0 auto;
  letter-spacing: 0;
}

.brand__text-short {
  display: none;
}

.links.nav__center {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 4px;
  font-size: 14px;
  font-weight: 500;
}

.links a,
.links__item {
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--header-nav-ink);
  transition: color 0.16s ease, background 0.16s ease;
  position: relative;
}

.links a:hover,
.links__item:hover {
  color: var(--header-teal);
  background: var(--header-link-hover);
}

/* Active page — teal + thin underline */
.links__item.is-active {
  color: var(--header-teal);
  font-weight: 600;
  background: transparent;
}

.links__item.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--header-teal-bright);
  border-radius: 1px;
}

.links a:focus-visible,
.links__item:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Mobile-only drawer items: hide on desktop */
.links__item--mobile,
.links__sep {
  display: none;
}

.links__account {
  display: none;
}

/* Desktop: drawer-only chrome hidden */
.nav-drawer__head,
.nav-drawer__link-ic,
.nav-drawer__sep-text {
  display: none;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--header-icon);
  background: var(--header-icon-bg);
  border: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.icon-btn:hover {
  background: var(--header-icon-bg-hover);
  color: var(--header-teal);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
}

.icon-btn--nav {
  display: inline-flex;
  color: var(--header-icon);
  transition: background 0.16s ease, color 0.16s ease, transform 0.1s ease;
}

.icon-btn--nav:hover {
  background: var(--header-icon-bg-hover);
  color: var(--header-teal);
}

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

.icon-btn--cart {
  position: relative;
}

.icon-btn__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--header-badge);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff, 0 2px 4px rgba(225, 29, 72, 0.3);
  letter-spacing: 0;
}

/* Bump animation when count changes */
.icon-btn__badge.is-bumped {
  animation: ktsBadgeBump 0.45s ease;
}

@keyframes ktsBadgeBump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.35); }
  70%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}

.login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: linear-gradient(180deg, var(--header-account-grad-0) 0%, var(--header-account-bg) 100%);
  color: var(--header-account-text);
  padding: 10px 18px 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-family: inherit;
  box-shadow: var(--header-account-sh);
  transition: transform 0.1s ease, box-shadow 0.16s ease, filter 0.16s ease;
  white-space: nowrap;
  margin-left: 8px;
  text-decoration: none;
}

.login-btn:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
}

/* Account / auth routes (same header as rest of store) */
.login-btn.is-active {
  box-shadow: 0 0 0 2px var(--header-surface), var(--header-account-sh-hover);
}

.login-btn__icon {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0.95;
  color: inherit;
}

.login-btn__label {
  line-height: 1;
}

.login-btn:hover {
  filter: brightness(1.03);
  box-shadow: var(--header-account-sh-hover);
}

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

/* Hamburger */
.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--header-ink);
  margin-left: 2px;
  /* Sit on top of the open drawer so the X is always tappable. */
  position: relative;
  z-index: 3;
  transition: background 0.16s ease;
}

.nav__toggle:hover {
  background: var(--header-icon-bg-hover);
}

.nav__toggle:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
}

.nav__toggle-bars {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}

.nav__toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.15s ease, top 0.2s ease;
}

.nav__toggle-bars span:nth-child(1) { top: 2px; }
.nav__toggle-bars span:nth-child(2) { top: 7px; }
.nav__toggle-bars span:nth-child(3) { top: 12px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bars span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.nav__backdrop {
  position: fixed;
  inset: 0;
  background: var(--header-backdrop);
  /* Below .nav-wrap (60) so the drawer inside it stays interactive,
     above all page content. */
  z-index: 50;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

/* Mobile & tablet: off-canvas drawer */
@media (max-width: 860px) {
  .nav {
    padding: 10px 0;
    gap: 10px;
  }

  .brand {
    font-size: 16px;
    gap: 8px;
    max-width: none;
  }
  .brand__logo {
    width: 34px;
    height: 34px;
  }
  .brand__text-full {
    display: none;
  }
  .brand__text-short {
    display: inline;
    font-size: 17px;
    font-weight: 800;
  }

  .login-btn {
    display: none;
  }

  .nav__toggle {
    display: inline-flex;
  }
  .nav__toggle[aria-expanded="true"] {
    background: #f1f5f4;
    border-radius: 50%;
  }

  /* Mobile-drawer-only items become visible in the drawer */
  .links__item--mobile {
    display: flex;
  }
  .nav-drawer__head {
    display: block;
    margin: 0 0 8px;
    padding: 4px 4px 16px;
    border-bottom: 1px solid var(--header-border);
  }
  .nav-drawer__head-eyebrow {
    margin: 0 0 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #94a3b8;
  }
  .nav-drawer__head-title {
    margin: 0 0 4px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
  }
  .nav-drawer__head-sub {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.4;
    font-weight: 500;
    color: #64748b;
  }
  .nav-drawer__link-ic,
  .nav-drawer__sep-text {
    display: block;
  }
  .nav-drawer__link-ic {
    flex: 0 0 auto;
    display: inline-flex;
    color: var(--header-teal);
    opacity: 0.9;
  }
  .nav-drawer__link-ic svg {
    display: block;
  }
  .links__sep {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: auto;
    margin: 16px 0 8px;
    padding: 0 4px;
    background: none;
    border: 0;
  }
  .links__sep::before,
  .links__sep::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--header-sep) 20%, var(--header-sep) 80%, transparent);
    min-width: 0;
  }
  .nav-drawer__sep-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #94a3b8;
    white-space: nowrap;
    line-height: 1.2;
  }
  /* Shrink icon gap so brand + icons + hamburger fit */
  .nav__actions { gap: 2px; }
  .icon-btn--nav { width: 38px; height: 38px; }

  /* Match .links.nav__center specificity so this overrides base nav column styles. */
  .links.nav__center {
    position: fixed;
    top: 0;
    right: -100%;
    bottom: 0;
    width: var(--header-drawer-w);
    background: var(--header-drawer-surface);
    /* Relative to .nav-wrap's stacking context (z-index:60 in root). */
    z-index: 2;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    padding: max(68px, calc(env(safe-area-inset-top, 0px) + 56px)) 18px max(20px, env(safe-area-inset-bottom, 0px)) 16px;
    box-shadow: var(--header-drawer-shadow);
    border-left: 1px solid rgba(226, 235, 232, 0.95);
    border-radius: 20px 0 0 20px;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  .links.nav__center a.links__item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 12px 14px 12px 12px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.01em;
    border-radius: 12px;
    color: #1e293b;
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  }
  .links.nav__center a.links__item--mobile {
    font-weight: 500;
  }
  .links.nav__center a.links__item .nav-drawer__link-ic + span {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
  }
  .links.nav__center a.links__item::after {
    content: "›";
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    background: none;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: #cbd5e1;
    line-height: 1;
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 6px;
  }
  .links.nav__center a.links__item.is-active {
    color: var(--header-teal);
    font-weight: 600;
    background: rgba(13, 148, 136, 0.07);
    border-color: rgba(13, 148, 136, 0.2);
  }
  .links.nav__center a.links__item.is-active::after {
    color: var(--header-teal-bright);
  }
  .links.nav__center a:hover {
    background: #f0fdfa;
    border-color: rgba(13, 148, 136, 0.12);
  }
  .links.nav__center a:hover::after {
    color: #94a3b8;
  }
  .links__account {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    width: 100%;
    min-height: 0;
    background: linear-gradient(145deg, var(--header-account-grad-0) 0%, var(--header-account-bg) 100%) !important;
    color: var(--header-account-text) !important;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--header-account-sh);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  .links__account::after {
    display: none;
  }
  .links__account .nav-drawer__link-ic {
    color: rgba(255, 255, 255, 0.95);
  }
  .links__account:hover {
    filter: brightness(1.04);
    box-shadow: var(--header-account-sh-hover);
  }

  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .links.nav__center {
    right: 0;
  }
}

@media (max-width: 400px) {
  .nav__actions .icon-btn--nav:first-of-type {
    display: none; /* hide search icon on very small screens */
  }
}

.hero {
  padding: 26px 0 34px;
  background: #e8f8ff;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 26px;
  align-items: center;
}

.pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 10px;
  border-radius: 15px;
  font-size: 12px;
  color: var(--muted);
}

.hero h2 {
  margin: 12px 0 8px;
  font-size: 58px;
  line-height: 1;
}

.hero h2 span {
  color: var(--brand-dark);
}

.hero p {
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.btns {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.btn {
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-block;
}

.btn-primary {
  background: #69d9c5;
  color: #fff;
}

.btn-light {
  border: 1px solid #9de5da;
  color: var(--brand-dark);
  background: #fff;
}

.hero-collage {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}

.hero-collage img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid #fff;
}

/* Home hero: admin-managed slideshow (up to 5 images, data-hero-ms interval) */
.hero-collage.hero-slideshow {
  display: block;
  min-height: 340px;
  max-width: 100%;
}

.hero-slideshow__inner {
  position: relative;
  width: 100%;
  min-height: 340px;
  border-radius: 12px;
  background: #dbeafe;
}

.hero-slideshow__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  border-radius: 12px;
  border: 3px solid #fff;
  box-sizing: border-box;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.hero-slideshow__img.is-active {
  opacity: 1;
  z-index: 1;
  pointer-events: auto;
}

/* Explore-by-pet tiles: same crossfade, fixed height */
.pet-tile__visual.pet-tile--slideshow {
  display: block;
  min-height: 180px;
  max-width: 100%;
}

.pet-tile--slideshow .hero-slideshow__inner {
  min-height: 180px;
  border-radius: 0;
  background: #e0f2fe;
}

.pet-tile--slideshow .hero-slideshow__img {
  border-width: 0 0 3px 0;
  border-radius: 0;
}

.section {
  padding: 42px 0;
}

.section h3 {
  text-align: center;
  margin: 0 0 8px;
  font-size: 42px;
}

.section .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 0 24px;
}

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

.pet-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.pet-tile img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.pet-tile p {
  margin: 10px;
  font-weight: 700;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
}

.stars {
  color: #f8b400;
  font-size: 12px;
}

.card h4 {
  margin: 10px 0 4px;
}

.muted {
  color: var(--muted);
}

.product-row {
  margin: 28px 0 22px;
}

/* Section title + compact icon (no overlap with product rail) */
.product-row__headline {
  display: block;
  margin: 0 0 14px;
}

.product-row__headline--with-thumb {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
}

.product-row__headline--thumb-end {
  flex-direction: row-reverse;
}

/* Large headline badge (~3–4× previous 40px thumb), aligned with section title height */
.product-row__thumb-wrap {
  flex: 0 0 auto;
  width: clamp(72px, 22vw, 140px);
  height: clamp(72px, 22vw, 140px);
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-row__thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.product-row h4,
.product-row__headline h4 {
  margin: 0;
  font-size: clamp(26px, 4.2vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.product-row__title-accent {
  color: #40c4aa;
}

.product-row--align-right .product-row__headline h4 {
  text-align: right;
}

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

/* Category pages: horizontal rails (scroll / arrows) + row reveal */
.products-rail {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-top: 4px;
}

.products-scroll {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.products.products--rail {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  padding: 4px 2px 14px;
  width: max-content;
}

/* Fallback: horizontal strip without container queries (~5 cards on wide viewports) */
.products--rail .product {
  flex: 0 0 min(220px, 78vw);
  max-width: none;
  min-width: 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

/* Exactly five visible card widths = rail viewport; extra products scroll horizontally */
@supports (container-type: inline-size) {
  .products-scroll {
    container-type: inline-size;
    container-name: rail;
  }

  .products--rail .product {
    flex: 0 0 calc((100cqi - 56px) / 5);
  }

  @container rail (max-width: 720px) {
    .products--rail .product {
      flex: 0 0 calc((100cqi - 14px) / 2);
    }
  }

  @container rail (max-width: 420px) {
    .products--rail .product {
      flex: 0 0 min(280px, calc(100cqi - 8px));
    }
  }
}

/* Category rail cards: mint image well + corner add control (matches shop mock) */
.product--rail-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
}

.product--rail-card .product__media {
  position: relative;
  display: block;
  background: linear-gradient(180deg, #e8f7f3 0%, #dff3ee 100%);
  border-bottom: 1px solid rgba(20, 184, 166, 0.12);
}

.product--rail-card .product__media .badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.product--rail-card .body {
  position: relative;
  flex: 1 1 auto;
  padding-bottom: 36px;
}

.product--rail-card .product__media img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: contain;
  padding: 10px;
}

.product--rail-card .product__add {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #40c4aa;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  line-height: 34px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(64, 196, 170, 0.35);
}

.product--rail-card .product__add:hover {
  filter: brightness(1.05);
}

.product--rail-card .price {
  color: #40c4aa;
}

.products-rail__btn {
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  align-self: center;
  padding: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.products-rail__btn:hover {
  background: #f8fafc;
}

.product-row--in {
  animation: ktsRowIn 0.55s ease both;
  opacity: 0;
}

@keyframes ktsRowIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .products-rail__btn {
    display: none;
  }
}

.product {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.product img {
  width: 100%;
  height: 128px;
  object-fit: cover;
}

.product .body {
  padding: 10px;
}

.price {
  color: #1eb98a;
  font-weight: 700;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 10px;
  background: #14b8a6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.pet-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pet-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.pet-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.pet-card .body {
  padding: 12px;
}

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

.view-btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: #fff;
  padding: 9px;
  border-radius: 18px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 20px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.main-image {
  width: 100%;
  border-radius: 10px;
  height: 300px;
  object-fit: cover;
}

.thumbs {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.thumbs img {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  border: 2px solid #fff;
}

.facts {
  background: #fff7ee;
  border-radius: 10px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  font-size: 13px;
}

.footer-space {
  height: 28px;
}

/* =============================================================
 * Auth v2 — professional split-screen login / sign-up
 * ============================================================= */

.auth-v2 {
  margin: 0;
  min-height: 100vh;
  background: #f6fbfc;
  color: #0f172a;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.auth-v2 a {
  color: inherit;
  text-decoration: none;
}

.auth-v2__layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
}

/* Left: brand panel */
.auth-v2__brand {
  position: relative;
  overflow: hidden;
  color: #ecfeff;
  padding: clamp(40px, 6vw, 72px) clamp(40px, 7vw, 96px);
  background:
    radial-gradient(1000px 600px at 10% 10%, rgba(45, 212, 191, 0.45), transparent 55%),
    radial-gradient(900px 600px at 100% 90%, rgba(14, 165, 233, 0.35), transparent 55%),
    linear-gradient(135deg, #0f766e 0%, #0b4a66 55%, #0b2f44 100%);
}

.auth-v2__brand::before,
.auth-v2__brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.auth-v2__brand::before {
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.35), transparent 60%);
}

.auth-v2__brand::after {
  bottom: -160px;
  left: -80px;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25), transparent 60%);
}

.auth-v2__brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  max-width: 520px;
}

.auth-v2__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-v2__logo-img {
  display: block;
  max-height: 40px;
  width: auto;
  max-width: min(200px, 72vw);
  height: auto;
  object-fit: contain;
}

.auth-v2__logo-img--mobile {
  max-height: 36px;
}

.auth-v2__logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #67e8d7, #22c4af);
  color: #0b2f44;
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(45, 212, 191, 0.45);
}

.auth-v2__logo-text {
  font-size: 18px;
  color: #ecfeff;
}

.auth-v2__brand-body {
  margin-top: clamp(40px, 10vh, 88px);
}

.auth-v2__brand-eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #5eead4;
}

.auth-v2__brand-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
}

.auth-v2__brand-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(236, 254, 255, 0.82);
  max-width: 38em;
}

.auth-v2__brand-features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.auth-v2__brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(236, 254, 255, 0.92);
}

.auth-v2__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.18);
  color: #5eead4;
  flex: 0 0 auto;
}

.auth-v2__brand-foot {
  margin: 40px 0 0;
  font-size: 12.5px;
  color: rgba(236, 254, 255, 0.5);
}

/* Right: form panel */
.auth-v2__main {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.auth-v2__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px) clamp(24px, 5vw, 56px);
  border-bottom: 1px solid transparent;
}

.auth-v2__logo--mobile {
  color: #0f766e;
  display: none;
}

.auth-v2__logo--mobile .auth-v2__logo-img--mobile {
  filter: none;
}

.auth-v2__topbar-hint {
  margin: 0 0 0 auto;
  font-size: 13.5px;
  color: #64748b;
}

.auth-v2__topbar-hint a {
  color: #0d9488;
  font-weight: 700;
  margin-left: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.auth-v2__topbar-hint a:hover {
  border-bottom-color: #0d9488;
}

.auth-v2__form-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px) clamp(24px, 5vw, 56px) clamp(32px, 6vw, 64px);
}

.auth-v2__form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-v2__intro {
  margin-bottom: 28px;
}

.auth-v2__title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
  line-height: 1.2;
}

.auth-v2__lead {
  margin: 0;
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.55;
}

.auth-v2__alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #9f1239;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.auth-v2__alert-icon {
  flex: 0 0 auto;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e11d48;
}

/* Google OAuth */
.auth-v2__oauth {
  margin: 0 0 8px;
}
.auth-v2__oauth-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
}
.auth-v2__google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #1e293b;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.02) inset;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.auth-v2__google-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.auth-v2__google-btn:active {
  transform: scale(0.99);
}
.auth-v2__google-btn:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}
.auth-v2__google-g {
  display: flex;
  flex: 0 0 auto;
}
.auth-v2__google-g svg {
  display: block;
  width: 20px;
  height: 20px;
}
.auth-v2__oauth-terms {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #94a3b8;
  text-align: center;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}
.auth-v2__oauth-or {
  display: flex;
  align-items: center;
  margin: 20px 0 10px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  gap: 12px;
}
.auth-v2__oauth-or::before,
.auth-v2__oauth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}
.auth-v2__oauth-or span {
  flex: 0 0 auto;
}
.auth-v2__oauth-continue {
  margin: 0 0 4px;
  text-align: center;
  font-size: 12.5px;
  color: #64748b;
  font-weight: 500;
}
.auth-v2--register .auth-v2__oauth-continue {
  max-width: 20rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.45;
}

.auth-v2__form {
  display: grid;
  gap: 16px;
}

.auth-v2__field {
  display: block;
}

.auth-v2__field label,
.auth-v2__label-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 8px;
}

.auth-v2__label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.auth-v2__forgot {
  font-size: 12.5px;
  font-weight: 600;
  color: #0d9488;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.auth-v2__forgot:hover {
  color: #0f766e;
  border-bottom-color: #0d9488;
}

.auth-v2__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.auth-v2__input-wrap:hover {
  border-color: #94a3b8;
}

.auth-v2__input-wrap:focus-within {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.auth-v2__input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  display: inline-flex;
}

.auth-v2__input-wrap:focus-within .auth-v2__input-icon {
  color: #0d9488;
}

.auth-v2__input {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  font-size: 14.5px;
  color: #0f172a;
  font-family: inherit;
}

.auth-v2__input--with-toggle {
  padding-right: 44px;
}

.auth-v2__input::placeholder {
  color: #94a3b8;
}

.auth-v2__input:focus {
  outline: none;
}

.auth-v2__toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.auth-v2__toggle:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.auth-v2__toggle:focus-visible {
  outline: 2px solid #14b8a6;
  outline-offset: 2px;
}

.auth-v2__toggle-icon {
  display: inline-flex;
}

/* Make [hidden] win over the above explicit display rule */
.auth-v2__toggle-icon[hidden] {
  display: none;
}

.auth-v2__remember {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 4px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  user-select: none;
}

.auth-v2__remember input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.auth-v2__remember-box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid #cbd5e1;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  flex: 0 0 auto;
}

.auth-v2__remember input[type="checkbox"]:checked + .auth-v2__remember-box {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.auth-v2__remember input[type="checkbox"]:focus-visible + .auth-v2__remember-box {
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.25);
}

.auth-v2__submit {
  position: relative;
  margin-top: 8px;
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.32);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
}

.auth-v2__submit:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.38);
}

.auth-v2__submit:active {
  transform: translateY(1px);
}

.auth-v2__submit:focus-visible {
  outline: 2px solid #0f766e;
  outline-offset: 2px;
}

.auth-v2__submit[disabled],
.auth-v2__submit.is-loading {
  cursor: progress;
  opacity: 0.85;
}

.auth-v2__spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  display: none;
  animation: authV2Spin 0.7s linear infinite;
}

.auth-v2__submit.is-loading .auth-v2__spinner {
  display: inline-block;
}

@keyframes authV2Spin {
  to { transform: rotate(360deg); }
}

.auth-v2__switch {
  margin: 24px 0 0;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.auth-v2__switch a {
  color: #0d9488;
  font-weight: 700;
  margin-left: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.auth-v2__switch a:hover {
  border-bottom-color: #0d9488;
}

.auth-v2__trust {
  margin: 28px auto 0;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
}

.auth-v2__trust {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.auth-v2__trust-icon {
  color: #0d9488;
  display: inline-flex;
}

/* Register additions */
.auth-v2--register .auth-v2__form {
  gap: 14px;
}

.auth-v2--register .auth-v2__form-inner {
  max-width: 440px;
}

.auth-v2--register .auth-v2__intro {
  margin-bottom: 22px;
}

.auth-v2__optional {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 8px;
}

/* Password strength meter */
.auth-v2__meter {
  margin-top: 8px;
}

.auth-v2__meter-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.auth-v2__meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: #e2e8f0;
  transition: width 0.2s ease, background 0.2s ease;
}

.auth-v2__meter-fill.is-0 { width: 0; }
.auth-v2__meter-fill.is-1 { width: 25%; background: #ef4444; }
.auth-v2__meter-fill.is-2 { width: 50%; background: #f59e0b; }
.auth-v2__meter-fill.is-3 { width: 75%; background: #10b981; }
.auth-v2__meter-fill.is-4 { width: 100%; background: #0d9488; }

.auth-v2__meter-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

/* Terms agreement checkbox — allows longer wrapping */
.auth-v2__remember--terms {
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #475569;
  margin-top: 2px;
}

.auth-v2__remember--terms .auth-v2__remember-box {
  margin-top: 2px;
}

.auth-v2__remember--terms a {
  color: #0d9488;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.auth-v2__remember--terms a:hover {
  border-bottom-color: #0d9488;
}

/* Mobile hero (only on small screens) */
.auth-v2__mobile-hero {
  display: none;
}

/* Responsive */
@media (max-width: 960px) {
  .auth-v2__layout {
    grid-template-columns: 1fr;
  }
  .auth-v2__brand {
    display: none;
  }
  .auth-v2__logo--mobile {
    display: inline-flex;
  }
  .auth-v2__topbar {
    border-bottom: 1px solid transparent;
  }

  .auth-v2 {
    background: #f6fbfc;
  }

  .auth-v2__mobile-hero {
    position: relative;
    display: block;
    height: 232px;
    margin: 0;
    overflow: hidden;
    border-bottom-left-radius: 34px 22px;
    border-bottom-right-radius: 34px 22px;
    color: #ecfeff;
    isolation: isolate;
  }

  .auth-v2__mobile-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
  }

  .auth-v2__mobile-hero-art {
    position: absolute;
    right: 16px;
    bottom: 4px;
    z-index: 2;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.25));
    animation: ktsAuthBob 4.5s ease-in-out infinite;
    transform-origin: center;
  }

  .auth-v2__mobile-hero-text {
    position: relative;
    z-index: 2;
    padding: 26px 26px 0;
    max-width: 62%;
  }

  .auth-v2__mobile-hero-eyebrow {
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a7f3d0;
    opacity: 0.95;
  }

  .auth-v2__mobile-hero-title {
    margin: 0 0 6px;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  }

  .auth-v2__mobile-hero-lead {
    margin: 0;
    font-size: 13.5px;
    color: rgba(236, 254, 255, 0.88);
    line-height: 1.45;
  }

  /* Floating decorative pieces */
  .auth-v2__float {
    position: absolute;
    z-index: 3;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.15));
    opacity: 0.85;
  }

  .auth-v2__float--paw {
    top: 18px;
    right: 24px;
    animation: ktsAuthFloat 3.6s ease-in-out infinite;
  }

  .auth-v2__float--fish {
    top: 96px;
    right: 12px;
    animation: ktsAuthFloat 4.2s ease-in-out -1.2s infinite;
  }

  .auth-v2__float--bubble {
    top: 140px;
    left: 20px;
    animation: ktsAuthBubble 5s ease-in-out infinite;
  }

  .auth-v2__float--bubble-sm {
    top: 60px;
    left: 52px;
    animation: ktsAuthBubble 4s ease-in-out -1s infinite;
  }

  /* Float the form card up into the hero for a clean overlap */
  .auth-v2__main {
    background: transparent;
  }

  .auth-v2__form-wrap {
    padding-top: 0;
    padding-bottom: 36px;
  }

  .auth-v2__form-inner {
    position: relative;
    margin-top: -34px;
    background: #fff;
    border-radius: 22px;
    padding: 22px 20px 24px;
    box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.18),
                0 2px 6px rgba(15, 23, 42, 0.04);
    max-width: 420px;
  }

  .auth-v2__intro {
    margin-bottom: 18px;
  }

  .auth-v2__title {
    font-size: 22px;
  }

  .auth-v2__lead {
    font-size: 13.5px;
  }

  .auth-v2__switch {
    margin-top: 20px;
  }

  .auth-v2__trust {
    margin-top: 22px;
  }
}

@keyframes ktsAuthBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes ktsAuthFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-6px) rotate(4deg); }
}
@keyframes ktsAuthBubble {
  0%   { transform: translateY(0);   opacity: 0.9; }
  50%  { transform: translateY(-12px); opacity: 0.6; }
  100% { transform: translateY(-24px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .auth-v2__mobile-hero-art,
  .auth-v2__float { animation: none !important; }
}

@media (max-width: 480px) {
  .auth-v2__topbar-hint {
    font-size: 12.5px;
  }
  .auth-v2__form-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }
  .auth-v2__mobile-hero {
    height: 216px;
  }
  .auth-v2__mobile-hero-text {
    padding-top: 22px;
  }
  .auth-v2__mobile-hero-title {
    font-size: 26px;
  }
  .auth-v2__mobile-hero-art svg {
    width: 130px;
    height: 116px;
  }
}

@media (max-width: 380px) {
  .auth-v2__mobile-hero-text {
    max-width: 60%;
  }
  .auth-v2__mobile-hero-title {
    font-size: 24px;
  }
  .auth-v2__mobile-hero-art svg {
    width: 118px;
    height: 104px;
  }
  .auth-v2__float--fish {
    right: 6px;
    top: 90px;
  }
}

/* Login/register slim header */
.auth-slim-header {
  background: var(--header-surface);
  border-bottom: 1px solid var(--header-border);
  box-shadow: var(--header-elev-1), var(--header-elev-2);
  font-family: var(--header-font);
  -webkit-font-smoothing: antialiased;
  position: relative;
  z-index: 40;
}

.auth-slim-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  flex-wrap: wrap;
}

.auth-slim-header__brand {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--header-teal);
  max-width: min(100%, 300px);
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.auth-slim-header__logo {
  display: block;
  max-height: 32px;
  width: auto;
  object-fit: contain;
}

.auth-slim-header__brand:hover {
  color: var(--header-teal-mid);
}

.auth-slim-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-slim-header__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.16s ease, background 0.16s ease;
}

.auth-slim-header__link:hover {
  color: var(--header-teal);
  background: var(--header-link-hover);
}

.auth-slim-header__link:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
}

.auth-slim-header__pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--header-account-text);
  background: linear-gradient(180deg, var(--header-account-grad-0) 0%, var(--header-account-bg) 100%);
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--header-account-sh);
  text-decoration: none;
  display: inline-block;
  transition: filter 0.16s ease, box-shadow 0.16s ease;
}

.auth-slim-header__pill:hover {
  filter: brightness(1.03);
  box-shadow: var(--header-account-sh-hover);
}

.auth-slim-header__pill:focus-visible {
  outline: 2px solid var(--header-focus);
  outline-offset: 2px;
}

/* Auth (login / register) */
.auth-page {
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -10%, rgba(103, 232, 215, 0.18), transparent 55%),
    radial-gradient(800px 400px at 100% 40%, rgba(14, 165, 233, 0.06), transparent 50%),
    linear-gradient(180deg, #f0fbfc 0%, var(--bg) 35%, #eef8fb 100%);
}

.auth-page__main {
  flex: 1;
}

.auth-page--login .auth-page__section {
  padding-top: clamp(32px, 8vw, 56px);
  padding-bottom: clamp(40px, 10vw, 72px);
}

.auth-page__section {
  padding-top: 28px;
  padding-bottom: 48px;
}

.auth-page__inner {
  max-width: 440px;
  margin: 0 auto;
}

.auth-page__shell {
  width: min(100%, 420px);
  margin: 0 auto;
}

.auth-page__intro {
  text-align: center;
  margin-bottom: 28px;
}

.auth-page__eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
}

.auth-page__title {
  margin: 0 0 12px;
  font-size: clamp(28px, 5.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text);
}

.auth-page__lead {
  margin: 0 auto;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}

.auth-page__back {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
}

.auth-page__back a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-page__back a:hover {
  color: var(--brand-dark);
  border-bottom-color: rgba(34, 196, 175, 0.5);
}

.auth-card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 28px 26px 24px;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 20px 50px -12px rgba(15, 23, 42, 0.1);
}

.auth-card--login {
  border-top: 3px solid var(--brand-dark);
  padding-top: 26px;
}

.auth-form {
  margin-top: 4px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}

.input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid #cbd5e1;
  font-size: 15px;
  color: var(--text);
  background: #fafbfc;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
  color: #94a3b8;
}

.input:hover {
  border-color: #94a3b8;
  background: #fff;
}

.input:focus {
  outline: none;
  border-color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(34, 196, 175, 0.22);
}

.input:focus-visible {
  outline: none;
}

.auth-form__submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px 18px;
  border: none;
  cursor: pointer;
  border-radius: 11px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 8px rgba(34, 196, 175, 0.35);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.auth-form__submit:hover {
  filter: brightness(1.03);
  box-shadow: 0 4px 14px rgba(34, 196, 175, 0.4);
}

.auth-form__submit:active {
  transform: translateY(1px);
}

.auth-card__rule {
  height: 1px;
  margin: 22px 0 18px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  border: 0;
}

.auth-card__footer {
  margin: 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-card__footer a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 196, 175, 0.45);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.auth-card__footer a:hover {
  color: #0f766e;
  border-bottom-color: #0f766e;
}

.auth-card__hint {
  margin: 16px 0 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.45;
  color: #94a3b8;
}

.alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 14px;
  line-height: 1.45;
}

.alert--error {
  background: linear-gradient(180deg, #fff5f5 0%, #fff1f2 100%);
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.alert--success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

@media (max-width: 640px) {
  .auth-slim-header__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .auth-slim-header__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards,
  .pet-cards {
    grid-template-columns: 1fr;
  }
  .products:not(.products--rail) {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h2 {
    font-size: 42px;
  }
  .section h3,
  .product-row h4,
  .product-row__headline h4 {
    font-size: 30px;
  }
}

/* =============================================================
 * Cart page
 * ============================================================= */

.cart-page {
  padding: 24px 0 48px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.cart-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #64748b;
  margin: 8px 0 18px;
}

.cart-breadcrumb a {
  color: #64748b;
}

.cart-breadcrumb a:hover {
  color: var(--brand-dark);
}

.cart-breadcrumb span[aria-hidden="true"] {
  opacity: 0.5;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.cart-header__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.cart-header__sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.cart-header__continue {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #0d9488;
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.cart-header__continue:hover {
  background: #ccfbf1;
  border-color: #99f6e4;
}

/* Empty state */
.cart-empty {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 56px 24px;
  text-align: center;
  max-width: 620px;
  margin: 24px auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.cart-empty__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #f0fdfa;
}

.cart-empty h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
}

.cart-empty p {
  margin: 0 0 20px;
  color: #64748b;
  font-size: 14.5px;
}

.cart-empty .btn-primary {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  display: inline-block;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

.cart-empty .btn-primary:hover { filter: brightness(1.04); }

/* Two-column layout */
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

/* Items list */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cart-item:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.cart-item--oos {
  opacity: 0.75;
}

.cart-item__media {
  display: block;
  width: 110px;
  height: 110px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0fdfa 0%, #e6fffb 100%);
  flex: 0 0 auto;
}

.cart-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  display: block;
}

.cart-item__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cart-item__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item__name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  text-decoration: none;
}

.cart-item__name:hover {
  color: #0d9488;
}

.cart-item__remove-form {
  margin: 6px 0 0;
}

.cart-item__remove-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #e11d48;
  background: #fff5f6;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cart-item__remove-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #9f1239;
}

.cart-item__remove-btn:focus-visible {
  outline: 2px solid #e11d48;
  outline-offset: 2px;
}

.cart-item.is-removing {
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-item__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.cart-item__stock {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
}

.cart-item__stock--in {
  color: #065f46;
  background: #d1fae5;
}

.cart-item__stock--low {
  color: #92400e;
  background: #fef3c7;
}

.cart-item__stock--out {
  color: #991b1b;
  background: #fee2e2;
}

.cart-item__tag {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #f43f5e;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.cart-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.cart-item__line {
  font-size: 13px;
  color: #64748b;
  white-space: nowrap;
}

.cart-item__line strong {
  color: #0f172a;
  font-weight: 700;
  margin-left: 6px;
  font-size: 14px;
}

/* Quantity stepper */
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.qty__btn {
  width: 34px;
  height: 36px;
  border: 0;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}

.qty__btn:hover:not(:disabled) {
  background: #ccfbf1;
  color: #0d9488;
}

.qty__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty__input {
  width: 48px;
  height: 36px;
  text-align: center;
  border: 0;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  appearance: textfield;
  -moz-appearance: textfield;
}

.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty__input:focus {
  outline: none;
  background: #f0fdfa;
}

.cart-item__prices {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.cart-item__price {
  font-size: 16px;
  font-weight: 800;
  color: #0d9488;
}

.cart-item__price-strike {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
}

/* Order summary */
.cart-summary {
  position: sticky;
  top: 80px;
}

.cart-summary__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.cart-summary__title {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
}

.cart-summary__ship {
  background: #f0fdfa;
  border: 1px solid #ccfbf1;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: #0f766e;
}

.cart-summary__ship p {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-summary__ship--done p {
  margin: 0;
}

.cart-summary__ship strong {
  color: #0d9488;
  font-weight: 800;
}

.cart-summary__bar {
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.cart-summary__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  border-radius: 999px;
  transition: width 0.3s ease;
}

.cart-summary__rows {
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-summary__rows > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}

.cart-summary__rows dt {
  margin: 0;
}

.cart-summary__rows dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

.cart-summary__savings {
  color: #0d9488 !important;
  font-weight: 700 !important;
}

.cart-summary__free {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: #d1fae5;
  color: #065f46;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.cart-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.cart-summary__total span:last-child {
  color: #0d9488;
}

.cart-summary__tax {
  margin: 4px 0 18px;
  font-size: 12px;
  color: #94a3b8;
}

.cart-summary__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.cart-summary__cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 8px 22px rgba(20, 184, 166, 0.42);
}

.cart-summary__cta:active {
  transform: translateY(1px);
}

.cart-summary__trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}

.cart-summary__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-summary__link {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
}

.cart-summary__link:hover { color: #0d9488; }

/* Toast host (stacks toasts) */
.kts-toast-host {
  position: fixed;
  top: 84px;
  right: 20px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}

.kts-toast-host > .kts-toast { pointer-events: auto; }

.kts-toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-left: 4px solid #10b981;
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 280px;
  max-width: 360px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
  animation: ktsToastIn 0.22s ease both;
}

.kts-toast--error {
  border-color: #fecdd3;
  border-left-color: #ef4444;
}

.kts-toast--error .kts-toast__body strong { color: #991b1b; }
.kts-toast--error .kts-toast__body span { color: #be123c; }

.kts-toast.is-hiding {
  animation: ktsToastOut 0.22s ease both;
}

.kts-toast__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.kts-toast__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kts-toast__body strong {
  font-size: 14px;
  font-weight: 700;
  color: #065f46;
}

.kts-toast__body span {
  font-size: 12.5px;
  color: #0f766e;
}

.kts-toast__close {
  background: transparent;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 6px;
  align-self: flex-start;
}

.kts-toast__close:hover { color: #0f172a; }

@keyframes ktsToastIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes ktsToastOut {
  to { opacity: 0; transform: translateY(-8px); }
}

/* Cart responsive */
@media (max-width: 900px) {
  .cart-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
}

/* =============================================================
 * Account dashboard
 * ============================================================= */

.account-page {
  padding: 24px 0 52px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

/* Hero */
.acc-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(94, 234, 212, 0.25), transparent 60%),
    linear-gradient(135deg, #f0fdfa 0%, #ecfdf5 65%, #f8fafc 100%);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 20px;
  padding: 20px 24px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.acc-hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.acc-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
  flex: 0 0 auto;
}

.acc-hero__eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
}

.acc-hero__name {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.acc-hero__sub {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.acc-hero__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbd5e1;
  display: inline-block;
}

.acc-hero__stats {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.acc-stat {
  min-width: 110px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-stat__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.acc-stat__value {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.acc-stat__value--accent { color: #0d9488; }

/* Layout */
.acc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

/* Sidebar */
.acc-nav {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acc-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.acc-nav__link:hover { background: #f1f5f9; color: #0f172a; }

.acc-nav__link.is-active {
  background: #ecfdf5;
  color: #0d9488;
  box-shadow: inset 3px 0 0 #0d9488;
}

.acc-nav__link svg { flex: 0 0 auto; }

.acc-nav__count {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 22px;
  text-align: center;
}

.acc-nav__link.is-active .acc-nav__count {
  background: #0d9488;
  color: #fff;
}

.acc-nav__link--danger { color: #b91c1c; }
.acc-nav__link--danger:hover { background: #fef2f2; color: #991b1b; }

/* Panels */
.acc-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.acc-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acc-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.acc-panel__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.acc-panel__sub {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
}

.acc-subtitle {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.acc-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}

.acc-back:hover { color: #0d9488; }

/* Overview tiles */
.acc-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.acc-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.acc-tile:hover {
  border-color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.acc-tile__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ecfdf5;
  color: #0d9488;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #a7f3d0;
}

.acc-tile__title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.acc-tile__sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Orders list */
.acc-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.acc-filter__chip {
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.acc-filter__chip:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.acc-filter__chip.is-active {
  background: #0f172a;
  color: #fff;
}

.acc-orders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.acc-order {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.acc-order:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.acc-order__main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.acc-order__top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.acc-order__no {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

.acc-order__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
  flex-wrap: wrap;
}

.acc-order__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #cbd5e1;
}

.acc-order__total {
  color: #0f172a;
  font-weight: 700;
}

.acc-order__view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #0d9488;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.acc-order__view:hover {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

/* Account order — returns (mirrors track order; 3-step bar) */
.acc-return {
  margin: 0 0 22px;
  padding: 18px 18px 20px;
  background: linear-gradient(135deg, #f8fafc 0%, #fff 50%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.acc-return__hint {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.55;
  color: #64748b;
}

.acc-return__note {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.acc-return__steps {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 6px;
}

.acc-return__actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.acc-return__form {
  margin: 0;
}

.acc-return__form .btn {
  border-radius: 12px;
  font-weight: 600;
  padding: 10px 18px;
}

@media (max-width: 700px) {
  .acc-return .os-steps {
    grid-template-columns: 1fr;
    gap: 18px 0;
  }

  .acc-return .os-steps::before,
  .acc-return .os-steps::after {
    left: 15px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
  }

  .acc-return .os-steps::after {
    width: 3px;
    height: calc((100% - 16px) * (var(--progress, 0%) / 100%));
  }
}

/* Status badges */
.acc-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.acc-badge--success { background: #d1fae5; color: #065f46; }
.acc-badge--warn    { background: #fef3c7; color: #92400e; }
.acc-badge--info    { background: #e0f2fe; color: #075985; }
.acc-badge--pending { background: #e0e7ff; color: #3730a3; }
.acc-badge--muted   { background: #e5e7eb; color: #4b5563; }

/* Profile / bio */
.acc-bio {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
}

.acc-bio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 22px;
  margin: 0;
}

.acc-bio__grid > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.acc-bio__grid dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.acc-bio__grid dd {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
  word-break: break-word;
}

.acc-form { display: flex; flex-direction: column; gap: 14px; }
.acc-form__actions { margin-top: 6px; }

/* Order detail */
.acc-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.acc-order-head__title {
  margin: 2px 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: #0f172a;
}

.acc-order-head__sub {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

/* Timeline */
.acc-timeline {
  list-style: none;
  margin: 0 0 18px;
  padding: 20px 10px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}

.acc-timeline::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 34px;
  height: 3px;
  border-radius: 999px;
  background: #e2e8f0;
  z-index: 0;
}

.acc-timeline::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 34px;
  height: 3px;
  width: calc((100% - 52px) * (var(--progress, 0%) / 100%));
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  z-index: 1;
  transition: width 0.6s cubic-bezier(.2,.6,.3,1);
}

.acc-timeline--cancelled {
  display: block;
  padding: 16px;
  text-align: center;
  background: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
  font-weight: 600;
}

.acc-timeline__step {
  position: relative;
  z-index: 2;
  text-align: center;
}

.acc-timeline__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.acc-timeline__step--done .acc-timeline__dot {
  background: #0d9488; border-color: #0d9488; color: #fff;
}

.acc-timeline__step--active .acc-timeline__dot {
  background: #fff; border-color: #0d9488; color: #0d9488;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.acc-timeline__pulse {
  width: 9px; height: 9px; border-radius: 50%;
  background: #0d9488;
  position: relative;
}

.acc-timeline__pulse::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  background: rgba(13, 148, 136, 0.22);
  animation: osPulse 1.6s ease-out infinite;
}

.acc-timeline__label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.acc-timeline__step--todo .acc-timeline__label { color: #64748b; font-weight: 600; }

.acc-timeline__at {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #0d9488;
  margin-top: 3px;
  line-height: 1.3;
}

.acc-timeline__step--todo .acc-timeline__at { color: #94a3b8; }

/* Order detail grid */
.acc-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.acc-order-main { min-width: 0; }

.acc-side-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
}

.acc-side-card + .acc-side-card { margin-top: 12px; }

.acc-shipment-track__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
}

.acc-shipment-track__info {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #0f172a;
}

.acc-shipment-track__courier {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.acc-shipment-track__line {
  display: block;
  word-break: break-word;
}

.acc-shipment-track__code {
  font-weight: 600;
  letter-spacing: 0.02em;
}

.acc-shipment-track__cta {
  flex-shrink: 0;
  border-radius: 10px;
  font-weight: 600;
  padding: 10px 18px;
  text-decoration: none;
  white-space: nowrap;
}

.acc-shipment-track__note {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #64748b;
}

/* Responsive */
@media (max-width: 900px) {
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding: 8px;
  }
  .acc-nav__link {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .acc-nav__link.is-active { box-shadow: inset 0 -3px 0 #0d9488; }
  .acc-order-grid { grid-template-columns: 1fr; }
  .acc-timeline {
    grid-template-columns: 1fr;
    padding: 14px 14px 6px;
  }
  .acc-timeline::before,
  .acc-timeline::after {
    left: 28px;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 3px;
    height: auto;
  }
  .acc-timeline::after {
    width: 3px;
    height: calc((100% - 44px) * (var(--progress, 0%) / 100%));
  }
  .acc-timeline__step {
    text-align: left;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 10px;
    align-items: center;
    padding: 4px 0;
  }
  .acc-timeline__dot { margin: 0; }
}

@media (max-width: 560px) {
  .acc-hero { padding: 18px; border-radius: 16px; }
  .acc-hero__stats { gap: 14px; width: 100%; }
  .acc-stat { min-width: 100px; flex: 1 1 100px; }
  .acc-stat__value { font-size: 18px; }
  .acc-panel { padding: 18px; border-radius: 14px; }
  .acc-order { padding: 12px 14px; grid-template-columns: 1fr; }
  .acc-order__view { justify-self: flex-start; }
}

/* =============================================================
 * Order success page
 * ============================================================= */

.order-success {
  padding: 28px 0 56px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

/* Online payment not completed: no “success” state */
.os-pay-incomplete {
  max-width: 580px;
  margin: 40px auto 0;
  padding: 0 0.5rem 2rem;
}

.os-pay-incomplete__panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem 1.5rem 1.6rem;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.os-pay-incomplete__title {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #9a3412;
  letter-spacing: -0.02em;
}

.os-pay-incomplete__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #334155;
}

.os-pay-incomplete__ref {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
  color: #64748b;
}

.os-pay-incomplete__ref code {
  font-size: 0.88rem;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 6px;
  color: #0f172a;
}

.os-pay-incomplete__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  align-items: center;
}

.os-pay-incomplete__actions .os-btn--ghost {
  text-decoration: none;
  color: #64748b;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.os-pay-incomplete__actions .os-btn--ghost:hover {
  color: #0d9488;
  border-color: #a7f3d0;
  background: #f0fdfa;
}

.os-paid-banner {
  margin: 0 auto 0.5rem;
  max-width: 40rem;
  padding: 0.5rem 0.9rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  color: #0f766e;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.os-order-id-box {
  max-width: 24rem;
  margin: 1rem auto 1.5rem;
  padding: 1rem 1.1rem;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 12px;
  text-align: left;
}

.os-order-id-box__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94a3b8;
  margin-bottom: 0.4rem;
}

.os-order-id-box__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.os-order-id-box__code {
  flex: 1 1 12rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #5eead4;
  background: none;
  padding: 0;
}

.os-order-id-box__copy {
  flex: 0 0 auto;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  background: #5eead4;
  border: 0;
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  transition: filter 0.15s ease;
}

.os-order-id-box__copy:hover {
  filter: brightness(1.06);
}

.os-order-id-box__hint {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: #94a3b8;
}

.os-hero {
  position: relative;
  text-align: center;
  background:
    radial-gradient(800px 420px at 50% -20%, rgba(94, 234, 212, 0.35), transparent 55%),
    radial-gradient(600px 320px at 90% 80%, rgba(14, 165, 233, 0.18), transparent 55%),
    linear-gradient(180deg, #ecfdf5 0%, #f0fdfa 45%, #f8fafc 100%);
  border: 1px solid rgba(20, 184, 166, 0.18);
  border-radius: 22px;
  padding: clamp(38px, 7vw, 64px) 24px 40px;
  overflow: hidden;
  margin-bottom: 22px;
}

/* Confetti */
.os-confetti {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.os-conf {
  position: absolute;
  top: -12px;
  display: block;
  border-radius: 2px;
  opacity: 0;
  animation-name: osConfetti;
  animation-timing-function: cubic-bezier(.33,.55,.6,1);
  animation-fill-mode: forwards;
  animation-iteration-count: 1;
  transform-origin: center;
}

.os-conf--1 { border-radius: 50%; }
.os-conf--2 {
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  border-radius: 0;
}

@keyframes osConfetti {
  0%   { transform: translate3d(0, -20px, 0) rotate(0deg) scale(0.6); opacity: 0; }
  15%  { opacity: 1; }
  100% { transform: translate3d(var(--tx, 0), 640px, 0) rotate(var(--r, 180deg)) scale(1); opacity: 0; }
}

/* Success badge with rings */
.os-badge {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.os-badge__core {
  position: relative;
  z-index: 2;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 18px 36px rgba(13, 148, 136, 0.38),
    0 0 0 6px rgba(20, 184, 166, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  animation: osPop 0.55s cubic-bezier(.2,1.3,.4,1) both;
}

.os-badge__ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 2px solid rgba(20, 184, 166, 0.4);
  opacity: 0;
  animation: osRing 2.6s ease-out infinite;
}

.os-badge__ring--1 { animation-delay: 0s; }
.os-badge__ring--2 { animation-delay: 0.6s; border-color: rgba(20, 184, 166, 0.28); }
.os-badge__ring--3 { animation-delay: 1.2s; border-color: rgba(20, 184, 166, 0.18); }

@keyframes osRing {
  0%   { transform: translate(-50%, -50%) scale(0.7); opacity: 0.7; }
  80%  { opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

@keyframes osPop {
  0%   { transform: scale(0.4); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.os-badge__tick path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: osDraw 0.5s ease-out 0.35s forwards;
}

@keyframes osDraw {
  to { stroke-dashoffset: 0; }
}

.os-title {
  margin: 0 0 8px;
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.os-subtitle {
  margin: 0 auto 22px;
  font-size: 14.5px;
  color: #475569;
  max-width: 34em;
  line-height: 1.55;
}

.os-subtitle strong {
  color: #0d9488;
  font-weight: 600;
  background: rgba(13, 148, 136, 0.08);
  padding: 1px 6px;
  border-radius: 6px;
}

.os-meta {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 14px 22px;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  margin: 0 auto 22px;
}

.os-meta__block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.os-meta__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
}

.os-meta__value {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

.os-meta__value--accent { color: #0d9488; }

.os-meta__sep {
  width: 1px;
  height: 30px;
  background: #e2e8f0;
}

.os-cta-row {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.os-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.1s ease, filter 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  font-family: inherit;
}

.os-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.35);
}

.os-btn--primary:hover { filter: brightness(1.04); box-shadow: 0 8px 22px rgba(20, 184, 166, 0.42); }
.os-btn--primary:active { transform: translateY(1px); }

.os-btn--secondary {
  color: #0f766e;
  background: #fff;
  border-color: #ccfbf1;
}

.os-btn--secondary:hover { background: #f0fdfa; border-color: #99f6e4; }

.os-btn--ghost {
  color: #334155;
  background: #fff;
  border-color: #e2e8f0;
}

.os-btn--ghost:hover { background: #f8fafc; border-color: #cbd5e1; }

/* Tracker */
.os-tracker {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px 4px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  margin-bottom: 20px;
}

.os-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.os-section-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d9488;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.os-eta {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 500;
  color: #64748b;
}

.os-eta strong {
  color: #0f172a;
  font-weight: 700;
}

.os-steps {
  list-style: none;
  margin: 0;
  padding: 0 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  position: relative;
}

.os-steps::before {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  top: 14px;
  height: 3px;
  border-radius: 999px;
  background: #e2e8f0;
  z-index: 0;
}

.os-steps::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 14px;
  height: 3px;
  width: calc((100% - 32px) * (var(--progress, 0%) / 100%));
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #0d9488);
  z-index: 1;
  transition: width 0.6s cubic-bezier(.2,.6,.3,1);
}

.os-step {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 0;
}

.os-step__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e2e8f0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  position: relative;
  margin-bottom: 10px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.os-step--done .os-step__dot {
  background: #0d9488;
  border-color: #0d9488;
  color: #fff;
}

.os-step--active .os-step__dot {
  background: #fff;
  border-color: #0d9488;
  color: #0d9488;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.15);
}

.os-step__pulse {
  position: relative;
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0d9488;
}

.os-step__pulse::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.25);
  animation: osPulse 1.6s ease-out infinite;
}

@keyframes osPulse {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}

.os-step__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.os-step--todo .os-step__label { color: #64748b; font-weight: 600; }

.os-step__at {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #0d9488;
  margin-top: 2px;
  line-height: 1.3;
}

.os-step--todo .os-step__at { color: #94a3b8; }

.os-step__desc {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Grid: items + side */
.os-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
  margin-bottom: 20px;
}

.os-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.os-panel + .os-panel { margin-top: 14px; }

.os-panel__title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.os-panel__title--sm { font-size: 14px; margin-bottom: 10px; }

/* Items */
.os-items {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed #e2e8f0;
}

.os-item:last-child { border-bottom: 0; padding-bottom: 0; }

.os-item__media {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0fdfa, #e6fffb);
  display: block;
}

.os-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.os-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.os-item__name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
  text-decoration: none;
  display: block;
}

.os-item__name:hover { color: #0d9488; }

.os-item__meta {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.os-item__price {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
}

.os-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
}

.os-totals > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}

.os-totals dt { margin: 0; }
.os-totals dd { margin: 0; color: #0f172a; font-weight: 700; }

.os-totals__grand {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 17px !important;
  color: #0f172a !important;
}

.os-totals__grand dd { color: #0d9488 !important; font-size: 18px; font-weight: 800; }

/* Address + payment */
.os-addr {
  font-size: 14px;
  color: #334155;
  line-height: 1.55;
}

.os-addr__name {
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 2px;
}

.os-addr__phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
  color: #64748b;
}

.os-payment {
  display: flex;
  align-items: center;
  gap: 12px;
}

.os-payment__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.os-payment__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.os-payment__sub {
  font-size: 12.5px;
  color: #64748b;
  margin-top: 2px;
}

.os-panel--trust { background: #f8fafc; }

.os-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #475569;
}

.os-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Help */
.os-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(14, 116, 110, 0.06), rgba(14, 165, 233, 0.06));
  border: 1px dashed rgba(20, 184, 166, 0.3);
  border-radius: 14px;
  padding: 18px 22px;
}

.os-help__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.os-help__lead {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.os-help__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  .os-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .os-hero {
    padding: 36px 16px 28px;
    border-radius: 18px;
  }
  .os-badge { width: 104px; height: 104px; margin-bottom: 16px; }
  .os-badge__core { width: 72px; height: 72px; }
  .os-meta {
    gap: 14px;
    padding: 12px 16px;
  }
  .os-meta__sep { display: none; }
  .os-meta__block { flex: 1 1 140px; }
  .os-steps {
    grid-template-columns: 1fr;
    padding-bottom: 8px;
  }
  .os-steps::before,
  .os-steps::after {
    left: 16px;
    right: auto;
    top: 16px;
    bottom: 16px;
    width: 3px;
    height: auto;
  }
  .os-steps::after {
    width: 3px;
    height: calc((100% - 32px) * (var(--progress, 0%) / 100%));
  }
  .os-step {
    text-align: left;
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 8px 12px;
    padding: 6px 0;
  }
  .os-step__dot { margin-bottom: 0; }
  .os-step__label { margin-top: 4px; }
  .os-step__desc { grid-column: 2; }
  .os-item { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; }
  .os-item__media { width: 56px; height: 56px; }
  .os-help { padding: 16px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .os-conf,
  .os-badge__core,
  .os-badge__ring,
  .os-badge__tick path,
  .os-step__pulse::after,
  .os-steps::after { animation: none !important; transition: none !important; }
  .os-badge__tick path { stroke-dashoffset: 0 !important; }
}

/* =============================================================
 * Checkout page
 * ============================================================= */

.checkout-page {
  padding: 24px 0 52px;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
}

.checkout-header {
  margin-bottom: 14px;
}

.checkout-header__title {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.checkout-header__sub {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

/* Step indicator */
.checkout-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 8px 0 22px;
  font-size: 13px;
  color: #64748b;
  overflow-x: auto;
}

.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding-right: 8px;
}

.checkout-step:not(:last-child)::after {
  content: "";
  width: 26px;
  height: 1px;
  background: #cbd5e1;
  display: inline-block;
  margin-left: 4px;
}

.checkout-step__bubble {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.checkout-step.is-done .checkout-step__bubble {
  background: #0d9488;
  color: #fff;
}

.checkout-step.is-active .checkout-step__bubble {
  background: #0f172a;
  color: #fff;
}

.checkout-step.is-active .checkout-step__label {
  color: #0f172a;
  font-weight: 700;
}

/* Grid: form + summary */
.checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  align-items: start;
}

.checkout-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

/* Card */
.checkout-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.checkout-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 0;
}

.checkout-card__num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #0d9488;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid #a7f3d0;
}

.checkout-card__title {
  margin: 0 0 2px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.checkout-card__sub {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.checkout-card__body {
  padding: 16px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
}

.checkout-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  margin: 0 0 6px;
}

.checkout-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checkout-input-wrap:hover {
  border-color: #94a3b8;
}

.checkout-input-wrap:focus-within {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.2);
}

.checkout-input-icon {
  position: absolute;
  left: 12px;
  top: 14px;
  color: #94a3b8;
  pointer-events: none;
  display: inline-flex;
}

.checkout-input-wrap:focus-within .checkout-input-icon {
  color: #0d9488;
}

.checkout-input-wrap input,
.checkout-input-wrap textarea {
  width: 100%;
  padding: 11px 12px 11px 38px;
  border: 0;
  background: transparent;
  font-size: 14.5px;
  color: #0f172a;
  border-radius: 10px;
  font-family: inherit;
  resize: vertical;
}

.checkout-input-wrap textarea {
  min-height: 92px;
  padding-top: 11px;
  line-height: 1.5;
}

.checkout-input-wrap input::placeholder,
.checkout-input-wrap textarea::placeholder {
  color: #94a3b8;
}

.checkout-input-wrap input:focus,
.checkout-input-wrap textarea:focus {
  outline: none;
}

/* Payment options */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-option {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.payment-option:hover {
  border-color: #cbd5e1;
  background: #fafbfc;
}

.payment-option.is-selected {
  border-color: #0d9488;
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

.payment-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-option__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
  transition: border-color 0.15s ease;
}

.payment-option.is-selected .payment-option__radio {
  border-color: #0d9488;
}

.payment-option.is-selected .payment-option__radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: #0d9488;
}

.payment-option__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.payment-option__title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.payment-option__sub {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

.payment-option__badges {
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.payment-badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.payment-badge--accent {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

/* Order summary (checkout-specific tweaks) */
.checkout-summary {
  position: sticky;
  top: 80px;
}

.checkout-summary__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 20px 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.checkout-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-summary__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.checkout-summary__count {
  font-size: 12.5px;
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 999px;
}

.checkout-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-bottom: 1px dashed #e2e8f0;
  max-height: 320px;
  overflow-y: auto;
}

.checkout-item {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.checkout-item__media {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(180deg, #f0fdfa, #e6fffb);
  display: block;
  flex: 0 0 auto;
}

.checkout-item__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  display: block;
}

.checkout-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px #fff;
}

.checkout-item__name {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.35;
  display: block;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.checkout-item__name:hover {
  color: #0d9488;
}

.checkout-item__meta {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.checkout-item__return {
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  margin-top: 4px;
}

.checkout-item__return--no {
  color: #b45309;
  font-weight: 600;
}

.checkout-delivery-eta {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: #134e4a;
}

.checkout-delivery-eta__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f766e;
  margin-bottom: 6px;
}

.checkout-delivery-eta__text {
  margin: 0;
  white-space: pre-wrap;
}

.checkout-item__price {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.checkout-summary__rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
}

.checkout-summary__rows > div {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #475569;
}

.checkout-summary__rows dt {
  margin: 0;
}

.checkout-summary__rows dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
}

.checkout-summary__savings {
  color: #0d9488 !important;
  font-weight: 700 !important;
}

.checkout-summary__nudge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}

.checkout-summary__nudge strong { color: #0d9488; }

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #e2e8f0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.checkout-summary__total span:last-child {
  color: #0d9488;
}

.checkout-summary__tax {
  margin: 4px 0 16px;
  font-size: 12px;
  color: #94a3b8;
}

.checkout-summary__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border: 0;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  box-shadow: 0 8px 20px rgba(20, 184, 166, 0.35);
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease, opacity 0.15s ease;
  font-family: inherit;
}

.checkout-summary__cta:hover {
  filter: brightness(1.04);
  box-shadow: 0 10px 26px rgba(20, 184, 166, 0.42);
}

.checkout-summary__cta:active { transform: translateY(1px); }

.checkout-summary__cta[disabled],
.checkout-summary__cta.is-loading {
  cursor: progress;
  opacity: 0.85;
}

.checkout-summary__cta-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-summary__cta.is-loading .auth-v2__spinner {
  display: inline-block;
}

.checkout-summary__trust {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #64748b;
}

.checkout-summary__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Checkout responsive */
@media (max-width: 980px) {
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .checkout-summary {
    position: static;
    order: -1;
  }
  .checkout-summary__card {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .checkout-page {
    padding: 16px 0 32px;
  }
  .checkout-grid-2 {
    grid-template-columns: 1fr;
  }
  .checkout-card__head {
    padding: 16px 18px 0;
  }
  .checkout-card__body {
    padding: 14px 18px 18px;
  }
  .payment-option {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px;
  }
  .payment-option__badges {
    grid-column: 2;
    justify-content: flex-start;
    margin-top: 4px;
  }
  .checkout-step__label {
    font-size: 12px;
  }
  .checkout-step:not(:last-child)::after {
    width: 14px;
  }
  .checkout-summary__card {
    padding: 16px;
  }
  .checkout-items {
    max-height: 260px;
  }
}

/* Razorpay pay step — aligned with checkout */
.kts-pay--shell {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 42%, #fff 100%);
  min-height: 56vh;
}

.kts-pay--wrap {
  max-width: 520px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.kts-pay--wrap .cart-breadcrumb {
  margin-bottom: 4px;
}

.kts-pay--row--amount {
  align-items: center;
  padding-top: 0.5rem;
  padding-bottom: 0.4rem;
}

.kts-pay--row--amount .kts-pay--row__label {
  padding-top: 0;
  align-self: center;
}

.kts-pay--hero {
  text-align: center;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.kts-pay--lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  color: #fff;
  box-shadow: 0 8px 28px rgba(13, 148, 136, 0.35);
  margin: 0 auto 1rem;
}

.kts-pay--title {
  margin: 0 0 8px;
  font-size: clamp(24px, 4.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
  line-height: 1.15;
}

.kts-pay--lede {
  margin: 0;
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

.kts-pay--card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.kts-pay--card__inner {
  padding: 1.5rem 1.5rem 1.25rem;
}

.kts-pay--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
}

.kts-pay--row + .kts-pay--row {
  border-top: 1px solid #f1f5f9;
}

.kts-pay--pending-note {
  margin: 0 0 0.9rem;
  padding: 0.85rem 0.9rem;
  background: #f0fdfa;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: #0f172a;
}

.kts-pay--pending-note strong {
  color: #0f766e;
  font-weight: 700;
}

.kts-pay--row--tight {
  padding: 0.45rem 0;
}

.kts-pay--row--tight + .kts-pay--row--tight {
  border-top: 0;
  padding-top: 0.1rem;
}

.kts-pay--row--dueline {
  margin-top: 0.2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.75rem;
}

.kts-pay--row__label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 4px;
}

.kts-pay--row__val {
  margin: 0;
  text-align: right;
  font-weight: 700;
  color: #0f172a;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
  max-width: 62%;
}

.kts-pay--amount {
  font-size: clamp(26px, 5vw, 32px) !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0d9488 !important;
  line-height: 1.1;
}

.kts-pay--methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0.5rem;
}

.kts-pay--methods__label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.kts-pay--foot {
  padding: 1rem 1.5rem 1.35rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.kts-pay--foot .checkout-summary__cta {
  width: 100%;
  justify-content: center;
}

.kts-pay--subnote {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.kts-pay--subnote a {
  color: #64748b;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.kts-pay--subnote a:hover {
  color: #0d9488;
}

.kts-pay--back {
  display: block;
  text-align: center;
  margin-top: 1.25rem;
  font-size: 13.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.kts-pay--back:hover {
  color: #0d9488;
}

.kts-pay--shell .alert {
  border-radius: 10px;
  font-size: 14px;
}

.kts-pay--trust {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 520px) {
  .kts-pay--card__inner {
    padding: 1.2rem 1.1rem 1rem;
  }
  .kts-pay--foot {
    padding: 0.9rem 1.1rem 1.15rem;
  }
  .cart-page {
    padding: 16px 0 32px;
  }
  .cart-header {
    margin-bottom: 16px;
  }
  .cart-header__title {
    font-size: 22px;
  }
  .cart-header__continue {
    padding: 8px 12px;
    font-size: 12px;
  }
  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
  }
  .cart-item__media {
    width: 84px;
    height: 84px;
  }
  .cart-item__name {
    font-size: 14px;
  }
  .cart-item__bottom {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .cart-item__remove-form {
    margin-top: 8px;
  }
  .cart-item__remove-btn {
    width: 100%;
    justify-content: center;
  }
  .qty__btn {
    width: 38px;
    height: 38px;
  }
  .qty__input {
    width: 46px;
    height: 38px;
    font-size: 15px;
  }
  .cart-summary__card {
    padding: 18px;
    border-radius: 14px;
  }
  .cart-summary__total {
    font-size: 17px;
  }
  .kts-toast-host {
    top: auto;
    bottom: 16px;
    left: 16px;
    right: 16px;
  }
  .kts-toast {
    min-width: 0;
    max-width: none;
  }
}

/* --- Contact page: 3D hero --- */
.contact-3d-page {
  background: var(--bg);
}

.contact-3d-hero {
  position: relative;
  min-height: min(72vh, 640px);
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #0c4a6e 0%, #042f3e 45%, #020617 100%);
}

.contact-3d-hero--static {
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(45, 212, 191, 0.25), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(125, 211, 252, 0.2), transparent 50%),
    radial-gradient(120% 90% at 50% 100%, #0c4a6e 0%, #042f3e 45%, #020617 100%);
}

.contact-3d-hero #contact-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.contact-3d-hero__inner {
  position: relative;
  z-index: 2;
  padding: 28px 0 40px;
  min-height: min(72vh, 640px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  color: #ecfeff;
  text-shadow: 0 2px 24px rgba(2, 6, 23, 0.65);
}

.contact-3d-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 118, 110, 0.45);
  border: 1px solid rgba(153, 246, 228, 0.35);
  color: #ccfbf1;
}

.contact-3d-hero__badge svg {
  flex-shrink: 0;
  color: #fbbf24;
}

.contact-3d-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.contact-3d-hero__sub {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(236, 254, 255, 0.88);
  max-width: 42ch;
  line-height: 1.5;
}

.contact-3d-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.contact-3d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-3d-btn:active {
  transform: scale(0.98);
}

.contact-3d-btn--primary {
  background: linear-gradient(135deg, #2dd4bf, #14b8a6);
  color: #042f2e;
  box-shadow: 0 8px 28px rgba(20, 184, 166, 0.45);
}

.contact-3d-btn--primary:hover {
  box-shadow: 0 10px 32px rgba(20, 184, 166, 0.55);
}

.contact-3d-btn--ghost {
  background: rgba(15, 23, 42, 0.35);
  color: #ecfeff;
  border: 1px solid rgba(153, 246, 228, 0.35);
}

.contact-3d-btn--ghost:hover {
  background: rgba(15, 23, 42, 0.5);
}

.contact-3d-details {
  padding-top: 8px;
  padding-bottom: 32px;
}

.contact-3d-details .contact-3d-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.contact-3d-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.contact-3d-card h4 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--brand-dark);
  letter-spacing: 0.02em;
}

.contact-3d-card p {
  margin: 0;
  line-height: 1.55;
  color: var(--text);
}

.contact-3d-card .muted {
  margin-top: 8px;
}

.contact-3d-card a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-3d-hours {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-3d-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 197, 175, 0.15);
  color: #0f766e;
}

.contact-3d-pill--open {
  background: rgba(22, 163, 74, 0.15);
  color: #15803d;
}

@media (max-width: 600px) {
  .contact-3d-hero__inner {
    padding-top: 20px;
    min-height: 64vh;
  }
  .contact-3d-btn {
    width: 100%;
  }
}

/* =============================================================
 * Product detail page (product.php)
 * ============================================================= */

.page-product {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text);
}

.page-product .product-page {
  padding: clamp(20px, 3.5vw, 36px) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(1000px 400px at 20% 0, rgba(79, 211, 196, 0.09), transparent 55%),
    linear-gradient(180deg, #f0f4f3 0%, #f7faf9 32%, #ffffff 68%);
  color: #0f172a;
}

.page-product .product-page__container {
  max-width: 1180px;
}

.page-product .product-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 clamp(20px, 3vw, 28px);
  font-size: 12.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.page-product .product-page__crumb {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s ease;
}

.page-product .product-page__crumb:hover {
  color: var(--header-teal);
}

.page-product .product-page__crumb--current {
  color: #1e293b;
  font-weight: 600;
  max-width: 100%;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
}

.page-product .product-page__crumb-sep {
  color: #cbd5e1;
  user-select: none;
  font-size: 11px;
  line-height: 1;
  margin-top: 1px;
  opacity: 0.9;
}

.page-product .product-page__alert {
  margin-bottom: 20px;
  border-radius: 12px;
}

.page-product .product-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4.5vw, 48px);
  align-items: start;
}

.page-product .product-page__gallery {
  position: sticky;
  top: 100px;
}

.page-product .product-page__media {
  position: relative;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--header-border, #d9e6e1);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04),
    0 20px 50px -12px rgba(15, 23, 42, 0.1);
  padding: clamp(20px, 3.5vw, 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  aspect-ratio: 1;
  max-height: min(92vw, 640px);
  isolation: isolate;
}

.page-product .product-page__media::before {
  content: "";
  position: absolute;
  inset: clamp(12px, 2vw, 20px);
  border-radius: 12px;
  background: linear-gradient(165deg, #f4f7f6 0%, #ecefef 100%);
  z-index: 0;
  pointer-events: none;
}

.page-product .product-page__ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ea580c, #c2410c);
  color: #fff;
  box-shadow: 0 2px 12px rgba(194, 65, 12, 0.35);
}

.page-product .product-page__img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(100%, 520px);
  object-fit: contain;
  object-position: center;
  border-radius: 8px;
  display: block;
}

.page-product .product-page__panel {
  background: #fff;
  border: 1px solid var(--header-border, #d9e6e1);
  border-radius: 20px;
  padding: clamp(24px, 4.5vw, 40px);
  box-shadow:
    0 1px 0 rgba(0, 0, 0, 0.03),
    0 18px 48px -20px rgba(15, 23, 42, 0.12);
}

.page-product .product-page__panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
}

.page-product .product-page__category-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--header-teal, #0d9488);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.page-product .product-page__category-pill:hover {
  background: rgba(20, 184, 166, 0.16);
  border-color: rgba(13, 148, 136, 0.38);
}

.page-product .product-page__pet-tag {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

.page-product .product-page__title {
  margin: 0 0 20px;
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #0f172a;
  max-width: 28ch;
}

.page-product .product-page__price-block {
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid #e8edf0;
}

.page-product .product-page__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
}

.page-product .product-page__price {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 2.35rem);
  font-weight: 800;
  color: var(--header-teal, #0d9488);
  letter-spacing: -0.03em;
}

.page-product .product-page__price-was {
  font-size: 1.05rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.page-product .product-page__save-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.page-product .product-page__price-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
}

.page-product .product-page__facts {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.page-product .product-page__fact {
  background: #f8fafc;
  border: 1px solid #e8edf0;
  border-radius: 12px;
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.page-product .product-page__fact:hover {
  border-color: #d0dde8;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.page-product .product-page__fact-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.page-product .product-page__fact-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #0f172a;
}

.page-product .product-page__stock--ok {
  color: #047857;
}

.page-product .product-page__stock--low {
  color: #b45309;
}

.page-product .product-page__stock--out {
  color: #b91c1c;
}

.page-product .product-page__fact-value--warn {
  color: #b45309;
}

.page-product .product-page__description {
  margin-bottom: 28px;
}

.page-product .product-page__section-title {
  margin: 0 0 10px;
  font-family: Outfit, sans-serif;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #64748b;
}

.page-product .product-page__prose {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}

.page-product .product-page__prose--box {
  padding: 16px 18px;
  border-radius: 12px;
  background: #f8fafb;
  border: 1px solid #e8edf0;
  border-left: 3px solid var(--header-teal-bright, #4fd3c4);
  font-size: 15px;
}

.page-product .product-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-bottom: 22px;
  align-items: stretch;
}

.page-product .product-page__form {
  margin: 0;
  flex: 1 1 200px;
  min-width: min(100%, 200px);
}

.page-product .product-page__form--inline {
  flex: 0 1 auto;
  min-width: min(100%, 200px);
}

.page-product .product-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.page-product .product-page__btn--primary {
  background: linear-gradient(180deg, var(--header-account-grad-0, #4fd3c4) 0%, var(--header-teal, #0d9488) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 116, 106, 0.28);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.page-product .product-page__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 116, 106, 0.35);
}

.page-product .product-page__btn--primary:active {
  transform: translateY(0);
}

.page-product .product-page__btn--ghost {
  background: #fff;
  color: #1e293b;
  border: 2px solid #e0e7eb;
  box-shadow: none;
}

.page-product .product-page__btn--ghost:hover {
  border-color: rgba(13, 148, 136, 0.45);
  color: var(--header-teal, #0d9488);
  background: rgba(20, 184, 166, 0.04);
  transform: translateY(-1px);
}

.page-product .product-page__btn:focus-visible {
  outline: 2px solid var(--header-teal-bright, #4fd3c4);
  outline-offset: 2px;
}

.page-product .product-page__unavailable {
  margin: 0;
  padding: 14px 16px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  color: #9a3412;
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  min-width: min(100%, 280px);
}

.page-product .product-page__unavailable a {
  color: var(--header-teal, #0d9488);
  font-weight: 700;
}

.page-product .product-page__trust {
  list-style: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: flex-start;
  justify-content: flex-start;
  background: linear-gradient(180deg, #f8fbfb 0%, #f4f7f6 100%);
  border: 1px solid #e8edf0;
  border-radius: 12px;
}

.page-product .product-page__trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.page-product .product-page__trust-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--header-teal, #0d9488);
  opacity: 0.95;
}

.page-product .product-page__trust-txt {
  line-height: 1.35;
}

.page-product .product-page__trust-hint {
  font-weight: 500;
  color: #94a3b8;
  font-size: 11.5px;
}

.page-product .product-page__fineprint {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: #94a3b8;
  text-align: left;
}

.page-product .product-page__fineprint a {
  color: var(--header-teal, #0d9488);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.35);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.page-product .product-page__fineprint a:hover {
  color: #0c7a6e;
  border-bottom-color: currentColor;
}

@media (max-width: 1024px) {
  .page-product .product-page__facts {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 980px) {
  .page-product .product-page__grid {
    grid-template-columns: 1fr;
  }

  .page-product .product-page__gallery {
    position: static;
  }
}

@media (max-width: 600px) {
  .page-product .product-page__media {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .page-product .product-page__img {
    max-height: 56vh;
  }
}

@media (max-width: 520px) {
  .page-product .product-page__facts {
    grid-template-columns: 1fr;
  }

  .page-product .product-page__actions {
    flex-direction: column;
  }

  .page-product .product-page__form,
  .page-product .product-page__form--inline {
    flex: 1 1 100%;
    min-width: 0;
  }

  .page-product .product-page__trust {
    flex-direction: column;
    gap: 10px;
  }
}

/* =============================================================
 * Category listing (category.php) — food, accessories, rails
 * ============================================================= */

.page-category {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: #0f172a;
  background: linear-gradient(180deg, #f0f4f3 0%, #f7faf9 18%, #ffffff 50%);
}

.page-category .category-page {
  min-height: 40vh;
}

.page-category .category-page__hero {
  padding: clamp(20px, 3.5vw, 32px) 0 clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--header-border, #d9e6e1);
  background:
    radial-gradient(900px 320px at 10% 0, rgba(79, 211, 196, 0.1), transparent 60%),
    #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.page-category .category-page__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 14px;
  font-size: 12.5px;
  line-height: 1.5;
}

.page-category .category-page__crumb {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.16s ease;
}

.page-category .category-page__crumb:hover {
  color: var(--header-teal, #0d9488);
}

.page-category .category-page__crumb--current {
  color: #1e293b;
  font-weight: 600;
  max-width: 100%;
  line-height: 1.4;
}

.page-category .category-page__crumb-sep {
  color: #cbd5e1;
  user-select: none;
  font-size: 11px;
  opacity: 0.9;
}

.page-category .category-page__title {
  margin: 0 0 10px;
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #0f172a;
  max-width: 22ch;
}

.page-category .category-page__sub {
  margin: 0;
  max-width: 52ch;
  font-size: 15px;
  line-height: 1.55;
  color: #64748b;
  font-weight: 500;
}

.page-category .category-page__empty {
  margin: 0;
  padding: 32px 24px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  color: #475569;
  background: #f8fafb;
  border: 1px solid #e8edf0;
  border-radius: 16px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.page-category .category-page__empty a {
  color: var(--header-teal, #0d9488);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(13, 148, 136, 0.35);
}

.page-category .category-page__empty a:hover {
  color: #0c7a6e;
  border-bottom-color: currentColor;
}

.page-category .section.category-page__body {
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px);
}

.page-category .product-row {
  margin: 0 0 clamp(32px, 4vw, 48px);
}

.page-category .product-row:last-child {
  margin-bottom: 0;
}

.page-category .product-row__headline h4,
.page-category .product-row h4 {
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.page-category .product-row__title-accent {
  color: var(--header-teal, #0d9488);
}

.page-category .product-row__thumb-wrap {
  border: 1px solid var(--header-border, #d9e6e1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.07);
  background: #fafcfc;
}

.page-category .products-rail {
  gap: 10px;
  margin-top: 6px;
}

.page-category .products-rail__btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border: 1px solid var(--header-border, #d9e6e1);
  border-radius: 12px;
  background: #fff;
  color: #334155;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.page-category .products-rail__btn:hover {
  background: #f0fdf9;
  border-color: rgba(13, 148, 136, 0.35);
  color: var(--header-teal, #0d9488);
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.12);
}

.page-category .products-rail__btn:focus-visible {
  outline: 2px solid var(--header-teal-bright, #4fd3c4);
  outline-offset: 2px;
}

.page-category .products-scroll {
  border-radius: 4px;
}

.page-category .products.products--rail {
  padding: 6px 2px 18px;
  gap: 16px;
}

.page-category .product--rail-card {
  border: 1px solid var(--header-border, #d9e6e1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  overflow: visible;
}

.page-category .product--rail-card:hover {
  box-shadow: 0 8px 28px -8px rgba(15, 23, 42, 0.12);
  border-color: rgba(13, 148, 136, 0.22);
  transform: translateY(-2px);
}

.page-category .product--rail-card .product__media {
  background: linear-gradient(180deg, #eef8f5 0%, #e4f2ee 100%);
  border-bottom: 1px solid rgba(13, 148, 136, 0.1);
  border-radius: 14px 14px 0 0;
}

.page-category .product--rail-card .product__add {
  background: linear-gradient(180deg, var(--header-account-grad-0, #4fd3c4) 0%, var(--header-teal, #0d9488) 100%);
  color: #fff;
  box-shadow: 0 2px 10px rgba(13, 100, 90, 0.3);
  border-radius: 10px;
}

.page-category .product--rail-card .product__add:hover {
  filter: brightness(1.05);
  box-shadow: 0 4px 14px rgba(13, 100, 90, 0.35);
}

.page-category .product--rail-card .price {
  color: var(--header-teal, #0d9488);
  font-weight: 800;
  font-size: 15px;
}

.page-category .product--rail-card .body p {
  margin: 0 0 4px;
  line-height: 1.4;
  font-size: 14.5px;
  font-weight: 600;
}

.page-category .product--rail-card .body p a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.page-category .product--rail-card .body p a:hover {
  color: var(--header-teal, #0d9488);
}

.page-category .product--rail-card .meta {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}

/* Grooming: card grid */
.page-category--grooming .category-page__body .cards {
  gap: 20px;
}

.page-category--grooming .card {
  border: 1px solid var(--header-border, #d9e6e1);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.page-category--grooming .card:hover {
  box-shadow: 0 8px 28px -6px rgba(15, 23, 42, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
  transform: translateY(-2px);
}

.page-category--grooming .card h4 {
  font-family: Outfit, "DM Sans", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 10px 0 8px;
}

.page-category--grooming .view-btn {
  background: linear-gradient(180deg, var(--header-account-grad-0, #4fd3c4) 0%, var(--header-teal, #0d9488) 100%);
  color: #fff;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(13, 100, 90, 0.25);
  border: 0;
  transition: filter 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.page-category--grooming .view-btn:hover {
  filter: brightness(1.04);
  box-shadow: 0 4px 16px rgba(13, 100, 90, 0.32);
  transform: translateY(-1px);
}

.page-category--grooming .card .price {
  color: var(--header-teal, #0d9488);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .page-category .category-page__title {
    max-width: none;
  }
}
