/* ========================================
   WYT CUE - Luxury Billiard Cues
   Inspired by HUGO BOSS Design System
   ======================================== */

/* --- CSS Variables / Design Tokens --- */
:root {
  /* Primary Palette */
  --color-black: #000000;
  --color-white: #FFFFFF;
  --color-beige: #C4A882;
  --color-beige-light: #D4C4A8;
  --color-beige-dark: #A89070;
  --color-cream: #F5F0E8;
  --color-warm-white: #FAFAF7;

  /* Neutrals */
  --color-gray-50: #F7F7F7;
  --color-gray-100: #EEEEEE;
  --color-gray-200: #DDDDDD;
  --color-gray-300: #CCCCCC;
  --color-gray-400: #999999;
  --color-gray-500: #777777;
  --color-gray-600: #555555;
  --color-gray-700: #333333;
  --color-gray-800: #222222;
  --color-gray-900: #111111;

  /* Functional */
  --color-error: #C41230;
  --color-success: #2D8C4A;
  --color-sale: #C41230;

  /* Typography */
  --font-primary: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
  --font-display: 'Futura', 'Century Gothic', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Layout */
  --max-width: 1440px;
  --max-width-narrow: 1200px;
  --header-height: 56px;
  --announcement-height: 36px;
  --header-total: calc(var(--header-height) + var(--announcement-height));

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-very-slow: 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);

  /* Shadows */
  --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);

  /* Borders */
  --border-thin: 1px solid var(--color-gray-200);
  --border-medium: 2px solid var(--color-black);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--color-black);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  letter-spacing: 0.01em;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-beige);
}

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: var(--border-thin);
  outline: none;
  transition: border-color var(--transition-fast);
}

input:focus, select:focus, textarea:focus {
  border-color: var(--color-black);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }

.display-text {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-beige { color: var(--color-beige); }
.text-gray { color: var(--color-gray-500); }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.08em; }
.text-small { font-size: 0.75rem; letter-spacing: 0.06em; }

/* --- Utility Classes --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.container-narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

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

/* ========================================
   ANNOUNCEMENT BAR
   ======================================== */
.announcement-bar {
  background: var(--color-black);
  color: var(--color-white);
  height: var(--announcement-height);
  display: none; /* 去除顶部公告栏 */
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  z-index: 1001;
}

.announcement-bar a {
  color: var(--color-beige);
  margin-left: var(--space-sm);
  font-weight: 600;
}

.announcement-bar a:hover {
  color: var(--color-beige-light);
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: var(--border-thin);
  height: var(--header-height);
  transition: transform var(--transition-base);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.header-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.header-logo .logo-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-logo .logo-accent {
  color: var(--color-beige);
}

/* Main Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.main-nav > li {
  position: relative;
}

.main-nav > li > a {
  display: block;
  padding: var(--space-md) 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-black);
  position: relative;
}

.main-nav > li > a::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-black);
  transition: width var(--transition-base);
}

.main-nav > li > a:hover::after,
.main-nav > li > a.active::after {
  width: 100%;
}

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--color-white);
  min-width: 800px;
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  display: flex;
  gap: var(--space-3xl);
  border-top: 1px solid var(--color-gray-100);
}

.main-nav > li:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-menu-column h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--color-gray-500);
  font-weight: 700;
}

.mega-menu-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.mega-menu-column ul a {
  font-size: 0.85rem;
  color: var(--color-gray-700);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.mega-menu-column ul a:hover {
  color: var(--color-beige);
}

.mega-menu-image {
  width: 280px;
  aspect-ratio: 3/4;
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mega-menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.mega-menu-image:hover img {
  transform: scale(1.05);
}

/* ========================================
   NAV DROPDOWN (顶部导航二级菜单)
   ======================================== */
.main-nav {
  align-self: stretch;
}

.main-nav > li {
  display: flex;
  align-items: center;
}

.main-nav > li.nav-has-dropdown {
  position: relative;
  height: 100%;
}

/* 面板 */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-top: 2px solid #111;
  box-shadow: 0 30px 70px -18px rgba(0, 0, 0, .30), 0 10px 30px -14px rgba(0, 0, 0, .16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity .26s ease, visibility .26s ease, transform .34s cubic-bezier(.16, 1, .3, 1);
  z-index: 1200;
  will-change: transform, opacity;
}

/* 悬停桥接区，避免鼠标穿过空隙时菜单消失 */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 16px;
}

.main-nav > li.nav-has-dropdown:hover > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* 面板内链接：入场错落 */
.nav-dropdown a {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .34s ease, transform .34s ease, background-color .18s ease, color .18s ease;
}

.main-nav > li.nav-has-dropdown:hover > .nav-dropdown a {
  opacity: 1;
  transform: translateY(0);
}

/* —— 品牌下拉 —— */
.nav-dropdown-brands {
  min-width: 368px;
  max-width: 440px;
  padding: 12px 14px;
}

.nav-dd-grid-brands {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 2px;
  max-height: 62vh;
  overflow-y: auto;
}

.nav-dd-grid-brands::-webkit-scrollbar {
  width: 8px;
}

.nav-dd-grid-brands::-webkit-scrollbar-thumb {
  background: #e6e6e6;
  border-radius: 4px;
}

/* 更多品牌：整行 CTA */
.nav-dd-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  padding: 13px 12px 6px;
  border-top: 1px solid #f0f0f0;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #111;
}

.nav-dd-more svg {
  transition: transform .25s ease;
}

.nav-dd-more:hover svg {
  transform: translateX(4px);
}

.nav-dd-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  font-size: .84rem;
  color: #444;
  white-space: nowrap;
  border-radius: 2px;
}

.nav-dd-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #eee;
  overflow: hidden;
  transition: border-color .2s ease;
}

.nav-dd-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}

.nav-dd-logo-fb {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  color: #bdbdbd;
  background: #f6f4f0;
  letter-spacing: .02em;
}

.nav-dd-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.nav-dd-brand:hover {
  color: #000;
  background: #faf7f1;
}

.nav-dd-brand:hover .nav-dd-logo {
  border-color: #ddd;
}

.nav-dd-brand:hover .nav-dd-brand-name {
  color: #000;
}

/* —— 器材下拉 —— */
.nav-dropdown-equip {
  min-width: 340px;
  padding: 0 0 10px;
}

.nav-dd-head {
  padding: 20px 24px 12px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #b3b3b3;
}

.nav-dd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  padding: 4px 12px 6px;
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.nav-dd-ico {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f6f4f0;
  color: #111;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.nav-dd-ico svg {
  width: 20px;
  height: 20px;
}

.nav-dd-item:hover .nav-dd-ico {
  background: #111;
  color: var(--color-beige);
  transform: translateY(-1px);
}

.nav-dd-txt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.nav-dd-txt b {
  font-size: .86rem;
  font-weight: 600;
  color: #222;
}

.nav-dd-txt em {
  font-style: normal;
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #b8b8b8;
}

.nav-dd-item:hover .nav-dd-txt b {
  color: #000;
}

/* 入场错落延迟 */
.nav-dropdown .nav-dd-grid > *:nth-child(1),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(1) { transition-delay: .03s; }
.nav-dropdown .nav-dd-grid > *:nth-child(2),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(2) { transition-delay: .06s; }
.nav-dropdown .nav-dd-grid > *:nth-child(3),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(3) { transition-delay: .09s; }
.nav-dropdown .nav-dd-grid > *:nth-child(4),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(4) { transition-delay: .12s; }
.nav-dropdown .nav-dd-grid > *:nth-child(5),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(5) { transition-delay: .15s; }
.nav-dropdown .nav-dd-grid > *:nth-child(6),
.nav-dropdown .nav-dd-grid-brands > *:nth-child(6) { transition-delay: .18s; }
.nav-dropdown .nav-dd-grid-brands > *:nth-child(7) { transition-delay: .21s; }
.nav-dropdown .nav-dd-grid-brands > *:nth-child(8) { transition-delay: .24s; }
.nav-dropdown .nav-dd-grid-brands > *:nth-child(9) { transition-delay: .27s; }

/* 人物志焦点区：移动端单列 */
@media (max-width: 768px) {
  .people-featured {
    grid-template-columns: 1fr !important;
  }
  .people-featured > div:last-child {
    padding: 32px 24px !important;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  position: relative;
  transition: color var(--transition-fast);
}

.header-action-btn:hover {
  color: var(--color-beige);
}

.header-action-btn svg {
  width: 20px;
  height: 20px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-black);
  transition: all var(--transition-base);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Panel */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-total);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-total));
  background: var(--color-white);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-xl);
  transform: translateX(-100%);
  transition: transform var(--transition-base);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-nav > li {
  border-bottom: var(--border-thin);
}

.mobile-menu-nav > li > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  background: var(--color-gray-50);
  border-radius: 4px;
  margin-bottom: var(--space-md);
}

.mobile-submenu.open {
  max-height: 640px;
}

.mobile-submenu a {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: 0.9rem;
  color: var(--color-gray-600);
}

/* 移动端器材子菜单（带图标） */
.mobile-submenu .nav-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-lg);
}

.mobile-submenu .nav-dd-ico {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
}

.mobile-submenu .nav-dd-ico svg {
  width: 16px;
  height: 16px;
}

/* 移动端品牌子菜单（带 logo） */
.mobile-submenu .nav-dd-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px var(--space-lg);
  white-space: normal;
}

.mobile-submenu .nav-dd-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--space-lg);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #111;
}

.mobile-submenu .nav-dd-logo {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.mobile-submenu .nav-dd-brand-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--color-gray-900);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.1) 40%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0;
  padding: 0 0 0 var(--space-3xl);
  width: 100%;
}

.hero-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-beige);
  margin-bottom: var(--space-lg);
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  text-align: left;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-2xl);
  margin-left: 0;
  max-width: 560px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 36px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

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

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

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

.btn-dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn-dark:hover {
  background: var(--color-gray-700);
}

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

.btn-beige:hover {
  background: var(--color-beige-dark);
}

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

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

.btn-lg {
  padding: 18px 48px;
  font-size: 0.85rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.7rem;
}

.btn-full {
  width: 100%;
}

/* Hero Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-white);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: float 2s ease-in-out infinite;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-white);
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  50% { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ========================================
   CATEGORY GRID
   ======================================== */
.section {
  padding: var(--space-5xl) 0;
}

.section-dark {
  background: var(--color-gray-900);
  color: var(--color-white);
}

.section-cream {
  background: var(--color-cream);
}

/* ========================================
   HOMEPAGE TONE — 黑白交替
   仅用黑/白两色交替，不使用渐变，减少杂色
   ======================================== */
.tone-light {
  background: #ffffff;
  color: var(--color-black);
}

.tone-dark {
  background: #000000;
  color: var(--color-white);
}

/* 深色区块内的文字与组件适配 */
.tone-dark .section-title { color: var(--color-white); }
.tone-dark .section-description { color: rgba(255, 255, 255, 0.62); }
.tone-dark .product-card-name { color: var(--color-white); }
.tone-dark .product-card-price { color: var(--color-white); }
.tone-dark .product-card-brand { color: rgba(255, 255, 255, 0.55); }
.tone-dark .product-card-price-original { color: rgba(255, 255, 255, 0.4); }
.tone-dark .value-title { color: var(--color-white); }
.tone-dark .value-text { color: rgba(255, 255, 255, 0.62); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-beige);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.section-description {
  font-size: 1rem;
  color: var(--color-gray-500);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Category Cards Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.category-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 16/9;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-very-slow);
}

.category-card.large img {
  object-fit: cover;
}

.category-card:hover img {
  transform: scale(1.05);
}

.category-card.large {
  aspect-ratio: 4/5;
  grid-row: span 2;
}

.category-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-very-slow);
}

.category-card:hover .category-card-image {
  transform: scale(1.05);
}

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0) 100%);
}

.category-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  color: var(--color-white);
}

.category-card-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-beige);
  margin-bottom: var(--space-sm);
}

.category-card-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.category-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--color-white);
  margin-top: var(--space-md);
  transition: gap var(--transition-fast);
}

.category-card-link:hover {
  gap: 12px;
  color: var(--color-beige);
}

.category-card-link svg {
  width: 16px;
  height: 16px;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.product-card {
  position: relative;
  cursor: pointer;
}

.product-card-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  background: var(--color-gray-100);
  margin-bottom: var(--space-md);
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card-image {
  transform: scale(1.03);
}

.product-card-image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.product-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 2;
}

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

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

.badge-bestseller {
  background: var(--color-beige);
  color: var(--color-white);
}

.product-card-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md);
  display: flex;
  gap: var(--space-sm);
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition-base);
  z-index: 2;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card-quick-add {
  flex: 1;
  padding: 12px;
  background: var(--color-white);
  color: var(--color-black);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  transition: all var(--transition-fast);
}

.product-card-quick-add:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.product-card-wishlist {
  width: 44px;
  height: 44px;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.product-card-wishlist:hover {
  background: var(--color-black);
  color: var(--color-white);
}

.product-card-wishlist svg {
  width: 16px;
  height: 16px;
}

.product-card-info {
  padding: 0 var(--space-xs);
}

.product-card-brand {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  margin-bottom: 4px;
  font-weight: 600;
}

.product-card-name {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-price {
  font-size: 0.9rem;
  font-weight: 700;
}

.product-card-price-original {
  text-decoration: line-through;
  color: var(--color-gray-400);
  margin-right: var(--space-sm);
  font-weight: 400;
}

.product-card-price-sale {
  color: var(--color-sale);
}

.product-card-colors {
  display: flex;
  gap: 6px;
  margin-top: var(--space-sm);
}

.product-card-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--color-gray-300);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.product-card-color:hover {
  transform: scale(1.3);
}

/* ========================================
   FEATURED BANNER
   ======================================== */
.featured-banner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 600px;
  overflow: hidden;
  margin: 0;
}

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

.featured-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.featured-banner-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
  padding: var(--space-4xl);
  color: var(--color-white);
}

.featured-banner-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-beige);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.featured-banner-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-lg);
  line-height: 1.05;
}

.featured-banner-text {
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.85;
  margin-bottom: var(--space-xl);
}

/* Right-aligned variant */
.featured-banner.right .featured-banner-overlay {
  background: linear-gradient(270deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
}

.featured-banner.right .featured-banner-content {
  margin-left: auto;
  text-align: right;
}

/* ========================================
   BRAND VALUES / ICON GRID
   ======================================== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-2xl);
  text-align: center;
}

.value-item {
  padding: var(--space-xl);
}

.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  color: var(--color-beige);
}

.value-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.value-text {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ========================================
   TESTIMONIAL / QUOTE SECTION
   ======================================== */
.quote-section {
  text-align: center;
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #f5f3ef 0%, #000000 16%, #000000 84%, #f5f3ef 100%);
  color: var(--color-white);
}

.quote-mark {
  font-size: 6rem;
  line-height: 1;
  color: var(--color-beige);
  font-family: Georgia, serif;
  margin-bottom: var(--space-xl);
}

.quote-text {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  font-style: italic;
}

.quote-author {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-beige);
  font-weight: 600;
}

/* ========================================
   INSTAGRAM / GALLERY GRID
   ======================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-sm);
}

.gallery-item {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay svg {
  width: 24px;
  height: 24px;
  color: var(--color-white);
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
  background: #ffffff;
  padding: var(--space-4xl) 0;
  text-align: center;
}

.newsletter-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
}

.newsletter-text {
  font-size: 0.95rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-xl);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

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

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  font-size: 0.85rem;
  border: 2px solid var(--color-black);
  border-right: none;
  background: var(--color-white);
}

.newsletter-form button {
  padding: 14px 28px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: background var(--transition-fast);
}

.newsletter-form button:hover {
  background: var(--color-beige);
}

.newsletter-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 450px;
  margin: var(--space-lg) auto 0;
  text-align: left;
  font-size: 0.7rem;
  color: var(--color-gray-500);
}

.newsletter-checkbox input {
  margin-top: 3px;
  accent-color: var(--color-black);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-black);
  color: var(--color-white);
  padding: var(--space-4xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.footer-brand .logo-accent {
  color: var(--color-beige);
}

.footer-about {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--color-gray-600);
  border-radius: 50%;
  color: var(--color-gray-400);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--color-beige);
  color: var(--color-beige);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-column h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-lg);
  color: var(--color-gray-400);
  font-weight: 700;
}

.footer-column ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-column ul a {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  transition: color var(--transition-fast);
}

.footer-column ul a:hover {
  color: var(--color-beige);
}

.footer-bottom {
  border-top: 1px solid var(--color-gray-800);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom-links {
  display: flex;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.footer-bottom-links a:hover {
  color: var(--color-beige);
}

.footer-copyright {
  font-size: 0.75rem;
  color: var(--color-gray-500);
}

.footer-payment {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.footer-payment-icon {
  width: 40px;
  height: 24px;
  background: var(--color-gray-800);
  border-radius: 3px;
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
  padding: var(--space-md) 0;
  font-size: 0.75rem;
  color: var(--color-gray-500);
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
}

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

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

.breadcrumb span {
  color: var(--color-black);
  font-weight: 600;
}

/* ========================================
   PRODUCT LISTING PAGE
   ======================================== */
.product-listing {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-xl) 0;
}

/* Filter Dropdown */
.filter-dropdown.open .filter-dropdown-btn + div { display: block !important; }
.filter-dropdown-btn:hover { border-color: #000 !important; }

/* Filters Sidebar */
.filters-sidebar {
  position: sticky;
  top: calc(var(--header-total) + var(--space-xl));
  align-self: start;
  max-height: calc(100vh - var(--header-total) - var(--space-2xl));
  overflow-y: auto;
}

.filter-group {
  border-bottom: var(--border-thin);
  padding: var(--space-lg) 0;
}

.filter-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  cursor: pointer;
}

.filter-group-title svg {
  width: 12px;
  height: 12px;
  transition: transform var(--transition-fast);
}

.filter-group-title.open svg {
  transform: rotate(180deg);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.filter-option input[type="checkbox"] {
  accent-color: var(--color-black);
  width: 16px;
  height: 16px;
}

.filter-option-count {
  color: var(--color-gray-400);
  font-size: 0.75rem;
  margin-left: auto;
}

.filter-colors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-color {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.filter-color:hover,
.filter-color.active {
  border-color: var(--color-black);
}

.filter-price-range {
  margin-top: var(--space-md);
}

.filter-price-inputs {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.filter-price-inputs input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.8rem;
  text-align: center;
}

/* Product Listing Header */
.product-listing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-md);
}

.product-listing-count {
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

.product-listing-sort {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.8rem;
}

.product-listing-sort select {
  padding: 8px 32px 8px 12px;
  font-size: 0.8rem;
  background: var(--color-white);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

/* Active Filters */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.active-filter-tag {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 12px;
  background: var(--color-gray-100);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.active-filter-tag button {
  font-size: 1rem;
  line-height: 1;
  color: var(--color-gray-500);
}

.active-filter-tag button:hover {
  color: var(--color-black);
}

.clear-filters {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  text-decoration: underline;
  cursor: pointer;
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

.product-gallery {
  position: sticky;
  top: calc(var(--header-total) + var(--space-xl));
  align-self: start;
}

.product-gallery-main {
  aspect-ratio: 4/5;
  overflow: hidden;
  margin-bottom: var(--space-md);
  background: var(--color-gray-100);
  position: relative;
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-base);
}

.product-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
}

.product-gallery-thumb {
  aspect-ratio: 4/5;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition-fast);
  background: var(--color-gray-100);
}

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

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

/* Product Info */
.product-info {
  padding-top: var(--space-xl);
}

.product-info-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-beige);
  margin-bottom: var(--space-sm);
  font-weight: 700;
}

.product-info-name {
  font-size: 2.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: var(--space-md);
  line-height: 1.1;
}

.product-info-price {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
}

.product-info-rating {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.stars {
  display: flex;
  gap: 2px;
  color: var(--color-beige);
}

.stars svg {
  width: 16px;
  height: 16px;
}

.product-info-rating-count {
  font-size: 0.8rem;
  color: var(--color-gray-500);
}

.product-info-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
}

/* Product Options */
.product-option-group {
  margin-bottom: var(--space-xl);
}

.product-option-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.product-option-label span {
  color: var(--color-gray-500);
  font-weight: 400;
}

.product-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.product-option {
  padding: 10px 20px;
  border: 2px solid var(--color-gray-200);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-option:hover {
  border-color: var(--color-black);
}

.product-option.active {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.product-option.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantity */
.quantity-selector {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-black);
  width: fit-content;
}

.quantity-btn {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.quantity-btn:hover {
  background: var(--color-gray-100);
}

.quantity-input {
  width: 60px;
  height: 44px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-left: 2px solid var(--color-black);
  border-right: 2px solid var(--color-black);
}

/* Add to Cart Section */
.add-to-cart-section {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
}

/* Product Accordion */
.product-accordion {
  margin-top: var(--space-2xl);
  border-top: var(--border-thin);
}

.product-accordion-item {
  border-bottom: var(--border-thin);
}

.product-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-lg) 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product-accordion-header svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.product-accordion-header.open svg {
  transform: rotate(180deg);
}

.product-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
}

.product-accordion-body.open {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.product-accordion-body p,
.product-accordion-body ul {
  font-size: 0.85rem;
  color: var(--color-gray-600);
  line-height: 1.7;
}

.product-accordion-body ul {
  padding-left: var(--space-lg);
  list-style: disc;
}

.product-accordion-body ul li {
  margin-bottom: var(--space-xs);
}

/* Specs Table */
.specs-table {
  width: 100%;
  font-size: 0.85rem;
}

.specs-table tr {
  border-bottom: var(--border-thin);
}

.specs-table td {
  padding: var(--space-sm) 0;
}

.specs-table td:first-child {
  font-weight: 600;
  width: 40%;
  color: var(--color-black);
}

.specs-table td:last-child {
  color: var(--color-gray-600);
}

/* ========================================
   CART DRAWER
   ======================================== */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: var(--color-white);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  display: flex;
  flex-direction: column;
}

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

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-xl);
  border-bottom: var(--border-thin);
}

.cart-drawer-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cart-drawer-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.cart-drawer-items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-xl);
}

.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: var(--border-thin);
}

.cart-item-image {
  width: 80px;
  height: 100px;
  object-fit: cover;
  background: var(--color-gray-100);
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.cart-item-variant {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-sm);
}

.cart-item-price {
  font-size: 0.85rem;
  font-weight: 700;
}

.cart-item-remove {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray-500);
  text-decoration: underline;
  cursor: pointer;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-gray-200);
  width: fit-content;
  margin-top: var(--space-sm);
}

.cart-item-quantity button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.cart-item-quantity span {
  width: 32px;
  text-align: center;
  font-size: 0.8rem;
}

.cart-drawer-footer {
  padding: var(--space-xl);
  border-top: var(--border-thin);
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.cart-shipping-note {
  font-size: 0.7rem;
  color: var(--color-gray-500);
  margin-bottom: var(--space-lg);
  text-align: center;
}

.cart-drawer-footer .btn {
  width: 100%;
  margin-bottom: var(--space-sm);
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--color-gray-500);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-lg);
  color: var(--color-gray-300);
}

/* ========================================
   SEARCH OVERLAY
   ======================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.search-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-container {
  width: 100%;
  max-width: 650px;
  padding: 0 var(--space-xl);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--color-black);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-xl);
}

.search-input-wrap svg {
  width: 24px;
  height: 24px;
  color: var(--color-gray-500);
  flex-shrink: 0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  padding: var(--space-sm) var(--space-md);
  font-size: 1.2rem;
  background: transparent;
}

.search-input-wrap input:focus {
  border: none;
  outline: none;
}

.search-close {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--color-gray-500);
  cursor: pointer;
}

.search-suggestions h4 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
}

.search-suggestions ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.search-suggestions ul a {
  font-size: 1rem;
  color: var(--color-gray-600);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.search-suggestions ul a:hover {
  color: var(--color-black);
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--color-gray-900);
  overflow: hidden;
}

.about-hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 700px;
}

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--color-gray-100);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h3 {
  margin-bottom: var(--space-lg);
}

.about-content p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: var(--space-lg);
}

/* Craftsmanship Steps */
.craft-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
}

.craft-step {
  text-align: center;
}

.craft-step-number {
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-beige);
  font-family: var(--font-display);
  margin-bottom: var(--space-md);
}

.craft-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.craft-step-text {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact-info h3 {
  margin-bottom: var(--space-lg);
}

.contact-info-item {
  margin-bottom: var(--space-xl);
}

.contact-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-500);
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--color-black);
}

.contact-form-group {
  margin-bottom: var(--space-lg);
}

.contact-form-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.contact-form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9rem;
  border: var(--border-thin);
  transition: border-color var(--transition-fast);
}

.contact-form-input:focus {
  border-color: var(--color-black);
}

.contact-form-textarea {
  width: 100%;
  padding: 14px 16px;
  font-size: 0.9rem;
  border: var(--border-thin);
  min-height: 150px;
  resize: vertical;
}

.contact-form-textarea:focus {
  border-color: var(--color-black);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  padding-top: 16px;
}

.toast {
  padding: 12px 32px;
  background: var(--color-black);
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  animation: toastFadeIn 0.3s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
  pointer-events: auto;
  max-width: 90vw;
}

.toast-success {
  border-left: 3px solid var(--color-success);
}

.toast-error {
  border-left: 3px solid var(--color-error);
}

.toast-close {
  color: var(--color-gray-400);
  cursor: pointer;
  font-size: 1rem;
  background: none;
  border: none;
  padding: 0;
  line-height: 1;
}

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

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-white);
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: var(--space-2xl);
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-lg);
}

/* ========================================
   ANIMATIONS
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Large Desktops */
@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desktops & Small Laptops */
@media (max-width: 1200px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }

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

/* Tablets */
@media (max-width: 992px) {
  :root {
    --header-height: 52px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

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

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

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

  .filters-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: var(--color-white);
    padding: var(--space-xl);
    max-height: 100vh;
    top: 0;
  }

  .filters-sidebar.open {
    display: block;
  }

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

  .product-gallery {
    position: static;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .craft-steps {
    grid-template-columns: 1fr 1fr;
  }

  .featured-banner {
    min-height: 400px;
  }

  .featured-banner-content {
    padding: var(--space-2xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 48px;
    --announcement-height: 32px;
  }

  .container,
  .container-narrow {
    padding: 0 var(--space-md);
  }

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

  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: 1.8rem;
    text-align: left;
  }

  .hero-content {
    padding: 0 0 0 var(--space-xl);
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

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

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

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

  .footer-bottom-links {
    justify-content: center;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }

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

  .craft-steps {
    grid-template-columns: 1fr;
  }

  .featured-banner {
    min-height: 350px;
  }

  .featured-banner-content {
    padding: var(--space-xl);
  }

  .cart-drawer {
    width: 100vw;
  }

  .product-listing-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .add-to-cart-section {
    flex-direction: column;
  }

  .add-to-cart-section .btn {
    width: 100%;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

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

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

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

  .newsletter-form input {
    border-right: 2px solid var(--color-black);
    border-bottom: none;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-info-name {
    font-size: 1.5rem;
  }

  .header-logo {
    font-size: 1.1rem;
  }
}

/* ========================================
   BRAND CARDS & PAGES
   ======================================== */
.brand-card {
  display: block;
  border: 1px solid var(--color-gray-200);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  background: var(--color-white);
}
.brand-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.brand-card-image {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #ccc;
  letter-spacing: 0.1em;
}
.brand-card-body {
  padding: 20px;
}
.brand-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.brand-card-origin {
  font-size: 0.75rem;
  color: var(--color-beige);
  margin-bottom: 8px;
}
.brand-card-desc {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}
.brand-card-count {
  font-size: 0.75rem;
  color: var(--color-gray-400);
  margin-top: 12px;
}
.brand-badge-featured {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-beige);
  color: var(--color-white);
  padding: 4px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.filter-dropdown {
  position: relative;
}
.filter-dropdown.open .filter-dropdown-menu {
  display: block;
}
.filter-dropdown-btn {
  padding: 8px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 80px;
}
.filter-dropdown-btn:hover {
  border-color: #000;
}
.filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  padding: 12px;
  min-width: 160px;
  z-index: 10;
  display: none;
  max-height: 300px;
  overflow-y: auto;
}
.filter-dropdown-menu label {
  display: block;
  font-size: 0.8rem;
  padding: 4px 0;
  cursor: pointer;
}

/* ========================================
   FORUM STYLES
   ======================================== */
.forum-thread-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s;
}
.forum-thread-row:hover { background: #fafafa; }
.forum-thread-main { flex: 1; min-width: 0; }
.forum-thread-meta { display: flex; gap: 20px; flex-shrink: 0; text-align: center; font-size: 0.75rem; color: #999; }
.forum-thread-meta strong { display: block; font-weight: 700; color: #333; }
.forum-badge-pinned { background: var(--color-beige); color: #fff; padding: 2px 8px; font-size: 0.65rem; font-weight: 700; }
.forum-badge-highlighted { background: #000; color: #fff; padding: 2px 8px; font-size: 0.65rem; font-weight: 700; }
.forum-badge-new { background: var(--color-beige); color: #fff; padding: 2px 8px; font-size: 0.65rem; font-weight: 700; }

.reply-card { padding: 20px; border-bottom: 1px solid #f0f0f0; }
.reply-card:last-child { border-bottom: none; }
.reply-quote { border-left: 3px solid var(--color-beige); padding: 8px 12px; margin: 8px 0; background: #fafaf7; font-size: 0.85rem; color: #777; }
.reply-quote strong { color: var(--color-beige); }

.like-btn { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; font-size: 0.8rem; color: #999; border: none; background: none; padding: 4px 8px; transition: color 0.2s; }
.like-btn:hover, .like-btn.liked { color: var(--color-beige); }
.like-btn svg { width: 14px; height: 14px; }

.thread-content { padding: 20px 0 30px; border-bottom: 1px solid #eee; margin-bottom: 20px; line-height: 1.8; font-size: 0.95rem; }
.thread-content img { max-width: 100%; height: auto; }
.thread-header { border-bottom: 1px solid #eee; padding-bottom: 20px; margin-bottom: 20px; }
.thread-header h1 { font-size: 1.8rem; font-weight: 900; }
.thread-header-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: #999; margin-top: 4px; }

.reply-form { background: var(--color-cream); padding: 24px; border: 1px solid #eee; margin-bottom: 40px; }
.reply-form textarea { width: 100%; min-height: 120px; resize: vertical; padding: 12px; border: 1px solid #ddd; font-family: inherit; font-size: 0.9rem; }
.reply-form textarea:focus { border-color: var(--color-black); outline: none; }
.reply-form-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; gap: 8px; }

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
  .header,
  .announcement-bar,
  .footer,
  .cart-drawer,
  .search-overlay,
  .mobile-menu,
  .hero-scroll {
    display: none !important;
  }

  .hero {
    min-height: auto;
    background: none !important;
  }

  .hero-content {
    color: var(--color-black);
  }

  .hero-title {
    color: var(--color-black);
    font-size: 2rem;
  }
}

/* ========================================
   WECHAT PAY MODAL (主流电商收银台风格)
   ======================================== */
.wxpay-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.wxpay-overlay.open { opacity: 1; visibility: visible; }

.wxpay-panel {
  width: 380px;
  max-width: 100%;
  background: #f8fafc;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}
.wxpay-overlay.open .wxpay-panel { transform: translateY(0) scale(1); }

.wxpay-head {
  position: relative;
  background: #07c160;
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wxpay-head .wxpay-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff;
  color: #07c160;
  flex: none;
}
.wxpay-head .wxpay-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.wxpay-head .wxpay-sub {
  font-size: 11px;
  opacity: 0.9;
  margin-top: 1px;
}
.wxpay-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wxpay-close:hover { background: rgba(255, 255, 255, 0.32); }

.wxpay-body { padding: 16px 24px 14px; position: relative; }

.wxpay-amount-row {
  text-align: center;
  margin-bottom: 4px;
}
.wxpay-amount-row .label { font-size: 13px; color: #909399; }
.wxpay-amount {
  font-size: 32px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.5px;
}
.wxpay-amount .cur { font-size: 18px; margin-right: 4px; }

.wxpay-status {
  text-align: center;
  font-size: 12px;
  color: #909399;
  margin-top: 4px;
}

.wxpay-qrbox {
  margin: 14px auto 0;
  width: 188px;
  height: 188px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #ececec;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.wxpay-qrbox img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}
.wxpay-mask-overlay {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2;
}
.wxpay-mask-overlay.show { opacity: 1; visibility: visible; }
.wxpay-mask-overlay .success-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
  animation: wxpayPop 0.4s ease;
}
@keyframes wxpayPop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.wxpay-mask-overlay .mask-txt { font-size: 15px; font-weight: 600; color: #111; }
.wxpay-mask-overlay .mask-sub { font-size: 12px; color: #909399; margin-top: 5px; }

.wxpay-countdown {
  text-align: center;
  margin-top: 10px;
  font-size: 12px;
  color: #a6a6a6;
}
.wxpay-countdown b { color: #e64340; font-weight: 600; }

.wxpay-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
}
.wxpay-btn {
  padding: 8px 0;
  font-size: 13px;
  border-radius: 7px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s ease, background 0.15s ease;
  flex: 1;
  max-width: 150px;
}
.wxpay-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.wxpay-btn-primary {
  background: #07c160;
  color: #fff;
}
.wxpay-btn-primary:hover { background: #06ad56; }
.wxpay-btn-ghost {
  background: #fff;
  color: #333;
  border-color: #d9d9d9;
}
.wxpay-btn-ghost:hover { background: #f2f3f5; }

.wxpay-foot {
  padding: 8px 24px 12px;
  text-align: center;
  font-size: 11px;
  color: #c0c4cc;
  border-top: 1px dashed #ebeef5;
}
.wxpay-foot span { margin: 0 6px; }

.wxpay-tip-text {
  text-align: center;
  font-size: 12px;
  color: #e64340;
  margin-top: 8px;
  min-height: 14px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.wxpay-tip-text.show { opacity: 1; }

/* ========================================
   支付方式选择弹窗 (微信 / 银行卡 / PayPal)
   ======================================== */
.pay-brand { display: flex; align-items: center; justify-content: center; font-size: 22px; }
.pay-amount-display {
  text-align: center;
  padding: 4px 0 10px;
  border-bottom: 1px solid #f5f5f5;
  margin-bottom: 12px;
}
.pay-amount-display .label { font-size: 12px; color: #909399; }
.pay-amount-display .pay-amount {
  font-size: 30px; font-weight: 700; color: #e64340; line-height: 1.2;
}
.pay-method-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pay-method-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 6px;
  border: 1px solid #e4e7ed;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  position: relative;
  min-height: 78px;
}
.pay-method-item:hover { border-color: #bcd8ff; background: #f7faff; }
.pay-method-item input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-method-item input[type=radio]:checked ~ .pay-method-radio {
  border-color: #07c160;
  background: #07c160;
  box-shadow: inset 0 0 0 3px #fff;
}
.pay-method-item:has(input[type=radio]:checked) {
  border-color: #07c160;
  background: #f3fff8;
}
.pay-method-item .pay-method-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.pay-method-item .pay-method-icon img, .pay-method-item .pay-method-icon svg {
  width: 100%; height: 100%;
  object-fit: contain;
}
.pay-method-item .pay-method-name { font-size: 12px; font-weight: 600; color: #1f2d3d; text-align: center; line-height: 1.2; }
.pay-method-radio {
  position: absolute;
  top: 6px; right: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid #c0c4cc;
  box-sizing: border-box;
}
.pay-method-foot { text-align: center; font-size: 11px; color: #b0b3ba; margin-top: 12px; }

/* ---------- 银行卡 / PayPal 支付表单 ---------- */
.cardpay-body form { display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: flex; gap: 12px; }
.cp-row .cp-field { flex: 1; }
.cp-field { display: flex; flex-direction: column; gap: 5px; }
.cp-field label { font-size: 12px; color: #606266; font-weight: 500; }
.cp-field input {
  height: 38px;
  border: 1px solid #dcdfe6;
  border-radius: 7px;
  padding: 0 12px;
  font-size: 14px;
  color: #1f2d3d;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  width: 100%;
}
.cp-field input:focus {
  outline: none;
  border-color: #07c160;
  box-shadow: 0 0 0 3px rgba(7,193,96,0.15);
}
.cp-test-bar {
  margin-top: 2px;
  padding: 8px 12px;
  border-radius: 7px;
  background: #fff8e6;
  border: 1px dashed #ffd666;
  color: #b88230;
  font-size: 12px;
  text-align: center;
}

/* ========================================
   FLOATING CART BUTTON (右下角悬浮购物车)
   ======================================== */
.float-cart-fab {
  position: fixed;
  right: 22px;
  bottom: 26px;
  z-index: 1900;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.float-cart-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}
.float-cart-fab svg {
  width: 24px;
  height: 24px;
  color: #111;
}
.float-cart-fab .fab-label {
  font-size: 10px;
  color: #555;
  font-weight: 600;
}
.float-cart-fab .fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 10px;
  background: #e64340;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
  display: none;
}
.float-cart-fab .fab-badge.show { display: block; }
/* 有商品时按钮变深色强调 */
.float-cart-fab.has-items { background: #111; }
.float-cart-fab.has-items svg,
.float-cart-fab.has-items .fab-label { color: #fff; }

/* 移动端 */
@media (max-width: 640px) {
  .float-cart-fab {
    right: 16px;
    bottom: 18px;
    width: 56px;
    height: 56px;
  }
  .wxpay-panel { width: 340px; }
  .wxpay-qrbox { width: 176px; height: 176px; }
  .cp-row { flex-direction: column; gap: 10px; }
}

/* ========================================
   USER ACCOUNT MENU (登录后头像下拉菜单)
   ======================================== */
#headerUsername {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 80px;
  vertical-align: middle;
}
#headerAvatar {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  object-fit: cover;
}
#headerAvatar + #headerUsername,
#headerUsername { flex: 0 0 auto; min-width: 0; }
#accountBtn {
  width: auto;
  padding: 0 6px;
  gap: 6px;
}
#avatarPreview { overflow: hidden; }
.user-menu {
  position: fixed;
  z-index: 3200;
  min-width: 168px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.user-menu.open { opacity: 1; transform: translateY(0); }

.user-menu-head {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
.user-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  font-size: 0.85rem;
  color: #333;
  background: #fff;
  border: none;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}
.user-menu-item svg { width: 17px; height: 17px; color: #666; flex: none; }
.user-menu-item:hover { background: #f5f5f5; }

/* ========================================
   MY ORDERS PAGE
   ======================================== */
.orders-main { padding: 48px 0 80px; min-height: 60vh; }

.orders-page-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.orders-title { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.02em; }
.orders-subtitle { font-size: 0.85rem; color: #999; margin-top: 6px; }

.orders-list { display: flex; flex-direction: column; gap: 20px; }

.orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 0;
  text-align: center;
  color: #999;
  font-size: 0.95rem;
}

.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #eee;
  border-top-color: #111;
  animation: spin 0.8s linear infinite;
  margin-bottom: 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.order-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.order-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex-wrap: wrap;
  gap: 8px;
}
.order-no { font-size: 0.82rem; color: #333; margin-right: 14px; }
.order-time { font-size: 0.78rem; color: #aaa; }
.order-status { font-size: 0.82rem; font-weight: 700; }

.order-goods { padding: 14px 20px; }
.order-item { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.order-item + .order-item { border-top: 1px dashed #f2f2f2; }
.order-item-img {
  width: 56px;
  height: 66px;
  flex: none;
  border-radius: 6px;
  object-fit: cover;
  background: #f5f5f5;
  border: 1px solid #eee;
}
.order-item-info { min-width: 0; }
.order-item-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.order-item-meta { font-size: 0.8rem; color: #999; margin-top: 4px; }

.order-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  background: #fcfcfc;
  flex-wrap: wrap;
  gap: 10px;
}
.order-countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-countdown .cd-label { font-size: 0.8rem; color: #666; }
.order-countdown .cd-time {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e64340;
  font-variant-numeric: tabular-nums;
  background: #fff4f4;
  border: 1px solid #ffd6d6;
  padding: 3px 8px;
  border-radius: 5px;
}
.order-countdown.expired .cd-time { color: #aaa; background: #f5f5f5; border-color: #e8e8e8; }
.order-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-pay-btn {
  padding: 7px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: #000;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  transition: opacity .15s ease;
}
.order-pay-btn:hover { opacity: 0.8; }
.order-pay-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.order-total { font-size: 0.85rem; color: #555; }
.order-total span { font-size: 1.05rem; font-weight: 800; color: #111; }

/* ========================================
   PRODUCT SHARE MODAL (分享给好友)
   ======================================== */
.share-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.share-overlay.open { opacity: 1; visibility: visible; }

.share-panel {
  width: 400px;
  max-width: 100%;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform: translateY(20px) scale(0.96);
  transition: transform 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
}
.share-overlay.open .share-panel { transform: translateY(0) scale(1); }

.share-head {
  position: relative;
  background: #111;
  color: #fff;
  padding: 14px 18px;
}
.share-title { font-size: 1rem; font-weight: 700; }
.share-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0.8;
  line-height: 1;
}
.share-close:hover { opacity: 1; }

.share-body { padding: 18px 18px 20px; }

.share-product {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: #f8f6f2;
  border-radius: 10px;
  margin-bottom: 16px;
}
.share-img {
  width: 72px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
  background: #f0f0f0;
  flex: none;
}
.share-info { min-width: 0; }
.share-name { font-size: 0.95rem; font-weight: 700; color: #111; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-brand { font-size: 0.78rem; color: #C4A882; margin-bottom: 4px; }
.share-price { font-size: 1.05rem; font-weight: 800; color: #111; }

.share-ways {
  display: flex;
  gap: 12px;
}
.share-way-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 8px;
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  color: #333;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.share-way-btn svg { color: #111; }
.share-way-btn:hover {
  border-color: #C4A882;
  background: #FBF7EF;
}

.share-hint {
  margin: 14px 4px 0;
  font-size: 0.75rem;
  color: #999;
  line-height: 1.5;
}

/* 分享按钮（产品页操作区） */
.share-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.share-trigger-btn:hover {
  border-color: #C4A882;
  background: #FBF7EF;
}
.share-trigger-btn svg { color: #111; }

/* ========================================
   PRODUCT LOGIN WALL (分享链接登录墙)
   ======================================== */
.login-wall {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
  margin: 30px 0;
  border: 1px dashed #ddd;
  border-radius: 12px;
  background: #fafaf7;
}
.login-wall.show { display: flex; }
.login-wall .wall-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #efeadf;
  color: #C4A882;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.login-wall .wall-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}
.login-wall .wall-sub {
  font-size: 0.85rem;
  color: #888;
  max-width: 340px;
  line-height: 1.6;
  margin-bottom: 22px;
}
.login-wall .wall-btn {
  padding: 11px 34px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  background: #111;
  border: none;
  border-radius: 22px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.login-wall .wall-btn:hover { opacity: 0.85; }
