@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Jost:wght@300;400;500&display=swap');

/* =====================================================================
   Light-luxury jewelry theme — custom overrides (stylesheet-custom.css)
   Loaded after stylesheet.css so these rules win the cascade.
   Palette: bg #F8F4EF · gold #C8A540 · ink #1A1A1A · muted #666 · border #E8DFCF
   ===================================================================== */

:root {
  --lux-bg: #F8F4EF;
  --lux-gold: #C8A540;
  --lux-gold-dark: #9E7D2B;
  --lux-ink: #1A1A1A;
  --lux-muted: #666666;
  --lux-border: #E8DFCF;
  --lux-surface: #FFFFFF;
}

/* ---------- Base / typography ---------- */
body {
  background-color: var(--lux-bg);
  color: var(--lux-ink);
  font-family: 'Jost', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--lux-ink);
  font-family: 'Playfair Display', 'Times New Roman', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.02em;
}

a { color: var(--lux-gold-dark); }
a:hover { color: var(--lux-ink); }

legend {
  color: var(--lux-ink);
  font-family: 'Playfair Display', Georgia, serif;
  border-bottom: 1px solid var(--lux-border);
}

/* ---------- Form controls (subtle refinement) ---------- */
.form-control, .form-select {
  border-color: var(--lux-border);
  border-radius: 2px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 0.15rem rgba(200, 165, 64, 0.15);
}

/* ---------- Top utility bar (black, matching header screenshot) ---------- */
#top {
  background-color: #0D0D0D;
  border-top: 2px solid var(--lux-gold);
  border-bottom: 1px solid #1F1F1F;
  color: #8A8A8A;
  padding: 10px 0;
  margin: 0 0 0 0;
  min-height: 44px;
}
#top .nav > .list-inline > .list-inline-item,
#top .nav > .list-inline .list-inline-item > a,
#top .nav > .list-inline .list-inline-item .dropdown > a,
#top .btn-link,
#top a {
  color: #CFCFCF;
  text-shadow: none;
}
#top a:hover, #top .btn-link:hover { color: var(--lux-gold); }
/* Brand tagline in top bar */
#top .brand-tagline {
  color: var(--lux-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-right: 18px;
}
/* 手机端也显示品牌标语（模板里原为 d-none d-md-inline，只在 ≥768px 显示） */
@media (max-width: 767px) {
  #top .brand-tagline {
    font-size: 10px;
    letter-spacing: 0.22em;
    margin-right: 10px;
  }
}

/* ---------- Header (black, white text, gold accents) ---------- */
header {
  background-color: #0D0D0D;
  padding: 28px 0 12px;
}
header .row { align-items: center; }
header h1 a { color: #FFFFFF; }
#logo { margin: 0 0 12px 0; }
#logo img { max-width: none; width: auto; height: 80px; }

/* ---------- Header social icons (right of logo, left of search) ---------- */
.header-logo-social { flex-wrap: wrap; justify-content: space-between; }
.header-social { margin: 0 0 12px auto; flex-shrink: 0; }
.header-social .list-inline-item { margin-left: 0; margin-right: 14px; }
.header-social .list-inline-item:last-child { margin-right: 0; }
.header-social a {
  font-size: 18px;
  line-height: 1;
  color: #B5B5B5;
  transition: color 0.2s ease, transform 0.2s ease;
}
.header-social a:hover {
  color: var(--lux-gold);
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .header-social { margin: 0 0 12px 0; }
  .header-social .list-inline-item { margin-right: 12px; }
}

/* ---------- Search (dark input on black header) ---------- */
#search { max-width: 320px; }
#search .form-control-lg {
  height: 44px;
  font-size: 13px;
  border: 1px solid #2C2C2C;
  border-radius: 0;
  background-color: #161616;
  color: #FFFFFF;
}
#search .form-control-lg::placeholder { color: #777777; }
#search .form-control-lg:focus {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 0.15rem rgba(200, 165, 64, 0.12);
}
#search .btn-lg {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  border-radius: 0;
  color: var(--lux-ink);
  background-color: var(--lux-gold);
  border-color: var(--lux-gold);
}
#search .btn-lg:hover {
  color: #fff;
  background-color: var(--lux-gold-dark);
  border-color: var(--lux-gold-dark);
}

/* ---------- Header cart (white pill outline, like the screenshot) ---------- */
#header-cart .btn-lg {
  color: #fff;
  background-color: transparent;
  background-image: none;
  border: 1px solid #FFFFFF;
  text-shadow: none;
  height: 44px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
#header-cart .btn-lg:hover {
  color: var(--lux-gold);
  border-color: var(--lux-gold);
  background-color: transparent;
}
#header-cart .btn:hover { color: #fff; }
#header-cart .dropdown-menu {
  background: var(--lux-surface);
  border: 1px solid var(--lux-border);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
}

/* ---------- Category menu (black bar, white items, gold hover) ---------- */
/* bg-primary utility uses !important, so we match it to restyle the bar */
#menu {
  background-color: #0D0D0D !important;
  background-image: none !important;
  border: none;
  border-bottom: 1px solid #1F1F1F;
  border-radius: 0;
  min-height: 50px;
  position: relative;
}
/* Soft gold hairline separating the menu from the header above
   (fades out at both ends for a gentle transition) */
#menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(200, 165, 64, 0) 0%,
    rgba(200, 165, 64, 0.55) 18%,
    rgba(200, 165, 64, 0.55) 82%,
    rgba(200, 165, 64, 0) 100%);
}
/* Full-width bar: keep items off the screen edges with container-like padding */
#menu.navbar { padding: 0; margin-bottom: 30px; }
#menu .navbar-collapse { padding: 0 1.5rem; }
#menu .navbar-toggler { margin: 8px 1.5rem; }
@media (min-width: 992px) {
  #menu .navbar-collapse {
    padding: 0 max(1.5rem, calc((100vw - 1200px) / 2));
  }
}
#menu #category {
  color: #FFFFFF;
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  text-shadow: none;
}
#menu .navbar-nav > li > a {
  color: #FFFFFF;
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
  font-weight: 400;
  padding: 15px 18px;
  position: relative;
  background-color: transparent;
}
#menu .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 10px;
  height: 1px;
  background-color: var(--lux-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
#menu .navbar-nav > li > a:hover {
  background-color: transparent;
  color: var(--lux-gold);
}
#menu .navbar-nav > li > a:hover::after { transform: scaleX(1); }
#menu .dropdown-menu {
  border: 1px solid var(--lux-border);
  border-radius: 0;
  box-shadow: 0 14px 34px rgba(26, 26, 26, 0.08);
  background-color: var(--lux-surface);
}
#menu .dropdown-inner a {
  color: var(--lux-ink);
  font-size: 13px;
}
#menu .dropdown-inner ul li a:hover {
  color: var(--lux-gold-dark);
  background-image: none;
  background-color: var(--lux-bg);
}
#menu .see-all {
  border-top: 1px solid var(--lux-border);
  color: var(--lux-gold-dark);
}
#menu .see-all:hover, #menu .see-all:focus {
  background-image: none;
  background-color: var(--lux-bg);
  color: var(--lux-ink);
}

/* ---------- Mobile menu (toggler + collapsed dropdown) ---------- */
#menu .navbar-toggler,
.navbar-light .navbar-toggler {
  background-color: var(--lux-gold);
  background-image: none;
  border-color: var(--lux-gold);
  color: var(--lux-ink);
}
#menu .navbar-toggler i { color: var(--lux-ink); border-color: var(--lux-ink); }
@media (max-width: 767px) {
  #menu { border-radius: 0; }
  #menu div.dropdown-menu { background-color: var(--lux-surface); }
  #menu .dropdown-inner a { color: var(--lux-ink); width: 100%; }
  #menu .dropdown-menu a:hover { background: var(--lux-bg); }
  #menu .see-all { color: var(--lux-gold-dark); border: none; }
}

/* ---------- Buttons (restrained, no gradient / no text-shadow) ---------- */
.btn-primary {
  background-image: none;
  background-color: var(--lux-gold);
  border-color: var(--lux-gold);
  color: var(--lux-ink);
  text-shadow: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 2px;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
.btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
  background-color: var(--lux-gold-dark);
  border-color: var(--lux-gold-dark);
  color: #fff;
}
.btn-light {
  background-image: none;
  background-color: var(--lux-surface);
  border-color: var(--lux-border);
  color: var(--lux-ink);
  text-shadow: none;
  border-radius: 2px;
}
.btn-light:hover, .btn-light:focus {
  background-color: var(--lux-bg);
  border-color: var(--lux-gold);
  color: var(--lux-gold-dark);
}
.btn-warning {
  background-image: none;
  background-color: var(--lux-gold);
  border-color: var(--lux-gold);
  color: var(--lux-ink);
  text-shadow: none;
  border-radius: 2px;
}
.btn-warning:hover {
  background-color: var(--lux-gold-dark);
  border-color: var(--lux-gold-dark);
  color: #fff;
}
.btn-link { color: var(--lux-gold-dark); }

/* ---------- Product cards (refined, subtle shadow, soft hover) ---------- */
.product-thumb {
  border: 1px solid var(--lux-border);
  border-radius: 4px;
  background-color: var(--lux-surface);
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.03);
  transition: box-shadow .3s ease, transform .3s ease;
  overflow: hidden;
}
.product-thumb:hover {
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.09);
  transform: translateY(-3px);
}
.product-thumb h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  color: var(--lux-ink);
  letter-spacing: 0.02em;
}
.product-thumb .image a:hover { opacity: 1; }
.product-thumb .image img { transition: transform .5s ease; }
.product-thumb:hover .image img { transform: scale(1.2); }
.product-thumb .button-group {
  border-top: 1px solid var(--lux-border);
  background-color: var(--lux-bg);
}
.product-thumb .button-group button {
  background-color: var(--lux-bg);
  color: var(--lux-muted);
  font-weight: 400;
  letter-spacing: 0.06em;
}
.product-thumb .button-group button:hover {
  color: var(--lux-gold-dark);
  background-color: var(--lux-surface);
}
.product-thumb .button-group button + button { border-left: 1px solid var(--lux-border); }
.product-list .product-thumb .button-group { border-left: 1px solid var(--lux-border); }

/* ---------- Product images: full-width, keep aspect ratio ---------- */

/* 商品卡片缩略图（列表图）：固定 2:3 竖版容器（240:360）+ object-fit:cover 铺满并裁掉白边/多余留白，
   保持原图比例不变形（cover 是等比裁剪、不是拉伸）；分类/列表/搜索/特价/相关页，
   以及 Featured/Latest/Special/Bestseller 等模块均复用 product/thumb.twig，一并生效 */
.product-thumb .image {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}
.product-thumb .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  transform-origin: center;
}

/* Featured 模块：只显示产品图片、名称、价格（隐藏描述、评分星级、购物车/收藏/对比按钮） */
.featured-products .product-thumb .description p {
  display: none;
}
.featured-products .product-thumb .rating {
  display: none;
}
.featured-products .product-thumb .button-group {
  display: none;
}
/* ---------- 首页 Featured：单行包邮说明（无边框）在上，Featured 标题在下 ----------
   模板：extension/opencart/catalog/view/template/module/featured.twig
   结构：<div class="featured-head">
           <span class="featured-shipping-tag">单行文字，窄屏自动换行</span>
           <h3>Featured</h3>
         </div> */
.featured-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 0 0 20px;
}
.featured-head h3 {
  margin: 0;
  line-height: 1.3;
}
.featured-shipping-tag {
  display: block;
  font-family: 'Jost', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: #000000;
}
@media (max-width: 991.98px) {
  .featured-shipping-tag {
    font-size: 12px;
    letter-spacing: 0.1em;
  }
}
@media (max-width: 575.98px) {
  .featured-shipping-tag {
    font-size: 10.5px;
    letter-spacing: 0.06em;
    line-height: 1.75;
  }
}

/* ---------- 首页 Featured 一排显示 8 个 ----------
   覆盖模板 row-cols-* 的分栏（.row-cols-xl-4 会设 width:25%），
   这里用更高优先级(.featured-products > .col)在桌面端强制每行 8 个，
   并保证 flex-basis / width / max-width 三者一致以压制 Bootstrap 默认值。 */
.featured-products > .col {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 576px) {
  .featured-products > .col {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}
@media (min-width: 768px) {
  .featured-products > .col {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
  }
}
/* 桌面端(lg ≥992px)：一排 5 个（5×20%=100%，正好排满） */
@media (min-width: 992px) {
  .featured-products > .col {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
  }
  /* 5 列较窄，缩小卡片内文字与间距，避免拥挤 */
  .featured-products .product-thumb h4,
  .featured-products .product-thumb h5 {
    font-size: 13px;
    line-height: 1.25;
  }
}

/* ---------- Latest 模块：只显示标题和价格 ----------
   隐藏描述、评分星级、购物车/收藏/对比按钮，卡片只保留 图片 + 标题 + 价格（与 Featured 一致）。 */
.latest-products .product-thumb .description p {
  display: none;
}
.latest-products .product-thumb .rating {
  display: none;
}
.latest-products .product-thumb .button-group {
  display: none;
}

/* ---------- Latest 模块：桌面端一排 5 个 ----------
   覆盖模板 row-cols-* 分栏，桌面端每行 5 个（5×20%=100%，正好排满）。 */
.latest-products > .col {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 576px) {
  .latest-products > .col {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}
/* 桌面端(≥768px)：一排 5 个 */
@media (min-width: 768px) {
  .latest-products > .col {
    flex: 0 0 20%;
    width: 20%;
    max-width: 20%;
  }
  /* 5 列较窄，缩小卡片内文字，避免拥挤 */
  .latest-products .product-thumb h4,
  .latest-products .product-thumb h5 {
    font-size: 13px;
    line-height: 1.25;
  }
}

/* ---------- Featured / Latest：标题与价格统一为黑色 ---------- */
.featured-products .product-thumb .description h4 a,
.latest-products .product-thumb .description h4 a {
  color: #000000;
}
.featured-products .product-thumb .description h4 a:hover,
.latest-products .product-thumb .description h4 a:hover {
  color: #000000;
}
.featured-products .product-thumb .price,
.latest-products .product-thumb .price,
.featured-products .product-thumb .price-new,
.latest-products .product-thumb .price-new {
  color: #000000;
}

/* ---------- 分类 / 品牌 / 搜索 / 特价 等产品网格页：桌面端一排 6 个 ----------
   #product-list 用于所有这些产品网格页。
   用 :not(.product-list) 排除“列表视图”（列表视图 JS 会加 .product-list 类，应保持单列整行）。
   覆盖模板 row-cols-lg-4 及 JS 网格模式的 row-cols-lg-3，桌面端改为 6 个/行。 */
#product-list:not(.product-list) > .col {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 576px) {
  #product-list:not(.product-list) > .col {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
  }
}
@media (min-width: 768px) {
  #product-list:not(.product-list) > .col {
    flex: 0 0 33.3333%;
    width: 33.3333%;
    max-width: 33.3333%;
  }
}
/* 桌面端(lg ≥992px)：一排 6 个（用 16.666% 避免 6 列相加超过 100% 导致最后一个换行） */
@media (min-width: 992px) {
  #product-list:not(.product-list) > .col {
    flex: 0 0 16.666%;
    width: 16.666%;
    max-width: 16.666%;
  }
}

/* 商品详情页主图铺满列宽，并去掉 img-thumbnail 自带的白框（边框+内边距+白底+圆角） */
#product-info .image > a > img {
  width: 100%;
  height: auto;
  padding: 0;
  border: none;
  background-color: transparent;
  border-radius: 0;
}

/* ---------- 商品详情主图画廊（左侧缩略图竖排 + 右侧大图 + 左右箭头） ---------- */
.product-gallery {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
/* 左侧缩略图竖排 */
.product-gallery-thumbs {
  flex: 0 0 100px;
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 720px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.product-gallery-thumb {
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 2 / 3;   /* 缩微图：240:360 = 2:3 竖版 */
  border: 1px solid var(--lux-border);
  border-radius: 4px;
  overflow: hidden;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.product-gallery-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-gallery-thumb:hover {
  border-color: var(--lux-gold);
}
.product-gallery-thumb.active {
  border-color: var(--lux-gold);
  box-shadow: 0 0 0 1px var(--lux-gold);
}
/* 右侧大图 */
.product-gallery-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  aspect-ratio: 2 / 3;   /* 详情图：240:360 = 2:3 竖版 */
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lux-border);
  border-radius: 4px;
  background-color: #0D0D0D;
  overflow: hidden;
}
.product-gallery-main > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
#product-main-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* <picture> 包裹层：让 img 的 100% 宽高有正确参照 */
.product-gallery-main picture {
  display: block;
  width: 100%;
  height: 100%;
}
/* 商品描述图片：不溢出容器（具体加载多大由 <picture>/srcset 决定） */
#tab-description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}
/* ---------- 手机端：详情页图片最大宽度 100%，不溢出屏幕 ---------- */
@media (max-width: 767px) {
  #product-info img {
    max-width: 100%;
  }
  /* 描述里的 <picture> 用块级，让图片按容器宽度铺满 */
  #tab-description picture {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  #tab-description img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto 12px;
  }
  /* 主图画廊：按原始比例完整显示，不裁切、不补白边 */
  .product-gallery-main {
    aspect-ratio: auto;
  }
  .product-gallery-main > a,
  .product-gallery-main picture {
    height: auto;
  }
  #product-main-image {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  /* 列表 / 相关商品 / 模块商品卡片图片：最大宽度 100%，不溢出 */
  .product-thumb .image,
  .product-thumb .image img {
    max-width: 100%;
  }
}
/* 左右切换箭头 */
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, color 0.2s ease;
  z-index: 2;
}
.product-gallery-arrow:hover {
  background-color: var(--lux-gold);
  color: var(--lux-ink);
}
.product-gallery-arrow.prev { left: 12px; }
.product-gallery-arrow.next { right: 12px; }

/* 移动端：主图在上，缩略图在下方横向滚动 */
@media (max-width: 767px) {
  .product-gallery {
    flex-direction: column-reverse;
    gap: 12px;
  }
  .product-gallery-thumbs {
    flex: none;
    width: 100%;
    max-height: none;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 6px;
  }
  .product-gallery-thumb {
    flex: 0 0 76px;
    width: 76px;
  }
  .product-gallery-arrow {
    width: 36px;
    height: 36px;
  }
}

/* ---------- 商品详情页数量：Qty 标签与输入框同一行，输入框固定 100px ---------- */
#product-info label[for="input-quantity"] {
  display: inline-block;
  margin: 0 10px 0 0;
  vertical-align: middle;
}
#product-info #input-quantity {
  display: inline-block;
  width: 100px;
  max-width: 100px;
  vertical-align: middle;
}

/* ---------- Price & rating ---------- */
.price { color: var(--lux-ink); font-family: 'Playfair Display', Georgia, serif; }
.price-new { font-weight: 600; color: var(--lux-gold-dark); }
.price-old { color: #999; }
.price-tax { color: #999; }
.rating .fa-star, .rating .fa-star + .fa-star { color: var(--lux-gold); }

/* ---------- 分类列表（左侧栏 / 分类模块）：统一为主题配色 ----------
   默认 Bootstrap 的 .list-group-item.active 是蓝色，与金/黑/米白主题不搭，
   这里改成黑底白字（与顶部 #menu 黑色导航一致）+ 金色左边条点缀。 */
.list-group {
  border: 1px solid var(--lux-border);
  border-radius: 0;
  overflow: hidden;
}
.list-group-item {
  background-color: var(--lux-surface);
  border-color: var(--lux-border);
  color: var(--lux-ink);
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.list-group-item:hover {
  background-color: var(--lux-bg);
  border-color: var(--lux-border);
  color: var(--lux-gold-dark);
  padding-left: 18px;
}
.list-group-item.active {
  background-color: #0D0D0D;
  border-color: #0D0D0D;
  color: #FFFFFF;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-left: 3px solid var(--lux-gold);
}
.list-group-item.active:hover {
  background-color: #0D0D0D;
  color: #FFFFFF;
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  background-color: transparent;
  border: 1px solid var(--lux-border);
  border-radius: 0;
  margin: 0 0 24px 0;
}
.breadcrumb > li.breadcrumb-item { text-shadow: none; }
.breadcrumb > li.breadcrumb-item > a { color: var(--lux-muted); }
.breadcrumb > li.breadcrumb-item > a:hover { color: var(--lux-gold-dark); }
.breadcrumb > li.breadcrumb-item:after {
  border-right: 1px solid var(--lux-border);
  border-bottom: 1px solid var(--lux-border);
}

/* ---------- Pagination ---------- */
.pagination .page-link {
  color: var(--lux-muted);
  border-color: var(--lux-border);
}
.pagination .page-item.active .page-link {
  background-color: var(--lux-gold);
  border-color: var(--lux-gold);
  color: var(--lux-ink);
}
.pagination .page-link:hover {
  color: var(--lux-gold-dark);
  background-color: var(--lux-bg);
  border-color: var(--lux-border);
}

/* ---------- Nav tabs ---------- */
.nav-tabs { border-bottom: 1px solid var(--lux-border); }
.nav-tabs .nav-link { color: var(--lux-muted); }
.nav-tabs .nav-link.active {
  color: var(--lux-gold-dark);
  background-color: var(--lux-bg);
  border-color: var(--lux-border) var(--lux-border) var(--lux-bg);
}
.nav-tabs .nav-link:hover { color: var(--lux-gold-dark); }

/* ---------- Footer (black, matching header, champagne gold accents) ---------- */
footer {
  background-color: #0D0D0D;
  border-top: 2px solid var(--lux-gold);
  color: #9A9A9A;
}
/* Centered brand line above the powered-by row */
footer .footer-brand {
  text-align: center;
  color: var(--lux-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  margin: 6px 0 16px;
  text-indent: 0.4em; /* optically re-center the letter-spacing */
}
footer h5 {
  color: var(--lux-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}
footer a { color: #B5B5B5; }
footer a:hover { color: var(--lux-gold); }
footer hr { border-bottom: 1px solid #333333; }
footer .footer-social { margin: 0; }
footer .footer-social .list-inline-item { margin-left: 0; margin-right: 18px; }
footer .footer-social .list-inline-item:last-child { margin-right: 0; }
footer .footer-social a {
  font-size: 20px;
  line-height: 1;
  color: #B5B5B5;
  transition: color 0.2s ease, transform 0.2s ease;
}
footer .footer-social a:hover {
  color: var(--lux-gold);
  transform: translateY(-2px);
}
@media (max-width: 575px) {
  footer .footer-social { margin-top: 12px; }
}

/* ---------- Responsive fine-tuning (keep mobile layout intact) ---------- */
@media (max-width: 767px) {
  header { padding: 16px 0 8px; }
  #search { margin-bottom: 8px; }
}

/* =====================================================================
   首页 Banner 全屏显示（Homepage fullscreen banner）
   仅作用于首页（#common-home 只出现在 home.twig），
   让 banner 轮播突破 .container 宽度、铺满整个视口（宽 100vw、高 100dvh），
   图片按等比裁剪铺满（object-fit: cover），不拉伸变形。
   ===================================================================== */
/* 100vw 会包含滚动条宽度，避免产生横向滚动条 */
html, body { overflow-x: hidden; }

/* 让 #content 成为定位参照，方便居中突破容器 */
#common-home #content {
  position: relative;
  width: 100%;
  max-width: 100%;
}

/* 轮播整体：全宽 + 全屏高 */
#common-home #carousel-banner-0 {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: var(--lux-ink);
}

/* 轮播各层都铺满高度 */
#common-home #carousel-banner-0 .carousel-inner,
#common-home #carousel-banner-0 .carousel-item {
  height: 100%;
}
#common-home #carousel-banner-0 .carousel-item .row {
  height: 100%;
}
#common-home #carousel-banner-0 .carousel-item .col-12 {
  position: relative;
  height: 100%;
  padding: 0;
  text-align: left;
}
/* 链接容器与图片都绝对定位铺满，保证带/不带链接两种情况一致 */
#common-home #carousel-banner-0 .carousel-item .col-12 a {
  position: absolute;
  inset: 0;
  display: block;
}
#common-home #carousel-banner-0 .carousel-item .col-12 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  line-height: 0;
}

/* 指示器 / 箭头保持在图片上层 */
#common-home #carousel-banner-0 .carousel-indicators {
  margin-bottom: 1.25rem;
  z-index: 5;
}
#common-home #carousel-banner-0 .carousel-indicators [data-bs-target] {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.45);
}
#common-home #carousel-banner-0 .carousel-indicators .active {
  background-color: var(--lux-gold);
}
#common-home #carousel-banner-0 .carousel-control-prev,
#common-home #carousel-banner-0 .carousel-control-next {
  z-index: 5;
  width: 8%;
  opacity: 0.5;
}
#common-home #carousel-banner-0 .carousel-control-prev:hover,
#common-home #carousel-banner-0 .carousel-control-next:hover {
  opacity: 1;
}

/* 小屏：仍是全屏，但按设备视口高度自适应，避免过高 */
@media (max-width: 767px) {
  #common-home #carousel-banner-0 {
    height: 80vh;
    height: 80dvh;
  }
}
