/* ============================================================
   Luxury Jewelry Showcase — Design System v2
   Bilingual (EN/AR), RTL Support, Mobile-First
   ============================================================ */
/* Fonts are loaded once via <link> in index.html (an @import here would block rendering and download twice) */

/* === Variables === */
:root {
  --bg: #0a0a0c;
  --bg-card: #141416;
  --bg-nav: rgba(10,10,12,0.85);
  --bg-img: #f5f2ec;
  --border: rgba(212,175,55,0.12);
  --border-hover: rgba(212,175,55,0.45);
  --text: #f5f3ef;
  --text-dim: #9e9a93;
  --text-muted: #6b6762;
  --gold: #c9a84c;
  --gold-glow: rgba(201,168,76,0.25);
  --red: #7e1518;
  --shadow: 0 8px 30px rgba(0,0,0,0.6);
  --shadow-hover: 0 16px 40px rgba(126,21,24,0.25), 0 0 20px rgba(201,168,76,0.15);
  --radius: 8px;
}
[data-theme="light"] {
  --bg: #f8f6f2;
  --bg-card: #ffffff;
  --bg-nav: rgba(248,246,242,0.92);
  --bg-img: #f0ede7;
  --border: rgba(60,50,40,0.12);
  --border-hover: rgba(126,21,24,0.3);
  --text: #1a1816;
  --text-dim: #524e48;
  --text-muted: #8a8580;
  --accent: #7e1518;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-hover: 0 12px 32px rgba(126,21,24,0.14);
}
:root { --accent: var(--gold); }

/* === Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6; overflow-x: hidden;
  transition: background .4s, color .4s;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: 'Noto Sans Arabic', 'Inter', sans-serif; }
h1,h2,h3,h4 { font-family: 'Cinzel', Georgia, serif; letter-spacing: .04em; }
[dir="rtl"] h1,[dir="rtl"] h2,[dir="rtl"] h3,[dir="rtl"] h4 { font-family: 'Noto Sans Arabic', serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; outline: none; }
img { display: block; max-width: 100%; }

/* === Navigation === */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg-nav); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: .9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: .6rem; }
.nav-logo-svg { flex-shrink: 0; }
/* 网站标志图片：圆形裁切 + 金色细边 */
.nav-logo-img {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  border: 1.5px solid var(--accent); box-shadow: 0 0 10px rgba(201,168,76,0.25);
}
.nav-logo-text { font-family: 'Cinzel', serif; font-size: 1.05rem; font-weight: 600; letter-spacing: .12em; display: block; }
[dir="rtl"] .nav-logo-text { font-family: 'Noto Sans Arabic', serif; letter-spacing: 0; }
.nav-logo-sub { font-size: .58rem; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; display: block; }
[dir="rtl"] .nav-logo-sub { letter-spacing: 0; }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.theme-btn {
  padding: .4rem 1rem; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .78rem; transition: all .25s;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* Language Selector */
.lang-selector { position: relative; }
.lang-btn {
  padding: .4rem .9rem; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .78rem; transition: all .25s; white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }
.lang-dropdown {
  position: absolute; top: calc(100% + .4rem); right: 0;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  border-radius: var(--radius); box-shadow: var(--shadow);
  min-width: 140px; overflow: hidden;
  opacity: 0; pointer-events: none; transform: translateY(-4px);
  transition: all .2s;
}
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.lang-option {
  display: block; width: 100%; padding: .6rem 1rem;
  font-size: .82rem; color: var(--text-dim); text-align: start;
  transition: all .15s;
}
.lang-option:hover { background: rgba(201,168,76,0.1); color: var(--gold); }
.lang-option.active { color: var(--gold); font-weight: 600; }

/* === Hero Carousel === */
.hero { position: relative; border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-carousel { position: relative; height: 60vh; min-height: 400px; max-height: 700px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
/* Optimised banners (lg 1376px / sm 768px). Slide 2 only gets its image once JS adds .bg-ready (after page load) */
.hero-slide-1 { background-image: url('../images/banners/hero1-lg.jpg'); }
.hero-slide-2.bg-ready { background-image: url('../images/banners/hero2-lg.jpg'); }
@media (max-width: 768px) {
  .hero-slide-1 { background-image: url('../images/banners/hero1-sm.jpg'); }
  .hero-slide-2.bg-ready { background-image: url('../images/banners/hero2-sm.jpg'); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
}
[data-theme="light"] .hero-overlay {
  background: linear-gradient(to right, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.1) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  justify-content: center; padding: 3rem 4rem;
  max-width: 650px; text-align: start;
}
.hero-badge {
  display: inline-block; padding: .3rem 1.2rem; width: fit-content;
  border: 1px solid rgba(201,168,76,0.5); border-radius: 30px;
  font-size: .7rem; letter-spacing: .25em; color: var(--gold);
  text-transform: uppercase; margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
[dir="rtl"] .hero-badge { letter-spacing: .05em; }
.hero h1, .hero .hero-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 600;
  color: #fff; margin-bottom: .5rem; text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
[data-theme="light"] .hero h1, [data-theme="light"] .hero .hero-title { color: #1a1816; text-shadow: none; }
.hero-sub { font-family: 'Cinzel', serif; font-size: 1.1rem; font-style: italic; color: var(--gold); margin-bottom: 1.2rem; }
.hero p.desc { max-width: 500px; font-size: .88rem; color: rgba(255,255,255,0.8); line-height: 1.8; }
[data-theme="light"] .hero p.desc { color: var(--text-dim); }
.hero-dots {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 5;
  display: flex; gap: .5rem;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.35); border: 1px solid rgba(255,255,255,0.2);
  transition: all .3s; cursor: pointer;
}
.hero-dot.active { background: var(--gold); border-color: var(--gold); width: 28px; border-radius: 5px; }
[data-theme="light"] .hero-dot { background: rgba(0,0,0,0.2); border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .hero-dot.active { background: var(--gold); border-color: var(--gold); }

/* === Sections === */
.section { padding: 2rem 0; }
.wrap { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* === Brand Bar === */
/* 珠宝 / 腕表 切换标签 */
.brand-tabs {
  display: flex; justify-content: center; gap: .5rem; margin-bottom: 1.2rem;
}
.brand-tabs[hidden] { display: none; }
.brand-tab {
  min-width: 130px; padding: .55rem 1.4rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-dim);
  font-family: 'Cinzel', serif; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase;
  transition: all .25s; cursor: pointer;
}
[dir="rtl"] .brand-tab { font-family: 'Noto Sans Arabic', sans-serif; letter-spacing: 0; text-transform: none; }
.brand-tab:hover { border-color: var(--border-hover); color: var(--text); }
.brand-tab.active { background: var(--gold); border-color: var(--gold); color: #0a0a0c; box-shadow: 0 0 15px rgba(201,168,76,0.25); }
@media (max-width: 480px) { .brand-tab { min-width: 0; flex: 1; padding: .5rem .8rem; font-size: .78rem; } }
.brand-bar {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}
.brand-card {
  position: relative;
  width: 200px; height: 80px;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: all .3s;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-card);
}
.brand-card:hover:not(.disabled) { border-color: var(--gold); box-shadow: 0 0 20px rgba(201,168,76,0.15); }
.brand-card.active { border-color: var(--gold); box-shadow: 0 0 15px rgba(201,168,76,0.2); }
/* Brand data downloading (on-demand load) */
.brand-card.loading { border-color: var(--gold); animation: brandPulse 1s ease-in-out infinite; }
@keyframes brandPulse { 50% { box-shadow: 0 0 18px rgba(201,168,76,0.45); } }
.brand-card.disabled { opacity: .4; cursor: not-allowed; }
.brand-logo { max-width: 85%; max-height: 55px; object-fit: contain; }
.brand-name {
  font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim);
  padding: 0 .8rem; text-align: center; line-height: 1.3; transition: color .3s;
}
[dir="rtl"] .brand-name { letter-spacing: 0; text-transform: none; }
.brand-card:hover:not(.disabled) .brand-name, .brand-card.active .brand-name { color: var(--gold); }
.brand-soon {
  position: absolute; bottom: .3rem; right: .3rem;
  font-size: .55rem; color: var(--text-muted); letter-spacing: .05em;
}
[dir="rtl"] .brand-soon { right: auto; left: .3rem; }

/* === Series Grid === */
.series-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .7rem; margin-bottom: 2rem;
}
.series-card {
  display: flex; flex-direction: column; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: .6rem; background: var(--bg-card); transition: all .3s; text-align: center;
}
.series-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.series-card.active { border-color: var(--gold); background: rgba(201,168,76,0.06); }
.series-media {
  width: 70px; height: 70px; border-radius: 50%; overflow: hidden;
  background: var(--bg-img); display: flex; align-items: center; justify-content: center;
  margin-bottom: .4rem;
}
.series-media img { width: 100%; height: 100%; object-fit: contain; }
.series-name { font-size: .7rem; font-weight: 500; color: var(--text); line-height: 1.3; margin-bottom: .15rem; }
.series-count { font-size: .6rem; color: var(--text-dim); }

/* === Showcase Bar === */
.showcase-bar {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 1rem;
}
.showcase-info h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.showcase-info p { font-size: .82rem; color: var(--text-dim); }
.filter-side { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }

/* Search Box */
.search-box {
  position: relative; display: flex; align-items: center;
}
.search-icon {
  position: absolute; left: .7rem; color: var(--text-muted); pointer-events: none;
}
[dir="rtl"] .search-icon { left: auto; right: .7rem; }
.search-box input {
  width: 200px; padding: .4rem .7rem .4rem 2rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  color: var(--text); font-size: .78rem; font-family: inherit;
  transition: all .25s; outline: none;
}
[dir="rtl"] .search-box input { padding: .4rem 2rem .4rem .7rem; }
.search-box input:focus { border-color: var(--gold); width: 260px; }
.search-clear {
  position: absolute; right: .5rem; color: var(--text-muted);
  font-size: .7rem; display: none; padding: .2rem;
}
[dir="rtl"] .search-clear { right: auto; left: .5rem; }
.search-box.has-value .search-clear { display: block; }

/* Sort Box */
.sort-box select {
  padding: .4rem .7rem; background: var(--bg); border: 1px solid var(--border);
  border-radius: 20px; color: var(--text); font-size: .72rem; font-family: inherit;
  outline: none; cursor: pointer; transition: border-color .25s;
}
.sort-box select:focus { border-color: var(--gold); }

.count-badge {
  font-size: .72rem; padding: .25rem .8rem; background: rgba(201,168,76,0.1);
  color: var(--gold); border-radius: 20px; white-space: nowrap;
}
.cat-pills { display: flex; gap: .4rem; flex-wrap: wrap; }
.cat-btn {
  padding: .3rem .9rem; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .72rem; transition: all .25s;
}
.cat-btn:hover { border-color: var(--border-hover); color: var(--text); }
.cat-btn.active { background: var(--gold); color: #0a0a0c; border-color: var(--gold); }

/* === Product Grid === */
.grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--bg-card);
  transition: all .35s; animation: fadeUp .4s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-hover); transform: translateY(-6px) scale(1.01); }
.card-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--bg-img); }
.card-img { width: 100%; height: 100%; object-fit: contain; padding: 8%; transition: transform .6s cubic-bezier(.23,1,.32,1); }
.card:hover .card-img { transform: scale(1.08); }
.card-img-alt { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; padding: 8%; object-fit: contain; }
.card:hover .card-img-alt { opacity: 1; }

.card-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 50%);
  opacity: 0; transition: opacity .35s; z-index: 2;
}
.card:hover .card-overlay { opacity: 1; }
.view-label {
  padding: .4rem 1.1rem; background: rgba(255,255,255,0.95); color: #1a1816;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em;
  border-radius: 20px; transform: translateY(6px); transition: all .3s;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.card:hover .view-label { transform: translateY(0); }

/* Color dots on card */
.card-colors {
  position: absolute; bottom: .5rem; left: .5rem; z-index: 3;
  display: flex; gap: .25rem;
}
[dir="rtl"] .card-colors { left: auto; right: .5rem; }
.color-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}

.img-count {
  position: absolute; bottom: .5rem; right: .5rem; z-index: 3;
  background: rgba(0,0,0,.55); color: #fff; padding: .15rem .5rem;
  border-radius: 10px; font-size: .6rem; letter-spacing: .04em;
}
[dir="rtl"] .img-count { right: auto; left: .5rem; }

.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-series {
  display: inline-block; font-size: .6rem; letter-spacing: .12em; color: var(--gold);
  text-transform: uppercase; margin-bottom: .25rem;
}
.card-name {
  font-family: 'Inter', sans-serif; font-size: .85rem; font-weight: 500;
  color: var(--text); line-height: 1.4; margin-bottom: .35rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
[dir="rtl"] .card-name { font-family: 'Noto Sans Arabic', sans-serif; }
.card-material { font-size: .72rem; color: var(--text-dim); letter-spacing: .03em; }
.empty-state { grid-column: 1/-1; text-align: center; padding: 5rem 2rem; color: var(--text-dim); font-size: .95rem; }

/* === Pagination === */
.pagination { margin-top: 2rem; display: flex; justify-content: center; }
.page-nav { display: flex; align-items: center; gap: .4rem; }
.page-btn {
  padding: .45rem .9rem; border-radius: var(--radius);
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .78rem; transition: all .2s;
}
.page-btn:hover:not(.disabled) { border-color: var(--gold); color: var(--gold); }
.page-btn.active { background: var(--gold); color: #0a0a0c; border-color: var(--gold); font-weight: 600; }
.page-btn.disabled { opacity: .35; cursor: not-allowed; }
.page-num { min-width: 36px; text-align: center; padding: .45rem .3rem; }
.page-ellipsis { color: var(--text-muted); font-size: .78rem; padding: 0 .3rem; }
.page-info { color: var(--text-dim); font-size: .82rem; padding: 0 .8rem; }

/* === Lightbox === */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.9); backdrop-filter: blur(24px);
}
.lightbox-content {
  position: relative; z-index: 2;
  width: 92vw; max-width: 1100px; max-height: 92vh;
  background: var(--bg-card); border: 1px solid var(--border-hover);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.8);
  animation: modalIn .35s ease;
  display: grid; grid-template-columns: 1fr 340px;
}
[dir="rtl"] .lightbox-content { grid-template-columns: 340px 1fr; }
@keyframes modalIn {
  from { transform: scale(.96) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}
.lightbox-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 10;
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: all .2s; background: var(--bg-card);
}
[dir="rtl"] .lightbox-close { right: auto; left: .8rem; }
.lightbox-close:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Gallery */
.lightbox-gallery { display: flex; flex-direction: column; overflow: hidden; }
[dir="rtl"] .lightbox-gallery { order: 2; }
.lightbox-img-box {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; overflow: hidden; background: var(--bg-img);
}
.zoom-stage { position: relative; max-width: 100%; max-height: 68vh; display: flex; align-items: center; justify-content: center; }
.zoom-stage img {
  max-width: 100%; max-height: 68vh; object-fit: contain;
  opacity: 0; transition: opacity .3s;
}
.zoom-stage img.loaded { opacity: 1; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(0,0,0,.35); color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.15); transition: all .2s;
  backdrop-filter: blur(4px);
}
.lb-nav:hover { background: var(--gold); color: #0a0a0c; }
.lb-prev { left: .8rem; }
.lb-next { right: .8rem; }
.lightbox.single .lb-nav { display: none; }
.zoom-hint {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  font-size: .6rem; color: rgba(0,0,0,.35); letter-spacing: .05em; pointer-events: none;
}
.lightbox-thumbs {
  display: flex; gap: .4rem; padding: .6rem 1.5rem;
  overflow-x: auto; background: var(--bg-card);
  border-top: 1px solid var(--border);
}
.thumb {
  flex-shrink: 0; width: 56px; height: 56px;
  border: 2px solid transparent; border-radius: 4px;
  overflow: hidden; padding: 2px; transition: all .2s; background: var(--bg-img);
}
.thumb.active { border-color: var(--gold); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

/* Info Panel */
.lightbox-info {
  padding: 2rem 1.5rem;
  border-inline-start: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .6rem;
  overflow-y: auto;
}
[dir="rtl"] .lightbox-info { order: 1; }
.lightbox-series-tag {
  font-size: .65rem; letter-spacing: .15em; color: var(--gold);
  text-transform: uppercase;
}
.lightbox-name { font-size: 1.15rem; color: var(--text); line-height: 1.4; }

/* Variant Selectors */
.variant-section { margin-top: .5rem; }
.variant-label {
  display: block; font-size: .7rem; color: var(--text-muted);
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: .4rem;
}
.color-selector, .size-selector { display: flex; gap: .5rem; flex-wrap: wrap; }
.color-opt, .size-opt {
  display: flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border-radius: 20px;
  border: 1px solid var(--border); color: var(--text-dim);
  font-size: .72rem; transition: all .2s;
}
.color-opt:hover, .size-opt:hover { border-color: var(--border-hover); color: var(--text); }
.color-opt.active, .size-opt.active { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,0.08); }
.size-opt.unavailable {
  opacity: .35; text-decoration: line-through; cursor: not-allowed;
}
.color-swatch {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.15);
}

.lightbox-specs {
  display: flex; flex-direction: column; gap: .35rem;
  margin-top: .5rem; padding-top: .8rem;
  border-top: 1px solid var(--border);
}
.lightbox-specs > div { display: flex; gap: .6rem; }
.lightbox-specs dt { font-size: .72rem; color: var(--text-muted); min-width: 4.5em; flex-shrink: 0; }
.lightbox-specs dd { font-size: .78rem; color: var(--text); }
.lightbox-specs .spec-extra dt { min-width: 7.5em; max-width: 7.5em; }
.lightbox-specs .spec-extra dd { line-height: 1.45; overflow-wrap: anywhere; }
.lightbox-link {
  display: inline-block; margin-top: .4rem;
  padding: .45rem 1rem; border: 1px solid var(--border);
  border-radius: 4px; font-size: .72rem; color: var(--gold);
  letter-spacing: .06em; transition: all .2s; text-align: center;
}
.lightbox-link:hover { background: var(--gold); color: #0a0a0c; border-color: var(--gold); }
.lightbox-pager {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--border);
}
.lightbox-pager button { font-size: .75rem; color: var(--text-dim); transition: color .2s; padding: .3rem 0; }
.lightbox-pager button:hover { color: var(--gold); }
.lightbox-pager span { font-size: .7rem; color: var(--text-muted); }

/* === Zoom Lens === */
.luxury-zoom-lens {
  position: absolute; width: 150px; height: 150px;
  border-radius: 50%; pointer-events: none; z-index: 10;
  border: 2px solid rgba(201,168,76,0.5);
  box-shadow: 0 0 20px rgba(0,0,0,.3), inset 0 0 30px rgba(255,255,255,.05);
  opacity: 0; transform: scale(.85);
  transition: opacity .2s, transform .2s;
  background-repeat: no-repeat;
}
.lens-crosshair {
  position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; transform: translate(-50%,-50%);
}
.lens-crosshair::before, .lens-crosshair::after {
  content: ''; position: absolute; background: rgba(201,168,76,0.3);
}
.lens-crosshair::before { width: 1px; height: 100%; left: 50%; top: 0; }
.lens-crosshair::after { height: 1px; width: 100%; top: 50%; left: 0; }
.lens-reflection {
  position: absolute; top: 15%; left: 15%; width: 30%; height: 30%;
  background: radial-gradient(ellipse, rgba(255,255,255,.18) 0%, transparent 70%);
  border-radius: 50%; transform: rotate(-30deg);
}
.zoom-factor-badge {
  position: absolute; bottom: .6rem; left: 50%; transform: translateX(-50%);
  background: rgba(0,0,0,.65); color: var(--gold); padding: .2rem .7rem;
  border-radius: 12px; font-size: .65rem; letter-spacing: .04em;
  pointer-events: none; opacity: 0; transition: opacity .3s;
}

/* === WhatsApp Floating Button === */
.wa-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform .25s, box-shadow .25s;
  text-decoration: none;
}
[dir="rtl"] .wa-float { right: auto; left: 1.5rem; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.55); }

/* WhatsApp Product Link (in lightbox) */
.wa-product-link {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .55rem 1rem; margin-top: .3rem;
  border-radius: 6px; background: #25D366; color: #fff;
  font-size: .78rem; font-weight: 500; letter-spacing: .03em;
  text-decoration: none; transition: all .25s;
}
.wa-product-link:hover { background: #1DA851; box-shadow: 0 4px 16px rgba(37,211,102,0.3); }
.wa-product-link svg { flex-shrink: 0; }

/* === 收藏 / 浏览记录 (Wishlist & Recently Viewed) === */
/* 导航栏入口按钮 */
.wl-btn {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-dim);
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.wl-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.wl-btn:hover { border-color: var(--gold); color: var(--gold); }
.wl-btn.has-items { color: var(--gold); border-color: var(--border-hover); }
.wl-btn.has-items svg { fill: currentColor; }
.wl-count {
  position: absolute; top: -5px; inset-inline-end: -6px;
  min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: .6rem; font-weight: 600;
  line-height: 18px; text-align: center;
}
.wl-count[hidden] { display: none; }

/* 商品卡片右上角的爱心 */
.card-fav {
  position: absolute; top: .5rem; inset-inline-end: .5rem; z-index: 4;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.88); color: #7e1518;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s, background .2s;
}
.card-fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.card-fav:hover { transform: scale(1.12); background: #fff; }
.card-fav.is-fav svg { fill: currentColor; }
.card-fav:focus-visible, .wl-btn:focus-visible, .lb-fav:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* 详情弹窗里的收藏按钮 */
.lb-fav {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: .4rem; padding: .5rem 1rem;
  border: 1px solid var(--gold); border-radius: 4px;
  color: var(--gold); font-size: .75rem; letter-spacing: .05em; transition: all .2s;
}
.lb-fav svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; flex-shrink: 0; }
.lb-fav:hover { background: rgba(201,168,76,0.1); }
.lb-fav.is-fav { background: var(--gold); color: #0a0a0c; }
.lb-fav.is-fav svg { fill: currentColor; }

/* 侧边抽屉 */
.drawer {
  position: fixed; inset: 0; z-index: 1100;
  visibility: hidden; pointer-events: none; transition: visibility 0s .3s;
}
.drawer.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.drawer [hidden] { display: none !important; }
.drawer-bg { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .3s; }
.drawer.open .drawer-bg { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(420px, 100vw); background: var(--bg-card);
  border-inline-start: 1px solid var(--border-hover); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s ease;
}
[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1rem; color: var(--text); }
.drawer-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--text-dim); transition: all .2s;
}
.drawer-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
.drawer-tabs {
  display: flex; gap: .2rem; padding: .5rem 1.2rem 0;
  border-bottom: 1px solid var(--border); overflow-x: auto;
}
.drawer-tab {
  display: flex; align-items: center; gap: .3rem;
  padding: .55rem .7rem; font-size: .75rem; color: var(--text-dim);
  border-bottom: 2px solid transparent; white-space: nowrap; transition: color .2s;
}
.drawer-tab:hover { color: var(--text); }
.drawer-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.tab-count {
  display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px;
  background: rgba(201,168,76,0.14); color: var(--gold);
  font-size: .62rem; line-height: 16px; text-align: center;
}
.drawer-body { flex: 1; overflow-y: auto; padding: .7rem 1.2rem; }
.wl-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.wl-item {
  display: flex; align-items: stretch;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); overflow: hidden; transition: border-color .2s;
}
.wl-item:hover { border-color: var(--border-hover); }
.wl-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem;
  padding: .5rem; text-align: start; color: inherit;
}
.wl-thumb {
  flex-shrink: 0; width: 64px; height: 64px; border-radius: 6px;
  background: var(--bg-img); object-fit: contain; padding: 4px;
}
.wl-info { min-width: 0; display: flex; flex-direction: column; gap: .12rem; }
.wl-brand {
  font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
[dir="rtl"] .wl-brand { letter-spacing: 0; }
.wl-name {
  font-size: .8rem; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wl-meta { font-size: .65rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-remove { flex-shrink: 0; width: 38px; color: var(--text-muted); font-size: .85rem; transition: all .2s; }
.wl-remove:hover { color: #fff; background: var(--red); }
.wl-empty { text-align: center; color: var(--text-dim); font-size: .82rem; line-height: 1.8; padding: 3rem 1rem; }
.drawer-foot {
  padding: .9rem 1.2rem 1.1rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: .5rem;
}
.drawer-actions { display: flex; gap: .5rem; }
.drawer-action {
  flex: 1; padding: .5rem .6rem; border: 1px solid var(--border); border-radius: 4px;
  font-size: .72rem; color: var(--text-dim); transition: all .2s;
}
.drawer-action:hover { border-color: var(--gold); color: var(--gold); }
.drawer-action.danger:hover { border-color: var(--red); color: #e0676b; }
.drawer-action.armed, .drawer-action.armed:hover { background: var(--red); border-color: var(--red); color: #fff; }
.wl-share-input {
  width: 100%; padding: .45rem .6rem; background: var(--bg);
  border: 1px solid var(--border-hover); border-radius: 4px;
  color: var(--text); font-size: .7rem; font-family: inherit;
}

/* 轻提示 */
.toast {
  position: fixed; bottom: 5.5rem; left: 50%; z-index: 1200;
  transform: translate(-50%, 10px); max-width: calc(100vw - 2rem);
  padding: .55rem 1.1rem; border-radius: 20px;
  background: rgba(20,20,22,0.95); color: var(--gold); border: 1px solid var(--border-hover);
  font-size: .78rem; text-align: center; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* === Series Description === */
.showcase-info p {
  font-size: .82rem; color: var(--text-dim);
  max-width: 600px; line-height: 1.6; margin-top: .15rem;
}

/* === Footer === */
.footer {
  background: #060608; border-top: 1px solid var(--border);
  padding: 3rem 2rem 2rem; color: #6b6762;
}
[data-theme="light"] .footer { background: #eae7e1; color: #8a8580; }
.footer-inner {
  max-width: 1400px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem; align-items: start;
}
.footer-col h4 { font-size: .75rem; color: var(--gold); letter-spacing: .1em; margin-bottom: .6rem; }
.footer-brand { font-family: 'Cinzel', serif; font-size: 1.1rem; color: #fff; letter-spacing: .15em; display: block; margin-bottom: .3rem; }
[data-theme="light"] .footer-brand { color: #1a1816; }
.footer-tagline { font-size: .7rem; color: var(--gold); letter-spacing: .08em; }
.footer-link {
  display: flex; align-items: center; gap: .4rem;
  font-size: .75rem; color: #9e9a93; transition: color .2s;
}
.footer-link:hover { color: var(--gold); }
[data-theme="light"] .footer-link { color: #6b6560; }
.footer-note { font-size: .65rem; max-width: 500px; line-height: 1.6; }
.footer-copy { font-size: .6rem; margin-top: .5rem; color: #4a4540; }
[data-theme="light"] .footer-copy { color: #a09a90; }

/* === Responsive: Tablet === */
@media (max-width: 1199px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .lightbox-content { grid-template-columns: 1fr; max-height: 95vh; overflow-y: auto; }
  [dir="rtl"] .lightbox-content { grid-template-columns: 1fr; }
  .lightbox-info { border-inline-start: none; border-top: 1px solid var(--border); padding: 1.2rem; }
  [dir="rtl"] .lightbox-info { order: unset; }
  [dir="rtl"] .lightbox-gallery { order: unset; }
  .lightbox-pager { padding-top: .5rem; }
}

/* === Responsive: Mobile === */
@media (max-width: 767px) {
  .nav-inner { padding: .6rem 1rem; }
  .nav-logo-text { font-size: .85rem; }
  .nav-logo-sub { display: none; }
  .nav-logo-svg { width: 26px; height: 26px; }
  .nav-logo-img { width: 30px; height: 30px; }

  .hero-carousel { height: 50vh; min-height: 320px; }
  .hero-content { padding: 2rem 1.5rem; }
  .hero h1, .hero .hero-title { font-size: 1.6rem; }
  .hero-sub { font-size: .85rem; }
  .hero p.desc { font-size: .78rem; }
  .hero-dots { bottom: 1rem; }

  .wrap { padding: 0 1rem; }
  .section { padding: 1.2rem 0; }

  .brand-bar { gap: .5rem; }
  .brand-card { width: 140px; height: 60px; }
  .brand-logo { max-height: 36px; }
  .brand-name { font-size: .78rem; letter-spacing: .08em; }

  .series-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: .5rem; }
  .series-media { width: 50px; height: 50px; }
  .series-name { font-size: .6rem; }

  .showcase-bar { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .showcase-info h2 { font-size: 1.2rem; }
  .filter-side { flex-direction: column; align-items: flex-start; gap: .5rem; width: 100%; }
  .search-box { width: 100%; }
  .search-box input { width: 100%; }
  .search-box input:focus { width: 100%; }
  .sort-box { width: 100%; }
  .sort-box select { width: 100%; }

  .grid { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .card-body { padding: .7rem .8rem .9rem; }
  .card-name { font-size: .75rem; }
  .card-series { font-size: .55rem; }
  .card-material { font-size: .65rem; }
  .card-colors .color-dot { width: 10px; height: 10px; }

  .lightbox-content {
    width: 100vw; height: 100vh; max-width: 100%; max-height: 100%;
    border-radius: 0; border: none;
    grid-template-columns: 1fr;
  }
  .lightbox-img-box { padding: .8rem; }
  .zoom-stage img { max-height: 45vh; }
  .lightbox-thumbs { padding: .4rem .8rem; }
  .thumb { width: 44px; height: 44px; }
  .lightbox-info { padding: 1rem; gap: .4rem; }
  .lightbox-name { font-size: 1rem; }
  .variant-section { margin-top: .3rem; }
  .color-opt, .size-opt { padding: .25rem .6rem; font-size: .68rem; }

  .page-btn { padding: .35rem .6rem; font-size: .72rem; }
  .page-num { min-width: 30px; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 1.2rem; }
  .footer-link { justify-content: center; }

  .wa-float { width: 48px; height: 48px; bottom: 1rem; right: 1rem; }
  [dir="rtl"] .wa-float { right: auto; left: 1rem; }
  .zoom-hint { display: none; }
  .nav-actions { gap: .4rem; }
  /* 手机端导航按钮紧凑一行显示（加入收藏按钮后避免换行） */
  .theme-btn, .lang-btn { padding: .35rem .6rem; font-size: .7rem; white-space: nowrap; }
  .wl-btn { width: 32px; height: 32px; flex-shrink: 0; }
  .card-fav { width: 28px; height: 28px; top: .4rem; inset-inline-end: .4rem; }
  .card-fav svg { width: 14px; height: 14px; }
  .toast { bottom: 4.5rem; }
}

/* === Very small screens === */
@media (max-width: 380px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
  .card-img-wrap { aspect-ratio: 1; }
  .brand-card { width: 110px; height: 50px; }
}
