/* 天元宠物 — luxury pet editorial
 * Tokens: Figma design-system-foundations (8:4)
 * Components: Figma component-library (37:97)
 */

[data-theme='pet'] {
  /* —— Color (01 Binary Palette) —— */
  --ty-ink: #2d2d2d;
  --ty-muted: #6b6560;
  --ty-faint: #9a948c;
  --ty-line: #e8e2da;
  --ty-wash: #f5f1ee;
  --ty-surface: #ffffff;
  --ty-sand: #b09e80;
  --ty-sand-deep: #96866a;

  /* —— Typography —— */
  --ty-display: 'Cormorant Garamond', 'Noto Serif JP', 'Noto Serif SC', Georgia, serif;
  --ty-sans: 'DM Sans', 'Noto Sans JP', 'Noto Sans SC', sans-serif;
  --ty-fs-display: 3rem;       /* 48 */
  --ty-fs-h1: 2.25rem;         /* 36 */
  --ty-fs-h2: 1.5rem;          /* 24 */
  --ty-fs-title: 1.125rem;     /* 18 product title */
  --ty-fs-body: 1rem;          /* 16 */
  --ty-fs-caption: 0.8125rem;  /* 13 */
  --ty-fs-button: 0.875rem;    /* 14 */
  --ty-fs-overline: 0.6875rem; /* 11 */
  --ty-fs-label: 0.75rem;      /* 12 */

  /* —— Spacing scale (Figma spacing/4 … spacing/120) —— */
  --ty-space-4: 0.25rem;
  --ty-space-8: 0.5rem;
  --ty-space-12: 0.75rem;
  --ty-space-16: 1rem;
  --ty-space-24: 1.5rem;
  --ty-space-32: 2rem;
  --ty-space-48: 3rem;
  --ty-space-64: 4rem;
  --ty-space-80: 5rem;
  --ty-space-120: 7.5rem;

  /* —— Radius —— */
  --ty-radius-none: 0;
  --ty-radius-xs: 2px;
  --ty-radius-full: 999px;

  /* —— Layout chrome —— */
  --ty-promo-h: 36px;
  --ty-header-h: 88px;
}

body.pet-body,
[data-theme='pet'] body,
body[data-theme='pet'] {
  background: var(--ty-surface);
  color: var(--ty-ink);
  font-family: var(--ty-sans);
  font-synthesis: none;
}

/* —— Header (transparent on home) —— */
.pet-header {
  background: var(--ty-surface);
  border-bottom: 1px solid var(--ty-line);
}

.pet-home .pet-header {
  position: relative;
  inset-inline: auto;
  top: auto;
  background: var(--ty-surface);
  border-bottom: 1px solid var(--ty-line);
}

.pet-home .pet-header__promo {
  background: #2d2d2d;
  color: #fff;
}

.pet-home .pet-header__bar {
  color: var(--ty-ink);
}

.pet-home .pet-header__promo {
  background: #2d2d2d;
  color: #fff;
}

.pet-header__promo {
  background: #2d2d2d;
  color: #fff;
  letter-spacing: 0.06em;
}

.pet-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  gap: 1rem;
}

.pet-header__side {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  min-width: 0;
}

.pet-header__side--left {
  justify-content: flex-start;
  gap: 2rem;
}

.pet-header__side--right {
  justify-content: flex-end;
  gap: 0.15rem;
}

.pet-header__menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: none;
  color: var(--ty-ink);
  cursor: pointer;
}

.pet-header__nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.pet-header__story {
  margin-right: 0.35rem;
}

.pet-header__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  text-decoration: none;
  color: inherit;
  z-index: 2;
  max-width: min(52vw, 16rem);
  pointer-events: auto;
}

.pet-header__logo-en {
  display: block;
  font-family: var(--ty-display);
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.1;
  white-space: nowrap;
}

.pet-header__logo-zh {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.58rem;
  letter-spacing: 0.32em;
  color: var(--ty-muted);
  white-space: nowrap;
}

.pet-header__link {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--ty-ink);
  text-decoration: none;
  transition: color 160ms ease;
  white-space: nowrap;
}

.pet-header__link:hover {
  color: var(--ty-sand-deep);
}

.pet-header__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  color: var(--ty-ink);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 160ms ease;
}

.pet-header__icon:hover {
  color: var(--ty-sand-deep);
}

.pet-header__badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  font-size: 0.625rem;
  line-height: 1rem;
  text-align: center;
  background: var(--ty-sand);
  color: #fff;
  border-radius: 999px;
}

.pet-header__overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.25);
}

.pet-header__drawer {
  position: fixed;
  inset-block: 0;
  left: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(100vw, 20rem);
  overflow-y: auto;
  background: var(--ty-surface);
  border-right: 1px solid var(--ty-line);
}

.pet-header__drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.5rem;
  padding: 0 1rem;
  border-bottom: 1px solid var(--ty-line);
}

.pet-header__drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0 1rem 1rem;
  font-size: 0.875rem;
}

.pet-header__drawer-label {
  margin: 1rem 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ty-faint);
}

.pet-header__drawer-label:first-child {
  margin-top: 0.5rem;
}

.pet-header__drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--ty-line);
  color: var(--ty-ink);
  text-decoration: none;
}

.pet-header__drawer-cart {
  font-weight: 600;
}

.pet-header__drawer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  background: var(--ty-sand);
  color: #fff;
  border-radius: 999px;
}

.pet-header__drawer-foot {
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--ty-line);
}

.pet-header__drawer-lang {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pet-header__drawer-lang a {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ty-muted);
  text-decoration: none;
  border: 1px solid var(--ty-line);
}

.pet-header__drawer-lang a.is-active {
  color: var(--ty-ink);
  border-color: var(--ty-ink);
  background: var(--ty-wash);
}

@media (min-width: 1024px) {
  .pet-header__menu {
    display: none;
  }

  .pet-header__nav {
    display: flex;
  }

  .pet-header__overlay,
  .pet-header__drawer {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .pet-header__story {
    display: none;
  }

  .pet-header__side--left {
    gap: 0;
  }

  .pet-header__bar {
    min-height: 4.25rem;
  }

  .pet-header__logo-en {
    font-size: 0.8125rem;
  }

  .pet-header__logo-zh {
    font-size: 0.625rem;
  }
}

/* —— Hero (Apple-style pin + scroll scrub) —— */
.ty-hero-scroll {
  position: relative;
  background: var(--ty-wash);
}

.ty-hero-scroll__track {
  position: relative;
  height: 185vh;
}

.ty-hero {
  position: relative;
  min-height: 45rem;
  height: min(72vh, 45rem);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ty-wash);
  --hero-p: 0;
}

.ty-hero--pinned {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 36rem;
  max-height: none;
}

.ty-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(calc(1 + (var(--hero-p) * 0.18)))
    translate3d(0, calc(var(--hero-p) * -3%), 0);
  transform-origin: center center;
  will-change: transform;
}

.ty-hero__fallback {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #d4c4b0 0%, #f5f1ee 50%, #e8dfd4 100%);
  transform: scale(calc(1 + (var(--hero-p) * 0.12)));
}

.ty-hero__shade {
  position: absolute;
  inset: 0;
  background: rgba(45, 45, 45, calc(0.12 + (var(--hero-p) * 0.42)));
  pointer-events: none;
}

.ty-hero__copy {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: clamp(4rem, 10vw, 7.5rem) 0;
  opacity: calc(1 - (var(--hero-p) * 1.35));
  transform: translate3d(0, calc(var(--hero-p) * -4.5rem), 0);
  filter: blur(calc(var(--hero-p) * 2px));
  will-change: transform, opacity, filter;
  pointer-events: auto;
}

.ty-hero__copy .ty-hero__title-line {
  transform: translate3d(0, calc(var(--hero-p) * -1.25rem), 0);
}

.ty-hero__copy .ty-hero__title-line--accent {
  transform: translate3d(0, calc(var(--hero-p) * -2rem), 0);
  opacity: calc(1 - (var(--hero-p) * 1.55));
}

.ty-hero__copy .ty-hero__sub,
.ty-hero__copy .ty-hero__cta {
  opacity: calc(1 - (var(--hero-p) * 1.7));
  transform: translate3d(0, calc(var(--hero-p) * -1.5rem), 0);
}

.ty-hero__inner {
  max-width: 32.5rem;
  margin-left: 0;
  text-align: left;
}

.ty-hero__title {
  margin: 0;
  font-family: 'Noto Serif JP', 'Noto Serif SC', var(--ty-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #fff;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.ty-hero__title-line {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  will-change: transform, opacity;
}

.ty-hero__title-line--accent {
  margin-top: 0;
}

.ty-hero__sub {
  margin: 1rem 0 0;
  max-width: 36rem;
  font-family: var(--ty-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #f5f1ee;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  will-change: transform, opacity;
}

.ty-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.875rem 2.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--ty-ink);
  border: 1px solid var(--ty-ink);
  border-radius: 2px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
  will-change: transform, opacity;
}

.ty-hero__cta:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.ty-hero__scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  transform: translateX(-50%);
  opacity: calc(1 - (var(--hero-p) * 2.2));
  pointer-events: none;
}

.ty-hero__scroll-hint-line {
  display: block;
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.85));
  animation: ty-hero-scroll-pulse 1.8s ease-in-out infinite;
}

.ty-hero__scroll-hint-label {
  font-family: var(--ty-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

@keyframes ty-hero-scroll-pulse {
  0%,
  100% {
    transform: scaleY(0.72);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .ty-hero-scroll__track {
    height: 155vh;
  }

  .ty-hero--pinned {
    min-height: 28rem;
    height: 100svh;
  }

  .ty-hero {
    min-height: 28rem;
    height: auto;
  }

  .ty-hero__shade {
    background: linear-gradient(
      180deg,
      rgba(45, 45, 45, calc(0.42 + (var(--hero-p) * 0.2))) 0%,
      rgba(45, 45, 45, calc(0.12 + (var(--hero-p) * 0.28))) 45%,
      rgba(45, 45, 45, calc(0.5 + (var(--hero-p) * 0.25))) 100%
    );
  }

  .ty-hero__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  .ty-hero__title-line {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .ty-hero__inner {
    max-width: 100%;
  }

  .ty-hero__copy {
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
    filter: none;
  }

  .ty-hero__sub {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .ty-hero__cta {
    width: 100%;
    max-width: 18rem;
    margin-top: 1.5rem;
  }

  .ty-hero__img {
    object-position: 70% center;
  }

  .ty-hero__scroll-hint {
    bottom: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ty-hero-scroll__track {
    height: auto;
  }

  .ty-hero--pinned {
    position: relative;
    height: min(72vh, 45rem);
    min-height: 36rem;
  }

  .ty-hero__img,
  .ty-hero__fallback,
  .ty-hero__copy,
  .ty-hero__copy .ty-hero__title-line,
  .ty-hero__copy .ty-hero__title-line--accent,
  .ty-hero__copy .ty-hero__sub,
  .ty-hero__copy .ty-hero__cta,
  .ty-hero__scroll-hint {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    animation: none !important;
  }

  .ty-hero__shade {
    background: rgba(45, 45, 45, 0.12);
  }

  .ty-hero__scroll-hint {
    display: none;
  }
}

@media (max-width: 640px) {
  .ty-reviews {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.875rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ty-reviews::-webkit-scrollbar {
    display: none;
  }

  .ty-review {
    flex: 0 0 min(78vw, 17rem);
  }

  .ty-craft {
    display: flex;
    flex-wrap: nowrap;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ty-craft::-webkit-scrollbar {
    display: none;
  }

  .ty-craft__item {
    flex: 0 0 min(72vw, 14rem);
  }
}

.ty-hero__dots {
  display: none;
}

/* —— Sections —— */
.ty-section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
}

.ty-section--categories,
.ty-section--reviews,
.ty-section--craft {
  background: var(--ty-surface);
}

.ty-section__head {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ty-section__head--left {
  text-align: left;
}

.ty-section__head--craft {
  max-width: none;
  margin-inline: auto;
}

.ty-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ty-sand-deep);
}

.ty-section__eyebrow-rule {
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--ty-sand);
}

.ty-section__rule {
  display: none;
}

.ty-section__title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ty-ink);
}

.ty-section__lede {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--ty-muted);
}

.ty-section__cta-wrap {
  margin-top: 2.5rem;
  text-align: center;
}

.ty-section__cta-wrap--left {
  text-align: left;
}

@media (max-width: 767px) {
  .pet-home .ty-section {
    padding: 3rem 0;
  }

  .pet-home .ty-section__head {
    margin-bottom: 2rem;
  }

  .pet-home .ty-section--categories .ty-section__head--left {
    margin-bottom: 1.5rem;
  }

  .pet-home .ty-products {
    gap: 1.25rem 1rem;
  }

  .pet-home .ty-reviews {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pet-home .ty-reviews::-webkit-scrollbar {
    display: none;
  }

  .pet-home .ty-review {
    flex: 0 0 min(78vw, 18rem);
  }

  .pet-home .ty-craft {
    gap: 1rem;
  }

  .pet-home .ty-section__cta-wrap {
    margin-top: 1.75rem;
  }
}

/* Buttons → public/themes/pet/components.css */

/* Categories — circular */
.ty-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem 1.5rem;
}

.ty-categories__item {
  flex: 0 0 7.5rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.ty-categories__thumb {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ty-wash);
}

.ty-categories__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.ty-categories__item:hover .ty-categories__thumb img {
  transform: scale(1.05);
}

.ty-categories__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.ty-categories__name {
  display: block;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--ty-ink);
}

.ty-categories__name-en {
  display: block;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ty-faint);
}

@media (max-width: 900px) {
  .ty-categories {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ty-categories::-webkit-scrollbar {
    display: none;
  }

  .ty-categories__item {
    flex: 0 0 auto;
  }
}

/* Products — 4 col luxury cards */
.ty-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .ty-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }
}

.ty-product__media {
  position: relative;
  display: block;
  aspect-ratio: 270 / 320;
  overflow: hidden;
  background: var(--ty-wash);
}

.ty-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.ty-product:hover .ty-product__media img {
  transform: scale(1.03);
}

.ty-product__wish {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ty-muted);
  cursor: pointer;
  transition: color 160ms ease;
}

.ty-product__wish:hover {
  color: var(--ty-sand-deep);
}

.ty-product__body {
  padding-top: 1rem;
  text-align: left;
}

.ty-product__name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
}

.ty-product__name a {
  color: inherit;
  text-decoration: none;
}

.ty-product__name a:hover {
  color: var(--ty-sand-deep);
}

.ty-product__name-en {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--ty-faint);
}

.ty-product__price {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--ty-ink);
}

/* Reviews */
.ty-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

@media (min-width: 768px) {
  .ty-reviews {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.ty-review {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid var(--ty-line);
  border-radius: var(--ty-radius-xs);
  background: var(--ty-wash);
}

.ty-review__media {
  display: block;
  height: 150px;
  overflow: hidden;
  border-radius: 1px;
  background: var(--ty-surface);
}

.ty-review__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ty-review__body {
  padding-top: 0;
}

.ty-review__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.ty-review__user {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ty-ink);
}

.ty-review__stars {
  display: flex;
  gap: 2px;
  margin: 0;
  flex-shrink: 0;
}

.ty-review__star {
  display: block;
  width: 10px;
  height: 10px;
}

.ty-review__star--dim {
  opacity: 0.28;
}

.ty-review__text {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--ty-muted);
}

/* Craft */
.ty-craft {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .ty-craft {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.ty-craft__media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ty-wash);
}

.ty-craft__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ty-craft__label {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--ty-ink);
}

.ty-craft__label-en {
  margin: 0.25rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--ty-faint);
}

/* Trust + footer */
.pet-trust {
  border-top: 1px solid var(--ty-line);
  background: var(--ty-wash);
  padding: 2.5rem 0;
}

.pet-trust__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .pet-trust__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pet-trust__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.pet-trust__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border: 1px solid var(--ty-line);
  background: var(--ty-surface);
}

.pet-trust__icon {
  font-size: 0.9rem;
  color: var(--ty-sand-deep);
}

.pet-trust__icon-img {
  display: block;
  width: 16px;
  height: 16px;
}

.pet-trust__copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.pet-trust__label {
  font-size: 0.875rem;
  color: var(--ty-ink);
}

.pet-trust__label-en {
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ty-faint);
}

.pet-footer__cta {
  background: var(--ty-wash);
  padding: 0;
}

.pet-footer__cta-inner {
  display: grid;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 900px) {
  .pet-footer__cta-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.pet-footer__visual {
  min-height: 18rem;
  background: var(--ty-line);
}

.pet-footer__dog {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  margin: 0;
  display: block;
}

.pet-footer__dog--placeholder {
  min-height: 18rem;
  background: linear-gradient(145deg, #d4c4b0, #f5f1ee);
}

.pet-footer__consult {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 5rem);
  background: var(--ty-wash);
}

.pet-footer__consult-title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 22ch;
}

.pet-footer__consult-sub {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ty-muted);
}

.pet-footer__consult-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2rem;
}

.pet-footer__phone-label {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ty-faint);
}

.pet-footer__phone {
  margin: 0.25rem 0 0;
  font-family: var(--ty-display);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
}

.pet-footer__qr-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pet-footer__qr {
  width: 4rem;
  height: 4rem;
  background:
    linear-gradient(90deg, var(--ty-line) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(var(--ty-line) 1px, transparent 1px) 0 0 / 8px 8px,
    var(--ty-surface);
  border: 1px solid var(--ty-line);
}

.pet-footer__qr-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.pet-footer__qr-label {
  font-size: 0.8rem;
  color: var(--ty-ink);
}

.pet-footer__qr-hint {
  font-size: 0.7rem;
  color: var(--ty-faint);
}

.pet-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 2.75rem;
  padding: 0 1.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.pet-btn--outline {
  margin-top: 0;
  color: var(--ty-ink);
  border: 1px solid var(--ty-sand);
  background: transparent;
}

.pet-btn--outline:hover {
  background: var(--ty-sand);
  color: #fff;
}

.pet-btn--solid {
  margin-top: 0.25rem;
  color: #fff;
  border: 1px solid var(--ty-ink);
  background: var(--ty-ink);
}

.pet-btn--solid:hover {
  background: transparent;
  color: var(--ty-ink);
}

.pet-footer__main {
  padding: 3.5rem 0 2rem;
  border-top: 1px solid var(--ty-line);
  background: var(--ty-surface);
}

.pet-footer__main-inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 900px) {
  .pet-footer__main-inner {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 4rem;
  }
}

.pet-footer__logo {
  margin: 0;
  font-family: var(--ty-display);
  font-size: 1.25rem;
  letter-spacing: 0.12em;
}

.pet-footer__company {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--ty-faint);
}

.pet-footer__desc {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ty-muted);
}

.pet-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.pet-footer__col-title {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--ty-ink);
}

.pet-footer__col-links a {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.8rem;
  color: var(--ty-muted);
  text-decoration: none;
}

.pet-footer__col-links a:hover {
  color: var(--ty-sand-deep);
}

.pet-footer__col {
  border: none;
}

.pet-footer__col > summary {
  list-style: none;
}

.pet-footer__col > summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 768px) {
  .pet-footer__col {
    display: block;
  }

  .pet-footer__col > summary {
    pointer-events: none;
    cursor: default;
  }

  .pet-footer__col-links {
    display: block;
  }
}

@media (max-width: 767px) {
  .pet-trust {
    padding: 1.5rem 0;
  }

  .pet-trust__grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .pet-trust__grid::-webkit-scrollbar {
    display: none;
  }

  .pet-trust__item {
    flex: 0 0 min(72vw, 16rem);
  }

  .pet-footer__visual {
    min-height: 14rem;
  }

  .pet-footer__dog {
    min-height: 14rem;
  }

  .pet-footer__consult {
    gap: 1.25rem;
    padding: 2rem var(--ty-space-16, 1.5rem);
  }

  .pet-footer__consult-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: 100%;
  }

  .pet-footer__consult .pet-btn {
    width: 100%;
    justify-content: center;
  }

  .pet-footer__main-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .pet-footer__cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pet-footer__col {
    border-top: 1px solid var(--ty-line);
  }

  .pet-footer__col > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 1rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
  }

  .pet-footer__col > summary::after {
    content: '+';
    font-size: 1.1rem;
    color: var(--ty-muted);
    line-height: 1;
  }

  .pet-footer__col[open] > summary::after {
    content: '−';
  }

  .pet-footer__col-links {
    padding-bottom: 1rem;
  }

  .pet-footer__col-links a:first-child {
    margin-top: 0;
  }

  .pet-footer__legal-inner {
    flex-direction: column;
    text-align: center;
  }
}

.pet-footer__legal {
  border-top: 1px solid var(--ty-line);
  padding: 1.25rem 0 2rem;
  background: var(--ty-surface);
}

.pet-footer__legal-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pet-footer__social {
  display: flex;
  gap: 0.75rem;
}

.pet-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ty-line);
  color: var(--ty-muted);
  text-decoration: none;
}

.pet-footer__legal p {
  margin: 0;
  font-size: 0.75rem;
  color: var(--ty-faint);
}

.pet-header__lang {
  display: none;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ty-sand-deep);
}

.pet-header__lang a {
  color: inherit;
  text-decoration: none;
  opacity: 0.55;
}

.pet-header__lang a.is-active,
.pet-header__lang a:hover {
  opacity: 1;
}

@media (min-width: 1024px) {
  .pet-header__lang {
    display: inline-flex;
  }
}

/* Reveal */
[data-pet-reveal='true'] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 650ms ease, transform 650ms ease;
}

[data-pet-reveal='true'].is-in {
  opacity: 1;
  transform: none;
}

.ty-hero [data-pet-reveal='true'] {
  transition-delay: 100ms;
}

.ty-hero [data-pet-reveal='true']:nth-child(2) { transition-delay: 180ms; }
.ty-hero [data-pet-reveal='true']:nth-child(3) { transition-delay: 260ms; }

@media (prefers-reduced-motion: reduce) {
  [data-pet-reveal='true'] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Override aurora chrome on inner pages */
[data-theme='pet'] .btn-primary {
  border-color: var(--ty-sand-deep);
  background: var(--ty-sand-deep);
}

[data-theme='pet'] .btn-primary:hover {
  background: var(--ty-sand);
  border-color: var(--ty-sand);
}

[data-theme='pet'] .text-brand-600 {
  color: var(--ty-sand-deep) !important;
}

[data-theme='pet'] footer:not(.pet-footer) {
  background: var(--ty-wash) !important;
}

/* —— Inner pages —— */
.ty-page-head {
  padding: 2.5rem 0 2rem;
  background: var(--ty-surface);
  border-bottom: 1px solid var(--ty-line);
}

.ty-page-head__title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
}

.ty-page-head__sub {
  margin: 0.65rem auto 0;
  max-width: 40ch;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ty-muted);
}

.ty-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ty-faint);
}

.ty-breadcrumb a {
  color: var(--ty-muted);
  text-decoration: none;
}

.ty-breadcrumb a:hover {
  color: var(--ty-sand-deep);
}

.ty-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ty-line);
}

.ty-toolbar__sort select {
  border: 1px solid var(--ty-line);
  background: var(--ty-surface);
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.8rem;
  color: var(--ty-ink);
}

/* —— Product listing (PLP) —— */
.ty-plp__head {
  padding: 2rem 0 1.5rem;
}

.ty-plp__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 1rem;
}

.ty-plp__title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ty-plp__count {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ty-faint);
}

.ty-plp__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.5rem;
  border-bottom: 1px solid var(--ty-line);
  margin-bottom: 2.5rem;
}

.ty-plp__filter-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--ty-line);
  background: var(--ty-surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ty-ink);
  cursor: pointer;
}

.ty-plp__filter-overlay {
  display: none;
}

.ty-plp__sidebar-head {
  display: none;
}

.ty-plp__sidebar-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.ty-plp__filter-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--ty-line);
  background: transparent;
  color: var(--ty-muted);
  cursor: pointer;
}

@media (max-width: 1023px) {
  .ty-plp__filter-toggle {
    display: inline-flex;
  }

  .ty-plp__toolbar-form {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: flex-end;
  }

  .ty-plp__filter-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(45, 45, 45, 0.35);
  }

  .ty-plp__sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 50;
    width: min(88vw, 20rem);
    max-height: 100vh;
    overflow-y: auto;
    padding: 1.25rem 1.25rem 2rem;
    background: var(--ty-surface);
    border-right: 1px solid var(--ty-line);
    transform: translateX(-105%);
    transition: transform 220ms ease;
  }

  .ty-plp__sidebar.is-open {
    transform: translateX(0);
  }

  .ty-plp__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ty-line);
  }

  .ty-plp__layout {
    display: block;
  }

  .ty-plp__title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .ty-plp__head {
    padding: 1.25rem 0 0.75rem;
  }

  .ty-plp__toolbar {
    position: sticky;
    top: var(--ty-header-h, 88px);
    z-index: 20;
    background: var(--ty-surface);
    margin-bottom: 1.5rem;
    padding-top: 0.75rem;
  }

  .ty-plp__price-form .ty-plp__apply {
    display: none;
  }

  .ty-plp__sidebar-foot {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin-top: 1.5rem;
    padding: 1rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, var(--ty-surface) 28%);
  }

  .ty-plp__sidebar-foot .ty-plp__apply {
    width: 100%;
    justify-content: center;
  }

  .ty-products--catalog {
    gap: 1.25rem 0.85rem;
  }
}

.ty-plp__select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--ty-muted);
}

.ty-plp__select-wrap select {
  border: none;
  border-bottom: 1px solid var(--ty-line);
  background: transparent;
  padding: 0.35rem 1.5rem 0.35rem 0;
  font-size: 0.85rem;
  color: var(--ty-ink);
}

.ty-plp__active {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ty-sand-deep);
}

.ty-plp__layout {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .ty-plp__layout {
    grid-template-columns: 15rem minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
  }
}

.ty-plp__filter-group + .ty-plp__filter-group {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ty-line);
}

.ty-plp__filter-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ty-sand-deep);
}

.ty-plp__cat-list,
.ty-plp__material-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ty-plp__cat-link {
  display: block;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  color: var(--ty-muted);
  text-decoration: none;
}

.ty-plp__cat-link.is-active,
.ty-plp__cat-link:hover {
  color: var(--ty-ink);
}

.ty-plp__price-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.ty-plp__price-form .ty-plp__apply {
  flex: 1 1 100%;
  justify-content: center;
}

.ty-plp__sidebar-foot {
  display: none;
}

@media (min-width: 1024px) {
  .ty-plp__price-form .ty-plp__apply {
    flex: 0 0 auto;
    margin-top: 0.35rem;
  }
}

.ty-plp__price-form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ty-line);
  background: var(--ty-surface);
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
}

.ty-plp__material {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0;
  font-size: 0.85rem;
  color: var(--ty-muted);
}

.ty-plp__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border: 1px solid var(--ty-line);
  font-size: 0.55rem;
  color: #fff;
}

.ty-plp__check.is-on {
  background: var(--ty-ink);
  border-color: var(--ty-ink);
}

.ty-products--catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.25rem;
}

@media (min-width: 768px) {
  .ty-products--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.ty-products--catalog .ty-product__media {
  aspect-ratio: 1;
}

.ty-filter-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--ty-wash);
}

.ty-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ty-filter-chip {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  font-size: 0.75rem;
  border: 1px solid var(--ty-line);
  color: var(--ty-muted);
  text-decoration: none;
}

.ty-filter-chip:hover,
.ty-filter-chip.is-active {
  border-color: var(--ty-sand);
  color: var(--ty-ink);
  background: var(--ty-wash);
}

.ty-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ty-line);
}

.ty-pagination__link {
  font-size: 0.8rem;
  color: var(--ty-ink);
  text-decoration: underline;
}

.ty-pagination__link.is-disabled {
  pointer-events: none;
  opacity: 0.35;
  text-decoration: none;
}

.ty-empty {
  border: 1px dashed var(--ty-line);
  background: var(--ty-wash);
  padding: 4rem 1.5rem;
  text-align: center;
  color: var(--ty-muted);
}

/* Buttons / inputs / text-link → components.css */

.ty-cart-page {
  max-width: 72rem;
  margin-inline: auto;
}

.ty-cart-page__head {
  padding: 2rem 0 2.5rem;
}

.ty-cart-page__title {
  margin: 1rem 0 0;
  font-family: var(--ty-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ty-cart-layout {
  display: grid;
  gap: 3rem;
  margin-top: 0.5rem;
}

@media (min-width: 1024px) {
  .ty-cart-layout {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 22rem);
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
  }
}

.ty-cart-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ty-cart-line {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ty-line);
}

@media (min-width: 900px) {
  .ty-cart-line {
    grid-template-columns: 6rem minmax(0, 1fr) auto;
    gap: 1.5rem 2rem;
    align-items: center;
    padding: 2rem 0;
  }
}

.ty-cart-line__thumb {
  display: block;
  width: 80px;
  height: 80px;
  overflow: hidden;
  background: var(--ty-wash);
}

@media (min-width: 900px) {
  .ty-cart-line__thumb {
    width: 96px;
    height: 96px;
  }
}

.ty-cart-line__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ty-cart-line__name {
  display: block;
  font-family: var(--ty-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ty-ink);
  text-decoration: none;
}

.ty-cart-line__name:hover {
  color: var(--ty-sand-deep);
}

.ty-cart-line__meta {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--ty-muted);
}

.ty-cart-line__info-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.ty-cart-line__line-total {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ty-ink);
}

.ty-cart-line__unit {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--ty-muted);
}

.ty-cart-line__price {
  margin: 0.4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ty-sand-deep);
}

.ty-cart-line__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
}

@media (min-width: 900px) {
  .ty-cart-line__actions {
    grid-column: auto;
    justify-content: flex-end;
  }
}

.ty-cart-line__qty-form {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ty-cart-line__qty-form .ty-stepper {
  width: 112px;
}

.ty-cart-line__qty-form .ty-stepper button {
  flex-basis: 32px;
}

.ty-cart-line__update,
.ty-cart-line__remove {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ty-cart-line__update {
  color: var(--ty-muted);
}

.ty-cart-line__remove {
  color: var(--ty-ink);
}

.ty-cart-line__remove-form {
  margin: 0;
}

.ty-cart-summary {
  padding: 2rem 2rem 2.25rem;
  background: var(--ty-wash);
  border: 1px solid var(--ty-line);
}

@media (min-width: 1024px) {
  .ty-cart-summary {
    position: sticky;
    top: 6.5rem;
  }
}

.ty-cart-summary__title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}

.ty-cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  font-size: 0.95rem;
}

.ty-cart-summary__row--muted {
  color: var(--ty-muted);
  font-size: 0.875rem;
}

.ty-cart-summary__row--total {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ty-line);
  font-size: 1.05rem;
  font-weight: 600;
}

.ty-cart-summary__hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--ty-muted);
}

.ty-cart-summary__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  margin-top: 1.75rem;
  border: 1px solid var(--ty-ink);
  background: var(--ty-ink);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.ty-cart-summary__cta:hover {
  background: transparent;
  color: var(--ty-ink);
}

.ty-cart-summary__continue {
  display: block;
  margin-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--ty-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ty-cart-summary--mobile-top {
  display: none;
}

@media (max-width: 1023px) {
  .ty-cart-summary:not(.ty-cart-summary--mobile-top) {
    display: none;
  }

  .ty-cart-summary--mobile-top {
    display: block;
    order: -1;
    padding: var(--ty-space-16, 1rem);
    margin-bottom: var(--ty-space-8, 0.5rem);
    border: 1px solid var(--ty-line);
    background: var(--ty-wash);
  }

  .ty-cart-summary--mobile-top .ty-cart-summary__row {
    margin: 0;
    padding: 0;
    border: none;
  }

  .ty-cart-summary--mobile-top .ty-cart-summary__hint {
    margin: var(--ty-space-8, 0.5rem) 0 0;
    font-size: 0.75rem;
  }

  .ty-cart-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .ty-cart-line {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 0.875rem;
    padding: 1rem 0;
  }

  .ty-cart-line__thumb {
    width: 72px;
    height: 72px;
  }

  .ty-cart-line__name {
    font-size: 1rem;
    line-height: 1.4;
  }

  .ty-cart-line__actions {
    grid-column: 1 / -1;
    padding-top: 0.25rem;
    border-top: 1px dashed var(--ty-line);
  }

  .ty-cart-line__qty-form {
    flex: 1 1 auto;
    gap: 0.75rem;
  }

  .ty-cart-line__qty-form .ty-stepper {
    width: 100%;
    max-width: 7.5rem;
  }

  .ty-cart-line__update {
    margin-left: auto;
    min-height: 44px;
    padding: 0 0.5rem;
  }

  .ty-cart-line__remove {
    min-height: 44px;
    padding: 0 0.25rem;
  }
}

.ty-cart-page__related {
  margin-top: clamp(3.5rem, 8vw, 5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--ty-line);
}

.ty-empty--spacious {
  margin-top: 2rem;
  padding: 5rem 2rem;
}

.ty-empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.ty-auth {
  max-width: 28rem;
  margin: 0 auto;
  padding: var(--ty-space-48) var(--ty-space-16) var(--ty-space-80);
}

.ty-auth__layout {
  display: block;
}

.ty-auth__back {
  display: inline-block;
  margin-bottom: var(--ty-space-24);
  font-size: var(--ty-fs-caption);
  font-weight: 500;
  color: var(--ty-muted);
  text-decoration: none;
}

.ty-auth__back:hover {
  color: var(--ty-ink);
}

.ty-auth__card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--ty-line);
  border-radius: var(--ty-radius-xs);
  background: var(--ty-surface);
}

.ty-auth__brand {
  margin: 0;
  text-align: center;
  font-family: var(--ty-display);
  font-size: var(--ty-fs-label);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ty-sand-deep);
}

.ty-auth__title {
  margin: var(--ty-space-16) 0 0;
  text-align: center;
  font-family: 'Noto Serif SC', var(--ty-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--ty-ink);
  font-synthesis: none;
}

.ty-auth__sub {
  margin: var(--ty-space-8) 0 var(--ty-space-32);
  text-align: center;
  font-size: var(--ty-fs-caption);
  color: var(--ty-muted);
}

.ty-auth__form {
  display: flex;
  flex-direction: column;
  gap: var(--ty-space-24);
}

.ty-auth__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ty-space-12);
  margin-bottom: var(--ty-space-8);
}

.ty-auth__label-row .ty-field__label {
  margin: 0;
}

.ty-auth__password {
  position: relative;
}

.ty-auth__eye {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  color: var(--ty-faint);
  cursor: pointer;
}

.ty-text-link--compact {
  padding: 0;
  font-size: var(--ty-fs-caption);
  font-weight: 400;
}

.ty-auth__form .ty-btn {
  margin-top: var(--ty-space-8);
  height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.ty-auth__divider {
  margin: var(--ty-space-24) 0;
  border-top: 1px solid var(--ty-line);
}

.ty-auth__register {
  margin: 0;
  text-align: center;
  font-size: var(--ty-fs-caption);
  color: var(--ty-muted);
}

.ty-auth__register a {
  margin-left: 0.25em;
  color: var(--ty-ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.ty-auth__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: var(--ty-space-24) 0 0;
  font-size: 11px;
  font-weight: 500;
  color: var(--ty-sand-deep);
}

.ty-auth__oauth {
  margin-top: var(--ty-space-24);
}

.ty-auth__google {
  gap: 0.65rem;
}

.ty-auth__google i {
  font-size: 1rem;
}

.ty-auth__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ty-line);
  text-align: center;
}

@media (max-width: 959px) {
  .ty-auth {
    padding-top: var(--ty-space-32);
    padding-bottom: calc(var(--ty-space-64) + env(safe-area-inset-bottom, 0px));
  }

  .ty-auth__card {
    border-left: none;
    border-right: none;
    border-radius: 0;
    margin-inline: calc(-1 * var(--ty-space-16, 1rem));
  }

  .ty-auth__title {
    font-size: 1.625rem;
  }

  .ty-auth__form .ty-input {
    font-size: 1rem;
  }

  .ty-auth__form .ty-btn {
    min-height: 48px;
  }

  .ty-auth__google {
    min-height: 48px;
  }

  .ty-auth--register .ty-auth__sub {
    margin-bottom: var(--ty-space-24);
  }

  .ty-auth--register .ty-auth__form {
    gap: var(--ty-space-16);
  }

  .ty-auth--register .ty-auth__divider {
    margin: var(--ty-space-16) 0;
  }

  .ty-auth--register .ty-auth__card {
    padding-top: var(--ty-space-20);
    padding-bottom: var(--ty-space-20);
  }
}

body.pet-body:has(.ty-auth),
[data-theme='pet'] body:has(.ty-auth) {
  background: linear-gradient(180deg, var(--ty-wash) 0%, var(--ty-wash) 30%, var(--ty-surface) 100%);
}

[data-theme='pet'] .input-field,
[data-theme='pet'] .input-underline { border-color: var(--ty-line); }

[data-theme='pet'] .btn-secondary {
  border-color: var(--ty-line);
  color: var(--ty-ink);
}

[data-theme='pet'] .btn-brand {
  border-color: var(--ty-sand-deep);
  background: var(--ty-sand-deep);
  color: #fff;
}

[data-theme='pet'] .border-ink-line { border-color: var(--ty-line) !important; }

[data-theme='pet'] .bg-ink-wash { background: var(--ty-wash) !important; }

/* —— Product detail —— */
.ty-pdp-top {
  padding: 1.75rem 0 0.25rem;
}

.ty-breadcrumb--left {
  justify-content: flex-start;
  margin-bottom: 0;
  font-size: 0.7rem;
}

@media (max-width: 767px) {
  .ty-breadcrumb--left {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    white-space: nowrap;
    max-width: 100%;
    padding-bottom: 0.25rem;
  }

  .ty-breadcrumb--left::-webkit-scrollbar {
    display: none;
  }

  .ty-plp__head {
    padding: 1.25rem 0 1rem;
  }

  .ty-plp__title-row {
    margin-top: 0.75rem;
  }

  .ty-plp__toolbar {
    gap: 0.75rem;
  }

  .ty-plp__title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }
}

.ty-pdp {
  max-width: 72rem;
  margin-inline: auto;
}

.ty-pdp__layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 1024px) {
  .ty-pdp__layout {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 26rem);
    gap: clamp(3rem, 6vw, 5.5rem);
    align-items: start;
  }
}

.ty-pdp__gallery {
  min-width: 0;
}

.ty-pdp__main {
  position: relative;
  aspect-ratio: 1;
  background: var(--ty-wash);
  overflow: hidden;
}

.ty-pdp__wish {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ty-muted);
  cursor: pointer;
}

.ty-pdp__thumbs {
  margin-top: 0.75rem;
}

.ty-pdp__thumb {
  border-color: var(--ty-line) !important;
}

.ty-pdp__thumb.product-gallery__thumb--active {
  border-color: var(--ty-sand-deep) !important;
}

.ty-pdp__panel {
  position: sticky;
  top: 6.5rem;
  padding: 1rem 0 2.5rem;
}

@media (min-width: 1024px) {
  .ty-pdp__panel {
    padding: 1.25rem 0 2.5rem 1rem;
  }
}

.ty-pdp__title {
  margin: 0;
  font-family: var(--ty-display);
  font-size: clamp(1.65rem, 2.8vw, 2rem);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 0.02em;
}

.ty-pdp__title-en {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--ty-muted);
}

.ty-pdp__sku {
  margin: 0.75rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--ty-faint);
}

.ty-pdp__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--ty-line);
}

.ty-pdp__price {
  margin: 0;
  font-family: var(--ty-display);
  font-size: 1.85rem;
  font-weight: 500;
  color: var(--ty-ink);
}

.ty-pdp__price--sale {
  color: var(--ty-sand-deep);
}

.ty-pdp__price-old {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ty-faint);
  text-decoration: line-through;
}

.ty-pdp__stock,
.ty-pdp__note {
  margin: 1rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--ty-muted);
}

.ty-pdp__form {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.ty-pdp__field {
  padding-bottom: 0.25rem;
}

.ty-pdp__field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.ty-pdp__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--ty-muted);
  text-transform: none;
}

.ty-pdp__picked {
  font-size: 0.72rem;
  color: var(--ty-ink);
}

.ty-pdp__link {
  font-size: 0.72rem;
  color: var(--ty-sand-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Swatches / chips / qty → .ty-swatches .ty-swatch .ty-chips .ty-chip .ty-stepper */

.ty-pdp__select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--ty-line);
  border-radius: var(--ty-radius-xs);
  background: var(--ty-surface);
  padding: 0 16px;
  font-size: var(--ty-fs-button);
}

.ty-pdp__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.25rem;
  margin-top: 0;
  border: 1px solid var(--ty-ink);
  background: var(--ty-ink);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.ty-pdp__cta-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ty-pdp__cta--ghost {
  background: transparent;
  color: var(--ty-ink);
}

.ty-pdp__cta--ghost:hover {
  background: var(--ty-ink);
  color: #fff;
}

.ty-pdp__cta:hover:not(:disabled) {
  background: transparent;
  color: var(--ty-ink);
}

.ty-pdp__cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ty-pdp__services {
  margin: 2.25rem 0 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--ty-line);
  list-style: none;
}

.ty-pdp__services li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.8rem;
  line-height: 1.75;
  color: var(--ty-muted);
}

.ty-pdp__services li + li {
  margin-top: 0.65rem;
}

.ty-pdp__services li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--ty-sand);
}

.ty-pdp__details {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--ty-line);
}

.ty-pdp__acc {
  border-bottom: 1px solid var(--ty-line);
}

.ty-pdp__acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  font-family: var(--ty-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ty-ink);
  cursor: pointer;
  list-style: none;
}

.ty-pdp__acc summary::-webkit-details-marker {
  display: none;
}

.ty-pdp__acc summary::after {
  content: '+';
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  font-family: var(--ty-sans);
  font-size: 1.125rem;
  line-height: 16px;
  text-align: center;
  color: var(--ty-ink);
}

.ty-pdp__acc[open] summary::after {
  content: '−';
}

.ty-pdp__acc-body {
  padding: 0 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--ty-muted);
}

.ty-pdp__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.ty-pdp__table th,
.ty-pdp__table td {
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--ty-line);
  text-align: left;
}

.ty-pdp__related {
  margin-top: clamp(4rem, 8vw, 5.5rem);
  padding-top: 2rem;
}

@media (max-width: 1023px) {
  .ty-pdp__panel {
    position: static;
  }

  .ty-pdp {
    padding-bottom: calc(5.75rem + env(safe-area-inset-bottom, 0px));
  }

  .ty-pdp__layout {
    margin-top: 1.5rem;
    gap: 1.5rem;
  }

  .ty-pdp-top {
    padding-top: 1.25rem;
  }

  .ty-pdp__main {
    aspect-ratio: 4 / 5;
    max-height: min(70vh, 28rem);
  }

  .ty-pdp__title {
    font-size: clamp(1.375rem, 5vw, 1.75rem);
  }

  .ty-pdp__thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .ty-pdp__thumbs::-webkit-scrollbar {
    display: none;
  }

  .ty-pdp__thumb {
    flex: 0 0 4.25rem;
    width: 4.25rem;
    height: 4.25rem;
  }

  .ty-pdp__cta-group {
    display: none;
  }

  .ty-pdp__details {
    margin-top: 2rem;
  }

  .ty-pdp-mobile-bar {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 40;
    padding: 0.75rem 0 calc(0.75rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--ty-line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
  }

  .ty-pdp-mobile-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .ty-pdp-mobile-bar__price-block {
    min-width: 0;
    flex: 0 1 auto;
  }

  .ty-pdp-mobile-bar__label {
    margin: 0;
    font-size: 11px;
    color: var(--ty-muted);
  }

  .ty-pdp-mobile-bar__price {
    margin: 2px 0 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--ty-ink);
  }

  .ty-pdp-mobile-bar__actions {
    display: flex;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 0.5rem;
    min-width: 0;
  }

  .ty-pdp-mobile-bar .ty-btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.75rem;
    font-size: 0.75rem;
    white-space: nowrap;
  }

  .ty-pdp-mobile-bar .ty-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  .ty-pdp-mobile-bar__buy {
    max-width: 6.5rem;
  }
}

.ty-pdp-mobile-bar {
  display: none;
}

/* —— Mobile finish pass —— */
@media (max-width: 767px) {
  .ty-cart-page__head {
    padding: 1.25rem 0 1.5rem;
  }

  .ty-cart-page__title {
    font-size: 1.5rem;
  }

  .ty-empty--spacious {
    margin-top: 1rem;
    padding: 3rem 1.25rem;
  }

  .ty-empty__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 18rem;
    margin-inline: auto;
  }

  .ty-empty__actions .ty-btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }

  .ty-cart-page__related {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }

  .pet-header__drawer {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .pet-header__drawer-foot {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  }

  .ty-plp__sidebar {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  }

  .ty-plp__sidebar-foot {
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
  }

  .ty-plp__filter-toggle,
  .ty-plp__filter-close {
    min-height: 44px;
    min-width: 44px;
  }

  .pet-footer__legal {
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
}
