:root {
  --bg-page: #ffffff;
  --bg-surface: #f5f5f4;
  --bg-surface-warm: #f7f6f2;
  --ink-primary: #111111;
  --ink-secondary: #484848;
  --ink-muted: #767676;
  --border-subtle: #e5e5e3;
  --border-strong: #c8c8c4;

  --nordic-blue: #0058a3;
  --nordic-blue-hover: #004682;
  --nordic-yellow: #ffdb00;
  --nordic-yellow-ink: #111111;
  --success-green: #0a7b44;

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --shadow-card: 0 2px 8px rgba(17, 17, 17, 0.04);
  --shadow-float: 0 12px 32px rgba(17, 17, 17, 0.14);
  --transition: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-primary);
  background: var(--bg-page);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button, input, select {
  font-family: inherit;
}

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

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility Bar */
.utility-bar {
  background: var(--ink-primary);
  color: #ffffff;
  font-size: 12px;
  padding: 8px 0;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.utility-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.utility-items span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.92;
}

.utility-right {
  opacity: 0.78;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-pill {
  background: var(--nordic-blue);
  color: var(--nordic-yellow);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
}

.brand-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--ink-secondary);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-muted);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  height: 44px;
  padding: 0 42px 0 44px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  font-size: 14px;
  color: var(--ink-primary);
  transition: var(--transition);
}

.search-wrap input:hover {
  background: #ececea;
}

.search-wrap input:focus {
  outline: none;
  background: #ffffff;
  border-color: var(--ink-primary);
}

.search-kbd {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-muted);
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  padding: 2px 6px;
  pointer-events: none;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.header-nav a {
  color: var(--ink-secondary);
  transition: color var(--transition);
}

.header-nav a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav-megamenu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-megamenu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px 0;
  font: inherit;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color var(--transition);
}

.nav-megamenu-trigger:hover,
.nav-megamenu-wrap.open .nav-megamenu-trigger {
  color: var(--ink-primary);
}

.nav-megamenu-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  width: min(620px, 90vw);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 20px 48px -12px rgba(15, 23, 42, 0.14);
  padding: 22px 24px;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translate(-42%, 8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.nav-megamenu-wrap:hover .nav-megamenu-panel,
.nav-megamenu-wrap.open .nav-megamenu-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-42%, 0);
}

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

.megamenu-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.megamenu-col-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.megamenu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-primary);
  text-decoration: none;
  padding: 6px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.megamenu-list a:hover {
  background: #f3f4f6;
  color: var(--ink-primary);
  text-decoration: none;
}

.megamenu-all-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  text-decoration: none;
  transition: color 0.14s ease;
}

.megamenu-all-link:hover {
  color: var(--ink-primary);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.icon-btn:hover {
  border-color: var(--ink-primary);
  background: var(--bg-surface);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--nordic-blue);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

/* Buttons */
.btn-primary, .btn-primary-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  height: 48px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-primary-sm {
  height: 42px;
  padding: 0 20px;
  font-size: 13px;
}

.btn-primary:hover, .btn-primary-sm:hover {
  background: #333333;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--ink-primary);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: var(--bg-surface);
}

.btn-full {
  width: 100%;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 64px;
  background: var(--bg-surface-warm);
  border-bottom: 1px solid var(--border-subtle);
}

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

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--nordic-blue);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-desc {
  font-size: 16px;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 500px;
}

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

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.stat-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
}

.stat-item span {
  font-size: 12px;
  color: var(--ink-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* Hero Visual & IKEA Hotspots */
.hero-image-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #eae8e1;
  box-shadow: var(--shadow-float);
}

.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-caption-pill {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(17, 17, 17, 0.78);
  color: #ffffff;
  font-size: 12px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.hotspot-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid var(--ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition);
}

.hotspot-dot span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-primary);
}

.hotspot-dot:hover {
  transform: scale(1.15);
}

.hotspot-card {
  position: absolute;
  left: 36px;
  top: -12px;
  width: 196px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  cursor: pointer;
  text-align: left;
}

.hotspot-card-left {
  left: auto;
  right: 36px;
}

.hotspot:hover .hotspot-card,
.hotspot:focus-within .hotspot-card {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hotspot-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--nordic-blue);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 2px;
  margin-bottom: 6px;
}

.hotspot-tag-yellow {
  background: var(--nordic-yellow);
  color: var(--nordic-yellow-ink);
}

.hotspot-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
}

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

.hotspot-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 4px;
}

.hotspot-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--nordic-blue);
}

/* Category & Catalog Section */
.category-section {
  padding: 64px 0;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.section-subtitle {
  margin: 0;
  color: var(--ink-muted);
  font-size: 15px;
}

.results-counter {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-secondary);
}

/* Category Strip */
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill:hover {
  border-color: var(--ink-primary);
}

.cat-pill.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

.cat-count {
  font-size: 12px;
  opacity: 0.7;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0 28px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 36px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  padding: 0 14px;
  height: 40px;
  border-radius: var(--radius-pill);
}

.select-wrap label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.select-wrap select,
.sort-wrap select {
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
  cursor: pointer;
  outline: none;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.btn-reset {
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--nordic-blue);
  cursor: pointer;
  text-decoration: underline;
}

/* Pet Grid */
.pet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 24px;
}

.pet-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.pet-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.pet-card-media {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  margin-bottom: 14px;
  cursor: pointer;
}

.pet-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.pet-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 2;
}

.badge-yellow {
  background: var(--nordic-yellow);
  color: var(--nordic-yellow-ink);
}

.badge-blue {
  background: var(--nordic-blue);
  color: #ffffff;
}

.badge-neutral {
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
}

.fav-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
  color: var(--ink-primary);
}

.fav-toggle:hover {
  transform: scale(1.08);
  background: #ffffff;
}

.fav-toggle.active {
  color: #d92d20;
  border-color: #d92d20;
}

.quick-view-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(17, 17, 17, 0.88);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 10px;
  border-radius: var(--radius-pill);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: var(--transition);
}

.pet-card-media:hover .quick-view-bar {
  opacity: 1;
  transform: translateY(0);
}

.pet-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.pet-title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.pet-name {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0;
  cursor: pointer;
}

.pet-name:hover {
  text-decoration: underline;
}

.pet-gender {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.pet-breed {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 2px 0 10px;
}

.pet-traits {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.trait-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 3px;
}

.pet-price-block {
  margin-top: auto;
  padding-top: 8px;
}

.pet-price {
  display: inline-flex;
  align-items: flex-start;
  gap: 3px;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.pet-price .currency {
  font-size: 12px;
  margin-top: 2px;
}

.pet-price .amount {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.pet-fee-note {
  font-size: 11px;
  color: var(--ink-muted);
  margin-left: 6px;
}

.pet-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.pet-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-secondary);
  margin: 4px 0 0;
}

.pet-rating-row strong {
  color: var(--ink-primary);
  font-weight: 700;
}

.rating-star,
.detail-stars {
  color: #f59e0b;
  letter-spacing: 0.02em;
}

.rating-sep {
  color: var(--ink-muted);
}

.detail-rating-bar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 16px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success-green);
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.empty-state p {
  margin: 0 0 20px;
  color: var(--ink-muted);
}

/* Inspiration Section */
.inspiration-section {
  padding: 64px 0;
  background: var(--bg-surface);
}

.eyebrow-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--nordic-blue);
  margin-bottom: 8px;
}

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

.inspo-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.inspo-card-accent {
  background: var(--nordic-blue);
  color: #ffffff;
  border-color: var(--nordic-blue);
}

.inspo-number {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  opacity: 0.6;
  margin-bottom: 16px;
}

.inspo-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
}

.inspo-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 24px;
  opacity: 0.85;
  flex: 1;
}

.inspo-btn {
  align-self: flex-start;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--nordic-blue);
  cursor: pointer;
}

.inspo-card-accent .inspo-btn {
  color: var(--nordic-yellow);
}

.inspo-btn:hover {
  text-decoration: underline;
}

/* Steps Section */
.steps-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.steps-header {
  margin-bottom: 36px;
}

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

.step-card {
  padding: 28px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--nordic-yellow);
  color: var(--ink-primary);
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 16px;
}

.step-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  padding: 56px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 16px 0 0;
  max-width: 320px;
}

.footer-col h5 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.footer-col a:hover {
  text-decoration: underline;
  color: var(--ink-primary);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(4px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  border-radius: var(--radius-md);
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease;
}

.modal-backdrop.open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.modal-close:hover {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.3);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
}

.modal-image-col {
  background: var(--bg-surface);
  display: flex;
  align-items: stretch;
}

.modal-image-col img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.modal-info-col {
  padding: 36px;
}

.modal-spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.modal-spec-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.modal-spec-table td {
  padding: 9px 0;
}

.modal-spec-table td:first-child {
  color: var(--ink-muted);
  width: 42%;
}

.modal-spec-table td:last-child {
  font-weight: 600;
  text-align: right;
}

.care-list {
  margin: 12px 0 24px;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-secondary);
}

.care-list li {
  margin-bottom: 6px;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

/* Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.45);
  z-index: 110;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.drawer-panel {
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.14);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.drawer-backdrop.open .drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-header h3 {
  font-family: var(--font-display);
  margin: 0 0 4px;
  font-size: 19px;
}

.drawer-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.modal-close-inline {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.18);
  color: #0f172a;
  font-size: 20px;
  line-height: 1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.modal-close-inline:hover {
  background: #e2e8f0;
}

.drawer-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-fav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.drawer-fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.drawer-fav-item img {
  width: 56px;
  height: 68px;
  object-fit: cover;
  border-radius: 3px;
}

.drawer-fav-meta {
  flex: 1;
}

.drawer-fav-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 14px;
}

.drawer-fav-meta span {
  font-size: 12px;
  color: var(--ink-muted);
}

.drawer-remove-btn {
  background: transparent;
  border: none;
  color: var(--ink-muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
}

.drawer-empty {
  padding: 18px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--ink-secondary);
}

/* Form */
.visit-form h4 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  font-size: 16px;
}

.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-secondary);
  margin-bottom: 6px;
}

.form-group input,
.form-group select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.visit-success {
  text-align: center;
  padding: 28px 20px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.success-check {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--success-green);
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink-primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 90;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 1080px) {
  .pet-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .header-nav {
    display: none;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }
  .pet-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
  .inspiration-grid,
  .steps-grid,
  .footer-grid,
  .modal-body {
    grid-template-columns: 1fr;
  }
  .header-inner {
    gap: 10px;
  }
  .search-wrap {
    max-width: none;
  }
  .brand-sub {
    display: none;
  }
}

@media (max-width: 480px) {
  .pet-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}


/* Marketplace Add-to-Cart, Quantity & Checkout Summary */
.badge-neutral-count {
  background: var(--bg-surface);
  color: var(--ink-primary);
}

.icon-btn.active-fav {
  border-color: #d92d20;
  color: #d92d20;
  background: #fef3f2;
}

.cart-trigger-btn .badge-count {
  background: var(--nordic-yellow);
  color: var(--ink-primary);
}

.card-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.btn-card-cart {
  flex: 1;
  height: 38px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink-primary);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-cart:hover {
  background: var(--ink-primary);
  color: #ffffff;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  height: 30px;
}

.qty-btn {
  width: 28px;
  height: 100%;
  border: none;
  background: var(--bg-surface);
  font-weight: 700;
  cursor: pointer;
  color: var(--ink-primary);
}

.qty-btn:hover {
  background: #e5e5e3;
}

.qty-val {
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.cart-summary-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 10px 0;
}

.summary-total {
  font-size: 16px;
  color: var(--ink-primary);
}

.summary-total strong {
  font-family: var(--font-display);
  font-size: 18px;
}

.invoice-pill {
  display: inline-block;
  background: var(--nordic-blue);
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin: 6px 0 12px;
}

/* Multi-Page Architecture: Home Category Cards, Catalog Sidebar, Pagination, Product Detail */
.category-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-showcase-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cat-showcase-card:hover {
  border-color: var(--ink-primary);
  transform: translateY(-2px);
}

.cat-showcase-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--nordic-blue);
  margin-bottom: 8px;
}

.cat-showcase-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 6px;
}

.cat-showcase-card p {
  font-size: 13px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}

.cat-showcase-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-primary);
}

.section-pad {
  padding: 56px 0;
}

.section-border-top {
  border-top: 1px solid var(--border-subtle);
}

/* Breadcrumb */
.breadcrumb-bar {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-page);
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
}

.breadcrumb a:hover {
  color: var(--ink-primary);
  text-decoration: underline;
}

.breadcrumb strong {
  color: var(--ink-primary);
}

/* Catalog Page Sidebar Layout */
.catalog-page-section {
  padding: 36px 0 64px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.catalog-main {
  min-width: 0;
}

.filter-sidebar {
  position: sticky;
  top: 96px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-header h3 {
  font-family: var(--font-display);
  font-size: 16px;
  margin: 0;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-secondary);
  margin-bottom: 8px;
}

.filter-group select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-primary);
}

.catalog-main-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Pagination */
.pagination-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 40px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: #ffffff;
  color: var(--ink-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
  border-color: var(--ink-primary);
}

.page-btn.active {
  background: var(--ink-primary);
  border-color: var(--ink-primary);
  color: #ffffff;
}

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

/* Dedicated Product Detail Page */
.product-detail-section {
  padding: 40px 0 64px;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-gallery {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-buy-box {
  padding-top: 4px;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.cross-sell-section {
  padding: 56px 0 64px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

@media (max-width: 1080px) {
  .category-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .catalog-main-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .category-cards-grid,
  .catalog-main-grid {
    grid-template-columns: 1fr;
  }
}

/* Dedicated Payment Page (pembayaran.html) */
.payment-page-section {
  padding: 40px 0 72px;
}

.payment-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.payment-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 32px;
}

.payment-timer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 13px;
}

.payment-timer-val {
  font-family: var(--font-display);
  font-weight: 800;
  color: #b45309;
  font-size: 15px;
}

.va-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.va-number {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--ink-primary);
}

.qris-box {
  text-align: center;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 18px 0;
}

.qris-frame {
  display: inline-block;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  margin: 12px 0;
}

.payment-steps-list {
  margin: 16px 0 28px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.7;
}

.order-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.order-summary-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  margin: 0 0 16px;
}

.payment-status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: #fef3c7;
  color: #92400e;
}

.payment-status-badge.paid {
  background: #d1fae5;
  color: #065f46;
}

@media (max-width: 900px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }
}

/* Order Tracking Timeline (lacak.html) */
.track-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 28px;
}

.track-step {
  position: relative;
  padding: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  opacity: 0.55;
}

.track-step.done {
  opacity: 1;
  background: #ffffff;
  border-color: var(--nordic-blue);
}

.track-step.current {
  opacity: 1;
  background: #eff6ff;
  border-color: var(--nordic-blue);
}

.track-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--border-strong);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.track-step.done .track-step-num,
.track-step.current .track-step-num {
  background: var(--nordic-blue);
}

.track-step strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.track-step span {
  font-size: 11px;
  color: var(--ink-muted);
}

@media (max-width: 768px) {
  .track-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

/* =========================================================
   MOBILE NATIVE-APP EXPERIENCE (PRODUCT-FIRST, NO CLUTTER)
   ========================================================= */
.mobile-bottom-nav {
  display: none;
}

.mobile-filter-toggle-btn {
  display: none;
}

@media (max-width: 900px) {
  body[data-page] {
    padding-bottom: 74px;
  }

  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
  }

  .mobile-nav-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 4px 2px;
    background: none;
    border: none;
    font: inherit;
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ink-muted);
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav-item.active {
    color: var(--ink-primary);
  }

  .mobile-nav-badge {
    position: absolute;
    top: 0;
    right: 18%;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ink-primary);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-nav-badge:empty,
  .mobile-nav-badge[data-zero="true"] {
    display: none;
  }

  .mobile-filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 40px;
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-primary);
    cursor: pointer;
  }

  .filter-sidebar {
    display: none;
    margin-bottom: 14px;
  }

  .filter-sidebar.mobile-open {
    display: block;
  }

  .toast {
    bottom: 82px;
  }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }

  .container {
    padding: 0 14px;
    max-width: 100%;
  }

  /* Strip utility bar & header clutter on mobile */
  .utility-bar,
  .search-kbd,
  .header-actions {
    display: none;
  }

  .header-inner {
    height: 58px;
    gap: 10px;
  }

  .brand-logo {
    flex-shrink: 0;
  }

  .brand-badge {
    font-size: 11px;
    padding: 6px 10px;
  }

  .search-wrap {
    height: 38px;
    min-width: 0;
    flex: 1;
  }

  .search-wrap input {
    font-size: 13px;
    min-width: 0;
    width: 100%;
  }

  /* Compact Hero: straight to the point */
  .hero-section {
    padding: 14px 0 18px;
  }

  .hero-grid {
    gap: 14px;
  }

  .hero-grid > * {
    min-width: 0;
  }

  .hero-eyebrow,
  .hero-desc,
  .hero-stats,
  .hero-caption-pill,
  .hero-cta-group .btn-secondary {
    display: none;
  }

  .hero-title {
    font-size: 22px;
    line-height: 1.22;
    margin-bottom: 10px;
  }

  .hero-cta-group {
    margin-bottom: 0;
  }

  .hero-cta-group .btn-primary {
    height: 38px;
    padding: 0 16px;
    font-size: 13px;
  }

  .hero-image-frame {
    aspect-ratio: 16 / 9;
    max-height: 200px;
    border-radius: 12px;
  }

  /* Compact sections */
  .section-pad {
    padding: 22px 0;
  }

  .section-header-row {
    margin-bottom: 14px;
    gap: 10px;
    align-items: center;
  }

  .section-title {
    font-size: 16.5px;
    line-height: 1.25;
  }

  .inspo-btn {
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
  }

  .section-subtitle,
  .eyebrow-tag,
  .how-it-works-section,
  .inspiration-section {
    display: none;
  }

  /* Symmetric 2-column category grid on mobile (no cut-off cards) */
  .category-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .cat-showcase-card {
    min-width: 0;
    padding: 13px 14px;
    border-radius: 10px;
  }

  .cat-showcase-card p,
  .cat-showcase-label {
    display: none;
  }

  .cat-showcase-card h3 {
    font-size: 14.5px;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .cat-showcase-link {
    font-size: 11.5px;
  }

  /* Always 2-column native product grid on mobile */
  .pet-grid,
  .catalog-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px 10px !important;
  }

  .pet-card,
  .pet-card-body,
  .pet-card-top {
    min-width: 0;
    max-width: 100%;
  }

  .pet-img-wrap {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
  }

  .pet-card-body {
    padding: 8px 2px 2px;
  }

  .pet-card-top {
    gap: 4px;
  }

  .pet-title-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pet-name {
    min-width: 0;
    width: 100%;
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pet-gender {
    font-size: 11px;
    flex-shrink: 0;
  }

  .pet-subtitle {
    font-size: 11.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
  }

  .pet-traits,
  .pet-shipping-note {
    display: none;
  }

  .pet-price {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .btn-add-cart {
    height: 34px;
    font-size: 12px;
    border-radius: 8px;
  }

  .fav-btn {
    width: 30px;
    height: 30px;
    top: 8px;
    right: 8px;
  }

  .pet-badge {
    top: 8px;
    left: 8px;
    font-size: 9.5px;
    padding: 3px 7px;
  }

  /* Catalog top bar compact */
  .catalog-header-section {
    padding: 14px 0;
  }

  .catalog-main-section {
    padding: 14px 0 28px;
  }

  .catalog-toolbar {
    gap: 8px;
    margin-bottom: 12px;
  }

  /* Drawer full-width feel on mobile */
  .drawer-panel {
    width: 100%;
    max-width: 100vw;
  }

  .drawer-body {
    padding-bottom: 32px;
  }

  /* Product detail page mobile anti-overflow */
  .product-detail-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
  }

  .product-detail-grid > *,
  .product-gallery,
  .product-buy-box {
    min-width: 0;
    max-width: 100%;
  }

  .product-gallery img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }

  .product-buy-box .section-title {
    font-size: 22px;
  }

  .spec-row {
    gap: 12px;
    font-size: 13px;
  }

  .spec-row strong {
    text-align: right;
    word-break: break-word;
  }

  .product-detail-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    max-width: 100%;
  }

  .product-detail-actions .detail-buy-btn {
    flex: 1.2;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .product-detail-actions .detail-cart-btn {
    flex: 1;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    font-size: 13px;
    white-space: nowrap;
    border-color: rgba(15, 23, 42, 0.16);
  }

  .product-detail-actions .detail-icon-btn {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-color: rgba(15, 23, 42, 0.16);
  }
}

.product-detail-actions .detail-buy-btn,
.product-detail-actions .detail-cart-btn {
  height: 46px;
  white-space: nowrap;
}

.product-detail-actions .detail-buy-btn {
  flex: 1.25;
}

.product-detail-actions .detail-cart-btn {
  flex: 1;
  border-color: rgba(15, 23, 42, 0.16);
}

.product-detail-actions .detail-icon-btn {
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(15, 23, 42, 0.16);
}

/* =========================================================
   NON-INTRUSIVE LIVE CHAT (HEADER TRIGGER + SLIDE-OVER DRAWER)
   ========================================================= */
.header-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink-primary);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.chat-online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
  box-shadow: 0 0 0 2px #dcfce7;
  flex-shrink: 0;
}

.header-chat-btn:hover {
  background: var(--bg-surface);
}

.chat-drawer-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 82%;
}

.chat-msg-row.visitor {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-row.admin {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-bubble {
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-msg-row.visitor .chat-msg-bubble {
  background: var(--ink-primary);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.chat-msg-row.admin .chat-msg-bubble {
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-msg-time {
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.chat-drawer-composer {
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-drawer-composer input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 13.5px;
}

.chat-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--ink-muted);
}

.chat-status-pill.online {
  background: #dcfce7;
  color: #166534;
}

@media (max-width: 768px) {
  .header-chat-btn {
    height: 36px;
    padding: 0 10px;
    font-size: 12px;
  }

  .header-chat-btn .chat-btn-label {
    display: none;
  }
}

.chat-attach-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--ink-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.chat-attach-btn:hover {
  background: #f1f5f9;
  color: var(--ink-primary);
}

.chat-product-picker {
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: 10px 14px;
}

.chat-picker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 8px;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.chat-picker-item:hover {
  background: #f1f5f9;
}

.chat-pending-bar {
  padding: 8px 14px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.chat-product-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--ink-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
  text-decoration: none;
  min-width: 200px;
}

.chat-product-card img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.chat-image-attachment {
  display: block;
  max-width: 220px;
  max-height: 220px;
  border-radius: 10px;
  object-fit: cover;
  margin-bottom: 6px;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.08);
}


/* Flash Sale & Discount Badges */
.flash-sale-section {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}
.flash-sale-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #172554 100%);
  color: #ffffff;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.14);
}
.flash-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.48;
  z-index: 0;
  pointer-events: none;
  display: none;
}
.flash-banner-bg.has-bg {
  display: block;
}
.flash-banner-bg.has-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 52%, rgba(15, 23, 42, 0.35) 100%);
}
.flash-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 219, 0, 0.14);
  border: 1px solid rgba(255, 219, 0, 0.35);
  color: #ffdb00;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.flash-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.35);
}
.flash-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}
.flash-bolt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ffdb00 0%, #f59e0b 100%);
  color: #111111;
  box-shadow: 0 4px 14px rgba(255, 219, 0, 0.35);
  flex-shrink: 0;
}
.flash-banner-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
}
.flash-banner-sub {
  margin: 0;
  font-size: 13px;
  color: #cbd5e1;
}
.flash-sale-banner-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.flash-countdown {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-display);
}
.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.cd-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffdb00;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.cd-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
}
.cd-sep {
  color: #ffdb00;
  font-weight: 800;
  font-size: 20px;
  line-height: 42px;
}
.flash-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffdb00;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.flash-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 219, 0, 0.35);
}
.flash-sale-grid .pet-card {
  border-color: #fee2e2;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.05);
}
@media (max-width: 640px) {
  .flash-sale-banner {
    padding: 18px;
    border-radius: 12px;
  }
  .cd-box {
    min-width: 38px;
    height: 38px;
    font-size: 16px;
  }
}
.price-discount-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.price-strike {
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.discount-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.badge-flash {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* Smooth product card image swap on hover */
.pet-card-media img {
  transition: opacity 0.18s ease, transform 0.35s ease;
}
.pet-badge {
  pointer-events: none;
}
