/*
Theme Name: JewelLux
Theme URI: https://example.com/jewellux
Author: JewelLux Studio
Author URI: https://example.com
Description: قالب وردپرس اختصاصی فروشگاه جواهرات با طراحی مدرن، راست‌چین (RTL)، رنگ‌بندی صورتی-کرم-طلایی، سازگار کامل با المنتور و ووکامرس و کاملاً بهینه برای موبایل.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jewellux
Tags: e-commerce, woocommerce, rtl, custom-colors, custom-menu, custom-logo, elementor, jewelry, responsive
*/

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root{
  --jl-cream:#FAF5F2;
  --jl-pink:#F3D9DC;
  --jl-pink-soft:#F8E8EA;
  --jl-gold:#D4AF7A;
  --jl-gold-dark:#B8935E;
  --jl-charcoal:#2B2826;
  --jl-white:#FFFFFF;
  --jl-gray:#8A8580;
  --jl-border:#E9E1DC;

  --jl-font-display:'Playfair Display', 'Vazirmatn', serif;
  --jl-font-body:'Vazirmatn', Tahoma, sans-serif;

  --jl-radius:6px;
  --jl-radius-lg:14px;
  --jl-container:1240px;
  --jl-gap:24px;

  --jl-transition:0.25s ease;

  /* --------------------------------------------------------------------
     Marketplace tokens — shop archive + product cards.
     Cooler, denser scale than the boutique tokens above: near-square
     corners, tight gutters, green for money and amber for ratings.
     -------------------------------------------------------------------- */
  --gb-accent:#91d65c;          /* price, primary action */
  --gb-accent-dark:#74b843;     /* hover */
  --gb-accent-soft:#f1faea;     /* tinted fills */
  --gb-star:#ffb726;            /* rating */
  --gb-ink:#32373c;             /* headings */
  --gb-ink-soft:#6b7280;        /* metadata */
  --gb-line:#e6e8eb;            /* hairlines */
  --gb-surface:#ffffff;
  --gb-surface-alt:#f9fafb;     /* page background behind cards */

  --gb-radius:8px;
  --gb-radius-sm:4px;
  --gb-card-gap:16px;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  direction:rtl;
  text-align:right;
  font-family:var(--jl-font-body);
  color:var(--jl-charcoal);
  background:var(--jl-white);
  margin:0;
  line-height:1.8;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; transition:color var(--jl-transition); }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,h5,h6{
  font-family:var(--jl-font-display);
  font-weight:700;
  line-height:1.3;
  margin:0 0 .6em;
  color:var(--jl-charcoal);
}
h1{ font-size:clamp(28px,5vw,48px); }
h2{ font-size:clamp(24px,4vw,36px); }
h3{ font-size:clamp(18px,3vw,24px); }
p{ margin:0 0 1em; color:var(--jl-gray); }

/* Form controls do not inherit the page font by default — without this the
   category menu button, search field and every checkout input fall back to the
   browser's UI font instead of Vazirmatn. */
button,
input,
select,
textarea,
optgroup{
  font-family:inherit;
}

.container{
  max-width:var(--jl-container);
  margin:0 auto;
  padding:0 20px;
}
/*
 * Visually-hidden text.
 *
 * Do NOT go back to `left:-9999px`. In an RTL document the scroll origin is the
 * right edge, so an element parked 9999px to the left becomes 9999px of real
 * scrollable width — that was the source of the huge horizontal scrollbar, and
 * checkout was worst hit because the blocks emit many of these labels.
 * The clip technique hides the text without moving it off-canvas.
 */
.screen-reader-text{
  position:absolute !important;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
/* Keyboard users still need to see skip links when focused. */
.screen-reader-text:focus{
  position:static !important;
  width:auto;
  height:auto;
  margin:0;
  overflow:visible;
  clip:auto;
  clip-path:none;
  white-space:normal;
}

/* Buttons */
.jl-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 28px;
  border:1px solid var(--jl-charcoal);
  border-radius:var(--jl-radius);
  background:transparent;
  color:var(--jl-charcoal);
  font-size:14px;
  font-weight:600;
  letter-spacing:.3px;
  cursor:pointer;
  transition:all var(--jl-transition);
  white-space:nowrap;
}
.jl-btn:hover{
  background:var(--jl-charcoal);
  color:var(--jl-white);
}
.jl-btn--gold{
  border-color:var(--jl-gold);
  background:var(--jl-gold);
  color:var(--jl-white);
}
.jl-btn--gold:hover{
  background:var(--jl-gold-dark);
  border-color:var(--jl-gold-dark);
}
.jl-btn--light{
  border-color:var(--jl-white);
  color:var(--jl-white);
}
.jl-btn--light:hover{
  background:var(--jl-white);
  color:var(--jl-charcoal);
}

/* ==========================================================================
   Header
   ========================================================================== */
.jl-topbar{
  background:var(--jl-charcoal);
  color:var(--jl-white);
  font-size:13px;
  text-align:center;
  padding:8px 0;
}
.jl-header{
  border-bottom:1px solid var(--jl-border);
  padding:18px 0;
}
.jl-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}
.jl-logo{
  font-family:var(--jl-font-display);
  font-size:26px;
  font-weight:700;
  letter-spacing:1px;
}
.jl-logo img{ max-height:48px; }
.jl-header__search{
  flex:1;
  max-width:420px;
  position:relative;
}
.jl-header__search input{
  width:100%;
  padding:12px 44px 12px 16px;
  border:1px solid var(--jl-border);
  border-radius:var(--jl-radius);
  background:var(--jl-cream);
  font-family:var(--jl-font-body);
  font-size:14px;
}
.jl-header__search button{
  position:absolute;
  inset-inline-end:8px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
  padding:6px;
}
.jl-header__icons{
  display:flex;
  align-items:center;
  gap:18px;
}
.jl-header__icons a{
  position:relative;
  display:flex;
  align-items:center;
}
.jl-icon-count{
  position:absolute;
  top:-8px;
  inset-inline-end:-10px;
  background:var(--jl-gold);
  color:var(--jl-white);
  font-size:11px;
  width:18px;height:18px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
/* Cart badge: hidden while empty, and it pulses when the count changes so
   an AJAX add-to-cart is visible without scrolling back up. */
.jl-cart-count{ display:none; }
.jl-cart-count.has-items{ display:flex; }
@keyframes jl-cart-bump{
  0%{ transform:scale(1); }
  40%{ transform:scale(1.45); }
  100%{ transform:scale(1); }
}
.jl-cart-count.is-bumping{ animation:jl-cart-bump .4s ease; }

/* Main nav */
.jl-nav-row{
  border-bottom:1px solid var(--jl-border);
}
.jl-nav-row__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
  gap:20px;
}
.jl-main-nav ul{
  display:flex;
  gap:28px;
  flex-wrap:wrap;
}
.jl-main-nav a{
  font-size:15px;
  font-weight:500;
}
.jl-main-nav a:hover{ color:var(--jl-gold-dark); }
.jl-main-nav .current-menu-item > a{ color:var(--jl-gold-dark); }

.jl-cat-toggle{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 18px;
  background:var(--jl-cream);
  border-radius:var(--jl-radius);
  font-size:14px;
  font-weight:600;
  border:1px solid var(--jl-border);
  cursor:pointer;
}

/* Mobile menu toggle */
.jl-menu-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.jl-menu-toggle span{
  display:block;
  width:24px;height:2px;
  background:var(--jl-charcoal);
  margin:5px 0;
  transition:var(--jl-transition);
}

/* ==========================================================================
   Hero / Banner
   ========================================================================== */
.jl-hero{
  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:var(--jl-gap);
  padding:var(--jl-gap) 0;
}
.jl-hero__col{
  display:flex;
  flex-direction:column;
  gap:var(--jl-gap);
}
.jl-banner{
  position:relative;
  border-radius:var(--jl-radius-lg);
  overflow:hidden;
  min-height:220px;
  display:flex;
  align-items:center;
  background-size:cover;
  background-position:center;
}
.jl-banner--tall{ min-height:464px; }
.jl-banner__content{
  position:relative;
  z-index:2;
  padding:40px;
  max-width:80%;
}
.jl-banner__content .eyebrow{
  display:inline-block;
  background:var(--jl-white);
  color:var(--jl-gold-dark);
  font-size:12px;
  font-weight:700;
  padding:4px 12px;
  border-radius:20px;
  margin-bottom:14px;
}
.jl-banner__content h2{ margin-bottom:.3em; }

/*
 * Readability over photography.
 *
 * Every banner now carries a scrim, not just .jl-banner--dark — the light
 * variant had dark text sitting straight on a photo. The gradient is heaviest
 * on the inline-start edge (the right, in RTL) where the copy sits, and fades
 * across so the image still reads.
 */
.jl-banner::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to left, rgba(20,18,16,.72) 0%, rgba(20,18,16,.45) 45%, rgba(20,18,16,.15) 100%),
    linear-gradient(to top, rgba(20,18,16,.35), transparent 55%);
  z-index:1;
}
.jl-banner__content h2,
.jl-banner__content p,
.jl-banner--dark .jl-banner__content h2,
.jl-banner--dark .jl-banner__content p{
  color:var(--jl-white);
  /* Backstop for the rare bright patch the scrim doesn't fully cover. */
  text-shadow:0 1px 3px rgba(0,0,0,.45);
}
.jl-banner__content p{ opacity:.95; }

/*
 * Hero buttons sit on imagery, so the default transparent .jl-btn was
 * effectively invisible. Both variants get a solid fill here.
 */
.jl-banner .jl-btn{
  background:var(--jl-white);
  border-color:var(--jl-white);
  color:var(--jl-charcoal);
  box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.jl-banner .jl-btn:hover{
  background:var(--jl-gold);
  border-color:var(--jl-gold);
  color:var(--jl-white);
}
.jl-banner .jl-btn--light{
  background:var(--jl-gold);
  border-color:var(--jl-gold);
  color:var(--jl-white);
}
.jl-banner .jl-btn--light:hover{
  background:var(--jl-white);
  border-color:var(--jl-white);
  color:var(--jl-charcoal);
}

/* ==========================================================================
   Section heading
   ========================================================================== */
.jl-section{ padding:60px 0; }
.jl-section--cream{ background:var(--jl-cream); }
.jl-section__head{
  text-align:center;
  margin-bottom:40px;
}
.jl-section__head p{ max-width:560px; margin:0 auto; }
.jl-divider{
  width:60px; height:2px;
  background:var(--jl-gold);
  margin:14px auto 0;
}

/* ==========================================================================
   Category Circles
   ========================================================================== */
.jl-cats{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:var(--jl-gap);
}
.jl-cat{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.jl-cat__img{
  width:100%;
  aspect-ratio:1;
  border-radius:50%;
  overflow:hidden;
  border:2px solid transparent;
  transition:border-color var(--jl-transition), transform var(--jl-transition);
}
.jl-cat:hover .jl-cat__img{
  border-color:var(--jl-gold);
  transform:translateY(-4px);
}
.jl-cat__img img{ width:100%; height:100%; object-fit:cover; }
.jl-cat__name{ font-size:14px; font-weight:600; }
.jl-cat__count{ font-size:12px; color:var(--jl-muted, #7a736d); margin-top:-6px; }

/* ==========================================================================
   Product Grid (WooCommerce compatible)
   ========================================================================== */
.jl-products,
ul.products{
  display:grid !important;
  grid-template-columns:repeat(4,1fr) !important;
  gap:var(--jl-gap) !important;
  list-style:none !important;
  margin:0 !important; padding:0 !important;
  /* Grid fills along the inline axis, so direction decides which corner the
     first card lands in. Set it here rather than inheriting from <body>, so a
     plugin or page builder wrapping the loop can't flip the shop to LTR. */
  direction:rtl !important;
  /* Short last rows pack toward the start edge — the right, in RTL. */
  justify-content:start !important;
}

/*
 * WooCommerce clearfixes ul.products with ::before/::after { content:" ";
 * display:table }. Harmless for its float layout, but a grid container turns
 * every pseudo-element into a GRID ITEM — ::before was taking the first cell
 * (top-right in RTL) and pushing the whole run of products one slot along.
 * Grid needs no clearfix, so remove them outright.
 */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce-page ul.products::before,
.woocommerce-page ul.products::after,
ul.products::before,
ul.products::after{
  content:none !important;
  display:none !important;
}
/* --------------------------------------------------------------------------
   Marketplace product card (.gb-card)
   Markup: woocommerce/content-product.php
   -------------------------------------------------------------------------- */
ul.products{ gap:var(--gb-card-gap) !important; }

.jl-product,
ul.products li.product.gb-card{
  background:var(--gb-surface);
  border:1px solid var(--gb-line);
  border-radius:var(--gb-radius);
  overflow:hidden;
  transition:box-shadow var(--jl-transition), border-color var(--jl-transition);
  position:relative;
  /* Column layout so every card in a row matches height and the action row
     always lands on the same baseline. */
  display:flex;
  flex-direction:column;
  width:auto !important;   /* override WooCommerce's float/percentage widths */
  float:none !important;
  margin:0 !important;
}
ul.products li.product.gb-card:hover{
  box-shadow:0 6px 20px rgba(50,55,60,.10);
  border-color:#d7dade;
}

/* Media ------------------------------------------------------------------- */
.gb-card__media{
  position:relative;
  background:var(--gb-surface-alt);
  border-bottom:1px solid var(--gb-line);
}
.gb-card__thumb{ display:block; }
.gb-card__media img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  margin:0 !important;
  transition:transform .35s ease;
}
ul.products li.product.gb-card:hover .gb-card__media img{ transform:scale(1.04); }

.gb-card__cat,
.gb-card__flash{
  position:absolute;
  top:10px;
  font-size:11px;
  font-weight:700;
  line-height:1;
  padding:5px 9px;
  border-radius:var(--gb-radius-sm);
  z-index:2;
}
.gb-card__cat{
  inset-inline-start:10px;
  background:rgba(255,255,255,.94);
  color:var(--gb-ink);
  border:1px solid var(--gb-line);
}
.gb-card__flash{
  inset-inline-end:10px;
  background:#e5484d;
  color:#fff;
}

/* Body -------------------------------------------------------------------- */
.gb-card__body{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  padding:12px 14px 14px;
  gap:8px;
}
.gb-card__title{
  font-family:var(--jl-font-body);
  font-size:14px;
  font-weight:700;
  line-height:1.7;
  margin:0;
  color:var(--gb-ink);
  /* Two-line clamp keeps uneven title lengths from skewing the grid. */
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:3.4em;
}
.gb-card__title a:hover{ color:var(--gb-accent-dark); }

.gb-card__meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  font-size:12px;
  color:var(--gb-ink-soft);
  min-height:1.2em;   /* hold the row even when a product has no stats yet */
}
.gb-card__stat{ display:inline-flex; align-items:center; gap:4px; }
.gb-card__stat--rating{ color:var(--gb-star); font-weight:700; }

.gb-card__price{
  margin-top:auto;
  padding-top:4px;
  font-size:16px;
  font-weight:800;
  color:var(--gb-accent-dark);
  border-top:1px dashed var(--gb-line);
}
.gb-card__price .woocommerce-Price-currencySymbol{ font-size:.75em; font-weight:600; }
.gb-card__price del{
  color:var(--gb-ink-soft);
  font-size:13px;
  font-weight:500;
  opacity:.8;
  margin-inline-end:6px;
}
.gb-card__price ins{ text-decoration:none; }

/* ==========================================================================
   Prices — Vazirmatn everywhere
   The display face (Playfair Display) carries no Persian glyphs, so any price
   inheriting it would fall back to a system font and break visual consistency.
   Pin the body face on every money surface: loop cards, single product, cart
   and checkout blocks, widgets and totals.
   ========================================================================== */
.price,
.amount,
.woocommerce-Price-amount,
.woocommerce-Price-currencySymbol,
.gb-card__price,
.gb-card__meta,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price,
.woocommerce table.shop_table td,
.woocommerce .cart_totals td,
.woocommerce .order-total,
.wc-block-components-formatted-money-amount,
.wc-block-formatted-money-amount,
.wc-block-components-totals-item__value,
.wc-block-components-product-price,
.wc-block-components-order-summary-item__total-price,
.wc-block-components-product-metadata,
.wc-block-cart-item__prices,
.wc-block-components-quantity-selector__input{
  font-family:var(--jl-font-body) !important;
  /* Persian digits are proportional in Vazirmatn; keep them evenly spaced so
     column figures line up. */
  font-variant-numeric:tabular-nums;
  font-feature-settings:"tnum" 1;
}

/* Actions ----------------------------------------------------------------- */
.gb-card__actions{
  display:grid;
  grid-template-columns:1fr auto;
  gap:8px;
  align-items:stretch;
}
/*
 * Both action buttons share one shape. The selector is deliberately long:
 * WooCommerce ships `.woocommerce ul.products li.product .button {
 * display:inline-block; margin-top:1em }`, which outranks a short selector and
 * was pushing the add-to-cart button 1em below "مشاهده". This needs to win on
 * specificity, so it carries the same ancestors plus .gb-card.
 */
.woocommerce ul.products li.product.gb-card .gb-card__actions a.button,
ul.products li.product.gb-card .gb-card__actions a.button,
.gb-card__actions .gb-card__view{
  display:flex;
  align-items:center;
  justify-content:center;
  height:36px;
  margin:0;            /* clears WooCommerce's margin-top:1em */
  padding:0 12px;
  border-radius:var(--gb-radius-sm);
  font-size:13px;
  font-weight:700;
  line-height:1;
  font-family:var(--jl-font-body);
  white-space:nowrap;
  transition:background var(--jl-transition), color var(--jl-transition);
}
/* Beats the generic .woocommerce a.button rule further down the sheet. */
.woocommerce ul.products li.product.gb-card a.button{
  background:var(--gb-accent);
  color:#fff;
  border:none;
}
.woocommerce ul.products li.product.gb-card a.button:hover{
  background:var(--gb-accent-dark);
  color:#fff;
}
.gb-card__view{
  background:var(--gb-surface-alt);
  color:var(--gb-ink);
  border:1px solid var(--gb-line);
}
.gb-card__view:hover{ background:var(--gb-accent-soft); border-color:var(--gb-accent); color:var(--gb-accent-dark); }

/* "View cart" confirmation link WooCommerce injects after an AJAX add. */
ul.products li.product.gb-card a.added_to_cart{
  grid-column:1 / -1;
  display:block;
  text-align:center;
  font-size:12px;
  font-weight:700;
  color:var(--gb-accent-dark);
}
ul.products li.product.gb-card a.button.loading{ opacity:.75; }
ul.products li.product.gb-card a.button.loading::after{
  inset-inline-end:auto;
  inset-inline-start:10px;
}

.jl-product__body{ padding:18px; }
.jl-product__cat{
  font-size:12px;
  color:var(--jl-gold-dark);
  font-weight:700;
  margin-bottom:6px;
  display:block;
}
.jl-product__title,
ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--jl-font-display);
  font-size:17px;
  font-weight:700;
  margin:0 0 8px;
}
.jl-product__price,
ul.products li.product .price{
  font-weight:700;
  color:var(--jl-charcoal);
  font-size:15px;
}
.jl-badge{
  position:absolute;
  top:14px; inset-inline-start:14px;
  background:var(--jl-gold);
  color:var(--jl-white);
  font-size:11px;
  font-weight:700;
  padding:4px 10px;
  border-radius:20px;
  z-index:2;
}

/* ==========================================================================
   Contact details block — [gb_contact_details]
   ========================================================================== */
.gb-contact{
  list-style:none;
  margin:0 0 24px;
  padding:0;
  display:grid;
  gap:12px;
}
.gb-contact__item{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:baseline;
  padding:12px 16px;
  background:var(--gb-surface-alt,#f9fafb);
  border:1px solid var(--gb-line,#e6e8eb);
  border-radius:var(--gb-radius,8px);
}
.gb-contact__item strong{
  min-width:96px;
  color:var(--gb-ink-soft,#6b7280);
  font-weight:600;
}
.gb-contact__item a{ color:var(--jl-gold-dark); font-weight:700; }
.gb-contact__item a:hover{ color:var(--jl-charcoal); }

@media (max-width:600px){
  .gb-contact__item{ flex-direction:column; gap:2px; }
  .gb-contact__item strong{ min-width:0; font-size:13px; }
}

/* ==========================================================================
   Live gold rate ticker (topbar)
   ========================================================================== */
.jl-topbar--has-ticker{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:8px 20px;
  padding-inline:16px;
}
.jl-topbar--has-ticker .jl-topbar__text{ opacity:.85; }

.gb-ticker{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px 16px;
  font-size:12.5px;
  /* Prices need the Persian face, not the display serif. */
  font-family:var(--jl-font-body);
  font-variant-numeric:tabular-nums;
}
.gb-ticker__label{
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-weight:800;
  color:var(--jl-gold);
}
.gb-ticker__item{
  display:inline-flex;
  align-items:baseline;
  gap:5px;
  white-space:nowrap;
}
.gb-ticker__item + .gb-ticker__item{
  border-inline-start:1px solid rgba(255,255,255,.22);
  padding-inline-start:16px;
}
.gb-ticker__name{ opacity:.75; }
.gb-ticker__value{ font-weight:700; }
.gb-ticker__time{
  font-size:11px;
  opacity:.55;
  white-space:nowrap;
}

@media (max-width: 768px){
  .jl-topbar--has-ticker{ justify-content:center; text-align:center; }
  /* The promo line would push the rates off a phone screen. */
  .jl-topbar--has-ticker .jl-topbar__text{ display:none; }
  .gb-ticker{ justify-content:center; gap:4px 10px; font-size:11.5px; }
  .gb-ticker__item + .gb-ticker__item{ padding-inline-start:10px; }
  .gb-ticker__time{ display:none; }
}

/* ==========================================================================
   Header category dropdown
   ========================================================================== */
.jl-cat-menu{ position:relative; }
.jl-cat-toggle{ display:inline-flex; align-items:center; gap:8px; cursor:pointer; }
.jl-cat-toggle__chevron{ transition:transform var(--jl-transition); }
.jl-cat-toggle.is-open .jl-cat-toggle__chevron{ transform:rotate(180deg); }

.jl-cat-panel{
  position:absolute;
  top:calc(100% + 8px);
  inset-inline-start:0;
  z-index:60;
  min-width:280px;
  background:var(--gb-surface);
  border:1px solid var(--gb-line);
  border-radius:var(--gb-radius);
  box-shadow:0 12px 32px rgba(50,55,60,.14);
  padding:6px;
}
.jl-cat-panel[hidden]{ display:none; }   /* [hidden] alone loses to ul/li display rules */
.jl-cat-panel ul{ margin:0; padding:0; list-style:none; }
.jl-cat-panel li a{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border-radius:var(--gb-radius-sm);
  font-size:14px;
  color:var(--gb-ink);
}
.jl-cat-panel li a:hover{ background:var(--gb-accent-soft); color:var(--gb-accent-dark); }
.jl-cat-panel img{
  width:34px; height:34px;
  border-radius:50%;
  object-fit:cover;
  flex:none;
}
.jl-cat-panel__name{ flex:1 1 auto; font-weight:600; }
.jl-cat-panel__count{
  font-size:12px;
  color:var(--gb-ink-soft);
  background:var(--gb-surface-alt);
  border-radius:20px;
  padding:2px 8px;
}
.jl-cat-panel__all{ border-top:1px solid var(--gb-line); margin-top:4px; padding-top:4px; }
.jl-cat-panel__all a{ justify-content:center; font-weight:700; color:var(--gb-accent-dark); }
.jl-cat-panel__empty{ margin:0; padding:12px; font-size:13px; color:var(--gb-ink-soft); }

@media (max-width: 768px){
  .jl-cat-panel{ inset-inline-start:auto; inset-inline-end:0; min-width:240px; }
}

/* ==========================================================================
   Shop archive chrome — title bar, result count, sorting, pagination
   ========================================================================== */
.woocommerce-page-wrap{ padding-top:24px; }

.woocommerce-products-header{
  background:var(--gb-surface-alt);
  border:1px solid var(--gb-line);
  border-radius:var(--gb-radius);
  padding:18px 20px;
  margin-bottom:18px;
}
.woocommerce-products-header__title,
.woocommerce-page-wrap h1.page-title{
  font-family:var(--jl-font-body);
  font-size:20px;
  font-weight:800;
  color:var(--gb-ink);
  margin:0;
}
.woocommerce-products-header .term-description{
  margin:8px 0 0;
  font-size:14px;
  color:var(--gb-ink-soft);
}

/* Result count + ordering share one toolbar row. */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering{
  margin:0;
  float:none;
}
.woocommerce-page-wrap .woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce .woocommerce-result-count{
  font-size:13px;
  color:var(--gb-ink-soft);
}
.woocommerce .woocommerce-ordering select{
  font-family:var(--jl-font-body);
  font-size:13px;
  color:var(--gb-ink);
  background:var(--gb-surface);
  border:1px solid var(--gb-line);
  border-radius:var(--gb-radius-sm);
  padding:8px 12px;
  max-width:100%;
}
.woocommerce .woocommerce-ordering select:focus{
  outline:2px solid var(--gb-accent);
  outline-offset:1px;
}

/*
 * Toolbar row: result count on the start edge, sorting on the end edge.
 * These are siblings with no shared wrapper, so floats do the work — logical
 * values keep them correct in RTL (start = right) and LTR alike.
 */
.woocommerce-page-wrap{
  display:flow-root;
}
.woocommerce-page-wrap .woocommerce-result-count{
  float:inline-start;
  margin-bottom:16px;
  line-height:36px;   /* match the select so both sit on one baseline */
}
.woocommerce-page-wrap .woocommerce-ordering{
  float:inline-end;
  margin-bottom:16px;
}
/* Drop the grid below the floated toolbar instead of beside it. */
.woocommerce-page-wrap ul.products{
  clear:both;
}

/* Pagination */
.woocommerce nav.woocommerce-pagination{
  margin:28px 0 0;
}
.woocommerce nav.woocommerce-pagination ul{
  border:none;
  display:flex;
  justify-content:center;
  gap:6px;
}
/* Same clearfix trap as ul.products — pseudo-elements become flex items. */
.woocommerce nav.woocommerce-pagination ul::before,
.woocommerce nav.woocommerce-pagination ul::after{
  content:none !important;
  display:none !important;
}
.woocommerce nav.woocommerce-pagination ul li{
  border:none;
  overflow:visible;
}
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span{
  min-width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  border:1px solid var(--gb-line);
  border-radius:var(--gb-radius-sm);
  background:var(--gb-surface);
  color:var(--gb-ink);
  font-size:13px;
  font-weight:700;
}
.woocommerce nav.woocommerce-pagination ul li a:hover{
  background:var(--gb-accent-soft);
  border-color:var(--gb-accent);
  color:var(--gb-accent-dark);
}
.woocommerce nav.woocommerce-pagination ul li span.current{
  background:var(--gb-accent);
  border-color:var(--gb-accent);
  color:#fff;
}

/* No-results state */
.woocommerce-info.woocommerce-no-products-found,
.woocommerce-page-wrap .woocommerce-info{
  background:var(--gb-surface-alt);
  border-top-color:var(--gb-accent) !important;
  border-radius:var(--gb-radius);
  font-size:14px;
}
.woocommerce-page-wrap .woocommerce-info::before{ color:var(--gb-accent) !important; }

/* WooCommerce buttons */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit{
  background:var(--jl-charcoal);
  color:var(--jl-white);
  border-radius:var(--jl-radius);
  padding:10px 22px;
  font-family:var(--jl-font-body);
  font-weight:600;
  border:none;
  transition:background var(--jl-transition);
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover{
  background:var(--jl-gold-dark);
  color:var(--jl-white);
}
.woocommerce-message,.woocommerce-info{
  border-top-color:var(--jl-gold) !important;
}
.woocommerce-message::before,.woocommerce-info::before{
  color:var(--jl-gold) !important;
}
.woocommerce span.onsale{
  background:var(--jl-gold);
  border-radius:20px;
}
.woocommerce div.product p.price,
.woocommerce div.product span.price{
  color:var(--jl-gold-dark);
  font-size:22px;
  font-weight:700;
}

/* ==========================================================================
   Feature 3-col
   ========================================================================== */
.jl-features{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:var(--jl-gap);
}
.jl-feature__img{
  border-radius:var(--jl-radius-lg);
  overflow:hidden;
  aspect-ratio:4/5;
  margin-bottom:18px;
}
.jl-feature__img img{ width:100%; height:100%; object-fit:cover; }
.jl-feature a.jl-link{
  color:var(--jl-gold-dark);
  font-weight:700;
  font-size:14px;
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.jl-feature a.jl-link:hover{ color:var(--jl-charcoal); }

/* ==========================================================================
   Split promo (cream box + 2 images)
   ========================================================================== */
.jl-split{
  display:grid;
  grid-template-columns:1fr 1fr 1fr;
  gap:var(--jl-gap);
}
.jl-promo-box{
  background:var(--jl-pink-soft);
  border-radius:var(--jl-radius-lg);
  padding:36px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:14px;
}
.jl-split img{
  border-radius:var(--jl-radius-lg);
  aspect-ratio:4/5;
  object-fit:cover;
  width:100%; height:100%;
}

/* ==========================================================================
   About / story split
   ========================================================================== */
.jl-about{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:center;
}
.jl-about__signature{
  font-family:var(--jl-font-display);
  font-style:italic;
  font-size:22px;
  margin-top:18px;
}

/* Brand history (pink bg) */
.jl-section--story{
  background:var(--jl-pink-soft);
}
.jl-section--story .jl-about{ grid-template-columns:1fr 1.1fr; }

/* ==========================================================================
   Brand logos strip
   ========================================================================== */
.jl-brands{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  align-items:stretch;
  gap:20px;
  padding:36px 0;
  border-top:1px solid var(--jl-border);
  border-bottom:1px solid var(--jl-border);
}
/* Real logo artwork, when it exists, gets a fixed box so mixed source
   dimensions still line up on one baseline. */
.jl-brands img{
  width:100%;
  height:44px;
  object-fit:contain;
  object-position:center;
  filter:grayscale(1) opacity(.6);
  transition:filter var(--jl-transition);
}
.jl-brands img:hover{ filter:none; }

.jl-trust{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:6px;
  padding:4px 8px;
}
.jl-trust__icon{ color:var(--jl-gold-dark); flex:none; }
.jl-trust__title{ font-size:14px; font-weight:700; }
.jl-trust__desc{ font-size:12px; color:var(--jl-muted, #7a736d); line-height:1.6; }

/* ==========================================================================
   Instagram strip
   ========================================================================== */
.jl-instagram{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:10px;
}
.jl-instagram a{
  aspect-ratio:1;
  overflow:hidden;
  border-radius:var(--jl-radius);
  display:block;
  position:relative;
}
.jl-instagram img{ width:100%; height:100%; object-fit:cover; transition:transform var(--jl-transition); }
.jl-instagram a:hover img{ transform:scale(1.08); }

/* ==========================================================================
   Newsletter
   ========================================================================== */
.jl-newsletter{
  text-align:center;
  padding:50px 0;
}
.jl-newsletter form{
  display:flex;
  max-width:480px;
  margin:24px auto 0;
  gap:10px;
}
.jl-newsletter input[type="email"]{
  flex:1;
  padding:14px 18px;
  border:1px solid var(--jl-border);
  border-radius:var(--jl-radius);
  font-family:var(--jl-font-body);
}
.jl-newsletter__msg{
  min-height:1.5em;      /* reserve the row so the section never jumps */
  margin:12px auto 0;
  max-width:480px;
  font-size:14px;
  font-weight:600;
}
.jl-newsletter__msg.is-ok{ color:#1f7a4d; }
.jl-newsletter__msg.is-error{ color:#b3261e; }
.jl-newsletter__form.is-busy{ opacity:.7; pointer-events:none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.jl-footer{
  background:var(--jl-charcoal);
  color:#cfc9c4;
  padding:60px 0 24px;
  font-size:14px;
}
.jl-footer h4{
  color:var(--jl-white);
  font-size:16px;
  margin-bottom:18px;
}
.jl-footer a:hover{ color:var(--jl-gold); }
.jl-footer__grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr 1.2fr;
  gap:var(--jl-gap);
}
.jl-footer__grid li{ margin-bottom:10px; }
.jl-footer__logo{
  font-family:var(--jl-font-display);
  color:var(--jl-white);
  font-size:24px;
  margin-bottom:14px;
}
.jl-footer__social{
  display:flex;
  gap:14px;
  margin-top:14px;
}
.jl-footer__social a{
  width:36px;height:36px;
  border:1px solid #514c47;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.jl-footer__bottom{
  border-top:1px solid #44403c;
  margin-top:40px;
  padding-top:20px;
  text-align:center;
  font-size:13px;
  color:#9a9590;
}
.jl-footer__payments{
  display:flex; gap:8px; margin-top:14px;
}
.jl-footer__payments span{
  background:#3a3631;
  border-radius:4px;
  padding:4px 10px;
  font-size:11px;
}

/* ==========================================================================
   Sliders (Elementor / generic)
   ========================================================================== */
.jl-slider-dots{
  display:flex; justify-content:center; gap:8px; margin-top:24px;
}
.jl-slider-dots span{
  width:8px;height:8px;border-radius:50%;
  background:var(--jl-border);
  cursor:pointer;
}
.jl-slider-dots span.active{ background:var(--jl-gold); }

/* ==========================================================================
   Elementor compatibility
   ========================================================================== */
.elementor-widget-woocommerce-products .products{ grid-template-columns:repeat(4,1fr) !important; }
.elementor-section.elementor-section-boxed > .elementor-container{ max-width:var(--jl-container); }
body.elementor-page .jl-header,
body.elementor-page .jl-footer{ direction:rtl; }

/* ==========================================================================
   Block cart & checkout (WooCommerce Blocks)

   Rial amounts run to ten digits plus separators and are set nowrap. Flex and
   grid items default to min-width:auto, so they refuse to shrink below that
   string — the number escapes the order-summary box AND widens the whole page,
   which is where the horizontal scrollbar came from. Letting these tracks
   shrink fixes both symptoms at their source, so no overflow-x:hidden is
   needed (that would only hide it, and would break position:sticky).
   ========================================================================== */

/* The theme never declared block alignments, and the checkout block carries
   .alignwide — keep it inside the container instead of escaping it. */
.container .alignwide,
.container .alignfull{
  width:auto;
  max-width:100%;
  margin-inline:auto;
}

.wp-block-woocommerce-cart,
.wp-block-woocommerce-checkout{
  max-width:100%;
}

/* Let every layout track shrink. */
.wc-block-components-sidebar-layout,
.wc-block-components-main,
.wc-block-components-sidebar,
.wc-block-cart__main,
.wc-block-cart__sidebar,
.wc-block-checkout__main,
.wc-block-checkout__sidebar{
  min-width:0;
  max-width:100%;
}

/* Totals rows: label on one side, figure on the other, both allowed to give. */
.wc-block-components-totals-item{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
  min-width:0;
}
.wc-block-components-totals-item__label{
  min-width:0;
  overflow-wrap:anywhere;
}
.wc-block-components-totals-item__value{
  min-width:0;
  flex:0 1 auto;
  text-align:end;
  white-space:normal;      /* long rial figures may wrap rather than overflow */
  overflow-wrap:anywhere;
}

/*
 * THE money element itself carries `white-space:nowrap` from WooCommerce.
 * That is the class that actually refuses to break, so it has to be released
 * here — overriding only the totals `__value` wrapper (as an earlier pass did)
 * leaves the amount unbreakable and it still escapes its box.
 */
.wc-block-components-formatted-money-amount,
.wc-block-formatted-money-amount{
  white-space:normal;
  overflow-wrap:anywhere;
  min-width:0;
}

/*
 * Summary line item: [image][description ................][total price]
 * The total uses `margin-right:auto` in the RTL sheet to sit hard against the
 * left edge. With a long toman figure that pushed it clean outside the card,
 * so let the row wrap and let both text tracks shrink.
 */
.wc-block-components-order-summary-item{
  min-width:0;
  flex-wrap:wrap;
}
.wc-block-components-order-summary-item__description{
  min-width:0;
  flex:1 1 auto;
  overflow-wrap:anywhere;
}
.wc-block-components-order-summary-item__total-price{
  min-width:0;
  max-width:100%;
  flex:0 1 auto;
}
.wc-block-components-product-name{ overflow-wrap:anywhere; }

/* Radio/payment rows and form fields. */
.wc-block-components-radio-control__option,
.wc-block-components-text-input,
.wc-block-components-address-form,
.wc-block-components-form{
  min-width:0;
  max-width:100%;
}
.wc-block-components-radio-control__label{
  min-width:0;
  overflow-wrap:anywhere;
}

/* Tables inside the blocks scroll on their own rather than widening the page. */
.wp-block-woocommerce-cart table,
.wp-block-woocommerce-checkout table{
  max-width:100%;
  display:block;
  overflow-x:auto;
}

@media (max-width: 768px){
  /* Stack the summary beside/below the form and tighten the figures so a
     ten-digit total still fits a phone. */
  .wc-block-components-sidebar-layout{ flex-direction:column; }
  .wc-block-components-totals-item__value,
  .wc-block-components-order-summary-item__total-price{ font-size:13px; }
  .wc-block-components-order-summary-item__description{ font-size:13px; }
}

/* ==========================================================================
   Responsive — Tablet
   ========================================================================== */
@media (max-width: 1024px){
  .jl-hero{ grid-template-columns:1fr; }
  .jl-hero__col:first-child{ order:2; }
  .jl-cats{ grid-template-columns:repeat(4,1fr); }
  .jl-products,
  ul.products{ grid-template-columns:repeat(3,1fr) !important; }
  .jl-features{ grid-template-columns:repeat(3,1fr); gap:14px; }
  .jl-split{ grid-template-columns:1fr 1fr; }
  .jl-split .jl-promo-box{ grid-column:1 / -1; }
  .jl-about{ grid-template-columns:1fr; gap:30px; }
  .jl-footer__grid{ grid-template-columns:1fr 1fr 1fr; }
  .jl-instagram{ grid-template-columns:repeat(4,1fr); }
  .jl-brands{ grid-template-columns:repeat(3,1fr); gap:24px 16px; }
}

/* ==========================================================================
   Responsive — Mobile (Optimized)
   ========================================================================== */
@media (max-width: 768px){
  body{ font-size:15px; }
  .container{ padding:0 16px; }

  .jl-topbar{ font-size:12px; padding:6px 12px; }

  .jl-header{ padding:12px 0; }
  .jl-header__inner{ flex-wrap:wrap; gap:12px; }
  .jl-logo{ font-size:20px; order:1; }
  .jl-header__icons{ order:2; gap:12px; }
  .jl-header__search{
    order:3;
    width:100%;
    max-width:100%;
    flex-basis:100%;
  }

  .jl-nav-row__inner{ flex-wrap:wrap; padding:10px 0; gap:10px; }
  .jl-main-nav{ display:none; width:100%; }
  .jl-main-nav.is-open{ display:block; }
  .jl-main-nav ul{
    flex-direction:column;
    gap:0;
    border-top:1px solid var(--jl-border);
    margin-top:10px;
  }
  .jl-main-nav ul li{
    border-bottom:1px solid var(--jl-border);
  }
  .jl-main-nav ul li a{
    display:block;
    padding:12px 4px;
  }
  .jl-menu-toggle{ display:block; }
  .jl-cat-toggle span.label{ display:none; }
  .jl-cat-toggle{ padding:10px; }

  /* Hero */
  .jl-hero{ gap:12px; padding:12px 0; }
  .jl-banner{ min-height:220px; border-radius:10px; }
  .jl-banner--tall{ min-height:280px; }
  .jl-banner__content{ padding:20px; max-width:90%; }
  .jl-banner__content h2{ font-size:22px; }
  .jl-banner__content p{ font-size:13px; margin-bottom:.6em; }
  .jl-banner__content .jl-btn{ padding:9px 18px; font-size:12px; }

  /* Sections */
  .jl-section{ padding:36px 0; }
  .jl-section__head{ margin-bottom:24px; }
  .jl-section__head p{ font-size:14px; padding:0 10px; }

  /* Categories — horizontal scroll on mobile */
  .jl-cats{
    grid-template-columns:none;
    display:flex;
    overflow-x:auto;
    gap:16px;
    padding-bottom:8px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .jl-cats::-webkit-scrollbar{ display:none; }
  .jl-cat{ flex:0 0 88px; }

  /* Products — 2 per row */
  .jl-products,
  ul.products{
    grid-template-columns:repeat(2,1fr) !important;
    gap:12px !important;
  }
  .jl-product__title,
  ul.products li.product .woocommerce-loop-product__title{ font-size:14px; }
  .jl-product__body{ padding:12px; }
  .jl-product__price,
  ul.products li.product .price{ font-size:13px; }

  /* Marketplace card — tighter, and actions stack so neither button squashes */
  .gb-card__body{ padding:10px 11px 11px; gap:7px; }
  .gb-card__title{ font-size:13px; min-height:3.4em; }
  .gb-card__meta{ gap:8px; font-size:11px; }
  .gb-card__price{ font-size:14px; }
  .gb-card__actions{ grid-template-columns:1fr; }
  /* Matches the specificity of the shared button rule above, or it loses. */
  .gb-card__actions .gb-card__view{ display:none; }   /* card already links through */
  .gb-card__cat{ font-size:10px; padding:4px 7px; }

  /* Shop toolbar stacks */
  .woocommerce-products-header{ padding:14px 16px; }
  .woocommerce-products-header__title,
  .woocommerce-page-wrap h1.page-title{ font-size:17px; }
  .woocommerce-page-wrap .woocommerce-result-count,
  .woocommerce-page-wrap .woocommerce-ordering{
    display:block;
    float:none;
    width:100%;
  }
  .woocommerce-page-wrap .woocommerce-ordering select{ width:100%; }

  /* Features — stack */
  .jl-features{ grid-template-columns:1fr; }
  .jl-feature__img{ aspect-ratio:16/10; }

  /* Split promo — stack */
  .jl-split{ grid-template-columns:1fr; }
  .jl-promo-box{ padding:24px; grid-column:auto; }
  .jl-split img{ aspect-ratio:16/10; }

  /* About / story — stack with image first */
  .jl-about{ grid-template-columns:1fr; gap:20px; }
  .jl-about__img{ order:-1; }
  .jl-section--story .jl-about{ grid-template-columns:1fr; }

  /* Trust strip / brand logos */
  .jl-brands{ grid-template-columns:repeat(2,1fr); gap:20px 12px; padding:24px 0; }
  .jl-brands img{ height:30px; }
  .jl-trust__title{ font-size:13px; }
  .jl-trust__desc{ font-size:11px; }

  /* Instagram */
  .jl-instagram{ grid-template-columns:repeat(3,1fr); gap:6px; }

  /* Newsletter */
  .jl-newsletter form{ flex-direction:column; }
  .jl-newsletter form .jl-btn{ width:100%; justify-content:center; }

  /* Footer */
  .jl-footer{ padding:40px 0 20px; }
  .jl-footer__grid{
    grid-template-columns:1fr 1fr;
    gap:28px 16px;
  }
  .jl-footer__grid > div:first-child{ grid-column:1 / -1; }
  .jl-footer__bottom{ font-size:12px; }

  /* WooCommerce single product mobile */
  .woocommerce div.product div.images,
  .woocommerce div.product div.summary{
    width:100% !important;
    float:none !important;
  }
  .woocommerce div.product div.summary{ margin-top:20px; }

  /* Touch target sizing */
  .jl-btn, .woocommerce a.button, .woocommerce button.button{
    min-height:44px;
  }
}

@media (max-width: 480px){
  .jl-cats{ flex-wrap:nowrap; }
  .jl-products,
  ul.products{ grid-template-columns:repeat(2,1fr) !important; gap:8px !important; }
  .jl-instagram{ grid-template-columns:repeat(3,1fr); }
  h1{ font-size:24px; }
  h2{ font-size:20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; scroll-behavior:auto !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline:2px solid var(--jl-gold);
  outline-offset:2px;
}

/* ==========================================================================
   Sold-out products

   Each piece is one of a kind, so a sold item is not restocked — it stays in
   the grid as part of the collection rather than disappearing. The card has to
   say so unmistakably without looking broken: the photo desaturates and dims,
   a badge sits where the sale flash would be, and the add-to-cart button is
   replaced by a flat label.
   ========================================================================== */

.gb-card__sold{
  position:absolute;
  top:10px;
  inset-inline-end:10px;
  z-index:2;
  font-size:11px;
  font-weight:700;
  line-height:1;
  padding:5px 9px;
  border-radius:var(--gb-radius-sm);
  background:rgba(43,40,38,.88);
  color:#fff;
  backdrop-filter:blur(2px);
}

/* Dim the photo only — the title, weight and price stay fully readable. */
.gb-card.outofstock .gb-card__thumb img{
  filter:grayscale(.85) opacity(.55);
  transition:filter .25s ease;
}
.gb-card.outofstock:hover .gb-card__thumb img{
  filter:grayscale(.55) opacity(.75);
}

/* The price of a sold piece is history, not an offer. */
.gb-card.outofstock .gb-card__price{
  color:var(--gb-ink-soft, #8A8580);
  text-decoration:line-through;
  text-decoration-thickness:1px;
  text-underline-offset:2px;
}

.gb-card__unavailable{
  flex:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 14px;
  border-radius:var(--gb-radius-sm);
  border:1px dashed var(--gb-line, #E9E1DC);
  background:transparent;
  color:var(--gb-ink-soft, #8A8580);
  font-size:13.5px;
  font-weight:600;
  cursor:not-allowed;
  user-select:none;
}

/* Single product page: same language as the card. */
.single-product .product.outofstock .stock.out-of-stock{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin:12px 0 0;
  padding:9px 14px;
  border-radius:var(--gb-radius-sm);
  border:1px solid var(--gb-line, #E9E1DC);
  background:#faf7f4;
  color:var(--gb-ink, #2B2826);
  font-size:14px;
  font-weight:600;
}
.single-product .product.outofstock .stock.out-of-stock::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:#e5484d;
  flex:none;
}

@media (prefers-reduced-motion:reduce){
  .gb-card.outofstock .gb-card__thumb img{ transition:none; }
}
