/* ═══════════════════════════════════════
   JELDEEX — Base & Utilities
   Black & White Theme
   ═══════════════════════════════════════ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
  display: inline-block;
  vertical-align: middle;
  font-size: inherit;
}

/* ── Wrapper ── */
.jlx-wrap {
  color: #111111;
  font-family: 'Manrope', sans-serif;
}
.jlx-wrap *,
.jlx-wrap *::before,
.jlx-wrap *::after {
  box-sizing: border-box;
}

.jlx-main    { padding: 48px 32px 80px; max-width: 1400px; margin: 0 auto; }
.jlx-ck-main { padding: 48px 32px 80px; max-width: 1440px; margin: 0 auto; }

/* ── Utility ── */
.jlx-wrap .jlx-gold  { color: #111111 !important; }
.jlx-wrap .jlx-green { color: #22c55e !important; }
.jlx-wrap .jlx-brand-name {
  font-size: 22px; font-weight: 800; color: #111111;
  letter-spacing: 0.05em; text-decoration: none;
}
.jlx-ck-brand { margin-bottom: 28px; }

/* Arabic text in labels */
.jlx-ar {
  font-family: 'Noto Sans Arabic', 'Manrope', sans-serif;
  unicode-bidi: bidi-override;
  direction: rtl;
  font-size: 0.9em;
  color: #888;
}

/* ── Buttons ── */
.jlx-btn-gold {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 24px; background: #111111; color: #ffffff !important;
  font-weight: 700; border-radius: 8px; text-decoration: none;
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.2s;
}
.jlx-btn-gold:hover { background: #333333; }

.jlx-btn-outline {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 24px; background: transparent; color: #666 !important;
  font-weight: 600; border-radius: 8px; text-decoration: none;
  font-size: 13px; border: 1px solid #e0e0e0;
  transition: color 0.2s, border-color 0.2s;
}
.jlx-btn-outline:hover { color: #111 !important; border-color: #999; }

.jlx-btn-checkout-main {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; padding: 15px; margin-top: 18px;
  background: #111111; color: #ffffff;
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.12em; border: none; border-radius: 10px;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s; font-family: 'Manrope', sans-serif;
}
.jlx-btn-checkout-main:hover { background: #333333; color: #ffffff; }

/* ── Promo ── */
.jlx-promo-row { display: flex; gap: 7px; }
.jlx-wrap .jlx-promo-row input {
  flex: 1; background: #f5f5f5; border: 1px solid #e0e0e0;
  border-radius: 6px; padding: 10px 12px; color: #111;
  font-size: 12px; outline: none; transition: border-color 0.2s;
  font-family: 'Manrope', sans-serif;
}
.jlx-wrap .jlx-promo-row input:focus { border-color: #111; }
.jlx-wrap .jlx-promo-row button {
  padding: 10px 14px; border: 1px solid #111; background: transparent;
  color: #111; font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; cursor: pointer;
  border-radius: 6px; font-family: 'Manrope', sans-serif;
}
.jlx-wrap .jlx-promo-row button:hover { background: #111; color: #fff; }
.jlx-promo-msg { font-size: 11px; min-height: 14px; margin-top: 6px; }

/* ── Breakdown ── */
.jlx-breakdown { border-top: 1px solid #e5e5e5; padding-top: 14px; margin-top: 14px; }
.jlx-br-row {
  display: flex; justify-content: space-between;
  font-size: 13px; color: #888; padding: 4px 0;
}
.jlx-br-total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 12px; border-top: 1px solid #e5e5e5; margin-top: 7px;
}
.jlx-br-total span:first-child {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.18em; color: #888;
}
.jlx-total-val { font-size: 24px !important; font-weight: 800 !important; color: #111 !important; }
.jlx-divider { height: 1px; background: #e5e5e5; margin: 14px 0; }

/* ── Trust ── */
.jlx-trust-badges {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 14px; justify-content: center;
}
.jlx-trust-item {
  display: flex; align-items: center; gap: 4px;
  background: #f5f5f5; padding: 5px 10px; border-radius: 20px;
  border: 1px solid #e5e5e5; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: #888;
}
.jlx-trust-item .material-symbols-outlined { font-size: 12px; color: #111; }

/* ── Field errors ── */
.jlx-req { color: #ef4444; }
.jlx-field-error {
  font-size: 11px; color: #ef4444; margin-top: 4px;
  min-height: 14px; display: block;
}

/* ── Spinner ── */
.jlx-spin { animation: jlxSpin 1s linear infinite; display: inline-block; }

/* ── Animations ── */
@keyframes jlxFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes jlxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes jlxSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ── Responsive (base) ── */
@media (max-width: 768px) {
  .jlx-main, .jlx-ck-main { padding: 20px 14px 60px; }
}

/* ── Astra cart icon fix ── */
.ast-cart-menu-wrap,
.ast-header-woo-cart {
  background: transparent !important;
  color: #111111 !important;
}
.ast-cart-menu-wrap .ast-icon,
.ast-cart-menu-wrap svg,
.ast-header-woo-cart svg,
.ast-cart-menu-wrap .astra-icon {
  fill: #111111 !important;
  color: #111111 !important;
}
.ast-cart-menu-wrap .widget_shopping_cart,
.ast-cart-menu-wrap .woocommerce-mini-cart {
  display: none !important;
}

/* ── Product page: inline both buttons ── */
.woocommerce div.product form.cart {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  gap: 10px !important;
}
.woocommerce div.product form.cart .quantity {
  margin-right: 0 !important;
}

/* ── Buttons row: side by side on desktop ── */
.woocommerce div.product form.cart .single_add_to_cart_button,
.woocommerce div.product form.cart .jlx-buy-now-btn {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  white-space: nowrap !important;
}

/* ── Hide ShopEngine comparison icon on product page ── */
.shopengine_comparison_add_to_list_action,
.shopengine-comparison,
[class*="shopengine_comparison"],
[class*="shopengine-comparison"] {
  display: none !important;
}

/* ── Product page mobile: stack buttons ── */
@media (max-width: 768px) {
  .woocommerce div.product form.cart {
    flex-direction: column !important;
    gap: 8px !important;
  }
  .woocommerce div.product form.cart .quantity {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
  }
  .woocommerce div.product form.cart .single_add_to_cart_button,
  .woocommerce div.product form.cart .jlx-buy-now-btn {
    width: 100% !important;
    flex: none !important;
    white-space: normal !important;
    padding: 14px 16px !important;
    font-size: 13px !important;
    text-align: center !important;
    justify-content: center !important;
  }
}
body .woocommerce div.product form.cart .single_add_to_cart_button,
body.woocommerce .product form.cart button.single_add_to_cart_button,
body .single_add_to_cart_button.button.alt {
  flex: 1 1 0 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  padding: 14px 20px !important; margin: 0 !important;
  background: #111111 !important; color: #ffffff !important;
  border: 2px solid #111111 !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important;
  font-family: 'Manrope', sans-serif !important;
  cursor: pointer !important; transition: all 0.25s ease !important;
  line-height: 1.2 !important;
  min-height: 48px !important;
  width: auto !important;
  box-shadow: none !important;
  text-shadow: none !important;
  -webkit-appearance: none !important;
}
body .woocommerce div.product form.cart .single_add_to_cart_button:hover,
body.woocommerce .product form.cart button.single_add_to_cart_button:hover,
body .single_add_to_cart_button.button.alt:hover {
  background: #333333 !important; border-color: #333333 !important; color: #ffffff !important;
}

/* ── Buy Now button (product page) ── */
.jlx-buy-now-btn {
  flex: 1 !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px !important;
  padding: 14px 20px !important; margin: 0 !important;
  background: #ffffff !important; color: #111111 !important;
  border: 2px solid #111111 !important; border-radius: 8px !important;
  font-size: 13px !important; font-weight: 700 !important;
  text-transform: uppercase !important; letter-spacing: 0.08em !important;
  text-decoration: none !important; cursor: pointer !important;
  transition: all 0.25s ease !important;
  font-family: 'Manrope', sans-serif !important;
  line-height: 1.2 !important;
}
.jlx-buy-now-btn:hover {
  background: #111111 !important; color: #ffffff !important;
}
.jlx-buy-now-btn:hover .material-symbols-outlined {
  color: #ffffff !important;
}
.jlx-buy-now-btn.loading { opacity: 0.6 !important; pointer-events: none !important; }
.jlx-buy-now-btn .material-symbols-outlined { font-size: 18px !important; color: #111111 !important; transition: color 0.25s !important; }

/* ── Hide wishlist / compare / share on product page ── */
.yith-wcwl-add-to-wishlist,
.yith-wcwl-wishlistaddedbrowse,
.yith-wcwl-wishlistexistsbrowse,
.compare-button,
.tinvwl-shortcode-add-to-cart,
.tinvwl_add_to_wishlist_button,
.woosw-btn,
.woosc-btn,
.ast-on-card-button.ast-wishlist-btn,
div.woocommerce-product-details__short-description + .yith-wcwl-add-to-wishlist,
.summary .yith-wcwl-add-to-wishlist,
.summary .compare,
.summary .woosw-btn,
.summary .woosc-btn,
.product-share,
.social-share,
.ast-share-box,
.woocommerce-product-details__wishlist,
.woocommerce-product-details__compare,
[class*="wishlist"],
[class*="compare-btn"],
[class*="woosw"],
[class*="woosc"],
.summary [class*="wish"],
.summary [class*="compare"] {
  display: none !important;
}

/* ── Keep Add-to-cart visible after AJAX ── */
.single_add_to_cart_button.added {
  display: inline-flex !important;
  opacity: 1 !important;
  visibility: visible !important;
}
/* Hide the default WC "View cart" message that replaces button */
.woocommerce-message,
a.added_to_cart {
  display: none !important;
}

/* ── Out-of-stock variation options: hidden ── */
.jlx-oos-option {
  display: none !important;
}
/* For swatch plugins (buttons/images) */
.jlx-oos-swatch {
  display: none !important;
}
