/* ============================================
   華嶼凌商貿 - 建材·工具·機械 獨立站
   Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&family=Montserrat:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #16213e;
  --color-accent: #e8860c;
  --color-accent-hover: #d4780a;
  --color-red: #c0392b;
  --color-green: #27ae60;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f6fa;
  --color-bg-dark: #1a1a2e;
  --color-text: #2d3436;
  --color-text-light: #636e72;
  --color-text-white: #ffffff;
  --color-border: #e0e0e0;
  --color-border-light: #f0f0f0;
  --color-star: #f39c12;
  --color-hot: #e74c3c;

  --font-heading: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-body: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  --font-en: 'Montserrat', 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --max-width: 1280px;
  --header-height: 92px;
}

/* --- Reset --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

ul, ol {
  list-style: none;
}

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

button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Typography --- */
.section-eyebrow {
  display: block;
  text-align: center;
  font-family: var(--font-en);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--color-text-light);
  text-align: center;
  margin-bottom: 3rem;
  font-family: var(--font-en);
  letter-spacing: 0.5px;
}

.section-subtitle::before {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--color-accent);
  margin: 0 auto 12px;
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.header-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: 800;
  overflow: hidden;
  flex-shrink: 0;
}

.header-logo .logo-icon img {
  width: auto;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .header-logo .logo-icon {
    height: 44px !important;
  }
  .header-logo .logo-icon img {
    max-width: 160px !important;
  }
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.header-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.header-nav a:hover,
.header-nav a.active {
  color: var(--color-accent);
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}

.header-nav a:hover::after,
.header-nav a.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-actions .icon-btn {
  position: relative;
  background: none;
  font-size: 1.25rem;
  color: var(--color-text);
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.header-actions .icon-btn:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--color-red);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  display: none;
}

.cart-count.has-items {
  display: flex;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ============================================
   HERO / CAROUSEL
   ============================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
}

.hero-slides {
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide .slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-slide .slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.85), rgba(26,26,46,0.55));
}

.hero-slide .slide-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 20px;
}

.hero-slide .slide-tag {
  display: inline-block;
  background: var(--color-accent);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.hero-slide h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: white;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.hero-slide p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  font-family: var(--font-en);
}

.hero-slide .slide-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,134,12,0.4);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid rgba(255,255,255,0.5);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline-dark:hover {
  background: var(--color-primary);
  color: white;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Carousel controls */
.hero-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}

.hero-dot.active {
  background: var(--color-accent);
  width: 28px;
  border-radius: 6px;
}

.hero-arrow {
  background: rgba(255,255,255,0.15);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background 0.3s;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.3);
}

/* Hero Search Bar */
.hero-search-bar {
  background: #fff;
  border-bottom: 1px solid var(--color-border-light);
  padding: 16px 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.hero-search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}

.hero-search-form input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--color-border);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.3s;
}

.hero-search-form input:focus {
  border-color: var(--color-accent);
}

.hero-search-form button {
  padding: 12px 28px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background 0.3s;
  white-space: nowrap;
}

.hero-search-form button:hover {
  background: var(--color-accent-hover);
}

.hero-search-tags {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.hero-search-tags span {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.hero-search-tags a {
  display: inline-block;
  padding: 3px 12px;
  background: var(--color-bg-alt);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--color-text);
  transition: all 0.2s;
}

.hero-search-tags a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================================
   CATEGORY BAR (Compact)
   ============================================ */
.category-bar {
  padding: 28px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}

.category-bar h3 {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.category-bar-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border-light);
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.25s;
  text-decoration: none;
}

.category-chip:hover {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-chip span {
  font-size: 1rem;
}

/* ============================================
   CATEGORY CARDS
   ============================================ */
.categories {
  padding: 80px 0 60px;
}

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

.category-card {
  position: relative;
  height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.category-card .card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.category-card:hover .card-bg {
  transform: scale(1.08);
}

.category-card .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.2) 60%);
}

.category-card .card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  color: white;
  z-index: 2;
}

.category-card .card-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.category-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card .card-sub {
  font-size: 0.85rem;
  opacity: 0.8;
  font-family: var(--font-en);
}

.category-card .card-tag {
  display: inline-block;
  background: var(--color-accent);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ============================================
   PROMO BANNER
   ============================================ */
.promo-section {
  padding: 60px 0;
}

.promo-banner {
  background: linear-gradient(135deg, var(--color-accent), #d35400);
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.promo-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.promo-banner::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 30%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.promo-content {
  position: relative;
  z-index: 2;
  color: white;
}

.promo-content .promo-tag {
  display: inline-block;
  background: rgba(255,255,255,0.25);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.promo-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.promo-content p {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
  font-family: var(--font-en);
}

.promo-content .btn {
  background: white;
  color: var(--color-accent);
}

.promo-content .btn:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.promo-timer {
  display: flex;
  gap: 16px;
  position: relative;
  z-index: 2;
}

.promo-timer .timer-block {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-align: center;
  min-width: 80px;
}

.timer-block .timer-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.timer-block .timer-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products-section {
  padding: 60px 0 80px;
}

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

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  border: 1px solid var(--color-border-light);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card .product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
}

.badge-hot {
  background: var(--color-hot);
}

.badge-new {
  background: var(--color-green);
}

.badge-sale {
  background: var(--color-accent);
}

.product-card .product-img {
  height: 240px;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.product-card .product-img img.img-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img img.img-placeholder {
  transform: scale(1.08);
}

.product-card .product-actions button.active {
  background: var(--color-hot);
  color: white;
}

.product-card .product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-actions {
  opacity: 1;
}

.product-actions button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: white;
  color: var(--color-text);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.product-actions button:hover {
  background: var(--color-accent);
  color: white;
}

.product-card .product-info {
  padding: 16px;
  position: relative;
}

/* Stock urgency indicator */
.product-card .stock-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--color-hot);
  font-weight: 600;
  margin-bottom: 6px;
}

.product-card .stock-indicator.low {
  animation: pulse-text 2s ease infinite;
}

@keyframes pulse-text {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.product-card .product-category {
  font-size: 0.78rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.product-card .product-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card a.product-name:hover {
  color: var(--color-accent);
}

.product-card .product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.product-rating .stars {
  color: var(--color-star);
}

.product-rating .rating-count {
  color: var(--color-text-light);
  font-size: 0.8rem;
}

.product-rating .sold-count {
  color: var(--color-text-light);
  font-size: 0.75rem;
  margin-left: auto;
}

.product-card .ship-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-green);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 3px;
  margin-bottom: 8px;
}

.product-card .product-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price .current {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red);
}

.product-price .original {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-decoration: line-through;
}

.product-price .discount-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-hot);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.product-card .add-to-cart-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  background: var(--color-primary);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
}

.product-card .add-to-cart-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.product-card:hover .add-to-cart-btn::before {
  left: 100%;
}

.product-card .add-to-cart-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(232,134,12,0.3);
}

/* ============================================
   TRUST SECTION
   ============================================ */
.trust-section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}

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

.trust-card {
  text-align: center;
  padding: 40px 24px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}

.trust-card:hover {
  transform: translateY(-4px);
}

.trust-card .trust-icon {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.trust-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.trust-card ul {
  text-align: left;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.trust-card ul li {
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.trust-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ============================================
   NEWSLETTER / CTA SECTION
   ============================================ */
.cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: white;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-section p {
  font-size: 1.05rem;
  opacity: 0.85;
  margin-bottom: 2rem;
  font-family: var(--font-en);
}

.newsletter-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
}

.newsletter-form input:focus {
  box-shadow: 0 0 0 3px rgba(232,134,12,0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-accent);
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul li {
  padding: 6px 0;
}

.footer-col ul li a {
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--color-accent);
}

.footer-col .contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
}

.footer-col .social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s;
}

.social-links a svg {
  display: block;
  transition: transform 0.3s;
}

.social-links a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.social-links a:hover svg {
  transform: scale(1.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom .payment-icons {
  display: flex;
  gap: 8px;
  font-size: 1.5rem;
}

/* ============================================
   PRODUCTS PAGE
   ============================================ */

/* Skeleton Loading */
.skeleton-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border-light);
}

.skeleton-img {
  width: 100%;
  height: 200px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
}

.skeleton-line {
  height: 12px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: 4px;
  margin: 12px 16px;
}

.skeleton-line.short { width: 60%; }
.skeleton-line.medium { width: 80%; }

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.page-header {
  background: var(--color-bg-alt);
  padding: 40px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
}

.page-header .breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

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

.breadcrumb span {
  margin: 0 6px;
}

.products-page {
  padding: 40px 0 80px;
}

.products-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* Sidebar Filters */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  height: fit-content;
}

.filter-block {
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.filter-block h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-light);
}

.filter-list li {
  padding: 8px 0;
}

.filter-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  transition: color 0.2s;
  cursor: pointer;
}

.filter-list li a:hover,
.filter-list li a.active {
  color: var(--color-accent);
  font-weight: 600;
}

.filter-list li a .count {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-text-light);
  background: var(--color-bg-alt);
  padding: 2px 8px;
  border-radius: 10px;
}

.price-filter input[type="range"] {
  width: 100%;
  accent-color: var(--color-accent);
}

.price-filter .price-range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* Products Toolbar */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-light);
}

.products-count {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.products-sort select {
  padding: 8px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}

/* Toolbar Right (view toggle + sort) */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* View Toggle (grid / list) */
.view-toggle {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: white;
  font-size: 1.1rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn:hover {
  background: var(--color-bg);
  color: var(--color-accent);
}

.view-btn.active {
  background: var(--color-accent);
  color: white;
}

/* Active Filter Chips */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  min-height: 0;
}

.filter-chips:empty {
  display: none;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--color-text);
  animation: chipFadeIn 0.25s ease;
}

.filter-chip .chip-close {
  cursor: pointer;
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s;
}

.filter-chip .chip-close:hover {
  color: var(--color-accent);
}

.clear-all-btn {
  padding: 6px 12px;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.82rem;
  color: var(--color-text-light);
  cursor: pointer;
  transition: all 0.2s;
}

.clear-all-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

@keyframes chipFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile Filter Button (hidden on desktop) */
.mobile-filter-btn {
  display: none;
  width: 100%;
  padding: 12px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Product Description (visible in list view) */
.product-desc {
  display: none;
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 6px 0;
}

/* List View */
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  max-width: 100%;
}

.products-grid.list-view .product-card .product-img {
  width: 220px;
  min-width: 220px;
  height: 100%;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.products-grid.list-view .product-card .product-badge {
  top: 12px;
  left: 12px;
}

.products-grid.list-view .product-card .product-info {
  flex: 1;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.products-grid.list-view .product-card .product-info h3 {
  font-size: 1.2rem;
}

.products-grid.list-view .product-card .product-desc {
  display: block;
  -webkit-line-clamp: 2;
  margin: 8px 0 12px;
}

/* Mobile sidebar drawer */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
}

.sidebar-overlay.show {
  display: block;
}

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

.pagination button {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all 0.2s;
}

.pagination button:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.pagination button.active {
  background: var(--color-accent);
  color: white;
  border-color: var(--color-accent);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ============================================
   PRODUCT DETAIL PAGE
   ============================================ */
.product-detail {
  padding: 60px 0 80px;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 72px;
  flex-shrink: 0;
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
}

.gallery-thumbs::-webkit-scrollbar {
  width: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.gallery-thumb {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
  background: var(--color-bg-alt);
  flex-shrink: 0;
}

.gallery-thumb:hover {
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--color-accent);
}

.gallery-thumb .thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
}

.gallery-main {
  flex: 1;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gallery-main.zoomed {
  overflow: hidden;
  cursor: zoom-out;
}

.gallery-main.zoomed .gallery-slide-img {
  transform: scale(1.8);
  transition: transform 0.3s;
}

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

.gallery-magnifier {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
  background-repeat: no-repeat;
  border-radius: var(--radius-lg);
}

.product-detail-info h1 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.product-detail-info .product-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.product-meta .rating {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-meta .rating .stars {
  color: var(--color-star);
}

.product-meta .sku {
  color: var(--color-text-light);
}

.product-detail-info .detail-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-red);
  margin-bottom: 8px;
}

.product-detail-info .detail-price .orig {
  font-size: 1.1rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  font-weight: 500;
  margin-left: 12px;
}

.product-detail-info .detail-desc {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.quantity-selector label {
  font-weight: 600;
  margin-right: 16px;
  font-size: 0.95rem;
}

.quantity-selector button {
  width: 40px;
  height: 44px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 1.2rem;
  color: var(--color-text);
  transition: background 0.2s;
}

.quantity-selector button:hover {
  background: var(--color-border);
}

.quantity-selector button:first-of-type {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quantity-selector button:last-of-type {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
}

.detail-actions .btn-add-cart {
  flex: 1;
  padding: 16px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s;
}

.detail-actions .btn-add-cart:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(232,134,12,0.3);
}

.detail-actions .btn-outline-inquiry {
  padding: 16px 28px;
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
}

.detail-actions .btn-outline-inquiry:hover {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 6px 20px rgba(26,26,46,0.15);
}

.detail-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
}

.detail-features .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.feature-item .feat-icon {
  font-size: 1.2rem;
}

/* Product Tabs */
.product-tabs-section {
  padding: 40px 0 80px;
}

.product-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border-light);
  margin-bottom: 32px;
}

.product-tabs button {
  padding: 14px 32px;
  background: none;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-light);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}

.product-tabs button.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.product-tabs button:hover {
  color: var(--color-accent);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--color-border-light);
}

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

.specs-table td {
  padding: 12px 16px;
  font-size: 0.95rem;
}

.specs-table td:first-child {
  font-weight: 600;
  color: var(--color-primary);
  width: 180px;
  background: var(--color-bg-alt);
}

/* ============================================
   ABOUT PAGE
   ============================================ */
.about-section {
  padding: 80px 0;
}

.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.about-hero .about-img {
  height: 400px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-hero .about-text h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 20px;
}

.about-hero .about-text p {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

/* --- Process Steps --- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 80px;
}

.process-step {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.process-num {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  background: var(--color-accent);
  color: white;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.stat-card {
  text-align: center;
  padding: 40px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.stat-card .stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-card .stat-plus {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-accent);
}

.stat-card .stat-label {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-top: 8px;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
  padding: 60px 0 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.contact-info .info-desc {
  color: var(--color-text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-info .info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info .info-icon {
  font-size: 1.5rem;
  width: 48px;
  height: 48px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info .info-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.contact-info .info-text p {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-light);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form-group label .required {
  color: var(--color-red);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(232,134,12,0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  transition: all 0.3s;
}

.form-submit:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(232,134,12,0.3);
}

/* ============================================
   CART PAGE
   ============================================ */
.cart-page {
  padding: 60px 0 80px;
}

.cart-empty {
  text-align: center;
  padding: 80px 20px;
}

.cart-empty .empty-icon {
  font-size: 5rem;
  margin-bottom: 20px;
}

.cart-empty h2 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cart-empty p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

.cart-cross-sell {
  margin-top: 32px;
  padding: 0 16px;
}

.cart-cross-sell h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.cart-cross-sell > p {
  color: var(--color-text-light);
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.cart-cross-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cart-cross-card {
  cursor: pointer;
  background: white;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cart-cross-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cart-cross-card .cross-card-img,
.cart-cross-card .cross-card-img img,
.cart-cross-card .cross-card-img .img-placeholder {
  width: 100%;
  height: 200px;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.cart-cross-card .cross-card-img .img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.cart-cross-card .product-info {
  padding: 12px 16px;
}

.cart-cross-card .cross-card-cat {
  font-size: 0.75rem;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.cart-cross-card .cross-card-name {
  display: block;
  text-decoration: none;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
  min-height: 2.8em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cart-cross-card .cross-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.cart-cross-card .cross-card-stars {
  color: var(--color-star);
  font-size: 0.8rem;
}

.cart-cross-card .cross-card-sold {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.cart-cross-card .cross-card-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-cross-card .cross-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
}

.cart-cross-card .original {
  text-decoration: line-through;
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-right: 6px;
}

.cart-cross-card .cross-card-add {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.cart-cross-card .cross-card-add:hover {
  transform: scale(1.1);
}

@media (max-width: 768px) {
  .cart-cross-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .cart-cross-card .cross-card-img,
  .cart-cross-card .cross-card-img img,
  .cart-cross-card .cross-card-img .img-placeholder {
    height: 140px;
  }
  .cart-cross-card .cross-card-name {
    font-size: 0.85rem;
    min-height: 2.6em;
  }
  .cart-cross-card .cross-card-price {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .cart-cross-grid {
    grid-template-columns: 1fr;
  }
}

/* Cart list — table-like on desktop, card-like on mobile (JD-style) */
.cart-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  margin-bottom: 32px;
}

.cart-list-header {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 1fr 1fr 1fr 0.6fr;
  gap: 16px;
  padding: 16px;
  background: var(--color-bg-alt);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 2px solid var(--color-border);
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) 1fr 1fr 1fr 0.6fr;
  gap: 16px;
  padding: 20px 16px;
  align-items: center;
  border-bottom: 1px solid var(--color-border-light);
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-product-col {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: var(--color-bg-alt);
}

.cart-item-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

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

.cart-item-name {
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

.cart-item-spec,
.cart-item-cat {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.cart-price-col,
.cart-subtotal-col,
.cart-action-col,
.cart-qty-col {
  display: flex;
  align-items: center;
}

.cart-price-col,
.cart-subtotal-col {
  font-size: 0.95rem;
}

.cart-mobile-col {
  display: none;
}

.cart-qty {
  display: flex;
  align-items: center;
}

.cart-qty button {
  width: 32px;
  height: 32px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  font-size: 1rem;
}

.cart-qty button:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.cart-qty button:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.cart-qty input {
  width: 48px;
  height: 32px;
  text-align: center;
  border: 1px solid var(--color-border);
  border-left: none;
  border-right: none;
  font-weight: 600;
  outline: none;
}

.cart-remove {
  background: none;
  color: var(--color-text-light);
  font-size: 1.2rem;
  padding: 8px;
  transition: color 0.2s;
}

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

.cart-summary {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 400px;
  margin-left: auto;
}

.cart-summary h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.cart-summary .summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.cart-summary .summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-red);
  border-top: 2px solid var(--color-border);
  padding-top: 16px;
  margin-top: 8px;
}

.cart-summary .btn-checkout {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  transition: all 0.3s;
}

.cart-summary .btn-checkout:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 20px rgba(232,134,12,0.3);
}

/* ============================================
   MOBILE MENU OVERLAY
   ============================================ */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: white;
  z-index: 2000;
  padding: 24px;
  transition: right 0.3s;
  box-shadow: var(--shadow-xl);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav .close-btn {
  background: none;
  font-size: 1.5rem;
  color: var(--color-text);
  margin-bottom: 32px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--color-accent);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.overlay.show {
  opacity: 1;
  pointer-events: all;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--color-primary);
  color: white;
  padding: 14px 28px;
  border-radius: var(--radius-lg);
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 3000;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.toast.success {
  background: var(--color-green);
}

.toast.error {
  background: var(--color-red);
}

/* ============================================
   TOP ANNOUNCEMENT BAR
   ============================================ */
.top-bar {
  background: var(--color-primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  padding: 6px 0;
  overflow: hidden;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar-links {
  display: flex;
  gap: 16px;
}
.top-bar-links a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.top-bar-links a:hover {
  color: white;
}

/* ============================================
   HEADER SEARCH
   ============================================ */
.header-search {
  position: relative;
  flex: 1;
  max-width: 360px;
  margin: 0 24px;
}
.header-search input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 2px solid var(--color-border);
  border-radius: 24px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  background: var(--color-bg-alt);
}
.header-search input:focus {
  border-color: var(--color-accent);
  background: white;
}
.header-search button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-accent);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.header-search button:hover {
  background: var(--color-accent-hover);
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  max-height: 300px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
.search-dropdown.show {
  display: block;
}
.search-dropdown .search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-dropdown .search-item:hover {
  background: var(--color-bg-alt);
}
.search-dropdown .search-item img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.search-dropdown .search-item .si-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}
.search-dropdown .search-item .si-price {
  font-size: 0.85rem;
  color: var(--color-red);
  font-weight: 600;
}

/* ============================================
   MEGA MENU
   ============================================ */
.nav-dropdown {
  position: relative;
}
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  min-width: 720px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  z-index: 900;
  margin-top: 12px;
}
.nav-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  margin-top: 4px;
}
.mega-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-light);
}
.mega-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-light);
  padding: 6px 0;
  transition: color 0.2s;
}
.mega-col a:hover {
  color: var(--color-accent);
}
.mega-promo-bg {
  background: linear-gradient(135deg, var(--color-accent), #d35400);
  border-radius: var(--radius-md);
  padding: 20px;
  color: white;
  text-align: center;
}
.mega-promo-bg h4 {
  color: white;
  border: none;
  margin-bottom: 8px;
}
.mega-promo-bg p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 12px;
}

/* ============================================
   SERVICE BAR
   ============================================ */
.service-bar {
  background: white;
  border-bottom: 1px solid var(--color-border-light);
  padding: 16px 0;
}
.service-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-icon {
  font-size: 1.6rem;
}
.service-item div {
  display: flex;
  flex-direction: column;
}
.service-item strong {
  font-size: 0.85rem;
  color: var(--color-text);
}
.service-item small {
  font-size: 0.75rem;
  color: var(--color-text-light);
}

/* ============================================
   WHO WE SERVE / 服務對象
   ============================================ */
.audience-section {
  padding: 80px 0;
  background: #f8f9fb;
}
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.audience-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  transition: transform 0.25s, box-shadow 0.25s;
  border: 1px solid #eee;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}
.audience-card-highlight {
  border-color: var(--color-accent);
  box-shadow: 0 4px 20px rgba(232,134,12,0.12);
}
.audience-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-accent);
}
.audience-card-highlight .audience-icon {
  background: linear-gradient(135deg, var(--color-accent), #d35400);
  color: #fff;
}
.audience-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}
.audience-role {
  font-size: 0.8rem;
  color: var(--color-text-light);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.audience-desc {
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  min-height: 2.9em;
}
.audience-features {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: left;
  border-top: 1px solid #eee;
  padding-top: 14px;
}
.audience-features li {
  font-size: 0.88rem;
  color: var(--color-text-light);
  padding: 5px 0;
  padding-left: 20px;
  position: relative;
}
.audience-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.8rem;
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-section {
  padding: 80px 0;
  background: var(--color-bg-alt);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border-light);
  transition: transform 0.3s;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.testimonial-stars {
  color: var(--color-star);
  font-size: 1rem;
  margin-bottom: 12px;
}
.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}
.testimonial-author strong {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text);
}
.testimonial-author small {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

/* ============================================
   RECENTLY VIEWED
   ============================================ */
.recently-viewed {
  padding: 60px 0 80px;
}

/* ============================================
   QUICK VIEW MODAL
   ============================================ */
.qv-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 5000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.qv-overlay.show {
  opacity: 1;
  pointer-events: all;
}
.qv-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 5001;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
}
.qv-modal.show {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}
.qv-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.qv-close:hover {
  background: var(--color-red);
  color: white;
}
.qv-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.qv-image {
  background: var(--color-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
}
.qv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qv-image .qv-placeholder {
  font-size: 6rem;
}
.qv-info {
  padding: 32px;
}
.qv-category {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.qv-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.3;
}
.qv-rating {
  margin-bottom: 12px;
}
.qv-rating .stars {
  color: var(--color-star);
  font-size: 1rem;
}
.qv-rating .count {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-left: 8px;
}
.qv-price {
  margin-bottom: 16px;
}
.qv-price .current {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-red);
}
.qv-price .original {
  font-size: 1rem;
  color: var(--color-text-light);
  text-decoration: line-through;
  margin-left: 12px;
}
.qv-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 20px;
}
.qv-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.qv-actions .btn-add-cart {
  flex: 1;
  padding: 12px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}
.qv-actions .btn-add-cart:hover {
  background: var(--color-accent-hover);
}
.qv-actions .btn {
  padding: 12px 24px;
  white-space: nowrap;
}
.qv-features {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--color-text-light);
  flex-wrap: wrap;
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 92px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.2rem;
  box-shadow: var(--shadow-md);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.show {
  opacity: 1;
  pointer-events: all;
}
.back-to-top:hover {
  background: var(--color-accent-hover);
  transform: translateY(-3px);
}

/* ============================================
   MOBILE BOTTOM NAV
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid var(--color-border-light);
  z-index: 1100;
  padding: 6px 0 env(safe-area-inset-bottom, 8px) 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
}
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  padding: 6px 0;
  transition: color 0.2s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover {
  color: var(--color-accent);
}
.mobile-bottom-nav a span:first-of-type {
  font-size: 1.3rem;
}
.mobile-cart-link {
  position: relative;
}
.mobile-cart-count {
  position: absolute;
  top: -2px;
  right: calc(50% - 28px);
  min-width: 18px;
  height: 18px;
  background: var(--color-red);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.mobile-cart-count.has-items {
  display: flex;
}
.mobile-search {
  margin-bottom: 16px;
  display: flex;
  gap: 8px;
}
.mobile-search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}
.mobile-search button {
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 0 14px;
  cursor: pointer;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .about-hero {
    grid-template-columns: 1fr;
  }

  .about-hero .about-img {
    height: 240px;
    aspect-ratio: auto;
  }

  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0 48px;
  }

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

  .product-gallery {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 74px;
  }

  .header-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero {
    height: 420px;
  }

  .hero-slide h1 {
    font-size: 1.8rem;
  }

  .category-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .category-card {
    height: 200px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-card .product-img {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 200px;
  }

  .product-card .product-info {
    padding: 12px;
  }

  .product-card .product-name {
    font-size: 0.9rem;
  }

  .product-card .product-rating {
    font-size: 0.8rem;
    margin-bottom: 8px;
  }

  .product-price .current {
    font-size: 1.05rem;
  }

  .product-card .add-to-cart-btn {
    padding: 8px;
    font-size: 0.85rem;
  }

  .skeleton-img {
    height: 160px;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }

  .promo-timer {
    justify-content: center;
  }

  .products-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-header {
    padding: 28px 0;
  }

  .page-header h1 {
    font-size: 1.6rem;
  }

  .page-header .breadcrumb {
    font-size: 0.85rem;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    background: white;
    z-index: 1001;
    padding: 20px;
    box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
    transition: left 0.3s ease;
    display: block !important;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .mobile-filter-btn {
    display: flex;
  }

  .sidebar-close {
    display: flex;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--color-bg);
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    color: var(--color-text-light);
    z-index: 10;
  }

  .toolbar-right {
    gap: 8px;
  }

  .products-grid.list-view .product-card {
    flex-direction: column;
  }

  .products-grid.list-view .product-card .product-img {
    width: 100%;
    min-width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: 200px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

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

  /* Hide quick-view and compare buttons on mobile to avoid covering product image */
  .product-actions button:nth-child(2),
  .product-actions button:nth-child(3) {
    display: none;
  }

  .cart-list {
    border: none;
    background: transparent;
    gap: 12px;
  }

  .cart-list-header {
    display: none;
  }

  .cart-item {
    grid-template-columns: 90px 1fr;
    grid-template-areas:
      "img meta"
      "img action";
    gap: 0;
    padding: 12px;
    background: white;
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    align-items: start;
  }

  .cart-product-col {
    grid-area: img;
    flex-direction: column;
    gap: 0;
  }

  .cart-item-img {
    width: 90px;
    height: 90px;
  }

  .cart-item-info {
    display: none;
  }

  .cart-qty-col {
    grid-area: action;
    justify-self: start;
    align-self: end;
    margin-top: 10px;
  }

  .cart-desktop-only {
    display: none !important;
  }

  .cart-mobile-col {
    grid-area: meta;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
    min-width: 0;
    overflow: hidden;
  }

  .cart-mobile-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
  }

  .cart-mobile-name {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-width: 0;
  }

  .cart-mobile-top .cart-remove {
    padding: 4px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .cart-mobile-spec,
  .cart-mobile-cat {
    font-size: 0.8rem;
    color: var(--color-text-light);
  }

  .cart-mobile-bottom {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 6px;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
    font-size: 0.85rem;
  }

  .cart-mobile-price {
    color: var(--color-text);
    white-space: nowrap;
  }

  .cart-mobile-subtotal {
    color: var(--color-accent);
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
  }

  .cart-mobile-bottom .cart-qty {
    justify-self: center;
  }

  .cart-mobile-bottom .cart-qty button {
    width: 28px;
    height: 28px;
  }

  .cart-mobile-bottom .cart-qty input {
    width: 34px;
    height: 28px;
    font-size: 0.85rem;
  }

  .cart-summary {
    max-width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 22px 0;
  }

  .page-header h1 {
    font-size: 1.4rem;
  }

  .page-header .breadcrumb {
    font-size: 0.8rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-card .product-img {
    max-height: 170px;
  }

  .product-card .product-info {
    padding: 10px;
  }

  .product-card .product-category {
    font-size: 0.72rem;
  }

  .product-card .product-name {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
    margin-bottom: 6px;
  }

  .product-card .product-rating {
    font-size: 0.75rem;
    gap: 4px;
    margin-bottom: 6px;
  }

  .product-rating .sold-count {
    display: none;
  }

  .product-price .current {
    font-size: 0.95rem;
  }

  .product-card .add-to-cart-btn {
    padding: 8px;
    font-size: 0.8rem;
    margin-top: 8px;
  }

  .product-card .stock-indicator {
    font-size: 0.68rem;
    margin-bottom: 4px;
  }

  .skeleton-img {
    height: 140px;
  }

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

  /* 服務對象 responsive */
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .audience-card {
    padding: 28px 20px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-slide h1 {
    font-size: 1.4rem;
  }

  .hero {
    height: 350px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .product-tabs button {
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card .product-img {
    max-height: 200px;
  }

  .product-card .product-name {
    font-size: 0.9rem;
  }

  .product-rating .sold-count {
    display: inline;
  }

  .skeleton-img {
    height: 180px;
  }
}

/* New element responsive */
@media (max-width: 768px) {
  .header-search {
    display: none;
  }
  .top-bar {
    font-size: 0.75rem;
  }
  .top-bar-links {
    display: none;
  }
  .service-bar .service-item:nth-child(4),
  .service-bar .service-item:nth-child(5) {
    display: none;
  }
  .service-icon {
    font-size: 1.3rem;
  }
  .service-item strong {
    font-size: 0.78rem;
  }
  .service-item small {
    font-size: 0.7rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .qv-layout {
    grid-template-columns: 1fr;
  }
  .qv-image {
    min-height: 220px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  .qv-name {
    font-size: 1.15rem;
  }
  .qv-info {
    padding: 20px;
  }
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
  }
  .back-to-top {
    right: auto;
    left: 16px;
    bottom: 100px;
    z-index: 1200;
  }
  .chat-widget {
    bottom: 90px;
    right: 16px;
  }
  .footer {
    padding-bottom: 80px;
  }

  /* Hero Search Bar mobile */
  .hero-search-bar {
    padding: 12px 16px;
  }
  .hero-search-form input {
    padding: 10px 14px;
    font-size: 0.85rem;
  }
  .hero-search-form button {
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  .hero-search-tags {
    gap: 6px;
  }
  .hero-search-tags a {
    font-size: 0.72rem;
    padding: 3px 10px;
  }

  /* Category Bar mobile */
  .category-bar {
    padding: 18px 16px;
  }
  .category-bar h3 {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }
  .category-bar-list {
    gap: 6px;
  }
  .category-chip {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}

@media (min-width: 769px) {
  .mobile-bottom-nav {
    display: none;
  }
}

/* ============================================
   CHECKOUT MODAL
   ============================================ */
.checkout-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000;
  display: none; align-items: center; justify-content: center;
}
.checkout-overlay.show { display: flex; }
.checkout-modal {
  background: var(--color-bg); border-radius: var(--radius-xl); padding: 32px;
  width: 560px; max-width: 95vw; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-xl); position: relative;
}
.checkout-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  font-size: 1.4rem; cursor: pointer; color: var(--color-text-light);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
}
.checkout-close:hover { background: var(--color-bg-alt); }
.checkout-modal h2 { font-size: 1.3rem; margin-bottom: 4px; }
.checkout-subtitle { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 20px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkout-grid .form-group { margin-bottom: 0; }
.checkout-grid .form-group:last-child { grid-column: 1 / -1; }
.checkout-modal .form-group { margin-bottom: 14px; }
.checkout-modal .form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.checkout-modal .form-group .required { color: var(--color-red); }
.checkout-modal .form-group input,
.checkout-modal .form-group textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: 0.9rem; outline: none;
  font-family: inherit; transition: border-color 0.2s;
}
.checkout-modal .form-group input:focus,
.checkout-modal .form-group textarea:focus { border-color: var(--color-accent); }
.checkout-summary { margin: 20px 0; padding: 16px; background: var(--color-bg-alt); border-radius: var(--radius-md); }
.checkout-summary h4 { font-size: 1rem; margin-bottom: 12px; }
.co-items { margin-bottom: 12px; }
.co-item { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.9rem; border-bottom: 1px dashed var(--color-border); }
.co-total-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.9rem; }
.co-total-row.co-grand { font-weight: 700; font-size: 1.1rem; color: var(--color-accent); border-top: 2px solid var(--color-border); padding-top: 8px; margin-top: 4px; }
.btn-checkout-submit {
  width: 100%; padding: 14px; background: var(--color-accent); color: white;
  border: none; border-radius: var(--radius-md); font-size: 1.05rem; font-weight: 700;
  cursor: pointer; transition: background 0.2s;
}
.btn-checkout-submit:hover { background: var(--color-accent-hover); }
.checkout-note { text-align: center; color: var(--color-text-light); font-size: 0.85rem; margin-top: 10px; }
@media (max-width: 600px) {
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ============================================
   FLOATING CHAT WIDGET
   ============================================ */
.chat-widget {
  position: fixed; bottom: 24px; right: 24px; z-index: 1200;
}
.chat-toggle {
  width: 56px; height: 56px; border-radius: 50%; background: var(--color-accent);
  color: white; border: none; cursor: pointer; font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(232,134,12,0.4); display: flex;
  align-items: center; justify-content: center; transition: transform 0.2s, box-shadow 0.2s;
}
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(232,134,12,0.5); }
.chat-toggle .chat-badge {
  position: absolute; top: -2px; right: -2px; width: 18px; height: 18px;
  background: var(--color-red); border-radius: 50%; font-size: 0.65rem;
  display: flex; align-items: center; justify-content: center; color: white;
  font-weight: 700; display: none;
}
.chat-toggle .chat-badge.show { display: flex; }

.chat-panel {
  position: absolute; bottom: 70px; right: 0; width: 340px; max-width: calc(100vw - 48px);
  background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-xl);
  overflow: hidden; display: none; flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-panel-header {
  background: var(--color-primary); color: white; padding: 16px 20px;
  display: flex; align-items: center; gap: 12px;
  position: relative;
}
.chat-close {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255,255,255,0.3); }
.chat-panel-header .chat-avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  flex-shrink: 0;
}
.chat-panel-header .chat-header-info h4 { font-size: 0.95rem; margin-bottom: 2px; }
.chat-panel-header .chat-header-info p { font-size: 0.75rem; opacity: 0.8; }
.chat-panel-body {
  padding: 16px 20px; max-height: 360px; overflow-y: auto;
}
.chat-greeting { font-size: 0.9rem; line-height: 1.6; color: var(--color-text); margin-bottom: 16px; }
.chat-actions { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.chat-action-btn {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); cursor: pointer; font-size: 0.9rem;
  font-weight: 500; transition: background 0.2s; text-align: left; width: 100%; font-family: inherit;
}
.chat-action-btn:hover { background: #fff8f0; border-color: var(--color-accent); }
.chat-action-btn .action-icon { font-size: 1.3rem; }
.chat-line-qr {
  margin-top: 8px; text-align: center; padding: 12px; background: #f8f9fa;
  border-radius: var(--radius-md); display: none;
}
.chat-line-qr.show { display: block; }
.chat-line-qr .line-qr-img {
  width: 160px; height: 160px; object-fit: contain; margin: 6px auto; border-radius: var(--radius-sm);
  border: 2px solid var(--color-border);
  background: white;
}
.chat-line-qr .line-qr-img + .qr-placeholder { display: none; }
.chat-line-qr .line-qr-link { display: inline-block; cursor: pointer; }
.chat-line-qr .line-qr-img { display: block; }
.chat-line-qr .line-id { font-size: 0.85rem; color: var(--color-accent); font-weight: 700; margin-top: 6px; }
.chat-line-qr .line-btn {
  display: inline-block; margin-top: 8px; padding: 8px 20px;
  background: #06C755; color: white; border-radius: 20px; text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
}
.chat-quick-form { margin-top: 12px; display: none; }
.chat-quick-form.show { display: block; }
.chat-quick-form input, .chat-quick-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); font-size: 0.85rem; margin-bottom: 8px;
  font-family: inherit; outline: none;
}
.chat-quick-form input:focus, .chat-quick-form textarea:focus { border-color: var(--color-accent); }
.chat-quick-form .chat-submit {
  width: 100%; padding: 10px; background: var(--color-accent); color: white;
  border: none; border-radius: var(--radius-md); font-size: 0.9rem;
  font-weight: 600; cursor: pointer;
}
.chat-quick-form .chat-submit:hover { background: var(--color-accent-hover); }
.chat-quick-form .chat-back {
  background: none; border: none; color: var(--color-text-light); cursor: pointer;
  font-size: 0.8rem; margin-bottom: 10px; text-decoration: underline;
}
.chat-faq { margin-top: 16px; }
.chat-faq h5 { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 8px; }
.chat-faq-item {
  padding: 10px 12px; background: #f8f9fa; border-radius: var(--radius-sm);
  font-size: 0.83rem; cursor: pointer; margin-bottom: 6px; transition: background 0.2s;
}
.chat-faq-item:hover { background: #fff8f0; }
.chat-faq-answer { display: none; padding: 8px 12px; font-size: 0.82rem; color: var(--color-text-light); background: #fff8f0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); margin-top: -6px; margin-bottom: 6px; }
.chat-faq-answer.show { display: block; }
@media (max-width: 480px) {
  .chat-panel { width: calc(100vw - 32px); right: -8px; }
  .chat-widget { bottom: 92px; right: 12px; }
}

/* ============================================
   Gallery Carousel & Variant System
   ============================================ */

/* --- Gallery Slides --- */
.gallery-slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: white;
  user-select: none;
  -webkit-user-drag: none;
}

.gallery-slide-icon {
  font-size: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
}

/* --- Video Slide --- */
.gallery-slide-video {
  background: #000;
}

.gallery-slide-video video,
.gallery-slide-video iframe {
  border: none;
  display: block;
}

/* --- Video Thumbnail Overlay --- */
.gallery-thumb-video {
  position: relative;
  background: linear-gradient(135deg, #2c3e50 0%, #1a1a2e 100%);
}

.gallery-thumb-video .thumb-video-img,
.gallery-thumb-video .thumb-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumb-video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 1;
}

.thumb-video-overlay {
  pointer-events: none;
  z-index: 2;
}

/* --- Gallery Navigation --- */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-text);
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
  opacity: 0.8;
}

.gallery-nav:hover {
  background: var(--color-accent);
  color: white;
  opacity: 1;
  transform: translateY(-50%) scale(1.1);
}

.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

/* --- Gallery Zoom Button --- */
.gallery-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
  opacity: 0.8;
}

.gallery-zoom-btn:hover {
  background: var(--color-accent);
  opacity: 1;
}

/* --- Gallery Dots --- */
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
  pointer-events: auto;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}

.gallery-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

/* --- Gallery Swipe Hint --- */
.gallery-swipe-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 6px;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.9);
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  pointer-events: none;
  z-index: 4;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: opacity 0.5s;
}

.gallery-swipe-hint.fade {
  opacity: 0;
}

/* --- Gallery Thumbnails --- */
.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-thumb-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2px 4px;
  text-align: center;
  font-size: 0.62rem;
  color: white;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Variant Selector --- */
.variant-selector {
  margin: 16px 0;
  padding: 16px;
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-light);
}

.variant-selector > label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: var(--color-text);
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.variant-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 100px;
  text-align: center;
}

.variant-chip:hover {
  border-color: var(--color-accent);
  background: #fff8f0;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.variant-chip.active {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 12px rgba(232,134,12,0.3);
}

.variant-chip.active .variant-price {
  color: rgba(255,255,255,0.9);
}

.variant-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.variant-price {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Admin Variant Manager --- */
.variant-manager-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--color-border);
}

.variant-row {
  transition: box-shadow 0.2s;
}

.variant-row:hover {
  box-shadow: var(--shadow-sm);
}

/* --- Responsive Gallery --- */
@media (max-width: 1024px) {
  .product-gallery {
    position: static;
    flex-direction: column-reverse;
  }
  .gallery-thumbs {
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-right: 0;
    padding-bottom: 2px;
  }
  .gallery-thumbs::-webkit-scrollbar {
    height: 4px;
  }
  .gallery-main {
    height: 360px;
  }
}

@media (max-width: 768px) {
  .gallery-main {
    height: 340px;
  }
  .gallery-nav {
    width: 38px;
    height: 38px;
    font-size: 1.5rem;
  }
  .variant-chip {
    min-width: 80px;
    padding: 8px 14px;
  }
}

@media (max-width: 480px) {
  .gallery-main {
    height: 280px;
  }
  .gallery-nav {
    width: 34px;
    height: 34px;
    font-size: 1.3rem;
  }
  .gallery-zoom-btn {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
  .variant-chip {
    flex: 1 1 calc(50% - 5px);
    min-width: 0;
  }
}

/* ============================================
   Social Share
   ============================================ */
.social-share .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-share .share-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.social-share .share-btn svg {
  display: block;
  flex-shrink: 0;
}

/* ============================================
   Mobile Sticky Bar — Child Elements
   (base .mobile-sticky-bar is defined below in product-detail section)
   ============================================ */

.mobile-sticky-bar .sticky-price {
  flex-shrink: 0;
}

.mobile-sticky-bar .sticky-price span:first-child {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-accent);
  white-space: nowrap;
}

.mobile-sticky-bar .sticky-stock {
  display: block;
  font-size: 0.7rem;
  color: var(--color-green);
  margin-top: 2px;
}

.mobile-sticky-bar .sticky-actions {
  display: flex;
  flex: 1;
  gap: 8px;
}

.mobile-sticky-bar .sticky-cart {
  flex: 1;
  padding: 12px 8px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.mobile-sticky-bar .sticky-cart:hover {
  background: var(--color-primary-light);
}

.mobile-sticky-bar .sticky-inquiry {
  flex: 1;
  padding: 12px 8px;
  background: var(--color-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}

.mobile-sticky-bar .sticky-inquiry:hover {
  background: #1e7e34;
}

@media (max-width: 768px) {
  .mobile-sticky-bar {
    display: flex;
  }
  /* Hide desktop detail actions on mobile */
  .detail-actions {
    display: none;
  }
  body {
    padding-bottom: 80px;
  }
  /* Hide mobile bottom nav on product detail page (sticky bar takes over) */
  .page-detail .mobile-bottom-nav {
    display: none;
  }
  .chat-widget {
    bottom: 100px;
    right: 16px;
  }
}

/* ============================================
   Generic Modal Styles
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px;
  overflow-y: auto;
}

.modal {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border-light);
}

.modal-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.modal-body {
  padding: 24px;
}

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

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

/* ============================================
   Buy Now Checkout Modal
   ============================================ */
.buy-now-modal {
  max-width: 520px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
}

.buy-now-summary {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.buy-now-product {
  display: flex;
  gap: 12px;
  align-items: center;
}

.buy-now-img {
  width: 72px;
  height: 72px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--color-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.buy-now-info {
  flex: 1;
  min-width: 0;
}

.buy-now-info h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-now-variant {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 6px;
}

.buy-now-qty-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.buy-now-total {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.buy-now-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius-sm);
  padding: 12px;
  margin: 16px 0;
  font-size: 0.85rem;
  color: #f57f17;
  line-height: 1.6;
}

.buy-now-notice p {
  margin: 0;
}

.btn-buy-now-submit {
  display: block;
  width: 100%;
  padding: 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.btn-buy-now-submit:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.btn-buy-now-submit:active {
  transform: translateY(0);
}

/* ============================================
   Trust & FAQ Accordion Section
   ============================================ */
.product-trust-section {
  padding: 60px 0;
  background: var(--color-bg);
}
.trust-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.trust-accordion,
.product-faq {
  min-width: 0;
}

.accordion-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.accordion-item:hover {
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  transition: background 0.2s;
  gap: 12px;
}

.accordion-header:hover {
  background: var(--color-bg-alt);
}

.accordion-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-light);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.accordion-item.open .accordion-body {
  max-height: 300px;
  padding: 0 16px 16px;
}

.accordion-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin: 0;
}

@media (max-width: 768px) {
  .trust-faq-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================
   庫存緊張進度條 (Stock Urgency)
   ============================================ */
.stock-progress {
  margin-top: 6px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}
.stock-progress-bar {
  width: 100%;
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}
.stock-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}
.stock-progress-fill.high {
  background: linear-gradient(90deg, #ff5722, #ff9800);
}
.stock-progress-fill.medium {
  background: linear-gradient(90deg, #ff9800, #ffc107);
}
.stock-progress-fill.low {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
}
.stock-progress.urgent {
  color: var(--color-accent);
  font-weight: 600;
}

/* ============================================
   詢價清單頂部提示條 (Quote Hint Bar)
   ============================================ */
.free-ship-top {
  margin-bottom: 20px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.free-ship-top.need {
  background: linear-gradient(135deg, #fff8f0, #fff3e0);
  border: 1px solid #ffd9a8;
}
.free-ship-top.met {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border: 1px solid #a5d6a7;
}
.free-ship-top-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.free-ship-top-row .emoji {
  font-size: 1.5rem;
}
.free-ship-top.need strong {
  color: var(--color-accent);
  font-size: 1.1rem;
}
.free-ship-top.met strong {
  color: #2e7d32;
}
.free-ship-top-bar {
  width: 100%;
  height: 8px;
  background: #ffe0b2;
  border-radius: 4px;
  overflow: hidden;
}
.free-ship-top.met .free-ship-top-bar {
  background: #a5d6a7;
}
.free-ship-top-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #ff9800);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.free-ship-top.met .free-ship-top-bar-fill {
  background: linear-gradient(90deg, #4caf50, #66bb6a);
  width: 100% !important;
}
.free-ship-top-link {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--color-accent);
  text-decoration: none;
  margin-top: 4px;
  font-weight: 600;
}

/* ============================================
   LINE CTA 一鍵加好友
   ============================================ */
.line-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #06C755;
  color: white;
  border-radius: 22px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}
.line-cta:hover {
  background: #05b04d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
  color: white;
}
.line-cta-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f1f9f3, #e8f5e9);
  border: 1px solid #c8e6c9;
  border-radius: var(--radius-md);
  margin-top: 12px;
}
.line-cta-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #2e7d32;
  font-size: 0.95rem;
}
.line-cta-block-desc {
  font-size: 0.82rem;
  color: #555;
  line-height: 1.5;
}
.line-cta-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.line-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  color: #2e7d32;
  border: 1px solid #06C755;
  border-radius: 18px;
  font-weight: 500;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.line-cta-secondary:hover {
  background: #f1f9f3;
  color: #2e7d32;
}

/* ============================================
   商品詳情頁底部吸頂 (Mobile Sticky Bar)
   ============================================ */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: white;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
  padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0));
  gap: 8px;
  align-items: center;
}
.mobile-sticky-bar.show {
  display: flex;
}
.sticky-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sticky-info-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-info-stock {
  font-size: 0.72rem;
  color: var(--color-text-light);
}
.sticky-info-stock.low {
  color: #e53935;
  font-weight: 600;
}
.sticky-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.sticky-actions button {
  padding: 10px 14px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.sticky-actions button:active {
  opacity: 0.7;
}
.sticky-cart {
  background: white;
  color: var(--color-accent);
  border: 1px solid var(--color-accent) !important;
}
.sticky-inquiry {
  background: var(--color-green);
  color: white;
}
.sticky-line {
  background: #06C755;
  color: white;
  padding: 10px 12px !important;
  font-size: 1rem !important;
}

