/* =========================================================================
   bluTshirt — 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(--blu-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(--blu-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(--blu-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; }
.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(--blu-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 sticky bar */
.shop-filterbar { display: flex; border-block: 1px solid var(--border-soft); position: sticky;
  top: calc(var(--header-h)); background: #fff; z-index: 30; }
.shop-filterbar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 12px; font-family: var(--font-fa); font-size: 13px; font-weight: var(--weight-strong);
  color: var(--slate-700); background: none; border: 0; }
.shop-filterbar button + button { border-inline-start: 1px solid var(--border-soft); }
.shop-filterbar svg { width: 17px; height: 17px; }
@media (min-width: 1024px) { .shop-filterbar { display: 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(--blu-100);
  display: flex; align-items: center; justify-content: center; border: 0; color: var(--blu-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(--blu-500); color: #fff; }
.product-card__add.loading { opacity: .6; pointer-events: none; }
.product-card__add.added { background: var(--success); color: #fff; }

.product-card__body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.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(--blu-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(--blu-100); position: static; box-shadow: none; }
  .product-card__add svg { width: 19px; height: 19px; }
  .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(--blu-500); color: #fff; border-color: var(--blu-500); }
.loadmore-wrap { text-align: center; margin-top: 18px; }

/* ================================================ 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(--blu-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); }
.size-guide-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: var(--weight-strong);
  color: var(--blu-500); background: none; border: 0; }
.size-guide-link svg { width: 15px; height: 15px; }

.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(--blu-500); }
/* Unavailable / out-of-stock color: dimmed + a clear red strike so the user
   immediately sees it doesn't exist for the current choice. */
.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% - 1.1px), #e02424 calc(50% - 1.1px),
    #e02424 calc(50% + 1.1px), transparent calc(50% + 1.1px)); }
.color-swatch.is-unavailable.is-selected { border-color: #e2e4e6; }

.size-pills, .blu-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(--blu-500); background: var(--blu-100); color: var(--blu-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 + red line-through. */
.size-pill.is-unavailable { color: #b9bfc2; background: #fafbfb; border-color: #ededed; cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: #e02424; text-decoration-thickness: 2px; 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(--blu-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) */
.blu-gallery { width: 100%; }
.blu-gallery__main { border-radius: var(--radius-xl); overflow: hidden; background: var(--gray-100); }
.blu-gallery__main img { width: 100%; height: auto; display: block; }
.blu-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.blu-gallery__thumbs::-webkit-scrollbar { display: none; }
.blu-gallery__thumb { flex: 0 0 64px; aspect-ratio: 1; border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); overflow: hidden; padding: 0; background: var(--gray-100); cursor: pointer; }
.blu-gallery__thumb.is-active { border: 2px solid var(--blu-500); }
.blu-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 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(--blu-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; }
.blu-qty-btn { background: none; border: 0; color: var(--slate-600); display: flex; padding: 0; cursor: pointer; }
.blu-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(--blu-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(--blu-600); }
.product-buy .single_add_to_cart_button:active { background: var(--blu-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(--blu-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(--blu-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 */
.blu-design-button { margin-bottom: 9px; }
.product-buy[data-line="basic"] .single_add_to_cart_button {
  background: #fff; border-color: var(--blu-500); color: var(--blu-700); }
.product-buy[data-line="basic"] .single_add_to_cart_button:hover { background: var(--blu-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; }

/* v1.7.10 — محصولات متغیر: ردیف «تعداد + افزودن به سبد» هم‌تراز شود.
   این دو، داخل .woocommerce-variation-add-to-cart دو عنصر inline-flex بودند
   که روی خطِ متن با baseline تراز می‌شدند → دکمه چند پیکسل پایین‌تر از
   تعدادگیر می‌نشست (دسکتاپ و موبایل). حالا خود ردیف فلکس است؛
   CTA پلاگین طراحی («طراحی کن») تمام‌عرض زیر همین ردیف می‌ماند. */
.product-buy .woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.product-buy .woocommerce-variation-add-to-cart .single_add_to_cart_button { flex: 1 1 auto; }
.product-buy .woocommerce-variation-add-to-cart .quantity { flex: 0 0 auto; }
.product-buy .woocommerce-variation-add-to-cart .bt-pdp-cta-wrap { flex: 0 0 100%; order: 2; }

/* 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 */
.blu-swatch-group { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.blu-swatch-group .color-swatch { width: 34px; height: 34px; }

/* ---- 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(--blu-100); color: var(--blu-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(--blu-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(--blu-500); color: #fff;
  font-size: 11px; font-weight: var(--weight-strong); font-family: var(--font-fa-num); }
.blu-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 .blu-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(--blu-500); font-weight: var(--weight-strong); }
.checkout-step.is-done { color: 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(--blu-500); }
.checkout-step.is-done .checkout-step__num { background: var(--success); }
.checkout-step__num svg { width: 12px; height: 12px; }
.checkout-step__bar { width: 20px; height: 2px; background: #cfd4d6; }

.freeship-bar { background: var(--blu-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(--blu-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(--blu-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 */
.sticky-action { 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 .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; } }

@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 {
  /* a11y: مرز فیلد قبلاً transparent بود و زمینهٔ gray-100 فقط 1.10:1 با صفحه
     تفاوت داشت — فیلدهای تسویه‌حساب عملاً بی‌مرز دیده می‌شدند. */
  width: 100%; background: var(--gray-100); border: 1px solid var(--border-input); 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(--blu-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(--blu-500); background: var(--blu-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(--blu-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(--blu-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(--blu-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(--blu-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 */
.blu-checkout-review { border-collapse: collapse; }
.blu-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; }
.blu-checkout-review tfoot th, .blu-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); }
.blu-checkout-review tfoot td { text-align: end; }
.blu-checkout-review tfoot tr:first-child th, .blu-checkout-review tfoot tr:first-child td { border-top: 1px dashed #cfd4d6; }
.blu-checkout-review tfoot tr.order-total th { font-weight: var(--weight-strong); color: var(--text-strong); font-size: 14px; }
.blu-checkout-review tfoot tr.order-total td { font-weight: var(--weight-title); color: var(--blu-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; }

.blu-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; }

/* 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(--blu-500); margin-inline-end: 8px; vertical-align: middle; }
.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 selectable CARDS (پیک / پست) — cart + checkout ===== */
.blu-shipping-row .blu-shipping-cell { padding: 6px 0 2px; }
.blu-ship-title { display: flex; align-items: center; gap: 6px; margin: 2px 0 10px;
  font-size: 12px; font-weight: var(--weight-strong); color: var(--text-strong); }
.blu-ship-title svg { width: 16px; height: 16px; color: var(--blu-600); }

.blu-ship-methods { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.blu-ship-method { margin: 0; }

.blu-ship-card { position: relative; display: flex; align-items: center; gap: 11px; width: 100%; margin: 0;
  padding: 12px 13px; background: #fff; border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.blu-ship-card:hover { border-color: var(--border-strong); }

/* real radio: kept reachable for keyboard/AT, visually replaced by __radio */
.blu-ship-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.blu-ship-card__radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; position: relative;
  border: 2px solid var(--border-input); background: #fff; transition: border-color .15s ease; }
.blu-ship-card__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--blu-500); transform: scale(0); transition: transform .15s ease; }

.blu-ship-card__icon { flex: 0 0 auto; display: flex; color: var(--slate-500); }
.blu-ship-card__icon svg { width: 22px; height: 22px; }

.blu-ship-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.blu-ship-card__name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 13.5px; font-weight: var(--weight-strong); color: var(--text-strong); line-height: 1.4; }
.blu-ship-card__badge { font-size: 10.5px; font-weight: var(--weight-strong); color: var(--blu-700);
  background: var(--blu-100); border-radius: var(--radius-pill); padding: 2px 8px; line-height: 1.6; }
.blu-ship-card__eta { display: flex; align-items: center; gap: 4px;
  font-size: 11.5px; font-weight: var(--weight-ui); color: var(--text-muted); }
.blu-ship-card__eta svg { width: 13px; height: 13px; }
.blu-ship-card__price { flex: 0 0 auto; font-size: 13px; font-weight: var(--weight-strong);
  color: var(--text-strong); white-space: nowrap; }
.blu-ship-free { color: var(--success); }

/* selected — primary via :has(checked); server/JS .is-selected as fallback */
.blu-ship-card:has(.shipping_method:checked),
.blu-ship-method.is-selected .blu-ship-card {
  border-color: var(--blu-500); background: var(--blu-100); box-shadow: inset 0 0 0 1px var(--blu-500); }
.blu-ship-card:has(.shipping_method:checked) .blu-ship-card__radio,
.blu-ship-method.is-selected .blu-ship-card__radio { border-color: var(--blu-500); }
.blu-ship-card:has(.shipping_method:checked) .blu-ship-card__radio::after,
.blu-ship-method.is-selected .blu-ship-card__radio::after { transform: scale(1); }
.blu-ship-card:has(.shipping_method:checked) .blu-ship-card__icon,
.blu-ship-method.is-selected .blu-ship-card__icon { color: var(--blu-600); }

/* keyboard focus ring (also works in browsers without :has) */
.blu-ship-input:focus-visible ~ .blu-ship-card__radio { box-shadow: 0 0 0 3px rgba(0,122,166,.9); }
.blu-ship-card:has(.blu-ship-input:focus-visible) { border-color: var(--blu-500); }

/* single available method → info card, no radio */
.blu-ship-method--single .blu-ship-card { cursor: default; }
.blu-ship-method--single .blu-ship-card__radio { display: none; }

/* the Hamoon پیک date/time picker renders right under its card */
.blu-ship-method #custom_delivery_date_field { margin-top: 10px; }

.blu-ship-dest, .blu-ship-hint { margin: 10px 0 0; font-size: 11.5px; color: var(--text-muted); line-height: 1.7; }

/* 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 .blu-co-review { grid-column: 2; position: sticky; top: 88px; }
}
.blu-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(--blu-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(--blu-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(--blu-500); }
.account-menu .logout, .account-menu .logout svg { color: 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(--blu-100); color: var(--blu-700); }
.order-status--shipping { background: var(--blu-100); color: var(--blu-700); }
.order-status--completed { background: rgba(31,157,87,.12); color: var(--success); }
.order-status--pending, .order-status--failed, .order-status--cancelled { background: 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(--blu-500); }
.address-card__edit { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: var(--weight-strong); color: var(--blu-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(--blu-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(--blu-500); color: var(--blu-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(--blu-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.blu-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.blu-auth-screen {
  min-height: 100vh;
  background:
    radial-gradient(115% 75% at 100% 0%, rgba(0, 173, 230, 0.16) 0%, rgba(0, 173, 230, 0) 55%),
    radial-gradient(115% 75% at 0% 100%, rgba(0, 173, 230, 0.13) 0%, rgba(0, 173, 230, 0) 55%),
    linear-gradient(180deg, #fbfdff 0%, #eef8fe 100%);
}
/* the mobile bottom-nav is hidden here, so reclaim its reserved space */
body.blu-auth-screen.has-bottom-nav { padding-bottom: 0; }

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

/* slim, transparent header — keep just the centred logo as a way back home */
body.blu-auth-screen .site-header { position: static; background: transparent; box-shadow: none; }
body.blu-auth-screen .site-header__bar { border-bottom: 0; justify-content: center; }
body.blu-auth-screen .menu-toggle,
body.blu-auth-screen .primary-nav,
body.blu-auth-screen .site-header__actions { display: none !important; }
body.blu-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.blu-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.blu-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.blu-auth-screen #primary.site-main {
    align-items: flex-start;
    min-height: 0;
  }
  body.blu-auth-screen #primary .container.section { padding-block: 8px 24px; }
}
body.blu-auth-screen .page-article,
body.blu-auth-screen .page-article .entry-content { margin: 0; }

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

/* =================================================================
   Hamoon delivery (پیک) date/time picker — bluTshirt 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(--blu-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(--blu-500); background: #fff;
}
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected {
  border-color: var(--blu-500); background: var(--blu-100); box-shadow: 0 0 0 1px var(--blu-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(--blu-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(--blu-700); }
body.woocommerce-checkout #custom_delivery_date_field .delivery-date.selected .shipp-price svg { fill: var(--blu-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(--blu-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(--blu-500); }
body.woocommerce-checkout #custom_delivery_date_field .time-slots label:has(input:checked) {
  border-color: var(--blu-500); background: var(--blu-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(--blu-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(--blu-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(--blu-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(--blu-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(--blu-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(--blu-100); border: 1px solid rgba(0,173,230,.22); border-radius: var(--radius-md); padding: 12px 14px; }
.tracking-box__label { font-size: 12px; color: var(--blu-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(--blu-700); background: #fff; border: 1px solid rgba(0,173,230,.3); border-radius: var(--radius-pill);
  padding: 6px 12px; cursor: pointer; font-family: inherit;
}
.tracking-box__copy:hover { background: var(--blu-500); color: #fff; border-color: var(--blu-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(--blu-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; }

/* ---- proforma-invoice button in the cart (v1.5.0) -----------------------
   Sits under the checkout button. Secondary on purpose: the primary action is
   still «ادامه جهت تسویه»; this is the B2B side-door for someone who needs the
   document before they are allowed to pay. */
.blu-proforma-btn {
  display: flex; width: 100%; margin-top: 10px; gap: 8px;
  font-family: var(--font-fa-num, inherit);
}
.blu-proforma-btn svg { flex: 0 0 auto; }

/* =========================================================================
 * v1.6.0 — پالیش کارت محصول و اهداف لمسی (ممیزی مرداد ۱۴۰۵)
 * ====================================================================== */
/* قیمت: قدیمی محو و کوچک، نهایی پررنگ — دیگر شبیه لینک نیست */
.product-card__price del { color: var(--text-muted); opacity: .85; text-decoration-thickness: 1px; }
.product-card__price ins { font-weight: 800; color: var(--text-strong); }
/* برچسب «مشاهده» کنار فلش دایره‌ای — فقط دسکتاپ؛ ابهام اکشن کارت را حل می‌کند */
.product-card__addlabel { display: none; }
@media (min-width: 1024px) {
  .product-card__add--view { width: auto; border-radius: var(--radius-pill); padding: 0 12px; gap: 3px; }
  .product-card__addlabel { display: inline; font-size: 12px; font-weight: 700; }
}
/* اهداف لمسی: سواچ‌های کارت روی دستگاه لمسی بزرگ‌تر + ناحیهٔ لمس نامرئی */
@media (pointer: coarse) {
  .swatches { gap: 8px; }
  .swatch { width: 20px; height: 20px; position: relative; }
  .swatch::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; }
  .swatch--more { height: 20px; min-width: 20px; font-size: 10px; }
}

/* ================================================== v1.6.7 — phase 1 ===== */
/* دو کنترل مرتب‌سازی روی موبایل: شیت «مرتب‌سازی» قالب می‌ماند، دراپ‌داون ووکامرس پنهان. */
@media (max-width: 1023.98px) { .shop-toolbar__sort { display: none; } }

/* مبلغ نهایی داخل نوار چسبان سبد — فقط موبایل (دسکتاپ کارت جمع همان بالا دیده می‌شود). */
.sticky-action__total { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.sticky-action__total-label { color: var(--text-strong); font-weight: var(--weight-strong); }
.sticky-action__total-val { font-size: 16px; }
@media (min-width: 1024px) { .sticky-action__total { display: none; } }

/* بنر زمینهٔ «در میانهٔ تسویه» بالای فرم ورود OTP. */
.auth-context { display: flex; align-items: center; gap: 10px; max-width: 410px; margin: 0 auto 14px;
  background: rgba(0, 173, 230, .09); border: 1px solid rgba(0, 173, 230, .32);
  border-radius: var(--radius-md); padding: 11px 14px; font-size: 12.5px; }
.auth-context svg { flex: none; color: var(--blu-600); }
.auth-context p { flex: 1; margin: 0; line-height: 1.8; }
.auth-context__back { white-space: nowrap; font-weight: var(--weight-strong); color: var(--text-link); text-decoration: underline; }

/* خط پذیرش قوانین زیر فرم OTP. */
.auth-terms { max-width: 410px; margin: 12px auto 0; text-align: center; font-size: 11.5px; color: var(--muted); }
.auth-terms a { color: var(--text-link); }

/* v1.6.9 — نوار وعدهٔ ارسال زیر دکمهٔ خرید (مارکاپ از v1.6.8 بود، استایل نداشت). */
.pdp-promise { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px;
  background: var(--gray-100); border-radius: var(--radius-md); padding: 10px 13px;
  font-size: 12.5px; line-height: 1.8; color: var(--text-strong); }
.pdp-promise svg { flex: none; color: var(--blu-600); margin-top: 3px; }

/* v1.7.8 — کارت تحویل پویا (وعدهٔ ارسال) زیر دکمهٔ خرید؛ جایگزین .pdp-promise.
   بدون سایه و بدون سطح آبی پُر — دکمهٔ افزودن به سبد تنها عنصر آبی ستون می‌ماند. */
.pdp-dispatch { background: var(--gray-100); border: 1px solid var(--gray-150);
  border-radius: var(--radius-md); padding: 2px 13px; margin-top: 12px; }
.pdp-dispatch__row { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; }
.pdp-dispatch__row + .pdp-dispatch__row { border-top: 1px solid var(--gray-150); }
.pdp-dispatch__row > svg { flex: none; color: var(--blu-600); margin-top: 3px; }
.pdp-dispatch.is-live .pdp-dispatch__row--main > svg { color: var(--success); }
.pdp-dispatch__main { font-size: 13.5px; font-weight: var(--weight-strong);
  color: var(--text-strong); line-height: 1.7; }
.pdp-dispatch__count { color: var(--success); font-feature-settings: "tnum"; }
.pdp-dispatch__sub { font-size: 12px; color: var(--muted); line-height: 1.7; margin-top: 1px; }
.pdp-dispatch__method { font-size: 12.5px; color: var(--text-body); line-height: 1.8; }
.pdp-dispatch__method b { color: var(--text-strong); font-weight: var(--weight-strong); }

/* ============================== v1.7.2 — CSS جامانده از فیچرهای v1.6.8 === */
/* نام گزینهٔ انتخابی کنار لیبل ردیف واریانت («رنگ: سرمه‌ای»). */
.variations .attr-chosen { margin-inline-start: 6px; font-size: 12px; font-weight: var(--weight-ui);
  color: var(--muted); }
.variations .attr-chosen:not(:empty)::before { content: "· "; color: var(--border-input); }

/* توضیحات بلند محصول: پیش‌فرض جمع + محو انتها + دکمهٔ «ادامهٔ مطلب». */
.desc-clampable.is-clamped { max-height: 260px; overflow: hidden; position: relative; }
.desc-clampable.is-clamped::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 70px;
  background: linear-gradient(to top, #fff 12%, rgba(255, 255, 255, 0)); }
.desc-more { display: block; margin: 4px auto 10px; background: none; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: var(--weight-strong); color: var(--text-link); }

/* «نمایش بیشتر» (JS از v1.6.8 بود، CSSاش جا مانده): موبایل دکمه، دسکتاپ صفحه‌بندی. */
.load-more-wrap { margin: 18px 0 4px; }
@media (max-width: 1023.98px) { .woocommerce-pagination { display: none; } }
@media (min-width: 1024px) { .load-more-wrap { display: none; } }

/* ============================== v1.7.4 — نظرات محصول + امتیاز کارت ===== */
/* امتیاز کوچک روی کارت محصول. */
.product-card__rating { display: inline-flex; align-items: center; gap: 3px; font-size: 12px;
  color: var(--text-strong); font-family: var(--font-fa-num); margin-top: 2px; }
.product-card__rating small { color: var(--muted); font-size: 11px; }
.product-card__star { color: #f5a623; font-size: 13px; line-height: 1; }

/* ستاره‌های ووکامرس (استایل هستهٔ WC حذف است؛ نسخهٔ یونیکدی خودمان). */
.star-rating { position: relative; display: inline-block; overflow: hidden; white-space: nowrap;
  font-size: 15px; line-height: 1; width: 5.3em; height: 1.1em; }
.star-rating::before { content: "★★★★★"; letter-spacing: .12em; color: var(--gray-150, #EBEBEB); position: absolute; inset-inline-start: 0; }
.star-rating span { position: absolute; inset-inline-start: 0; top: 0; overflow: hidden; white-space: nowrap; height: 100%; }
.star-rating span::before { content: "★★★★★"; letter-spacing: .12em; color: #f5a623; }
.star-rating span .rating, .star-rating .screen-reader-text { position: absolute; clip: rect(0 0 0 0); }

/* تب/بخش نظرات. */
#reviews { margin-top: 8px; }
#reviews .commentlist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
#reviews .commentlist > li { background: var(--gray-100); border-radius: var(--radius-md); padding: 13px 15px; }
#reviews .comment_container { display: flex; gap: 10px; }
#reviews .commentlist .avatar { width: 38px; height: 38px; border-radius: 50%; flex: none; }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .meta { margin: 3px 0 6px; font-size: 12px; color: var(--muted); }
#reviews .comment-text .meta strong { color: var(--text-strong); }
#reviews .comment-text .description { font-size: 13.5px; line-height: 2; }
#reviews .comment-text .description p { margin: 0 0 6px; }
#reviews .woocommerce-verification-required { font-size: 12.5px; color: var(--muted); }

/* فرم ثبت نظر. */
#review_form_wrapper { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg, 16px); padding: 16px 18px; }
#review_form .comment-reply-title { font-size: 15px; font-weight: var(--weight-strong); display: block; margin-bottom: 10px; }
#review_form .comment-form-rating { margin-bottom: 10px; }
#review_form .comment-form-rating label { display: block; margin-bottom: 5px; font-size: 13px; }
#review_form p.stars { display: inline-flex; gap: 4px; margin: 0 0 4px; }
#review_form p.stars a { display: inline-block; width: 24px; height: 24px; text-indent: -9999px; position: relative; text-decoration: none; }
#review_form p.stars a::after { content: "★"; text-indent: 0; position: absolute; inset: 0; font-size: 22px; line-height: 24px; color: var(--gray-150, #EBEBEB); }
#review_form p.stars:hover a::after { color: #f5c76a; }
#review_form p.stars a:hover ~ a::after { color: var(--gray-150, #EBEBEB); }
#review_form p.stars.selected a::after { color: #f5a623; }
#review_form p.stars.selected a.active ~ a::after { color: var(--gray-150, #EBEBEB); }
#review_form .comment-form-comment label, #review_form .comment-form-author label, #review_form .comment-form-email label { display: block; font-size: 13px; margin-bottom: 5px; }
#review_form textarea, #review_form input[type="text"], #review_form input[type="email"] { width: 100%; background: var(--gray-100); border: 0; border-radius: var(--radius-md); padding: 11px 13px; font-family: inherit; font-size: 14px; }
#review_form .form-submit { margin: 10px 0 0; }
#review_form .form-submit .submit { background: var(--blu-600); color: #fff; border: 0; border-radius: var(--radius-pill, 999px); padding: 11px 26px; font-family: inherit; font-size: 14px; font-weight: var(--weight-strong); cursor: pointer; }
#review_form .comment-notes, #review_form .comment-form-cookies-consent { font-size: 12px; color: var(--muted); }
#reviews .woocommerce-noreviews { font-size: 13.5px; color: var(--muted); }

/* ================================== v1.7.5 — سایزیاب «سایزم چنده؟» ===== */
.size-finder-link { margin-inline-start: 10px; }
.size-finder .modal__body { padding-bottom: 24px; }
/* v1.7.7 — چرخ عددی (بدون کیبورد). */
.bsf-wheels { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bsf-wheelbox__label { display: block; font-size: 12.5px; margin-bottom: 6px; color: var(--text-strong); text-align: center; }
.bsf-wheel { position: relative; height: 132px; overflow-y: auto; overscroll-behavior: contain;
  scroll-snap-type: y mandatory; border: 1.5px solid var(--border-soft); border-radius: var(--radius-md);
  background: #fff; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent); }
.bsf-wheel::-webkit-scrollbar { display: none; }
.bsf-wheel:focus-visible { outline: 2px solid var(--blu-500); outline-offset: 2px; }
.bsf-wheel__inner { padding-block: 44px; }
.bsf-wheel__item { height: 44px; display: flex; align-items: center; justify-content: center;
  scroll-snap-align: center; font-family: var(--font-fa-num); font-size: 19px; color: var(--muted);
  transition: color .12s, transform .12s; }
.bsf-wheel__item.is-active { color: var(--blu-600); font-weight: 800; font-size: 23px; }
.bsf-wheelbox { position: relative; }
.bsf-wheelbox::after { content: ""; position: absolute; inset-inline: 6px; top: calc(50% + 12px);
  height: 44px; transform: translateY(-50%); border-block: 1.5px solid rgba(0, 173, 230, .35);
  pointer-events: none; border-radius: 4px; }
.bsf-fit { display: flex; gap: 8px; margin-bottom: 14px; }
.bsf-fit__btn { flex: 1; padding: 10px 8px; border: 1.5px solid var(--border-soft); border-radius: var(--radius-pill, 999px);
  background: #fff; font-family: inherit; font-size: 13px; color: var(--text-strong); cursor: pointer; }
.bsf-fit__btn.is-selected { border-color: var(--blu-500); background: rgba(0, 173, 230, .08); font-weight: var(--weight-strong); }
.bsf-result { text-align: center; background: var(--gray-100); border-radius: var(--radius-md); padding: 14px 14px 12px; }
.bsf-result__label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.bsf-result__size { display: block; font-size: 34px; font-weight: 800; color: var(--blu-600); font-family: var(--font-fa-num); line-height: 1.4; }
.bsf-result__note { margin: 6px 0 8px; font-size: 11.5px; color: var(--muted); line-height: 1.9; }
