/* =========================================================
   NAAMGWOK Shop — Main Frontend Stylesheet
   B2B 五金电商 · 橙 + 深蓝 主题 · 移动端自适应
   ========================================================= */

/* ---------- 1. CSS Variables ---------- */
:root {
  /* Brand */
  --brand-orange: #E8590C;
  --brand-orange-hover: #D14F0A;
  --brand-orange-light: #FDEAD9;

  /* Nav / Backgrounds */
  --nav-dark-blue: #1F2A3A;
  --nav-medium-blue: #2C3E50;
  --bg-white: #FFFFFF;
  --bg-light-gray: #F5F7FA;
  --bg-gray-2: #F8F9FA;

  /* Borders */
  --border-gray: #E5E7EB;
  --border-gray-2: #DEE2E6;

  /* Text */
  --text-dark: #111827;
  --text-dark-2: #212529;
  --text-muted: #6B7280;
  --text-muted-2: #6C757D;
  --text-white: #FFFFFF;

  /* Status */
  --sale-red: #EF4444;
  --rating-gold: #F59E0B;
  --success-green: #10B981;
  --info-blue: #3B82F6;

  /* Layout */
  --container-pc: 1240px;
  --container-tablet: 100%;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(17,24,39,.06);
  --shadow-md: 0 4px 12px rgba(17,24,39,.08);
  --shadow-lg: 0 10px 30px rgba(17,24,39,.12);
  --transition: all .25s ease;
}

/* ---------- 2. Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dark-2);
  background: var(--bg-white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--brand-orange-hover); text-decoration: underline; }
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button { cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-dark);
  margin-bottom: .5em;
}
h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }
p { margin-bottom: .75em; }
.lead { font-size: 18px; color: var(--text-muted); }
.text-muted { color: var(--text-muted-2); }
.text-orange { color: var(--brand-orange); }
.text-red { color: var(--sale-red); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-uppercase { text-transform: uppercase; letter-spacing: .5px; }
.fw-500 { font-weight: 500; }
.fw-700 { font-weight: 700; }

/* ---------- 4. Container & Grid ---------- */
.container {
  width: 100%;
  max-width: var(--container-pc);
  margin: 0 auto;
  padding: 0 16px;
}
.container-fluid {
  width: 100%;
  padding: 0 16px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
[class*="col-"] {
  padding: 0 12px;
  width: 100%;
}
/* Desktop grid: 12 cols */
@media (min-width: 1025px) {
  .col-1  { width: 8.333%; }
  .col-2  { width: 20%; }
  .col-3  { width: 25%; }
  .col-4  { width: 33.333%; }
  .col-5  { width: 41.666%; }
  .col-6  { width: 50%; }
  .col-7  { width: 58.333%; }
  .col-8  { width: 66.666%; }
  .col-9  { width: 75%; }
  .col-10 { width: 83.333%; }
  .col-11 { width: 91.666%; }
  .col-12 { width: 100%; }
}
/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .col-md-1  { width: 8.333%; }
  .col-md-2  { width: 16.666%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.333%; }
  .col-md-6  { width: 50%; }
  .col-md-8  { width: 66.666%; }
  .col-md-12 { width: 100%; }
}
/* Mobile */
@media (max-width: 767px) {
  .col-sm-6  { width: 50%; }
  .col-sm-12 { width: 100%; }
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--brand-orange);
  color: #fff;
  border-color: var(--brand-orange);
}
.btn-primary:hover { background: var(--brand-orange-hover); border-color: var(--brand-orange-hover); color: #fff; }
.btn-secondary {
  background: var(--nav-dark-blue);
  color: #fff;
  border-color: var(--nav-dark-blue);
}
.btn-secondary:hover { background: var(--nav-medium-blue); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}
.btn-outline:hover { background: var(--brand-orange); color: #fff; }
.btn-buy-now {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}
.btn-buy-now:hover { background: #e5e7eb; color: #111827; border-color: #9ca3af; }
.btn-outline-dark {
  background: transparent;
  color: var(--nav-dark-blue);
  border-color: var(--nav-dark-blue);
}
.btn-outline-dark:hover { background: var(--nav-dark-blue); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border-gray);
}
.btn-ghost:hover { border-color: var(--nav-dark-blue); color: var(--nav-dark-blue); }
.btn-danger { background: var(--sale-red); color: #fff; border-color: var(--sale-red); }
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-success { background: var(--success-green); color: #fff; border-color: var(--success-green); }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: var(--radius-sm); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; display: flex; }
.btn[disabled] { opacity: .5; cursor: not-allowed; pointer-events: none; }

/* ---------- 6. Cards ---------- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: var(--transition);
}
.card-shadow { box-shadow: var(--shadow-sm); border: none; }
.card-shadow:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 16px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; }

/* Product card */
.product-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card .pc-image {
  position: relative;
  padding-top: 100%;
  background: var(--bg-light-gray);
  overflow: hidden;
}
.product-card .pc-image img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  /* object-fit: contain; */
  transition: transform .3s ease;
}
.product-card:hover .pc-image img { transform: scale(1.05); }
.product-card .pc-badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--sale-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .pc-badge.new { background: var(--brand-orange); }
.product-card .pc-badge.hot { background: var(--rating-gold); }
.product-card .pc-fav {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  background: rgba(255,255,255,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  z-index: 2;
  transition: var(--transition);
}
.product-card .pc-fav:hover { color: var(--sale-red); }
.product-card .pc-fav.active { color: var(--sale-red); }
.product-card .pc-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-card .pc-cat {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.product-card .pc-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .pc-name:hover { color: var(--brand-orange); }
.product-card .pc-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
}
.product-card .pc-rating .stars { color: var(--rating-gold); letter-spacing: 1px; }
.product-card .pc-rating .count { color: var(--text-muted); }
.product-card .pc-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.product-card .pc-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-orange);
}
.product-card .pc-price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card .pc-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}
.product-card .pc-actions .btn { flex: 1; padding: 8px; font-size: 12px; }

/* ============================================================
   6b. Product List — Responsive (Mobile Filter Sheet + Cards)
   ============================================================ */

/* ---------- 通用容器 ---------- */
.pl-root { display: block; }
.flex-layout { display: flex; gap: 24px; flex-wrap: wrap; }
.list-aside  { width: 260px; flex-shrink: 0; }
.list-main   { flex: 1; min-width: 0; }

/* Topbar: 桌面端隐藏；移动端 sticky */
.list-topbar {
  display: none;
}

.desktop-only { display: block; }
.result-count-mobile { display: none; }

/* ---------- Sort bar ---------- */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-gray);
  gap: 12px;
  flex-wrap: wrap;
}
.sort-bar .result-count { font-size: 14px; color: var(--text-muted); }
.sort-bar .result-count strong { color: var(--text-dark); font-weight: 600; }
.sort-controls { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }

/* ---------- Mobile Filter Drawer ---------- */
.mobile-filter-overlay {
  position: fixed; inset: 0;
  background: rgba(17, 24, 39, .5);
  z-index: 998;
  opacity: 0;
  transition: opacity .25s ease;
}
.mobile-filter-overlay.is-open { opacity: 1; }

.mobile-filter-sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  max-height: 88vh;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 32px rgba(0,0,0,.15);
  z-index: 999;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mobile-filter-sheet.is-open { transform: translateY(0); }

.mobile-filter-sheet > header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-gray);
  position: relative;
}
.mobile-filter-sheet > header::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 40px; height: 4px;
  background: var(--border-gray-2);
  border-radius: 2px;
}
.mobile-filter-sheet > header h4 {
  margin: 0;
  font-size: 16px; font-weight: 600;
  color: var(--text-dark);
}
.sheet-close {
  border: none; background: none;
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 18px;
  cursor: pointer;
  transition: background .2s;
}
.sheet-close:hover { background: var(--bg-light-gray); color: var(--text-dark); }

.sheet-body {
  flex: 1; overflow-y: auto;
  padding: 8px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.sheet-block { padding: 12px 18px; border-bottom: 8px solid var(--bg-light-gray); }
.sheet-block h5 {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .6px;
}
.sheet-options { display: flex; flex-direction: column; gap: 2px; }
.sheet-option a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-dark); text-decoration: none;
  transition: background .15s, color .15s;
}
.sheet-option.sub a {
  padding-left: 28px;
  position: relative;
}
.sheet-option.sub a::before {
  content: ''; position: absolute;
  left: 14px; top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-gray);
  transform: translateY(-50%);
}
.sheet-option .cnt { color: var(--text-muted); font-size: 13px; }
.sheet-option.active a {
  background: var(--bg-light-orange, #FFF3EB);
  color: var(--brand-orange);
  font-weight: 600;
}
.sheet-option.active a::after {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 12px;
  color: var(--brand-orange);
}
.sheet-option.active.sub a::before { background: var(--brand-orange); }

.sheet-footer {
  display: flex; gap: 10px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--border-gray);
  background: #fff;
}
.sheet-footer .btn {
  flex: 1;
  min-height: 46px;
  font-weight: 600;
  border-radius: 12px;
}

/* ---------- Mobile filter button ---------- */
.btn-filters {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.btn-filters:hover { border-color: var(--brand-orange); }
.btn-filters .badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  padding: 0 5px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: 10px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ---------- Mobile sort form inline ---------- */
.mobile-sort-form { display: inline-flex; align-items: center; gap: 6px; }
.mobile-sort-form .sort-label { font-size: 13px; color: var(--text-muted); }

/* ---------- Mobile Product Card Tweaks ---------- */
@media (max-width: 767px) {

  /* 隐藏桌面 sidebar */
  .list-aside { display: none; }

  /* 顶栏显示 — sticky 固定在上方 */
  .list-topbar {
    display: flex;
    align-items: center; justify-content: space-between;
    gap: 12px;
    position: sticky; top: 60px;
    z-index: 100;
    background: #fff;
    padding: 10px 0;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-gray);
  }
  /* body padding-top 避免 hero 之后顶栏紧挤 */

  /* Sort bar 简化 */
  .sort-bar { padding: 6px 0 10px; }
  .sort-bar .result-count,
  .sort-bar .sort-controls.desktop-only { display: none; }
  .result-count-mobile { display: block; font-size: 13px; color: var(--text-muted); }

  /* Product grid 18px 间距 */
  .pl-root .row { gap: 0; }
  .pl-root .row > [class*="col-"] { margin-bottom: 14px; padding: 0 6px; }
  .pl-root .row { margin: 0 -6px; }

  /* Product card 更紧凑 */
  .product-card {
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    transition: transform .15s, box-shadow .15s;
  }
  .product-card:active { transform: scale(.98); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
  .product-card:hover { transform: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }

  .product-card .pc-body { padding: 10px 12px 12px; }
  .product-card .pc-name { font-size: 13px; -webkit-line-clamp: 2; margin-bottom: 6px; min-height: 36px; }
  .product-card .pc-price  { font-size: 16px; }
  .product-card .pc-price-old { font-size: 12px; }
  .product-card .pc-rating { display: none; }    /* 移动端隐藏 stars 节省空间 */
  .product-card .pc-cat   { font-size: 10px; }
  .product-card .pc-fav   { width: 28px; height: 28px; top: 6px; right: 6px; }

  .product-card .pc-actions { margin-top: auto; }
  .product-card .pc-actions .btn {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 8px;
    min-height: 36px;
  }
  .product-card .pc-actions .btn .fa-cart-plus { margin-right: 4px; }

  /* Hidden desktop-only sort controls */
  .desktop-only { display: none !important; }
}

/* Tablet — 768~1024px */
@media (min-width: 768px) and (max-width: 1024px) {
  .list-aside { width: 220px; }
  .list-topbar { display: none; }
  .desktop-only { display: flex; }
  .result-count-mobile { display: none; }
}

/* Desktop — 1025px+ */
@media (min-width: 1025px) {
  .list-topbar { display: none; }
  .desktop-only { display: flex; }
  .result-count-mobile { display: none; }
  .sort-bar { margin-top: -6px; }
}

/* ---------- 7. Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
  font-size: 13px;
}
.form-label .required { color: var(--sale-red); margin-left: 2px; }
.form-control, .form-select, textarea.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border-gray-2);
  border-radius: var(--radius-md);
  transition: var(--transition);
  outline: none;
}
.form-control:focus, .form-select:focus, textarea.form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,89,12,.12);
}
.form-control.error, .form-select.error {
  border-color: var(--sale-red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
.form-control[disabled], .form-control[readonly] {
  background: var(--bg-gray-2);
  color: var(--text-muted);
}
textarea.form-control { min-height: 100px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%236B7280' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.form-check {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 0;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 16px; height: 16px;
  accent-color: var(--brand-orange);
  cursor: pointer;
}
.form-check-label { font-size: 14px; color: var(--text-dark-2); }
.form-text { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--sale-red); margin-top: 4px; }

.input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}
.input-group .form-control { border-radius: 0; }
.input-group :first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.input-group :last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.input-group .btn { border-radius: 0 var(--radius-md) var(--radius-md) 0; }

/* ---------- 8. Tables ---------- */
.table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-gray);
  vertical-align: middle;
}
.table thead th {
  background: var(--bg-gray-2);
  font-weight: 600;
  color: var(--text-dark);
  white-space: nowrap;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--bg-light-gray); }
.table-striped tbody tr:nth-child(even) { background: var(--bg-gray-2); }
.table-striped tbody tr:nth-child(even):hover { background: var(--bg-light-gray); }
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ---------- 9. Utilities ---------- */
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; } .mb-5 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-none { display: none !important; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.w-100 { width: 100%; }
.hr { height: 1px; background: var(--border-gray); margin: 24px 0; border: 0; }

/* Loading spinner (CSS) */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border-gray);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Back-to-top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px; height: 44px;
  background: var(--nav-dark-blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--brand-orange); color: #fff; }

/* =======================
   PAGE TOP NOTICE BAR
   ======================= */
.top-notice {
  background: var(--nav-dark-blue);
  color: #fff;
  font-size: 12px;
  padding: 10px 0;
}
.top-notice .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.top-notice .notice-left { display: flex; align-items: center; gap: 8px; }
.top-notice .notice-left i { color: var(--brand-orange); }
.top-notice .notice-right { display: flex; align-items: center; gap: 0; }
.top-notice .notice-right a {
  color: #fff;
  font-size: 12px;
  padding: 0 12px;
  border-left: 1px solid rgba(255,255,255,.25);
}
.top-notice .notice-right a:first-child { border-left: none; }
.top-notice .notice-right a:hover { color: var(--brand-orange); text-decoration: none; }

/* =======================
   HEADER (Logo + Search + Cart)
   ======================= */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.site-header .main-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.site-header .logo {
  font-size: 24px;
  font-weight: 800;
  color: var(--nav-dark-blue);
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.site-header .logo .logo-mark {
  width: 36px; height: 36px;
  background: var(--brand-orange);
  color: #fff;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 18px;
}
.site-header .logo:hover { text-decoration: none; color: var(--nav-dark-blue); }

/* Search bar */
.site-header .search-wrap {
  flex: 1;
  max-width: 600px;
}
.site-header .search-box {
  display: flex;
  border: 2px solid var(--brand-orange);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}
.site-header .search-select {
  border: none;
  background: var(--bg-gray-2);
  padding: 0 12px;
  font-size: 13px;
  color: var(--text-dark);
  border-right: 1px solid var(--border-gray);
  cursor: pointer;
}
.site-header .search-input {
  flex: 1;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  outline: none;
}
.site-header .search-box .btn {
  border-radius: 0;
  padding: 0 20px;
}

/* Header actions */
.site-header .header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.site-header .ha-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 10px;
  min-width: 64px;
  color: var(--text-dark);
  font-size: 11px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
}
.site-header .ha-btn:hover { background: var(--bg-light-gray); color: var(--brand-orange); text-decoration: none; }
.site-header .ha-btn i { font-size: 18px; }
.site-header .ha-btn .count {
  position: absolute;
  top: 2px;
  right: 4px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Mobile nav toggle */
.site-header .nav-toggle {
  display: none;
  font-size: 22px;
  color: var(--nav-dark-blue);
  padding: 4px 8px;
}

/* =======================
   CATEGORY NAV BAR
   ======================= */
.cat-nav {
  background: var(--nav-medium-blue);
  color: #fff;
  border-top: 1px solid rgba(255,255,255,.08);
}
.cat-nav-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav-item {
  position: relative;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.cat-nav-item:hover,
.cat-nav-item.active {
  background: var(--brand-orange);
  color: #fff;
}
.cat-nav-item:hover .cat-submenu { display: block; }
.cat-nav-item .cat-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 90;
}
.cat-nav-item .cat-submenu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-dark-2);
  border-bottom: 1px solid var(--border-gray);
}
.cat-nav-item .cat-submenu a:last-child { border-bottom: none; }
.cat-nav-item .cat-submenu a:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  text-decoration: none;
  padding-left: 20px;
}

/* =======================
   HERO MAIN VISUAL
   ======================= */
.hero {
  position: relative;
  background: linear-gradient(135deg, #1F2A3A 0%, #2C3E50 100%);
  color: #fff;
  padding: 60px 0;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.hero-overlay {
  position: absolute; inset: 0;
  /* background: linear-gradient(90deg, rgba(31,42,58,.85) 0%, rgba(31,42,58,.55) 50%, rgba(31,42,58,.2) 100%); */
}
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 580px; }
.hero-content .eyebrow {
  display: inline-block;
  background: var(--brand-orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
  letter-spacing: .8px;
  text-transform: uppercase;
}
.hero-content h1 {
  font-size: 44px;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.15;
}
.hero-content h1 span.orange { color: var(--brand-orange); }
.hero-content p {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin-bottom: 32px;
}
.hero-content .btn-group { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Hero 轮播 ---- */
.hero-slider { padding: 0; }
.hero-slides { position: relative; min-height: 580px; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease, visibility .7s ease;
  display: flex; align-items: center;
  padding: 60px 0;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .hero-bg-img { opacity: .5; transition: opacity .7s ease; }
.hero-slide .hero-content {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s ease .25s, transform .6s ease .25s;
}
.hero-slide.active .hero-content { opacity: 1; transform: translateY(0); }
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: var(--brand-orange); }
.hero-arrow-prev { left: 22px; }
.hero-arrow-next { right: 22px; }
.hero-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dot {
  width: 10px; height: 10px;
  border: none;
  border-radius: 30px;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}
.hero-dot.active { width: 28px; background: var(--brand-orange); }

/* =======================
   SHOP BY CATEGORY
   ======================= */
.section { padding: 60px 0; }
.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-title h2 { font-size: 28px; margin-bottom: 0; }
.section-title h2::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--brand-orange);
  margin-top: 10px;
  border-radius: 2px;
}
.section-title .more-link {
  font-size: 14px;
  color: var(--nav-dark-blue);
  font-weight: 600;
  display: inline-flex; align-items: center; gap: 6px;
}
.section-title .more-link:hover { color: var(--brand-orange); text-decoration: none; }

.sbc-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.sbc-card:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.sbc-card .sbc-thumb {
  width: 80px; height: 80px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-light-gray);
}
.sbc-card .sbc-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.sbc-card:hover .sbc-thumb img {
  transform: scale(1.06);
}
.sbc-card .sbc-info {
  min-width: 0;
}
.sbc-card .sbc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sbc-card .sbc-count {
  font-size: 13px;
  color: var(--text-muted);
}

/* =======================
   FLASH DEALS
   ======================= */
.flash-deals {
  background: var(--bg-light-gray);
}
.flash-header {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.flash-header .flash-title {
  display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 700; color: var(--nav-dark-blue);
}
.flash-header .flash-title i { color: var(--brand-orange); }
.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
}
.countdown .cd-box {
  background: var(--nav-dark-blue);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.countdown .cd-sep { color: var(--brand-orange); font-weight: 700; }

.flash-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 0 16px;
  scrollbar-width: none;
}
.flash-track::-webkit-scrollbar { display: none; }
.flash-track .product-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}

/* =======================
   BEST SELLERS
   ======================= */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: var(--transition);
}
.tab-btn:hover { color: var(--nav-dark-blue); }
.tab-btn.active {
  color: var(--brand-orange);
  border-bottom-color: var(--brand-orange);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* =======================
   SHOP BY PROJECT
   ======================= */
.sbp-card {
  position: relative;
  height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  margin-bottom: 16px;
}
.sbp-card .sbp-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 60%, rgba(0,0,0,0) 100%);
  transition: var(--transition);
}
.sbp-card:hover .sbp-overlay {
  background: linear-gradient(to top, rgba(232,89,12,.7) 0%, rgba(232,89,12,.15) 60%, rgba(0,0,0,0) 100%);
}
.sbp-card .sbp-content {
  position: absolute;
  left: 24px; right: 24px; bottom: 24px;
  z-index: 2;
}
.sbp-card .sbp-label {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,.8);
  margin-bottom: 6px;
}
.sbp-card .sbp-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.sbp-card .sbp-desc {
  font-size: 13px;
  color: rgba(255,255,255,.85);
}

/* =======================
   TRUST BAR (深蓝)
   ======================= */
.trust-bar {
  background: var(--nav-dark-blue);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.trust-bar h2 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 12px;
}
.trust-bar .lead { color: rgba(255,255,255,.7); margin-bottom: 40px; }
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-stat {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
}
.trust-stat .num {
  font-size: 40px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
  margin-bottom: 6px;
}
.trust-stat .label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.trust-features {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.trust-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.85);
}
.trust-feature i {
  color: var(--brand-orange);
  font-size: 18px;
}

/* =======================
   BUYING GUIDES
   ======================= */
.guide-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-gray);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.guide-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.guide-card .gc-thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
  background: var(--bg-light-gray);
}
.guide-card .gc-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.guide-card .gc-date {
  font-size: 11px;
  color: var(--brand-orange);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.guide-card .gc-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.guide-card .gc-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}
.guide-card .gc-read {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-orange);
  display: inline-flex; align-items: center; gap: 4px;
}

/* =======================
   FAQ
   ======================= */
.faq { background: var(--bg-gray-2); }
.faq-list {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gray);
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--border-gray);
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
  transition: var(--transition);
}
.faq-q:hover { background: var(--bg-light-gray); color: var(--brand-orange); }
.faq-q .faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg-gray-2);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  transition: transform .25s, background .25s, color .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-q .faq-icon {
  background: var(--brand-orange);
  color: #fff;
  transform: rotate(45deg);
}
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: var(--text-muted-2);
}
.faq-item.open .faq-a {
  max-height: 400px;
  padding: 0 20px 18px;
}

/* =======================
   FULL-WIDTH ORANGE CTA BANNER
   ======================= */
.orange-cta {
  background: linear-gradient(135deg, #E8590C 0%, #D14F0A 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.orange-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M20 0L0 20h40L20 0zm0 40L0 20h40L20 40z'/%3E%3C/g%3E%3C/svg%3E");
}
.orange-cta .container { position: relative; z-index: 2; }
.orange-cta h2 {
  color: #fff;
  font-size: 32px;
  margin-bottom: 10px;
}
.orange-cta p {
  font-size: 15px;
  color: rgba(255,255,255,.9);
  margin-bottom: 24px;
}
.orange-cta .btn-outline {
  color: #fff;
  border-color: #fff;
}
.orange-cta .btn-outline:hover {
  background: #fff;
  color: var(--brand-orange);
}

/* =======================
   FOOTER (深蓝 4列)
   ======================= */
.site-footer {
  background: var(--nav-dark-blue);
  color: rgba(255,255,255,.8);
  padding: 60px 0 0;
  font-size: 14px;
}
.site-footer h5 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 20px;
  font-weight: 700;
}
.site-footer .footer-col { margin-bottom: 32px; }
.site-footer .footer-about .logo {
  color: #fff;
  margin-bottom: 14px;
  display: inline-flex;
}
.site-footer .footer-about .logo:hover { color: #fff; text-decoration: none; }
.site-footer .footer-about p {
  color: rgba(255,255,255,.65);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.site-footer .socials { display: flex; gap: 10px; }
.site-footer .socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.site-footer .socials a:hover {
  background: var(--brand-orange);
  color: #fff;
  text-decoration: none;
}
.site-footer ul.footer-links li { margin-bottom: 10px; }
.site-footer ul.footer-links a {
  color: rgba(255,255,255,.7);
  font-size: 13px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.site-footer ul.footer-links a:hover {
  color: var(--brand-orange);
  padding-left: 4px;
  text-decoration: none;
}
.site-footer .contact-list li {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}
.site-footer .contact-list i {
  color: var(--brand-orange);
  width: 16px;
  flex-shrink: 0;
  margin-top: 3px;
}
.site-footer .contact-list strong { color: #fff; }

/* Newsletter mini */
.footer-newsletter { margin-top: 16px; }
.footer-newsletter .form-control {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
  color: #fff;
}
.footer-newsletter .form-control::placeholder { color: rgba(255,255,255,.45); }
.footer-newsletter .form-control:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,89,12,.2);
}
.footer-newsletter .btn { width: 100%; margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: var(--brand-orange); }

/* =========================================================
   PRODUCT LISTING / CATEGORY PAGE
   ========================================================= */
.page-breadcrumb {
  background: var(--bg-gray-2);
  padding: 14px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.page-breadcrumb a { color: var(--text-muted); }
.page-breadcrumb a:hover { color: var(--brand-orange); }
.page-breadcrumb .sep { margin: 0 8px; color: var(--text-muted); }
.page-breadcrumb .current { color: var(--text-dark); font-weight: 500; }

.page-header {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 28px;
}
.page-header h1 { font-size: 26px; margin-bottom: 4px; }
.page-header .desc { color: var(--text-muted); font-size: 14px; }

/* Sidebar filter */
.filter-sidebar {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.filter-sidebar h4 {
  font-size: 15px;
  font-weight: 700;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}
.filter-sidebar h4 i.toggle {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform .25s;
}
.filter-sidebar h4.collapsed i.toggle { transform: rotate(-90deg); }
.filter-sidebar .filter-body { padding-bottom: 8px; }
.filter-sidebar .filter-item {
  padding: 7px 0;
  font-size: 13px;
  color: var(--text-dark-2);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.filter-sidebar .filter-item:hover,
.filter-sidebar .filter-item.active { color: var(--brand-orange); }
.filter-sidebar .filter-item .count {
  color: var(--text-muted);
  font-size: 12px;
}

/* Sort bar */
.sort-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.sort-bar .result-count { font-size: 13px; color: var(--text-muted); }
.sort-bar .sort-controls {
  display: flex; align-items: center; gap: 10px;
}
.sort-bar .sort-controls label { font-size: 13px; color: var(--text-muted); }
.sort-bar .sort-controls .form-select { padding: 8px 28px 8px 10px; font-size: 13px; width: auto; }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
  flex-wrap: wrap;
}
.pagination .page-link {
  display: flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px;
  padding: 0 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.pagination .page-link:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  text-decoration: none;
}
.pagination .page-link.active,
.pagination .page-link[aria-current="page"] {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
}
.pagination .page-link.disabled {
  color: var(--text-muted);
  pointer-events: none;
  opacity: .6;
}
.pagination .page-ellipsis {
  padding: 0 4px;
  color: var(--text-muted);
  align-self: center;
}

/* =========================================================
   PRODUCT DETAIL PAGE
   ========================================================= */
.pdp { padding: 30px 0 50px; }
.pdp-gallery { position: sticky; top: 80px; }
.pdp-main-img {
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light-gray);
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.pdp-main-img img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.pdp-thumbs .thumb {
  width: 64px; height: 64px;
  border: 2px solid var(--border-gray);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-light-gray);
  transition: var(--transition);
  flex-shrink: 0;
}
.pdp-thumbs .thumb.active { border-color: var(--brand-orange); }
.pdp-thumbs .thumb:hover { border-color: var(--brand-orange); }
.pdp-thumbs .thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-info h1 { font-size: 24px; margin-bottom: 10px; line-height: 1.35; }
.pdp-info .pdp-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
}
.pdp-info .pdp-meta .stars { color: var(--rating-gold); letter-spacing: 1px; }
.pdp-info .pdp-price-box {
  background: var(--bg-light-gray);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 20px;
}
.pdp-info .pdp-price-row {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
}
.pdp-info .pdp-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--brand-orange);
  line-height: 1;
}
.pdp-info .pdp-price-old {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.pdp-info .pdp-price-save {
  font-size: 13px;
  font-weight: 600;
  color: var(--sale-red);
  background: rgba(239,68,68,.1);
  padding: 3px 10px;
  border-radius: 3px;
}
.pdp-info .pdp-stock {
  margin-top: 12px;
  font-size: 13px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.pdp-info .pdp-stock .in { color: var(--success-green); font-weight: 600; }
.pdp-info .pdp-stock .out { color: var(--sale-red); font-weight: 600; }

.pdp-info .pdp-attrs { margin-bottom: 20px; }
.pdp-info .pdp-attrs .attr-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: flex-start;
}
.pdp-info .pdp-attrs .attr-label {
  font-weight: 600;
  color: var(--text-dark);
  min-width: 90px;
  font-size: 13px;
}
.pdp-info .pdp-attrs .attr-val { color: var(--text-muted-2); font-size: 13px; }

.pdp-info .pdp-spec-options { margin-bottom: 20px; }
.pdp-info .pdp-spec-options .spec-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.pdp-info .pdp-spec-options .spec-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pdp-info .pdp-spec-options .spec-btn {
  border: 1px solid var(--border-gray);
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-dark-2);
  transition: var(--transition);
}
.pdp-info .pdp-spec-options .spec-btn:hover { border-color: var(--brand-orange); }
.pdp-info .pdp-spec-options .spec-btn.active {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: #fff;
}

.pdp-info .pdp-quantity {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.pdp-info .qty-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.pdp-info .qty-input {
  display: flex;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pdp-info .qty-input button {
  width: 36px; height: 40px;
  background: var(--bg-gray-2);
  color: var(--text-dark);
  font-size: 16px;
  border: none;
  transition: var(--transition);
}
.pdp-info .qty-input button:hover { background: var(--brand-orange); color: #fff; }
.pdp-info .qty-input input {
  width: 56px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border-gray);
  border-right: 1px solid var(--border-gray);
  font-weight: 600;
}

.pdp-info .pdp-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.pdp-info .pdp-actions .btn { flex: 1; min-width: 140px; }

.pdp-info .pdp-secure {
  display: flex;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
  flex-wrap: wrap;
}
.pdp-info .pdp-secure-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--text-muted-2);
}
.pdp-info .pdp-secure-item i { color: var(--brand-orange); font-size: 16px; }

/* PDP Description tabs */
.pdp-tabs {
  margin-top: 40px;
}
.pdp-tabs .tabs { margin-bottom: 0; }
.pdp-tabs .tab-content {
  padding: 24px 0;
  font-size: 14px;
  color: var(--text-dark-2);
  line-height: 1.75;
}
.pdp-tabs .tab-content h4 { margin-top: 20px; }
.pdp-tabs .tab-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 14px;
}
.pdp-tabs .tab-content table { margin-top: 12px; }

/* =========================================================
   CART PAGE
   ========================================================= */
.cart-wrapper { padding: 30px 0 50px; }
.cart-table img.cart-thumb {
  width: 80px; height: 80px;
  object-fit: contain;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  background: var(--bg-light-gray);
}
.cart-table .cart-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 14px;
}
.cart-table .cart-name:hover { color: var(--brand-orange); text-decoration: none; }
.cart-total-box {
  background: var(--bg-gray-2);
  border-radius: var(--radius-md);
  padding: 22px;
  position: sticky;
  top: 80px;
}
.cart-total-box h3 { font-size: 18px; margin-bottom: 18px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.cart-total-row.total {
  border-top: 2px solid var(--border-gray);
  margin-top: 8px;
  padding-top: 16px;
  font-weight: 700;
  font-size: 18px;
}
.cart-total-row.total .amount { color: var(--brand-orange); font-size: 22px; }
.cart-total-box .btn-checkout { width: 100%; margin-top: 16px; }
.cart-coupon {
  display: flex; gap: 8px; margin-top: 16px;
}

/* --- Cart table beautification --- */
.cart-table {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.cart-table .table { margin-bottom: 0; background: #fff; }
.cart-table thead th {
  background: var(--bg-gray-2);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .3px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-gray);
  color: var(--text-dark);
}
.cart-table tbody td {
  padding: 18px 12px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}
.cart-table tbody tr:last-child td { border-bottom: none; }
.cart-table tbody tr:hover { background: #fafafa; }

/* --- Cart QTY stepper (single-line, auto width) --- */
.cart-qty-input {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 36px;
  transition: var(--transition);
  background: #fff;
}
.cart-qty-input:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px rgba(232,89,12,.15);
}
.cart-qty-input .qty-minus,
.cart-qty-input .qty-plus {
  width: 34px;
  flex: 0 0 34px;
  border: none;
  background: var(--bg-gray-2);
  color: var(--text-dark);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.cart-qty-input .qty-minus:hover,
.cart-qty-input .qty-plus:hover {
  background: var(--brand-orange);
  color: #fff;
}
.cart-qty-input input[type="number"] {
  flex: 1 1 50px;
  min-width: 44px;
  width: 52px;
  border: none;
  border-left: 1px solid var(--border-gray);
  border-right: 1px solid var(--border-gray);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-qty-input input[type="number"]::-webkit-inner-spin-button,
.cart-qty-input input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* --- Delete button --- */
.cart-table [data-remove-cart] {
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: #EF4444;
  cursor: pointer;
  transition: var(--transition);
}
.cart-table [data-remove-cart]:hover {
  background: rgba(239,68,68,.08);
  border-color: rgba(239,68,68,.25);
  transform: scale(1.08);
}
.cart-table .item-subtotal {
  font-size: 15px;
  color: var(--text-dark);
}

/* --- Mobile-only cart elements (hidden on desktop) --- */
.cart-mobile-bar,
.cart-mobile-summary,
.cart-mobile-cards { display: none; }

/* --- Desktop table visibility helper --- */
.cart-desktop-table { display: block; }

/* =========================================================
   MY ACCOUNT
   ========================================================= */
.account-wrapper { padding: 30px 0 60px; }
.account-sidebar {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 8px 0;
}
.account-sidebar .account-user {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-gray);
  display: flex;
  gap: 12px;
  align-items: center;
}
.account-sidebar .account-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.account-sidebar .account-user-info .name { font-weight: 600; color: var(--text-dark); }
.account-sidebar .account-user-info .email { font-size: 12px; color: var(--text-muted); }
.account-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--text-dark-2);
  transition: var(--transition);
  border-left: 3px solid transparent;
}
.account-sidebar .nav-item:hover {
  background: var(--bg-light-gray);
  color: var(--brand-orange);
  text-decoration: none;
}
.account-sidebar .nav-item.active {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border-left-color: var(--brand-orange);
  font-weight: 600;
}
.account-sidebar .nav-item i { width: 16px; text-align: center; }

.account-content {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 24px;
}
.account-content .page-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-gray);
}

/* =========================================================
   ANNOUNCEMENT LIST / DETAIL
   ========================================================= */
.announcement-list { padding: 30px 0 60px; }

/* 文章列表容器 */
.article-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* 单篇文章卡片：横排布局，左图 + 右侧信息区 */
.article-card {
  display: flex;
  gap: 20px;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 18px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.article-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

/* 左侧图片区（跨 Row1 + Row2） */
.ac-img-wrap {
  flex-shrink: 0;
  width: 220px;
  height: 165px; /* 4:3 比例 */
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: block;
}
.ac-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-gray-2);
}
.ac-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 36px;
}

/* 右侧主信息区：垂直堆叠 */
.ac-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Row 1: 标题 */
.ac-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-title a {
  color: var(--text-dark);
  text-decoration: none;
}
.ac-title a:hover {
  color: var(--brand-orange);
  text-decoration: none;
}

/* Row 2: 类型标签 + 发布时间 */
.ac-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}
.ac-type {
  display: inline-block;
  background: var(--brand-orange-light, rgba(232,89,12,.1));
  color: var(--brand-orange);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.ac-date {
  font-size: 12px;
  color: var(--text-muted);
}
.ac-date i {
  margin-right: 3px;
  font-size: 11px;
}

/* Row 3: 摘要 */
.ac-excerpt {
  color: var(--text-muted-2, #6b7280);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Row 4: Read more 入口 */
.ac-readmore {
  font-weight: 600;
  font-size: 13px;
  color: var(--brand-orange);
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 2px;
}
.ac-readmore:hover {
  text-decoration: none;
  opacity: .85;
}
.ac-readmore i {
  margin-left: 3px;
  font-size: 12px;
  transition: transform .15s ease;
}
.ac-readmore:hover i {
  transform: translateX(3px);
}

/* --- 响应式：平板 & 手机 --- */
@media (max-width: 768px) {
  .article-card {
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .ac-img-wrap {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
  }
  .ac-title {
    font-size: 16px;
  }
}
.announcement-detail { padding: 30px 0 60px; }
.announcement-detail .article-header {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-gray);
  margin-bottom: 24px;
}
.announcement-detail .article-header h1 { font-size: 26px; }
.announcement-detail .article-header .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 10px;
}
.announcement-detail .article-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-dark-2);
}

/* =========================================================
   TOAST
   ========================================================= */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}
.toast {
  background: #fff;
  border-left: 4px solid var(--nav-dark-blue);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 260px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform .3s ease;
}
.toast.show { transform: translateX(0); }
.toast.success { border-left-color: var(--success-green); }
.toast.success .toast-icon { color: var(--success-green); }
.toast.error { border-left-color: var(--sale-red); }
.toast.error .toast-icon { color: var(--sale-red); }
.toast.info { border-left-color: var(--info-blue); }
.toast.info .toast-icon { color: var(--info-blue); }
.toast.warning { border-left-color: var(--rating-gold); }
.toast.warning .toast-icon { color: var(--rating-gold); }
.toast .toast-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.toast .toast-body { flex: 1; }
.toast .toast-title { font-weight: 600; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.toast .toast-msg { font-size: 13px; color: var(--text-muted-2); }
.toast .toast-close {
  color: var(--text-muted);
  font-size: 14px;
  padding: 0;
  margin-left: 6px;
}
.toast .toast-close:hover { color: var(--text-dark); }

/* =========================================================
   MOBILE NAV DRAWER
   ========================================================= */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-drawer-overlay.open { opacity: 1; visibility: visible; }
.mobile-drawer {
  position: fixed;
  top: 0; left: 0;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 201;
  transform: translateX(-100%);
  transition: transform .3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer .md-header {
  padding: 16px 20px;
  background: var(--nav-dark-blue);
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-drawer .md-header .logo { color: #fff; font-size: 20px; font-weight: 700; }
.mobile-drawer .md-close {
  color: #fff; font-size: 20px; background: transparent; border: none;
}
.mobile-drawer .md-body { flex: 1; overflow-y: auto; }
.mobile-drawer .md-menu { padding: 8px 0; }
.mobile-drawer .md-menu .md-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark-2);
  border-bottom: 1px solid var(--border-gray);
  cursor: pointer;
}
.mobile-drawer .md-menu .md-item:hover { background: var(--bg-light-gray); color: var(--brand-orange); text-decoration: none; }
.mobile-drawer .md-menu .md-item .md-arrow {
  transition: transform .2s;
  font-size: 12px;
  color: var(--text-muted);
}
.mobile-drawer .md-submenu { display: none; background: var(--bg-gray-2); }
.mobile-drawer .md-menu .md-item.open .md-arrow { transform: rotate(90deg); }
.mobile-drawer .md-menu .md-item.open + .md-submenu { display: block; }
.mobile-drawer .md-submenu a {
  display: block;
  padding: 12px 20px 12px 36px;
  font-size: 13px;
  color: var(--text-muted-2);
  border-bottom: 1px solid var(--border-gray);
}

/* =========================================================
   MEDIA QUERIES — RESPONSIVE
   ========================================================= */

/* Tablet 768-1024px */
@media (max-width: 1024px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero { padding: 50px 0; }
  .hero-content h1 { font-size: 36px; }
  .section { padding: 48px 0; }
  .flash-track .product-card { flex-basis: 180px; }
  .sbp-card { height: 200px; }
  .trust-stats { gap: 24px; }
  .site-header .main-bar { gap: 14px; }
  .site-header .search-wrap { max-width: 420px; }
}

/* Mobile < 768px */
@media (max-width: 767px) {
  h1 { font-size: 26px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }
  .container { padding: 0 12px; }

  /* Top notice */
  .top-notice { padding: 8px 0; }
  .top-notice .container { justify-content: center; text-align: center; }
  .top-notice .notice-right { margin-top: 4px; }

  /* Header */
  .site-header .main-bar { flex-wrap: wrap; padding: 12px 0; gap: 10px; }
  .site-header .logo { font-size: 20px; }
  .site-header .nav-toggle { display: inline-flex; }
  .site-header .search-wrap {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 6px;
  }
  .site-header .ha-btn { min-width: 48px; padding: 4px 6px; font-size: 10px; }
  .site-header .ha-btn i { font-size: 16px; }
  .site-header .ha-btn .ha-label { display: none; }

  /* Cat nav */
  .cat-nav { display: none; }

  /* Hero */
  .hero { padding: 40px 0; }
  .hero-slides { min-height: 320px; }
  .hero-slide { padding: 40px 0; }
  .hero-content h1 { font-size: 26px; }
  .hero-content p { font-size: 14px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 13px; }
  .hero-arrow-prev { left: 10px; }
  .hero-arrow-next { right: 10px; }
  .hero-dots { bottom: 12px; }

  /* Sections */
  .section { padding: 36px 0; }
  .section-title { margin-bottom: 20px; }
  .section-title h2 { font-size: 22px; }
  .sbc-card { padding: 14px; gap: 12px; }
  .sbc-card .sbc-thumb { width: 64px; height: 64px; }
  .sbc-card .sbc-name { font-size: 14px; }

  /* Flash deals */
  .flash-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .countdown .cd-box { padding: 4px 8px; min-width: 38px; font-size: 12px; }

  /* SBP */
  .sbp-card { height: 180px; }
  .sbp-card .sbp-title { font-size: 18px; }

  /* Trust bar */
  .trust-bar { padding: 40px 0; }
  .trust-bar h2 { font-size: 22px; }
  .trust-stats { gap: 20px; }
  .trust-stat .num { font-size: 32px; }
  .trust-features { gap: 16px; }

  /* Tabs */
  .tabs { gap: 0; }
  .tab-btn { padding: 10px 12px; font-size: 13px; }

  /* PDP */
  .pdp-info h1 { font-size: 20px; }
  .pdp-info .pdp-price { font-size: 26px; }
  .pdp-info .pdp-actions .btn { min-width: 120px; padding: 10px; font-size: 13px; }

  /* Sort bar */
  .sort-bar .sort-controls { width: 100%; justify-content: space-between; }

  /* Cart — full card-style on mobile */
  body.cart-page {
    padding-bottom: 82px; /* space for sticky checkout bar */
  }
  body.cart-page .site-footer { display: none !important; }
  body.cart-page .page-breadcrumb { display: none; }

  .cart-wrapper { padding: 12px 0 16px; }
  .cart-wrapper h1 { display: none; }

  /* Hide desktop summary box on mobile */
  .cart-summary-desktop { display: none; }

  /* ===== Cart — Mobile card layout ===== */
  /* Hide desktop table on mobile */
  .cart-desktop-table { display: none !important; }

  /* Show mobile card list */
  .cart-mobile-cards {
    display: block;
    padding: 0 0 20px;
  }

  /* Cart card container: flex row + wrap（图片左列、右侧main，Row3占满整行） */
  .cmc-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 12px;
    padding: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }

  /* 左侧图片：独立一列，跨 Row 1 + Row 2 */
  .cmc-img-wrap {
    flex: 0 0 auto;
    display: block;
  }
  .cmc-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
    background: var(--bg-light-gray);
  }
  .cmc-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 24px;
  }

  /* 右侧主信息列：垂直堆叠 Row1 + Row2 */
  .cmc-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  /* Shared row flex */
  .cmc-row {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  /* ---- Row 1: 商品标题 ---- */
  .cmc-row-top {
    align-items: flex-start;
  }
  .cmc-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
  }
  .cmc-title:hover { color: var(--brand-orange); text-decoration: none; }

  /* ---- Row 2: SKU + 单价 + 数量调节器 ---- */
  .cmc-row-middle {
    justify-content: space-between;
  }
  .cmc-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }
  .cmc-sku {
    font-size: 11px;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
  }
  .cmc-price {
    font-size: 13px;
    color: var(--text-dark);
  }
  .cmc-qty {
    flex-shrink: 0;
  }

  /* ---- Row 3: 小计 + 删除（占满整行，横跨图片下方） ---- */
  .cmc-row-bottom {
    flex-basis: 100%;
    width: 100%;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px dashed #eee;
    padding-top: 10px;
    margin-top: 4px;
  }
  .cmc-subtotal-label {
    font-size: 11px;
    color: var(--text-muted);
  }
  .cmc-subtotal {
    font-size: 15px;
    color: var(--brand-orange);
    font-weight: 700;
  }
  .cmc-subtotal .item-subtotal {
    color: inherit;
    font-weight: inherit;
  }
  .cmc-delete {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 50%;
    background: transparent;
    color: #EF4444;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
    flex-shrink: 0;
  }
  .cmc-delete:active {
    transform: scale(1.12);
    background: rgba(239,68,68,.1);
  }

  /* QTY stepper size for mobile cards */
  .cmc-qty { height: 32px; }
  .cmc-qty .qty-minus,
  .cmc-qty .qty-plus { width: 28px; flex-basis: 28px; font-size: 12px; }
  .cmc-qty input[type="number"] { width: 40px; font-size: 13px; }

  /* Hide desktop "Continue shopping", show mobile one */
  .cart-desktop-table .btn-ghost.mt-4 { display: none; }
  .cmc-continue { display: inline-flex; }
  .cart-mobile-cards .cmc-continue { margin-top: 8px; }

  /* ===== Mobile sticky checkout bar ===== */
  .cart-mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.12);
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
    align-items: center;
    justify-content: space-between;
    z-index: 99;
    gap: 12px;
  }
  .cmb-left { display: flex; flex-direction: column; }
  .cmb-label { font-size: 11px; color: var(--text-muted); }
  .cmb-total .amount { font-size: 22px; font-weight: 700; color: var(--brand-orange); }
  .cmb-checkout {
    flex: 1; max-width: 200px;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 10px;
  }

  /* ===== Mobile expandable summary drawer ===== */
  .cart-mobile-summary {
    display: block;
    background: #fff;
    border-top: 1px solid #eee;
    position: fixed;
    bottom: 82px; left: 0; right: 0;
    z-index: 98;
    max-height: 0;
    overflow: hidden;
    transition: max-height .28s ease;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  }
  .cart-mobile-summary.is-open { max-height: 280px; }
  .cms-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 16px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    color: var(--text-dark);
  }
  .cms-header i { margin-right: 6px; color: var(--text-muted); }
  .cms-arrow { transition: transform .25s ease; font-size: 12px; color: var(--text-muted); }
  .cart-mobile-summary.is-open .cms-arrow { transform: rotate(180deg); }
  .cms-body { padding: 4px 16px 14px; border-top: 1px solid #f4f4f4; }
  .cms-row {
    display: flex; justify-content: space-between;
    padding: 8px 0; font-size: 13px; color: var(--text-muted);
  }
  .cms-row .amount { color: var(--text-dark); font-weight: 500; }
  .cms-row.cms-total {
    border-top: 1px solid #eee; margin-top: 4px; padding-top: 12px;
    font-weight: 700; color: var(--text-dark); font-size: 15px;
  }
  .cms-row.cms-total .amount { color: var(--brand-orange); font-size: 20px; }

  /* Footer */
  .site-footer { padding: 40px 0 0; }
  .site-footer .footer-col { margin-bottom: 24px; }

  /* Account */
  .account-sidebar { margin-bottom: 20px; }
  .account-content { padding: 18px; }

  /* Orange CTA */
  .orange-cta h2 { font-size: 22px; }
  .orange-cta .btn { padding: 10px 24px; }

  /* Toast */
  .toast-container { top: 10px; right: 10px; left: 10px; max-width: none; }
}

/* Extra small */
@media (max-width: 480px) {
  .product-card .pc-actions .btn { font-size: 11px; padding: 6px; }
  .flash-track .product-card { flex-basis: 150px; }
  .countdown .cd-box { min-width: 34px; font-size: 11px; padding: 3px 6px; }
}

/* ============================================================
   6c. Member Orders — JD-style Card
   ============================================================ */

/* Tabs */
.mo-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-gray);
  margin-bottom: 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.mo-tabs::-webkit-scrollbar { display: none; }
.mo-tab {
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  white-space: nowrap;
  transition: .15s;
}
.mo-tab:hover { color: var(--text-dark); text-decoration: none; }
.mo-tab.active { color: var(--brand-orange); border-bottom-color: var(--brand-orange); }

/* Order Card */
.mo-card {
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow .15s;
}
.mo-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.mo-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border-gray);
  flex-wrap: wrap;
}
.mo-head-left { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.mo-head-left .mo-shop { color: var(--text-dark); font-weight: 600; font-size: 13px; }
.mo-head-left .mo-no { font-family: monospace; color: var(--text-dark-2); }
.mo-head-right .mo-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 16px;
  font-size: 12px; font-weight: 700;
}

/* Items row */
.mo-items {
  display: flex;
  align-items: stretch;
  padding: 16px 18px;
  gap: 16px;
}
.mo-item {
  display: flex;
  gap: 12px;
  flex: 1;
  min-width: 0;
  align-items: center;
}
.mo-item-img {
  width: 72px; height: 72px;
  border: 1px solid var(--border-gray);
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f9fafb;
  display: flex; align-items: center; justify-content: center;
  color: var(--border-gray); font-size: 22px;
}
.mo-item-img img { width: 100%; height: 100%; object-fit: cover; }
.mo-item-info { flex: 1; min-width: 0; }
.mo-item-name {
  font-size: 14px; color: var(--text-dark);
  text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.mo-item-name:hover { color: var(--brand-orange); }
.mo-item-price { font-size: 13px; color: var(--text-dark-2); white-space: nowrap; }
.mo-item-qty { font-size: 13px; color: var(--text-muted); white-space: nowrap; }

.mo-item-total-col {
  width: 110px;
  flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  border-left: 1px dashed var(--border-gray);
  padding-left: 16px;
}
.mo-total-label { font-size: 12px; color: var(--text-muted); }
.mo-total-amount { font-size: 12px; color: var(--text-muted); margin-bottom: 2px; }
.mo-total-amount strong { font-size: 18px; color: var(--brand-orange); font-weight: 700; }
.mo-item-count { font-size: 11px; color: var(--text-muted); }

/* Footer */
.mo-foot {
  display: flex; justify-content: flex-end; gap: 8px; padding: 12px 18px;
  border-top: 1px solid var(--border-gray);
  background: #fafbfc;
  flex-wrap: wrap;
}

/* Pager */
.mo-pager {
  display: flex; justify-content: center; gap: 10px; margin-top: 24px; align-items: center;
}
.mo-pager-info { font-size: 13px; color: var(--text-muted); }

/* Detail Cards */
.mo-detail-card {
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.mo-detail-head {
  padding: 14px 18px;
  background: #fafbfc;
  border-bottom: 1px solid var(--border-gray);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  display: flex; align-items: center;
  gap: 8px;
}
.mo-detail-head i { color: var(--brand-orange); }
.mo-detail-body { padding: 18px; }

.mo-detail-table {
  width: 100%;
  border-collapse: collapse;
}
.mo-detail-table th {
  text-align: left; padding: 10px 14px; font-size: 12px;
  color: var(--text-muted); font-weight: 600; background: #fafbfc;
  border-bottom: 1px solid var(--border-gray);
}
.mo-detail-table td {
  padding: 14px; border-bottom: 1px solid var(--border-gray);
  font-size: 13px; vertical-align: middle;
}
.mo-detail-table tbody tr:last-child td { border-bottom: none; }
.mo-detail-table .col-price, .mo-detail-table .col-sub { text-align: right; }
.mo-detail-table .col-qty { text-align: center; width: 60px; }
.mo-detail-table .col-prod { width: 50%; }
.mo-detail-table .col-item .mo-item-img { width: 60px; height: 60px; }

.mo-detail-amount {
  width: 320px; margin-left: auto;
  border: 1px solid var(--border-gray); border-radius: 6px; overflow: hidden;
  font-size: 13px;
}
.mo-detail-amount > div {
  display: flex; justify-content: space-between;
  padding: 8px 14px; border-bottom: 1px dashed var(--border-gray);
}
.mo-detail-amount > div:last-child { border-bottom: none; }
.mo-detail-amount .mo-detail-total {
  background: #fff7ed;
  color: var(--brand-orange);
  font-size: 16px; font-weight: 700;
}

.mo-detail-extra { margin-top: 12px; font-size: 12px; color: var(--text-muted); line-height: 1.8; }

/* Timeline */
.mo-timeline { list-style: none; margin: 0; padding: 0; }
.mo-timeline li {
  display: flex; gap: 12px; padding: 8px 0; position: relative;
}
.mo-timeline li:not(:last-child) .mo-tl-body::before {
  content: ''; position: absolute; left: 5px; top: 22px; bottom: -4px;
  width: 1px; background: var(--border-gray);
}
.mo-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--brand-orange); margin-top: 5px;
  flex-shrink: 0; box-shadow: 0 0 0 3px #fff1e6;
}
.mo-tl-body { flex: 1; min-width: 0; }
.mo-tl-text { font-size: 13px; color: var(--text-dark); }
.mo-tl-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* Modals */
.mo-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
.mo-modal-mask {
  position: absolute; inset: 0; background: rgba(0,0,0,.45);
}
.mo-modal-box {
  position: relative; z-index: 1;
  width: 440px; max-width: 92vw;
  background: #fff; border-radius: 10px; box-shadow: 0 20px 40px rgba(0,0,0,.2);
  overflow: hidden;
}
.mo-modal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border-gray);
}
.mo-modal-head h4 { margin: 0; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.mo-modal-close {
  background: none; border: none; font-size: 18px;
  color: var(--text-muted); cursor: pointer; padding: 4px 8px; border-radius: 4px;
}
.mo-modal-close:hover { background: var(--bg-light-gray); color: var(--text-dark); }
.mo-modal-body { padding: 18px; }
.mo-modal-radio {
  display: flex; gap: 8px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--border-gray); border-radius: 6px;
  margin-bottom: 8px; font-size: 13px; cursor: pointer;
  transition: .12s;
}
.mo-modal-radio:hover { border-color: var(--brand-orange); }
.mo-modal-radio input[type=radio] { accent-color: var(--brand-orange); }
.mo-modal-foot {
  display: flex; gap: 10px; justify-content: flex-end;
  padding: 12px 18px; border-top: 1px solid var(--border-gray);
  background: #fafbfc;
}

/* Mobile */
@media (max-width: 768px) {
  .mo-head { flex-direction: column; align-items: flex-start; }
  .mo-items { flex-wrap: wrap; }
  .mo-item-total-col {
    width: 100%; border-left: none; padding-left: 0;
    border-top: 1px dashed var(--border-gray); padding-top: 12px;
    align-items: flex-start;
  }
  .mo-detail-amount { width: 100%; }
  .mo-detail-table .col-prod { width: auto; }
  .mo-item-img { width: 56px; height: 56px; }
}

/* ========== Order Detail Page (od-*) ========== */

/* Mobile top bar (hidden on desktop) */
.od-mobile-head {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--border-gray);
}
.od-back-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark);
  border-radius: 50%;
  background: var(--bg-light-gray);
  text-decoration: none;
  flex-shrink: 0;
}
.od-back-btn:hover { color: var(--brand-orange); text-decoration: none; }
.od-mobile-title {
  font-size: 16px;
  font-weight: 700;
  flex: 1;
  color: var(--text-dark);
}
.od-status-pill {
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Progress Steps */
.od-progress-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--border-gray);
  border-radius: var(--radius-md);
  padding: 28px 20px 20px;
  margin-bottom: 20px;
  overflow: hidden;
}
.od-progress-line {
  position: absolute;
  top: 48px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--border-gray);
  z-index: 0;
}
.od-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}
.od-step {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.od-step-dot {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-gray);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
  font-size: 14px;
  transition: all .25s ease;
}
.od-step.active .od-step-dot {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232,89,12,.3);
}
.od-step-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark-2);
  margin-bottom: 2px;
}
.od-step.active .od-step-label {
  color: var(--brand-orange);
}
.od-step-time {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.3;
}

/* Item body - toggle table vs cards */
.od-mobile-items { display: none; }

/* SKU chip in table */
.od-item-sku {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Info row (right card) */
.od-info-card .od-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-gray);
  gap: 12px;
  font-size: 13px;
}
.od-info-card .od-info-row:last-child { border-bottom: none; }
.od-info-label {
  color: var(--text-muted);
  flex-shrink: 0;
}
.od-info-val {
  color: var(--text-dark);
  text-align: right;
  word-break: break-all;
}

/* Two column layout for amount + info */
.od-amount-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
.od-amount-row > * { flex: 1; min-width: 0; }

/* Action bar */
.od-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-gray);
}
.od-action-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* ========================================================
   Mobile Responsive (max-width: 768px)
   ======================================================== */
@media (max-width: 768px) {
  .account-wrapper.od-wrapper { padding: 16px 0 40px; }
  .od-mobile-head { display: flex; }
  .od-sidebar { display: none; }
  .od-desktop-head { display: none !important; }
  .od-main { width: 100%; flex: 1 1 100%; }

  /* Progress steps - compact */
  .od-progress-wrap {
    padding: 20px 12px 14px;
  }
  .od-progress-line {
    top: 38px;
    left: 28px;
    right: 28px;
  }
  .od-step-dot {
    width: 32px; height: 32px;
    font-size: 12px;
    margin-bottom: 6px;
  }
  .od-step-label { font-size: 11px; }
  .od-step-time { display: none; }

  /* Items: hide desktop table, show mobile cards */
  .od-table-wrap { display: none; }
  .od-mobile-items {
    display: block;
  }
  .od-mobile-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fafafb;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border-gray);
  }
  .od-mobile-item:last-child { margin-bottom: 0; }
  .od-mi-img {
    width: 76px; height: 76px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
  }
  .od-mi-img img { width: 100%; height: 100%; object-fit: cover; }
  .od-mi-img i { color: var(--border-gray); font-size: 24px; }
  .od-mi-info { flex: 1; min-width: 0; }
  .od-mi-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .od-mi-sku {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
  }
  .od-mi-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    margin-bottom: 2px;
  }
  .od-mi-price { color: var(--text-dark); font-weight: 600; }
  .od-mi-qty { color: var(--text-muted); }
  .od-mi-sub {
    font-size: 12px;
    color: var(--text-muted);
  }
  .od-mi-sub strong { color: var(--text-dark); }

  /* Two col to one */
  .od-amount-row {
    flex-direction: column;
    gap: 16px;
  }

  /* Action bar - full width buttons */
  .od-action-bar {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .od-action-left, .od-action-right {
    width: 100%;
  }
  .od-action-right {
    justify-content: stretch;
  }
  .od-action-right .btn,
  .od-action-left .btn {
    flex: 1 1 auto;
    text-align: center;
    padding: 10px 14px;
  }

  /* Modal on mobile */
  .mo-modal-box {
    width: 92%;
    max-width: 420px;
    margin: 10vh auto;
  }

  /* Timeline compact */
  .mo-tl-text { font-size: 13px; }
  .mo-tl-time { font-size: 11px; }
}

/* Small mobile */
@media (max-width: 480px) {
  .od-progress { gap: 4px; }
  .od-progress-line {
    left: 22px;
    right: 22px;
  }
  .od-step-dot {
    width: 28px; height: 28px;
    font-size: 11px;
  }
  .od-step-label { font-size: 10px; }
  .od-mobile-item { padding: 10px; }
  .od-mi-img { width: 64px; height: 64px; }
}

/* Print styles */
@media print {
  .site-header, .cat-nav, .site-footer, .back-to-top, .top-notice,
  .mobile-drawer-overlay, .mobile-drawer { display: none !important; }
  body { background: #fff; color: #000; }
}
