/* ============================================================
   themeyt.css — Gudang ECU product card
   Dipanggil dari theme.css: @import url("themeyt.css");

   Design tokens
   - Navy        #0F2B46  (brand / official)
   - Primary     #0866C6  (price / links)
   - Electric    #0EA5E9  (new)
   - Trust       #16A34A  (cart / ready stock)
   - Best Seller #F59E0B
   - Original    #9333EA
   - Danger      #DC2626
   - Background  #F8FAFC
   - Card        #FFFFFF
   - Border      #E2E8F0
   ============================================================ */

/* ============================================================
   1. CARD SHELL
   ============================================================ */

.product-card {
  --ge-navy: #0f2b46;
  --ge-primary: #0866c6;
  --ge-electric: #0ea5e9;
  --ge-trust: #16a34a;
  --ge-best: #f59e0b;
  --ge-original: #9333ea;
  --ge-danger: #dc2626;
  --ge-bg: #f8fafc;
  --ge-card: #ffffff;
  --ge-border: #e2e8f0;
  --ge-muted: #64748b;
  --ge-radius: 18px;

  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  box-sizing: border-box !important;
  padding: 12px !important;
  overflow: hidden !important;
  background: var(--ge-card) !important;
  border: 1px solid var(--ge-border) !important;
  border-radius: var(--ge-radius) !important;
  box-shadow:
    0 1px 2px rgba(15, 43, 70, 0.04),
    0 6px 18px rgba(15, 43, 70, 0.05) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease !important;
}

.product-card:hover {
  transform: translateY(-3px) !important;
  border-color: #cbd5e1 !important;
  box-shadow:
    0 2px 4px rgba(15, 43, 70, 0.05),
    0 12px 28px rgba(15, 43, 70, 0.1) !important;
}

/* Flatten the generated Elementor wrappers so the card can flex cleanly. */
.product-card .elementor-section,
.product-card .elementor-container,
.product-card .elementor-row,
.product-card .elementor-column,
.product-card .elementor-column-wrap,
.product-card .elementor-widget-wrap,
.product-card .elementor-widget-product-miniature-name,
.product-card .elementor-widget-container {
  display: contents !important;
}

.product-card > .ge-card__inner {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
}

.product-card .ge-card__link {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 0 !important;
  color: inherit !important;
  text-decoration: none !important;
}

.product-card .ge-card__link:focus-visible {
  outline: 3px solid rgba(8, 102, 198, 0.28) !important;
  outline-offset: 3px !important;
  border-radius: 12px !important;
}

/* ============================================================
   2. IMAGE
   ============================================================ */

.product-card .card-product-image {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  box-sizing: border-box !important;
  margin: 0 0 10px !important;
  padding: 10px !important;
  overflow: hidden !important;
  background: #f1f5f9 !important;
  border-radius: calc(var(--ge-radius) - 6px) !important;
}

.product-card .card-product-image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  border-radius: 8px !important;
  transition:
    transform 0.3s ease,
    filter 0.3s ease,
    opacity 0.3s ease !important;
}

.product-card:hover .card-product-image img {
  transform: scale(1.03) !important;
}

/* Keep the brand mark anchored inside the product image. */
.product-card .card-product-image .ge-watermark {
  display: block !important;
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  right: auto !important;
  bottom: auto !important;
  z-index: 2 !important;
  width: 64px !important;
  height: 64px !important;
  background-position: center !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.product-card .card-product-image .ge-watermark img {
  width: 84px !important;
  height: auto !important;
  max-height: 84px !important;
  object-fit: contain !important;
  opacity: 0.85 !important;
  filter: none !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
  pointer-events: none !important;
}

.product-card:hover .card-product-image .ge-watermark img {
  transform: scale(1.05) !important;
  opacity: 1 !important;
}

/* Screen-reader only helper (kept next to the watermark block). */
.product-card .ge-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ============================================================
   3. BADGES
   Flex rows so badges shrink/wrap responsively instead of
   overflowing on narrow cards:
     row 1 (top):    official + trust
     row 2 (bottom): status
   ============================================================ */

.product-card .ge-badges {
  position: absolute !important;
  inset: 8px !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: stretch !important;
  pointer-events: none !important;
}

.product-card .ge-badges::before {
  content: "";
  display: flex !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  flex-wrap: wrap !important;
}

.product-card .ge-badge {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  box-sizing: border-box !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  border-radius: 999px !important;
  font-size: 0.58rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.1 !important;
  text-transform: uppercase !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  box-shadow: 0 2px 8px rgba(15, 43, 70, 0.18) !important;
}

.product-card .ge-badge svg {
  flex: 0 0 auto !important;
  width: 11px !important;
  height: 11px !important;
}

/* The checkmark badge is redundant with the image watermark. */
.product-card .ge-badge-official {
  display: none !important;
}

.product-card .ge-badge-trust {
  margin-left: auto !important;
  color: #ffffff !important;
  background: var(--ge-trust) !important;
}

.product-card .ge-badge-status {
  align-self: flex-start !important;
  max-width: 100% !important;
}

.product-card .ge-badge-best-seller {
  color: #451a03 !important;
  background: var(--ge-best) !important;
}

.product-card .ge-badge-produk-baru {
  color: #ffffff !important;
  background: var(--ge-electric) !important;
}

.product-card .ge-badge-stok-terbatas {
  color: #ffffff !important;
  background: var(--ge-danger) !important;
}

.product-card .ge-badge-ready-stok {
  color: #ffffff !important;
  background: var(--ge-trust) !important;
}

.product-card .ge-badge-original {
  color: #ffffff !important;
  background: var(--ge-original) !important;
}

.product-card .ge-badge-fast-shipping {
  color: #ffffff !important;
  background: var(--ge-electric) !important;
}

/* ============================================================
   4. SOLD OUT
   ============================================================ */

.product-card.is-out-of-stock .card-product-image img {
  filter: grayscale(0.7) !important;
  opacity: 0.72 !important;
}

.product-card.is-out-of-stock:hover .card-product-image img {
  transform: none !important;
}

.product-card .ge-soldout {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: grid !important;
  place-items: center !important;
  background: rgba(248, 250, 252, 0.45) !important;
  pointer-events: none !important;
}

.product-card .ge-soldout span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 14px !important;
  color: #ffffff !important;
  background: var(--ge-navy) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 22px rgba(15, 43, 70, 0.3) !important;
  font-size: 0.9rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
}

.product-card.is-out-of-stock .ce-product-name h3,
.product-card.is-out-of-stock .ce-product-name,
.product-card.is-out-of-stock .ce-product-price-real,
.product-card.is-out-of-stock .ce-product-meta__category,
.product-card.is-out-of-stock .ge-product-meta {
  opacity: 0.6 !important;
}

/* ============================================================
   5. BODY — CATEGORY / NAME / PRICE / META
   ============================================================ */

.product-card .card-product-body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.product-card .card-product-title {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-height: 5.1rem !important;
  margin: 0 !important;
  padding: 0 !important;
}

.product-card .ce-product-meta__category {
  display: inline-block !important;
  align-self: flex-start !important;
  width: fit-content !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 2px 8px !important;
  overflow: hidden !important;
  color: #075985 !important;
  background: #e0f2fe !important;
  border: 1px solid #bae6fd !important;
  border-radius: 999px !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.product-card .ce-product-name {
  display: block !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: visible !important;
  color: #0f172a !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
}

.product-card .ce-product-name h3 {
  display: -webkit-box !important;
  height: auto !important;
  min-height: 3.9em !important;
  max-height: 3.9em !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: inherit !important;
  font-size: inherit !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  transition: color 0.2s ease !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

.product-card:hover .ce-product-name h3 {
  color: var(--ge-primary) !important;
}

.product-card .card-product-price {
  margin: auto 0 0 !important;
  padding: 0 !important;
}

.product-card .ce-product-prices {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.product-card .ce-product-price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.product-card .ce-product-price-real {
  color: var(--ge-primary) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
}

.product-card .ce-product-price-regular {
  color: #94a3b8 !important;
  font-size: 0.74rem !important;
  font-weight: 500 !important;
  text-decoration: line-through !important;
}

.product-card .ce-product-discount {
  padding: 1px 5px !important;
  color: #92400e !important;
  background: #fef3c7 !important;
  border-radius: 6px !important;
  font-size: 0.66rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
}

.product-card .ge-product-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 1.15rem !important;
  color: var(--ge-muted) !important;
  font-size: 0.68rem !important;
  line-height: 1.2 !important;
}

.product-card .ge-rating {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  min-width: 0 !important;
  color: #b45309 !important;
  white-space: nowrap !important;
}

.product-card .ge-rating svg {
  width: 13px !important;
  height: 13px !important;
  flex: 0 0 13px !important;
  color: var(--ge-best) !important;
}

.product-card .ge-rating strong {
  color: #334155 !important;
  font-weight: 800 !important;
}

.product-card .ge-review-count {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.product-card .ge-no-review {
  overflow: hidden !important;
  color: #94a3b8 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.product-card .ge-sold {
  color: #475569 !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

/* ============================================================
   6. ACTIONS — CART + WISHLIST
   ============================================================ */

.product-card .card-product-action {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 10px 0 0 !important;
  padding: 0 !important;
}

.product-card .ge-cart-wrap {
  flex: 1 1 0% !important;
  min-width: 0 !important;
}

.product-card .ge-btn-cart {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: var(--ge-trust) !important;
  font-family: inherit !important;
  font-size: 0.76rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  text-align: center !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.product-card .ge-btn-cart:hover {
  color: #ffffff !important;
  background: #12813b !important;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28) !important;
  transform: translateY(-1px) !important;
}

.product-card .ge-btn-cart:focus-visible {
  outline: 3px solid rgba(8, 102, 198, 0.3) !important;
  outline-offset: 2px !important;
}

.product-card .ge-btn-cart:active {
  transform: scale(0.98) !important;
  box-shadow: none !important;
}

.product-card .ge-btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
}

.product-card .ge-btn-cart svg {
  display: block !important;
  width: 15px !important;
  height: 15px !important;
  fill: currentColor !important;
}

.product-card .ge-btn-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.product-card .ge-btn-spinner {
  display: none !important;
  width: 14px !important;
  height: 14px !important;
  flex: 0 0 14px !important;
  box-sizing: border-box !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: ge-spin 0.7s linear infinite !important;
}

.product-card .ge-btn-cart.is-loading {
  background: #0f766e !important;
  pointer-events: none !important;
}

.product-card .ge-btn-cart.is-loading .ge-btn-icon {
  display: none !important;
}

.product-card .ge-btn-cart.is-loading .ge-btn-spinner {
  display: inline-block !important;
}

.product-card .ge-btn-cart.is-success {
  background: #15803d !important;
}

.product-card .ge-btn-cart.is-error {
  background: var(--ge-danger) !important;
}

.product-card .ge-btn-cart.is-disabled,
.product-card .ge-btn-cart:disabled {
  color: #64748b !important;
  background: #e2e8f0 !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.product-card .ge-btn-cart.is-disabled:hover,
.product-card .ge-btn-cart:disabled:hover {
  color: #64748b !important;
  background: #e2e8f0 !important;
  box-shadow: none !important;
  transform: none !important;
}

@keyframes ge-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Wishlist ---------- */

.product-card .ge-wishlist-wrap {
  display: flex !important;
  flex: 0 0 36px !important;
  width: 36px !important;
  height: 36px !important;
  align-items: center !important;
  justify-content: center !important;
}

.product-card .ge-wishlist-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  box-sizing: border-box !important;
  color: #db2777 !important;
  background: #fce7f3 !important;
  border: 1px solid #fbcfe8 !important;
  border-radius: 12px !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}

.product-card .ge-wishlist-btn:hover {
  color: #ffffff !important;
  background: #db2777 !important;
  border-color: #db2777 !important;
  box-shadow: 0 6px 16px rgba(219, 39, 119, 0.26) !important;
  transform: translateY(-1px) !important;
}

.product-card .ge-wishlist-btn:focus-visible {
  outline: 3px solid rgba(219, 39, 119, 0.28) !important;
  outline-offset: 2px !important;
}

.product-card .ge-wishlist-btn:active {
  transform: scale(0.96) !important;
}

.product-card .ge-wishlist-btn svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  fill: transparent !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    transform 0.2s ease !important;
}

.product-card .ge-wishlist-btn:hover svg {
  transform: scale(1.08) !important;
}

.product-card .ge-wishlist-btn.elementor-active {
  color: #ffffff !important;
  background: var(--ge-danger) !important;
  border-color: var(--ge-danger) !important;
}

.product-card .ge-wishlist-btn.elementor-active svg {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}

/* Sold-out cards keep the wishlist fully usable. */
.product-card.is-out-of-stock .ge-wishlist-btn {
  opacity: 1 !important;
}

/* ============================================================
   7. CAROUSEL
   ============================================================ */

.product-carousel .product-card {
  width: 140px !important;
  flex: 0 0 140px !important;
  padding: 8px !important;
  border-radius: 14px !important;
}

.product-carousel .product-card .card-product-image {
  margin-bottom: 7px !important;
  padding: 7px !important;
  border-radius: 9px !important;
}

.product-carousel .product-card .card-product-title {
  min-height: 4.6rem !important;
}

.product-carousel .product-card .ce-product-name {
  font-size: 0.76rem !important;
}

.product-carousel .product-card .ge-badge {
  max-width: 100% !important;
  padding: 3px 6px !important;
  font-size: 0.49rem !important;
}

.product-carousel .product-card .ge-badge-trust {
  display: none !important;
}

.product-carousel .product-card .ge-product-meta {
  font-size: 0.61rem !important;
}

.product-carousel .product-card .ge-btn-cart,
.product-carousel .product-card .ge-wishlist-btn,
.product-carousel .product-card .ge-wishlist-wrap {
  height: 32px !important;
}

.product-carousel .product-card .ge-btn-cart {
  width: 100% !important;
  min-width: 0 !important;
}

.product-carousel .product-card .ge-wishlist-wrap {
  width: 32px !important;
  flex-basis: 32px !important;
}

.product-carousel .product-card .ge-wishlist-btn {
  width: 32px !important;
}

/* ============================================================
   8. LIST VIEW
   ============================================================ */

.list-style .products-list .product-card {
  height: auto !important;
}

.list-style .products-list .product-card .ge-card__link {
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.list-style .products-list .product-card .card-product-image {
  flex: 0 0 132px !important;
  width: 132px !important;
  height: 132px !important;
  min-height: 132px !important;
  aspect-ratio: auto !important;
  margin: 0 !important;
  padding: 6px !important;
}

.list-style .products-list .product-card .card-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.list-style .products-list .product-card .card-product-body {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  align-self: stretch !important;
  gap: 6px !important;
}

.list-style .products-list .product-card .card-product-title {
  min-height: 0 !important;
}

/* Size stock labels from their image container, not the viewport alone. */
.product-card .card-product-image {
  container-type: inline-size;
}

.product-card .card-product-image .ge-badges {
  inset: clamp(5px, 2.4cqi, 9px) !important;
}

.product-card .card-product-image .ge-badge {
  padding: 3px 7px !important;
  font-size: clamp(0.6rem, 0.72vw, 0.72rem) !important;
  line-height: 1.2 !important;
  overflow: visible !important;
  text-overflow: clip !important;
  white-space: normal !important;
}

@supports (font-size: 1cqi) {
  .product-card .card-product-image .ge-badge {
    padding: clamp(3px, 1.3cqi, 5px) clamp(6px, 2.2cqi, 9px) !important;
    font-size: clamp(0.6rem, 3cqi, 0.72rem) !important;
  }
}

.product-card .card-product-image .ge-badge > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.product-card .card-product-image .ge-badge svg {
  width: clamp(9px, 3.4cqi, 12px) !important;
  height: clamp(9px, 3.4cqi, 12px) !important;
}

.product-card .ge-badge-stok-terbatas {
  color: #451a03 !important;
  background: #f59e0b !important;
}

.product-card .ge-badge-ready-stok {
  color: #ffffff !important;
  background: #15803d !important;
}

.product-card .ge-soldout {
  inset: auto !important;
  bottom: 6px !important;
  left: 6px !important;
  z-index: 4 !important;
  display: flex !important;
  width: max-content !important;
  max-width: calc(100% - 12px) !important;
  height: auto !important;
  background: transparent !important;
  place-items: initial !important;
}

.product-card .ge-soldout span {
  max-width: 100% !important;
  padding: 5px 9px !important;
  border-radius: 999px !important;
  color: #ffffff !important;
  background: #dc2626 !important;
  font-size: clamp(0.62rem, 0.72vw, 0.82rem) !important;
  letter-spacing: 0.03em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

@supports (font-size: 1cqi) {
  .product-card .ge-soldout {
    bottom: clamp(6px, 2.8cqi, 10px) !important;
    left: clamp(6px, 2.8cqi, 10px) !important;
  }

  .product-card .ge-soldout span {
    padding: clamp(4px, 1.6cqi, 7px) clamp(7px, 3cqi, 12px) !important;
    font-size: clamp(0.62rem, 3cqi, 0.82rem) !important;
  }
}

/* Replace the theme's full-width fixed sort sheet with a compact anchored menu. */
body.page-index #js-product-list-top,
body.page-search #js-product-list-top,
body.page-category #js-product-list-top,
body.page-manufacturer #js-product-list-top,
body.page-index .sort-by-row,
body.page-search .sort-by-row,
body.page-category .sort-by-row,
body.page-manufacturer .sort-by-row {
  overflow: visible !important;
}

body.page-index:has(.products-sort-order.open) > #overlay.active,
body.page-search:has(.products-sort-order.open) > #overlay.active,
body.page-category:has(.products-sort-order.open) > #overlay.active,
body.page-manufacturer:has(.products-sort-order.open) > #overlay.active {
  background-color: transparent;
}

body.page-index .products-sort-order,
body.page-search .products-sort-order,
body.page-category .products-sort-order,
body.page-manufacturer .products-sort-order {
  position: relative !important;
  z-index: 2;
  width: auto !important;
  flex: 0 0 auto;
}

body.page-index .products-sort-order.open,
body.page-search .products-sort-order.open,
body.page-category .products-sort-order.open,
body.page-manufacturer .products-sort-order.open {
  z-index: 10001;
}

body.page-index .products-sort-order .select-title,
body.page-search .products-sort-order .select-title,
body.page-category .products-sort-order .select-title,
body.page-manufacturer .products-sort-order .select-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  width: auto !important;
  padding: 0 11px !important;
  border: 1px solid #d5e0e5 !important;
  border-radius: 11px !important;
  color: #29404a !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 43, 70, 0.07) !important;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

body.page-index .products-sort-order .select-title svg,
body.page-search .products-sort-order .select-title svg,
body.page-category .products-sort-order .select-title svg,
body.page-manufacturer .products-sort-order .select-title svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

body.page-index .products-sort-order .select-title:hover,
body.page-search .products-sort-order .select-title:hover,
body.page-category .products-sort-order .select-title:hover,
body.page-manufacturer .products-sort-order .select-title:hover,
body.page-index .products-sort-order.open .select-title,
body.page-search .products-sort-order.open .select-title,
body.page-category .products-sort-order.open .select-title,
body.page-manufacturer .products-sort-order.open .select-title {
  border-color: #087c92 !important;
  color: #087c92 !important;
  background: #f4fbfc !important;
  box-shadow: 0 3px 10px rgba(8, 124, 146, 0.12) !important;
}

body.page-index .products-sort-order .select-title:focus-visible,
body.page-search .products-sort-order .select-title:focus-visible,
body.page-category .products-sort-order .select-title:focus-visible,
body.page-manufacturer .products-sort-order .select-title:focus-visible {
  outline: 3px solid rgba(8, 124, 146, 0.24);
  outline-offset: 2px;
}

body.page-index .products-sort-order.open > .dropdown-menu,
body.page-search .products-sort-order.open > .dropdown-menu,
body.page-category .products-sort-order.open > .dropdown-menu,
body.page-manufacturer .products-sort-order.open > .dropdown-menu {
  display: flex !important;
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: auto !important;
  bottom: auto !important;
  left: 0 !important;
  z-index: 10002 !important;
  box-sizing: border-box !important;
  width: min(320px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(65vh, 360px) !important;
  margin: 0 !important;
  padding: 8px !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  border: 1px solid #d5e0e5;
  border-radius: 14px !important;
  background: #ffffff !important;
  box-shadow: 0 14px 32px rgba(15, 43, 70, 0.16) !important;
  gap: 4px !important;
  overscroll-behavior: contain;
}

body.page-index .products-sort-order.open > .dropdown-menu > .select-list,
body.page-search .products-sort-order.open > .dropdown-menu > .select-list,
body.page-category .products-sort-order.open > .dropdown-menu > .select-list,
body.page-manufacturer .products-sort-order.open > .dropdown-menu > .select-list {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
  padding: 9px 12px !important;
  border-left: 3px solid transparent;
  border-radius: 9px !important;
  color: #29404a !important;
  background: transparent !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  white-space: normal !important;
  transition: border-color 140ms ease, color 140ms ease, background-color 140ms ease;
}

body.page-index .products-sort-order.open > .dropdown-menu > .select-list:hover,
body.page-search .products-sort-order.open > .dropdown-menu > .select-list:hover,
body.page-category .products-sort-order.open > .dropdown-menu > .select-list:hover,
body.page-manufacturer .products-sort-order.open > .dropdown-menu > .select-list:hover,
body.page-index .products-sort-order.open > .dropdown-menu > .select-list:focus-visible,
body.page-search .products-sort-order.open > .dropdown-menu > .select-list:focus-visible,
body.page-category .products-sort-order.open > .dropdown-menu > .select-list:focus-visible,
body.page-manufacturer .products-sort-order.open > .dropdown-menu > .select-list:focus-visible {
  border-left-color: #087c92;
  color: #075c6c !important;
  background: #f2f8f9 !important;
  outline: none;
}

body.page-index .products-sort-order.open > .dropdown-menu > .select-list.current,
body.page-search .products-sort-order.open > .dropdown-menu > .select-list.current,
body.page-category .products-sort-order.open > .dropdown-menu > .select-list.current,
body.page-manufacturer .products-sort-order.open > .dropdown-menu > .select-list.current {
  border-left-color: #087c92;
  color: #075c6c !important;
  background: #eaf5f7 !important;
  font-weight: 700 !important;
}

.list-style .products-list .product-card .ce-product-name h3 {
  min-height: 0 !important;
  max-height: 3.9em !important;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */

@media (max-width: 767px) {
  .product-card {
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .product-card .card-product-image {
    margin-bottom: 8px !important;
    padding: 8px !important;
  }

  .product-card .card-product-title {
    min-height: 4.9rem !important;
  }

  .product-card .ce-product-name {
    font-size: 0.8rem !important;
  }

  .product-card .ce-product-price-real {
    font-size: 0.94rem !important;
  }

  .product-card .ge-badge {
    font-size: 0.52rem !important;
    padding: 3px 6px !important;
  }

  .product-card .ge-btn-cart,
  .product-card .ge-wishlist-btn,
  .product-card .ge-wishlist-wrap {
    height: 34px !important;
  }

  .product-card .ge-wishlist-wrap {
    width: 34px !important;
    flex-basis: 34px !important;
  }

  .product-card .ge-wishlist-btn {
    width: 34px !important;
  }

  .list-style .products-list .product-card .card-product-image {
    flex-basis: 112px !important;
    width: 112px !important;
    height: 112px !important;
    min-height: 112px !important;
  }
}

@media (max-width: 560px) {
  .elementor-product-grid .product-card,
  .card-style .products-list .product-card {
    width: 100% !important;
    max-width: 100% !important;
  }

  .product-card .ge-badge-trust {
    display: none !important;
  }

  .product-card .card-product-title {
    min-height: 4.7rem !important;
  }
}

@media (max-width: 400px) {
  .product-card .ge-rating svg {
    width: 12px !important;
    height: 12px !important;
    flex-basis: 12px !important;
  }

  .product-card .ge-product-meta {
    font-size: 0.63rem !important;
  }

  .product-card .ge-badge {
    font-size: 0.48rem !important;
    padding: 3px 5px !important;
  }
}

/* ============================================================
   11. LAYOUT WIDTH — full marketplace-style width (body to footer)
   ============================================================ */

/* Product grids: auto-fill columns so they never overflow the container.
   Fixed column counts from theme.css (repeat(6/7...)) are overridden with
   an auto-fill pattern that adapts to the container width. */
.elementor-product-grid,
.card-style .products-list {
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.elementor-product-grid .product-card,
.card-style .products-list .product-card {
  width: 100% !important;
  max-width: 100% !important;
}

.elementor-product-grid .product-card img,
.products-list .product-card img {
  width: 100% !important;
  height: auto !important;
}

.list-style .products-list {
  display: block !important;
}

/* Use the available page width for every section, not just the hero. */
body.page-index.layout-full-width .container:not(.elementor-search__container):not(.progress-container):not(.notifications-container) {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding-left: clamp(16px, 2.5vw, 36px) !important;
  padding-right: clamp(16px, 2.5vw, 36px) !important;
}

body.page-index.layout-full-width .elementor-section-boxed > .elementor-container {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding-left: clamp(16px, 2.5vw, 36px) !important;
  padding-right: clamp(16px, 2.5vw, 36px) !important;
}

body.page-index.layout-full-width .elementor-widget-products .elementor-widget-container,
body.page-index.layout-full-width .card-style,
body.page-index.layout-full-width .elementor-product-grid {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-index.layout-full-width #content,
body.page-index.layout-full-width .page-home {
  width: 100% !important;
  max-width: 100% !important;
}

body.page-index.layout-full-width .page-home {
  align-items: stretch !important;
}

/* Footer stretch edge-to-edge content like Shopee/Tokopedia. */
.page-index .footer-container,
.page-index #footer .footer-container,
.page-index .footer-detail,
.page-index .footer-top {
  width: 100% !important;
}

.page-index .footer-container .container,
.page-index #footer .container {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* ============================================================
   12. FOOTER CLEANUP — Store information accordion
   Fix broken Material Icons (font often blocked) and the
   duplicated "Store information" heading on desktop.
   ============================================================ */

/* Render the collapse chevrons with inline SVG glyphs so they never
   show raw ligature text like "keyboard_arrow_down". */
.page-index .block-contact .collapse-icons .material-icons {
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  overflow: hidden !important;
  color: transparent !important;
  vertical-align: middle !important;
  text-indent: -9999px !important;
  background: currentColor no-repeat center / contain !important;
  -webkit-mask: none !important;
}

.page-index .block-contact .collapse-icons .material-icons.add {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f2b46'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
  transform: rotate(180deg) !important;
}

.page-index .block-contact .collapse-icons .material-icons.remove {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230f2b46'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") !important;
}

/* Same fix for the mega-menu arrow chevrons. */
.page-index .mega-next-list .material-icons {
  display: inline-block !important;
  width: 16px !important;
  height: 16px !important;
  overflow: hidden !important;
  color: transparent !important;
  text-indent: -9999px !important;
  background: currentColor no-repeat center / contain !important;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='currentColor'%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6z'/%3E%3C/svg%3E") !important;
  vertical-align: middle !important;
}

/* Hide the duplicated static title while retaining the mobile accordion label. */
.page-index .block-contact .block-contact-title {
  display: none !important;
}

@media (min-width: 768px) {
  .page-index .block-contact .title.hidden-md-up {
    display: none !important;
  }
}

/* ============================================================
   13. LOGIN PAGE
   Consistent field widths and a wider, centred card.
   ============================================================ */

.page-authentication #content {
  display: block !important;
  flex: none !important;
  width: 100% !important;
  max-width: 480px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: clamp(24px, 4vw, 40px) !important;
  box-sizing: border-box !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 24px !important;
  box-shadow: 0 18px 48px rgba(15, 43, 70, 0.14) !important;
}

.page-authentication #content-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
}

.page-authentication #main {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100% !important;
}

.page-authentication .login-form,
.page-authentication #login-form {
  width: 100% !important;
  max-width: 100% !important;
}

.page-authentication .form-footer {
  display: block !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}

.page-authentication #google-button-container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 16px !important;
}

.page-authentication #google-button-container > div {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 !important;
}

.page-authentication #google-button-container iframe {
  width: 217px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.page-authentication .form-group,
.page-authentication .js-input-column {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 16px !important;
}

.page-authentication #field-email,
.page-authentication #field-password,
.page-authentication .input-group {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.page-authentication .input-group {
  position: relative !important;
  display: block !important;
}

.page-authentication #field-email,
.page-authentication #field-password {
  height: 52px !important;
  padding: 12px 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

.page-authentication #field-password {
  padding-right: 52px !important;
}

.page-authentication .input-group-btn {
  position: absolute !important;
  top: 50% !important;
  right: 12px !important;
  z-index: 5 !important;
  transform: translateY(-50%) !important;
}

.page-authentication #submit-login {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 52px !important;
  margin: 20px 0 0 !important;
  padding: 12px 20px !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  background: #0ea5e9 !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  cursor: pointer !important;
}

@media (max-width: 767px) {
  .page-authentication #content {
    max-width: 480px !important;
    width: calc(100% - 24px) !important;
    margin: 0 auto !important;
    padding: 24px !important;
  }

  .product-card .card-product-image .ge-watermark {
    top: 8px !important;
    left: 8px !important;
    right: auto !important;
    bottom: auto !important;
    width: 52px !important;
    height: 52px !important;
  }

  .product-card .ge-btn-cart {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
  }

  .product-carousel .product-card .ge-btn-cart {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
  }
}

/* ============================================================
   10. ACCESSIBILITY
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card:hover,
  .product-card .card-product-image img,
  .product-card:hover .card-product-image img,
  .product-card .ge-btn-cart,
  .product-card .ge-wishlist-btn,
  .product-card .ge-wishlist-btn svg {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Homepage-only carousel limits. */
.page-index .image-carousel > .ge-image-carousel:nth-child(n + 16),
.page-index .product-carousel > :nth-child(n + 16),
.page-index [class*="mitra"] .ge-image-carousel:nth-child(n + 16),
.page-index [class*="mitra"] .ge-image-list:nth-child(n + 16),
.page-index [class*="partner"] .ge-image-carousel:nth-child(n + 16),
.page-index [class*="partner"] .ge-image-list:nth-child(n + 16),
.page-index [class*="store"] .ge-image-carousel:nth-child(n + 16),
.page-index [class*="store"] .ge-image-list:nth-child(n + 16),
.page-index .new-products .product-miniature:nth-child(n + 16),
.page-index .featured-products .product-miniature:nth-child(n + 16) {
  display: none !important;
}

.page-index [class*="mitra"] .ge-image-carousel,
.page-index [class*="mitra"] .ge-image-list,
.page-index [class*="partner"] .ge-image-carousel,
.page-index [class*="partner"] .ge-image-list,
.page-index [class*="store"] .ge-image-carousel,
.page-index [class*="store"] .ge-image-list {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.page-index .container-brand {
  overflow: hidden;
}

.page-index .ge-brand-marquee {
  width: 100%;
  overflow: hidden;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.page-index .ge-brand-marquee__track {
  display: flex;
  width: max-content;
  animation: ge-brand-marquee-scroll var(--ge-brand-scroll-duration, 42s) linear infinite;
  will-change: transform;
}

.page-index .ge-brand-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(24px, 3vw, 44px);
  padding-right: clamp(24px, 3vw, 44px);
}

.page-index .ge-brand-marquee__item {
  display: flex;
  flex: 0 0 112px;
  width: 112px;
  height: 82px;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none;
}

.page-index .ge-brand-marquee__item img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  background: transparent !important;
}

.page-index .ge-brand-marquee__name {
  color: #334155;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.page-index .ge-brand-marquee:hover .ge-brand-marquee__track,
.page-index .ge-brand-marquee:focus-within .ge-brand-marquee__track {
  animation-play-state: paused;
}

@keyframes ge-brand-marquee-scroll {
  to {
    transform: translateX(-50%);
  }
}

body.ge-brand-index .brand-list-page .brand-list {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.ge-brand-index .brand-list-page .brand-list a {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: center;
  background: transparent !important;
}

body.ge-brand-index .brand-list-page .brand-list img {
  width: 100%;
  max-width: 150px;
  height: 110px;
  object-fit: contain;
  background: transparent !important;
}

body.ge-brand-index .ge-brand-logo-fallback {
  color: #475569;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .page-index .ge-brand-marquee {
    overflow-x: auto;
  }

  .page-index .ge-brand-marquee__track {
    animation: none;
  }
}

/* Keep product details constrained to the page width instead of the gallery's
   intrinsic image-track width. */
body.page-product .container-product-main,
body.page-product .product-container,
body.page-product .container-image-product,
body.page-product .container-image-h,
body.page-product .images-container,
body.page-product .image-track,
body.page-product .product-image-list,
body.page-product .container-product-detail,
body.page-product .product-details {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-product .container-product-main {
  width: 100% !important;
}

body.page-product .container-product-main > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-product .container-product-main .w-100p {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-product .product-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
  column-gap: clamp(16px, 2vw, 28px) !important;
  align-items: start !important;
  width: 100% !important;
}

body.page-product .product-container > *,
body.page-product .container-product-detail > *,
body.page-product .product-details > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body.page-product .container-image-product,
body.page-product .container-image-h,
body.page-product .images-container,
body.page-product .image-track,
body.page-product .product-image-list {
  width: 100% !important;
}

body.page-product .container-image-product,
body.page-product .images-container {
  overflow: hidden !important;
}

body.page-product .product-image-list {
  flex: 0 0 100% !important;
}

body.page-product .product-image-ge {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

body.page-product .container-product-detail {
  width: 100% !important;
  max-width: 360px !important;
}

body.page-product .product-details {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)) !important;
  width: 100% !important;
}

body.page-index #js-product-list.list-style,
body.page-manufacturer #js-product-list.list-style,
body.page-category #js-product-list.list-style {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 100% !important;
}

/* Both view modes use a responsive card grid; list mode no longer forces one
   oversized horizontal row per product. */
body.page-index #js-product-list.card-style .products-list,
body.page-index #js-product-list.list-style .products-list,
body.page-manufacturer .card-style .products-list,
body.page-manufacturer .list-style .products-list,
body.page-category .card-style .products-list,
body.page-category .list-style .products-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)) !important;
  align-items: stretch !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

body.page-index #js-product-list.list-style .products-list .product-card,
body.page-manufacturer .list-style .products-list .product-card,
body.page-category .list-style .products-list .product-card {
  height: 100% !important;
  min-width: 0 !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .ge-card__link,
body.page-manufacturer .list-style .products-list .product-card .ge-card__link,
body.page-category .list-style .products-list .product-card .ge-card__link {
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 0 !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-image,
body.page-manufacturer .list-style .products-list .product-card .card-product-image,
body.page-category .list-style .products-list .product-card .card-product-image {
  flex: 0 0 auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 0 10px !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-image img,
body.page-manufacturer .list-style .products-list .product-card .card-product-image img,
body.page-category .list-style .products-list .product-card .card-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-body,
body.page-manufacturer .list-style .products-list .product-card .card-product-body,
body.page-category .list-style .products-list .product-card .card-product-body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

/* Responsive sorting, view-switch and module filter controls. */
body.page-manufacturer #js-product-list-top,
body.page-category #js-product-list-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  width: 100% !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}

body.page-manufacturer #js-product-list-top > .col-md-6,
body.page-category #js-product-list-top > .col-md-6 {
  flex: 1 1 320px !important;
  width: auto !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-manufacturer .products-sort-order .select-title,
body.page-category .products-sort-order .select-title {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 12px !important;
  border: 1px solid #d5e0e5 !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 43, 70, 0.06) !important;
}

body.page-manufacturer .display-sort,
body.page-category .display-sort {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

body.page-manufacturer .display-sort .cardStyle,
body.page-manufacturer .display-sort .listStyle,
body.page-category .display-sort .cardStyle,
body.page-category .display-sort .listStyle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  border: 1px solid #d5e0e5 !important;
  border-radius: 10px !important;
  color: #35505d !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease !important;
}

body.page-manufacturer .display-sort .cardStyle.active,
body.page-manufacturer .display-sort .listStyle.active,
body.page-category .display-sort .cardStyle.active,
body.page-category .display-sort .listStyle.active {
  border-color: #087c92 !important;
  color: #ffffff !important;
  background: #087c92 !important;
}

body.page-manufacturer .display-sort svg,
body.page-category .display-sort svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

body.page-manufacturer .fpp_searchers .searcher-footer button,
body.page-category .fpp_searchers .searcher-footer button {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  background: #087c92 !important;
}

body.page-manufacturer .selected-option-content .btn-reset-filter,
body.page-category .selected-option-content .btn-reset-filter {
  min-height: 40px !important;
  border: 1px solid #d5e0e5 !important;
  border-radius: 9px !important;
  color: #35505d !important;
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  body.page-product .container-product-main .product-container {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-product .container-product-main .container-product-detail {
    max-width: none !important;
  }
}

@media (max-width: 767px) {
  body.page-manufacturer #js-product-list-top,
  body.page-category #js-product-list-top {
    gap: 8px !important;
  }

  body.page-manufacturer #js-product-list-top > .col-md-6,
  body.page-category #js-product-list-top > .col-md-6 {
    flex-basis: 100% !important;
  }

  body.page-index #js-product-list.card-style .products-list,
  body.page-index #js-product-list.list-style .products-list,
  body.page-manufacturer .card-style .products-list,
  body.page-manufacturer .list-style .products-list,
  body.page-category .card-style .products-list,
  body.page-category .list-style .products-list {
    grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)) !important;
    gap: 12px !important;
  }

  body.page-product #shipping-method,
  body.page-product #payment-methods {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 4px !important;
  }

  body.page-product #shipping-method .sub-title-detail,
  body.page-product #payment-methods .sub-title-detail {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body.page-product .social-sharing {
    display: flex !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 8px !important;
  }

  body.page-product .social-sharing > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  body.page-manufacturer #icon-searchers-mobile,
  body.page-category #icon-searchers-mobile {
    position: fixed !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    z-index: 6000 !important;
    display: grid !important;
    place-items: center !important;
    width: 52px !important;
    height: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    color: #ffffff !important;
    background: #087c92 !important;
    box-shadow: 0 8px 22px rgba(8, 124, 146, 0.28) !important;
  }

  body.page-manufacturer #content-searchers-mobile,
  body.page-category #content-searchers-mobile {
    height: 100vh !important;
    height: 100dvh !important;
    overflow-y: auto !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
}

@media (min-width: 1200px) {
  body.page-index #js-product-list.card-style .products-list,
  body.page-index #js-product-list.list-style .products-list,
  body.page-manufacturer .card-style .products-list,
  body.page-manufacturer .list-style .products-list,
  body.page-category .card-style .products-list,
  body.page-category .list-style .products-list {
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)) !important;
  }
}

/* Keep List mode visually distinct while retaining a responsive multi-column layout. */
body.page-index #js-product-list.list-style .products-list,
body.page-manufacturer .list-style .products-list,
body.page-category .list-style .products-list {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .ge-card__link,
body.page-manufacturer .list-style .products-list .product-card .ge-card__link,
body.page-category .list-style .products-list .product-card .ge-card__link {
  flex-direction: row !important;
  align-items: center !important;
  gap: 10px !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-image,
body.page-manufacturer .list-style .products-list .product-card .card-product-image,
body.page-category .list-style .products-list .product-card .card-product-image {
  flex: 0 0 112px !important;
  width: 112px !important;
  height: 112px !important;
  min-height: 112px !important;
  aspect-ratio: 1 / 1 !important;
  margin: 0 !important;
  padding: 6px !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-body,
body.page-manufacturer .list-style .products-list .product-card .card-product-body,
body.page-category .list-style .products-list .product-card .card-product-body {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  align-self: stretch !important;
}

body.page-index #js-product-list.list-style .products-list .product-card .card-product-title,
body.page-manufacturer .list-style .products-list .product-card .card-product-title,
body.page-category .list-style .products-list .product-card .card-product-title {
  min-height: 0 !important;
}

/* Keep the limited-stock label readable over the smaller image in List view. */
.list-style .products-list .product-card .card-product-image .ge-badge-status {
  gap: 0 !important;
  padding: 3px 5px !important;
  font-size: clamp(0.56rem, 3cqi, 0.68rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.15 !important;
  white-space: normal !important;
}

.list-style .products-list .product-card .card-product-image .ge-badge-status svg {
  display: none !important;
}

.list-style .products-list .product-card .card-product-image .ge-badge-status > span {
  display: block !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

@media (min-width: 1200px) {
  body.page-index #js-product-list.list-style .products-list,
  body.page-manufacturer .list-style .products-list,
  body.page-category .list-style .products-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 767px) {
  body.page-index #js-product-list.list-style .products-list,
  body.page-manufacturer .list-style .products-list,
  body.page-category .list-style .products-list {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.page-index #js-product-list.list-style .products-list .product-card .card-product-image,
  body.page-manufacturer .list-style .products-list .product-card .card-product-image,
  body.page-category .list-style .products-list .product-card .card-product-image {
    flex-basis: 96px !important;
    width: 96px !important;
    height: 96px !important;
    min-height: 96px !important;
  }
}
