/* ==========================================================================
   PawPort Direct — US Multi-Brand Mobile Pet Storefront
   美学与配色方案：美国 Facebook 宠物用户最喜爱且转化最高的经典配色体系
   - 底色：柔和温暖米白（#F8F7F4）与纯净白卡片（#FFFFFF）
   - 品牌主色：美式宠护信赖钴蓝 / Chewy 同系深海蓝（#1C49C2 / #143796）
   - 强调色：温暖亲和日落橙（#E8642C）—— 仅用于核心购买按钮与省钱标签
   - 零廉价大红大黄横幅，零虚假紧迫感元素
   ========================================================================== */

:root {
  /* 基础色调：温暖清爽米白 + 柔和浅蓝灰 */
  --bg-page: #EBEFF5;
  --bg-shell: #F8F7F4;
  --bg-surface: #FFFFFF;
  --bg-soft: #F1F4F9;
  --bg-blue-tint: #EEF3FC;
  --bg-warm-tint: #FFF4EE;

  /* 品牌主色：美区宠物主最具信赖感的 Chewy 宠护蓝 */
  --brand-primary: #1C49C2;
  --brand-primary-dark: #143694;
  --brand-primary-light: #3563DE;

  /* 高对比度强调色：温暖亲和琥珀橙（仅用于购买按钮和省钱锚点） */
  --accent-cta: #E8642C;
  --accent-cta-hover: #CE531F;
  --accent-save-bg: #FFEFE6;
  --accent-save-text: #B84214;

  /* 文字与边框 */
  --text-primary: #1B2432;
  --text-secondary: #4D596B;
  --text-muted: #768294;
  --border-subtle: #E2E7F0;
  --border-strong: #CBD4E3;

  /* 星级与状态 */
  --star-gold: #F2A318;
  --success-green: #16794F;
  --warning-amber: #C06E12;

  /* 圆角与阴影 */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 10px rgba(24, 41, 74, 0.055);
  --shadow-elevated: 0 10px 30px rgba(24, 41, 74, 0.14);

  /* 字体体系 */
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* ==========================================================================
   纯移动端外壳（手机全屏，桌面预览居中 430px 视口）
   ========================================================================== */
.mobile-viewport-wrap {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  background: radial-gradient(circle at top, #EEF2F9 0%, #E1E7F2 100%);
}

.mobile-app {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg-shell);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 48px rgba(20, 40, 80, 0.12);
  overflow-x: clip;
}

@media (max-width: 460px) {
  .mobile-viewport-wrap {
    background: var(--bg-shell);
  }
  .mobile-app {
    max-width: 100%;
    box-shadow: none;
  }
}

/* ==========================================================================
   顶部克制公告条
   ========================================================================== */
.top-trust-bar {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.top-trust-bar .dot {
  opacity: 0.5;
}

/* ==========================================================================
   极简粘性导航栏
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-main {
  height: 56px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-left, .header-right {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 78px;
}

.header-right {
  justify-content: flex-end;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  position: relative;
  transition: background 0.16s ease;
}

.icon-btn:active {
  background: var(--bg-soft);
}

.brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand-wordmark {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-primary);
}

.brand-wordmark span {
  color: var(--accent-cta);
}

.brand-tagline {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-badge {
  position: absolute;
  top: 4px;
  right: 3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.cart-badge.hidden {
  display: none;
}

/* 横向极简类目导航胶囊 */
.category-strip {
  display: flex;
  gap: 8px;
  padding: 8px 14px 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

.cat-pill {
  flex: 0 0 auto;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  transition: all 0.16s ease;
  white-space: nowrap;
}

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

/* 多品牌筛选条 */
.brand-filter-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 12px;
}

.brand-filter-bar::-webkit-scrollbar {
  display: none;
}

.brand-chip {
  flex: 0 0 auto;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
}

.brand-chip.active {
  background: var(--bg-blue-tint);
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}

/* ==========================================================================
   视图容器
   ========================================================================== */
.view-section {
  display: none;
  flex: 1;
}

.view-section.active {
  display: block;
}

/* ==========================================================================
   首页 Hero 区域
   ========================================================================== */
.hero-card {
  margin: 12px 14px 14px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #E6ECF5;
  overflow: hidden;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-pill-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  color: var(--brand-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 10px rgba(20, 40, 80, 0.14);
}

.hero-body {
  padding: 17px 16px 19px;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 6px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.hero-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
  line-height: 1.5;
}

/* 首页合作品牌背书条 */
.hero-brands-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.hero-brand-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--bg-soft);
  border: 1px solid var(--border-subtle);
  padding: 3px 9px;
  border-radius: var(--radius-xs);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:active {
  background: var(--accent-cta-hover);
  transform: scale(0.99);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-blue-tint);
  color: var(--brand-primary);
  border: 1px solid #CEDCF6;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* 信任四宫格条 */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 14px 16px;
}

.trust-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.trust-chip-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--bg-blue-tint);
  color: var(--brand-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-chip-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.trust-chip-sub {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
  margin-top: 1px;
}

/* ==========================================================================
   首页 2×2 品类视觉入口 + 紧凑双列商品网格（适配 30–100+ 款商品不臃肿）
   ========================================================================== */
.cat-grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.cat-tile {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #E6ECF5;
  border: 1px solid var(--border-subtle);
  text-align: left;
  cursor: pointer;
}

.cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.cat-tile:active img {
  transform: scale(1.03);
}

.cat-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 28, 54, 0.82) 0%, rgba(16, 28, 54, 0.12) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 11px 11px 10px;
  color: #FFFFFF;
}

.cat-tile-name {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.2;
}

.cat-tile-count {
  font-size: 11px;
  opacity: 0.88;
  margin-top: 2px;
}

.product-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.pcard-mini {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.pcard-mini-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #EAF0F8;
  overflow: hidden;
  cursor: pointer;
}

.pcard-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pcard-mini-save {
  position: absolute;
  top: 7px;
  right: 7px;
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
}

.pcard-mini-body {
  padding: 9px 10px 10px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pcard-mini-brand {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-primary);
  margin-bottom: 2px;
}

.pcard-mini-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.pcard-mini-rating {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.pcard-mini-rating .st {
  color: var(--star-gold);
}

.pcard-mini-price-row {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}

.pcard-mini-now {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.pcard-mini-orig {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pcard-mini-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
}

.pcard-mini-btn-view {
  background: var(--bg-blue-tint);
  color: var(--brand-primary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 6px;
  border-radius: 7px;
  text-align: center;
}

.pcard-mini-btn-add {
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 7px;
}

/* 独立分类/全部商品列表页工具栏 */
.catalog-toolbar {
  padding: 12px 14px 10px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-search-row {
  display: flex;
  gap: 8px;
  margin-bottom: 9px;
}

.catalog-search-input {
  flex: 1;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 13.5px;
  outline: none;
}

.catalog-search-input:focus {
  border-color: var(--brand-primary);
  background: #FFFFFF;
}

.catalog-sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.catalog-result-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.catalog-sort-select {
  padding: 6px 9px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.load-more-wrap {
  margin-top: 14px;
  text-align: center;
}

/* ==========================================================================
   区块标题与多品牌商品卡片
   ========================================================================== */
.section-block {
  padding: 6px 14px 22px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 0;
}

.section-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 3px 0 0;
}

.product-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.product-card-img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #EAF0F8;
  overflow: hidden;
  cursor: pointer;
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: var(--brand-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.card-save-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
}

.product-card-body {
  padding: 13px 14px 15px;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.brand-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-primary);
  background: var(--bg-blue-tint);
  padding: 2px 8px;
  border-radius: var(--radius-xs);
}

.card-rating-row {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.stars {
  color: var(--star-gold);
  letter-spacing: 0.03em;
  font-size: 12.5px;
}

.rating-num {
  font-weight: 700;
  color: var(--text-primary);
}

.review-count {
  color: var(--text-muted);
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text-primary);
  margin: 0 0 5px;
  cursor: pointer;
}

.product-card-spec-line {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0 0 11px;
}

.price-anchor-box {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.price-left {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.price-now {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.price-retail {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-save-pill {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-save-bg);
  color: var(--accent-save-text);
  padding: 3px 7px;
  border-radius: var(--radius-xs);
}

.price-ship-note {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
  white-space: nowrap;
}

.card-cta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.btn-card-view {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.btn-card-quickadd {
  background: var(--accent-cta);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 700;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

/* ==========================================================================
   核心武器模块一：Why We Cost Less 价格构成柱状对比图
   ========================================================================== */
.cost-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-card);
}

.cost-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-primary);
  background: var(--bg-blue-tint);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.cost-lead {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 6px 0 16px;
}

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

.bar-group:last-of-type {
  margin-bottom: 12px;
}

.bar-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.bar-label-row .price-tag {
  font-size: 14px;
  font-weight: 800;
}

.bar-label-row .price-tag.direct {
  color: var(--accent-cta);
}

.stacked-bar {
  height: 28px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  background: #ECEFF5;
}

.bar-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
}

.seg-factory { background: #1C49C2; }
.seg-warehouse { background: #4672E4; }
.seg-direct-margin { background: #81A2F2; color: #12296B; }
.seg-amz-fee { background: #CBD4E3; color: #2D3849; }
.seg-brand-tax { background: #DFE5F0; color: #3D495C; }
.seg-saved-space {
  background: var(--accent-save-bg);
  color: var(--accent-save-text);
  border-left: 1.5px dashed #E8642C;
  font-size: 10.5px;
  font-weight: 800;
}

.cost-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cost-callout {
  margin-top: 12px;
  padding: 10px 12px;
  background: var(--bg-blue-tint);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--brand-primary-dark);
  line-height: 1.45;
}

/* ==========================================================================
   核心武器模块二：多品牌同品类横向对比矩阵 + 跨平台全网比价表
   ========================================================================== */
.compare-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.compare-head-intro {
  padding: 16px 16px 12px;
}

.compare-mode-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: var(--bg-soft);
  padding: 4px;
  border-radius: var(--radius-sm);
  margin: 10px 0 10px;
}

.compare-mode-btn {
  padding: 8px 8px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.compare-mode-btn.active {
  background: var(--bg-surface);
  color: var(--brand-primary);
  box-shadow: 0 1px 4px rgba(20, 40, 80, 0.1);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.compare-table th {
  padding: 10px 8px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-soft);
  color: var(--text-secondary);
  vertical-align: top;
}

.compare-table th.col-us {
  background: var(--brand-primary);
  color: #FFFFFF;
  text-align: center;
}

.compare-table th.col-them {
  text-align: center;
}

.compare-table th.col-model {
  text-align: center;
  background: #F6F8FC;
  color: var(--text-primary);
  border-left: 1px solid var(--border-subtle);
  width: 34%;
}

.compare-model-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  margin: 0 auto 5px;
  border: 1px solid var(--border-subtle);
}

.compare-model-brand {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: var(--bg-blue-tint);
  padding: 1px 6px;
  border-radius: 4px;
  margin-bottom: 3px;
}

.compare-model-name {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.compare-model-select {
  width: 100%;
  margin-top: 6px;
  padding: 5px 6px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 700;
  outline: none;
  cursor: pointer;
}

.compare-model-select:focus {
  border-color: var(--brand-primary);
}

.compare-count-hint {
  padding: 8px 12px;
  background: var(--bg-blue-tint);
  color: var(--brand-primary-dark);
  font-size: 11.5px;
  font-weight: 600;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.compare-expand-bar {
  padding: 10px 14px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.compare-expand-btn {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-blue-tint);
}

.compare-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table td.spec-name {
  font-weight: 700;
  color: var(--text-primary);
  width: 32%;
}

.compare-table td.col-us {
  background: #F2F6FE;
  color: var(--brand-primary-dark);
  font-weight: 700;
  text-align: center;
}

.compare-table td.col-them {
  color: var(--text-muted);
  text-align: center;
}

.compare-table td.col-model-val {
  text-align: center;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
}

.compare-table tr.price-row td {
  background: var(--bg-warm-tint);
  font-weight: 800;
  font-size: 13px;
}

.compare-table tr.price-row td.col-us,
.compare-table tr.price-row td.col-model-val {
  color: var(--accent-cta);
  font-size: 14px;
}

.compare-retail-strike {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-top: 2px;
}

.btn-mini-compare {
  display: inline-block;
  margin-top: 6px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   商品详情页 (PDP)
   ========================================================================== */
.pdp-back-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-primary);
}

.pdp-gallery {
  position: relative;
  background: #EAF0F8;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pdp-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 14px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.pdp-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  flex-shrink: 0;
  background: #E6ECF5;
}

.pdp-thumb.active {
  border-color: var(--brand-primary);
}

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

.pdp-core {
  padding: 12px 14px 18px;
}

.pdp-title {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.24;
  color: var(--text-primary);
  margin: 6px 0 8px;
}

.pdp-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.pdp-price-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  margin-bottom: 14px;
}

.pdp-price-top {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.pdp-price-now {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

.pdp-price-retail {
  font-size: 13.5px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.pdp-price-save {
  background: var(--accent-save-bg);
  color: var(--accent-save-text);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.pay-in-4 {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pay-in-4 strong {
  color: var(--text-primary);
}

/* SKU 规格选择 */
.variant-section {
  margin-bottom: 14px;
}

.variant-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.variant-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  padding: 9px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.14s ease;
}

.variant-chip.active {
  border-color: var(--brand-primary);
  background: var(--bg-blue-tint);
  color: var(--brand-primary-dark);
}

/* 前置透明美国仓物流框 */
.us-shipping-box {
  background: var(--bg-blue-tint);
  border: 1px solid #CCDCF8;
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ship-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--brand-primary-dark);
}

.ship-line strong {
  font-weight: 700;
}

/* 购买按钮下的快捷支付与安全背书 */
.payment-trust-block {
  margin-top: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  text-align: center;
}

.payment-icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.pay-badge {
  height: 24px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid #D9E1EE;
  background: #FFFFFF;
  font-size: 10.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.01em;
}

.pay-badge.apple { background: #111; color: #FFF; border-color: #111; }
.pay-badge.shop { background: #5A31F4; color: #FFF; border-color: #5A31F4; }
.pay-badge.paypal { background: #FFC439; color: #003087; border-color: #F2B629; }
.pay-badge.visa { color: #1A1F71; }
.pay-badge.mc { color: #C9301A; }
.pay-badge.amex { background: #006FCF; color: #FFF; border-color: #006FCF; }

.ssl-caption {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* 30 天无忧试用 + 1 年质保条 */
.warranty-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.warranty-pill {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 11px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.warranty-pill strong {
  display: block;
  font-size: 12.5px;
  color: var(--brand-primary);
  margin-bottom: 2px;
}

/* ==========================================================================
   动态痛点演示（Before / After 滑块 + 动效 3 步）
   ========================================================================== */
.demo-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.ba-stage {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #E6ECF5;
  margin: 12px 0;
  user-select: none;
  touch-action: pan-y;
}

.ba-visual {
  position: relative;
  height: 210px;
}

.ba-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
}

.ba-before {
  clip-path: inset(0 50% 0 0);
}

.ba-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-before .ba-bg-img {
  filter: saturate(0.5) contrast(0.92) sepia(0.15);
}

.ba-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 28, 48, 0.76) 0%, rgba(18, 28, 48, 0.12) 55%, transparent 100%);
}

.ba-label {
  position: absolute;
  top: 11px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  z-index: 3;
}

.ba-label.left {
  left: 11px;
  background: rgba(27, 36, 50, 0.85);
  color: #FFFFFF;
}

.ba-label.right {
  right: 11px;
  background: var(--brand-primary);
  color: #FFFFFF;
}

.ba-caption {
  position: relative;
  z-index: 3;
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.32;
  max-width: 44%;
  background: rgba(16, 26, 46, 0.55);
  backdrop-filter: blur(4px);
  padding: 5px 8px;
  border-radius: 7px;
}

.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #FFFFFF;
  z-index: 5;
  pointer-events: none;
}

.ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--brand-primary);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}

.motion-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.motion-step {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.motion-step.active-pulse {
  background: var(--bg-blue-tint);
  border-color: var(--brand-primary);
}

.motion-step-num {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.motion-step-text {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* ==========================================================================
   适配范围、安全细节与 What's in the Box
   ========================================================================== */
.spec-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.spec-badge-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px 12px;
}

.spec-badge-k {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.spec-badge-v {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3px;
  line-height: 1.3;
}

.box-flatlay-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  border: 1px solid var(--border-subtle);
}

.box-items-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.box-items-list li {
  background: var(--bg-soft);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.box-items-list .idx {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   真实感 4.8★ 买家秀评价区
   ========================================================================== */
.reviews-summary-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 15px;
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.rev-score-big {
  text-align: center;
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
}

.rev-score-num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
}

.rev-score-stars {
  color: var(--star-gold);
  font-size: 13px;
  margin: 4px 0 3px;
}

.rev-score-meta {
  font-size: 11px;
  color: var(--text-muted);
}

.rev-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rev-bar-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.rev-bar-track {
  flex: 1;
  height: 7px;
  background: #E8EDF5;
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.rev-bar-fill {
  height: 100%;
  background: var(--star-gold);
  border-radius: var(--radius-pill);
}

.rev-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.rev-filters::-webkit-scrollbar {
  display: none;
}

.rev-filter-btn {
  flex: 0 0 auto;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

.rev-filter-btn.active {
  background: var(--brand-primary);
  color: #FFFFFF;
  border-color: var(--brand-primary);
}

/* 买家秀实拍横滑墙 & 分页加载 */
.review-photo-strip-wrap {
  margin-bottom: 12px;
}

.review-photo-strip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-photo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.review-photo-strip::-webkit-scrollbar {
  display: none;
}

.review-strip-thumb {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

.reviews-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}

.reviews-actions-row.single {
  grid-template-columns: 1fr;
}

.review-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.review-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.review-author {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--success-green);
  margin-left: 6px;
}

.review-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.review-breed-pill {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.review-text {
  font-size: 13.5px;
  color: var(--text-primary);
  line-height: 1.5;
  margin: 0 0 10px;
}

.review-photo {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
}

/* ==========================================================================
   底部美国商城页脚
   ========================================================================== */
.site-footer {
  background: #122347;
  color: #DAE3F5;
  padding: 28px 16px 36px;
  margin-top: auto;
}

.footer-brand {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.footer-brand span {
  color: #FF8C5A;
}

.footer-mission {
  font-size: 12.5px;
  color: #B4C3DE;
  line-height: 1.55;
  margin: 0 0 18px;
}

.footer-info-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 13px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.footer-info-box strong {
  color: #FFFFFF;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.footer-link-btn {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  color: #EDF2FC;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.footer-copy {
  font-size: 11px;
  color: #8CA0C4;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 14px;
  text-align: center;
}

/* ==========================================================================
   PDP 底部悬浮加购条 + 在线客服悬浮按钮
   ========================================================================== */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 45;
  box-shadow: 0 -4px 18px rgba(20, 40, 80, 0.08);
}

.pdp-sticky-bar.hidden {
  display: none;
}

.sticky-price-col {
  display: flex;
  flex-direction: column;
}

.sticky-price-main {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.sticky-price-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-primary);
}

.chat-fab {
  position: fixed;
  bottom: 18px;
  right: max(12px, calc(50% - 203px));
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: var(--brand-primary);
  color: #FFFFFF;
  font-size: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(20, 54, 148, 0.3);
  z-index: 42;
  transition: transform 0.16s ease, bottom 0.16s ease;
}

.chat-fab.pdp-offset {
  bottom: 78px;
}

.chat-fab:active {
  transform: scale(0.94);
}

/* ==========================================================================
   抽屉、表单与购物车弹窗
   ========================================================================== */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 56, 0.5);
  z-index: 60;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

.sheet-backdrop.open {
  display: flex;
}

.sheet-panel {
  width: 100%;
  max-width: 430px;
  max-height: 88vh;
  background: var(--bg-shell);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: sheetUp 0.22s ease-out;
}

@keyframes sheetUp {
  from { transform: translateY(36px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-header {
  padding: 15px 16px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sheet-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.sheet-body {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.sheet-footer {
  padding: 13px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 30, 56, 0.48);
  z-index: 65;
  display: none;
  justify-content: center;
}

.drawer-backdrop.open {
  display: flex;
}

.drawer-inner {
  width: 100%;
  max-width: 430px;
  display: flex;
}

.drawer-panel {
  width: 80%;
  max-width: 310px;
  height: 100%;
  background: var(--bg-shell);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.16);
}

.drawer-nav-item {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.cart-item {
  display: flex;
  gap: 11px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 11px;
  margin-bottom: 10px;
}

.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}

.cart-item-variant {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.qty-btn {
  width: 28px;
  height: 26px;
  background: var(--bg-soft);
  font-weight: 700;
}

.qty-val {
  width: 28px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 6px;
}

.summary-row .free-tag {
  color: var(--success-green);
  font-weight: 700;
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  font-size: 14px;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-primary);
}

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

.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 240px;
}

.chat-bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.45;
}

.chat-bubble.bot, .chat-bubble.support {
  align-self: flex-start;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--brand-primary);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

.chat-input-bar {
  display: flex;
  gap: 8px;
}

.toast-msg {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%) translateY(-12px);
  background: #122347;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-elevated);
  white-space: nowrap;
}

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

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 22, 40, 0.88);
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-backdrop img {
  max-width: 100%;
  max-height: 82vh;
  border-radius: 12px;
}
