@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');

/* =====================================================================
   POUCH MART — blue e-commerce theme — custom overrides (stylesheet-custom.css)
   Loaded after stylesheet.css so these rules win the cascade.
   Palette: bg #FFFFFF · blue #1B2F9E · dark-blue #14247A · ink #1A1A1A · border #E5E5E5
   ===================================================================== */

:root {
  --lux-bg: #FFFFFF;
  --lux-primary: #1B2F9E;
  --lux-primary-dark: #14247A;
  --lux-ink: #1A1A1A;
  --lux-muted: #666666;
  --lux-border: #E5E5E5;
  --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: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

a { color: var(--lux-primary-dark); }
a:hover { color: var(--lux-ink); }

legend {
  color: var(--lux-ink);
  font-family: 'Jost', Arial, sans-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-primary);
  box-shadow: 0 0 0 0.15rem rgba(27, 47, 158, 0.15);
}

/* ---------- Top utility bar (black, matching header screenshot) ---------- */
#top {
  background-color: #1B2F9E;
  border-top: none;
  border-bottom: none;
  color: #FFFFFF;
  padding: 12px 0;
  margin: 0;
  min-height: 0;
  border-radius: 0 0 18px 18px;
}
#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: #C7D2FE; }
/* Brand tagline in top bar */
#top .brand-tagline {
  color: #C7D2FE;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-right: 18px;
}

/* ---------- Header (white, dark text, blue accents) ---------- */
header {
  background-color: #FFFFFF;
  padding: 14px 0;
}
header .row { align-items: center; }
header h1 a { color: #1B2F9E; }
#logo { margin: 0; }
#logo img { max-width: none; width: auto; height: 56px; }

/* ---------- 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-primary);
  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 #E5E5E5;
  border-radius: 0;
  background-color: #FFFFFF;
  color: #1A1A1A;
}
#search .form-control-lg::placeholder { color: #999999; }
#search .form-control-lg:focus {
  border-color: var(--lux-primary);
  box-shadow: 0 0 0 0.15rem rgba(27, 47, 158, 0.12);
}
#search .btn-lg {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: none;
  border-radius: 0;
  color: #FFFFFF;
  background-color: var(--lux-primary);
  border-color: var(--lux-primary);
}
#search .btn-lg:hover {
  color: #fff;
  background-color: var(--lux-primary-dark);
  border-color: var(--lux-primary-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-primary);
  border-color: var(--lux-primary);
  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 (blue bar, white items, light-blue hover) ---------- */
/* bg-primary utility uses !important, so we match it to restyle the bar */
#menu {
  background-color: transparent !important;
  background-image: none !important;
  border: none;
  border-bottom: none;
  border-radius: 0;
  min-height: 0;
  position: relative;
}
/* 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: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 600;
  text-shadow: none;
}
#menu .navbar-nav > li > a {
  color: #1A1A1A;
  text-shadow: none;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
  background-color: transparent;
}
#menu .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 2px;
  height: 2px;
  background-color: var(--lux-primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .3s ease;
}
#menu .navbar-nav > li > a:hover {
  background-color: transparent;
  color: var(--lux-primary);
}
#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-primary-dark);
  background-image: none;
  background-color: var(--lux-bg);
}
#menu .see-all {
  border-top: 1px solid var(--lux-border);
  color: var(--lux-primary-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-primary);
  background-image: none;
  border-color: var(--lux-primary);
  color: #FFFFFF;
}
#menu .navbar-toggler i { color: #FFFFFF; border-color: #FFFFFF; }
@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-primary-dark); border: none; }
}

/* ---------- Buttons (restrained, no gradient / no text-shadow) ---------- */
.btn-primary {
  background-image: none;
  background-color: var(--lux-primary);
  border-color: var(--lux-primary);
  color: #FFFFFF;
  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-primary-dark);
  border-color: var(--lux-primary-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-primary);
  color: var(--lux-primary-dark);
}
.btn-warning {
  background-image: none;
  background-color: var(--lux-primary);
  border-color: var(--lux-primary);
  color: #FFFFFF;
  text-shadow: none;
  border-radius: 2px;
}
.btn-warning:hover {
  background-color: var(--lux-primary-dark);
  border-color: var(--lux-primary-dark);
  color: #fff;
}
.btn-link { color: var(--lux-primary-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: 'Jost', Arial, sans-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-primary-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 ---------- */

/* 商品卡片缩略图：固定 1:1 方形容器 + object-fit:cover 铺满并裁掉白边/多余留白，
   保持原图比例不变形（cover 是等比裁剪、不是拉伸）；分类/列表/搜索/特价/相关页，
   以及 Featured/Latest/Special/Bestseller 等模块均复用 product/thumb.twig，一并生效 */
.product-thumb .image {
  aspect-ratio: 1 / 1;
  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;
}

/* 商品详情页主图铺满列宽，并去掉 img-thumbnail 自带的白框（边框+内边距+白底+圆角） */
#product-info .image > a > img {
  width: 100%;
  height: auto;
  max-width: 100%;
  padding: 0;
  border: none;
  background-color: transparent;
  border-radius: 0;
}

/* 手机端适配：Bootstrap 的 .row > .col / .col-sm 是 flex 项，默认 min-width:auto，
   600px 的主图会把整列撑到 600px，导致页面横向溢出、大图两侧被裁掉。
   允许列收缩到可视宽度即可。 */
#product-info .row > [class*="col"] {
  min-width: 0;
}
#product-info .image,
#product-info .image > a {
  max-width: 100%;
}
#product-info .image > a {
  display: block;
}
/* 图片区统一兜底：任何图都不超过容器宽度（防止个别浏览器把页面撑宽） */
#product-info .image img {
  max-width: 100%;
  height: auto;
}

/* 缩微图（图集小图）：宽度固定 100px、自动换行、间距统一。
   原来用 &nbsp; 分隔，手机上既不换行也不等比，现改为 flex 布局。 */
#product-info .image .product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
#product-info .image .product-thumbnails a {
  display: block;
  max-width: 100%;
}
#product-info .image .product-thumbnails img {
  width: 100px;
  height: 100px;
  padding: 4px;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  background-color: #FFFFFF;
  object-fit: contain;
}

/* 手机端：主图按屏幕宽度缩放，过高的图限高，避免一屏只能看到图 */
@media (max-width: 575.98px) {
  #product-info .image > a > img {
    width: auto;
    max-width: 100%;
    max-height: 70vh;
  }
}

/* ---------- 商品详情页：Qty 标签 + 输入框同一行，输入框固定 60px ---------- */
.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.qty-row > .form-label {
  margin-bottom: 0;
  white-space: nowrap;
}
.qty-row #input-quantity {
  flex: 0 0 60px;
  width: 60px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

/* ---------- 商品详情页：Add to cart 白色按钮（白底 + 品牌红描边/文字，hover 反色） ---------- */
#button-cart.btn-primary {
  background-image: none;
  background-color: #FFFFFF;
  border: 1px solid var(--lux-primary);
  color: var(--lux-primary);
  font-weight: 500;
}
#button-cart.btn-primary:hover,
#button-cart.btn-primary:focus,
#button-cart.btn-primary:active,
#button-cart.btn-primary.active,
#button-cart.btn-primary:disabled,
#button-cart.btn-primary.disabled {
  background-color: var(--lux-primary);
  border-color: var(--lux-primary);
  color: #FFFFFF;
}

/* ---------- Price & rating ---------- */
.price { color: var(--lux-ink); font-family: 'Jost', Arial, sans-serif; }
.price-new { font-weight: 600; color: var(--lux-primary-dark); }
.price-old { color: #999; }
.price-tax { color: #999; }
.rating .fa-star, .rating .fa-star + .fa-star { color: var(--lux-primary); }

/* ---------- Product attribute labels (Specification values as chips) ----------
   商品详情页：把 Specification 里的属性（Strength / Flavour / Type …）提取出来，
   在商品标题下方以 label 形式展示，无需切换标签页即可看到关键属性。 */
.product-attribute-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}
.product-attribute-labels .product-attribute-label {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--lux-border);
  border-radius: 2px;
  background-color: var(--lux-surface);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  overflow: hidden;
}
.product-attribute-labels .product-attribute-label-name {
  padding: 6px 10px;
  background-color: #FAFAFA;
  border-right: 1px solid var(--lux-border);
  color: var(--lux-muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.product-attribute-labels .product-attribute-label-value {
  padding: 6px 12px;
  color: var(--lux-ink);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}
@media (max-width: 575px) {
  .product-attribute-labels { gap: 6px; margin: 10px 0 14px; }
  .product-attribute-labels .product-attribute-label { font-size: 12px; }
  .product-attribute-labels .product-attribute-label-value { padding: 5px 10px; }
}

/* ---------- 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-primary-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-primary);
  border-color: var(--lux-primary);
  color: #FFFFFF;
}
.pagination .page-link:hover {
  color: var(--lux-primary-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-primary-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-primary-dark); }

/* ---------- Category sidebar (column-left): unify colors with the blue theme ----------
   Bootstrap's default .list-group-item.active is teal (#229ac8) which clashes with the
   blue palette used across the site. Restyle the category list so the active item and
   the sub-category rows share one consistent color scheme. */
#column-left .list-group {
  border: 1px solid var(--lux-border);
  border-radius: 4px;
  overflow: hidden;
}
#column-left .list-group-item {
  background-color: #FFFFFF;
  border-color: var(--lux-border);
  color: var(--lux-ink);
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  padding: 12px 16px;
  transition: background-color 0.2s ease, color 0.2s ease;
}
#column-left .list-group-item:hover {
  background-color: #E8ECF9;
  color: var(--lux-primary-dark);
}
#column-left .list-group-item.active {
  background-color: var(--lux-primary);
  border-color: var(--lux-primary);
  color: #FFFFFF;
  font-weight: 600;
}

/* ---------- Footer (white, matching header, blue accents) ---------- */
footer {
  background-color: #1A1A1A;
  border-top: 3px solid var(--lux-primary);
  color: #9A9A9A;
}
/* Centered brand line above the powered-by row */
footer .footer-brand {
  text-align: center;
  color: var(--lux-primary);
  font-family: 'Jost', Arial, sans-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-primary);
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 14px;
}
footer a { color: #B5B5B5; }
footer a:hover { color: var(--lux-primary); }
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-primary);
  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; }
}

/* ===== POUCH MART — blue e-commerce header (overrides the header above) ===== */
#top {
  background-color: #1B2F9E;
  border-top: none;
  border-bottom: none;
  color: #fff;
  padding: 12px 0;
  margin: 0;
  min-height: 0;
  border-radius: 0 0 18px 18px;
}
#top .topbar-inner { display: flex; align-items: center; justify-content: center; position: relative; }
#top .topbar-left { position: absolute; left: 0; }
#top .topbar-left a { color: #fff; font-size: 20px; line-height: 1; }
#top .topbar-left a:hover { color: #fff; opacity: 0.85; }
#top .topbar-center { color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 15px; display: flex; align-items: center; gap: 10px; }
#top .topbar-center i { font-size: 18px; }
/* 语言切换（仅安装了 2 种以上语言时 common/language.twig 才会输出） */
#top .topbar-right { position: absolute; right: 0; display: flex; align-items: center; }
#top .topbar-right .dropdown-toggle { color: #fff; cursor: pointer; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
#top .topbar-right .dropdown-toggle img { width: 18px; height: auto; }
#top .topbar-right .dropdown-menu { font-size: 13px; }
#top .topbar-right .dropdown-item img { width: 18px; margin-right: 6px; }
@media (max-width: 767px) {
  #top .topbar-right { position: static; margin-left: 10px; }
  #top .topbar-right .dropdown-toggle span { display: none; }
}

header { background-color: #FFFFFF; padding: 14px 0; border-bottom: 1px solid #eee; }
header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header h1 a { color: #1B2F9E; }
#logo { margin: 0; flex-shrink: 0; }
#logo img { height: 56px; width: auto; max-width: none; }
#logo h1 { margin: 0; }
#logo h1 a { font-family: 'Jost', Arial, sans-serif; font-weight: 700; font-size: 26px; letter-spacing: 0.02em; text-transform: uppercase; }

#menu.header-menu { flex: 1 1 auto; display: flex; justify-content: center; }
#menu.header-menu .navbar-nav { display: flex; flex-direction: row; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 30px; flex: 1 1 0%; }
#menu.header-menu .nav-item { position: relative; }
#menu.header-menu .nav-link { color: #1A1A1A; font-family: 'Jost', Arial, sans-serif; font-size: 16px; font-weight: 500; padding: 8px 2px; transition: color 0.2s ease; }
#menu.header-menu .nav-link:hover { color: #1B2F9E; }
#menu.header-menu .nav-item.dropdown .dropdown-toggle::after { display: none; }
#menu.header-menu .dropdown-menu { position: absolute; top: 100%; left: 0; border: none; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); padding: 8px 0; margin-top: 8px; }
#menu.header-menu .dropdown-menu .nav-link { white-space: nowrap; padding: 8px 20px; font-size: 14px; }
#menu.header-menu .dropdown-menu .nav-link:hover { background-color: #E8ECF9; color: #1B2F9E; }
#menu.header-menu .dropdown-inner { display: flex; }
#menu.header-menu .dropdown-inner ul { list-style: none; margin: 0; padding: 0; }
#menu.header-menu .see-all { display: block; padding: 8px 20px; border-top: 1px solid #eee; margin-top: 6px; color: #1B2F9E; font-weight: 600; font-size: 13px; }

.header-icons { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.header-icon { color: #1A1A1A; font-size: 20px; line-height: 1; transition: color 0.2s ease; }
.header-icon:hover { color: #1B2F9E; }

.header-cart-wrap { position: relative; }
.header-cart-wrap .dropdown { display: block; }
.header-cart-wrap .btn { background: transparent; border: none; box-shadow: none; color: #1A1A1A; font-size: 20px; padding: 0; line-height: 1; width: auto; display: inline-block; }
.header-cart-wrap .btn:hover { color: #1B2F9E; }
.header-cart-wrap .btn .dropdown-toggle::after { display: none; }
.header-cart-wrap .btn i { font-size: 20px; }
.header-cart-wrap .btn > *:not(i) { display: none; }
.header-cart-wrap .dropdown-menu { border: none; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); margin-top: 10px; min-width: 320px; }

@media (max-width: 991px) {
  #top .topbar-center { font-size: 12px; letter-spacing: 0.03em; }
  header .header-inner { flex-wrap: wrap; gap: 12px; }
  #menu.header-menu { order: 3; flex-basis: 100%; justify-content: flex-start; }
  #menu.header-menu .navbar-nav { justify-content: flex-start; gap: 4px 18px; }
  .header-icons { margin-left: auto; }
}
@media (max-width: 575px) {
  #top { border-radius: 0; }
  #top .topbar-center { font-size: 11px; }
  #logo img { height: 44px; }
  .header-icons { gap: 16px; }
}
/* ===== Footer — matching the supplier header (white strip + blue nav) ===== */
footer {
  background-color: #FFFFFF;
  background-image: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 42%, #F7F7F7 72%, #ECECEC 100%);
  border-top: 1px solid #EEEEEE;
  color: #1A1A1A;
  padding: 50px 0 0;
}
footer a { color: #333333; }
footer a:hover { color: #1B2F9E; }
footer .footer-top { padding-bottom: 40px; }
footer .footer-col h5 {
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 20px;
}
footer .footer-col ul { list-style: none; padding: 0; margin: 0; }
footer .footer-col ul li { margin-bottom: 12px; }
footer .footer-col ul li a {
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
footer .footer-col ul li a:hover {
  color: #1B2F9E;
  padding-left: 6px;
}
footer .footer-contact {
  border-left: 1px solid #E5E5E5;
  padding-left: 30px;
}
footer .footer-contact ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
footer .footer-contact ul li i {
  flex: 0 0 20px;
  width: 20px;
  color: #1B2F9E;
  font-size: 17px;
  line-height: 1.6;
  text-align: center;
}
footer .footer-contact ul li a,
footer .footer-contact ul li span {
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
}
footer .footer-contact ul li a:hover {
  color: #1B2F9E;
  padding-left: 0;
}
footer .footer-newsletter { border-left: 1px solid #E5E5E5; padding-left: 30px; }
footer .footer-newsletter h3 {
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1.3;
  margin: 0 0 24px;
}
footer .newsletter-input {
  display: flex;
  align-items: center;
  background: #F5F5F5;
  border-radius: 40px;
  padding: 6px 6px 6px 20px;
}
footer .newsletter-input input {
  flex: 1 1 auto;
  background: transparent;
  border: none;
  outline: none;
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  padding: 8px 0;
}
footer .newsletter-input input::placeholder { color: #8A8A8A; }
footer .newsletter-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1B2F9E;
  color: #FFFFFF;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
footer .newsletter-btn:hover { transform: scale(1.05); background: #14247A; }
footer .newsletter-form p {
  color: #666666;
  font-size: 14px;
  margin-top: 16px;
}
footer .footer-bottom {
  background: #1B2F9E;
  padding: 18px 0;
}
footer .footer-copy {
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
}
footer .footer-pay {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}
footer .pay-item {
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  padding: 5px 10px;
  border-radius: 4px;
}
footer .footer-pay img {
  height: 28px;
  width: auto;
  border-radius: 4px;
}
@media (max-width: 991px) {
  footer .footer-newsletter { border-left: none; padding-left: 0; margin-top: 30px; border-top: 1px solid #E5E5E5; padding-top: 30px; }
  footer .footer-contact { border-left: none; padding-left: 0; margin-top: 30px; border-top: 1px solid #E5E5E5; padding-top: 30px; }
  footer .footer-pay { justify-content: flex-start; }
}
/* ===== Breadcrumb: hide the trailing arrow on the last item ===== */
.breadcrumb > li.breadcrumb-item:last-child:after {
  display: none;
}

/* =====================================================================
   Collections landing page (Shopify-style grid of brand tiles + shop-by)
   ===================================================================== */
#collections-page { padding: 40px 0 60px; }

.collections-header { margin-bottom: 30px; }
.collections-title {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  font-size: 42px;
  line-height: 1.1;
  color: #1A1A1A;
  margin: 0;
  letter-spacing: 0.01em;
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.collection-tile { display: block; text-decoration: none; }
.collection-tile-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #F5F5F5;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.collection-tile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}
.collection-tile:hover .collection-tile-image img { transform: scale(1.04); }
.collection-tile-placeholder {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 0.02em;
  color: #1A1A1A;
  text-transform: uppercase;
  text-align: center;
  padding: 0 12px;
}
.collection-tile-name {
  margin-top: 14px;
  text-align: center;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #1A1A1A;
}
.collection-tile:hover .collection-tile-name { color: #1B2F9E; }

.collections-shopby {
  margin-top: 50px;
  border-top: 1px solid #E5E5E5;
  padding-top: 30px;
}
.shopby-section { margin-bottom: 26px; }
.shopby-title {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888888;
  margin: 0 0 12px;
}
.shopby-links { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.shopby-links a {
  color: #1A1A1A;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  transition: color 0.2s ease;
}
.shopby-links a:hover { color: #1B2F9E; }
.shopby-note {
  margin-top: 8px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  color: #888888;
}

@media (max-width: 991px) {
  .collections-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .collections-title { font-size: 34px; }
}
@media (max-width: 767px) {
  .collections-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .collection-tile-placeholder { font-size: 22px; }
  .collection-tile-name { font-size: 14px; margin-top: 10px; }
}
@media (max-width: 480px) {
  .collections-title { font-size: 28px; }
  .shopby-links { gap: 8px 18px; }
}

/* =====================================================================
   Home hero banner — full-width, inserted in common/home.twig between
   the header and #common-home.
   - If a banner is uploaded in Admin > Design > Banners (status: enabled)
     it renders as a full-width image/carousel.
   - Otherwise a dark "premium" text hero (.home-hero-dark) is shown.
   ===================================================================== */
.home-hero {
  position: relative;
  overflow: hidden;
  line-height: 0; /* remove inline gap under the full-width image */
}
.home-hero .carousel {
  line-height: normal;
}
/* IMPORTANT: never set `display` on every .carousel-item here.
   Bootstrap hides the inactive slides with `.carousel-item { display: none }`
   and only shows `.active` / `-next` / `-prev`. An unscoped
   `.home-hero .carousel-item { display: flex }` has the same specificity as
   `.carousel-item.active` but is loaded later, so *all* slides stayed visible
   and stacked on top of each other (float:left + margin-right:-100%) — the
   last one painted over the active one, which made the carousel look like it
   jumped back after clicking prev/next. Scope it to the slides Bootstrap
   actually shows. */
.home-hero .carousel-item.active,
.home-hero .carousel-item-next,
.home-hero .carousel-item-prev {
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Keep the <a> wrapper full width so the image always fills the slide
   (a plain <a> is a shrink-to-fit flex item). */
.home-hero .carousel-item > a {
  display: block;
  width: 100%;
}
.home-hero .carousel-item img,
.home-hero .carousel-item a img {
  width: 100%;
  height: auto;
  display: block;
}
/* Fallback text hero (shown only when no banner is enabled) */
.home-hero-dark {
  position: relative;
  background-color: #1A1A1A;
  overflow: hidden;
  padding: 80px 0;
  line-height: normal;
}
.home-hero-dark::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(27, 47, 158, 0.35) 0%, rgba(27, 47, 158, 0) 70%);
  pointer-events: none;
}
.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.home-hero-kicker {
  display: inline-block;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8FA6FF;
  margin-bottom: 18px;
}
.home-hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  font-size: 54px;
  line-height: 1.1;
  color: #FFFFFF;
  margin: 0 0 18px;
}
.home-hero-sub {
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: #CFCFCF;
  margin: 0 0 30px;
}
.home-hero-cta {
  display: inline-block;
  background-color: #1B2F9E;
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 2px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.home-hero-cta:hover,
.home-hero-cta:focus {
  background-color: #14247A;
  color: #FFFFFF;
  transform: translateY(-2px);
}
@media (max-width: 767px) {
  .home-hero-dark { padding: 50px 0; }
  .home-hero-title { font-size: 38px; }
  .home-hero-sub { font-size: 16px; }
}
@media (max-width: 480px) {
  .home-hero-dark { padding: 40px 0; }
  .home-hero-title { font-size: 30px; }
}

/* =====================================================================
   SUPPLIER HEADER (Alibaba storefront style)
   Replaces the old promo bar + single white header row with:
   - a white company strip: logo / store name / years + location /
     main categories / "Contact supplier" + "Chat now" buttons
   - a deep blue navigation bar: Home / Products / Company profile,
     the "search in this store" box and account / cart / contact icons
   ===================================================================== */
header.site-header {
  background: none;
  border: 0;
  padding: 0;
}

/* ---------- Company strip ---------- */
.supplier-strip {
  background-color: #FFFFFF;
  background-image: linear-gradient(100deg, #FFFFFF 0%, #FFFFFF 42%, #F7F7F7 72%, #ECECEC 100%);
  border-bottom: 1px solid #EEEEEE;
}
.supplier-strip-inner {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 36px 0;
}
.supplier-brand {
  flex: 0 0 auto;
  width: 150px;
  margin: 0;
  text-align: center;
}
#logo.supplier-brand img {
  height: 120px;
  width: auto;
  max-width: 100%;
}
#logo.supplier-brand h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
#logo.supplier-brand h1 a {
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.supplier-details {
  flex: 1 1 auto;
  min-width: 0;
}
.supplier-name { display: inline-block; }
.supplier-name-toggle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.005em;
  text-decoration: none;
}
.supplier-name-toggle:hover,
.supplier-name-toggle:focus { color: #1A1A1A; }
.supplier-name-toggle i {
  font-size: 18px;
  color: #4A4A4A;
  transition: transform 0.2s ease;
}
.supplier-name.show .supplier-name-toggle i { transform: rotate(180deg); }
.supplier-name .dropdown-menu {
  min-width: 240px;
  margin-top: 10px;
  padding: 8px 0;
  border: none;
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}
.supplier-name .dropdown-item {
  padding: 9px 22px;
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
}
.supplier-name .dropdown-item:hover,
.supplier-name .dropdown-item:focus {
  background-color: #EEF2FF;
  color: #1B2F9E;
}

.supplier-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #1A1A1A;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
.supplier-sep { color: #1A1A1A; }
.supplier-categories {
  margin-top: 14px;
  max-width: 1000px;
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}


/* ---------- Contact buttons + language switcher ---------- */
.supplier-actions {
  flex: 0 0 auto;
  width: 300px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.supplier-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.supplier-btn-solid {
  background-color: #1B2F9E;
  border: 1px solid #1B2F9E;
  color: #FFFFFF;
}
.supplier-btn-solid:hover,
.supplier-btn-solid:focus {
  background-color: #14247A;
  border-color: #14247A;
  color: #FFFFFF;
}
.supplier-btn-outline {
  background-color: #FFFFFF;
  border: 1px solid #1B2F9E;
  color: #1B2F9E;
}
.supplier-btn-outline:hover,
.supplier-btn-outline:focus {
  background-color: #EEF2FF;
  border-color: #14247A;
  color: #14247A;
}

.supplier-language { display: flex; justify-content: flex-end; }
.supplier-language .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6B6B6B;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}
.supplier-language .dropdown-toggle:hover { color: #1B2F9E; }
.supplier-language .dropdown-toggle img { width: 18px; height: auto; }
.supplier-language .dropdown-menu {
  right: 0;
  left: auto;
  min-width: 160px;
  font-size: 13px;
}
.supplier-language .dropdown-item img { width: 18px; margin-right: 6px; }

/* ---------- Blue navigation bar ---------- */
.supplier-nav { background-color: #1B2F9E; }
.supplier-nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 64px;
}

#menu.header-menu {
  flex: 0 1 auto;
  justify-content: flex-start;
}
#menu.header-menu .navbar-nav {
  flex: 0 1 auto;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 52px;
}
#menu.header-menu .nav-item { position: relative; }
#menu.header-menu .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 17px 0;
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
#menu.header-menu .nav-link:hover,
#menu.header-menu .nav-link:focus {
  background-color: transparent;
  color: #C7D2FE;
}
#menu.header-menu .navbar-nav > li > a::after { display: none; }
#menu.header-menu .nav-link i { font-size: 13px; }
#menu.header-menu .dropdown-toggle::after { display: none; }
#menu.header-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  max-height: 70vh;
  overflow-y: auto;
  margin-top: 0;
  padding: 10px 0;
  border: none;
  border-radius: 0 0 6px 6px;
  background-color: #FFFFFF;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}
#menu.header-menu .dropdown-inner { display: block; }
#menu.header-menu .dropdown-inner ul {
  display: block;
  margin: 0;
  padding: 0;
  list-style: none;
}
#menu.header-menu .dropdown-menu .nav-link {
  display: block;
  padding: 9px 22px;
  color: #1A1A1A;
  font-size: 15px;
  font-weight: 400;
  white-space: normal;
}
#menu.header-menu .dropdown-menu .nav-link:hover,
#menu.header-menu .dropdown-menu .nav-link:focus {
  background-color: #EEF2FF;
  color: #1B2F9E;
}
#menu.header-menu .supplier-sub-link { padding-left: 40px; font-size: 14px; color: #4A4A4A; }
#menu.header-menu .see-all {
  display: block;
  margin-top: 6px;
  padding: 10px 22px;
  border-top: 1px solid #EEEEEE;
  color: #1B2F9E;
  font-size: 14px;
  font-weight: 600;
}
#menu.header-menu .see-all:hover,
#menu.header-menu .see-all:focus {
  background-color: #EEF2FF;
  color: #14247A;
}


/* ---------- Search box inside the blue bar ---------- */
.supplier-nav-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-left: auto;
  flex: 1 1 auto;
}
.supplier-nav-tools #search {
  flex: 0 1 380px;
  width: 380px;
  max-width: 100%;
  margin: 0 !important;
}
.supplier-nav-tools #search .form-control-lg {
  height: 44px;
  min-height: 44px;
  padding: 0 24px;
  border: none;
  border-radius: 999px 0 0 999px;
  background-color: #FFFFFF;
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  box-shadow: none;
}
.supplier-nav-tools #search .form-control-lg::placeholder { color: #8A8A8A; }
.supplier-nav-tools #search .form-control-lg:focus { border: none; box-shadow: none; }
.supplier-nav-tools #search .btn-lg {
  width: 64px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 0 999px 999px 0;
  background-color: #FFFFFF;
  background-image: none;
  color: #6B6B6B;
  font-size: 18px;
  text-shadow: none;
}
.supplier-nav-tools #search .btn-lg:hover,
.supplier-nav-tools #search .btn-lg:focus {
  background-color: #FFFFFF;
  color: #1B2F9E;
}

/* ---------- Account / cart / contact shortcuts ---------- */
.supplier-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.supplier-tool:hover,
.supplier-tool:focus { color: #C7D2FE; }
.supplier-tool-mail {
  position: relative;
  width: 56px;
  height: 46px;
  border-radius: 4px;
  background-color: #FFFFFF;
  color: #1B2F9E;
}
.supplier-tool-mail:hover,
.supplier-tool-mail:focus { background-color: #F3F6FF; color: #14247A; }
.supplier-tool-mail::after {
  content: "";
  position: absolute;
  top: 6px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #1B2F9E;
}

.supplier-cart { position: relative; }
.supplier-cart > .dropdown { display: flex; }
.supplier-cart .btn {
  width: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  background-image: none;
  box-shadow: none;
  color: #FFFFFF;
  font-size: 0; /* hide the "0 item(s) - $0.00" label, icon only */
  line-height: 1;
}
.supplier-cart .btn:hover,
.supplier-cart .btn:focus { background: transparent; color: #C7D2FE; }
.supplier-cart .btn::after { display: none; }
.supplier-cart .btn i { font-size: 20px; }
.supplier-cart .dropdown-menu {
  min-width: 340px;
  max-width: calc(100vw - 32px);
  margin-top: 14px;
  border: none;
  border-radius: 6px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .supplier-strip-inner { gap: 30px; }
  .supplier-brand { width: 130px; }
  #logo.supplier-brand img { height: 96px; }
  .supplier-name-toggle { font-size: 28px; }
  .supplier-meta { font-size: 17px; }
  .supplier-categories { font-size: 15px; }
  .supplier-actions { width: 260px; }
  .supplier-btn { height: 44px; font-size: 16px; }
  .supplier-nav-inner { gap: 18px; }
  #menu.header-menu .navbar-nav { gap: 4px 30px; }
  #menu.header-menu .nav-link { font-size: 17px; }
  .supplier-nav-tools { gap: 14px; }
  .supplier-nav-tools #search { flex-basis: 280px; width: 280px; }
}
@media (max-width: 991.98px) {
  .supplier-strip-inner { flex-wrap: wrap; gap: 22px; padding: 24px 0; }
  .supplier-brand { width: 110px; }
  #logo.supplier-brand img { height: 84px; }
  .supplier-details { flex: 1 1 300px; }
  .supplier-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .supplier-language { grid-column: 1 / -1; justify-content: flex-start; }
  .supplier-nav-inner {
    flex-wrap: wrap;
    gap: 6px 18px;
    min-height: 0;
    padding: 6px 0 12px;
  }
  #menu.header-menu { flex: 1 1 100%; order: 1; }
  #menu.header-menu .navbar-nav { gap: 2px 26px; }
  #menu.header-menu .nav-link { padding: 12px 0; }
  #menu.header-menu .nav-item:last-child .dropdown-menu { left: auto; right: 0; max-width: calc(100vw - 24px); }
  .supplier-language .dropdown-menu { left: 0; right: auto; }
  .supplier-nav-tools { order: 2; flex: 1 1 100%; justify-content: flex-start; }
  .supplier-nav-tools #search { flex: 1 1 auto; width: auto; }
}
@media (max-width: 575.98px) {
  .supplier-strip-inner { gap: 16px; padding: 18px 0; }
  .supplier-brand { width: 84px; }
  #logo.supplier-brand img { height: 64px; }
  #logo.supplier-brand h1 { font-size: 18px; }
  .supplier-name-toggle { font-size: 21px; gap: 8px; }
  .supplier-name-toggle i { font-size: 13px; }
  .supplier-meta { margin-top: 8px; gap: 8px; font-size: 14px; }
  .supplier-categories { margin-top: 8px; font-size: 13px; }
  .supplier-btn { height: 42px; padding: 0 16px; font-size: 15px; }
  #menu.header-menu .navbar-nav { gap: 2px 20px; }
  #menu.header-menu .nav-link { padding: 10px 0; font-size: 16px; }
  .supplier-tool { font-size: 18px; }
  .supplier-tool-mail { width: 48px; height: 42px; }
  /* keep the cart dropdown inside a narrow viewport (Popper right-aligns it) */
  .supplier-cart .dropdown-menu {
    width: calc(100vw - 68px);
    min-width: 0;
    max-width: none;
  }
  .supplier-nav-tools #search .form-control-lg,
  .supplier-nav-tools #search .btn-lg { height: 40px; }
  .supplier-nav-tools #search .form-control-lg { min-height: 40px; }
}


/* =====================================================================
   HOME LANDING SECTIONS (Alibaba storefront style)
   - Hot Products: 3 column product wall with "Shop Now" buttons
   - About Us: company video + grey text panel
   - Our Advantage: 5 icon blocks on a glass building background
   - Top Picks: dark heading bar + video style product cards
   - Factory strip: blue intro text + white stat pills
   ===================================================================== */

/* ---------- Shared section heading (ghost text + solid title) ---------- */
.home-section-heading {
  position: relative;
  margin: 0 0 36px;
  padding-top: 46px;
  text-align: center;
}
.home-section-ghost {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #EDEDED;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 66px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.home-section-heading h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #2C2C2C;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.home-section-ornament {
  position: relative;
  display: block;
  width: 200px;
  height: 8px;
  margin: 16px auto 0;
  border-top: 2px solid #CFCFCF;
}
.home-section-ornament::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border: 2px solid #B9B9B9;
  background-color: #FFFFFF;
  transform: rotate(45deg);
}

/* ---------- Hot Products ---------- */
.home-hot {
  padding: 54px 0 44px;
  background-color: #FFFFFF;
}
.home-hot-grid {
  max-width: 1040px;
  margin: 0 auto;
}
.home-hot-card {
  height: 100%;
  padding: 10px 10px 18px;
  border: 1px solid #DEDEDE;
  background-color: #FFFFFF;
  text-align: center;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.home-hot-card:hover {
  border-color: #C6C6E4;
  box-shadow: 0 12px 28px rgba(30, 30, 60, 0.08);
}
.home-hot-image {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background-color: #FFFFFF;
  overflow: hidden;
}
.home-hot-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.home-hot-card:hover .home-hot-image img { transform: scale(1.05); }
.home-hot-card h3 {
  min-height: 42px;
  margin: 8px 6px 12px;
  color: #4A5C8C;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.home-hot-card h3 a { color: #4A5C8C; }
.home-hot-card h3 a:hover { color: #2F3F73; }
.home-hot-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border: 1px solid #CBC3E8;
  border-radius: 2px;
  background-color: #FFFFFF;
  color: #4B3F86;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.home-hot-btn:hover {
  background-color: #F4F1FD;
  border-color: #A99CD8;
  color: #3B3070;
}
.home-hot-btn i { font-size: 12px; }

/* ---------- About Us ---------- */
.home-about {
  padding: 16px 0 56px;
  background-color: #FFFFFF;
}
.home-about-inner {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}
.home-about-video {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  background-color: #000000;
  overflow: hidden;
}
.home-about-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.home-about-play i { margin-left: 4px; }
a.home-about-play:hover {
  transform: scale(1.08);
  background-color: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
}
.home-about-text {
  display: flex;
  flex-direction: column;
  padding: 26px 26px 24px;
  background-color: #F4F4F4;
}
.home-about-text h2 {
  margin: 0 0 16px;
  color: #2F2F2F;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.home-about-text p {
  margin: 0 0 14px;
  color: #555555;
  font-size: 13px;
  line-height: 1.7;
}
.home-about-text hr {
  margin: 4px 0 16px;
  border-top: 1px solid #DCDCDC;
  opacity: 1;
}
.home-about-btn {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 2px;
  background-color: #6B4FB6;
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.home-about-btn:hover { background-color: #5A41A0; color: #FFFFFF; }


/* ---------- Our Advantage (glass building background) ---------- */
.home-advantage {
  position: relative;
  padding: 40px 0 54px;
  background: url('../image/home/advantage-bg.svg') center center / cover no-repeat, #DBEAF7;
  overflow: hidden;
}
.home-section-heading-image { margin-bottom: 30px; padding-top: 26px; }
.home-section-heading-image .home-section-ghost { color: rgba(255, 255, 255, 0.85); }
.home-section-heading-image h2 { color: #3A3A3A; }
.home-section-heading-image .home-section-ornament { border-top-color: rgba(58, 58, 58, 0.35); }
.home-section-heading-image .home-section-ornament::after {
  border-color: #6E7C88;
  background-color: transparent;
}
.home-advantage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}
.home-advantage-item { text-align: center; }
.home-advantage-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  border: 1px dashed #6D7C88;
  background-color: rgba(255, 255, 255, 0.55);
  color: #2F3A44;
  font-size: 26px;
}
.home-advantage-item h3 {
  margin: 0 0 8px;
  color: #2F2F2F;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.home-advantage-item p {
  max-width: 210px;
  margin: 0 auto;
  color: #3F3F3F;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Top Picks ---------- */
.home-picks {
  padding: 46px 0 54px;
  background-color: #F4F5F7;
}
.home-picks-panel {
  border: 1px solid #E1E1E1;
  background-color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(20, 20, 30, 0.04);
}
.home-picks-panel + .home-picks-panel { margin-top: 26px; }
.home-picks-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 0 22px;
  background-color: #2B3A44;
  color: #FFFFFF;
}
.home-picks-head h2 {
  margin: 0;
  color: #FFFFFF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.home-picks-head a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  font-size: 14px;
  text-decoration: none;
}
.home-picks-head a:hover { color: #C7D2FE; }
.home-picks-head a i { font-size: 11px; }
.home-picks-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
}
.home-picks-grid-main { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.home-picks-grid-secondary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.home-pick {
  display: flex;
  flex-direction: column;
  border: 1px solid #E6E6E6;
  background-color: #FFFFFF;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.home-pick:hover {
  border-color: #CFCFE6;
  box-shadow: 0 10px 22px rgba(20, 20, 40, 0.07);
}
.home-pick-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 10px;
  background-color: #FFFFFF;
  overflow: hidden;
}
.home-picks-grid-secondary .home-pick-image { aspect-ratio: 4 / 3; }
.home-pick-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}
.home-pick:hover .home-pick-image img { transform: scale(1.04); }
.home-pick-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.85);
  color: #2B3A44;
  font-size: 13px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}
.home-pick h3 {
  min-height: 38px;
  margin: 10px 12px 6px;
  color: #333333;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}
.home-pick h3 a {
  display: -webkit-box;
  overflow: hidden;
  color: #333333;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.home-pick h3 a:hover { color: #4B3F86; }
.home-pick-price {
  margin: 0 12px;
  color: #222222;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}
.home-pick-special { color: #1B2F9E; }
.home-pick-old {
  color: #999999;
  font-size: 11px;
  font-weight: 400;
  text-decoration: line-through;
}
.home-pick-moq {
  margin: 2px 12px 12px;
  color: #888888;
  font-size: 11px;
  line-height: 1.5;
}


/* ---------- Factory strip ---------- */
.home-factory {
  position: relative;
  padding: 52px 0 42px;
  background: url('../image/home/factory-bg.svg') center center / cover no-repeat, #1A2126;
  color: #FFFFFF;
  text-align: center;
}
.home-factory::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(8, 14, 20, 0.42);
}
.home-factory .container {
  position: relative;
  z-index: 1;
}
.home-factory-intro {
  max-width: 1000px;
  margin: 0 auto 26px;
  color: #59A6FF;
  font-family: 'Jost', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
}
.home-factory-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.home-factory-stat {
  padding: 6px 16px;
  border-radius: 2px;
  background-color: rgba(255, 255, 255, 0.92);
  color: #6F6F6F;
  font-size: 12px;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .home-section-heading { padding-top: 42px; }
  .home-section-ghost { font-size: 56px; }
  .home-section-heading h2 { font-size: 36px; }
  .home-advantage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 18px; }
  .home-picks-grid-main { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .home-section-heading { padding-top: 38px; }
  .home-section-ghost { font-size: 46px; }
  .home-section-heading h2 { font-size: 32px; }
  .home-about-inner { grid-template-columns: 1fr; gap: 16px; }
  .home-about-video { min-height: 260px; }
  .home-picks-grid-main,
  .home-picks-grid-secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-advantage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .home-hot { padding: 40px 0 30px; }
  .home-section-heading { margin-bottom: 26px; padding-top: 30px; }
  .home-section-ghost { font-size: 36px; }
  .home-section-heading h2 { font-size: 25px; }
  .home-section-ornament { width: 150px; }
  .home-about { padding: 10px 0 40px; }
  .home-about-text { padding: 20px; }
  .home-about-text h2 { font-size: 22px; }
  .home-advantage { padding: 26px 0 40px; }
  .home-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
  .home-picks { padding: 34px 0 40px; }
  .home-picks-grid-main,
  .home-picks-grid-secondary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-picks-grid { padding: 10px; gap: 10px; }
  .home-picks-head { min-height: 48px; padding: 0 14px; }
  .home-picks-head h2 { font-size: 17px; }
  .home-factory { padding: 36px 0 30px; }
  .home-factory-intro { font-size: 14px; }
}
@media (max-width: 480px) {
  .home-section-ghost { font-size: 28px; }
  .home-section-heading h2 { font-size: 21px; }
  .home-hot-card h3 { font-size: 14px; }
  .home-advantage-item p { font-size: 11px; }
  .home-pick h3 { font-size: 12px; }
  .home-factory-stat { font-size: 11px; padding: 5px 10px; }
}

