/* ============================================================
   Homepage BS5 Mobile-First Styles
   Replaces legacy Owl Carousel layout with BS5 grid + carousel.
   Depends on: tokens.css, bootstrap5
   ============================================================ */

/* ── Site logo (CSS mode) ─────────────────────────────────── */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.site-logo:hover {
  text-decoration: none;
  color: inherit;
}

.site-logo--css .site-logo__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #F4A137;
  color: #fff;
  font-size: 20px;
}

.site-logo--css .site-logo__text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #333;
}

.site-logo--sm .site-logo__icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 14px;
}

.site-logo--sm .site-logo__text {
  font-size: 1rem;
}

@media (max-width: 575.98px) {
  .site-logo--css .site-logo__text {
    font-size: 1rem;
  }

  .site-logo--css .site-logo__icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}

/* ── Hero Carousel ─────────────────────────────────────────── */
#heroCarousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
  width: 40px;
  height: 40px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
}

#heroCarousel:hover .carousel-control-prev,
#heroCarousel:hover .carousel-control-next {
  opacity: 1;
}

#heroCarousel .carousel-indicators button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Desktop Sticky Bar (compact, appears on scroll) ──────── */
.desktop-sticky-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: var(--color-surface-base, #fff);
  border-bottom: 1px solid var(--color-border, #dee2e6);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 8px 0;
  transform: translateY(-100%);
  transition: transform 0.25s ease;
}

.desktop-sticky-bar.show {
  transform: translateY(0);
}

.sticky-logo img {
  max-height: 30px;
}

.sticky-nav {
  display: flex;
  gap: 4px;
}

.sticky-nav a {
  color: var(--color-text-body, #212529);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.sticky-nav a:hover {
  background: var(--color-surface-subtle, #f8f9fa);
  color: var(--color-brand-primary, #F4A137);
}

.sticky-search .form-control {
  font-size: 0.8125rem;
}

.sticky-icons a {
  color: var(--color-text-muted, #6c757d);
  font-size: 1rem;
  padding: 4px;
  transition: color 0.15s;
}

.sticky-icons a:hover {
  color: var(--color-brand-primary, #F4A137);
}

.sticky-cart-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--color-danger, #d9534f);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  min-width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 7px;
  padding: 0 3px;
}

/* ── Mobile Top Bar (fixed) ───────────────────────────────── */
.mobile-topbar {
  background: var(--color-surface-base, #fff);
  border-bottom: 1px solid var(--color-border, #dee2e6);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.mobile-topbar .btn-link {
  text-decoration: none;
  font-size: 1.25rem;
}

/* Push body content below fixed mobile topbar */
@media (max-width: 767.98px) {
  #header {
    padding-top: 52px;
  }
}

/* ── Mobile Cart Badge ─────────────────────────────────────── */
.mobile-cart-icon {
  position: relative;
}

.mobile-cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--color-danger, #d9534f);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  padding: 0 4px;
}

/* ── Mobile Currency Button ────────────────────────────────── */
.mobile-currency-btn {
  text-decoration: none !important;
  padding: 2px 6px !important;
  border: 1px solid var(--color-border, #dee2e6) !important;
  border-radius: 4px;
  line-height: 1;
}

.mobile-currency-btn::after {
  font-size: 0.5rem;
  vertical-align: middle;
}

/* ── Mobile Search Overlay ─────────────────────────────────── */
.mobile-search-overlay {
  background: var(--color-surface-base, #fff);
  border-bottom: 1px solid var(--color-border, #dee2e6);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.mobile-search-overlay .container {
  padding-top: 0;
  padding-bottom: 0;
  transition: padding 0.25s ease;
}

.mobile-search-overlay.open {
  max-height: 80px;
}

.mobile-search-overlay.open .container {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.mobile-search-overlay .form-control {
  font-size: 0.9375rem;
}

/* ── Mobile Bottom Navbar ──────────────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  display: flex;
  background: var(--color-surface-base, #fff);
  border-top: 1px solid var(--color-border, #dee2e6);
  box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 0 4px;
  font-size: 0.625rem;
  color: var(--color-text-muted, #6c757d);
  text-decoration: none;
  transition: color 0.15s;
  gap: 2px;
}

.mobile-bottom-nav-item i {
  font-size: 1.125rem;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:hover {
  color: var(--color-brand-primary, #F4A137);
}

.mobile-bottom-nav-item.active {
  font-weight: 600;
}

/* (Bottom nav cart badge removed — cart button replaced with Offers) */

/* ── FAB Bar ───────────────────────────────────────────────── */
.fab-bar {
  position: fixed;
  right: 16px;
  bottom: 20px;
  z-index: 1025;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}

.fab-bar.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* On mobile, raise above bottom nav */
@media (max-width: 767.98px) {
  .fab-bar {
    bottom: 72px;
  }
}

.fab-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
  font-size: 1rem;
}

.fab-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fab-top {
  background: var(--color-gray-700, #595959);
  color: var(--color-white, #fff);
}

.fab-search {
  background: var(--color-brand-primary, #F4A137);
  color: var(--color-white, #fff);
}

.fab-chat {
  background: var(--color-info, #337ab7);
  color: var(--color-white, #fff);
}

/* Hide legacy back-to-top (replaced by FAB) */
.back-to-top {
  display: none !important;
}

/* ── Mobile Offcanvas Nav ──────────────────────────────────── */
#mobileNav .mobile-nav-links .nav-link {
  padding: 0.625rem 0;
  color: var(--color-text-body, #212529);
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--color-border-subtle, #e9ecef);
}

#mobileNav .mobile-nav-links .nav-link:hover,
#mobileNav .mobile-nav-links .nav-link:focus {
  color: var(--color-brand-primary, #F4A137);
}

#mobileNav .mobile-nav-links .nav-link i {
  width: 20px;
  text-align: center;
  color: var(--color-text-muted, #6c757d);
}

/* ── Mobile Offcanvas Sections ─────────────────────────────── */
.mobile-nav-section {
  border-bottom: 1px solid var(--color-border-subtle, #e9ecef);
}

.mobile-nav-section-toggle {
  font-size: 0.9375rem;
}

.mobile-nav-chevron {
  font-size: 0.625rem;
  transition: transform 0.2s;
  color: var(--color-text-muted, #6c757d);
}

.mobile-nav-section-toggle[aria-expanded="true"] .mobile-nav-chevron {
  transform: rotate(180deg);
}

/* Flatten the VerticalCategoriesMenu mega-menu inside offcanvas */
.mobile-categories-list .megamenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-categories-list .megamenu > li {
  border-bottom: 1px solid var(--color-border-subtle, #e9ecef);
}

.mobile-categories-list .megamenu > li:last-child {
  border-bottom: none;
}

.mobile-categories-list .megamenu > li > a {
  display: block;
  padding: 0.5rem 0;
  color: var(--color-text-body, #212529);
  text-decoration: none;
  font-size: 0.875rem;
}

.mobile-categories-list .megamenu > li > a:hover {
  color: var(--color-brand-primary, #F4A137);
}

.mobile-categories-list .megamenu > li > a .caret {
  display: none;
}

.mobile-categories-list .megamenu > li > a i {
  color: var(--color-text-muted, #6c757d);
}

/* Hide mega-menu sub-menu flyouts — show as nested list instead */
.mobile-categories-list .sub-menu {
  position: static !important;
  display: block !important;
  width: 100% !important;
  float: none !important;
  box-shadow: none !important;
  border: none !important;
  background: none !important;
  padding: 0 0 0.5rem 1.75rem !important;
  margin: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-categories-list .sub-menu .content {
  padding: 0;
}

.mobile-categories-list .sub-menu .row {
  margin: 0;
}

.mobile-categories-list .sub-menu .col-md-4,
.mobile-categories-list .sub-menu .col-sm-12 {
  padding: 0;
  width: 100%;
  flex: none;
  max-width: 100%;
}

.mobile-categories-list .sub-menu .menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-categories-list .sub-menu .menu ul li a {
  display: block;
  padding: 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted, #6c757d);
  text-decoration: none;
}

.mobile-categories-list .sub-menu .menu ul li a:hover {
  color: var(--color-brand-primary, #F4A137);
}

/* Sub-sub categories (Level 3) */
.mobile-categories-list .sub-menu .menu ul ul {
  padding-left: 1rem;
}

.mobile-categories-list .sub-menu .menu ul ul li a {
  font-size: 0.75rem;
}

/* Hide close-menu buttons in mobile */
.mobile-categories-list .close-menu {
  display: none;
}

/* ── Product Grid (replaces Owl Carousel) ──────────────────── */
.product-grid .ltabs-item {
  opacity: 1 !important;
  filter: none !important;
  height: 100%;
}

.product-grid .product-item-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border-subtle, #e9ecef);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-surface-base, #fff);
  transition: box-shadow 0.2s;
}

.product-grid .product-item-container:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-grid .left-block {
  position: relative;
  overflow: hidden;
}

.product-grid .left-block img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-grid .right-block {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-3, 12px);
}

.product-grid .right-block .caption {
  flex: 1;
}

.product-grid .right-block h4 {
  font-size: 0.875rem;
  line-height: 1.3;
  margin-bottom: var(--space-2, 8px);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-grid .right-block h4 a {
  color: var(--color-text-body, #212529);
  text-decoration: none;
}

.product-grid .right-block h4 a:hover {
  color: var(--color-brand-primary, #F4A137);
}

/* ── Product Badges ────────────────────────────────────────── */
.product-grid .badge {
  position: absolute;
  font-size: 0.6875rem;
  padding: 3px 8px;
  z-index: 2;
}

.product-grid .badge-sale {
  top: 8px;
  left: 8px;
}

.product-grid .badge-new {
  top: 8px;
  right: 8px;
}

.product-grid .badge-stock-in {
  bottom: 8px;
  left: 8px;
}

.product-grid .badge-stock-out {
  bottom: 8px;
  left: 8px;
}

/* ── Price ──────────────────────────────────────────────────── */
.product-grid .price {
  margin-bottom: var(--space-2, 8px);
}

.product-grid .price-new {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-brand-primary, #F4A137);
}

.product-grid .price-old {
  text-decoration: line-through;
  color: var(--color-text-muted, #6c757d);
  font-size: 0.8125rem;
  margin-left: 4px;
}

/* ── Ratings ───────────────────────────────────────────────── */
.product-grid .ratings {
  margin-bottom: var(--space-2, 8px);
}

.product-grid .rating-box i {
  font-size: 0.75rem;
  color: var(--color-yellow-400, #f9c922) !important;
}

/* ── Button Group ──────────────────────────────────────────── */
.product-grid .button-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-grid .button-group .addToCart {
  flex: 1;
  min-width: 0;
  background: var(--color-brand-primary, #F4A137);
  color: var(--color-white, #fff);
  border: none;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.product-grid .button-group .addToCart:hover {
  background: var(--color-brand-primary-dark, #d4851a);
}

.product-grid .button-group .wishlist,
.product-grid .button-group .compare {
  background: var(--color-surface-subtle, #f8f9fa);
  border: 1px solid var(--color-border, #dee2e6);
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.product-grid .button-group .wishlist:hover,
.product-grid .button-group .compare:hover {
  background: var(--color-border-subtle, #e9ecef);
}

/* ── Second image hover effect ─────────────────────────────── */
.product-grid .product-image-container {
  position: relative;
}

.product-grid .product-image-container .img_0 {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-grid .product-image-container:hover .img_0 {
  opacity: 1;
}

/* ── Quickview ─────────────────────────────────────────────── */
.product-grid .quickview {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px;
  font-size: 0.75rem;
  text-transform: uppercase;
  text-decoration: none;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.2s;
}

.product-grid .left-block:hover .quickview {
  opacity: 1;
  transform: translateY(0);
}

/* ── Section Titles ────────────────────────────────────────── */
.module.tab-slider.titleLine .modtitle {
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  padding-bottom: var(--space-3, 12px);
  margin-bottom: var(--space-4, 16px);
  border-bottom: 2px solid var(--color-brand-primary, #F4A137);
  color: var(--color-text-body, #212529);
}

/* ── Listing Tabs Container (cleanup) ──────────────────────── */
.so-listing-tabs .ltabs-tabs-container {
  margin-bottom: var(--space-3, 12px);
}

.so-listing-tabs .ltabs-tab-selected {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6c757d);
}

/* ── Mobile body padding for bottom nav ────────────────────── */
@media (max-width: 767.98px) {
  body {
    padding-bottom: 60px;
  }
}

/* ── Mobile-specific adjustments ───────────────────────────── */
@media (max-width: 575.98px) {
  .product-grid .right-block h4 {
    font-size: 0.8125rem;
  }

  .product-grid .price-new {
    font-size: 0.875rem;
  }

  .product-grid .button-group .addToCart span {
    display: none;
  }

  .product-grid .button-group .compare {
    display: none;
  }

  /* Hero carousel: taller on small screens */
  #heroCarousel .carousel-item img {
    min-height: 180px;
  }

  /* Spotlight section: remove offset on mobile */
  .so-spotlight1 .offset-lg-3 {
    padding-left: calc(var(--bs-gutter-x) * 0.5);
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .product-grid .right-block h4 {
    font-size: 0.8125rem;
  }
}

/* ── Hero slide fallbacks (CSS-only, no images needed) ────── */
.hero-slide {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 320px;
  padding: 40px 50px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-slide__content {
  position: relative;
  z-index: 1;
  max-width: 55%;
}

.hero-slide__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.hero-slide__title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

.hero-slide__subtitle {
  font-size: 15px;
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.5;
  color: #fff;
}

.hero-slide__cta {
  display: inline-block;
  padding: 10px 28px;
  border: 2px solid #fff;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.25s, color 0.25s;
}

.hero-slide:hover .hero-slide__cta {
  background: #fff;
  color: #333;
}

.hero-slide__icon {
  font-size: 140px;
  opacity: 0.12;
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}

/* Slide themes */
.hero-slide--beads {
  background: linear-gradient(135deg, #F4A137 0%, #e8781e 100%);
}

.hero-slide--gemstones {
  background: linear-gradient(135deg, #7b2d8e 0%, #4a1259 100%);
}

.hero-slide--tools {
  background: linear-gradient(135deg, #2c7a50 0%, #1a5235 100%);
}

@media (max-width: 767.98px) {
  .hero-slide {
    min-height: 240px;
    padding: 25px 20px;
  }
  .hero-slide__title {
    font-size: 1.4rem;
  }
  .hero-slide__icon {
    font-size: 90px;
    right: 15px;
  }
  .hero-slide__content {
    max-width: 70%;
  }
}

/* ── Side banner fallbacks ───────────────────────────────────── */
.side-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  text-decoration: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  transition: opacity 0.25s;
}

.side-banner:hover {
  opacity: 0.9;
  color: #fff;
}

.side-banner__text {
  position: relative;
  z-index: 1;
}

.side-banner__label {
  display: block;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

.side-banner__deal {
  display: block;
  font-size: 13px;
  margin-top: 4px;
  opacity: 0.9;
}

.side-banner__icon {
  font-size: 48px;
  opacity: 0.2;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.side-banner--gemstones {
  background: linear-gradient(135deg, #F4A137 0%, #d4871a 100%);
}

.side-banner--jewelry {
  background: linear-gradient(135deg, #888 0%, #555 100%);
}

.side-banner--new {
  background: linear-gradient(135deg, #48a0dc 0%, #2a6fa8 100%);
}

/* ── Side banners: mobile stacked (one per row) ──────────────── */
@media (max-width: 767.98px) {
  #yt_header_right .three-block {
    padding: 10px 0 0;
    float: none;
  }

  .three-block .htmlcontent-home {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .three-block .htmlcontent-home li {
    width: 100%;
  }

  .side-banner {
    min-height: 60px;
    padding: 14px 18px;
    border-radius: 6px;
  }

  .side-banner__label {
    font-size: 15px;
  }

  .side-banner__deal {
    font-size: 12px;
  }

  .side-banner__icon {
    font-size: 40px;
  }
}

/* ── Banner policy: mobile 2×2 grid ──────────────────────────── */
@media (max-width: 575.98px) {
  .policy-detail .banner-policy {
    display: flex;
    flex-wrap: wrap;
    padding: 16px 0;
  }

  .policy-detail .banner-policy .policy {
    width: 50%;
    float: none;
    padding: 8px 12px;
    border-right: none;
    border-bottom: 1px solid #ddd;
    font-size: 12px;
    text-align: center;
  }

  .policy-detail .banner-policy .policy:nth-child(odd) {
    border-right: 1px solid #ddd;
  }

  .policy-detail .banner-policy .policy:nth-child(n+3) {
    border-bottom: none;
  }
}

/* ── Product card: mobile compact ────────────────────────────── */
@media (max-width: 767.98px) {
  /* Prevent flex-stretch: cards should not fill the full column height */
  .product-grid > [class*="col"],
  .products-list.grid > .product-col {
    display: flex;
    align-items: flex-start;
  }

  .product-grid .product-layout,
  .products-list.grid .product-layout {
    width: 100%;
  }

  /* Tighter card padding */
  .products-list.grid .product-layout .product-item-container,
  .product-grid .product-layout .product-item-container {
    padding: 8px;
    min-height: auto !important;
    height: auto !important; /* override equalizeProductGridHeights JS */
  }

  /* Smaller placeholder icon */
  .product-no-image i {
    font-size: 40px;
  }

  /* Compact caption */
  .product-layout .caption h4 {
    font-size: 0.8125rem;
    margin-bottom: 4px;
    line-height: 1.25;
  }

  .product-layout .caption h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-layout .ratings {
    margin-bottom: 2px;
  }

  .product-layout .ratings .fa-star {
    font-size: 0.7rem;
  }

  .product-layout .price {
    font-size: 0.875rem;
    margin-bottom: 4px;
  }

  .product-layout .price .price-old {
    font-size: 0.75rem;
  }

  /* Icon-only buttons on mobile */
  .product-layout .button-group {
    margin: 4px 0;
  }

  .product-layout .button-group .addToCart span {
    display: none;
  }

  .product-layout .button-group .addToCart {
    padding: 6px 10px;
    font-size: 14px;
    height: 34px;
  }

  .product-layout .button-group .wishlist,
  .product-layout .button-group .compare {
    height: 34px;
    padding: 0 8px;
  }

  /* Reduce image container margin */
  .products-list.grid .product-layout .product-item-container .left-block .product-image-container,
  .product-grid .product-layout .product-item-container .left-block .product-image-container {
    margin-bottom: 8px;
  }
}

/* ── Footer responsive ─────────────────────────────────────── */
@media (max-width: 767.98px) {
  .footer-top .modtitle {
    cursor: pointer;
    position: relative;
  }

  .footer-bottom-block .text-right {
    text-align: center !important;
    margin-top: 10px;
  }
}

/* ══════════════════════════════════════════════════════════════
   HEADER MODERNIZATION
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Tighten vertical gaps between header bands ─────────── */
.header-top {
  background: #fff;
  border-bottom: 1px solid var(--color-border, #dee2e6);
  padding: 0;
}

.header-center {
  padding: 12px 0;
}

.header-bottom {
  margin-bottom: 0;
}

/* ── 2. Modernize desktop top navbar ──────────────────────── */
.topbar-link {
  color: var(--color-text-muted, #6c757d);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  transition: color 0.15s;
}

.topbar-link:hover,
.topbar-link:focus {
  color: var(--color-brand-primary, #F4A137);
  text-decoration: none;
}

.topbar-link i {
  font-size: 0.75rem;
  opacity: 0.7;
}

.topbar-link .dropdown-toggle::after {
  display: none;
}

.header-top-left .list-inline-item + .list-inline-item::before {
  content: "\00b7";
  color: var(--color-border, #ccc);
  margin-right: 0.75rem;
  font-weight: 700;
}

.header-top-right .list-inline-item + .list-inline-item::before {
  content: "\00b7";
  color: var(--color-border, #ccc);
  margin-right: 0.5rem;
  font-weight: 700;
}

.topbar-dropdown {
  border: 1px solid var(--color-border, #dee2e6);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  padding: 4px 0;
  min-width: 160px;
}

.topbar-dropdown .dropdown-item {
  font-size: 0.8125rem;
  padding: 6px 14px;
  color: var(--color-text-body, #212529);
}

.topbar-dropdown .dropdown-item:hover,
.topbar-dropdown .dropdown-item:focus {
  background: var(--color-surface-subtle, #f8f9fa);
  color: var(--color-brand-primary, #F4A137);
}

.topbar-dropdown .dropdown-item.active {
  background: var(--color-surface-subtle, #f0f4ff);
  color: var(--color-brand-primary, #F4A137);
  font-weight: 600;
}

/* Override legacy sprite-based icon styles that fought with Font Awesome */
.type_1 .header-top-right ul.top-link > li > a:before,
.type_1 .header-top-right ul.top-link > li.account.inactive a:before {
  display: none;
}

/* ── 3. Mobile currency pill button ──────────────────────── */
.mobile-currency-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 10px;
  border: 1.5px solid var(--color-border, #dee2e6);
  border-radius: 20px;
  background: var(--color-surface-base, #fff);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-body, #212529);
  line-height: 1.4;
  transition: border-color 0.15s, background 0.15s;
}

.mobile-currency-pill:hover,
.mobile-currency-pill:focus {
  border-color: var(--color-brand-primary, #F4A137);
  background: #fffaf2;
}

.mobile-currency-pill::after {
  font-size: 0.45rem;
  vertical-align: middle;
  margin-left: 2px;
}

.mobile-currency-symbol {
  font-size: 0.875rem;
  opacity: 0.7;
}

.mobile-currency-code {
  letter-spacing: 0.03em;
}

.mobile-currency-dropdown {
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  padding: 4px 0;
  min-width: 180px;
}

.mobile-currency-dropdown .dropdown-item {
  font-size: 0.8125rem;
  padding: 8px 14px;
  border-radius: 0;
}

.mobile-currency-dropdown .dropdown-item.active {
  background: var(--color-surface-subtle, #f0f4ff);
  color: var(--color-brand-primary, #F4A137);
  font-weight: 600;
}

.mobile-currency-dropdown .dropdown-item:hover {
  background: var(--color-surface-subtle, #f8f9fa);
}

/* ── 4. Mobile mini-cart offcanvas ────────────────────────── */
#mobileMiniCart .offcanvas-header {
  background: var(--color-surface-subtle, #f8f9fa);
  padding: 14px 16px;
}

#mobileMiniCart .offcanvas-title {
  font-size: 1rem;
  font-weight: 600;
}

#mobileMiniCart .offcanvas-body {
  overflow-y: auto;
}

.mobile-mini-cart-list {
  padding: 0;
  margin: 0;
}

.mobile-mini-cart-list table {
  margin-bottom: 0;
}

.mobile-mini-cart-list table td {
  vertical-align: middle;
  font-size: 0.8125rem;
  padding: 10px 12px;
}

.mobile-mini-cart-list .img-thumbnail {
  max-width: 50px;
  height: auto;
  border-radius: 6px;
}

.mobile-mini-cart-list .btn.view-cart,
.mobile-mini-cart-list .btn.checkout-cart {
  display: none; /* hide in-list buttons; footer has proper buttons */
}

.offcanvas-footer {
  background: var(--color-surface-base, #fff);
}

/* Bottom nav cart button inherits link styling but is now a <button> */
button.mobile-bottom-nav-item {
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
