/* =========================================================================
   HamoonKPH — WooCommerce styles
   Shop/archive · product card (Method C) · single product · cart · checkout
   · order received · my account. Mobile-first, RTL-first.
   ========================================================================= */

/* hide default Woo demo store notice nicely & reset */
.woocommerce-breadcrumb { font-size: 12.5px; font-weight: var(--weight-body); color: var(--muted-2);
  padding-block: 12px 8px; }
.woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-result-count { font-size: 12.5px; color: var(--muted); font-weight: var(--weight-body); margin: 0; }
.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  border-radius: var(--radius-md); border: 1px solid var(--border-soft); background: var(--gray-100);
  padding: 12px 14px; font-size: 13px; list-style: none; margin: 0 0 16px; }
.woocommerce-error { border-color: rgba(210,59,59,.3); background: rgba(210,59,59,.06); color: var(--danger); }
.woocommerce-message { border-color: rgba(31,157,87,.3); background: rgba(31,157,87,.06); color: var(--success); }

/* WooCommerce price markup → brand price styling */
.woocommerce-Price-amount.amount { font-family: var(--font-fa-num); font-weight: var(--weight-title); color: var(--hkph-500); white-space: nowrap; }
.woocommerce-Price-currencySymbol { font-size: .72em; font-weight: var(--weight-ui); }
del, del .woocommerce-Price-amount { color: var(--muted-2); font-weight: var(--weight-ui); font-size: .85em; text-decoration: line-through; }
ins, ins .woocommerce-Price-amount { text-decoration: none; }
.price ins { text-decoration: none; }
.star-rating { color: var(--hkph-500); }
.wishlist-toggle.is-active { color: var(--danger); }
.wishlist-toggle.is-active svg { fill: var(--danger); }

/* archive header */
.shop-hero { position: relative; height: 170px; overflow: hidden; border-radius: 0; }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.shop-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,28,32,.78), rgba(22,28,32,.05)); }
.shop-hero__body { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px; color: #fff; }
.shop-hero__title { font-size: 22px; font-weight: var(--weight-title); line-height: 1.3; margin: 0 0 3px; }
.shop-hero__sub { font-size: 12.5px; font-weight: var(--weight-body); color: rgba(255,255,255,.88); }
@media (min-width: 1024px) { .shop-hero { border-radius: var(--radius-xl); height: 220px; } }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block: 10px 14px; }
.shop-toolbar__count { font-size: 12.5px; color: var(--muted); font-weight: var(--weight-body); }
.woocommerce-ordering { margin: 0; }
.shop-toolbar__sort select, .woocommerce-ordering select.orderby { width: auto; min-width: 150px; padding: 9px 12px; font-size: 13px; }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-list a { color: var(--slate-600); font-size: 13px; }
.filter-list a:hover { color: var(--hkph-600); }
.filter-price input { margin: 0; }
.filter-price__hint { margin: 0 0 9px; font-size: 12px; color: var(--muted); font-weight: var(--weight-body); }
.filter-price__inputs { display: flex; gap: 8px; }
.filter-price__inputs input { width: 100%; min-width: 0; }

/* Dual-handle price range slider (low on the start, high on the end; forced LTR
   so the drag logic is predictable regardless of the RTL page). Two overlaid
   range inputs; only the thumbs receive pointer events so both stay draggable. */
.price-slider { position: relative; height: 30px; direction: ltr; margin: 2px 4px 6px; }
.price-slider__track { position: absolute; inset-inline: 6px; top: 50%; transform: translateY(-50%);
  height: 4px; border-radius: 999px; background: var(--gray-200, #e6e8ea); }
.price-slider__range { position: absolute; height: 100%; border-radius: 999px; background: var(--hkph-500, #00ADE6); }
.price-slider__handle { position: absolute; inset-inline: 0; top: 0; width: 100%; height: 100%; margin: 0;
  background: none; -webkit-appearance: none; appearance: none; pointer-events: none; }
.price-slider__handle::-webkit-slider-runnable-track { background: none; border: none; }
.price-slider__handle::-moz-range-track { background: none; border: none; }
.price-slider__handle::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto;
  width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--hkph-500, #00ADE6);
  box-shadow: 0 1px 4px rgba(0,0,0,.22); cursor: pointer; margin-top: -7px; }
.price-slider__handle::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--hkph-500, #00ADE6); box-shadow: 0 1px 4px rgba(0,0,0,.22); cursor: pointer; }
.price-slider__handle:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--hkph-700, #0284a8); outline-offset: 2px; }
.price-slider__values { display: flex; justify-content: space-between; direction: ltr; gap: 8px;
  font-size: 12px; color: var(--muted); margin: 0 2px 9px; }
.filter-search__row { display: flex; gap: 8px; }
.filter-search__row input[type="search"] { width: 100%; min-width: 0; margin: 0; }
.filter-search__row .btn { flex: 0 0 auto; padding-inline: 14px; }
.filter-clear { display: inline-block; margin-top: 4px; font-size: 12.5px; color: var(--danger); }
.filter-colors .swatch { transition: box-shadow var(--motion-fast) var(--motion-ease), transform var(--motion-fast) var(--motion-ease); }
.filter-colors .swatch:hover, .filter-colors .swatch:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--hkph-500); outline: none; transform: translateY(-1px); }
.filter-colors .swatch.is-extra { display: none; }
.filter-colors.is-open .swatch.is-extra { display: inline-block; }
.filter-colors .swatch--more { width: auto; min-width: 24px; height: 24px; padding: 0 7px; background: var(--gray-100);
  color: var(--muted); font-size: 11px; font-weight: var(--weight-strong); border-radius: var(--radius-pill); cursor: pointer; }

/* mobile filter/sort bar — floats up and sticks to the BOTTOM on scroll
   (thumb-reachable, above the bottom-nav). Hidden at the very top and once the
   footer is reached; revealed by JS (initShopFilterbar) toggling .is-visible. */
.shop-filterbar { display: flex; background: #fff; z-index: 40;
  position: fixed; inset-inline: 0; bottom: 0;
  border-top: 1px solid var(--border-soft); box-shadow: 0 -6px 20px rgba(0,0,0,.10);
  transform: translateY(130%); transition: transform .28s cubic-bezier(.4,0,.2,1);
  padding-bottom: env(safe-area-inset-bottom, 0px); }
.shop-filterbar.is-visible { transform: none; }
.has-bottom-nav .shop-filterbar { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: 0; }
.shop-filterbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 14px 12px; font-family: var(--font-fa); font-size: 14px; font-weight: var(--weight-strong);
  color: var(--slate-700); background: none; border: 0; cursor: pointer; }
.shop-filterbar button + button { border-inline-start: 1px solid var(--border-soft); }
.shop-filterbar svg { width: 18px; height: 18px; }
@media (min-width: 1024px) { .shop-filterbar { display: none; } }
@media (prefers-reduced-motion: reduce) { .shop-filterbar { transition: none; } }

/* shop layout (desktop sidebar) */
.shop-layout { display: block; }
.shop-sidebar { display: none; }
@media (min-width: 1024px) {
  .shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
  .shop-sidebar { display: block; position: sticky; top: 88px; }
  .shop-sidebar .widget, .filter-group { border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
    padding: 16px; margin-bottom: 16px; }
  .filter-group__title, .shop-sidebar .widgettitle { font-size: 13.5px; font-weight: var(--weight-strong);
    color: var(--text-strong); margin: 0 0 11px; }
}

/* products grid — target ul.products ONLY (the bare .products class is also on
   the .related/.upsells SECTION wrappers, which must NOT become grids). */
ul.products, .products-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin: 0; padding: 0; list-style: none; }
ul.products > li, .products-grid > * { min-width: 0; } /* let tracks stay equal, never collapse */
@media (min-width: 768px) { ul.products, .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1024px) {
  ul.products.columns-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shop-content ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Home product grid is 4-up on desktop (per the desktop design). */
  .home ul.products, .home .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ----------------------------------------- product card (Method C) ------ */
.product-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; display: flex; flex-direction: column; position: relative;
  transition: transform var(--motion-base) var(--motion-ease), box-shadow var(--motion-base) var(--motion-ease); }
li.product { list-style: none; margin: 0; }
@media (min-width: 1024px) { .product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-raised); } }
.product-card.is-soldout { opacity: .7; }

.product-card__media { position: relative; aspect-ratio: 4/5; background: var(--gray-100); overflow: hidden; }
.product-card__media-link { display: block; width: 100%; height: 100%; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* wishlist heart — bottom-left corner of the media (clear of badges) */
.product-card .wishlist-toggle { position: absolute; bottom: 8px; inset-inline-end: 8px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--slate-600);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-soft); border: 0; cursor: pointer;
  transition: color var(--motion-fast), transform var(--motion-fast); }
.product-card .wishlist-toggle svg { width: 18px; height: 18px; }
.product-card .wishlist-toggle:hover { transform: scale(1.08); }
.product-card .wishlist-toggle[aria-pressed="true"] { color: var(--danger); }
.product-card .wishlist-toggle[aria-pressed="true"] svg { fill: currentColor; }
/* primary badge top-right (start corner in RTL), sale badge top-left */
.product-card__badge { position: absolute; top: 9px; inset-inline-start: 9px; z-index: 2; }
.product-card__sale { position: absolute; top: 9px; inset-inline-end: 9px; z-index: 2; }
.product-card__add { width: 32px; height: 32px; border-radius: 50%; background: var(--hkph-100);
  display: flex; align-items: center; justify-content: center; border: 0; color: var(--hkph-500); flex: 0 0 auto;
  transition: background var(--motion-fast), color var(--motion-fast); }
.product-card__add svg { width: 17px; height: 17px; }
.product-card__add:hover { background: var(--hkph-500); color: #fff; }
.product-card__add.loading { opacity: .6; pointer-events: none; }
.product-card__add.added { background: var(--success); color: #fff; }

/* حالت «دکمهٔ تمام‌عرض» (تنظیمات ← فروشگاه ← دکمهٔ افزودن روی کارت).
   زیر ردیفِ قیمت رندر می‌شود؛ ارث از .product-card__add (رنگ/hover/added). */
.product-card__add--full { width: 100%; height: 40px; margin-top: 8px; gap: 7px;
  border-radius: var(--radius-md, 12px); background: var(--hkph-500); color: #fff;
  font-size: 13px; font-weight: var(--weight-ui); }
.product-card__add--full:hover { background: var(--hkph-600); }
.product-card__add--full.is-unavailable { background: var(--gray-100); color: var(--muted); }
.product-card__add--full.is-unavailable:hover { background: var(--gray-150); color: var(--muted); }

.product-card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
/* نوار کم‌موجودی «تنها N عدد» (ماک RT: ترک ۵px + پرشدگی کهربایی + متن ریز) */
.product-card__lowstock { display: flex; align-items: center; gap: 6px; }
.product-card__lowstock-track { flex: 1; height: 5px; background: var(--gray-100); border-radius: var(--radius-pill); overflow: hidden; }
.product-card__lowstock-fill { display: block; height: 100%; background: var(--warning, #E0A52E); border-radius: var(--radius-pill); }
.product-card__lowstock-text { font-size: 10.5px; font-weight: var(--weight-strong); color: var(--warning-strong, #8A6410); white-space: nowrap; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.swatches { display: flex; gap: 5px; flex-wrap: wrap; min-height: 15px; }
.swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid #d8dcde; padding: 0;
  -webkit-appearance: none; appearance: none; cursor: default; box-sizing: border-box; }
.swatch[data-swatch-img] { cursor: pointer; }
.swatch.is-selected { border: 2px solid var(--hkph-500); box-shadow: 0 0 0 1px #fff inset; }
.swatch--more { width: auto; min-width: 15px; height: 15px; border: 0; background: var(--gray-100);
  font-size: 9px; font-weight: var(--weight-strong); color: var(--muted); padding: 0 5px; border-radius: var(--radius-pill); }
.product-card__title { font-size: 12.5px; font-weight: var(--weight-ui); color: var(--text-strong);
  line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 38px; }
.product-card__title a { color: inherit; }
.product-card__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px 6px; font-size: 13px; }
.product-card__price del { flex-basis: 100%; font-size: .8em; } /* old price on its own line, above */
.product-card__price ins { text-decoration: none; }
@media (min-width: 1024px) {
  .product-card__title { font-size: 14.5px; min-height: 44px; }
  .product-card__price { font-size: 16px; }
  .product-card__add { width: 36px; height: 36px; background: var(--hkph-100); position: static; box-shadow: none; }
  .product-card__add svg { width: 19px; height: 19px; }
  .product-card__add--full { width: 100%; height: 42px; background: var(--hkph-500); color: #fff; font-size: 14px; }
  .product-card__add--full.is-unavailable { background: var(--gray-100); color: var(--muted); }
  .product-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
}

/* load more / pagination */
.woocommerce-pagination { margin-top: 24px; text-align: center; }
.woocommerce-pagination ul { display: inline-flex; gap: 6px; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  font-weight: var(--weight-strong); color: var(--slate-600); }
.woocommerce-pagination .current { background: var(--hkph-500); color: #fff; border-color: var(--hkph-500); }
.loadmore-wrap { text-align: center; margin-top: 18px; }

/* infinite scroll: hide the numbered pager only once JS takes over (kept in the
   DOM for SEO + no-JS), and show a loader / end-of-list status instead. */
.shop-content.is-infinite-active .woocommerce-pagination { display: none; }
.shop-infinite { display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 1px; padding: 18px 0 4px; color: var(--muted); font-size: 13px; }
.shop-infinite__spinner { width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--gray-200, #e6e8ea); border-top-color: var(--hkph-500, #00ADE6);
  animation: hkph-spin .7s linear infinite; }
@keyframes hkph-spin { to { transform: rotate( 360deg ); } }
@media (prefers-reduced-motion: reduce) { .shop-infinite__spinner { animation-duration: 2s; } }

/* ================================================ single product ======= */
.product-single { padding-bottom: 24px; }
.product-gallery { position: relative; }
.product-gallery__main { position: relative; aspect-ratio: 1; background: var(--gray-100);
  border-radius: var(--radius-xl); overflow: hidden; }
.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__badge { position: absolute; top: 11px; inset-inline-start: 11px; z-index: 3; }
.product-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.product-gallery__thumbs::-webkit-scrollbar { display: none; }
.product-gallery__thumb { flex: 0 0 64px; aspect-ratio: 1; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-soft); background: var(--gray-100); padding: 0; }
.product-gallery__thumb.is-active { border: 2px solid var(--hkph-500); }

.product-summary { padding-top: 16px; }
.product-summary__cat { font-size: 11.5px; color: var(--muted-2); font-weight: var(--weight-body); margin-bottom: 4px; }
.product-summary__title { font-size: 19px; font-weight: var(--weight-title); color: var(--text-strong); margin: 0; line-height: 1.4; }
.product-summary__price { font-size: 20px; margin: 8px 0 14px; }

.option-row { margin-bottom: 16px; }
.option-row__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.option-row__label { font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); }
.option-row__label .val { font-weight: var(--weight-body); color: var(--muted); }
/* «راهنمای اندازه» — an outlined, gently pulsing chip placed next to the size
   guide sheet. Calm, secondary link placed directly above the product accordion
   (a quiet row with a top divider) — premium feel, never competes with the CTA. */
.size-guide-link { display: flex; align-items: center; gap: 7px; width: 100%; justify-content: flex-start;
  font-size: 14px; font-weight: var(--weight-strong); color: var(--text-strong, #0B1D38);
  background: transparent; border: 0; border-top: 1px solid var(--border-soft); border-radius: 0;
  padding: 13px 2px; margin: 8px 0 0; min-height: 44px; cursor: pointer; }
.size-guide-link svg { width: 18px; height: 18px; color: var(--hkph-500); }
.size-guide-link:hover, .size-guide-link:focus-visible { color: var(--hkph-600, #0B1D38); background: transparent; text-decoration: underline; }
/* Size-guide shortcut (ruler icon + tiny «سایز» label) inside the mobile
   sticky buy-bar — design v2: stacked icon/label square. */
.sg-sticky-btn { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; width: 48px; align-self: stretch; border: 1.5px solid var(--text-strong, #0B1D38); background: var(--surface, #fff);
  color: var(--text-strong, #0B1D38); border-radius: 12px; cursor: pointer; }
.sg-sticky-btn svg { width: 20px; height: 20px; }
.sg-sticky-btn__lbl { font-size: 9px; font-weight: var(--weight-strong); line-height: 1; }

/* ---- design v2 — size UI on the product page ---- */
/* Dashed full-width «راهنمای انتخاب سایز» below the size selectors (in-form). */
.size-guide-dashed { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin: 2px 0 14px; padding: 12px 14px; min-height: 46px; cursor: pointer;
  border: 1.5px dashed var(--accent-2, var(--hkph-500)); border-radius: var(--radius-md);
  background: transparent; color: var(--text-strong, #0B1D38);
  font-family: var(--font-fa); font-size: 13.5px; font-weight: var(--weight-strong); }
.size-guide-dashed svg { width: 17px; height: 17px; color: var(--accent-2, var(--hkph-500)); }
.size-guide-dashed:hover, .size-guide-dashed:focus-visible {
  background: var(--accent-2-soft, var(--hkph-100)); border-style: solid; }

/* Square «سایز» shortcut beside the CTA (stacked ruler icon + label). */
.sg-inline-btn { flex: 0 0 auto; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; width: 54px; align-self: stretch; min-height: 52px; cursor: pointer;
  border: 1.5px solid var(--text-strong, #0B1D38); background: var(--surface, #fff);
  color: var(--text-strong, #0B1D38); border-radius: var(--radius-md); }
.sg-inline-btn svg { width: 19px; height: 19px; }
.sg-inline-btn span { font-size: 9.5px; font-weight: var(--weight-strong); line-height: 1; }
.sg-inline-btn:hover, .sg-inline-btn:focus-visible { background: var(--accent-2-soft, var(--hkph-100)); }

/* Variable products: qty + CTA + «سایز» square share one stretch row. */
.product-buy .woocommerce-variation-add-to-cart { display: flex; align-items: stretch; gap: 11px; flex-wrap: wrap; flex: 1 1 100%; }
.product-buy .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1; }
.product-buy .woocommerce-variation-add-to-cart .quantity { flex: 0 0 auto; }
/* رَپِ وارییشن باید تمام‌عرضِ فرم را بگیرد؛ چون فرزندِ فلکسِ form.cart است و
   بدون این قاعده به عرضِ محتوا جمع می‌شود، دکمهٔ «افزودن به سبد» در حالت عادیِ
   موبایل باریک می‌ماند (کنارِ انتخاب تعداد رشد نمی‌کند). */
.product-buy form.cart .single_variation_wrap { flex: 1 1 100%; }

/* ---- سایزیاب — «نمی‌دونی سایزت چیه؟» card + height/weight form ---- */
.sizerec { width: 100%; box-sizing: border-box; border: 1px solid var(--border-soft); background: var(--surface, #fff);
  border-radius: var(--radius-md); padding: 13px 14px; margin: 0 0 14px; }
.sizerec__head { display: flex; align-items: center; gap: 11px; }
.sizerec__icon { flex: 0 0 auto; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  background: var(--accent-2-soft, var(--hkph-100)); color: var(--text-strong, #0B1D38); border-radius: 10px; }
.sizerec__icon svg { width: 20px; height: 20px; }
.sizerec__lead { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sizerec__lead strong { font-size: 12.5px; font-weight: var(--weight-title); color: var(--text-strong); }
.sizerec__lead span { font-size: 10.5px; color: var(--muted); }
.sizerec__start { flex: 0 0 auto; border: 0; cursor: pointer; background: var(--hkph-500); color: #fff;
  font-family: var(--font-fa); font-size: 11.5px; font-weight: var(--weight-strong);
  padding: 8px 16px; border-radius: 8px; transition: background var(--motion-base); }
.sizerec__start:hover { background: var(--hkph-600); }
.sizerec__body { margin-top: 12px; }
.sizerec__fields { display: flex; align-items: flex-end; gap: 9px; flex-wrap: wrap; }
.sizerec__field { flex: 1 1 90px; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.sizerec__field span { font-size: 11px; font-weight: var(--weight-strong); color: var(--text-body); }
.sizerec__field input { width: 100%; box-sizing: border-box; text-align: center; padding: 10px 12px;
  border: 1.5px solid var(--border-strong, #d8d3ce); border-radius: 9px; background: var(--surface, #fff);
  font-family: var(--font-fa-num); font-size: 14px; font-weight: var(--weight-strong); color: var(--text-strong); }
.sizerec__field input:focus { outline: none; border-color: var(--border-focus); box-shadow: var(--shadow-focus); }
/* سوییچ زن/مرد سایزیاب — فقط برای محصولات یونیسکس رندر می‌شود */
.sizerec__gender { display: flex; gap: 8px; margin: 0 0 10px; }
.sizerec__gopt { cursor: pointer; }
.sizerec__gopt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sizerec__gopt span { display: inline-block; padding: 7px 16px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill); font-size: 12.5px; font-weight: var(--weight-ui);
  color: var(--text-body); background: var(--surface, #fff); transition: all var(--motion-fast, .12s); }
.sizerec__gopt input:checked + span { border-color: var(--color-primary); background: var(--surface-tint);
  color: var(--color-primary-press); font-weight: var(--weight-strong); }
.sizerec__gopt input:focus-visible + span { box-shadow: var(--shadow-focus); }
.sizerec__go { flex: 1 1 110px; height: 42px; padding: 0 16px; font-size: 13px; border-radius: 9px; }
.sizerec__error { margin: 9px 0 0; font-size: 11.5px; color: var(--danger); }
.sizerec__result { margin: 12px 0 0; padding: 11px 13px; border-radius: 9px;
  background: var(--success-soft, #E8F0E9); font-size: 11.5px; line-height: 2; color: var(--text-body); }
.sizerec__result .sizerec__pick { display: block; font-size: 12.5px; color: var(--success-strong, #35663F); }
.sizerec__result .sizerec__pick--warn { color: var(--warning); }
.sizerec__result .sizerec__hint { display: block; color: var(--muted); }
.sizerec--sheet { margin: 16px 0 0; background: var(--surface-subtle, #f6f6f6); border: 0; }

/* بج امتیاز باشگاه زیر قیمت (design v2: چیپ با سطح ملایم اکسنت دوم) */
.hkph-club-hint { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 0;
  padding: 6px 12px; border-radius: var(--radius-pill); background: var(--accent-2-soft, var(--hkph-100));
  font-size: 11.5px; font-weight: var(--weight-ui); color: var(--text-body); }
.hkph-club-hint svg { width: 14px; height: 14px; color: var(--accent-2, var(--hkph-500)); }

.color-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.color-swatch { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e2e4e6; padding: 0; cursor: pointer; }
.color-swatch.is-selected { border: 2px solid var(--hkph-500); }
/* Unavailable / out-of-stock color: dimmed + a clear strike so the user
   immediately sees it doesn't exist for the current choice (design v2: no red —
   a white-backed ink line stays visible on light AND dark swatches). */
.color-swatch.is-unavailable { opacity: .5; filter: grayscale(35%); cursor: not-allowed; }
.color-swatch.is-unavailable::after { content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: linear-gradient(to top right, transparent calc(50% - 2px), rgba(255,255,255,.9) calc(50% - 2px),
    rgba(255,255,255,.9) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(to top right, transparent calc(50% - 1.1px), var(--text-strong, #17181B) calc(50% - 1.1px),
    var(--text-strong, #17181B) calc(50% + 1.1px), transparent calc(50% + 1.1px)); }
.color-swatch.is-unavailable.is-selected { border-color: #e2e4e6; }

.size-pills, .hkph-pill-group { display: flex; gap: 9px; flex-wrap: wrap; }
.size-pill { flex: 0 0 auto; min-width: 56px; text-align: center; padding: 11px 16px; border: 1px solid #e2e4e6;
  color: var(--slate-600); font-size: 14px; font-weight: var(--weight-ui); border-radius: var(--radius-md);
  background: #fff; cursor: pointer; }
.size-pill.is-selected { border: 1.5px solid var(--hkph-500); background: var(--hkph-100); color: var(--hkph-700); font-weight: var(--weight-strong); }
.size-pill.is-disabled, .size-pill:disabled { color: #b9bfc2; text-decoration: line-through; cursor: not-allowed; }
/* Unavailable / out-of-stock size: dimmed + line-through (design v2: no red —
   the strike inherits the muted text colour). */
.size-pill.is-unavailable { color: var(--muted-2, #b9bfc2); background: var(--surface-subtle, #fafbfb);
  border-color: var(--border-soft, #ededed); cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: currentColor; text-decoration-thickness: 1.5px; opacity: .8; }

.feature-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-pill { display: flex; align-items: center; gap: 5px; background: var(--gray-100); color: var(--slate-700);
  font-size: 11.5px; font-weight: var(--weight-ui); padding: 6px 11px; border-radius: var(--radius-pill); }
.feature-pill svg { width: 13px; height: 13px; color: var(--hkph-500); }

/* accordion (description / shipping) */
.product-accordion { border-top: 1px solid var(--border-soft); margin-top: 16px; }
.product-accordion__item { border-bottom: 1px solid var(--border-soft); }
.product-accordion__head { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: 0; padding: 14px 0; font-size: 13.5px; font-weight: var(--weight-strong); color: var(--text-strong); }
.product-accordion__head svg { width: 18px; height: 18px; color: var(--slate-600); transition: transform var(--motion-base); }
.product-accordion__item.is-open .product-accordion__head svg { transform: rotate(180deg); }
.product-accordion__body { font-size: 12.5px; font-weight: var(--weight-body); color: var(--slate-500);
  line-height: 1.9; padding: 0 0 14px; }
.product-accordion__item:not(.is-open) .product-accordion__body { display: none; }

/* sticky add-to-cart (mobile) */
.product-cta { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--border-soft);
  padding: 12px var(--container-pad) calc(18px + env(safe-area-inset-bottom,0px)); z-index: 40; }
.has-bottom-nav .product-cta { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom,0px)); }
.product-cta__row { display: flex; align-items: center; gap: 11px; }
.product-cta__col { display: flex; flex-direction: column; gap: 9px; }
.qty-stepper { display: flex; align-items: center; gap: 14px; border: 1px solid #e2e4e6; border-radius: var(--radius-md); padding: 9px 13px; }
.qty-stepper button { background: none; border: 0; color: var(--slate-600); display: flex; padding: 0; }
.qty-stepper button svg { width: 18px; height: 18px; }
.qty-stepper input { width: 24px; text-align: center; border: 0; font-size: 15px; font-weight: var(--weight-title);
  color: var(--text-strong); background: none; font-family: var(--font-fa-num); }
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

@media (min-width: 1024px) {
  .product-single__layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 44px; align-items: start; }
  /* gallery on the left, info on the right (RTL) per spec */
  .product-single__layout .product-summary { order: 1; }
  .product-single__layout .product-gallery { order: 2; }
  .product-gallery__main { border-radius: var(--radius-xl); }
  .product-summary { padding-top: 0; position: sticky; top: 88px; }
  .product-summary__title { font-size: 28px; }
  .product-summary__price { font-size: 26px; }
  .product-cta { position: static; border-top: 0; padding: 0; margin-top: 18px; }
  .has-bottom-nav .product-cta { bottom: auto; }
}

/* rating */
.product-summary .woocommerce-product-rating { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-size: 12px; }

/* product gallery — custom lightweight (main image + thumbnail row) */
.hkph-gallery { width: 100%; }
.hkph-gallery__main { border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); aspect-ratio: var(--hkph-pdp-ratio, 3 / 4); }
.hkph-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hkph-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.hkph-gallery__thumbs::-webkit-scrollbar { display: none; }
.hkph-gallery__thumb { flex: 0 0 84px; aspect-ratio: 1; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); overflow: hidden; padding: 0; background: var(--gray-100); cursor: pointer; }
.hkph-gallery__thumb.is-active { border: 2px solid var(--hkph-500); }
.hkph-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 1024px) { .hkph-gallery__thumb { flex: 0 0 104px; } }

/* legacy WooCommerce gallery (kept for safety if ever rendered) */
.product-gallery .woocommerce-product-gallery { position: relative; width: 100%; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; padding: 0; list-style: none; }
.woocommerce-product-gallery .flex-viewport { border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); }
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__wrapper > div,
.woocommerce-product-gallery__wrapper { width: 100%; }
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img,
.woocommerce-product-gallery img { display: block; width: 100%; height: auto; border-radius: var(--radius-xl); }
/* when JS slider is off, only show the first image as the main one */
.woocommerce-product-gallery:not(.flexslider) .woocommerce-product-gallery__image:not(:first-child) { display: none; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; inset-inline-start: 12px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-card);
  display: flex; align-items: center; justify-content: center; text-indent: -9999px; overflow: hidden; }
.woocommerce-product-gallery__trigger::after { content: ""; position: absolute; inset: 0;
  background: center/20px no-repeat; }
.flex-control-thumbs { display: flex; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.flex-control-thumbs li { flex: 0 0 64px; }
.flex-control-thumbs img { border-radius: var(--radius-md); border: 1px solid var(--border-soft); cursor: pointer; width: 100%; height: auto; }
.flex-control-thumbs img.flex-active { border: 2px solid var(--hkph-500); }

/* the WC add-to-cart form, styled as the bespoke buy area */
.product-buy { margin: 16px 0 8px; }
.product-buy .stock { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.product-buy .out-of-stock { color: var(--danger); font-weight: var(--weight-strong); }
.product-buy form.cart { margin: 0; }

/* qty stepper (WooCommerce .quantity enhanced) — matches the CTA height */
.product-buy .quantity { display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid #e2e4e6; border-radius: var(--radius-md); padding: 0 16px; height: 52px; box-sizing: border-box; }
.product-buy .quantity .qty { width: 28px; text-align: center; border: 0; background: none; font-size: 15px;
  font-weight: var(--weight-title); color: var(--text-strong); font-family: var(--font-fa-num); }
.product-buy .quantity .qty::-webkit-outer-spin-button, .product-buy .quantity .qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hkph-qty-btn { background: none; border: 0; color: var(--slate-600); display: flex; padding: 0; cursor: pointer; }
.hkph-qty-btn svg { width: 18px; height: 18px; }

/* native number-spinner removal for ALL qty inputs (cart + product).
   appearance:textfield is the reliable method — the webkit-pseudo rule alone
   wasn't hiding the arrows in current Chrome. */
.quantity .qty, input.qty { -moz-appearance: textfield; appearance: textfield; }
.quantity .qty::-webkit-inner-spin-button, .quantity .qty::-webkit-outer-spin-button,
input.qty::-webkit-inner-spin-button, input.qty::-webkit-outer-spin-button { -webkit-appearance: none; appearance: none; margin: 0; }

/* cart qty stepper — same clean horizontal stepper as the product page
   (the bare WooCommerce .quantity in the cart wasn't getting flex layout, so
   the +/− buttons stacked vertically). */
.cart-item .quantity { display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  border: 1px solid #e2e4e6; border-radius: var(--radius-md); padding: 0 14px; height: 44px; box-sizing: border-box; }
.cart-item .quantity .qty { width: 42px; text-align: center; border: 0; background: none; font-size: 15px;
  font-weight: var(--weight-title); color: var(--text-strong); font-family: var(--font-fa-num); }

/* CTA buttons rendered as <a> (e.g. cart «ادامهٔ خرید و تسویه») were inheriting
   the blue link color + underline, making the text unreadable on the brand-blue
   fill. Force the intended button styling. */
a.btn { text-decoration: none !important; }
a.btn--primary { color: #fff !important; }
/* roomier qty field on the product page too, for 2-digit quantities */
.product-buy .quantity .qty { width: 42px; }

/* primary buy button — same height & radius as the qty stepper */
.product-buy .single_add_to_cart_button, .product-buy .button.alt {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--hkph-500); color: #fff; border: 1.5px solid transparent; font-family: var(--font-fa);
  font-size: 15px; font-weight: var(--weight-strong); padding: 0 28px; height: 52px; box-sizing: border-box;
  border-radius: var(--radius-md); cursor: pointer; transition: background var(--motion-base); }
.product-buy .single_add_to_cart_button:hover { background: var(--hkph-600); }
.product-buy .single_add_to_cart_button:active { background: var(--hkph-700); }

/* restyle the blutshirt-customizer plugin's «طراحی کن» CTA to the brand pill
   (its inline <style> ships a 12px-radius button; override to match .btn--primary) */
.product-buy .bt-pdp-cta, a.bt-pdp-cta {
  border-radius: var(--radius-pill) !important; background: var(--hkph-500) !important;
  font-family: var(--font-fa) !important; font-weight: var(--weight-strong) !important;
  padding: 14px 24px !important; }
.product-buy .bt-pdp-cta:hover, a.bt-pdp-cta:hover { background: var(--hkph-600) !important; }
.bt-pdp-cta-wrap { order: -1; } /* show the design CTA before add-to-cart for basic line */
.product-buy[data-line="basic"] form.cart { display: flex; flex-direction: column; }

/* basic line: design button primary, native add-to-cart becomes secondary outline */
.hkph-design-button { margin-bottom: 9px; }
.product-buy[data-line="basic"] .single_add_to_cart_button {
  background: #fff; border-color: var(--hkph-500); color: var(--hkph-700); }
.product-buy[data-line="basic"] .single_add_to_cart_button:hover { background: var(--hkph-100); }

/* collection line: qty + button on one row, equal height */
.product-buy[data-line="collection"] form.cart { display: flex; align-items: stretch; gap: 11px; flex-wrap: wrap; }
.product-buy[data-line="collection"] form.cart .single_add_to_cart_button { flex: 1; }
.product-buy[data-line="collection"] form.cart .quantity { flex: 0 0 auto; }
.product-buy[data-line="basic"] form.cart { display: flex; flex-direction: column; gap: 9px; }
.product-buy[data-line="basic"] form.cart .quantity { align-self: flex-start; }

/* variation form enhanced into swatches/size-pills (see theme.js) */
.product-buy .variations { width: 100%; border: 0; margin: 0 0 14px; }
.product-buy .variations td, .product-buy .variations th { display: block; padding: 0; border: 0; text-align: start; }
.product-buy .variations tr { display: block; margin-bottom: 14px; }
.product-buy .variations .label { margin-bottom: 9px; font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); }
.product-buy .variations .label label { margin: 0; font-size: inherit; color: inherit; font-weight: inherit; }
.product-buy .reset_variations { font-size: 12px; color: var(--muted); margin-inline-start: 8px; }
/* keep native select usable as fallback; hidden once JS builds controls */
.hkph-swatch-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.hkph-swatch-group .color-swatch { width: 34px; height: 34px; }
/* smart overflow: hide extra colours behind a «+N» toggle */
.hkph-swatch-group .color-swatch.is-extra { display: none; }
.hkph-swatch-group.is-open .color-swatch.is-extra { display: inline-block; }
.color-swatch--more { width: auto; min-width: 34px; height: 34px; padding: 0 11px; border-radius: var(--radius-pill);
  background: var(--gray-100); color: var(--muted); font-size: 12px; font-weight: var(--weight-strong);
  border: 1px solid var(--border-soft); cursor: pointer; font-family: var(--font-fa-num); }
.color-swatch--more:hover { background: var(--gray-150); color: var(--text-body); }
/* سواچ نام‌دار: نام رنگ انتخاب‌شده زیر ردیف سواچ‌ها (JS پرش می‌کند؛ خالی = بدون انتخاب) */
.hkph-swatch-name { display: block; min-height: 18px; margin: 2px 0 0; font-size: 12.5px;
  font-weight: var(--weight-strong); color: var(--text-body); }

/* ---- حباب نام رنگ (initSwatchTips در theme.js) ----
   یک المان مشترک برای همهٔ سواچ‌ها؛ به <body> اضافه می‌شود و با position:fixed
   دقیقاً بالای (یا زیرِ) سواچ می‌نشیند. مکان‌یابی و clamp دو لبه در JS است، پس
   اینجا فقط ظاهر: قرص تیرهٔ کوچک، بدون گرفتن رویداد ماوس/لمس تا کلیک سواچ
   هیچ تغییری نکند. */
/* z-index باید از هر روکشِ تم بالاتر باشد: .modal (۳۰۰) و .menu-drawer (۲۰۰) در
   main.css. روی موبایل تنها نسخهٔ فیلتر رنگ داخل «شیت فیلترها» (.modal) است، پس
   با ۹۰ حباب دقیقاً روی همان سطحی که برایش ساخته شده پشتِ شیت می‌افتاد. */
.hkph-swatch-tip {
  position: fixed; top: 0; left: 0; z-index: 400;
  pointer-events: none; opacity: 0; visibility: hidden;
  max-width: min(70vw, 220px);
  padding-block: 5px; padding-inline: 10px;
  border-radius: var(--radius-sm, 8px);
  background: rgba(23, 24, 27, .93); color: #fff;
  font-family: var(--font-fa); font-size: 12px; font-weight: var(--weight-ui, 500);
  line-height: 1.55; text-align: center; overflow-wrap: anywhere;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  transform: translateY(3px);
  transition: opacity 120ms var(--motion-ease, ease), transform 120ms var(--motion-ease, ease);
}
.hkph-swatch-tip.is-on { opacity: 1; visibility: visible; transform: none; }
/* نوک حباب؛ --tip-arrow را JS روی مرکز سواچ تنظیم می‌کند (چپ فیزیکی است چون
   clamp هم فیزیکی است و باید در RTL و LTR یکسان عمل کند). */
.hkph-swatch-tip::after {
  content: ""; position: absolute; left: var(--tip-arrow, 50%); top: 100%;
  margin-left: -5px; border: 5px solid transparent; border-top-color: rgba(23, 24, 27, .93);
}
.hkph-swatch-tip.is-below::after {
  top: auto; bottom: 100%;
  border-top-color: transparent; border-bottom-color: rgba(23, 24, 27, .93);
}
@media (prefers-reduced-motion: reduce) {
  .hkph-swatch-tip { transition: none; transform: none; }
}

/* ---- combinable filter UI: size pills · active-filter chips · count badge ---- */
.size-pills { display: flex; flex-wrap: wrap; gap: 9px; }

.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 18px; }
.active-filters__label { font-size: 12.5px; color: var(--text-muted); font-weight: var(--weight-ui); }
.active-filter { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--hkph-100); color: var(--hkph-700); border: 1px solid transparent; font-size: 12.5px;
  font-weight: var(--weight-ui); transition: background var(--motion-fast) var(--motion-ease); }
.active-filter:hover { background: var(--hkph-200); }
.active-filter svg { width: 13px; height: 13px; }
.active-filter--clear { background: none; color: var(--text-muted); border-color: var(--border-soft); }
.active-filter--clear:hover { background: var(--gray-100); color: var(--text-body); }

.filterbar-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px;
  padding: 0 5px; margin-inline-start: 6px; border-radius: var(--radius-pill); background: var(--hkph-500); color: #fff;
  font-size: 11px; font-weight: var(--weight-strong); font-family: var(--font-fa-num); }
.hkph-pill-group { display: flex; gap: 9px; flex-wrap: wrap; }
.js .product-buy .variations.is-enhanced select { display: none; }

/* mobile sticky CTA bar — mirrors the inline buy area (same actions) and is
   revealed by JS (.is-visible) only after that area scrolls out of view, so it
   never duplicates a button that's already on screen. Hidden + click-through
   until revealed, with a slide-up transition. Identical on every product. */
.product-sticky-cta { display: none; }
@media (max-width: 1023.98px) {
  .product-sticky-cta { display: flex; gap: 11px; position: fixed; inset-inline: 0; bottom: 0; z-index: 50;
    background: #fff; border-top: 1px solid var(--border-soft);
    box-shadow: 0 -6px 18px rgba(15, 23, 42, .07);
    padding: 12px var(--container-pad) calc(14px + env(safe-area-inset-bottom,0px));
    transform: translateY(130%); transition: transform var(--motion-base);
    pointer-events: none; }
  .product-sticky-cta.is-visible { transform: none; pointer-events: auto; }
  .has-bottom-nav .product-sticky-cta { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom,0px)); }
  /* basic line → two buttons in one row (design primary, cart secondary) */
  .product-sticky-cta .btn { flex: 1; height: 50px; padding: 0 14px; white-space: nowrap; }
  .product-sticky-cta--basic .hkph-sticky-design { flex: 1.2; }
  /* reserve space so the revealed bar never hides the last content */
  .product-single { padding-bottom: 92px; }
}

/* related products */
.related.products, .upsells.products { margin-top: 40px; }
.related > h2, .upsells > h2 { font-size: var(--text-h3); font-weight: var(--weight-title); margin-bottom: 16px; }

/* ===================================================== cart ============ */
.checkout-steps { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 16px; background: var(--gray-100); }
.checkout-step { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: var(--weight-ui); color: var(--muted-2); }
.checkout-step.is-active { color: var(--hkph-500); font-weight: var(--weight-strong); }
/* design v2: مرحله انجام‌شده = اکسنت دوم (آبی دودی) با تیک؛ مرحله فعلی سرمه‌ای */
.checkout-step.is-done { color: var(--accent-2, var(--success)); font-weight: var(--weight-strong); }
.checkout-step__num { width: 20px; height: 20px; border-radius: 50%; background: #cfd4d6; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 11px; }
.checkout-step.is-active .checkout-step__num { background: var(--hkph-500); }
.checkout-step.is-done .checkout-step__num { background: var(--accent-2, var(--success)); }
.checkout-step__num svg { width: 12px; height: 12px; }
.checkout-step__bar { width: 20px; height: 2px; background: #cfd4d6; }

.freeship-bar { background: var(--hkph-100); border-radius: var(--radius-md); padding: 11px 13px; margin-bottom: 16px; }
.freeship-bar__text { display: flex; gap: 8px; font-size: 12px; font-weight: var(--weight-ui); color: var(--hkph-700);
  line-height: 1.6; margin-bottom: 8px; }
.freeship-bar__text svg { width: 16px; height: 16px; }
.freeship-bar__track { height: 6px; background: #dfeef5; border-radius: 9px; overflow: hidden; }
.freeship-bar__fill { display: block; height: 100%; background: var(--hkph-500); border-radius: 9px; }

.cart-item { display: flex; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border-soft); }
.cart-item__media { flex: 0 0 78px; height: 90px; border-radius: var(--radius-md); overflow: hidden; background: var(--gray-100); }
.cart-item__media img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__body { flex: 1; min-width: 0; }
.cart-item__top { display: flex; justify-content: space-between; gap: 8px; }
.cart-item__name { font-size: 13.5px; font-weight: var(--weight-strong); color: var(--text-strong); line-height: 1.5; }
.cart-item__remove { background: none; border: 0; color: #b9bfc2; padding: 0; }
.cart-item__remove svg { width: 17px; height: 17px; }
.cart-item__meta { font-size: 11.5px; font-weight: var(--weight-body); color: var(--muted); margin: 3px 0 9px; }
.cart-item__foot { display: flex; align-items: center; justify-content: space-between; }

.coupon-row { display: flex; gap: 9px; margin: 16px 0; }
.coupon-row input { flex: 1; background: var(--gray-100); border: 0; border-radius: var(--radius-md);
  padding: 12px 14px; font-family: var(--font-fa); font-size: 13px; color: var(--text-body); }
.summary-card { background: var(--gray-100); border-radius: var(--radius-md); padding: 15px 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--slate-500); margin-bottom: 10px; }
.summary-row__label { font-weight: var(--weight-body); }
.summary-row__val { font-weight: var(--weight-ui); }
.summary-total { border-top: 1px dashed #cfd4d6; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.summary-total__label { font-size: 14px; font-weight: var(--weight-strong); color: var(--text-strong); }
.summary-total__val { font-size: 17px; }

/* sticky action bar */
/* پس‌زمینه از توکنِ بسترِ صفحه می‌آید (نه هاردکد #fff)؛ روی برندهایی با بسترِ
   کرم/رنگی، این نوارِ چسبان دیگر کادرِ سفید نمی‌سازد. پیش‌فرضِ موتور = سفید. */
.sticky-action { position: sticky; bottom: 0; background: var(--surface-page); border-top: 1px solid var(--border-soft);
  padding: 12px var(--container-pad) calc(18px + env(safe-area-inset-bottom,0px)); z-index: 40; }
.has-bottom-nav .sticky-action { bottom: calc(var(--bottomnav-h) + env(safe-area-inset-bottom,0px)); }
@media (min-width: 1024px) { .sticky-action { position: static; border-top: 0; padding: 16px 0 0; }
  .has-bottom-nav .sticky-action { bottom: auto; } }

/* WooCommerce flow pages (cart / checkout / order received) use the full
   container width — not the narrow blog-prose cap (.page-article: 760px) — so
   the 2-column desktop layouts below have room to breathe. */
body.woocommerce-cart .page-article,
body.woocommerce-checkout .page-article,
body.woocommerce-order-received .page-article { max-width: none; }

@media (min-width: 1024px) {
  .cart-layout, .checkout-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
  .checkout-summary, .cart-summary-col { position: sticky; top: 88px; }
}

/* ===================================================== checkout ======== */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.checkout-section-title { font-size: 14px; font-weight: var(--weight-title); color: var(--text-strong); margin: 20px 0 12px; }

.form-row label, .woocommerce-checkout label, .field label { display: block; font-size: 11px; font-weight: var(--weight-ui);
  color: var(--muted); margin-bottom: 5px; }
.input, input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="number"],
textarea, select, .select2-container .select2-selection {
  width: 100%; background: var(--gray-100); border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 12px 13px; font-family: var(--font-fa-num); font-size: 13px; color: var(--text-strong);
  line-height: 1.6; transition: border-color var(--motion-fast), background var(--motion-fast); }
input:focus, textarea:focus, select:focus { border-color: var(--hkph-500); background: #fff; outline: none; }
textarea { min-height: 80px; resize: vertical; }
input[type="tel"], input[type="number"], .ltr-input { direction: ltr; text-align: right; }

/* iOS Safari auto-zooms the page whenever a focused field's font-size is < 16px.
   Keep the compact 13px look on desktop, but raise form controls to 16px on
   touch/mobile so focusing the phone / billing / OTP fields never zooms.
   (Larger inputs like the OTP code boxes keep their size via later rules.) */
@media (max-width: 1023.98px) {
  .input, input[type="text"], input[type="tel"], input[type="email"],
  input[type="password"], input[type="number"], input[type="search"],
  input[type="url"], textarea, select, .select2-container .select2-selection {
    font-size: 16px;
  }
}

.method-option { display: flex; align-items: center; gap: 11px; border: 1px solid #e2e4e6; border-radius: var(--radius-md);
  padding: 13px 14px; margin-bottom: 10px; cursor: pointer; }
.method-option.is-selected { border: 1.5px solid var(--hkph-500); background: var(--hkph-100); }
.method-option__radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #cfd4d6; flex: 0 0 auto; }
.method-option.is-selected .method-option__radio { border: 6px solid var(--hkph-500); }
.method-option__body { flex: 1; }
.method-option__title { font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); }
.method-option__sub { font-size: 11px; font-weight: var(--weight-body); color: var(--muted); }
.method-option__price { font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); white-space: nowrap; }

.terms-box { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 13px 14px; margin-top: 4px; }
.terms-box input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--hkph-500); margin-top: 1px; flex: 0 0 auto; }
.terms-box label { font-size: 12px; font-weight: var(--weight-body); color: var(--slate-500); line-height: 1.7; margin: 0; }
.terms-box a { font-weight: var(--weight-strong); }

/* checkout: 2-column on desktop (billing form left, sticky order review right) */
.woocommerce-checkout #order_review { background: var(--gray-100); border-radius: var(--radius-lg); padding: 16px 18px; }
.woocommerce-checkout #order_review_heading { margin: 0 0 12px; font-size: var(--text-h3); font-weight: var(--weight-title); }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { margin-bottom: 8px; }
.woocommerce-checkout #payment { background: transparent; }
.woocommerce-checkout #place_order { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; background: var(--hkph-500); color: #fff; border: 0; font-family: var(--font-fa);
  font-size: 15px; font-weight: var(--weight-strong); padding: 15px; border-radius: var(--radius-lg); cursor: pointer; }
.woocommerce-checkout #place_order:hover { background: var(--hkph-600); }
.woocommerce-checkout table.shop_table { width: 100%; }
.woocommerce-checkout table.shop_table th, .woocommerce-checkout table.shop_table td { padding: 8px 0; font-size: 13px; }

/* checkout order-review: bespoke line items with thumbnails */
.hkph-checkout-review { border-collapse: collapse; }
.hkph-checkout-review tbody td.product-name { padding: 0 0 12px; border: 0; }
.co-line { display: flex; align-items: center; gap: 11px; }
.co-line__media { position: relative; width: 56px; height: 56px; flex: 0 0 auto; border-radius: var(--radius-md);
  overflow: hidden; background: var(--gray-100); }
.co-line__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-line__qty { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--slate-600); color: #fff; font-size: 11px; font-weight: var(--weight-strong); border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; }
.co-line__body { flex: 1; min-width: 0; }
.co-line__name { display: block; font-size: 13px; font-weight: var(--weight-ui); color: var(--text-strong); line-height: 1.5; }
.co-line__meta, .co-line__meta .variation { display: block; font-size: 11px; color: var(--muted); margin: 0; }
.co-line__meta .variation { display: flex; flex-wrap: wrap; gap: 0 8px; }
.co-line__meta .variation dt, .co-line__meta .variation dd, .co-line__meta .variation dd p { margin: 0; font-size: 11px; }
.co-line__price { font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); white-space: nowrap; }
.hkph-checkout-review tfoot th, .hkph-checkout-review tfoot td { padding: 9px 0; font-size: 13px;
  border-top: 1px solid var(--border-soft); text-align: start; font-weight: var(--weight-body); color: var(--slate-500); }
.hkph-checkout-review tfoot td { text-align: end; }
.hkph-checkout-review tfoot tr:first-child th, .hkph-checkout-review tfoot tr:first-child td { border-top: 1px dashed #cfd4d6; }
.hkph-checkout-review tfoot tr.order-total th { font-weight: var(--weight-strong); color: var(--text-strong); font-size: 14px; }
.hkph-checkout-review tfoot tr.order-total td { font-weight: var(--weight-title); color: var(--hkph-600); font-size: 15px; }
/* section headings (آدرس / جزئیات صورتحساب / سفارش شما) */
.woocommerce-checkout #customer_details h3, .woocommerce-checkout .woocommerce-billing-fields > h3,
.woocommerce-checkout .woocommerce-shipping-fields > h3, .woocommerce-checkout #order_review_heading {
  font-size: 16px; font-weight: var(--weight-title); color: var(--text-strong); margin: 0 0 14px; }

.hkph-pay-heading { font-size: 15px; font-weight: var(--weight-title); color: var(--text-strong); margin: 20px 0 12px; }

/* compact 2-column billing/shipping field grid (matches the design) */
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.woocommerce-billing-fields__field-wrapper > .form-row-wide,
.woocommerce-shipping-fields__field-wrapper > .form-row-wide,
.woocommerce-billing-fields__field-wrapper > .notes, .woocommerce-billing-fields__field-wrapper > #order_comments_field { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper > .form-row,
.woocommerce-shipping-fields__field-wrapper > .form-row { margin: 0 0 12px; min-width: 0; }

/* ---- خطای سطح فیلد تسویه: ووکامرس فقط کلاس می‌دهد، استایل نمی‌دهد ----
   بدون این، کاربر فیلد خراب را پیدا نمی‌کند (عامل شناخته‌شده رها کردن سبد).
   aria-invalid را JS همگام می‌کند (theme.js) — سلکتور هر دو را پوشش می‌دهد. */
.form-row.woocommerce-invalid input.input-text,
.form-row.woocommerce-invalid select,
.form-row.woocommerce-invalid textarea,
.woocommerce-checkout input[aria-invalid='true'],
.woocommerce-checkout select[aria-invalid='true'],
.woocommerce-checkout textarea[aria-invalid='true'] {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 3px rgba(210, 59, 59, 0.14);
}
.form-row.woocommerce-invalid label { color: var(--danger); }
.form-row.woocommerce-invalid label::after { content: ' ⚠'; font-size: 11px; }
/* حالت سالم بعد از اصلاح: بردر سبز ملایم تا پیشرفت حس شود */
.form-row.woocommerce-validated input.input-text,
.form-row.woocommerce-validated select { border-color: var(--success); }

/* coupon: always-visible styled row (gray input + dark «اعمال»), not the default toggle */
.woocommerce-form-coupon-toggle, .woocommerce-form-login-toggle { display: none; } /* design checkout omits these notices; coupon shown inline below */
form.checkout_coupon.woocommerce-form-coupon { display: flex !important; gap: 9px; align-items: stretch; flex-wrap: wrap;
  margin: 0 0 18px; padding: 0; border: 0; border-radius: 0; background: transparent; }
form.checkout_coupon > p:not(.form-row) { display: none; }            /* the classless "اگر کد تخفیف دارید…" intro only */
form.checkout_coupon .form-row { margin: 0; padding: 0; }
form.checkout_coupon .form-row-first { flex: 1; min-width: 150px; }
form.checkout_coupon label { display: none; }
form.checkout_coupon #coupon_code { width: 100%; }
form.checkout_coupon .form-row-last button, form.checkout_coupon button[name="apply_coupon"] {
  height: 100%; background: var(--slate-600); color: #fff; border: 0; border-radius: var(--radius-md);
  padding: 12px 22px; font-family: var(--font-fa); font-weight: var(--weight-strong); font-size: 13px; white-space: nowrap; cursor: pointer; }
form.checkout_coupon button[name="apply_coupon"]:hover { background: var(--slate-700); }

/* payment methods as radio cards */
.woocommerce-checkout #payment, .woocommerce-checkout #payment .payment_methods { background: transparent; border: 0; }
.woocommerce-checkout #payment ul.wc_payment_methods { list-style: none; margin: 0 0 16px; padding: 0;
  display: flex; flex-direction: column; gap: 10px; }
.woocommerce-checkout #payment ul.wc_payment_methods li { border: 1px solid #e2e4e6; border-radius: var(--radius-md);
  padding: 13px 15px; margin: 0; background: #fff; }
.woocommerce-checkout #payment ul.wc_payment_methods li input.input-radio { width: 18px; height: 18px; accent-color: var(--hkph-500); margin-inline-end: 8px; vertical-align: middle; }
/* design v2: کارت روش انتخاب‌شده — مرز سرمه‌ای + سطح ملایم اکسنت (progressive :has) */
.woocommerce-checkout #payment ul.wc_payment_methods li:has(input.input-radio:checked) {
  border-color: var(--hkph-500); background: var(--accent-2-soft, var(--hkph-100)); }
.woocommerce-checkout #payment ul.wc_payment_methods li label { display: inline; font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); margin: 0; cursor: pointer; }
.woocommerce-checkout #payment ul.wc_payment_methods li img { max-height: 22px; vertical-align: middle; margin-inline-start: 8px; }
.woocommerce-checkout #payment .payment_box { background: var(--gray-100); border-radius: var(--radius-md); padding: 11px 13px;
  margin: 9px 0 0; font-size: 12px; line-height: 1.7; color: var(--slate-500); }
.woocommerce-checkout #payment .payment_box::before { display: none; }

/* shipping methods as cards (inside the order-review) */
.hkph-checkout-review .woocommerce-shipping-totals th { vertical-align: top; padding-top: 12px; }
.hkph-checkout-review #shipping_method { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hkph-checkout-review #shipping_method li { display: flex; align-items: center; gap: 8px; margin: 0; }
.hkph-checkout-review #shipping_method li input { accent-color: var(--hkph-500); width: 17px; height: 17px; }
.hkph-checkout-review #shipping_method label { font-size: 12.5px; font-weight: var(--weight-ui); color: var(--text-strong); margin: 0; }

/* place-order button: shield icon + the design pill */
.woocommerce-checkout #place_order svg { width: 19px; height: 19px; }

@media (min-width: 1024px) {
  /* exactly two grid children → both top-aligned, no row-span gap */
  .woocommerce-checkout form.checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
  .woocommerce-checkout #customer_details { grid-column: 1; }
  .woocommerce-checkout .hkph-co-review { grid-column: 2; position: sticky; top: 88px; }
}
.hkph-co-review #order_review_heading { margin-top: 0; }
/* mobile: focused checkout — hide bottom-nav, sticky pay button at viewport bottom */
@media (max-width: 1023px) {
  body.woocommerce-checkout .bottom-nav { display: none; }
  body.woocommerce-checkout.has-bottom-nav { padding-bottom: 0; }
  .woocommerce-checkout #payment .place-order { position: sticky; bottom: 0; z-index: 40; margin: 14px -16px 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--border-soft); }
  .woocommerce-checkout #payment .place-order #place_order { margin: 0; }
}

/* ===================================================== thank-you ======= */
.order-success { text-align: center; padding: 34px 8px 22px; }
.order-success__icon { width: 88px; height: 88px; border-radius: 50%; background: rgba(31,157,87,.12);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.order-success__icon span { width: 60px; height: 60px; border-radius: 50%; background: var(--success);
  display: flex; align-items: center; justify-content: center; }
.order-success__icon svg { width: 34px; height: 34px; color: #fff; }
.order-success__title { font-size: 23px; font-weight: var(--weight-title); color: var(--text-strong); margin-bottom: 7px; }
.order-success__text { font-size: 13.5px; font-weight: var(--weight-body); color: var(--slate-500); line-height: 1.8; }
.order-meta { background: var(--gray-100); border-radius: var(--radius-lg); padding: 16px; text-align: start; margin-top: 18px; }
.order-meta__row { display: flex; justify-content: space-between; align-items: center; padding-block: 6px; }
.order-meta__row--head { border-bottom: 1px dashed #cfd4d6; padding-bottom: 13px; margin-bottom: 7px; }
.order-meta__k { font-size: 12.5px; font-weight: var(--weight-body); color: var(--muted); }
.order-meta__v { font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong); }

/* ===================================================== my account ====== */
.account-profile { display: flex; align-items: center; gap: 13px;
  background: linear-gradient(120deg, var(--hkph-500), #0086b3); border-radius: var(--radius-xl);
  padding: 16px; color: #fff; }
.account-profile__avatar { width: 52px; height: 52px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: var(--weight-title); }
.account-profile__name { font-size: 16px; font-weight: var(--weight-title); }
.account-profile__phone { font-size: 12px; font-weight: var(--weight-body); opacity: .9; direction: ltr; text-align: start; }
.account-profile__edit { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.18);
  color: #fff; font-size: 11.5px; font-weight: var(--weight-strong); padding: 7px 13px; border-radius: var(--radius-pill); }
.account-profile__edit svg { width: 14px; height: 14px; }

.account-stats { display: flex; gap: 10px; margin: 16px 0 20px; }
.account-stat { flex: 1; background: var(--gray-100); border-radius: var(--radius-md); padding: 13px 8px; text-align: center; }
.account-stat__num { font-size: 18px; font-weight: var(--weight-title); color: var(--text-strong); }
.account-stat__num--accent { font-size: 14px; color: var(--hkph-500); }
.account-stat__label { font-size: 10.5px; font-weight: var(--weight-ui); color: var(--muted); margin-top: 2px; }

.order-card { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 12px 13px; }
.order-card + .order-card { margin-top: 10px; }
.order-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.order-card__id { font-size: 12px; font-weight: var(--weight-strong); color: var(--text-strong); direction: ltr; }
.order-card__body { display: flex; align-items: center; gap: 9px; }
.order-card__thumb { width: 44px; height: 44px; border-radius: var(--radius-sm); overflow: hidden; background: var(--gray-100); }
.order-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-card__total { font-size: 13px; font-weight: var(--weight-title); color: var(--text-strong); }
.order-card__sub { font-size: 10.5px; font-weight: var(--weight-body); color: var(--muted-2); }

.account-menu { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden; margin-top: 16px; }
.account-menu a, .account-menu li a, .woocommerce-MyAccount-navigation li a {
  display: flex; align-items: center; gap: 12px; padding: 14px; font-size: 13.5px; font-weight: var(--weight-strong);
  color: var(--text-strong); text-decoration: none; border-bottom: 1px solid #f0f0f0; }

/* Mobile: account content first, nav list last (matches the design order). */
.my-account-layout { display: flex; flex-direction: column; }
.my-account-layout .woocommerce-MyAccount-content { order: 1; }
.my-account-layout .woocommerce-MyAccount-navigation { order: 2; }
.account-menu a:hover, .woocommerce-MyAccount-navigation li a:hover { background: var(--gray-100); }
.account-menu svg { width: 20px; height: 20px; color: var(--slate-600); }
.account-menu a .chev { margin-inline-start: auto; color: #b9bfc2; }
.woocommerce-MyAccount-navigation li:last-child a, .account-menu li:last-child a { border-bottom: 0; }
.woocommerce-MyAccount-navigation li.is-active a, .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--dashboard.is-active a {
  color: var(--hkph-500); }
/* design v2: «خروج» قرمز نیست — به رنگ حراج (مسی روی هیوان) */
.account-menu .logout, .account-menu .logout svg { color: var(--sale, var(--danger)); }

@media (min-width: 1024px) {
  .woocommerce-account .woocommerce-MyAccount-navigation { float: none; width: auto; }
  /* Desktop RTL: nav on the right (column 1), content on the left (column 2). */
  .my-account-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
  .my-account-layout .woocommerce-MyAccount-navigation { grid-column: 1; order: 0; }
  .my-account-layout .woocommerce-MyAccount-content { grid-column: 2; order: 0; width: auto; float: none; }
}

/* order status badges (account orders table / cards) */
.order-status { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: var(--weight-strong);
  padding: 4px 10px; border-radius: var(--radius-pill); }
.order-status svg { width: 13px; height: 13px; }
.order-status--processing, .order-status--on-hold { background: var(--hkph-100); color: var(--hkph-700); }
/* design v2: «در حال ارسال» = خردلی؛ «تحویل شده» = سبز */
.order-status--shipping { background: var(--warning-50, #FBEFD6); color: var(--warning-strong, #8F5F0B); }
.order-status--completed { background: rgba(31,157,87,.12); color: var(--success); }
.order-status--pending, .order-status--failed, .order-status--cancelled { background: var(--danger-soft, rgba(210,59,59,.1)); color: var(--danger); }
.order-status--refunded { background: var(--gray-100); color: var(--muted); }

/* ---- account: orders list / view-order / addresses ---- */
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-card__action { padding: 8px 16px; font-size: 13px; height: auto; }
.orders-pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; font-size: 13px; }

.order-detail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.order-detail-head__num { font-size: 18px; font-weight: var(--weight-title); color: var(--text-strong); direction: ltr; text-align: start; }
.order-items .cart-item:last-child { border-bottom: 0 !important; }
.order-items .cart-item__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.cart-item__meta .wc-item-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 12px; }
.cart-item__meta .wc-item-meta li { display: flex; gap: 4px; margin: 0; }
.cart-item__meta .wc-item-meta p { margin: 0; }
.cart-item__meta .wc-item-meta strong { font-weight: var(--weight-ui); color: var(--muted); }

.order-addresses { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .order-addresses { grid-template-columns: 1fr 1fr; } }
.address-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 16px; }
.address-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.address-card__title { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: var(--weight-strong); color: var(--text-strong); }
.address-card__title svg { color: var(--hkph-500); }
.address-card__edit { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: var(--weight-strong); color: var(--hkph-600); }
.address-card address { font-style: normal; font-size: 13px; line-height: 1.95; color: var(--slate-500); }
.address-card__line { margin-top: 6px; color: var(--slate-600); }

.order-notes__list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.order-note { border-inline-start: 3px solid var(--hkph-200); background: var(--gray-100); border-radius: var(--radius-md); padding: 10px 13px; }
.order-note__date { font-size: 11px; color: var(--muted); }
.order-note__text { font-size: 12.5px; color: var(--slate-600); }
.order-again, p.order-again { margin: 14px 0 0; }
.order-again a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: #fff;
  border: 1.5px solid var(--hkph-500); color: var(--hkph-700); font-family: var(--font-fa); font-size: 14px;
  font-weight: var(--weight-strong); padding: 12px 22px; border-radius: var(--radius-pill); }

/* edit-address: standard WC fields in a 2-col grid */
.address-grid { display: grid; grid-template-columns: 1fr; gap: 0 14px; }
@media (min-width: 768px) { .address-grid { grid-template-columns: 1fr 1fr; } .address-grid .form-row-wide, .address-grid .form-row-last + .form-row-wide { grid-column: 1 / -1; } }
.address-grid .form-row { margin: 0 0 10px; }
.address-grid label { display: block; font-size: 11px; font-weight: var(--weight-ui); color: var(--muted); margin-bottom: 5px; }
.address-grid .required { color: var(--danger); }

/* ===================================================== OTP login ======= */
.otp-screen { max-width: 360px; margin-inline: auto; padding: 24px 0; text-align: center; }
.otp-inputs { display: flex; gap: 10px; justify-content: center; direction: ltr; margin: 20px 0; }
.otp-inputs input { width: 52px; height: 60px; text-align: center; font-size: 24px; font-weight: var(--weight-title);
  font-family: var(--font-fa-num); border: 1px solid #e2e4e6; border-radius: var(--radius-md); background: #fff; }
.otp-inputs input:focus { border-color: var(--hkph-500); }
.otp-resend { font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* auth (login / register) */
.auth-screens { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 460px; margin-inline: auto; }
.auth-card { border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 20px; }
.auth-card .form-row { margin-bottom: 12px; }
@media (min-width: 768px) {
	.auth-screens--two { max-width: 820px; grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* wishlist grid reuses .products-grid; empty states */
.empty-state { text-align: center; padding: 48px 16px; }
.empty-state__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--gray-100);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.empty-state__icon svg { width: 34px; height: 34px; color: var(--muted-2); }
.empty-state__title { font-size: 18px; font-weight: var(--weight-title); color: var(--text-strong); margin-bottom: 6px; }
.empty-state__text { font-size: 13px; color: var(--muted); margin-bottom: 18px; }

/* =================================================================
   Focused login screen — body.hkph-auth-screen (logged-out account page)
   A distraction-free, on-brand blue-gradient canvas with a single
   elevated card; all surrounding site chrome is removed, only the
   centred logo remains (links home). Dashboard keeps full chrome.
   ================================================================= */
body.hkph-auth-screen {
  min-height: 100vh;
  /* Token-driven canvas: brand-tinted corners via semantic accent tokens,
     falls back to the engine blue when no brand tokens override. */
  background:
    radial-gradient(115% 75% at 100% 0%, var(--surface-tint, rgba(0, 173, 230, 0.16)) 0%, transparent 55%),
    radial-gradient(115% 75% at 0% 100%, var(--accent-2-soft, rgba(0, 173, 230, 0.13)) 0%, transparent 55%),
    var(--surface-page, #fbfdff);
}
/* the mobile bottom-nav is hidden here, so reclaim its reserved space */
body.hkph-auth-screen.has-bottom-nav { padding-bottom: 0; }

/* hide every surrounding element so the eye lands on the card only */
body.hkph-auth-screen .ticker,
body.hkph-auth-screen .site-footer,
body.hkph-auth-screen .bottom-nav,
body.hkph-auth-screen .woocommerce-breadcrumb,
body.hkph-auth-screen .page-article > .section-head { display: none !important; }

/* slim, transparent header — keep just the centred logo as a way back home */
body.hkph-auth-screen .site-header { position: static; background: transparent; box-shadow: none; }
body.hkph-auth-screen .site-header__bar { border-bottom: 0; justify-content: center; }
body.hkph-auth-screen .menu-toggle,
body.hkph-auth-screen .primary-nav,
body.hkph-auth-screen .header-search-field,
body.hkph-auth-screen .site-header__actions { display: none !important; }
body.hkph-auth-screen .site-header__brand { position: static; inset: auto; margin: 0; transform: none; }

/* centre the card in the viewport below the slim header (desktop) */
body.hkph-auth-screen #primary.site-main {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: flex; align-items: center; justify-content: center;
}
body.hkph-auth-screen #primary .container.section { width: 100%; margin-block: 0; padding-block: 24px; }
/* On mobile, DON'T vertically centre — the logo + card sit at the top so the
   brand stays visible. Centring pushed the card mid-screen, and when the
   keyboard opened the browser scrolled the logo out of view (user report). */
@media (max-width: 1023px) {
  body.hkph-auth-screen #primary.site-main {
    align-items: flex-start;
    min-height: 0;
  }
  body.hkph-auth-screen #primary .container.section { padding-block: 8px 24px; }
}
/* keep the article horizontally centred: .page-article is capped at 760px, and
   a plain `margin: 0` pushed it to the inline-start (right, in RTL) — the card
   sat off-centre on desktop (owner report, RT). Zero only the block margins. */
body.hkph-auth-screen .page-article,
body.hkph-auth-screen .page-article .entry-content { margin-block: 0; margin-inline: auto; }

/* elevate the auth card(s) — OTP card and the password/register cards */
body.hkph-auth-screen .auth-screens { gap: 14px; }
body.hkph-auth-screen .auth-card,
body.hkph-auth-screen .hkphc-otp.auth-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border-soft, rgba(0, 173, 230, 0.16));
  border-radius: 20px;
  padding: 30px 26px;
  box-shadow: var(--shadow-raised, 0 14px 36px rgba(0, 122, 166, 0.12));
  max-width: 410px;
  margin-inline: auto;
}
/* the collapsible «ورود با رمز عبور» fallback sits centred under the card */
body.hkph-auth-screen .auth-password-fallback { margin-inline: auto; }

/* =================================================================
   Hamoon delivery (پیک) date/time picker — HamoonKPH RE-SKIN.
   We DO NOT touch the hamoon plugin; it renders #custom_delivery_date_field
   at woocommerce_review_order_before_payment with its own classes + JS.
   These rules override hamoon-style.css to match the brand and — the key
   UX fix — make it unmistakable that BOTH a day (۱) AND a time (۲) must be
   picked. State classes come from hamoon's JS: .delivery-date.selected,
   .delivery-date-time.active, .delivery_time.selected, #ShowTimeSelect text.
   ================================================================= */
body.woocommerce-checkout #custom_delivery_date_field {
  font-family: inherit !important;
  margin: 18px 0 6px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
}
body.woocommerce-checkout #custom_delivery_date_field * { font-family: inherit !important; }

/* header: clock + title + live status chip */
body.woocommerce-checkout #custom_delivery_date_field .delivery-head {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border-soft);
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-head > img {
  width: 30px; height: 30px; padding: 5px; box-sizing: border-box;
  background: var(--hkph-100); border-radius: 10px;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-head > div { display: flex; flex-direction: column; gap: 3px; }
body.woocommerce-checkout #custom_delivery_date_field .delivery-head h2 {
  font-size: 15px; font-weight: var(--weight-title); color: var(--text-strong); line-height: 1.2;
}
body.woocommerce-checkout #custom_delivery_date_field #ShowTimeSelect {
  font-size: 12px; font-weight: var(--weight-strong); color: var(--muted);
  display: inline-flex; align-items: center; gap: 5px;
}
body.woocommerce-checkout #custom_delivery_date_field #ShowTimeSelect::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto;
}
/* turn the status green once a time slot is actually chosen */
body.woocommerce-checkout #custom_delivery_date_field:has(.delivery_time.selected) #ShowTimeSelect { color: #1F9D57; }

/* the warning (Tehran zones) — override the plugin's inline red alert to a brand amber note */
body.woocommerce-checkout #custom_delivery_date_field .delivery-dates > p[style] {
  position: relative !important; margin: 0 0 14px !important; padding: 11px 14px !important;
  font-size: 12.5px !important; line-height: 1.7 !important;
  color: #8A5A00 !important; background: #FFF6E5 !important;
  border: 1px solid #FFE0A6 !important; border-radius: var(--radius-md) !important;
}

/* container holds the two labelled steps stacked */
body.woocommerce-checkout #custom_delivery_date_field .delivery-dates { display: block; }

/* STEP 1 — day cards */
body.woocommerce-checkout #custom_delivery_date_field .delivery-dates-list {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: stretch; justify-content: flex-start;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-dates-list::before,
body.woocommerce-checkout #custom_delivery_date_field .delivery-time-list::before {
  flex-basis: 100%; width: 100%; display: block;
  font-size: 12.5px; font-weight: var(--weight-strong); color: var(--text-strong); margin-bottom: 2px;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-dates-list::before { content: "۱) روز تحویل را انتخاب کن"; }

body.woocommerce-checkout #custom_delivery_date_field .delivery-date {
  flex: 1 1 0; min-width: 84px; background: #fff;
  border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  padding: 10px 6px; gap: 5px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date:hover {
  border-color: var(--hkph-500); background: #fff;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected {
  border-color: var(--hkph-500); background: var(--hkph-100); box-shadow: 0 0 0 1px var(--hkph-500) inset;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date .day {
  font-size: 13px; font-weight: var(--weight-strong); color: var(--text-strong);
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected .day,
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected .date { color: var(--hkph-700); }
body.woocommerce-checkout #custom_delivery_date_field .delivery-date .date {
  font-size: 14px; font-weight: var(--weight-title); color: var(--text-strong); font-family: var(--font-fa-num) !important;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date .shipp-price {
  font-size: 11px; font-weight: var(--weight-ui); color: var(--muted);
  background: var(--gray-100); width: 100%; padding: 3px 4px; border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date .shipp-price svg { width: 12px; height: 12px; fill: currentColor; }
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected .shipp-price { background: #fff; color: var(--hkph-700); }
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected .shipp-price svg { fill: var(--hkph-700); }

/* STEP 2 — time slots: a highlighted, clearly-labelled block */
body.woocommerce-checkout #custom_delivery_date_field .delivery-time-list {
  display: flex; flex-wrap: wrap; gap: 8px; border-top: 0;
  margin-top: 14px; padding: 14px; border-radius: var(--radius-md);
  background: #F7FBFE; border: 1.5px dashed var(--hkph-500);
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-time-list::before { content: "۲) ساعت تحویل را انتخاب کن"; }
/* once a slot is selected, calm the block down (solid soft border) */
body.woocommerce-checkout #custom_delivery_date_field:has(.delivery_time.selected) .delivery-time-list {
  border-style: solid; border-color: #BFE6CF; background: #F4FBF7;
}
body.woocommerce-checkout #custom_delivery_date_field:has(.delivery_time.selected) .delivery-time-list::before {
  content: "۲) ساعت تحویل ✓"; color: #1F9D57;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-time-list .delivery-date-time.active {
  display: flex; flex-direction: column; gap: 8px; width: 100%;
}
body.woocommerce-checkout #custom_delivery_date_field .time-slots { display: flex; flex-direction: column; gap: 8px; margin: 0; }
body.woocommerce-checkout #custom_delivery_date_field .time-slots label {
  display: flex; align-items: center; gap: 10px; width: 100%; margin: 0;
  font-size: 13.5px; color: var(--text-strong); cursor: pointer;
  background: #fff; border: 1.5px solid var(--border-soft); border-radius: var(--radius-md); padding: 11px 14px;
  transition: border-color .15s, background .15s;
}
body.woocommerce-checkout #custom_delivery_date_field .time-slots label:hover { border-color: var(--hkph-500); }
body.woocommerce-checkout #custom_delivery_date_field .time-slots label:has(input:checked) {
  border-color: var(--hkph-500); background: var(--hkph-100); font-weight: var(--weight-strong);
}
body.woocommerce-checkout #custom_delivery_date_field .time-slots label.disabled-slot { opacity: .45; cursor: not-allowed; }
body.woocommerce-checkout #custom_delivery_date_field .time-slots input { display: none; }
body.woocommerce-checkout #custom_delivery_date_field .time-slots label .checkmark {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 50%;
  border: 2px solid var(--gray-150); background: #fff; box-shadow: none; position: relative; transition: border-color .15s;
}
body.woocommerce-checkout #custom_delivery_date_field .time-slots label:has(input:checked) .checkmark { border-color: var(--hkph-500); }
body.woocommerce-checkout #custom_delivery_date_field .time-slots label:has(input:checked) .checkmark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--hkph-500);
}
/* fallback for the .selected class hamoon adds straight to the input */
body.woocommerce-checkout #custom_delivery_date_field .time-slots input.delivery_time.selected ~ .checkmark { border-color: var(--hkph-500); }
body.woocommerce-checkout #custom_delivery_date_field .time-slots input.delivery_time.selected ~ .checkmark::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--hkph-500);
}

/* =================================================================
   Account ▸ order shipping + tracking card (reads hamoon order meta)
   ================================================================= */
.order-shipping-card {
  margin-top: 16px; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 16px; background: #fff;
}
.order-shipping-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.order-shipping-card__head svg { color: var(--hkph-500); }
.order-shipping-card__title { font-size: 14px; font-weight: var(--weight-title); color: var(--text-strong); }
.order-shipping-card__row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 7px 0; }
.order-shipping-card__row + .order-shipping-card__row { border-top: 1px dashed var(--border-soft); }
.order-shipping-card__label { color: var(--muted); }
.order-shipping-card__val { color: var(--text-strong); font-weight: var(--weight-strong); text-align: start; }
.order-shipping-card__val .ltr-input { font-family: var(--font-fa-num); }
/* the tracking code highlight + copy */
.tracking-box { margin-top: 12px; background: var(--hkph-100); border: 1px solid var(--hkph-200, rgba(0,173,230,.22)); border-radius: var(--radius-md); padding: 12px 14px; }
.tracking-box__label { font-size: 12px; color: var(--hkph-700); font-weight: var(--weight-strong); margin-bottom: 6px; }
.tracking-box__row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tracking-box__code {
  flex: 1 1 auto; font-family: var(--font-fa-num); font-size: 18px; font-weight: var(--weight-title);
  color: var(--text-strong); letter-spacing: 1px; direction: ltr; text-align: left; word-break: break-all;
}
.tracking-box__copy {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: var(--weight-strong);
  color: var(--hkph-700); background: #fff; border: 1px solid var(--hkph-200, rgba(0,173,230,.3)); border-radius: var(--radius-pill);
  padding: 6px 12px; cursor: pointer; font-family: inherit;
}
.tracking-box__copy:hover { background: var(--hkph-500); color: #fff; border-color: var(--hkph-500); }
.tracking-box__track { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 12.5px; font-weight: var(--weight-strong); }
.tracking-pending { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.tracking-pending svg { color: var(--muted-2); flex: 0 0 auto; }
/* compact tracking line on the orders-list card — full-width row below the body */
.order-card__tracking {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-soft);
  font-size: 12px; font-weight: var(--weight-strong); color: var(--hkph-700);
}
.order-card__tracking svg { flex: 0 0 auto; }
.order-card__tracking-label { color: var(--muted); font-weight: var(--weight-ui); }
.order-card__tracking .ltr-input { font-family: var(--font-fa-num); direction: ltr; word-break: break-all; }

/* ===================================================== club ============ */
.hkph-club__card { background: linear-gradient(120deg, var(--accent-2, #A18565), var(--accent-2-strong, #6E5840));
  color: #fff; border-radius: var(--radius-xl); padding: 18px; }
.hkph-club__top { display: flex; align-items: center; gap: 13px; }
.hkph-club__badge { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.hkph-club__name { font-size: 16px; font-weight: var(--weight-title); }
.hkph-club__tier { font-size: 12px; opacity: .9; margin-top: 2px; }
.hkph-club__points { margin-inline-start: auto; text-align: center; }
.hkph-club__pnum { display: block; font-size: 22px; font-weight: var(--weight-title); line-height: 1; }
.hkph-club__plabel { font-size: 10.5px; opacity: .9; }
.hkph-club__progress { height: 7px; background: rgba(255,255,255,.25); border-radius: 9px; overflow: hidden; margin-top: 16px; }
.hkph-club__bar { display: block; height: 100%; background: #fff; border-radius: 9px; }
.hkph-club__progress-label { font-size: 11px; opacity: .92; margin-top: 7px; }
.hkph-club__heading { font-size: 14px; font-weight: var(--weight-title); color: var(--text-strong); margin: 20px 0 12px; }
.hkph-club__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hkph-club__perk { display: flex; align-items: center; gap: 9px; background: var(--surface-subtle, #F4F2F0);
  border-radius: var(--radius-md); padding: 12px 13px; font-size: 12.5px; font-weight: var(--weight-ui); color: var(--text-strong); }
.hkph-club__perk svg { color: var(--accent-2, #A18565); flex: 0 0 auto; }
.hkph-club__note { display: flex; align-items: flex-start; gap: 9px; margin-top: 16px; padding: 12px 14px;
  background: var(--accent-2-soft, #EDE6DD); border-radius: var(--radius-md); font-size: 12px; line-height: 1.7; color: var(--accent-2-strong, #6E5840); }
.hkph-club__note svg { flex: 0 0 auto; margin-top: 2px; }
@media (max-width: 520px) { .hkph-club__perks { grid-template-columns: 1fr; } }

/* ===================================================== sale page ======= */
.hkph-sale-hero { position: relative; background: var(--hkph-500); overflow: hidden; text-align: center; }
.hkph-sale-hero__ghost { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-fa); font-weight: 900; font-size: 30vw; line-height: 1; color: rgba(255,255,255,.05); pointer-events: none; }
.hkph-sale-hero__inner { position: relative; padding-block: 30px 34px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hkph-sale-hero__kicker { font-size: var(--text-caption); font-weight: var(--weight-strong); color: var(--accent-2, #A18565); }
.hkph-sale-hero__title { font-size: 30px; font-weight: var(--weight-title); color: #fff; margin: 0; }
.hkph-sale-hero__sub { font-size: 13px; color: rgba(255,255,255,.78); line-height: 1.8; margin: 0; max-width: 520px; }
.hkph-sale-hero__cd { margin-top: 8px; justify-content: center; }
.hkph-sale-body { padding-block: 20px 36px; }
.hkph-sale-filter { margin-bottom: 18px; }
.hkph-sale-pagination { margin-top: 26px; text-align: center; }
.hkph-sale-pagination ul { display: inline-flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; }
.hkph-sale-pagination a, .hkph-sale-pagination span { display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--border-soft); border-radius: var(--radius-pill);
  font-weight: var(--weight-strong); color: var(--slate-600); }
.hkph-sale-pagination .current { background: var(--hkph-500); color: #fff; border-color: var(--hkph-500); }
.hkph-sale-empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.hkph-sale-empty svg { color: var(--accent-2, #A18565); margin: 0 auto 12px; }
.hkph-sale-empty p { margin: 0 0 16px; }
@media (min-width: 1024px) { .hkph-sale-hero__title { font-size: 42px; } }

/* cart/checkout discount fee line (e.g. set bundle discount) — show as a saving */
.summary-row--fee .summary-row__val { color: var(--success); font-weight: var(--weight-strong); }
.hkph-checkout-review tr.fee th, .hkph-checkout-review tr.fee td { color: var(--success); font-weight: var(--weight-strong); }

/* ===================================================== reviews w/ photos */
.comment-form-hkph-images { margin: 12px 0; }
.comment-form-hkph-images label { display: block; font-size: 12px; font-weight: var(--weight-ui); color: var(--muted); margin-bottom: 6px; }
.comment-form-hkph-images input[type="file"] { font-size: 12px; max-width: 100%; }
.comment-form-hkph-images__hint { display: block; font-size: 11px; color: var(--muted-2); margin-top: 5px; }
.hkph-review-images { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hkph-review-images__item { width: 70px; height: 88px; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border-soft); display: block; transition: border-color var(--motion-fast); }
.hkph-review-images__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hkph-review-images__item:hover { border-color: var(--hkph-500); }

/* frequently bought together row */
.hkph-fbt { margin-top: 36px; }

/* ============================================================
   UX round 3 — select2 (استان/شهر) fix · price filter polish ·
   green chosen payment/shipping cards with icons.
   ============================================================ */

/* select2: kill the plugin's fixed 28px metrics so the value never spills
   below the field; behave exactly like our text inputs. */
.select2-container .select2-selection--single { height: auto; min-height: 0; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 1.6; padding: 0; color: var(--text-strong); flex: 1; text-align: start; }
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--muted); }
.select2-container--default .select2-selection--single .select2-selection__arrow {
  position: static; height: auto; width: auto; margin-inline-start: 8px; display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--muted) transparent transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--muted) transparent; }
.select2-container--default .select2-selection--single .select2-selection__clear { order: 2; margin-inline-start: 6px; color: var(--muted); }
.select2-dropdown { border: 1px solid var(--border-soft, #e4e1db); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .10); font-family: inherit; }
.select2-search--dropdown { padding: 8px; }
.select2-search--dropdown .select2-search__field { font-family: inherit; padding: 9px 12px;
  border: 1px solid var(--border-soft, #e4e1db); border-radius: 8px; }
.select2-results__option { padding: 9px 13px; font-size: 13px; }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: var(--hkph-500); }

/* price filter: readable Persian inputs + chunkier handles */
.filter-price__inputs { display: flex; gap: 8px; }
.filter-price__box { flex: 1; min-width: 0; display: flex; align-items: center; gap: 7px;
  background: var(--gray-100); border: 1px solid transparent; border-radius: var(--radius-md); padding: 0 11px;
  transition: border-color var(--motion-fast), background var(--motion-fast); }
.filter-price__box span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.filter-price__box input { background: transparent; border: 0; padding: 11px 2px; width: 100%; min-width: 0;
  font-family: var(--font-fa-num); font-size: 13px; color: var(--text-strong); outline: none; box-shadow: none; }
.filter-price__box:focus-within { border-color: var(--hkph-500); background: #fff; }
.price-slider__track { height: 6px; border-radius: 999px; }
.price-slider__handle::-webkit-slider-thumb { width: 22px; height: 22px; background: #fff;
  border: 2.5px solid var(--hkph-500); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.price-slider__handle::-moz-range-thumb { width: 22px; height: 22px; background: #fff;
  border: 2.5px solid var(--hkph-500); box-shadow: 0 1px 6px rgba(0, 0, 0, .18); }
.price-slider__values { display: flex; justify-content: space-between; margin-top: 7px;
  font-size: 11.5px; color: var(--muted); font-family: var(--font-fa-num); }

/* چیز انتخاب‌شده سبز شود — مثل انتخاب روز پیک */
.woocommerce-checkout #payment ul.wc_payment_methods li { cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.woocommerce-checkout #payment ul.wc_payment_methods li input.input-radio { accent-color: var(--success, #1a7f37); }
.woocommerce-checkout #payment ul.wc_payment_methods li.is-chosen,
.woocommerce-checkout #payment ul.wc_payment_methods li:has(input.input-radio:checked) {
  border-color: var(--success, #1a7f37); background: #f0f8f2; box-shadow: 0 0 0 1px var(--success, #1a7f37); }

/* shipping methods → icon cards (works in checkout review and cart) */
ul#shipping_method li { border: 1px solid #e2e4e6; border-radius: var(--radius-md); padding: 11px 13px; background: #fff;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
ul#shipping_method li label { display: flex; align-items: center; gap: 10px; flex: 1; cursor: pointer; }
ul#shipping_method li input { accent-color: var(--success, #1a7f37); }
ul#shipping_method li.is-chosen,
ul#shipping_method li:has(input:checked) {
  border-color: var(--success, #1a7f37); background: #f0f8f2; box-shadow: 0 0 0 1px var(--success, #1a7f37); }
.ship-ico { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px; background: var(--gray-100, #f2f1ef);
  display: flex; align-items: center; justify-content: center; color: var(--muted); }
ul#shipping_method li.is-chosen .ship-ico,
ul#shipping_method li:has(input:checked) .ship-ico { background: #dff0e3; color: var(--success, #1a7f37); }
.ship-ico::before { content: ""; width: 20px; height: 20px; background: currentColor;
  -webkit-mask: var(--ship-svg) center / contain no-repeat; mask: var(--ship-svg) center / contain no-repeat; }
.ship-ico--post { --ship-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z'/%3E%3Cpath d='m3.3 7 8.7 5 8.7-5'/%3E%3Cpath d='M12 22V12'/%3E%3C/svg%3E"); }
.ship-ico--courier { --ship-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='5.5' cy='17.5' r='3.5'/%3E%3Ccircle cx='15' cy='5' r='1'/%3E%3Cpath d='M12 17.5V14l-3-3 4-3 2 3h2'/%3E%3C/svg%3E"); }
.ship-ico--truck { --ship-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2'/%3E%3Cpath d='M15 18H9'/%3E%3Cpath d='M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E"); }

/* ---- 1.16.1: price-filter hotfixes + ready-made price brackets ---- */

/* the generic input:focus{background:#fff} rule painted a white box over the
   whole slider when a range handle got focus — ranges are exempt. */
input[type="range"], input[type="range"]:focus {
  background: transparent; border-color: transparent; box-shadow: none; padding: 0; }
.price-slider__handle, .price-slider__handle:focus { background: transparent; border: 0; }

.price-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.price-chip {
  border: 1px solid var(--border-soft, #e4e1db); border-radius: 999px; padding: 5px 12px;
  font-size: 11.5px; color: var(--text-body); background: #fff; white-space: nowrap;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.price-chip:hover { border-color: var(--hkph-500); color: var(--hkph-500); }
.price-chip.is-selected { background: var(--hkph-500); border-color: var(--hkph-500); color: var(--color-on-primary, #fff); }
