/* ============================================
   GBM WOOCOMMERCE STYLES — Part 1
   Shop, Product Detail, Cart, Checkout
   ============================================ */

/* === SHOP PAGE === */
.gbm-shop {
  padding-top: var(--header-height);
}

.gbm-shop-header {
  position: relative;
  background: var(--gbm-black);
  padding: 80px 0 60px;
  text-align: center;
}

.gbm-shop-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-style: italic;
  color: var(--gbm-white);
  margin-bottom: 8px;
}

.gbm-shop-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 15px;
}

.gbm-shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0 var(--space-3xl);
}

/* Sidebar */
.gbm-shop-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
}

.gbm-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.gbm-filter-header h3 {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.gbm-filter-close {
  display: none;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

.gbm-filter-group {
  margin-bottom: var(--space-lg);
}

.gbm-filter-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gbm-black);
  margin-bottom: 12px;
  display: block;
}

.gbm-filter-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gbm-filter-list li {
  margin-bottom: 8px;
}

.gbm-filter-list a {
  font-size: 14px;
  color: var(--gbm-gray);
  display: flex;
  justify-content: space-between;
}

.gbm-filter-list a:hover,
.gbm-filter-list li.active a {
  color: var(--gbm-black);
  font-weight: 500;
}

.gbm-filter-count {
  font-size: 12px;
  color: var(--gbm-gray);
}

/* Shop Toolbar */
.gbm-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #eee;
  margin-bottom: var(--space-md);
  gap: 16px;
}

.gbm-filter-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid #ddd;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.gbm-shop-result-count {
  font-size: 13px;
  color: var(--gbm-gray);
}

.gbm-shop-sort select {
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 13px;
  background: var(--gbm-white);
}

/* Pagination */
.gbm-pagination {
  padding: var(--space-xl) 0;
  text-align: center;
}

.gbm-pagination ul {
  list-style: none;
  display: inline-flex;
  gap: 4px;
  padding: 0;
}

.gbm-pagination li a,
.gbm-pagination li span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #ddd;
  color: var(--gbm-black);
  transition: var(--transition);
}

.gbm-pagination li span.current,
.gbm-pagination li a:hover {
  background: var(--gbm-black);
  color: var(--gbm-white);
  border-color: var(--gbm-black);
}

.gbm-no-products {
  text-align: center;
  padding: 80px 0;
}

.gbm-no-products h3 {
  margin-bottom: 8px;
}

.gbm-no-products p {
  color: var(--gbm-gray);
  margin-bottom: 24px;
}

/* === SINGLE PRODUCT === */
.gbm-single-product {
  padding-top: var(--header-height);
}

.gbm-breadcrumbs {
  padding: 16px 0;
  font-size: 13px;
  color: var(--gbm-gray);
  border-bottom: 1px solid #eee;
}

.gbm-breadcrumbs a {
  color: var(--gbm-gray);
}

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

.gbm-breadcrumb-sep {
  margin: 0 8px;
}

.gbm-breadcrumb-current {
  color: var(--gbm-black);
  font-weight: 500;
}

.gbm-product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  padding: var(--space-xl) 0;
}

/* Gallery */
.gbm-product-gallery {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  align-self: start;
  min-width: 0;
  width: 100%;
}

.gbm-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--gbm-gray-light);
  margin-bottom: 12px;
}

.gbm-gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.gbm-gallery-main-img:hover {
  transform: scale(1.05);
}

.gbm-badge-detail {
  font-size: 12px;
  padding: 6px 14px;
}

.gbm-gallery-thumbs {
  display: flex;
  gap: 8px;
}

.gbm-gallery-thumb {
  width: 72px;
  height: 90px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}

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

.gbm-gallery-thumb:hover {
  border-color: var(--gbm-gold);
}

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

/* Product Info */
.gbm-product-detail-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
}

.gbm-product-detail-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--gbm-black);
  margin-bottom: 12px;
}

.gbm-product-detail-price del {
  color: var(--gbm-gray);
  font-weight: 400;
  font-size: 18px;
}

.gbm-product-detail-price ins {
  text-decoration: none;
  color: var(--gbm-red);
}

.gbm-product-rating {
  margin-bottom: 16px;
  color: var(--gbm-gold);
  font-size: 16px;
}

.gbm-rating-count {
  color: var(--gbm-gray);
  font-size: 13px;
  margin-left: 6px;
}

.gbm-product-short-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--gbm-charcoal);
  margin-bottom: 20px;
}

.gbm-product-divider {
  height: 1px;
  background: #eee;
  margin: 24px 0;
}

/* Quantity */
.gbm-quantity-wrapper {
  margin-bottom: 20px;
}

.gbm-quantity-wrapper label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gbm-quantity-control {
  display: inline-flex;
  border: 1px solid #ddd;
}

.gbm-qty-btn {
  width: 44px;
  height: 44px;
  background: var(--gbm-white);
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.gbm-qty-btn:hover {
  background: var(--gbm-gray-light);
}

.gbm-qty-input {
  width: 56px;
  height: 44px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  -moz-appearance: textfield;
}

.gbm-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}

.gbm-cart-actions {
  display: flex;
  gap: 12px;
}

.gbm-btn-full {
  flex: 1;
}

.gbm-wishlist-btn {
  width: 50px;
  height: 50px;
  border: 1px solid #ddd;
  background: var(--gbm-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.gbm-wishlist-btn:hover {
  border-color: var(--gbm-gold);
  color: var(--gbm-gold);
}

/* Meta */
.gbm-product-meta {
  margin-top: 8px;
}

.gbm-meta-item {
  font-size: 13px;
  color: var(--gbm-gray);
  margin-bottom: 6px;
}

.gbm-meta-label {
  font-weight: 600;
  color: var(--gbm-charcoal);
  margin-right: 4px;
}

/* Share */
.gbm-product-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.gbm-share-links {
  display: flex;
  gap: 10px;
}

.gbm-share-links a {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gbm-gray);
  transition: var(--transition);
}

.gbm-share-links a:hover {
  border-color: var(--gbm-gold);
  color: var(--gbm-gold);
}

/* Tabs */
.gbm-product-tabs {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.gbm-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #ddd;
  margin-bottom: var(--space-lg);
}

.gbm-tab-btn {
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--gbm-gray);
  cursor: pointer;
  transition: var(--transition);
}

.gbm-tab-btn:hover {
  color: var(--gbm-black);
}

.gbm-tab-btn.active {
  color: var(--gbm-black);
  border-bottom-color: var(--gbm-gold);
  font-weight: 600;
}

.gbm-tab-content {
  display: none;
}

.gbm-tab-content.active {
  display: block;
}

.gbm-tab-inner {
  font-size: 15px;
  line-height: 1.8;
  color: var(--gbm-charcoal);
  max-width: 800px;
}

.gbm-related-products {
  padding-bottom: var(--space-3xl);
}

/* ============================================
   HOME — "Find Your Finish" Category Cards
   ============================================ */
.gbm-categories-section {
  padding: var(--space-xl) 0;
}

.gbm-categories-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 32px);
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.gbm-categories-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.gbm-category-card {
  position: relative;
  flex: 0 0 calc(25% - 12px);
  min-width: 200px;
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: 4px;
  scroll-snap-align: start;
  cursor: pointer;
}

.gbm-category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gbm-category-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gbm-white);
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
}

/* ============================================
   HOME — Product Card (Figma: stars + Buy Now)
   ============================================ */
.gbm-product-card-figma {
  position: relative;
  background: var(--gbm-white);
  border: 1px solid #eee;
  border-radius: 4px;
  overflow: hidden;
  transition: var(--transition);
}

.gbm-product-card-figma:hover {
  box-shadow: var(--shadow-hover);
}

.gbm-product-card-figma .gbm-product-image {
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.gbm-product-card-figma .gbm-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.gbm-product-card-figma:hover .gbm-product-image img {
  transform: scale(1.05);
}

.gbm-product-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: var(--gbm-white);
  border: 1px solid #eee;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2;
}

.gbm-product-wishlist-btn.active {
  background: #FFF;
  border-color: transparent;
}

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

.gbm-product-card-info {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.gbm-product-stars {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
}

.gbm-product-stars .stars {
  color: var(--gbm-gold);
  font-size: 12px;
}

.gbm-product-stars .rating-text {
  font-size: 11px;
  color: var(--gbm-gray);
}

.gbm-product-card-info .name {
  font-size: 13px;
  font-weight: 500;
  color: var(--gbm-black);
  margin-bottom: 4px;
  line-height: 1.3;
}

.gbm-product-card-info .price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gbm-black);
  margin-bottom: 10px;
}

.gbm-buy-now-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--gbm-black);
  color: var(--gbm-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--gbm-black);
  cursor: pointer;
  transition: var(--transition);
  text-transform: capitalize;
}

.gbm-buy-now-btn:hover {
  background: var(--gbm-gold);
  border-color: var(--gbm-gold);
  color: var(--gbm-black);
}

/* Carousel arrows (products) */
.gbm-carousel-nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: var(--space-md);
}

.gbm-carousel-arrow {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: var(--gbm-black);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 18px;
  color: var(--gbm-black);
}

.gbm-carousel-arrow:hover {
  background: var(--gbm-black);
  color: var(--gbm-black);
  border-color: var(--gbm-black);
}

/* ============================================
   HOME — "Our Story" Section
   ============================================ */
.gbm-story-section {
  padding: var(--space-3xl) 0;
}

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

.gbm-story-image {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.gbm-story-image img {
  width: 100%;
  height: auto;
}

.gbm-story-cta-overlay {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  padding: 12px 24px;
  border-radius: 4px;
}

.gbm-story-cta-overlay span {
  color: var(--gbm-white);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.gbm-story-content h2 {
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.gbm-story-quote {
  font-family: var(--font-heading);
  font-size: 18px;
  font-style: italic;
  line-height: 1.6;
  color: var(--gbm-charcoal);
  margin-bottom: var(--space-md);
}

.gbm-story-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gbm-gray);
}

/* ============================================
   HOME — Trust Badges
   ============================================ */
.gbm-trust-section {
  padding: var(--space-xl) 0 var(--space-3xl);
}

.gbm-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.gbm-trust-card {
  border: 1px solid #eee;
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
}

.gbm-trust-card:hover {
  box-shadow: var(--shadow-hover);
}

.gbm-trust-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto var(--space-sm);
  color: var(--gbm-gold);
}

.gbm-trust-card h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gbm-trust-card p {
  font-size: 13px;
  color: var(--gbm-gray);
}

/* ============================================
   GOLD PAGINATION BAR
   ============================================ */
.gbm-gold-pagination {
  background: var(--gbm-gold);
  padding: 16px 0;
  text-align: center;
}

.gbm-gold-pagination-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--gbm-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
}

.gbm-gold-pagination-inner .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  color: var(--gbm-white);
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.gbm-gold-pagination-inner .page-numbers:hover {
  background: rgba(255, 255, 255, 0.3);
}

.gbm-gold-pagination-inner .page-numbers.current {
  background: var(--gbm-white);
  color: var(--gbm-gold);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gbm-gold-pagination-inner .prev,
.gbm-gold-pagination-inner .next {
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  background: transparent;
}
.gbm-gold-pagination-inner .prev:hover,
.gbm-gold-pagination-inner .next:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ============================================
   FOOTER ENHANCEMENTS (Figma)
   ============================================ */
.gbm-footer-logo-wrap {
  margin-bottom: var(--space-md);
}

.gbm-footer-logo-img {
  max-height: 100px;
}

.gbm-footer-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.gbm-footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}

.gbm-footer-col h4 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: var(--gbm-white);
  margin-bottom: var(--space-sm);
}

/* ============================================
   RESPONSIVE — New Sections
   ============================================ */
@media (max-width: 1024px) {
  .gbm-story-grid {
    grid-template-columns: 1fr;
  }

  .gbm-category-card {
    flex: 0 0 calc(33.33% - 12px);
  }
}

@media (max-width: 768px) {
  .gbm-header-row-2 .gbm-nav {
    display: none;
  }

  .gbm-tagline {
    display: none;
  }

  .gbm-header-search {
    margin-left: auto;
  }

  .gbm-mode-toggle .gbm-mode-btn {
    padding: 6px 14px;
    font-size: 11px;
  }

  .gbm-trust-grid {
    grid-template-columns: 1fr;
  }

  .gbm-category-card {
    flex: 0 0 calc(50% - 8px);
    min-width: 160px;
  }

  .gbm-announcement-text {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .gbm-category-card {
    flex: 0 0 70%;
  }
}

/* Supprimer le titre "Cart" sur la page Panier */
.woocommerce-cart h1:not(.gbm-empty-cart-title),
.woocommerce-cart .entry-title,
.woocommerce-cart .page-title,
.woocommerce-cart .entry-header {
  display: none !important;
}

/* Dézoomer et empêcher le rognage des images sur TOUTES les cartes produits (Accueil, New Arrivals, Trending, etc.) */
.gbm-product-image {
  aspect-ratio: 1 !important;
  padding: 12px !important;
  box-sizing: border-box !important;
  background-color: #fff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gbm-product-image img {
  max-width: 88% !important;
  max-height: 88% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.6s ease !important;
  margin: auto !important;
}

/* Bordure grise sur les cartes produits de la section New Arrivals */
#gbm-new-arrivals .gbm-product-card-figma {
  border: 1px solid #E5E5E5 !important;
  box-shadow: none !important;
}

/* Bordure grise sur les cartes produits de la section You May Also Like */
.gbm-cart-page section .gbm-product-card-figma,
.gbm-related-products .gbm-product-card-figma {
  border: 1px solid #E5E5E5 !important;
  box-shadow: none !important;
}

/* Home Page Header Search: white text/icons and transparent input backgrounds when not scrolled */
.home .gbm-header:not(.scrolled) .gbm-mobile-search-input-wrap {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: transparent !important;
}
.home .gbm-header:not(.scrolled) .gbm-mobile-search-input-wrap input {
  color: #FFFFFF !important;
}
.home .gbm-header:not(.scrolled) .gbm-mobile-search-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.8) !important;
}
.home .gbm-header:not(.scrolled) .gbm-mobile-search-input-wrap svg {
  color: #FFFFFF !important;
}

/* Color swatches inside product cards (Desktop) */
.gbm-card-color-dot {
  width: 16px !important;
  height: 16px !important;
  border-radius: 50% !important;
}

/* ============================================
   LANGUAGE SELECTOR — Desktop Dropdown
   ============================================ */
.gbm-lang-selector {
  position: relative;
  z-index: 100;
}

.gbm-lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #E0E0E0;
  border-radius: 50px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--gbm-black);
  transition: all 0.25s ease;
}

.gbm-lang-trigger:hover {
  border-color: #333;
  background: #F8F8F8;
}

.gbm-lang-globe {
  flex-shrink: 0;
}

.gbm-lang-label {
  font-weight: 700;
  letter-spacing: 0.5px;
}

.gbm-lang-chevron {
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.gbm-lang-dropdown.open ~ .gbm-lang-trigger .gbm-lang-chevron,
.gbm-lang-selector:has(.gbm-lang-dropdown.open) .gbm-lang-chevron {
  transform: rotate(180deg);
}

.gbm-lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 1000;
}

.gbm-lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gbm-lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  color: #333;
  transition: background 0.2s ease;
  text-align: left;
}

.gbm-lang-option:hover {
  background: #F5F5F5;
}

.gbm-lang-option.active {
  background: #F0F0F0;
  font-weight: 700;
}

.gbm-lang-option.active .gbm-lang-code::after {
  content: "✓";
  margin-left: 4px;
  font-size: 11px;
}

.gbm-lang-code {
  font-weight: 700;
  font-size: 13px;
  min-width: 26px;
  text-transform: uppercase;
}

.gbm-lang-name {
  font-weight: 400;
  color: #666;
}

/* Hide on Mobile */
@media (max-width: 768px) {
  .gbm-lang-selector {
    display: none !important;
  }
}

/* ============================================
   LANGUAGE SELECTOR — Mobile Pills (in Menu)
   ============================================ */
.gbm-lang-mobile {
  padding: 16px 20px;
  border-top: 1px solid #F0F0F0;
}

.gbm-lang-mobile-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gbm-lang-globe-mobile {
  color: #666;
  flex-shrink: 0;
}

.gbm-lang-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid #E0E0E0;
  border-radius: 50px;
  background: #FFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
  letter-spacing: 0.5px;
}

.gbm-lang-pill:hover {
  border-color: #333;
  background: #F8F8F8;
}

.gbm-lang-pill.active {
  background: #1A1A1A;
  color: #FFF;
  border-color: #1A1A1A;
}

/* ============================================
   RTL SUPPORT — Global Layout Adjustments
   ============================================ */

/* Base direction */
html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] body {
  text-align: right;
}

/* Header */
html[dir="rtl"] .gbm-header-inner {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-header-icons {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-nav-links {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mode-toggle {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-tagline {
  text-align: right;
}

/* Search */
html[dir="rtl"] .gbm-search-input {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .gbm-mobile-search-input-wrap {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mobile-search-input-wrap input {
  text-align: right;
}

/* Mobile Header */
html[dir="rtl"] .gbm-mobile-header-row-1 {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mobile-icons {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mobile-mode-toggle {
  flex-direction: row-reverse;
}

/* Mobile Menu */
html[dir="rtl"] .gbm-mobile-menu {
  left: 0;
  right: auto;
  transform: translateX(-100%);
}

html[dir="rtl"] .gbm-mobile-menu.open {
  transform: translateX(0);
}

html[dir="rtl"] .gbm-mobile-menu-header {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mobile-user-info {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-user-text {
  text-align: right;
}

html[dir="rtl"] .gbm-mobile-nav a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-mobile-nav .gbm-nav-arrow img {
  transform: rotate(-90deg) !important;
}

html[dir="rtl"] .gbm-mobile-secondary a {
  flex-direction: row-reverse;
}

html[dir="rtl"] .gbm-nav-icon {
  margin-right: 0;
  margin-left: 12px;
}

/* Hero Section */
html[dir="rtl"] .gbm-hero-text {
  text-align: right;
}

html[dir="rtl"] .gbm-hero .gbm-container {
  justify-content: flex-start !important;
  padding-left: 5% !important;
  padding-right: 0 !important;
}

/* Sections */
html[dir="rtl"] .gbm-section-header {
  text-align: right !important;
}

html[dir="rtl"] .gbm-made-content {
  text-align: right !important;
}

html[dir="rtl"] .gbm-story-content {
  text-align: right;
}

/* Footer */
html[dir="rtl"] .gbm-footer-grid {
  direction: rtl;
}

html[dir="rtl"] .gbm-footer-brand p {
  text-align: right;
}

/* Account Pages */
html[dir="rtl"] .gbm-account-header {
  text-align: right !important;
}

html[dir="rtl"] .gbm-account-forgot {
  text-align: right !important;
}

html[dir="rtl"] .gbm-account-checkbox {
  flex-direction: row-reverse;
}

/* Cart & Checkout */
html[dir="rtl"] .gbm-cart-items th,
html[dir="rtl"] .gbm-cart-items td {
  text-align: right;
}

/* Language selector dropdown RTL flip */
html[dir="rtl"] .gbm-lang-dropdown {
  right: auto;
  left: 0;
}

html[dir="rtl"] .gbm-lang-option {
  text-align: right;
  flex-direction: row-reverse;
}

/* Mobile back button flip */
html[dir="rtl"] .gbm-mobile-back svg {
  transform: rotate(180deg);
}

/* Breadcrumbs */
html[dir="rtl"] .gbm-breadcrumbs {
  direction: rtl;
}

/* General flex containers */
html[dir="rtl"] .gbm-header-right-actions {
  flex-direction: row-reverse;
}

/* Mobile menu promo */
html[dir="rtl"] .gbm-promo-content {
  flex-direction: row-reverse;
}

/* Mobile footer */
html[dir="rtl"] .gbm-mobile-footer-info {
  text-align: right;
}

html[dir="rtl"] .gbm-mobile-contact-social {
  direction: rtl;
}

html[dir="rtl"] .gbm-mobile-accordion-header {
  flex-direction: row-reverse;
  text-align: right;
}

/* Hide Astra theme default entry headers/titles on checkout and cart pages */
.woocommerce-checkout .entry-header,
.woocommerce-checkout .entry-title,
.woocommerce-cart .entry-header,
.woocommerce-cart .entry-title {
  display: none !important;
}

/* ============================================
   PRODUCT DESCRIPTION SLIDING PANEL
   ============================================ */
.gbm-read-more-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--gbm-gold);
  text-decoration: none;
  border: none;
  background: transparent;
  cursor: pointer;
  border-bottom: 1px solid var(--gbm-gold);
  transition: all 0.3s ease;
}

.gbm-read-more-btn:hover {
  color: var(--gbm-black);
  border-color: var(--gbm-black);
}

#gbm-desc-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(2px);
}

#gbm-desc-overlay.active {
  opacity: 1;
  visibility: visible;
}

#gbm-desc-panel {
  position: fixed;
  top: 0;
  right: -800px;
  width: 800px;
  height: 100%;
  background: var(--gbm-white);
  z-index: 100000;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
  transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
  display: flex;
  flex-direction: column;
}

#gbm-desc-panel.active {
  right: 0;
}

.gbm-desc-panel-header {
  padding: 30px;
  border-bottom: 1px solid #EEE;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--gbm-white);
}

.gbm-desc-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--gbm-black);
}

#gbm-desc-panel-close {
  background: none;
  border: none;
  font-size: 48px;
  line-height: 1;
  color: var(--gbm-gray);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

#gbm-desc-panel-close:hover {
  color: var(--gbm-black);
}

.gbm-desc-panel-body {
  padding: 30px;
  overflow-y: auto;
  flex-grow: 1;
}

.gbm-desc-panel-body p {
  font-size: 15px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  #gbm-desc-panel {
    width: 100%;
    right: -100%;
  }
}

.gbm-desc-panel-add-btn:hover {
  background: #333 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* ============================================
   PRODUCT GALLERY CAROUSEL
   ============================================ */
.gbm-gallery-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 16px;
}

.gbm-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.gbm-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 0;
}

.gbm-carousel-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.gbm-carousel-slide.exiting {
  opacity: 0;
  z-index: 0;
}

.gbm-carousel-slide.entering {
  opacity: 1;
  z-index: 1;
}

.gbm-carousel-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* Arrows */
.gbm-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  color: #333;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease;
  opacity: 0;
}

.gbm-gallery-carousel:hover .gbm-carousel-arrow {
  opacity: 1;
}

.gbm-carousel-prev {
  left: 12px;
}

.gbm-carousel-next {
  right: 12px;
}

.gbm-carousel-arrow:hover {
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transform: translateY(-50%) scale(1.1);
}

/* Dots */
.gbm-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  max-width: 70%;
  flex-wrap: wrap;
  justify-content: center;
}

.gbm-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gbm-carousel-dot.active {
  background: #1A1A1A;
  width: 20px;
  border-radius: 4px;
}

/* Counter */
.gbm-carousel-counter {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  letter-spacing: 0.5px;
}

/* Thumbnails Strip */
.gbm-gallery-thumbs-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
}

.gbm-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  max-width: 100%;
}

.gbm-gallery-thumbs::-webkit-scrollbar {
  height: 3px;
}

.gbm-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #D0D0D0;
  border-radius: 2px;
}

.gbm-gallery-thumb {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background: #F5F5F5;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}

.gbm-gallery-thumb img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.gbm-gallery-thumb.active {
  border-color: #1A1A1A;
}

.gbm-gallery-thumb:hover {
  border-color: #999;
}

/* Mobile: always show arrows, larger touch targets */
@media (max-width: 991px) {
  .gbm-gallery-carousel {
    border-radius: 12px;
  }

  .gbm-carousel-arrow {
    opacity: 1;
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .gbm-carousel-prev {
    left: 8px;
  }

  .gbm-carousel-next {
    right: 8px;
  }

  .gbm-gallery-thumb {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 6px;
  }

  .gbm-gallery-thumbs {
    gap: 6px;
  }
}