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

:root {
  --bg: #fff8f4;
  --surface: #fff0e7;
  --surface-strong: #ffd9c4;
  --panel: #ffffff;
  --panel-soft: #fff4ed;
  --text: #171717;
  --muted: #7e5f52;
  --line: #f2c8b0;
  --line-strong: #e7a989;
  --accent: #ec5c14;
  --success: #2f8a57;
  --warning: #b06a0e;
  --danger: #b64030;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --shadow-soft: 0 16px 40px rgba(17, 17, 17, 0.05);
  --shadow-card: 0 10px 28px rgba(17, 17, 17, 0.04);
  --content-width: 1240px;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", sans-serif;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.has-modal-open {
  overflow: hidden;
}

main {
  flex: 1;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

.site-shell {
  width: min(var(--content-width), calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: var(--space-3xl) 0;
}

.section:first-of-type {
  padding-top: var(--space-2xl);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.section-head h2,
.section-head h3,
h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  letter-spacing: -0.04em;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.15;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  line-height: 1.25;
  font-weight: 750;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.18;
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
}

p {
  margin: 0;
  color: var(--muted);
}

.lead {
  font-size: 1.1rem;
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 2rem;
  height: 1px;
  background: var(--line-strong);
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button-primary {
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.button-primary:hover {
  transform: translateY(-1px);
  background: #cf4e10;
}

.button-secondary {
  padding: 0.9rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  background: #fff;
  border-color: var(--line-strong);
}

.button-ghost {
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.button-ghost:hover {
  color: var(--muted);
}

.stack-sm,
.stack-md,
.stack-lg {
  display: grid;
}

.stack-sm {
  gap: var(--space-sm);
}

.stack-md {
  gap: var(--space-md);
}

.stack-lg {
  gap: var(--space-lg);
}

.media-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.media-card:hover img {
  transform: scale(1.03);
}

.meta-line {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.meta-line .dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--surface-strong);
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--text);
  letter-spacing: 0.02em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.status-badge.success {
  background: rgba(49, 88, 62, 0.12);
  color: var(--success);
}

.status-badge.warning {
  background: rgba(139, 107, 31, 0.12);
  color: var(--warning);
}

.status-badge.danger {
  background: rgba(138, 59, 48, 0.12);
  color: var(--danger);
}

.admin-panel {
  border: 1px solid rgba(191, 184, 171, 0.55);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.divider {
  border-top: 1px solid var(--line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-main-content {
  padding-top: var(--space-xl);
}

.client-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.client-header-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
}

.client-search {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  max-width: 300px;
  justify-self: start;
}

.client-search-input-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.35rem 0.35rem 0.35rem 0.9rem;
}

.client-search-input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.client-search-button {
  width: 2.1rem;
  height: 2.1rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.client-search-button:hover {
  background: #cf4e10;
}

.client-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  white-space: nowrap;
  justify-self: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.client-brand-mark {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
}

.client-brand-mark svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  fill: currentColor;
}

.client-brand-text {
  color: var(--accent);
  font-size: 1.08rem;
}

.client-header-actions {
  display: flex;
  justify-content: end;
  align-items: center;
  gap: var(--space-sm);
  justify-self: end;
  position: relative;
  z-index: 130;
}

.client-profile-menu {
  position: relative;
  z-index: 130;
}

.client-profile-toggle {
  padding: 0;
}

.client-profile-dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  min-width: 280px;
  padding: 0.8rem;
  border-radius: 18px;
  border: 1px solid rgba(242, 200, 176, 0.9);
  background: #fff;
  box-shadow: 0 18px 42px rgba(17, 17, 17, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 150;
}

.client-profile-menu.is-open .client-profile-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.client-profile-dropdown-head {
  display: grid;
  gap: 0.15rem;
  padding: 0.15rem 0.25rem 0.75rem;
  margin-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.client-profile-dropdown-head strong {
  color: var(--text);
  font-size: 0.98rem;
}

.client-profile-dropdown-head span {
  color: var(--muted);
  font-size: 0.86rem;
}

.client-profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.78rem 0.85rem;
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
  text-align: left;
}

.client-profile-dropdown-item:hover {
  background: var(--panel-soft);
}

.client-profile-dropdown-item i {
  width: 1rem;
  color: var(--accent);
}

.client-profile-dropdown-item.is-danger {
  color: var(--danger);
}

.client-profile-dropdown-item.is-danger i {
  color: var(--danger);
}

.client-profile-dropdown-divider {
  height: 1px;
  margin: 0.45rem 0;
  background: var(--line);
}

.client-profile-logout-form {
  margin: 0;
}

.client-icon-link,
.client-login-button,
.client-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 2.4rem;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.client-icon-link {
  width: 2.4rem;
}

.client-login-button,
.client-profile-link {
  padding: 0.5rem 0.9rem;
  font-weight: 600;
}

.client-icon-link:hover,
.client-login-button:hover,
.client-action-link:hover {
  background: var(--panel-soft);
  border-color: var(--line-strong);
}

.client-header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
}

.client-header-nav .site-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  overflow-x: auto;
  padding: 0.5rem 0;
}

.client-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: color 160ms ease, background-color 160ms ease;
}

.client-nav-link:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.client-nav-link.is-active {
  color: #fff;
  background: var(--accent);
}

.home-hero {
  padding: 1.25rem 0 0;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-xl);
  align-items: stretch;
  padding: 0.5rem;
  border-radius: calc(var(--radius-xl) + 6px);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, #1a1f2b 0%, #111827 100%);
  box-shadow: 0 24px 60px rgba(16, 24, 42, 0.14);
}

.home-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  min-height: 520px;
  color: #fff;
}

.home-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 1rem;
  padding: 0.42rem 0.8rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.16);
  color: #ffb08c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.home-hero-copy h1 {
  max-width: 12ch;
  color: #fff;
}

.home-hero-copy p {
  max-width: 34rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.05rem;
  line-height: 1.8;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.home-hero-cta,
.home-hero-secondary {
  min-width: 9.5rem;
}

.home-hero-visual {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.home-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(16, 24, 42, 0.04), rgba(16, 24, 42, 0.12));
  z-index: 1;
  pointer-events: none;
}

.home-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

.home-categories {
  padding: 1.75rem 0 0;
}

.home-categories-head {
  margin-bottom: 1.25rem;
}

.home-categories-head .eyebrow {
  margin-bottom: 0.6rem;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-card {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 1.15rem 0.8rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.home-category-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 34px rgba(17, 17, 17, 0.08);
}

.home-category-icon {
  width: 3.45rem;
  height: 3.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-size: 1.45rem;
}

.home-category-name {
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
  line-height: 1.2;
}

.home-adoption {
  padding: 3rem 0 0;
}

.home-adoption-head {
  margin-bottom: 1.35rem;
}

.home-adoption-view-all {
  align-self: end;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.home-adoption-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-adoption-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-adoption-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

.home-adoption-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f4efe9 0%, #fff 100%);
}

.home-adoption-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.home-adoption-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.15rem;
}

.home-adoption-body h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.home-adoption-price {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.home-adoption-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.home-adoption-buy {
  margin-top: 0.4rem;
  width: 100%;
}

.home-product-section {
  padding: 3rem 0 0;
}

.home-product-head {
  margin-bottom: 1.35rem;
}

.home-product-view-all {
  align-self: end;
  margin-bottom: 0.4rem;
  color: var(--accent);
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-product-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-product-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

.home-product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f4efe9 0%, #fff 100%);
}

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

.home-product-body {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1rem 1.15rem;
}

.home-product-body h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}

.home-product-price {
  color: var(--accent);
  font-size: 1.05rem;
  font-weight: 800;
}

.home-product-meta {
  font-size: 0.92rem;
  color: var(--muted);
}

.home-product-buy {
  margin-top: 0.4rem;
  width: 100%;
}

.hero-full-bg {
  position: relative;
  min-height: 560px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 3.5rem;
  border-radius: calc(var(--radius-xl) + 6px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(16, 24, 42, 0.14);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16,24,42,0.92) 0%, rgba(16,24,42,0.65) 45%, transparent 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero-full-bg .home-hero-copy {
  min-height: auto;
  padding: 0;
}

@media (max-width: 640px) {
  .hero-full-bg {
    padding: 2.5rem 1.5rem;
    min-height: 480px;
  }
  .hero-overlay {
    background: linear-gradient(180deg, rgba(16,24,42,0.85) 0%, rgba(16,24,42,0.7) 100%);
  }

  .home-categories {
    padding-top: 1.25rem;
  }

  .home-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .home-category-card {
    padding: 1rem 0.7rem 0.9rem;
  }

  .home-category-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .home-adoption {
    padding-top: 2.25rem;
  }

  .home-adoption-head {
    align-items: flex-end;
  }

  .home-adoption-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .home-adoption-body {
    padding: 0.95rem 0.95rem 1rem;
  }

  .home-product-section {
    padding-top: 2.25rem;
  }

  .home-product-head {
    align-items: flex-end;
  }

  .home-product-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .home-product-body {
    padding: 0.95rem 0.95rem 1rem;
  }
}

.site-footer {
  margin-top: var(--space-4xl);
  background: #10182a;
  color: rgba(255, 255, 255, 0.92);
}

.site-footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding: 3.75rem 0 3rem;
}

.site-footer h2,
.site-footer h3 {
  color: #fff;
  margin-bottom: 1.2rem;
}

.site-footer h2 {
  font-size: 1.95rem;
  letter-spacing: 0.03em;
}

.site-footer h3 {
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.site-footer p,
.site-footer a,
.site-footer-contact-item {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer-brand p {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.75;
}

.site-footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.site-footer-social a {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.84);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.site-footer-social a:hover {
  transform: translateY(-1px);
  background: rgba(236, 92, 20, 0.18);
  color: var(--accent);
}

.site-footer-social i {
  font-size: 1.05rem;
}

.site-footer-links,
.site-footer-contact {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.site-footer-links a {
  font-size: 1rem;
  line-height: 1.65;
  transition: color 160ms ease;
}

.site-footer-links a:hover {
  color: #fff;
}

.site-footer-contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  font-size: 1rem;
  line-height: 1.6;
}

.site-footer-contact-item i {
  color: var(--accent);
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.6rem 0;
}

.site-footer-bottom p {
  text-align: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.98rem;
}

.products-page {
  padding: 1rem 0 0;
}

.contact-page {
  padding: 1rem 0 0;
}

.contact-page-head {
  margin-bottom: 1.5rem;
}

.contact-hero-copy {
  max-width: 42rem;
  margin-top: 0.75rem;
}

.contact-hero-copy p {
  margin-top: 0.75rem;
  max-width: 38rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

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

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.contact-info-icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-info-body h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-info-body p {
  font-size: 0.96rem;
  line-height: 1.7;
}

.contact-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-panel {
  padding: 1.4rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.contact-panel-strong {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 240, 231, 0.9));
}

.contact-panel-head {
  margin-bottom: 1rem;
}

.contact-panel-head .eyebrow {
  margin-bottom: 0.5rem;
}

.contact-panel-list {
  display: grid;
  gap: 0.9rem;
}

.contact-panel-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 248, 244, 0.85);
}

.contact-panel-label {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.contact-panel-value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.contact-panel-note {
  font-size: 1rem;
  line-height: 1.8;
}

.contact-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.3rem;
}

.contact-social a {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.contact-social a:hover {
  transform: translateY(-1px);
  background: rgba(236, 92, 20, 0.2);
  color: #cf4e10;
}

.contact-social i {
  font-size: 1rem;
}

.products-page-head {
  margin-bottom: 1.5rem;
}

.products-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.products-breadcrumb a {
  color: var(--muted);
}

.products-breadcrumb span:last-child {
  color: var(--accent);
}

.products-sort-form {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.products-sort-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.products-sort-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  min-width: 190px;
  height: 2.75rem;
  padding: 0 2.35rem 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background-color: #fff;
  color: var(--text);
  font-size: 0.95rem;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  cursor: pointer;
}

.products-sort-select:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.06);
}

.products-sort-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.14);
}

.products-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.products-sidebar {
  position: sticky;
  top: 7.5rem;
}

.products-filter-card {
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(242, 200, 176, 0.85);
  box-shadow: var(--shadow-card);
}

.products-filter-title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.products-filter-group + .products-filter-group {
  margin-top: 1rem;
}

.products-filter-label {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.products-filter-input {
  width: 100%;
  height: 2.75rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}

.products-filter-options {
  display: grid;
  gap: 0.45rem;
  max-height: calc(5 * 2.35rem);
  overflow-y: auto;
  padding-right: 0.35rem;
}

.products-filter-options::-webkit-scrollbar {
  width: 0.38rem;
}

.products-filter-options::-webkit-scrollbar-thumb {
  background: rgba(126, 95, 82, 0.32);
  border-radius: 999px;
}

.products-filter-options::-webkit-scrollbar-track {
  background: transparent;
}

.products-filter-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.1rem;
  color: var(--text);
  font-size: 0.95rem;
}

.products-filter-option input {
  accent-color: var(--accent);
}

.products-filter-apply {
  width: 100%;
  margin-top: 1.2rem;
}

.products-content {
  min-width: 0;
}

.products-content-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.products-content-head h1 {
  font-size: clamp(2rem, 3vw, 3rem);
}

.products-content-head p {
  margin-top: 0.4rem;
}

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

.products-empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.8);
  color: var(--muted);
  text-align: center;
}

.products-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(242, 200, 176, 0.75);
  box-shadow: var(--shadow-card);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.products-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

.products-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.products-card-media {
  position: relative;
  z-index: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f4efe9 0%, #fff 100%);
}

.products-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.products-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
}

.products-card-category {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.products-card-body h2 {
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}

.products-card-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8rem;
  font-size: 0.95rem;
}

.products-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.products-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.2rem;
}

.products-card-price {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
}

.products-card-actions {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.products-card-cart-form {
  position: relative;
  z-index: 3;
  width: auto;
}

.products-card-buy {
  position: relative;
  z-index: 3;
  width: 2.65rem;
  height: 2.65rem;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(236, 92, 20, 0.22);
}

.cart-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: min(24rem, calc(100vw - 2.5rem));
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 138, 87, 0.18);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.12);
  color: var(--text);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 60;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cart-toast-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  color: var(--success);
  font-weight: 700;
}

.cart-toast.is-error {
  border-color: rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
}

.cart-toast.is-error .cart-toast-content {
  color: var(--danger);
}

.cart-toast.is-success {
  border-color: rgba(47, 138, 87, 0.18);
}

.cart-toast-content i {
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.cart-toast-close {
  margin-left: auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.cart-toast-close:hover {
  color: var(--text);
  background: rgba(17, 17, 17, 0.05);
}

.auth-inline-shell {
  display: flex;
  justify-content: center;
}

.auth-inline-card {
  width: 100%;
  max-width: 1120px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: #fff;
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.12);
}

.auth-page {
  background:
    radial-gradient(circle at top left, rgba(236, 92, 20, 0.14), transparent 42%),
    radial-gradient(circle at bottom right, rgba(236, 92, 20, 0.12), transparent 32%),
    linear-gradient(180deg, #fffaf6 0%, #fff3ea 100%);
}

.auth-page-shell {
  min-height: 100vh;
  padding: 1.25rem;
}

.auth-frame {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  min-height: calc(100vh - 2.5rem);
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  box-shadow: 0 24px 72px rgba(17, 17, 17, 0.12);
}

.auth-hero {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 100%;
  padding: clamp(2rem, 4vw, 4rem);
  background:
    linear-gradient(180deg, rgba(236, 92, 20, 0.58), rgba(236, 92, 20, 0.72)),
    url("https://images.unsplash.com/photo-1514888286974-6c03e2ca1dba?auto=format&fit=crop&w=1200&q=80") center/cover no-repeat;
  color: #fff;
}

.auth-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(236, 92, 20, 0.26), rgba(236, 92, 20, 0.48));
}

.auth-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: 100%;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
}

.auth-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.auth-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.auth-hero-copy {
  max-width: 24rem;
}

.auth-hero-copy h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.08;
}

.auth-hero-copy p {
  margin: 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-hero-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
}

.auth-hero-proof strong {
  color: #fff;
}

.auth-hero-avatars {
  display: inline-flex;
  margin-right: 0.2rem;
}

.auth-hero-avatars span {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.75);
  margin-right: -0.55rem;
}

.auth-hero-avatars span:nth-child(2) {
  background: rgba(255, 255, 255, 0.6);
}

.auth-hero-avatars span:nth-child(3) {
  background: rgba(255, 255, 255, 0.45);
}

.auth-panel {
  padding: clamp(1.6rem, 4vw, 3.4rem);
  background: linear-gradient(180deg, #fff 0%, #fffdfc 100%);
}

.auth-panel-inner {
  display: flex;
  flex-direction: column;
  max-width: 30rem;
  margin: 0 auto;
  height: 100%;
}

.auth-panel-head {
  margin-bottom: 1.4rem;
}

.auth-panel-head h2 {
  font-size: clamp(1.9rem, 2.5vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 0.55rem;
}

.auth-panel-head p {
  margin: 0;
  color: var(--muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.35rem;
  margin-bottom: 1.35rem;
  border-radius: 999px;
  background: #eef2f7;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  border-radius: 999px;
  color: #728097;
  font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.auth-tab.is-active {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 10px 22px rgba(17, 17, 17, 0.06);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-form-register {
  gap: 0.85rem;
}

.auth-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.auth-form-grid-wide {
  grid-template-columns: 1fr;
}

.auth-form-grid .auth-field {
  min-width: 0;
}

.auth-form-register .auth-field:last-of-type {
  margin-top: 0.1rem;
}

.auth-form-register .auth-submit {
  margin-top: 0.15rem;
}

.auth-inline-message {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.auth-inline-message.is-error {
  border: 1px solid rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
}

.auth-form-summary.validation-summary-valid {
  display: none;
}

.auth-form-summary.validation-summary-errors {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
  list-style: none;
}

.auth-form-summary.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.auth-form-summary.validation-summary-errors li + li {
  margin-top: 0.25rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.auth-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.auth-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.4rem;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid #dfe7f2;
  background: #f8fbff;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.auth-input-wrap:focus-within {
  border-color: rgba(236, 92, 20, 0.35);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.08);
  background: #fff;
}

.auth-input-wrap i {
  color: #9aabc2;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

.auth-input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  outline: none;
}

.auth-textarea {
  min-height: 5.75rem;
  resize: vertical;
  padding: 0.85rem 0;
}

.auth-input-wrap-textarea {
  align-items: start;
  padding-top: 0.9rem;
}

.auth-field-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.auth-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-remember input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.auth-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #f56c22, #ec5c14);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 30px rgba(236, 92, 20, 0.24);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0 0;
  color: #95a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e4eaf2;
}

.auth-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  border-radius: 14px;
  border: 1px solid #dfe7f2;
  background: #fff;
  color: #24344d;
  font-weight: 700;
}

.auth-social-btn.is-facebook {
  background: #1d7bf2;
  border-color: #1d7bf2;
  color: #fff;
}

.auth-social-btn:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.auth-switch a {
  color: var(--accent);
  font-weight: 800;
}

.profile-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  width: 100%;
}

.profile-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 7.5rem;
}

.profile-sidebar-summary,
.profile-nav,
.profile-card,
.profile-empty-state,
.profile-pet-card,
.profile-order-card {
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.profile-sidebar-summary {
  display: flex;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
}

.profile-avatar {
  width: 3.6rem;
  height: 3.6rem;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--accent);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-sidebar-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.profile-sidebar-copy strong,
.profile-sidebar-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-sidebar-copy strong {
  color: var(--text);
  font-size: 1rem;
}

.profile-sidebar-copy span {
  color: var(--muted);
  font-size: 0.9rem;
}

.profile-nav {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
  border-radius: var(--radius-xl);
}

.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.84rem 0.9rem;
  border-radius: 14px;
  color: var(--text);
  font-weight: 600;
}

.profile-nav-link i {
  width: 1rem;
  color: var(--accent);
}

.profile-nav-link:hover {
  background: var(--panel-soft);
}

.profile-nav-link.is-active {
  background: var(--accent);
  color: #fff;
}

.profile-nav-link.is-active i {
  color: #fff;
}

.profile-content {
  min-width: 0;
}

.profile-panel {
  display: grid;
  gap: 1.25rem;
  padding: 1.35rem;
  min-height: 100%;
  border: 1px solid rgba(242, 200, 176, 0.85);
  border-radius: calc(var(--radius-xl) + 2px);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.profile-page {
  display: grid;
  gap: 1.25rem;
}

.profile-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.profile-page-head h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.profile-page-head p {
  margin-top: 0.45rem;
  max-width: 42rem;
  line-height: 1.75;
}

.profile-page-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

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

.profile-stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(242, 200, 176, 0.9);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.profile-stat-label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-stat-card strong {
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
}

.profile-form-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.profile-card-copy {
  display: grid;
  gap: 0.45rem;
}

.profile-card-copy h2 {
  font-size: 1.25rem;
}

.profile-card-copy p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-form {
  display: grid;
  gap: 1rem;
}

.profile-form-narrow {
  max-width: 620px;
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem 1rem;
}

.profile-field {
  display: grid;
  gap: 0.45rem;
}

.profile-field-wide {
  grid-column: 1 / -1;
}

.profile-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.profile-input {
  width: 100%;
  min-height: 3.2rem;
  padding: 0 1rem;
  border: 1px solid #dfe7f2;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--text);
  outline: none;
}

.profile-input:focus {
  border-color: rgba(236, 92, 20, 0.35);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.08);
  background: #fff;
}

.profile-textarea {
  min-height: 6rem;
  padding-top: 0.95rem;
  resize: vertical;
}

.profile-field-error {
  min-height: 1.1rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.profile-form-summary.validation-summary-valid {
  display: none;
}

.profile-form-summary.validation-summary-errors {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
  list-style: none;
}

.profile-form-summary.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.profile-form-summary.validation-summary-errors li + li {
  margin-top: 0.25rem;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.profile-inline-message {
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
}

.profile-inline-message.is-error {
  border: 1px solid rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
}

.profile-empty-state {
  padding: 2rem;
  border-radius: var(--radius-xl);
  border-style: dashed;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-empty-state h2 {
  font-size: 1.35rem;
}

.profile-empty-state p {
  max-width: 36rem;
  margin-top: 0.6rem;
}

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

.profile-pet-card,
.profile-order-card {
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.98);
}

.profile-pet-card {
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.profile-pet-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.profile-pet-card-head h2,
.profile-order-card h2 {
  font-size: 1.35rem;
}

.profile-pet-card-head p {
  margin-top: 0.35rem;
  color: var(--muted);
}

.profile-pet-badge,
.profile-order-number {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-pet-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  padding: 1rem;
  border-radius: 18px;
  background: var(--panel-soft);
  width: 100%;
  min-width: 0;
}

.profile-pet-meta dt,
.profile-order-summary dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-pet-meta dd,
.profile-order-summary dd {
  margin: 0.25rem 0 0;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.profile-inline-stack {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(248, 251, 255, 0.98);
}

.profile-inline-stack strong {
  color: var(--text);
}

.profile-inline-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-pet-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-width: 0;
}

.profile-pet-details {
  display: grid;
  gap: 0.9rem;
  padding: 0;
}

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

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

.profile-pet-details-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  text-align: left;
  box-shadow: none;
}

.profile-pet-details-toggle.button-primary {
  padding-inline: 0.95rem;
}

.profile-pet-details-toggle.button-primary:hover {
  transform: translateY(-1px);
}

.profile-pet-details-toggle i {
  transition: transform 180ms ease;
}

.profile-pet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.profile-pet-actions > * {
  flex: 1 1 0;
}

.profile-pet-delete-form {
  display: flex;
}

.profile-pet-delete-form .button-ghost {
  width: 100%;
}

.profile-danger-action {
  color: var(--danger);
  border-color: rgba(182, 64, 48, 0.2);
}

.profile-danger-action:hover {
  color: var(--danger);
  background: rgba(255, 246, 244, 0.98);
}

.profile-pet-details[open] .profile-pet-details-toggle i {
  transform: rotate(180deg);
}

.profile-pet-details-body {
  display: grid;
  gap: 1rem;
  padding-top: 0.25rem;
}

.profile-pet-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.profile-pet-modal[hidden] {
  display: none;
}

.profile-pet-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 24, 42, 0.58);
}

.profile-pet-modal-dialog {
  position: relative;
  width: min(100%, 780px);
  max-height: min(88vh, 860px);
  overflow: auto;
  padding: 1.4rem;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid rgba(242, 200, 176, 0.9);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 28px 80px rgba(16, 24, 42, 0.24);
}

.profile-pet-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 200, 176, 0.9);
  background: rgba(255, 255, 255, 0.98);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.profile-pet-modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.profile-pet-modal-head {
  display: grid;
  gap: 0.55rem;
  padding-right: 3rem;
  margin-bottom: 1rem;
}

.profile-pet-modal-head h2 {
  font-size: clamp(1.65rem, 2.4vw, 2.2rem);
}

.profile-pet-modal-head p {
  max-width: 42rem;
}

.profile-pet-form-dialog {
  width: min(100%, 860px);
}

.profile-pet-confirm-dialog {
  width: min(100%, 520px);
}

.profile-pet-confirm-message {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.profile-pet-modal-body {
  display: grid;
  gap: 1rem;
}

.profile-pet-notes h3,
.profile-pet-records h3 {
  font-size: 1rem;
}

.profile-pet-notes p,
.profile-order-item p {
  margin-top: 0.35rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.profile-pet-records p {
  margin-top: 0.35rem;
  line-height: 1.7;
}

.profile-pet-records {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.profile-record-list {
  display: grid;
  gap: 0.75rem;
}

.profile-record-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  align-items: start;
}

.profile-record-item strong,
.profile-order-item strong {
  color: var(--text);
}

.profile-record-item span {
  color: var(--muted);
  font-weight: 600;
  padding-top: 0.1rem;
}

.profile-record-item > div {
  min-width: 0;
}

.profile-order-list {
  display: grid;
  gap: 1rem;
}

.profile-order-card {
  display: grid;
  gap: 1rem;
  min-height: 280px;
}

.profile-order-head {
  display: flex;
  justify-content: space-between;
  gap: 1.35rem;
  align-items: flex-start;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.profile-order-head strong {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 800;
  margin-top: 0.15rem;
}

.profile-order-head p {
  margin-top: 0.5rem;
}

.profile-order-head .profile-order-number {
  margin-bottom: 0.55rem;
}

.profile-order-head h2 {
  margin: 0;
  line-height: 1.2;
}

.profile-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.profile-order-summary-wide {
  grid-column: 1 / -1;
}

.profile-order-items {
  display: grid;
  gap: 0.7rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.profile-order-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.profile-order-item span {
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
}

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

@media (max-width: 1080px) {
  .auth-inline-card {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 320px;
  }

  .profile-shell {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    position: static;
  }

  .profile-pet-grid,
  .profile-stats {
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-head {
    flex-direction: column;
  }

  .profile-page-cta {
    width: 100%;
    justify-content: center;
  }

  .profile-order-summary {
    grid-template-columns: 1fr;
  }

  .profile-pet-notes {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    padding: 1rem;
  }

  .profile-page {
    min-height: auto;
  }

  .profile-stat-card,
  .profile-empty-state,
  .profile-pet-card,
  .profile-order-card {
    min-height: auto;
  }
}

@media (max-width: 1080px) {
  .auth-frame {
    grid-template-columns: 1fr;
  }

  .auth-hero {
    min-height: 320px;
  }
}

@media (max-width: 640px) {
  .auth-page-shell {
    padding: 0.75rem;
  }

  .auth-inline-card {
    border-radius: 22px;
  }

  .auth-hero {
    min-height: 280px;
    padding: 1.5rem;
  }

  .auth-panel {
    padding: 1.25rem;
  }

  .auth-social {
    grid-template-columns: 1fr;
  }

  .auth-form-grid {
    grid-template-columns: 1fr;
  }

  .auth-form-grid-wide {
    grid-template-columns: 1fr;
  }

  .client-profile-dropdown {
    min-width: min(280px, calc(100vw - 1.5rem));
    right: 0;
  }

  .profile-page-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-card,
  .profile-pet-card,
  .profile-order-card,
  .profile-sidebar-summary,
  .profile-nav,
  .profile-stat-card,
  .profile-empty-state,
  .profile-panel {
    border-radius: 22px;
  }

  .profile-pet-card-head,
  .profile-order-head {
    flex-direction: column;
  }

  .profile-pet-details-toggle {
    width: 100%;
  }

  .profile-record-item span {
    white-space: normal;
  }

  .profile-pet-modal {
    padding: 0.75rem;
  }

  .profile-pet-modal-dialog {
    max-height: 92vh;
    padding: 1.1rem;
  }

  .profile-pet-modal-head {
    padding-right: 2.5rem;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions .button-primary {
    width: 100%;
  }
}

.products-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 2rem 0 0;
  flex-wrap: wrap;
}

.products-page-link,
.products-page-dot {
  min-width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  border: 1px solid transparent;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-card);
}

.products-page-link.is-active {
  background: var(--accent);
  color: #fff;
}

.products-page-dot {
  color: var(--muted);
  box-shadow: none;
  background: transparent;
}

.product-detail-page {
  display: grid;
  gap: var(--space-xl);
}

.product-detail-breadcrumb-wrap {
  margin-bottom: -0.5rem;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2rem;
  align-items: start;
}

.product-detail-gallery {
  display: grid;
  gap: 0.9rem;
}

.product-detail-main-image {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: linear-gradient(180deg, #fff 0%, #fff4ec 100%);
  box-shadow: var(--shadow-soft);
  aspect-ratio: 1 / 1;
}

.product-detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.product-detail-thumb-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.product-detail-thumb {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-card);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.product-detail-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 14px 24px rgba(17, 17, 17, 0.08);
}

.product-detail-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(236, 92, 20, 0.35), 0 14px 24px rgba(17, 17, 17, 0.08);
}

.product-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-summary {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0 0;
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.product-detail-summary h1 {
  max-width: 12ch;
  font-size: clamp(2.25rem, 3.8vw, 3.75rem);
  line-height: 1.02;
}

.product-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.product-detail-price-current {
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 3.1rem);
  font-weight: 800;
  line-height: 1;
}

.product-detail-price-old {
  color: #94a3b8;
  font-size: 1.15rem;
  text-decoration: line-through;
}

.product-detail-callout {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #fff7f2;
  border: 1px solid rgba(236, 92, 20, 0.15);
  color: var(--muted);
  font-size: 0.96rem;
}

.product-detail-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.product-detail-meta-item {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(242, 200, 176, 0.75);
}

.product-detail-meta-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-detail-meta-value {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.product-detail-quantity-block {
  display: grid;
  gap: 0.45rem;
}

.product-detail-quantity-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.product-detail-quantity-label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.product-detail-quantity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(242, 200, 176, 0.95);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.product-detail-quantity-btn {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
}

.product-detail-quantity-input {
  width: 3rem;
  height: 2.6rem;
  border: 0;
  border-left: 1px solid rgba(242, 200, 176, 0.95);
  border-right: 1px solid rgba(242, 200, 176, 0.95);
  text-align: center;
  background: #fff;
  outline: none;
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

.product-detail-quantity-input::-webkit-outer-spin-button,
.product-detail-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.product-detail-stock-text {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.product-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.8rem;
}

.product-detail-cart-btn,
.product-detail-favorite-btn {
  min-height: 3.35rem;
  border-radius: 16px;
  font-weight: 700;
}

.product-detail-cart-btn {
  box-shadow: 0 14px 28px rgba(236, 92, 20, 0.22);
}

.product-detail-favorite-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0 1.1rem;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  background: #fff;
}

.product-detail-benefits {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-detail-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(242, 200, 176, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
  width: 100%;
}

.product-detail-benefit i {
  color: var(--accent);
  margin-top: 0.12rem;
}

.product-detail-content {
  display: grid;
  gap: 1.4rem;
  padding-top: 0.75rem;
}

.product-detail-copy {
  padding: 1.35rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(242, 200, 176, 0.75);
  box-shadow: var(--shadow-card);
}

.product-detail-section-head {
  display: grid;
  gap: 0.2rem;
}

.product-detail-description {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.85;
}

.product-detail-cart-form {
  display: grid;
  gap: 1rem;
}

.product-detail-error {
  margin-top: 0.8rem;
  color: var(--danger);
  font-size: 0.92rem;
}

.cart-page {
  padding: 1rem 0 0;
}

.cart-page-head {
  margin-bottom: 1.25rem;
}

.cart-page-title {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.1;
}

.cart-page-title i {
  color: var(--accent);
  font-size: 1.05em;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 340px;
  gap: 1.25rem;
  align-items: start;
}

.cart-status-message {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 138, 87, 0.2);
  background: rgba(47, 138, 87, 0.08);
  color: var(--success);
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-status-message.is-error {
  border-color: rgba(182, 64, 48, 0.22);
  background: rgba(182, 64, 48, 0.08);
  color: var(--danger);
}

.cart-empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.cart-empty-state h2 {
  font-size: 1.35rem;
}

.cart-empty-state p {
  max-width: 36rem;
}

.cart-items {
  display: grid;
  gap: 1rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.cart-item-media {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, #f4efe9 0%, #fff 100%);
}

.cart-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cart-item-body {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
}

.cart-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.cart-item-copy h2 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-item-remove {
  color: #9aa4b2;
  padding: 0.15rem;
}

.cart-item-remove:hover {
  color: var(--accent);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.cart-item-quantity-form {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(242, 200, 176, 0.95);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cart-item-quantity {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(242, 200, 176, 0.95);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.cart-item-quantity-btn {
  width: 2.55rem;
  height: 2.55rem;
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 700;
}

.cart-item-quantity-input {
  width: 3rem;
  height: 2.55rem;
  border: 0;
  border-left: 1px solid rgba(242, 200, 176, 0.95);
  border-right: 1px solid rgba(242, 200, 176, 0.95);
  text-align: center;
  background: #fff;
  outline: none;
  appearance: textfield;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
}

.cart-item-quantity-input::-webkit-outer-spin-button,
.cart-item-quantity-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-item-pricing {
  display: flex;
  align-items: center;
  justify-content: end;
}

.cart-item-price-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.cart-item-remove-form {
  display: inline-flex;
}

.cart-item-price {
  color: var(--accent);
  font-size: 1.45rem;
  font-weight: 800;
  white-space: nowrap;
}

.cart-item-fixed-quantity {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 244, 237, 0.9);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.cart-item-fixed-quantity strong {
  color: var(--text);
  font-size: 1rem;
}

.cart-summary {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 7.5rem;
}

.cart-summary h2 {
  font-size: 1.25rem;
  line-height: 1.25;
}

.cart-summary-list {
  display: grid;
  gap: 0.8rem;
}

.cart-summary-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.cart-summary-row strong {
  color: var(--text);
  font-size: 1rem;
}

.cart-summary-row-total {
  padding-top: 0.8rem;
  border-top: 1px solid rgba(242, 200, 176, 0.75);
}

.cart-summary-row-total span {
  display: block;
  color: var(--text);
  font-weight: 800;
}

.cart-summary-row-total small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-summary-row-total strong {
  color: var(--accent);
  font-size: 1.6rem;
  font-weight: 800;
}

.cart-checkout-button {
  min-height: 3.45rem;
  border-radius: 16px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(236, 92, 20, 0.22);
}

.cart-continue-link {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.cart-continue-link:hover {
  color: var(--text);
}

.cart-trust-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(236, 92, 20, 0.14);
  background: #fff7f2;
}

.cart-trust-note i {
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 0.08rem;
}

.cart-trust-note p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.checkout-page {
  padding: 1rem 0 0;
}

.checkout-page-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.checkout-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.checkout-breadcrumb a {
  color: var(--muted);
}

.checkout-breadcrumb span:last-child {
  color: var(--accent);
}

.checkout-page-copy {
  max-width: 46rem;
}

.checkout-page-copy p {
  margin-top: 0.55rem;
  line-height: 1.75;
}

.checkout-alert {
  margin-bottom: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(47, 138, 87, 0.2);
  background: rgba(47, 138, 87, 0.08);
  color: var(--success);
  font-weight: 600;
}

.checkout-alert.is-error {
  border-color: rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
}

.checkout-empty-state {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
  padding: 2rem;
  border-radius: var(--radius-xl);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}

.checkout-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 1.25rem;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.checkout-panel {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.checkout-panel-head {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.checkout-panel-index {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.checkout-panel-head h2 {
  font-size: 1.35rem;
}

.checkout-panel-head p {
  margin-top: 0.35rem;
}

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

.checkout-field {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.checkout-field .form-label {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.checkout-field .form-control {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(242, 200, 176, 0.95);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.04);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.checkout-field .form-control::placeholder {
  color: #9f887d;
}

.checkout-field .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.14);
}

.checkout-field .text-danger {
  min-height: 1rem;
  color: var(--danger);
  font-size: 0.88rem;
}

.checkout-field-full {
  grid-column: 1 / -1;
}

.checkout-textarea {
  min-height: 6.5rem;
  resize: vertical;
}

.checkout-payment-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.95rem;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 248, 244, 0.75);
}

.checkout-payment-card.is-selected {
  border-color: rgba(236, 92, 20, 0.22);
  background: rgba(236, 92, 20, 0.08);
}

.checkout-payment-card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--accent);
  font-size: 1.15rem;
}

.checkout-payment-card-copy strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.checkout-payment-card-copy p {
  margin-top: 0.3rem;
  line-height: 1.65;
}

.checkout-payment-card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkout-actions {
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.checkout-submit-button {
  min-height: 3.45rem;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(236, 92, 20, 0.22);
}

.checkout-summary {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.checkout-summary-card,
.checkout-trust-card {
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.checkout-summary-head h2 {
  margin-top: 0.35rem;
  font-size: 1.35rem;
}

.checkout-summary-lines {
  display: grid;
  gap: 0.85rem;
}

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

.checkout-summary-item img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  object-position: center center;
}

.checkout-summary-copy {
  min-width: 0;
}

.checkout-summary-copy strong {
  display: block;
  color: var(--text);
  line-height: 1.35;
}

.checkout-summary-copy p {
  margin-top: 0.2rem;
  font-size: 0.92rem;
}

.checkout-summary-price {
  color: var(--text);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-summary-totals {
  display: grid;
  gap: 0.7rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.checkout-summary-row span {
  color: var(--muted);
}

.checkout-summary-row.is-total span,
.checkout-summary-row.is-total strong {
  color: var(--accent);
  font-size: 1.12rem;
  font-weight: 800;
}

.checkout-trust-card {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.checkout-trust-card i {
  color: var(--accent);
  font-size: 1.25rem;
  margin-top: 0.15rem;
}

.checkout-trust-card strong {
  display: block;
  color: var(--text);
}

.checkout-trust-card p {
  margin-top: 0.3rem;
}

.checkout-validation-summary.validation-summary-valid {
  display: none;
}

.checkout-validation-summary.validation-summary-errors {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(182, 64, 48, 0.18);
  background: rgba(255, 246, 244, 0.98);
  color: var(--danger);
  list-style: none;
}

.checkout-validation-summary.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.checkout-validation-summary.validation-summary-errors li + li {
  margin-top: 0.25rem;
}

.search-page {
  padding: 1rem 0 0;
}

.search-page-head {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

.search-page-copy {
  max-width: 46rem;
}

.search-page-copy p {
  margin-top: 0.55rem;
  line-height: 1.75;
}

.search-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.search-sidebar {
  position: sticky;
  top: 7.5rem;
}

.search-filter-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-card);
}

.search-filter-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.search-filter-group {
  display: grid;
  gap: 0.55rem;
}

.search-filter-label {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.search-filter-input,
.search-filter-select {
  width: 100%;
  min-height: 2.8rem;
  padding: 0 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
}

.search-filter-input:focus,
.search-filter-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.12);
}

.search-tabs {
  display: grid;
  gap: 0.45rem;
}

.search-tab {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 248, 244, 0.75);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.search-tab input {
  accent-color: var(--accent);
}

.search-tab.is-active {
  border-color: rgba(236, 92, 20, 0.22);
  background: rgba(236, 92, 20, 0.08);
}

.search-filter-options {
  display: grid;
  gap: 0.5rem;
  max-height: 260px;
  overflow: auto;
  padding-right: 0.3rem;
}

.search-filter-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.1rem;
}

.search-filter-option input {
  accent-color: var(--accent);
}

.search-filter-apply {
  width: 100%;
}

.search-content {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.search-section {
  display: grid;
  gap: 1rem;
}

.search-section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
}

.search-section-head h2 {
  font-size: 1.45rem;
}

.search-section-head p {
  margin-top: 0.35rem;
}

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

.search-card {
  position: relative;
  display: grid;
  gap: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.search-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 38px rgba(17, 17, 17, 0.08);
}

.search-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.search-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0%, #fff4ec 100%);
}

.search-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.search-card-body {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 0.6rem;
  padding: 1rem;
  min-width: 0;
}

.search-card-kicker {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search-card h3 {
  font-size: 1.08rem;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0;
}

.search-card p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.8rem;
  font-size: 0.95rem;
  line-height: 1.65;
}

.search-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-card-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.2rem;
}

.search-card-footer strong {
  color: var(--accent);
  font-size: 1.08rem;
  font-weight: 800;
}

.search-card-cart-form {
  position: relative;
  z-index: 2;
}

.search-card-cart-btn {
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0;
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(236, 92, 20, 0.22);
}

@media (max-width: 1080px) {
  .search-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.search-empty-state {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 101;
}

.chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(236, 92, 20, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 92, 20, 0.98), rgba(249, 122, 47, 0.95));
  color: #fff;
  box-shadow: 0 18px 38px rgba(236, 92, 20, 0.3);
}

.chat-launcher:hover {
  transform: translateY(-2px);
}

.chat-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 1.05rem;
}

.chat-launcher-copy {
  display: grid;
  gap: 0.1rem;
  text-align: left;
}

.chat-launcher-copy strong {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.chat-launcher-copy span {
  font-size: 0.78rem;
  opacity: 0.88;
}

.chat-shell {
  position: fixed;
  right: 1rem;
  bottom: 5.55rem;
  width: min(920px, calc(100vw - 2.5rem));
  max-height: min(760px, calc(100vh - 7rem));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 28px;
  border: 1px solid rgba(242, 200, 176, 0.75);
  background:
    radial-gradient(circle at top right, rgba(236, 92, 20, 0.08), transparent 30%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(17, 17, 17, 0.18);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 102;
}

.chat-shell.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-shell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  border-bottom: 1px solid rgba(242, 200, 176, 0.65);
  background: linear-gradient(180deg, rgba(255, 248, 243, 0.94), rgba(255, 255, 255, 0.96));
}

.chat-shell-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.chat-shell-avatar {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px rgba(236, 92, 20, 0.22);
  flex: none;
  line-height: 1;
  font-size: 1.05rem;
  overflow: hidden;
}

.chat-shell-avatar i {
  line-height: 1;
  display: block;
  transform: translateY(0.5px);
}

.chat-shell-brand strong {
  display: block;
  font-size: 1rem;
}

.chat-shell-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.1rem;
}

.chat-shell-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: #fff;
  color: var(--muted);
}

.chat-shell-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.chat-shell-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  padding: 1rem;
}

.chat-dashboard {
  display: grid;
  grid-template-columns: minmax(250px, 290px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 1rem;
  min-height: 0;
}

.chat-sidebar {
  display: grid;
  align-content: start;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.9rem;
  min-width: 0;
}

.chat-conversation {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 0.85rem;
  min-width: 0;
  min-height: 0;
}

.chat-panel-card {
  display: grid;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: 22px;
  border: 1px solid rgba(242, 200, 176, 0.7);
  background: linear-gradient(180deg, rgba(255, 248, 243, 0.95), rgba(255, 255, 255, 0.98));
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.04);
}

.chat-context-card {
  gap: 0.9rem;
}

.chat-context-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
}

.chat-context-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(236, 92, 20, 0.14), rgba(249, 122, 47, 0.08));
  color: var(--accent);
  font-size: 1.1rem;
}

.chat-context-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.chat-context-copy strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.chat-context-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-context-note {
  margin: 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(242, 200, 176, 0.5);
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1.65;
}

.chat-clear-button {
  width: 100%;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.15rem;
  border-radius: 18px;
}

.chat-clear-button i {
  font-size: 0.95rem;
}

.chat-thread {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  overflow: auto;
  padding-right: 0.25rem;
  min-height: 320px;
}

.chat-message {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.chat-message.is-user {
  flex-direction: row-reverse;
}

.chat-message-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.1);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  flex: none;
}

.chat-message.is-user .chat-message-badge {
  background: rgba(26, 39, 75, 0.12);
  color: var(--text);
}

.chat-message-card {
  position: relative;
  max-width: min(100%, 24rem);
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(242, 200, 176, 0.75);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.05);
}

.chat-message.is-user .chat-message-card {
  background: linear-gradient(135deg, rgba(236, 92, 20, 0.96), rgba(249, 122, 47, 0.94));
  color: #fff;
  border-color: transparent;
}

.chat-message.is-user .chat-message-card,
.chat-message.is-user .chat-message-card * {
  color: #fff;
}

.chat-message-card p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.chat-markdown {
  display: grid;
  gap: 0.75rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.chat-markdown > :first-child {
  margin-top: 0;
}

.chat-markdown > :last-child {
  margin-bottom: 0;
}

.chat-markdown p,
.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3,
.chat-markdown ul,
.chat-markdown ol,
.chat-markdown blockquote,
.chat-markdown pre {
  margin: 0;
}

.chat-markdown h1,
.chat-markdown h2,
.chat-markdown h3 {
  color: var(--text);
  line-height: 1.25;
  font-weight: 900;
}

.chat-markdown h1 {
  font-size: 1.15rem;
}

.chat-markdown h2 {
  font-size: 1.05rem;
}

.chat-markdown h3 {
  font-size: 0.98rem;
}

.chat-markdown ul,
.chat-markdown ol {
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.chat-markdown li {
  margin: 0;
}

.chat-markdown blockquote {
  padding: 0.85rem 0.95rem;
  border-left: 3px solid rgba(236, 92, 20, 0.42);
  border-radius: 14px;
  background: rgba(248, 244, 239, 0.95);
  color: var(--text);
}

.chat-markdown pre {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: #1d2330;
  color: #f5f7fb;
  overflow: auto;
}

.chat-markdown code {
  font-family: Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.92em;
}

.chat-markdown pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.chat-markdown a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
}

.chat-markdown strong {
  font-weight: 900;
}

.chat-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

.chat-message-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.chat-message-action.is-secondary {
  background: rgba(248, 244, 239, 0.95);
}

.chat-ai-rail {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.chat-rail-head strong {
  display: block;
  font-size: 0.95rem;
}

.chat-rail-head span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-recommendations {
  display: grid;
  gap: 0.6rem;
}

.chat-recommendation-empty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.8rem;
  padding: 0.85rem 0.95rem;
  border-radius: 18px;
  border: 1px dashed rgba(236, 92, 20, 0.25);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.chat-recommendation-empty i {
  color: var(--accent);
  font-size: 1rem;
}

.chat-recommendation-list {
  display: grid;
  gap: 0.55rem;
}

.chat-recommendation-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem;
  border-radius: 18px;
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: #fff;
  color: var(--text);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.chat-recommendation-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 24px rgba(17, 17, 17, 0.06);
}

.chat-recommendation-card.is-placeholder {
  border-style: dashed;
  background: rgba(255, 248, 243, 0.9);
  box-shadow: none;
}

.chat-recommendation-card.is-placeholder:hover {
  transform: none;
}

.chat-recommendation-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(236, 92, 20, 0.14), rgba(249, 122, 47, 0.08));
  color: var(--accent);
  font-size: 1.2rem;
}

.chat-recommendation-card.is-placeholder .chat-recommendation-icon {
  background: rgba(242, 200, 176, 0.12);
}

.chat-skeleton-block {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(242, 200, 176, 0.18);
}

.chat-skeleton-block::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: chatSkeletonShimmer 2.4s infinite;
}

.chat-skeleton-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.chat-skeleton-line {
  width: 72%;
  height: 0.7rem;
}

.chat-skeleton-line-lg {
  width: 88%;
}

@keyframes chatSkeletonShimmer {
  100% {
    transform: translateX(100%);
  }
}

.chat-recommendation-copy {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.chat-recommendation-copy strong {
  font-size: 0.95rem;
  line-height: 1.35;
}

.chat-recommendation-copy span {
  color: var(--muted);
  font-size: 0.82rem;
}

.chat-recommendation-link {
  position: absolute;
  inset: 0;
}

.chat-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chat-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
}

.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.chat-input {
  width: 100%;
  min-height: 3.6rem;
  max-height: 8rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(242, 200, 176, 0.85);
  background: #fff;
  color: var(--text);
  resize: vertical;
}

.chat-input:focus {
  border-color: rgba(236, 92, 20, 0.5);
  box-shadow: 0 0 0 4px rgba(236, 92, 20, 0.12);
  outline: none;
}

.chat-send {
  min-height: 3.6rem;
  padding-inline: 1rem;
  border-radius: 18px;
  white-space: nowrap;
}

.chat-guest-state {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(242, 200, 176, 0.75);
  background: linear-gradient(180deg, rgba(255, 248, 243, 0.94), rgba(255, 255, 255, 0.98));
}

.chat-guest-copy {
  display: grid;
  gap: 0.55rem;
}

.chat-guest-tag {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 1.9rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(236, 92, 20, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chat-guest-copy h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chat-guest-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.chat-guest-button {
  width: 100%;
  justify-content: center;
  gap: 0.55rem;
}

body.has-chat-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .site-shell {
    width: min(var(--content-width), calc(100% - 28px));
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .section-head {
    margin-bottom: var(--space-lg);
  }

  .button-primary,
  .button-secondary {
    width: 100%;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-form-grid {
    grid-template-columns: 1fr;
  }

  .checkout-actions {
    justify-content: stretch;
  }

  .checkout-actions .button-primary,
  .checkout-actions .button-secondary {
    width: 100%;
  }

  .checkout-summary-item {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .checkout-summary-price {
    grid-column: 2 / -1;
  }

  .checkout-payment-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .checkout-payment-card-badge {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .search-layout {
    grid-template-columns: 1fr;
  }

  .search-sidebar {
    position: static;
  }

  .search-grid {
    grid-template-columns: 1fr;
  }

  .search-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-card-cart-form {
    width: 100%;
  }

  .search-card-cart-btn {
    width: 100%;
  }

  .search-card-media {
    aspect-ratio: 4 / 3;
  }

  .search-card-body {
    padding: 1rem;
  }

  .search-section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .chat-widget {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.6rem;
  }

  .chat-launcher {
    width: 100%;
    justify-content: center;
  }

  .chat-shell {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 5rem;
    width: auto;
    max-height: calc(100vh - 6.5rem);
    border-radius: 24px 24px 20px 20px;
  }

  .chat-dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .chat-sidebar {
    order: 1;
    
  }

  .chat-conversation {
    order: 2;
  }

  .chat-thread {
    min-height: 220px;
  }

  .chat-composer {
    grid-template-columns: 1fr;
  }

  .chat-send {
    width: 100%;
  }

  .site-main-content {
    padding-top: var(--space-lg);
  }

  .client-header-top {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
  }

  .client-brand {
    justify-content: flex-start;
    justify-self: start;
    order: -1;
  }

  .client-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .client-search {
    width: 100%;
    max-width: none;
  }

  .client-header-nav .site-shell {
    justify-content: flex-start;
  }

  .home-hero {
    padding-top: 1rem;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .home-hero-copy {
    min-height: auto;
    padding: 2rem 1.25rem 1.5rem;
  }

  .home-hero-copy h1 {
    max-width: 100%;
  }

  .home-hero-copy p {
    font-size: 1rem;
  }

  .home-hero-visual {
    min-height: 280px;
    border-radius: 0;
  }

  .site-footer-top {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    padding: 2.75rem 0 2rem;
  }

  .site-footer h2 {
    font-size: 1.5rem;
  }

  .site-footer-bottom p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .products-page {
    padding-top: 0.75rem;
  }

  .contact-info-grid,
  .contact-panel-grid {
    grid-template-columns: 1fr;
  }

  .contact-info-card {
    padding: 1rem;
  }

  .contact-panel {
    padding: 1.15rem;
  }

  .products-page-toolbar {
    display: none;
  }

  .products-sort-form {
    width: 100%;
  }

  .products-sort-select {
    width: 100%;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-content-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-card-meta,
  .products-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .products-card-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .cart-toast {
    right: 0.75rem;
    left: 0.75rem;
    bottom: 0.75rem;
    min-width: 0;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .product-detail-thumb-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .product-detail-summary h1 {
    max-width: none;
    font-size: clamp(1.9rem, 9vw, 2.8rem);
  }

  .product-detail-meta-row,
  .product-detail-benefits {
    grid-template-columns: 1fr;
  }

  .product-detail-copy {
    padding: 1rem;
    border-radius: 20px;
  }

  .product-detail-content {
    padding-top: 0;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary {
    position: static;
    order: -1;
  }

  .cart-item {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 0.85rem;
  }

  .cart-item-media {
    width: 78px;
    height: 78px;
  }

  .cart-item-pricing {
    grid-column: 1 / -1;
    justify-content: start;
    padding-left: calc(78px + 0.85rem);
  }

  .cart-item-price {
    font-size: 1.25rem;
  }

  .cart-checkout-button {
    width: 100%;
  }
}
