/* HAMI light — editorial luxury system, RTL menswear */

/* Phase 2 design tokens. Keep these names stable for future sections. */
:root {
  --hami-ivory: #f5f1eb;
  --hami-espresso: #211b18;
  --hami-leather: #865738;
  --hami-champagne: #d8c5ae;
  --hami-stone: #e8e2da;
  --hami-line: rgba(33, 27, 24, 0.14);
  --hami-focus: #865738;
  --hami-radius-sm: 2px;
  --hami-radius-md: 8px;
  --hami-shadow-soft: 0 18px 50px rgba(33, 27, 24, 0.10);
  --hami-ease: cubic-bezier(.22, .61, .36, 1);
  --hami-space-1: .5rem;
  --hami-space-2: 1rem;
  --hami-space-3: 1.5rem;
  --hami-space-4: 2rem;
  --hami-space-5: 3rem;
  --hami-space-6: 5rem;
}

:root {
  --hx-copper: #1a1a1a;
  --hx-cream: #1a1a1a;
  --hx-night: #f6f5f3;
  --hx-glass: #ffffff;
  --hx-glass-line: rgba(26, 26, 26, 0.1);
  --hx-head: 7.2rem;
}

body.hami-theme {
  background: var(--hami-ivory);
  color: var(--hami-espresso);
}

::selection {
  background: #1a1a1a;
  color: #fff;
}

.hami-logo__words strong,
.hx-hero__kicker span,
.hx-foot__en {
  font-family: "Vazirmatn", Tahoma, sans-serif;
  font-weight: 800;
  letter-spacing: 0.16em;
}

/* Unified keyboard state for all phase-2 controls. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--hami-focus);
  outline-offset: 3px;
}

/* Header */
.hx-ribbon {
  background: #1a1a1a;
}

.hx-ribbon p {
  color: #f6f5f3;
  letter-spacing: 0;
  font-weight: 500;
}

.hami-header,
.home .hami-header:not(.is-scrolled),
.hami-header.is-scrolled,
.home .hami-header.is-scrolled {
  background: rgba(245, 241, 235, 0.96);
  color: var(--hami-espresso);
  border-bottom: 1px solid var(--hami-line);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.hami-logo__mark {
  border-color: var(--hami-espresso);
  border-radius: var(--hami-radius-sm);
  color: var(--hami-espresso);
  background: transparent;
}

.hami-logo__words small {
  color: #6b6966;
}

.hx-search {
  background: #f3f2f0;
  border: 1px solid transparent;
  box-shadow: none;
  color: #1a1a1a;
}

.hx-search input[type="search"] {
  color: #1a1a1a;
}

.hx-search input::placeholder {
  color: #8a8783;
}

.hx-search button,
.hx-icon {
  color: #1a1a1a;
  background: transparent;
}

.hx-icon--shop {
  background: var(--hami-espresso);
  color: #fff;
  border-radius: 0;
}

.hx-icon--shop:hover,
.hx-icon--shop:focus-visible {
  background: var(--hami-leather);
  color: #fff;
}

.hx-cart__count {
  background: #1a1a1a;
  color: #fff;
}

.hami-nav__list a::after {
  background: #1a1a1a;
}

.hami-nav__list .sub-menu {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.08);
}

/* Hero */
.hx-aurora {
  display: none;
}

.home .hx-hero {
  margin-top: 0;
}

.hx-hero {
  color: #1a1a1a;
  background: var(--hami-ivory);
  border-bottom: 1px solid var(--hami-line);
}

.hx-hero__glow {
  background: radial-gradient(circle, rgba(26, 26, 26, 0.05), transparent 68%);
}

.hx-hero__kicker,
.hx-hero__kicker span {
  color: #6b6966;
}

.hx-hero__title .is-copper,
html.hx-on .hx-hero__title span.is-copper {
  background: none;
  -webkit-text-fill-color: var(--hami-leather);
  color: var(--hami-leather);
  animation: none;
}

.hx-hero__lead {
  color: #4a4845;
}

.hx-hero__figure {
  background: var(--hami-stone);
  border-radius: var(--hami-radius-md);
  box-shadow: var(--hami-shadow-soft);
}

.hx-hero__stage {
  background: var(--hami-stone);
}

.elementor .hx-hero__img,
.hx-hero__img {
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: center 40%;
  background: #eceae6;
}

.hx-hero__figure::before,
.hx-hero__figure::after {
  display: none;
}

.hx-search {
  border-radius: 0;
}

.hx-search button,
.hx-icon {
  border-radius: 0;
}

.hx-btn {
  background: var(--hami-espresso);
  color: #fff;
  border-radius: var(--hami-radius-sm);
  box-shadow: none;
}

.hx-btn:hover,
.hx-btn:focus-visible {
  background: var(--hami-leather);
  color: #fff;
  box-shadow: none;
}

.hx-btn--ghost {
  background: #fff;
  color: var(--hami-espresso);
  border: 1px solid var(--hami-espresso);
  box-shadow: none;
  backdrop-filter: none;
}

.hx-btn--ghost:hover,
.hx-btn--ghost:focus-visible {
  background: var(--hami-espresso);
  color: #fff;
}

/*
 * Hero — brand-first atelier stage (20-lens brief):
 * Brand / Luxury / Art Direction / Typography / Product Photo / Motion /
 * Interaction / UX / Mobile / a11y / IA / Conversion / Psychology / Grid /
 * Color / Performance / RTL / Responsive / Trust / QA
 */
.home .hx-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-bottom: 0;
  background:
    radial-gradient(58% 48% at 18% 18%, rgba(140, 90, 52, 0.11), transparent 62%),
    radial-gradient(46% 40% at 88% 72%, rgba(28, 25, 23, 0.05), transparent 58%),
    linear-gradient(180deg, #fffdf9 0%, #f4efe7 72%, #efe8de 100%);
}

.home .hx-hero__grid {
  position: relative;
  z-index: 1;
  align-items: center;
  width: min(100% - 2rem, 1320px);
  min-height: min(52rem, calc(100svh - var(--hx-head, 4.5rem)));
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  gap: clamp(1.5rem, 4vw, 4.5rem);
}

.home .hx-hero__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .55rem 1rem;
  margin: 0 0 .85rem;
}

.home .hx-hero__brand-fa {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  color: #211b18;
}

.home .hx-hero__brand-en {
  font-family: var(--hami-display, "Syne", Georgia, serif);
  font-size: clamp(.78rem, 1.2vw, .92rem);
  font-weight: 800;
  letter-spacing: .28em;
  color: #8c5a34;
}

.home .hx-hero__kicker {
  margin: 0 0 1.1rem;
  color: #6d6258;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.home .hx-hero__kicker span { color: inherit; }

.home .hx-hero__title {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(2.9rem, 6.4vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.home .hx-hero__title span { display: block; }

.home .hx-hero__title .is-copper,
html.hx-on .home .hx-hero__title span.is-copper {
  color: #8c5a34;
  -webkit-text-fill-color: #8c5a34;
  font-weight: 600;
}

.home .hx-hero__lead {
  max-width: 24rem;
  margin: 1.25rem 0 0;
  color: #4a4038;
  font-size: 1.02rem;
  line-height: 1.85;
}

.home .hx-hero__actions {
  gap: .75rem;
  margin-top: 1.75rem;
}

.home .hx-hero__figure {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: end;
  justify-items: stretch;
  min-height: clamp(28rem, 64vh, 44rem);
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.home .hx-hero__figure::before,
.home .hx-hero__figure::after {
  display: none !important;
}

.home .hx-hero__stage {
  position: relative !important;
  inset: auto !important;
  display: grid;
  place-items: end center;
  min-height: clamp(24rem, 52vh, 36rem);
  background: transparent !important;
  overflow: visible;
}

.home .hx-hero__ground {
  position: absolute;
  left: 50%;
  bottom: 6%;
  z-index: 0;
  width: min(78%, 22rem);
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(33, 27, 24, .16);
  filter: blur(10px);
  transform: translateX(-50%);
  pointer-events: none;
}

.home .hx-hero__img,
.home .elementor .hx-hero__img {
  position: relative !important;
  z-index: 1;
  inset: auto !important;
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: min(62vh, 36rem);
  min-height: 0;
  max-width: none;
  object-fit: contain !important;
  object-position: center bottom !important;
  background: transparent !important;
  filter: drop-shadow(0 22px 36px rgba(28, 25, 23, 0.16));
}

.home .hx-chip {
  position: relative !important;
  inset: auto !important;
  z-index: 2;
  display: grid;
  gap: .12rem;
  min-width: 0;
  max-width: 20rem;
  margin-top: 1rem;
  padding: .15rem 0 0;
  border: 0 !important;
  border-top: 1px solid rgba(33, 27, 24, .12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  color: #211b18;
  text-decoration: none;
}

.home .hx-chip__kicker {
  color: #8c5a34;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.home .hx-chip__name {
  font-size: .98rem;
  font-weight: 800;
  color: #211b18;
}

.home .hx-chip__price {
  font-size: .88rem;
  font-weight: 700;
  color: #3a2a1e;
}

.home .hx-scroll {
  bottom: 1.1rem;
  color: rgba(33, 27, 24, .55);
  letter-spacing: .18em;
}

.home .hx-scroll i {
  background: linear-gradient(#8c5a34, transparent);
}

@media (min-width: 960px) {
  .home .hx-hero__grid {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 7rem);
  }

  .home .hx-hero__copy { order: 2; }
  .home .hx-hero__figure { order: 1; }
}

@media (max-width: 959px) {
  .home .hx-hero__grid {
    min-height: auto;
    padding-top: 2rem;
    align-items: start;
  }

  .home .hx-hero__copy { order: 1; }
  .home .hx-hero__figure { order: 2; min-height: 0; }
  .home .hx-hero__title { max-width: 12ch; }
  .home .hx-hero__stage { min-height: 20rem; }
  .home .hx-hero__img,
  .home .elementor .hx-hero__img { max-height: 48vh; }
}

@media (max-width: 560px) {
  .hx-ribbon p { font-size: .7rem; }
  .home .hx-hero__grid { width: min(100% - 1.25rem, 1320px); }
  .home .hx-hero__brand-fa { font-size: clamp(2.1rem, 11vw, 3rem); }
  .home .hx-hero__title { font-size: clamp(2.45rem, 12vw, 3.8rem); }
  .home .hx-hero__actions { width: 100%; }
  .home .hx-hero__actions .hx-btn { flex: 1 1 auto; }
  .hx-btn { width: auto; }
}

/* Phase 5 — calm checkout: fewer visual decisions, clearer commitment. */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .woocommerce,
.hami-account-in .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
  padding-block: clamp(2rem, 5vw, 5rem);
}

.woocommerce-cart .shop_table,
.woocommerce-cart .cart_totals,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: rgba(251, 248, 243, .9);
  box-shadow: 0 14px 38px rgba(33, 27, 24, .06);
}

.woocommerce-cart table.shop_table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td {
  border-color: var(--hami-line);
  padding: 1rem;
  vertical-align: middle;
}

.woocommerce-cart table.shop_table th { color: var(--hami-leather); font-size: .78rem; }
.woocommerce-cart .product-thumbnail img { border-radius: var(--hami-radius-sm); background: var(--hami-stone); }
.woocommerce-cart .product-name a { color: var(--hami-espresso); font-weight: 800; }

.woocommerce-cart .cart_totals {
  padding: 1.25rem;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout #order_review_heading {
  margin: 0;
  padding: 1.1rem 1.25rem;
  font-size: 1.25rem;
  letter-spacing: -.02em;
}

.woocommerce-cart .cart_totals table { margin: 0 0 1rem; border: 0; }
.woocommerce-cart .wc-proceed-to-checkout { padding: 0; }

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 3.3rem;
  border: 0;
  border-radius: var(--hami-radius-sm);
  background: var(--hami-espresso);
  color: #fff;
  font: inherit;
  font-weight: 800;
  transition: transform .3s var(--hami-ease), background .3s ease;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus-visible,
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #place_order:focus-visible {
  background: var(--hami-leather);
  transform: translateY(-2px);
}

.woocommerce-checkout #customer_details {
  padding: clamp(1rem, 3vw, 2rem);
}

.woocommerce-checkout #order_review {
  padding: 1rem;
}

.woocommerce-checkout #order_review_heading {
  margin-top: 2rem;
}

.woocommerce form .form-row label {
  margin-bottom: .35rem;
  color: var(--hami-espresso);
  font-size: .82rem;
  font-weight: 800;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 3rem;
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-sm);
  background: #fff;
  padding: .65rem .8rem;
  font: inherit;
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--hami-leather);
  outline: 2px solid rgba(134, 87, 56, .2);
  outline-offset: 2px;
}

.woocommerce-checkout #payment {
  margin-top: 1rem;
  border-radius: var(--hami-radius-sm);
  background: var(--hami-stone);
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
  border: 1px solid var(--hami-line);
  border-top: 3px solid var(--hami-leather);
  border-radius: var(--hami-radius-sm);
  background: #fff;
  color: var(--hami-espresso);
}

.woocommerce-info::before,
.woocommerce-message::before { color: var(--hami-leather); }

.woocommerce-cart .return-to-shop a.button,
.woocommerce-cart .coupon button,
.woocommerce-cart .actions button,
.woocommerce-cart .actions input,
.woocommerce form .button {
  min-height: 2.8rem;
  border: 1px solid var(--hami-espresso);
  border-radius: var(--hami-radius-sm);
  background: transparent;
  color: var(--hami-espresso);
  font: inherit;
  font-weight: 800;
}

.woocommerce-cart .return-to-shop a.button:hover,
.woocommerce-cart .coupon button:hover,
.woocommerce-cart .actions button:hover,
.woocommerce form .button:hover { background: var(--hami-espresso); color: #fff; }

.hami-account-in .woocommerce-MyAccount-navigation {
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: rgba(251, 248, 243, .9);
  box-shadow: 0 14px 38px rgba(33, 27, 24, .06);
}

.hami-account-in .woocommerce-MyAccount-navigation a {
  border-radius: var(--hami-radius-sm);
  color: var(--hami-espresso);
}

.hami-account-in .woocommerce-MyAccount-navigation a:hover,
.hami-account-in .woocommerce-MyAccount-navigation .is-active a {
  background: var(--hami-espresso);
  color: #fff;
}

@media (max-width: 767px) {
  .woocommerce-cart table.shop_table thead { display: none; }
  .woocommerce-cart table.shop_table tr.cart_item { display: grid; grid-template-columns: 5rem 1fr auto; gap: .65rem; padding: .8rem; }
  .woocommerce-cart table.shop_table td { border: 0; padding: .3rem; }
  .woocommerce-cart table.shop_table td.product-thumbnail { grid-row: span 3; }
  .woocommerce-cart table.shop_table td.product-remove { grid-column: 3; grid-row: 1; }
  .woocommerce-cart table.shop_table td.product-subtotal { grid-column: 2 / 4; }
  .woocommerce-cart .coupon { display: grid; gap: .5rem; }
  .woocommerce-cart .coupon input { width: 100%; min-height: 2.8rem; }
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; }
  .hami-account-in .woocommerce-MyAccount-navigation { margin-bottom: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hx-hero *, .hami-header * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Phase 3 — HAMI Atelier Rail: a quiet gallery, not a generic product grid. */
#hx-collection {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4rem, 8vw, 8rem);
}

#hx-collection::before {
  content: none;
  display: none;
}

#hx-collection .hx-head {
  align-items: end;
  margin-bottom: 1.75rem;
}

#hx-collection .hx-head h2 {
  max-width: 8ch;
  font-size: clamp(2.5rem, 6vw, 5.25rem);
  line-height: .95;
  letter-spacing: -.055em;
}

#hx-collection .hx-quiet {
  border-bottom: 1px solid var(--hami-espresso);
  padding-bottom: .35rem;
  color: var(--hami-espresso);
  font-weight: 800;
}

.hx-srail {
  position: relative;
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: linear-gradient(135deg, #fbf8f3 0%, var(--hami-stone) 100%);
  box-shadow: var(--hami-shadow-soft);
}

/* Phase 0: guide copy comes from admin `idle` via .hx-srail__caption — not CSS content. */
.hx-srail::after {
  content: none;
  display: none;
}

.hx-srail__list {
  gap: clamp(.75rem, 2vw, 1.75rem);
  padding: 2.25rem clamp(1rem, 4vw, 3rem) 1.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--hami-leather) transparent;
}

.hx-srail__list li {
  flex: 0 0 clamp(9.5rem, 15vw, 13.5rem);
}

.hx-srail__shoe {
  min-height: clamp(16rem, 26vw, 21rem);
  padding: .25rem .5rem 0;
  border: 1px solid transparent;
  transition: transform .55s var(--hami-ease), border-color .35s ease, background .35s ease;
}

.hx-srail__shoe::before {
  content: "";
  position: absolute;
  inset: 1rem 0 0;
  z-index: -1;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255,255,255,.4), transparent);
  opacity: 0;
  transition: opacity .35s ease, border-color .35s ease;
}

.hx-srail__shoe.is-front,
.hx-srail__shoe:hover,
.hx-srail__shoe:focus-visible {
  transform: translateY(-.4rem);
  border-color: rgba(134, 87, 56, .28);
  outline: none;
}

.hx-srail__shoe.is-front::before,
.hx-srail__shoe:hover::before,
.hx-srail__shoe:focus-visible::before { opacity: 1; border-color: rgba(134, 87, 56, .18); }

.hx-srail__shoe.is-front .hx-srail__photo img,
.hx-srail__shoe:hover .hx-srail__photo img,
.hx-srail__shoe:focus-visible .hx-srail__photo img {
  transform: translateY(-10px) scale(1.08);
}

.hx-srail__photo {
  height: clamp(13rem, 20vw, 16rem);
}

.hx-srail__photo img { width: 92%; }

.hx-srail__tag {
  min-width: 9rem;
  padding: .65rem .75rem;
  border-top: 1px solid rgba(33, 27, 24, .22);
  color: var(--hami-espresso);
  font-size: .78rem;
  font-weight: 800;
  text-align: center;
}

.hx-srail__tag small { margin-top: .15rem; font-size: .68rem; }

.hx-srail__bar {
  inset-inline: clamp(2rem, 5vw, 5rem);
  background: linear-gradient(90deg, var(--hami-espresso), var(--hami-leather), var(--hami-espresso));
}

.hx-srail__caption {
  min-height: 1.7rem;
  margin: .25rem auto 0;
  color: var(--hami-leather);
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}

@media (max-width: 640px) {
  #hx-collection .hx-head { margin-top: 1.5rem; }
  .hx-srail__list { padding-inline: .75rem; }
  .hx-srail__list li { flex-basis: 10.5rem; }
}

/* Phase 4 — commerce presentation: editorial archive + focused product detail. */
.woocommerce .woocommerce-products-header__title,
.woocommerce-products-header h1 {
  max-width: none;
  font-size: clamp(1.85rem, 3.2vw, 2.55rem) !important;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.hx-catalog__main ul.products {
  gap: clamp(1.25rem, 3vw, 2.5rem) !important;
}

.hx-product {
  position: relative;
}

.hx-product__media {
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: linear-gradient(145deg, #fbf8f3, var(--hami-stone));
  box-shadow: 0 12px 30px rgba(33, 27, 24, .05);
  transition: transform .45s var(--hami-ease), box-shadow .45s var(--hami-ease);
}

.hx-product:hover .hx-product__media,
.hx-product:focus-within .hx-product__media {
  transform: translateY(-5px);
  box-shadow: var(--hami-shadow-soft);
}

.hx-product__badge {
  border-radius: var(--hami-radius-sm);
  background: var(--hami-leather);
  color: #fff;
}

.hx-product__view {
  border-radius: var(--hami-radius-sm);
  background: var(--hami-espresso);
  color: #fff;
}

.hx-product__cat {
  color: var(--hami-leather);
  letter-spacing: .08em;
}

.hx-product__title { font-size: 1.02rem; }
.hx-product__price ins { color: var(--hami-leather); }

.single-product .hx-pdp-stage {
  gap: clamp(2rem, 5vw, 6rem);
  padding-block: clamp(2rem, 5vw, 5rem);
}

.single-product .woocommerce-product-gallery {
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: linear-gradient(145deg, #fbf8f3, var(--hami-stone));
  padding: clamp(.5rem, 2vw, 1.25rem);
  box-shadow: var(--hami-shadow-soft);
}

.single-product .woocommerce-product-gallery .flex-viewport {
  border-radius: var(--hami-radius-sm);
}

.single-product .woocommerce-product-gallery img {
  mix-blend-mode: multiply;
}

.single-product .flex-control-thumbs {
  gap: .65rem;
  margin-top: .8rem !important;
}

.single-product .flex-control-thumbs li {
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-sm);
  overflow: hidden;
  background: var(--hami-ivory);
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
  border-color: var(--hami-leather);
  opacity: 1;
}

.single-product .hx-pdp-stage .summary {
  top: 7rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-md);
  background: rgba(251, 248, 243, .88);
  box-shadow: var(--hami-shadow-soft);
}

.single-product .product_title {
  max-width: none;
  margin-bottom: .6rem;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important;
  line-height: 1.25;
  letter-spacing: -.03em;
}

.single-product .summary .price {
  color: var(--hami-leather);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  border-bottom: 1px solid var(--hami-line);
  padding-bottom: 1rem;
}

.single-product form.cart {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 0;
}

.single-product .variations select,
.single-product .quantity .qty {
  min-height: 3rem;
  border: 1px solid var(--hami-line);
  border-radius: var(--hami-radius-sm);
  background: #fff;
  font: inherit;
}

.single-product .variations select:focus,
.single-product .quantity .qty:focus {
  border-color: var(--hami-leather);
  outline: 2px solid rgba(134, 87, 56, .2);
  outline-offset: 2px;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  min-height: 3.25rem;
  border: 0;
  border-radius: var(--hami-radius-sm);
  background: var(--hami-espresso);
  box-shadow: 0 12px 24px rgba(33, 27, 24, .14);
  transition: transform .3s var(--hami-ease), background .3s ease;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:focus-visible {
  background: var(--hami-leather);
  transform: translateY(-2px);
}

.single-product .woocommerce-tabs {
  max-width: 58rem;
  margin-inline: auto;
  padding-block: 2rem 3rem;
}

@media (max-width: 899px) {
  .single-product .hx-pdp-stage { padding-block: 1.25rem 3rem; }
  .single-product .hx-pdp-stage .summary { position: static; }
  .single-product .product_title { max-width: 14ch; }
}

@media (max-width: 560px) {
  .hx-catalog__main ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 1rem !important; }
  .hx-product__title { font-size: .9rem; }
  .hx-product__view { font-size: .72rem; min-height: 2.2rem; }
  .single-product .woocommerce-product-gallery { padding: .45rem; }
  .single-product .hx-pdp-stage .summary { padding: 1rem; }
}

.hx-chip {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 0;
  box-shadow: 0 12px 32px rgba(26, 26, 26, 0.08);
}

.hx-chip__kicker,
.hx-chip__price {
  color: #6b6966;
}

.hx-scroll {
  color: #6b6966;
}

/* Facts, tiles, cards */
.hx-glassbar ul {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.hx-glassbar li {
  background: #f6f5f3;
  border-radius: 0;
}

.hx-glassbar strong {
  color: #1a1a1a;
}

.hx-marquee {
  background: #fff;
  color: #1a1a1a;
  border-block: 1px solid rgba(26, 26, 26, 0.08);
}

.hx-tile,
.hx-card,
.hx-trust li {
  border-radius: 0;
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  box-shadow: none;
}

.hx-card__badge {
  background: #1a1a1a;
  color: #fff;
  border-radius: 0;
}

.hx-steps li {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 0;
}

.hx-film {
  color: #fff;
}

.hx-close__inner {
  background: #fff;
  color: #1a1a1a;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 0;
}

.hx-close .hx-btn--ghost {
  background: transparent;
}

/* Footer — night atelier (overrides pale cascade). */
.hami-footer {
  background:
    radial-gradient(70% 50% at 80% 0%, rgba(140, 90, 52, 0.18), transparent 55%),
    #14110e;
  color: #f6f1e8;
  border-top: 0;
  overflow: hidden;
}

.hx-foot__tag,
.hx-foot__note,
.hx-foot__bar {
  color: rgba(246, 241, 232, 0.62);
  border-color: rgba(246, 241, 232, 0.12);
}

.hx-foot h2,
.hx-foot__host,
.hx-foot__list a:hover {
  color: #f6f1e8;
}

.hx-foot__giant {
  color: rgba(246, 241, 232, 0.06);
  -webkit-text-stroke: 0;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 0.85;
  overflow: hidden;
}

/* Shop and product */
.hx-crumb,
.hx-shop-lead,
.hx-product__cat {
  color: #6b6966;
}

.hx-crumb__sep {
  color: #c8c6c2;
}

.hx-filters,
.woocommerce ul.products li.product,
.hx-pdp-stage,
.single-product .woocommerce-tabs,
#review_form_wrapper,
.hx-shop-note,
.hami-account-in .woocommerce-MyAccount-content,
.hami-account-in .woocommerce-MyAccount-navigation {
  background: #fff;
  border-color: rgba(26, 26, 26, 0.08);
  border-radius: 0;
  box-shadow: none;
}

.woocommerce ul.products li.product a img,
.single-product .woocommerce-product-gallery,
.single-product .flex-viewport,
.hx-product__media {
  border-radius: 0;
  background: #f3f2f0;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.hx-filters__apply,
.hx-pill.is-on {
  background: #1a1a1a;
  color: #fff;
  border: 1px solid #1a1a1a;
  border-radius: 0;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover {
  background: #333;
  color: #fff;
}

.hx-pill,
.single-product .quantity .qty,
.woocommerce-ordering select,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  border-radius: 0;
  border-color: rgba(26, 26, 26, 0.16);
  background: #fff;
  color: #1a1a1a;
}

.single-product .product_title,
.hami-main--shop .page-title,
.woocommerce .woocommerce-products-header__title {
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.single-product .summary .price,
.hx-product__price ins,
.woocommerce ul.products li.product .price ins {
  color: #1a1a1a;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

/* Gate contrast restored in Account v2 block below — keep mark readable if commerce loads alone. */
.hx-gate__mark {
  background: #14110e;
  color: #f6f1e8;
}

.hami-account-in .woocommerce-MyAccount-navigation .is-active a,
.hami-account-in .woocommerce-MyAccount-navigation a:hover {
  background: #1a1a1a;
  color: #fff;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: #1a1a1a;
  background: #fff;
}

.woocommerce-error {
  background: #fff;
}

@media (max-width: 959px) {
  .hami-nav,
  .hami-nav.is-open {
    background: #fff;
    color: #1a1a1a;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
  }
}

.hami-nav-toggle {
  border-color: rgba(26, 26, 26, 0.2);
}

.hami-nav-toggle span[aria-hidden="true"],
.hami-nav-toggle span[aria-hidden="true"]::before,
.hami-nav-toggle span[aria-hidden="true"]::after {
  background: #1a1a1a;
}

.hx-search button {
  background: #1a1a1a;
  color: #fff;
}

.hx-rail {
  border-top: 1px solid rgba(26, 26, 26, 0.06);
  background: #fff;
}

.hx-rail__row {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-block: 0.55rem 0.7rem;
  scrollbar-width: none;
}

.hx-rail__row::-webkit-scrollbar {
  display: none;
}

.hx-rail a {
  flex: 0 0 auto;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: #3f3d3a;
  padding: 0.35rem 0.75rem;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.hx-rail a:hover,
.hx-rail a:focus-visible,
.hx-rail__all {
  border-color: #1a1a1a;
  background: #1a1a1a;
  color: #fff;
  outline: none;
}

.hx-foot__trust {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  width: min(100% - 2.5rem, 1280px);
  margin: 0 auto;
  padding: 1.4rem 0 0;
}

.hx-foot__trust li {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  background: #f6f5f3;
  border: 1px solid rgba(26, 26, 26, 0.06);
}

.hx-foot__trust strong {
  font-size: 0.95rem;
}

.hx-foot__trust span {
  color: #6b6966;
  font-size: 0.82rem;
}

@media (min-width: 800px) {
  .hx-foot__trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.hx-product {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

.hx-product:hover,
.hx-product:focus-within {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(26, 26, 26, 0.08);
}

.hx-product__media img,
.woocommerce ul.products li.product .hx-product__media img {
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hx-product:hover .hx-product__media img,
.hx-product:focus-within .hx-product__media img {
  transform: scale(1.04);
}

.hx-card,
.hx-tile,
.hx-steps li,
.hx-trust li {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.hx-card:hover,
.hx-tile:hover,
.hx-steps li:hover,
.hx-trust li:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 26, 26, 0.07);
}

.hx-shop-bar {
  background: #fff;
  border: 1px solid rgba(26, 26, 26, 0.08);
  padding: 0.65rem 0.9rem;
}

.hx-shop-note {
  margin-top: 2.5rem;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background:
    linear-gradient(135deg, #fff, #f6f5f3);
}

@media (prefers-reduced-motion: reduce) {
  .hx-product,
  .hx-card,
  .hx-tile,
  .hx-steps li,
  .hx-trust li,
  .hx-product__media img {
    transition: none;
    transform: none;
  }
}

/* Depth: warm stone, leather accent, one dark band */

body.hami-theme {
  background:
    radial-gradient(900px 420px at 100% -8%, rgba(140, 90, 52, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 20%, rgba(28, 25, 23, 0.05), transparent 50%),
    #f3efe8;
  color: #1c1917;
}

.hx-kicker,
.hx-hero__kicker span,
.hx-steps span,
.hx-pdp__kicker {
  color: #8c5a34;
}

.hx-hero {
  background:
    radial-gradient(640px 320px at 80% 10%, rgba(140, 90, 52, 0.14), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f3efe8 100%);
}

.hx-hero__title .is-copper,
html.hx-on .hx-hero__title span.is-copper {
  color: #8c5a34;
  -webkit-text-fill-color: #8c5a34;
}

.hx-hero__figure {
  border-radius: 1.4rem;
  box-shadow: 0 28px 60px rgba(28, 25, 23, 0.16);
}

.hx-btn {
  border-radius: 999px;
  background: #1c1917;
}

.hx-btn--ghost {
  border-radius: 999px;
  background: #fff;
}

.hx-marquee,
.hx-marquee--echo {
  direction: ltr;
  overflow: hidden;
  background: #1c1917;
  color: #f6f1e8;
  border: 0;
  isolation: isolate;
}

.hx-marquee span,
.hx-marquee--echo span {
  color: #f6f1e8;
  opacity: 1;
}

.hx-marquee span::before {
  color: #e0b07a;
}

.hx-glassbar ul,
.hx-glassbar li,
.hx-trust li,
.hx-card,
.hx-tile,
.hx-foot__trust li {
  background: #fff;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 1.15rem;
  box-shadow: 0 14px 34px rgba(28, 25, 23, 0.06);
}

.hx-craft {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(140, 90, 52, 0.12), transparent 60%),
    #f7f3ed;
  color: #1c1917;
}

.hx-steps li {
  background: #fff;
  color: #1c1917;
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: 1.15rem;
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.05);
}

.hx-steps h3,
.hx-steps li {
  color: #1c1917;
}

.hx-steps p {
  color: #5c5348;
}

.hx-steps span {
  color: #8c5a34;
}

.hx-close__inner {
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(224, 176, 122, 0.35), transparent 62%),
    #1c1917;
  color: #faf7f2;
  border: 0;
  border-radius: 1.4rem;
  box-shadow: 0 24px 50px rgba(28, 25, 23, 0.18);
}

.hx-close__inner .hx-kicker,
.hx-close__inner h2,
.hx-close__inner p {
  color: #faf7f2;
}

.hx-close__inner .hx-btn--ghost {
  background: transparent;
  color: #faf7f2;
  border-color: rgba(250, 247, 242, 0.45);
}

/* Footer night look is owned by the elevation block at file end. */
.hx-foot__giant {
  color: rgba(246, 241, 232, 0.06);
}

/* Header chrome */

.hx-ribbon {
  background: linear-gradient(90deg, #1c1917 0%, #3a2a22 50%, #1c1917 100%);
  background-size: 200% 100%;
  animation: hx-ribbon-sheen 8s ease-in-out infinite;
}

.hx-ribbon p {
  color: #f6efe6;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

@keyframes hx-ribbon-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hami-header,
.home .hami-header:not(.is-scrolled),
.hami-header.is-scrolled,
.home .hami-header.is-scrolled {
  background: rgba(255, 252, 248, 0.9);
  border-bottom: 1px solid rgba(140, 90, 52, 0.12);
  box-shadow: 0 10px 30px rgba(28, 25, 23, 0.05);
}

.hami-header__inner {
  min-height: 4.6rem;
}

.hami-logo__mark {
  width: 2.45rem;
  height: 2.45rem;
  border: 0;
  border-radius: 0.7rem;
  background: #1c1917;
  color: #f6efe6;
  box-shadow: 0 8px 18px rgba(28, 25, 23, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hami-logo:hover .hami-logo__mark {
  transform: translateY(-2px) rotate(-6deg);
}

.hami-logo__words strong {
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}

.hami-logo__words small {
  color: #8c5a34;
}

.hami-nav__list {
  gap: 0.35rem;
}

.hami-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 2.3rem;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-weight: 650;
  transition: background 0.25s ease, color 0.25s ease;
}

.hami-nav__list > li > a::after {
  bottom: 0.35rem;
  inset-inline: 0.75rem;
  height: 2px;
  border-radius: 99px;
  background: #8c5a34;
}

.hami-nav__list > li > a:hover,
.hami-nav__list > li.current-menu-item > a,
.hami-nav__list > li.current_page_item > a {
  background: #f6efe6;
  color: #1c1917;
}

.hx-search {
  background: #fff;
  border: 1px solid rgba(140, 90, 52, 0.22);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(28, 25, 23, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hx-search:focus-within {
  border-color: #8c5a34;
  box-shadow: 0 0 0 4px rgba(140, 90, 52, 0.12);
}

.hx-search button,
.hx-icon {
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hx-search button {
  background: #1c1917;
  color: #fff;
}

.hx-icon:hover,
.hx-icon:focus-visible {
  background: #f6efe6;
  transform: translateY(-1px);
}

.hx-icon--shop {
  border-radius: 999px;
  padding-inline: 1rem;
  background: #1c1917;
  box-shadow: 0 8px 18px rgba(28, 25, 23, 0.16);
}

.hx-icon--shop:hover,
.hx-icon--shop:focus-visible {
  background: #8c5a34;
  color: #fff;
  transform: translateY(-1px);
}

.hx-rail {
  background: transparent;
  border-top: 0;
}

.hx-rail__row {
  padding-block: 0.15rem 0.85rem;
}

.hx-rail a {
  border-radius: 999px;
  border: 1px solid rgba(28, 25, 23, 0.08);
  background: #fff;
  color: #3f3a36;
  box-shadow: 0 6px 16px rgba(28, 25, 23, 0.04);
}

.hx-rail a:hover,
.hx-rail a:focus-visible,
.hx-rail__all {
  background: #1c1917;
  border-color: #1c1917;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .hx-ribbon,
  .hami-logo__mark,
  .hx-icon,
  .hx-icon--shop {
    animation: none;
    transition: none;
  }
}

/* Marquee must not sit on the fact cards */
.hx-marquee--echo {
  display: none;
}

.hx-glassbar {
  margin-top: 1.5rem;
  padding-top: 0;
  position: relative;
  z-index: 1;
}

/* Shop — Digikala-grade RTL catalog (filters physical-right) */
.hami-main--shop {
  padding-top: 1.15rem;
  padding-bottom: 4rem;
  background:
    radial-gradient(ellipse 70% 28% at 100% 0%, rgba(134, 87, 56, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 22% at 0% 8%, rgba(33, 27, 24, 0.04), transparent 50%),
    #f6f1e8;
}

.hami-main--shop .woocommerce-products-header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.hami-main--shop .page-title,
.woocommerce .woocommerce-products-header__title {
  max-width: none !important;
  margin: 0 !important;
  font-size: clamp(1.85rem, 3vw, 2.45rem) !important;
  font-weight: 800;
  line-height: 1.2 !important;
  letter-spacing: -0.03em !important;
  color: var(--hami-espresso);
}

.hx-shop-lead {
  max-width: 36rem;
  margin: 0.35rem 0 0;
  color: #5c5348;
  font-size: 0.98rem;
  line-height: 1.7;
}

.hx-shop-trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hx-shop-trust li {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(33, 27, 24, 0.07);
}

.hx-shop-trust strong {
  color: var(--hami-espresso);
  font-size: 0.84rem;
  font-weight: 800;
}

.hx-shop-trust span {
  color: #6b6560;
  font-size: 0.74rem;
  font-weight: 600;
}

@media (min-width: 720px) {
  .hx-shop-trust {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

.hx-catalog {
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (min-width: 960px) {
  .hx-catalog {
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) 18rem !important;
    gap: 1.5rem 1.85rem;
  }

  .hx-catalog__main {
    direction: rtl;
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-width: 0;
  }

  .hx-filters {
    direction: rtl;
    grid-column: 2 !important;
    grid-row: 1 !important;
  }
}

.hx-filters {
  padding: 1.15rem 1.1rem 1.2rem;
  border-radius: 1.15rem;
  background: #fff !important;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 42px rgba(33, 27, 24, 0.06);
}

.hx-filters .hami-filter-form,
.hx-filters .hx-filters__form {
  display: grid !important;
  width: 100% !important;
  gap: 1rem !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}

.hx-filters .hx-filter {
  width: 100% !important;
  min-width: 0 !important;
  margin: 0;
}

.hx-filters__summary {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0.1rem;
  color: var(--hami-espresso);
  font-weight: 800;
  font-size: 1rem;
}

.hx-filters__summary-hint {
  color: #78716c;
  font-size: 0.78rem;
  font-weight: 600;
}

.hx-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-filters__head h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--hami-espresso);
}

.hx-filters__clear {
  color: var(--hami-leather);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.hx-filter legend {
  color: var(--hami-espresso);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hx-filter__list--size {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.4rem !important;
  width: 100%;
}

.hx-filter__list--size > li {
  min-width: 0;
  width: 100%;
}

.hx-filter__list--size .hami-chip {
  display: grid !important;
  place-items: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 2.65rem !important;
  aspect-ratio: 1;
  padding: 0 !important;
  border-radius: 999px !important;
  font-weight: 800;
  font-size: 0.9rem;
}

.hx-filter__list--color {
  display: grid !important;
  gap: 0.4rem !important;
  width: 100%;
}

.hx-filter__list--color > li {
  width: 100%;
}

.hx-filter__list--color .hami-chip {
  width: 100% !important;
  justify-content: flex-start;
  min-height: 2.55rem;
  padding-inline: 0.75rem !important;
}

.hx-filter .hami-chip,
.hx-pill {
  position: relative;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.12);
  background: #fff;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hx-filter .hami-chip input {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  margin: 0;
  opacity: 0 !important;
  cursor: pointer;
  pointer-events: auto;
}

.hx-filter .hami-chip:hover,
.hx-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 27, 24, 0.28);
}

.hx-filter__list--size .hami-chip.is-active,
.hx-filter__list--size .hami-chip:has(input:checked) {
  background: var(--hami-espresso) !important;
  border-color: var(--hami-espresso) !important;
  color: #f6f1e8 !important;
  box-shadow: 0 8px 18px rgba(33, 27, 24, 0.18);
}

.hami-swatch.is-active,
.hami-swatch:has(input:checked) {
  border-color: var(--hami-espresso) !important;
  box-shadow: inset 0 0 0 1.5px var(--hami-espresso);
  background: #fff !important;
  color: var(--hami-espresso) !important;
}

.hx-price {
  width: 100%;
}

.hx-price input {
  border-radius: 0.75rem;
  border-color: rgba(33, 27, 24, 0.12);
  font-weight: 700;
}

.hx-filters__apply {
  min-height: 2.85rem;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 0.85rem !important;
  background: var(--hami-espresso) !important;
  color: #f6f1e8 !important;
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 28px rgba(33, 27, 24, 0.18);
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.hx-filters__apply:hover {
  background: #2c241f !important;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(33, 27, 24, 0.22);
}

.hx-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  padding: 0.55rem 0.7rem 0.55rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 10px 28px rgba(33, 27, 24, 0.04);
  backdrop-filter: blur(10px);
}

.woocommerce .woocommerce-result-count {
  color: #6b6560;
  font-size: 0.86rem;
  font-weight: 600;
}

.woocommerce-ordering select {
  border-radius: 999px !important;
  border-color: rgba(33, 27, 24, 0.12) !important;
  background-color: #fff !important;
  font-weight: 700;
  min-height: 2.45rem;
}

.hx-catalog__main ul.products {
  gap: 1rem 0.85rem !important;
}

@media (min-width: 720px) {
  .hx-catalog__main ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1400px) {
  .hx-catalog__main ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

.woocommerce ul.products li.product,
.woocommerce ul.products li.product.hx-product,
.hx-product {
  border-radius: 1.15rem !important;
  overflow: hidden;
  background: #fff !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  box-shadow: 0 14px 32px rgba(33, 27, 24, 0.055) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.woocommerce ul.products li.product:hover,
.hx-product:hover,
.hx-product:focus-within {
  transform: translateY(-5px);
  border-color: rgba(33, 27, 24, 0.14) !important;
  box-shadow: 0 24px 48px rgba(33, 27, 24, 0.11) !important;
}

.hx-product__media {
  background: linear-gradient(165deg, #fcfaf7 0%, #efe7dc 100%) !important;
  border-radius: 0 !important;
}

.woocommerce ul.products li.product .hx-product__media img,
.hx-product__media img {
  background: transparent !important;
  padding: 0.85rem !important;
  object-fit: contain !important;
}

.hx-product__link {
  gap: 0;
}

.hx-product__body {
  padding: 0.9rem 1rem 1.1rem !important;
  gap: 0.22rem !important;
  background: #fff;
}

.hx-product__cat {
  color: var(--hami-leather) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hx-product__title {
  min-height: 0 !important;
  margin: 0 !important;
  font-size: 0.98rem !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4 !important;
  color: var(--hami-espresso) !important;
}

.hx-product__meta {
  color: #78716c;
  font-size: 0.74rem;
  font-weight: 600;
}

.hx-product__price,
.hx-product__price .amount,
.woocommerce ul.products li.product .price {
  margin-top: 0.3rem !important;
  color: var(--hami-espresso) !important;
  font-weight: 800 !important;
  font-size: 1rem !important;
}

.hx-product__view {
  border-radius: 999px !important;
  background: rgba(33, 27, 24, 0.94) !important;
  color: #f6f1e8 !important;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.hx-shop-note {
  margin-top: 2.5rem;
  padding: 1.6rem 1.5rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 16px 36px rgba(33, 27, 24, 0.05);
}

.hx-shop-note h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  color: var(--hami-espresso);
}

.hx-shop-note p {
  margin: 0 0 0.65rem;
  color: #5c5348;
  line-height: 1.85;
  font-size: 0.95rem;
}

.hx-shop-note p:last-child {
  margin-bottom: 0;
}

@media (max-width: 959px) {
  .hx-catalog {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  /* Products first on mobile; filters below as refinement. */
  .hx-catalog__main {
    order: 1;
  }

  .hx-filters {
    order: 2;
    padding: 0.85rem 0.95rem 1rem;
  }

  .hx-filters__summary {
    display: flex;
  }

  .hx-filters__head {
    display: none;
  }

  .hx-filters__panel:not([open]) .hx-filters__body {
    display: none;
  }

  .hx-filter__list--size {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  }

  .hx-shop-bar {
    border-radius: 1rem;
    flex-wrap: wrap;
  }

  .hx-catalog__main ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.75rem !important;
  }

  .hx-product__view {
    opacity: 1 !important;
    transform: none !important;
    inset-inline: 0.55rem;
    bottom: 0.55rem;
    min-height: 2.2rem;
    font-size: 0.75rem;
  }
}

/* Account dashboard */
.hami-account-in .hami-main {
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hami-account-in .hami-entry__title,
.hami-account-in .woocommerce-account .entry-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 1.2rem;
}

.woocommerce-account .woocommerce,
.hami-account-in .woocommerce {
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 1.15rem;
  width: 100%;
}

@media (min-width: 860px) {
  .woocommerce-account .woocommerce,
  .hami-account-in .woocommerce {
    flex-direction: row;
    align-items: flex-start;
  }
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.hami-account-in .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  flex: 0 0 auto;
  padding: 0.7rem;
  background: #1c1917 !important;
  border-radius: 1.25rem;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.16);
}

@media (min-width: 860px) {
  .woocommerce-account .woocommerce-MyAccount-navigation,
  .hami-account-in .woocommerce-MyAccount-navigation {
    width: 16rem !important;
    flex: 0 0 16rem;
    position: sticky;
    top: 7.5rem;
  }
}

.woocommerce-account .woocommerce-MyAccount-content,
.hami-account-in .woocommerce-MyAccount-content {
  float: none !important;
  width: auto !important;
  max-width: none !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
}

.hami-account-in .woocommerce-MyAccount-navigation ul {
  flex-direction: column;
  gap: 0.25rem;
}

.hami-account-in .woocommerce-MyAccount-navigation a {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 0.8rem;
  background: transparent;
  color: #f6efe6;
  min-height: 2.6rem;
}

.hami-account-in .woocommerce-MyAccount-navigation a:hover,
.hami-account-in .woocommerce-MyAccount-navigation .is-active a {
  background: #8c5a34;
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-content,
.hami-account-in .woocommerce-MyAccount-content {
  border-radius: 1.35rem;
  border: 1px solid rgba(140, 90, 52, 0.12);
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.06);
  background:
    radial-gradient(420px 160px at 100% 0%, rgba(140, 90, 52, 0.1), transparent 60%),
    #fff !important;
  padding: clamp(1.2rem, 2.5vw, 2rem);
  line-height: 1.9;
  color: #1c1917;
}

.woocommerce-account .woocommerce-MyAccount-content a {
  color: #8c5a34;
  font-weight: 700;
}

/* Shoe rail */
.hx-srail {
  margin-top: 1.5rem;
  padding: 1.2rem 0 0.4rem;
  border-radius: 1.6rem;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(140, 90, 52, 0.12), transparent 70%),
    #f7f3ed;
  overflow: hidden;
}

.hx-srail__hint {
  margin: 0;
  text-align: center;
  color: #8c5a34;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hx-srail__stage {
  position: relative;
  margin-top: 0.2rem;
  padding: 0 1rem 0.6rem;
  overflow: hidden;
}

.hx-srail__list {
  list-style: none;
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 1.6rem 0.6rem 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

.hx-srail__shoe {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-height: 15rem;
  padding-top: 0;
  margin-top: 0.15rem;
  text-decoration: none;
  color: inherit;
  transform-origin: 50% 0;
}

.hx-srail__bar {
  position: absolute;
  top: 18px;
  inset-inline: 1.4rem;
  height: 7px;
  border-radius: 99px;
  background:
    linear-gradient(#f3efe8, #c8b8a4 18%, #8c5a34 46%, #3a2a1e 78%, #1c1917);
  box-shadow: 0 10px 18px rgba(28, 25, 23, 0.16);
  z-index: 2;
}

.hx-srail__bar::before,
.hx-srail__bar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 22px;
  border-radius: 3px;
  transform: translateY(-50%);
  background: linear-gradient(#d9cbb8, #6e543c);
}

.hx-srail__bar::before { inset-inline-start: -2px; }
.hx-srail__bar::after { inset-inline-end: -2px; }

.hx-srail__cord {
  align-self: start;
  width: 8px;
  height: calc(0.85rem + var(--drop, 0px));
  margin-bottom: -1px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #4a3424, #8c5a34 40%, #2a1c14);
  transform-origin: top center;
}

.hx-srail__list li {
  flex: 1 0 8.5rem;
  scroll-snap-align: center;
}

.hx-srail__swing::after {
  content: "";
  width: 62%;
  height: 0.7rem;
  margin-top: -0.2rem;
  border-radius: 50%;
  background: rgba(28, 25, 23, 0.2);
  filter: blur(2px);
}

.hx-srail__tag small {
  display: block;
  font-weight: 600;
  color: #8c5a34;
}

.hx-srail__scope {
  margin: 0.35rem 0 0;
  text-align: center;
  color: #5c5348;
  font-size: 0.82rem;
}

.hx-srail__list li {
  flex: 1 0 8.5rem;
  scroll-snap-align: center;
}

.hx-srail__shoe {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  min-height: 15.2rem;
  padding-top: 0;
  text-decoration: none;
  color: inherit;
  transform-origin: 50% 0;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.hx-srail__swing {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  transform-origin: 50% 0;
}

.hx-srail__shoe.is-front .hx-srail__swing {
  animation: hx-srail-swing 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes hx-srail-swing {
  0% { transform: rotate(0deg); }
  35% { transform: rotate(-4.5deg); }
  68% { transform: rotate(2.4deg); }
  100% { transform: rotate(0deg); }
}

.hx-srail__photo {
  display: grid;
  place-items: end center;
  width: 100%;
  height: 12.5rem;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.hx-srail__photo img {
  width: 84%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  background: transparent;
  mix-blend-mode: multiply;
  transform: translateY(4px);
  transform-origin: center bottom;
  transition: transform 0.65s cubic-bezier(0.22, 0.85, 0.3, 1);
}

.hx-srail__shoe.is-front .hx-srail__photo img,
.hx-srail__shoe:hover .hx-srail__photo img,
.hx-srail__shoe:focus-visible .hx-srail__photo img {
  transform: translateY(-8px);
}

.hx-srail__shoe.is-front .hx-srail__swing::after,
.hx-srail__shoe:hover .hx-srail__swing::after {
  transform: scaleX(1.2);
  opacity: 0.85;
}

.hx-srail__swing::after {
  transition: transform 0.65s cubic-bezier(0.22, 0.85, 0.3, 1), opacity 0.65s;
}

@media (prefers-reduced-motion: reduce) {
  .hx-srail__photo img,
  .hx-srail__swing::after {
    transform: none;
    width: 100%;
    transition: none;
  }
}

.hx-srail.is-still .hx-srail__photo img,
.hx-srail.is-still .hx-srail__swing,
.hx-srail.is-still .hx-srail__swing::after {
  animation: none;
  transform: none;
  width: 100%;
}

.hx-srail__photo--top img { object-position: center top; }
.hx-srail__photo--bottom img { object-position: center bottom; }

.hx-srail__shoe {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
}

.hx-srail__badge {
  position: absolute;
  top: auto;
  bottom: 2.2rem;
  inset-inline-start: 0.45rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  background: #8c5a34;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.hx-srail__shoe.is-sale .hx-srail__tag { color: #8c5a34; }

.hx-deals {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-deals__item {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 1.35rem;
  background: #fff;
  color: #1c1917;
  border: 1px solid #eadfce;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.06);
}

.hx-deals__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.85rem -0.85rem 0;
  padding: 0.9rem 1rem;
  border-radius: 1.35rem 1.35rem 0 0;
  background: #1c1917;
  color: #f6f1e8;
}

.hx-deals__shoes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.2rem, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-deals__empty {
  color: #5c5348;
  font-size: 0.85rem;
}

.hx-deals__shoes a {
  display: grid;
  gap: 0.25rem;
  min-height: 100%;
  padding: 0.5rem;
  border-radius: 0.95rem;
  background: #f7f3ed;
  color: #1c1917;
  text-decoration: none;
  position: relative;
}

.hx-deals__shoes img {
  width: 100%;
  height: 6.2rem;
  object-fit: contain;
  background: #f7f3ed;
  border-radius: 0.6rem;
}

.hx-deals__shoes span,
.hx-deals__shoes em {
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
}

.hx-deals__shoes b {
  position: absolute;
  top: 0.7rem;
  inset-inline-start: 0.7rem;
  padding: 0.1rem 0.35rem;
  border-radius: 0.4rem;
  background: #b42318;
  color: #fff;
  font-size: 0.75rem;
}

.hx-deals__head strong { font-size: 1.05rem; }
.hx-deals__head span { display: block; color: rgba(246, 241, 232, 0.72); font-size: 0.78rem; }
.hx-deals__clock {
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border-radius: 0.8rem;
  background: #fff;
  color: #1c1917;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.hx-deals__item--friday .hx-deals__head { background: #6b2b1a; }
.hx-deals__item--daily .hx-deals__head { background: #8c5a34; }
.hx-deals__item--weekend .hx-deals__head { background: #1c1917; }

.hx-srail__off {
  position: absolute;
  top: auto;
  bottom: 2.2rem;
  inset-inline-start: 0.45rem;
  z-index: 2;
  padding: 0.15rem 0.4rem;
  border-radius: 0.45rem;
  background: #b42318;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.hx-sheet {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  align-items: center;
  margin: 0.4rem 1rem 1rem;
  padding: 0.8rem;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 25, 23, 0.12);
}

.hx-sheet[hidden] { display: none; }

.hx-sheet__img {
  width: 9rem;
  height: 9rem;
  object-fit: contain;
  border-radius: 0.9rem;
  background: #efe8df;
}

.hx-sheet__kicker { margin: 0; color: #8c5a34; font-size: 0.75rem; font-weight: 800; }
.hx-sheet h3 { margin: 0.15rem 0; font-size: 1.15rem; }
.hx-sheet p { margin: 0.2rem 0; color: #5c5348; }
.hx-sheet__price { font-weight: 800; color: #1c1917; }
.hx-sheet__price s { margin-inline-start: 0.4rem; color: #8a8178; font-weight: 500; }
.hx-sheet__go {
  display: inline-flex;
  margin-top: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 99px;
  background: #1c1917;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.hx-sheet__close {
  justify-self: end;
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  color: #8c5a34;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hx-journal__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-journal__list a {
  display: grid;
  gap: 0.35rem;
  min-height: 100%;
  padding: 0.7rem;
  border-radius: 1.2rem;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(28, 25, 23, 0.06);
}

.hx-journal__list img {
  width: 100%;
  height: 11rem;
  object-fit: cover;
  border-radius: 0.9rem;
}

.hx-journal__list time { color: #8c5a34; font-size: 0.75rem; font-weight: 700; }
.hx-journal__list h3 { margin: 0; font-size: 1.05rem; }
.hx-journal__list p { margin: 0; color: #5c5348; }

.hx-srail__find {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 0.6rem 0 0;
  color: #5c5348;
  font-size: 0.85rem;
  font-weight: 700;
}

.hx-srail__find input {
  width: min(16rem, 70vw);
  border: 0;
  border-radius: 99px;
  padding: 0.35rem 0.8rem;
  background: #fff;
}

.hx-sheet__sizes { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.4rem 0; }
.hx-size, .hx-sheet__add {
  border: 0;
  border-radius: 99px;
  padding: 0.3rem 0.7rem;
  background: #f3efe8;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.hx-size.is-on, .hx-sheet__add { background: #1c1917; color: #fff; }
.hx-size:disabled { opacity: 0.4; cursor: not-allowed; }
.hx-srail__shoe.is-owned .hx-srail__photo { outline: 2px solid #8c5a34; }
.hx-compare { margin: 0.4rem 1rem 1rem; }
.hx-compare__grid { display: grid; gap: 0.35rem; }
.hx-compare__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.hx-compare__row p { margin: 0; padding: 0.45rem 0.6rem; border-radius: 0.7rem; background: #fff; font-weight: 700; }
.hx-sheet__compare { border: 0; background: transparent; color: #8c5a34; font: inherit; font-weight: 800; cursor: pointer; }

@media (max-width: 800px) {
  .hx-sheet,
  .hx-journal__list { grid-template-columns: 1fr; }
  .hx-sheet__close { position: sticky; bottom: 0.4rem; }
}

.hx-srail__tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: #5c5348;
}

.hx-srail__shoe.is-front {
  transform: translateY(-14px);
  z-index: 3;
}

.hx-srail__shoe.is-front .hx-srail__photo {
  transform: scale(1.08);
  box-shadow:
    0 0 0 1px rgba(140, 90, 52, 0.35),
    0 28px 48px rgba(28, 25, 23, 0.2);
}

.hx-srail__shoe.is-front .hx-srail__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 244, 220, 0.55), transparent 55%);
  pointer-events: none;
}

.hx-srail__photo {
  position: relative;
}

.hx-srail__caption {
  min-height: 1.6rem;
  margin: 0.2rem 1rem 0.8rem;
  text-align: center;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .hx-srail__shoe,
  .hx-srail__photo,
  .hx-srail__swing {
    transition: none;
    animation: none;
  }
}

/* Collection rail — floating product, no photo frame, no name/price card. */
#hx-collection .hx-srail {
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding-top: .4rem;
}
#hx-collection .hx-srail__stage {
  padding-inline: 0;
  overflow: visible;
  padding-top: .35rem;
}
#hx-collection .hx-srail__list {
  justify-content: center;
  align-items: end;
  gap: clamp(1.1rem, 2.8vw, 2.6rem);
  padding: 1.1rem 0 .35rem;
  overflow: visible;
  scroll-snap-type: none;
}
#hx-collection .hx-srail__list li {
  flex: 1 1 0;
  min-width: 0;
  max-width: 18rem;
}
#hx-collection .hx-srail__list li[hidden] { display: none !important; }
#hx-collection .hx-srail__shoe {
  min-height: 21rem;
  padding-inline: .15rem;
  border: 0 !important;
  background: transparent !important;
  transform: translateY(0) !important;
  gap: .2rem;
}
#hx-collection .hx-srail__shoe::before { display: none !important; }
#hx-collection .hx-srail__shoe.is-owned .hx-srail__photo {
  outline: none;
}
#hx-collection .hx-srail__shoe.is-owned .hx-srail__name::after {
  content: " · مال شما";
  color: #8c5a34;
  font-size: .62rem;
  font-weight: 700;
}
#hx-collection .hx-srail__cord {
  height: calc(.55rem + var(--drop, 14px));
}
#hx-collection .hx-srail__swing {
  width: 100%;
  gap: .15rem;
  transition: transform .55s var(--hami-ease);
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__swing,
#hx-collection .hx-srail__shoe:hover .hx-srail__swing,
#hx-collection .hx-srail__shoe:focus-visible .hx-srail__swing {
  transform: translateY(-.28rem);
  animation: none;
}
#hx-collection .hx-srail__photo {
  position: relative;
  width: 100%;
  height: 14.5rem;
  margin: 0;
  padding: 0;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  place-items: end center;
}
#hx-collection .hx-srail__photo img {
  width: 100% !important;
  max-width: 100%;
  height: 100% !important;
  max-height: 14.5rem;
  object-fit: contain !important;
  object-position: center bottom !important;
  clip-path: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  mix-blend-mode: normal !important;
  filter: drop-shadow(0 10px 14px rgba(28, 25, 23, 0.12));
  transform: translateY(0) scale(1) !important;
  transform-origin: center bottom;
  transition: transform .55s var(--hami-ease), filter .55s;
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__photo,
#hx-collection .hx-srail__shoe:hover .hx-srail__photo,
#hx-collection .hx-srail__shoe:focus-visible .hx-srail__photo {
  transform: none !important;
  box-shadow: none !important;
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__photo::after,
#hx-collection .hx-srail__shoe:hover .hx-srail__photo::after {
  display: none !important;
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__photo img,
#hx-collection .hx-srail__shoe:hover .hx-srail__photo img,
#hx-collection .hx-srail__shoe:focus-visible .hx-srail__photo img {
  transform: translateY(-.18rem) scale(1.035) !important;
  filter: drop-shadow(0 16px 18px rgba(28, 25, 23, 0.16));
}
#hx-collection .hx-srail__swing::after {
  width: 48%;
  height: .38rem;
  margin-top: .05rem;
  background: rgba(33, 27, 24, .2);
  filter: blur(3px);
  opacity: .75;
  transition: transform .55s var(--hami-ease), opacity .55s;
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__swing::after,
#hx-collection .hx-srail__shoe:hover .hx-srail__swing::after,
#hx-collection .hx-srail__shoe:focus-visible .hx-srail__swing::after {
  transform: scaleX(1.1);
  opacity: 1;
}
#hx-collection .hx-srail__badge,
#hx-collection .hx-srail__off {
  top: .15rem;
  bottom: auto;
  inset-inline-start: .1rem;
}
/* Name + price: typography only — no plaque / card. */
#hx-collection .hx-srail__tag {
  display: grid;
  gap: .1rem;
  width: 100%;
  min-width: 0;
  min-height: 0;
  margin: .35rem 0 0;
  padding: 0;
  border: 0;
  border-top: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: #2a221c;
  font-size: .8rem;
  line-height: 1.4;
  font-weight: 800;
  text-align: center;
  position: relative;
  z-index: 2;
}
#hx-collection .hx-srail__name {
  display: block;
  font-size: .82rem;
  font-weight: 800;
  color: #211b18;
  letter-spacing: -.01em;
}
#hx-collection .hx-srail__price {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  color: #3a2a1e;
  font-variant-numeric: tabular-nums;
}
#hx-collection .hx-srail__tag small {
  display: block;
  margin-top: 0;
  font-size: .66rem;
  font-weight: 600;
  color: #7a6e62;
}
#hx-collection .hx-srail__cta {
  display: none;
  margin-top: .2rem;
  color: #8c5a34;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: underline;
  text-underline-offset: .18em;
  background: none;
}
#hx-collection .hx-srail__shoe.is-front .hx-srail__cta,
#hx-collection .hx-srail__shoe:hover .hx-srail__cta,
#hx-collection .hx-srail__shoe:focus-visible .hx-srail__cta {
  display: block;
}
#hx-collection .hx-srail__bar {
  inset-inline: 4%;
  z-index: 1;
}
#hx-collection .hx-srail::after { content: none; display: none; }
#hx-collection .hx-srail__caption {
  color: rgba(33, 27, 24, .55);
  font-size: .72rem;
  letter-spacing: .03em;
  padding-top: .45rem;
  min-height: 1.4rem;
}
#hx-collection .hx-srail__guide--mob { display: none; }
#hx-collection .hx-srail__guide--desk:empty,
#hx-collection .hx-srail__guide--mob:empty { display: none !important; }

@media (max-width: 700px) {
  /* One large hero shoe at a time; JS keeps only 3 slides. */
  #hx-collection .hx-srail { overflow: visible; }
  #hx-collection .hx-srail__stage {
    padding-inline: 0;
    overflow: visible;
  }
  #hx-collection .hx-srail__list {
    justify-content: flex-start;
    align-items: end;
    gap: 1rem;
    padding: 1rem 6% 1.1rem;
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 6%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  #hx-collection .hx-srail__list::-webkit-scrollbar { display: none; }
  #hx-collection .hx-srail__list li {
    flex: 0 0 88%;
    max-width: none;
    min-width: 0;
    scroll-snap-align: center;
  }
  #hx-collection .hx-srail__list li[hidden] { display: none !important; }
  #hx-collection .hx-srail__shoe {
    min-height: 21rem;
    align-content: start;
    gap: .15rem;
    opacity: .55;
    transition: opacity .35s ease;
  }
  #hx-collection .hx-srail__shoe.is-front { opacity: 1; }
  #hx-collection .hx-srail__photo {
    height: 14.5rem;
    margin-bottom: .15rem;
  }
  #hx-collection .hx-srail__photo img {
    max-height: 14.5rem;
    transform: translateY(0) scale(1) !important;
  }
  #hx-collection .hx-srail__shoe.is-front .hx-srail__photo img,
  #hx-collection .hx-srail__shoe:hover .hx-srail__photo img,
  #hx-collection .hx-srail__shoe:focus-visible .hx-srail__photo img {
    transform: translateY(-.14rem) scale(1.03) !important;
  }
  #hx-collection .hx-srail__shoe.is-front .hx-srail__swing,
  #hx-collection .hx-srail__shoe:hover .hx-srail__swing,
  #hx-collection .hx-srail__shoe:focus-visible .hx-srail__swing {
    transform: translateY(-.2rem);
  }
  #hx-collection .hx-srail__tag {
    min-height: 0;
    padding: 0;
    margin-top: .45rem;
    background: transparent !important;
  }
  #hx-collection .hx-srail__name { font-size: .95rem; }
  #hx-collection .hx-srail__price { font-size: .88rem; }
  #hx-collection .hx-srail__cta {
    display: block;
    opacity: 0;
    font-size: .74rem;
  }
  #hx-collection .hx-srail__shoe.is-front .hx-srail__cta { opacity: 1; }
  #hx-collection .hx-srail__tag small {
    font-size: .7rem;
    color: #6d6258;
  }
  #hx-collection .hx-srail__guide--desk { display: none; }
  #hx-collection .hx-srail__guide--mob:not(:empty) { display: inline; }
  #hx-collection .hx-srail__caption { font-size: .78rem; padding-top: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  #hx-collection .hx-srail__shoe.is-front .hx-srail__swing,
  #hx-collection .hx-srail__shoe:hover .hx-srail__swing,
  #hx-collection .hx-srail__shoe:focus-visible .hx-srail__swing,
  #hx-collection .hx-srail__shoe.is-front .hx-srail__photo img,
  #hx-collection .hx-srail__shoe:hover .hx-srail__photo img,
  #hx-collection .hx-srail__shoe:focus-visible .hx-srail__photo img {
    transform: none !important;
  }
}

/* Final cascade guard for Phase 5 commerce controls. */
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order {
  border-radius: var(--hami-radius-sm) !important;
  background: var(--hami-espresso) !important;
  color: #fff !important;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:focus-visible,
.woocommerce-checkout #place_order:hover,
.woocommerce-checkout #place_order:focus-visible {
  background: var(--hami-leather) !important;
}

/* Phase 7 — keep below-the-fold storytelling out of the critical paint path. */
.home .hx-block:not(.hx-hero),
.home .hami-footer,
.single-product .related.products,
.single-product .upsells.products {
  content-visibility: auto;
  contain-intrinsic-size: 1px 720px;
}

img[loading="lazy"] { content-visibility: auto; }

/* Phase 6 — states users can understand at a glance. */
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .no-products-found,
.woocommerce .woocommerce-no-products-found,
.search-no-results .hami-main,
.error404 .hami-main {
  max-width: 760px;
  margin-inline: auto;
}

.woocommerce .woocommerce-no-products-found,
.woocommerce .no-products-found,
.search-no-results .hami-main,
.error404 .hami-main {
  padding: clamp(3rem, 8vw, 7rem) 1.25rem;
  text-align: center;
}

.woocommerce .woocommerce-no-products-found::before,
.woocommerce .no-products-found::before,
.search-no-results .hami-main::before,
.error404 .hami-main::before {
  content: "HAMI / 02";
  display: block;
  margin-bottom: 1rem;
  color: var(--hami-leather);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.woocommerce .woocommerce-no-products-found h2,
.woocommerce .woocommerce-no-products-found h1,
.search-no-results .hami-main h1,
.error404 .hami-main h1 {
  max-width: 12ch;
  margin: 0 auto .8rem;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.woocommerce .woocommerce-no-products-found p,
.woocommerce .no-products-found p,
.search-no-results .hami-main p,
.error404 .hami-main p {
  max-width: 36rem;
  margin: 0 auto 1.4rem;
  color: #625850;
  line-height: 1.9;
}

.woocommerce .woocommerce-no-products-found a.button,
.search-no-results .hami-main a,
.error404 .hami-main a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding-inline: 1.4rem;
  border-radius: var(--hami-radius-sm);
  background: var(--hami-espresso);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hx-search.is-loading {
  pointer-events: none;
  opacity: .68;
}

.hx-search.is-loading button::after {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-inline-end-color: transparent;
  border-radius: 50%;
  animation: hami-spin .7s linear infinite;
}

.hx-search.is-loading button svg { display: none; }

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

@media (prefers-reduced-motion: reduce) {
  .hx-search.is-loading button::after { animation: none; }
}

.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus {
  border-color: var(--hami-leather) !important;
}


/* =============================================================================
   Home composition — clear section rhythm (hero → main story)
   Lenses: IA, Luxury Brand, Visual UI, UX Discoverability, Art Direction,
   Typography, Grid, Color, Mobile, Conversion, Trust, QA
   ============================================================================= */
.hami-main--home {
  --hx-section-y: clamp(4.75rem, 11vw, 9rem);
  --hx-section-y-sm: clamp(2rem, 4.5vw, 3.25rem);
  --hx-section-line: rgba(33, 27, 24, 0.08);
}

/* One calm marquee band — echo strip removed so sections stop stacking. */
.hami-main--home .hx-marquee--echo {
  display: none;
}

.hami-main--home .hx-marquee {
  margin: 0;
  border-block: 0;
  background: #1c1917;
}

.hami-main--home .hx-marquee span {
  padding-block: 0.95rem;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

/* Metrics strip: typography row, not glass cards. */
.hami-main--home .hx-glassbar {
  margin-top: 0;
  padding-block: var(--hx-section-y-sm);
  background: #fffdf9;
  border-block: 1px solid var(--hx-section-line);
}

.hami-main--home .hx-glassbar ul {
  width: min(100% - 2rem, 1320px);
  margin-inline: auto;
  padding: 0;
  gap: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.hami-main--home .hx-glassbar li {
  min-height: 0;
  padding: 0.35rem 1.1rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-inline-start: 1px solid var(--hx-section-line) !important;
}

.hami-main--home .hx-glassbar li:first-child {
  border-inline-start: 0 !important;
  padding-inline-start: 0;
}

.hami-main--home .hx-glassbar strong {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: #211b18;
}

.hami-main--home .hx-glassbar span {
  color: #6d6258;
  font-size: 0.8rem;
}

/* Section breathing + clear boundaries. */
.hami-main--home .hx-block {
  position: relative;
  padding-block: var(--hx-section-y);
  background: transparent;
}

.hami-main--home .hx-block--tight {
  padding-block: var(--hx-section-y);
}

.hami-main--home .hx-block--paths {
  background:
    linear-gradient(180deg, #f7f3ed 0%, #f3efe8 100%);
  border-block: 1px solid var(--hx-section-line);
}

.hami-main--home #hx-collection {
  background: #fbf8f3;
  border-block: 1px solid var(--hx-section-line);
}

.hami-main--home #hx-collection::before {
  content: none;
  display: none;
}

.hami-main--home .hx-journal {
  background: #fffdf9;
  border-bottom: 1px solid var(--hx-section-line);
}

.hami-main--home .hx-head {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.hami-main--home .hx-head__deck {
  max-width: 28rem;
  margin: 0.85rem 0 0;
  color: #6d6258;
  font-size: 0.95rem;
  line-height: 1.7;
}

.hami-main--home .hx-kicker {
  margin-bottom: 0.55rem;
  letter-spacing: 0.16em;
}

.hami-main--home .hx-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* Paths tiles: editorial media, quieter chrome. */
.hami-main--home .hx-bento {
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.hami-main--home .hx-tile {
  border-radius: 1.15rem;
  box-shadow: none !important;
  border: 1px solid rgba(28, 25, 23, 0.08) !important;
  overflow: hidden;
}

.hami-main--home .hx-tile:hover,
.hami-main--home .hx-tile:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(140, 90, 52, 0.35) !important;
}

.hami-main--home .hx-craft {
  border-block: 1px solid var(--hx-section-line);
}

.hami-main--home .hx-steps {
  gap: clamp(0.85rem, 2vw, 1.2rem);
}

.hami-main--home .hx-steps li {
  box-shadow: none;
  border-radius: 1rem;
}

.hami-main--home .hx-trust {
  padding-block: var(--hx-section-y);
  background: #fffdf9;
  border-top: 1px solid var(--hx-section-line);
}

.hami-main--home .hx-trust li {
  box-shadow: none !important;
  backdrop-filter: none !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--hx-section-line) !important;
  border-radius: 0 !important;
  padding: 1rem 0.2rem;
}

.hami-main--home .hx-close {
  padding-block: 0 var(--hx-section-y);
  background: #f3efe8;
}

.hami-main--home .hx-close__inner {
  border-radius: 1.25rem;
}

.hami-main--home .hx-film {
  border-block: 1px solid var(--hx-section-line);
}

@media (max-width: 720px) {
  .hami-main--home .hx-glassbar li {
    border-inline-start: 0 !important;
    border-top: 1px solid var(--hx-section-line) !important;
    padding: 0.85rem 0;
  }

  .hami-main--home .hx-glassbar li:nth-child(-n + 2) {
    border-top: 0 !important;
  }

  .hami-main--home .hx-glassbar li:nth-child(odd) {
    padding-inline-end: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hami-main--home .hx-tile:hover,
  .hami-main--home .hx-tile:focus-visible {
    transform: none;
  }
}


/* =============================================================================
   Home elevation v2 — framed sections + motion + footer
   HARD RULE: do not alter #hx-collection .hx-srail* (rail locked)
   ============================================================================= */
.hami-main--home {
  --hx-section-y: clamp(5.5rem, 12vw, 10.5rem);
  --hx-section-y-sm: clamp(2.35rem, 5vw, 3.6rem);
  --hx-section-line: rgba(33, 27, 24, 0.09);
  --hx-copper: #8c5a34;
  --hx-ease-lux: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Hero motion polish */
.home .hx-hero__copy > * {
  position: relative;
}

.home .hx-hero__brand-fa {
  color: #211b18;
}

.home .hx-hero__ground {
  animation: hx-ground-breathe 4.8s ease-in-out infinite;
}

.home .hx-hero__img {
  animation: hx-hero-float 7.5s var(--hx-ease-lux) infinite alternate;
}

.home .hx-scroll i {
  animation: hx-pulse 1.8s ease-in-out infinite;
}

@keyframes hx-ground-breathe {
  0%, 100% { opacity: .55; transform: translateX(-50%) scaleX(1); }
  50% { opacity: .9; transform: translateX(-50%) scaleX(1.08); }
}

@keyframes hx-hero-float {
  from { transform: translateY(0); }
  to { transform: translateY(-0.55rem); }
}

/* Section frame system — every block announces itself */
.hami-main--home .hx-section {
  position: relative;
  isolation: isolate;
}

.hami-main--home .hx-section[data-hx-label]::before {
  content: attr(data-hx-label);
  position: absolute;
  z-index: 2;
  inset-inline-start: max(1rem, calc((100% - 1320px) / 2));
  top: clamp(1.35rem, 3vw, 2.4rem);
  color: var(--hx-copper);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  pointer-events: none;
}

.hami-main--home .hx-section::after {
  content: "";
  position: absolute;
  inset-inline: max(1rem, calc((100% - 1320px) / 2));
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(140, 90, 52, 0.45) 18%,
    rgba(33, 27, 24, 0.12) 50%,
    rgba(140, 90, 52, 0.35) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.hami-main--home .hx-glassbar.hx-section::after,
.hami-main--home .hx-glassbar.hx-section::before {
  display: none;
}

.hami-main--home .hx-block--paths {
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(140, 90, 52, 0.08), transparent 60%),
    linear-gradient(180deg, #f6f1e9 0%, #efe8de 100%);
  padding-block: var(--hx-section-y);
}

.hami-main--home .hx-journal {
  background:
    radial-gradient(480px 200px at 0% 10%, rgba(140, 90, 52, 0.07), transparent 55%),
    #fffdf9;
  padding-block: var(--hx-section-y);
}

.hami-main--home .hx-journal__list {
  gap: clamp(1rem, 2.5vw, 1.6rem);
}

.hami-main--home .hx-journal__list a {
  display: grid;
  gap: 0.55rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: transform 0.55s var(--hx-ease-lux);
}

.hami-main--home .hx-journal__list a:hover,
.hami-main--home .hx-journal__list a:focus-visible {
  transform: translateY(-0.35rem);
}

.hami-main--home .hx-journal__list img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 0.9rem;
  background: #efe8de;
  transition: filter 0.55s ease;
}

.hami-main--home .hx-journal__list a:hover img {
  filter: brightness(1.03) contrast(1.03);
}

.hami-main--home .hx-journal__list h3 {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  letter-spacing: -0.02em;
}

.hami-main--home .hx-craft {
  background:
    radial-gradient(560px 240px at 100% 0%, rgba(140, 90, 52, 0.14), transparent 58%),
    #1c1917;
  color: #f6f1e8;
  padding-block: var(--hx-section-y);
  border-block: 0;
}

.hami-main--home .hx-craft .hx-kicker,
.hami-main--home .hx-craft .hx-head h2,
.hami-main--home .hx-craft[data-hx-label]::before {
  color: #e0b07a;
}

.hami-main--home .hx-craft .hx-head h2 {
  color: #f6f1e8;
}

.hami-main--home .hx-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.9rem, 2vw, 1.35rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hami-main--home .hx-steps li {
  position: relative;
  padding: 1.35rem 1.2rem 1.45rem;
  border: 1px solid rgba(246, 241, 232, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  color: #f6f1e8;
  transition: transform 0.55s var(--hx-ease-lux), border-color 0.35s ease, background 0.35s ease;
}

.hami-main--home .hx-steps li:hover,
.hami-main--home .hx-steps li:focus-within {
  transform: translateY(-0.3rem);
  border-color: rgba(224, 176, 122, 0.45);
  background: rgba(255, 255, 255, 0.05);
}

.hami-main--home .hx-steps span {
  display: block;
  margin-bottom: 0.85rem;
  color: #e0b07a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.hami-main--home .hx-steps h3 {
  margin: 0 0 0.45rem;
  color: #fff;
  font-size: 1.15rem;
}

.hami-main--home .hx-steps p {
  margin: 0;
  color: rgba(246, 241, 232, 0.68);
  line-height: 1.7;
}

.hami-main--home .hx-film {
  position: relative;
  min-height: clamp(24rem, 58vh, 38rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-block: 0;
}

.hami-main--home .hx-film__img {
  transform: scale(1.04);
  transition: transform 8s linear;
}

.hami-main--home .hx-film.is-in .hx-film__img,
.hami-main--home .hx-film:hover .hx-film__img {
  transform: scale(1.08);
}

.hami-main--home .hx-film__copy {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.hami-main--home .hx-film__copy h2 {
  max-width: 12ch;
  color: #fff;
}

.hami-main--home .hx-trust {
  background: #f7f3ed;
  padding-block: var(--hx-section-y);
}

.hami-main--home .hx-trust ul {
  gap: 0;
  border-top: 1px solid var(--hx-section-line);
}

.hami-main--home .hx-trust li {
  padding: 1.35rem 1rem 1.35rem 0.2rem;
  border-top: 0 !important;
  border-inline-start: 1px solid var(--hx-section-line) !important;
  transition: transform 0.45s var(--hx-ease-lux);
}

.hami-main--home .hx-trust li:first-child {
  border-inline-start: 0 !important;
}

.hami-main--home .hx-trust li:hover {
  transform: translateY(-0.2rem);
}

.hami-main--home .hx-trust strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.05rem;
  color: #211b18;
}

.hami-main--home .hx-close {
  padding-block: var(--hx-section-y);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(140, 90, 52, 0.16), transparent 55%),
    #efe8de;
}

.hami-main--home .hx-close__inner {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  max-width: 42rem;
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid rgba(33, 27, 24, 0.1);
  border-radius: 1.35rem;
  background:
    radial-gradient(480px 180px at 100% 0%, rgba(224, 176, 122, 0.28), transparent 60%),
    #1c1917;
  box-shadow: 0 28px 60px rgba(28, 25, 23, 0.18);
}

.hami-main--home .hx-close__deck {
  margin: 0;
  max-width: 28rem;
  color: rgba(246, 241, 232, 0.7);
  line-height: 1.75;
}

.hami-main--home .hx-tile {
  min-height: 16rem;
  transition: transform 0.55s var(--hx-ease-lux), border-color 0.35s ease;
}

.hami-main--home .hx-tile img {
  transition: transform 0.9s var(--hx-ease-lux);
}

.hami-main--home .hx-tile:hover img,
.hami-main--home .hx-tile:focus-visible img {
  transform: scale(1.05);
}

/* Reveal motion — luxury stagger */
html.hx-motion .hami-main--home .hx-reveal:not(.is-in) {
  opacity: 0;
  transform: translateY(1.4rem);
  filter: blur(2px);
}

html.hx-motion .hami-main--home .hx-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
  transition:
    opacity 0.85s var(--hx-ease-lux),
    transform 0.85s var(--hx-ease-lux),
    filter 0.85s ease;
  transition-delay: calc(var(--hx-i, 0) * 75ms);
}

/* Paths tiles already use hx-reveal */

/* Footer elevation */
.hami-footer .hx-foot__trust-band {
  border-bottom: 1px solid rgba(246, 241, 232, 0.1);
  background: rgba(0, 0, 0, 0.22);
}

.hami-footer .hx-foot__trust {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: 1.1rem 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.hami-footer .hx-foot__trust li {
  display: grid;
  gap: 0.2rem;
  padding: 0.35rem 1rem;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  border-inline-start: 1px solid rgba(246, 241, 232, 0.12) !important;
}

.hami-footer .hx-foot__trust li:first-child {
  border-inline-start: 0 !important;
  padding-inline-start: 0;
}

.hami-footer .hx-foot__trust strong {
  color: #f6f1e8;
  font-size: 0.95rem;
}

.hami-footer .hx-foot__trust span {
  color: rgba(246, 241, 232, 0.55);
  font-size: 0.78rem;
}

.hami-footer .hx-foot {
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: 1rem;
}

.hami-footer .hx-foot__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.hami-footer .hx-foot__mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  background: #f6f1e8;
  color: #14110e;
  font-size: 1.15rem;
  font-weight: 800;
}

.hami-footer .hx-foot__en {
  margin: 0;
  color: #e0b07a;
  font-family: var(--hami-display, "Syne", Georgia, serif);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.hami-footer .hx-foot__fa {
  margin: 0.35rem 0 0.55rem;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hami-footer .hx-foot__cta {
  display: inline-flex;
  margin-top: 1.1rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(246, 241, 232, 0.35);
  border-radius: 999px;
  color: #f6f1e8;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 800;
  transition: background 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

.hami-footer .hx-foot__cta:hover,
.hami-footer .hx-foot__cta:focus-visible {
  background: #f6f1e8;
  color: #14110e;
  border-color: #f6f1e8;
}

.hami-footer .hx-foot h2 {
  margin: 0 0 0.85rem;
  color: #e0b07a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.hami-footer .hx-foot__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.hami-footer .hx-foot__list a {
  color: rgba(246, 241, 232, 0.78);
  text-decoration: none;
  font-weight: 600;
}

.hami-footer .hx-foot__list a:hover,
.hami-footer .hx-foot__list a:focus-visible {
  color: #fff;
}

.hami-footer .hx-foot__note {
  margin: 0 0 0.65rem;
  line-height: 1.7;
}

.hami-footer .hx-foot__host {
  margin: 0.85rem 0 0;
  color: rgba(224, 176, 122, 0.8);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hami-footer .hx-foot__giant {
  width: min(100% - 2rem, 1320px);
  margin: 0.5rem auto 0;
  text-align: center;
  font-weight: 800;
  letter-spacing: -0.06em;
  user-select: none;
}

.hami-footer .hx-foot__bar {
  width: min(100% - 2rem, 1320px);
  margin: 0 auto;
  padding: 1.1rem 0 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  border-top: 1px solid rgba(246, 241, 232, 0.1);
  font-size: 0.78rem;
}

.hami-footer .hx-foot__bar p {
  margin: 0;
}

.hami-footer .hx-foot__bar a {
  color: inherit;
  text-underline-offset: 0.18em;
}

@media (max-width: 900px) {
  .hami-main--home .hx-steps {
    grid-template-columns: 1fr;
  }

  .hami-footer .hx-foot__grid {
    grid-template-columns: 1fr 1fr;
  }

  .hami-footer .hx-foot__brand {
    grid-column: 1 / -1;
  }

  .hami-footer .hx-foot__trust {
    grid-template-columns: 1fr 1fr;
  }

  .hami-footer .hx-foot__trust li {
    border-inline-start: 0 !important;
    border-top: 1px solid rgba(246, 241, 232, 0.1) !important;
    padding: 0.75rem 0.4rem;
  }

  .hami-footer .hx-foot__trust li:nth-child(-n + 2) {
    border-top: 0 !important;
  }
}

@media (max-width: 560px) {
  .hami-main--home .hx-section[data-hx-label]::before {
    inset-inline-start: 1rem;
  }

  .hami-footer .hx-foot__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .hx-hero__ground,
  .home .hx-hero__img,
  .home .hx-scroll i,
  .hami-main--home .hx-film__img {
    animation: none !important;
    transition: none !important;
  }

  html.hx-motion .hami-main--home .hx-reveal:not(.is-in),
  html.hx-motion .hami-main--home .hx-reveal.is-in {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ——— PDP 100/100 — Digikala-grade single product ——— */
.hami-main--product,
.single-product .hami-main {
  padding-top: 1rem;
  padding-bottom: 3.5rem;
  background:
    radial-gradient(ellipse 60% 30% at 100% 0%, rgba(134, 87, 56, 0.07), transparent 55%),
    radial-gradient(ellipse 45% 22% at 0% 12%, rgba(33, 27, 24, 0.035), transparent 50%),
    #f6f1e8;
}

.single-product .hx-pdp-stage {
  gap: 1.35rem 1.75rem !important;
  padding-block: 0.85rem 1.75rem !important;
  align-items: start;
}

@media (min-width: 900px) {
  .single-product .hx-pdp-stage {
    /* Physical: buy box left, gallery right (RTL Digikala). */
    direction: ltr;
    grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr) !important;
  }

  .single-product .hx-pdp-stage .summary {
    direction: rtl;
    order: 1;
    grid-column: 1;
    grid-row: 1;
    position: sticky;
    top: 6.2rem;
  }

  .single-product .hx-pdp-stage .woocommerce-product-gallery,
  .single-product .hx-pdp-stage .hx-gallery {
    direction: rtl;
    order: 2;
    grid-column: 2;
    grid-row: 1;
  }
}

.single-product .hx-pdp-stage .summary {
  padding: 1.25rem 1.2rem 1.15rem !important;
  border-radius: 1.2rem !important;
  background: #fff !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 42px rgba(33, 27, 24, 0.06) !important;
}

.single-product .hx-pdp__kicker {
  margin: 0 0 0.4rem;
  color: var(--hami-leather) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.single-product .product_title {
  max-width: none !important;
  margin: 0 0 0.55rem !important;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem) !important;
  line-height: 1.3 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800;
  color: var(--hami-espresso);
}

.single-product .summary .price {
  margin: 0 0 0.85rem !important;
  padding-bottom: 0.85rem !important;
  border-bottom: 1px solid rgba(33, 27, 24, 0.08) !important;
  color: var(--hami-espresso) !important;
  font-size: clamp(1.25rem, 2vw, 1.55rem) !important;
  font-weight: 800 !important;
}

.single-product .woocommerce-product-details__short-description {
  margin: 0 0 0.75rem;
  color: #5c5348;
  font-size: 0.95rem;
  line-height: 1.85;
}

.hami-size-guide {
  margin: 0 0 0.85rem;
}

.hami-size-guide a {
  color: var(--hami-leather);
  font-weight: 700;
  font-size: 0.88rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

.single-product .variations label {
  color: var(--hami-espresso);
  font-size: 0.8rem;
  font-weight: 800;
}

.single-product .hx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
  justify-content: flex-start;
}

.single-product .hx-pill {
  display: grid;
  place-items: center;
  min-width: 3.15rem;
  min-height: 3.15rem;
  padding: 0 0.7rem;
  border-radius: 999px !important;
  border: 1px solid rgba(33, 27, 24, 0.14) !important;
  background: #fff !important;
  color: var(--hami-espresso) !important;
  font-weight: 800;
  font-size: 0.95rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.single-product .hx-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(33, 27, 24, 0.35) !important;
}

.single-product .hx-pill.is-on {
  background: var(--hami-espresso) !important;
  border-color: var(--hami-espresso) !important;
  color: #f6f1e8 !important;
  box-shadow: 0 10px 22px rgba(33, 27, 24, 0.18);
}

.single-product form.cart {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid rgba(33, 27, 24, 0.08) !important;
  gap: 0.85rem;
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart .single_variation_wrap .woocommerce-variation-add-to-cart {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 0.65rem !important;
  align-items: stretch;
  width: 100%;
}

.single-product .quantity {
  margin: 0 !important;
}

.single-product .quantity .qty {
  width: 4.6rem !important;
  min-height: 3.15rem !important;
  border-radius: 0.95rem !important;
  border: 1px solid rgba(33, 27, 24, 0.14) !important;
  background: #fff !important;
  font-weight: 800;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  width: 100% !important;
  min-height: 3.15rem !important;
  border: 0 !important;
  border-radius: 0.95rem !important;
  background: var(--hami-espresso) !important;
  color: #f6f1e8 !important;
  font-weight: 800 !important;
  box-shadow: 0 14px 28px rgba(33, 27, 24, 0.18) !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:focus-visible {
  background: #2c241f !important;
  color: #f6f1e8 !important;
  transform: translateY(-1px);
}

.single-product .hx-pdp__trust {
  display: grid !important;
  gap: 0.45rem !important;
  margin: 1.05rem 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.single-product .hx-pdp__trust li {
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 0.8rem !important;
  border-radius: 0.85rem;
  background: #f7f3ec;
  border: 1px solid rgba(33, 27, 24, 0.06);
  color: #5c5348;
  font-size: 0.82rem;
  line-height: 1.45;
}

.single-product .hx-pdp__trust li::before {
  display: none !important;
}

.single-product .hx-pdp__trust strong {
  color: var(--hami-espresso);
  font-size: 0.86rem;
  font-weight: 800;
}

.single-product .hx-pdp__meta {
  margin-top: 0.85rem !important;
  color: #78716c;
  font-size: 0.8rem;
}

.single-product .hx-pdp__meta a {
  color: var(--hami-espresso);
  border-bottom-color: rgba(33, 27, 24, 0.25);
}

/* Gallery */
.single-product .woocommerce-product-gallery,
.single-product .hx-gallery {
  padding: 0.65rem !important;
  border-radius: 1.25rem !important;
  background: #fff !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  box-shadow: 0 18px 42px rgba(33, 27, 24, 0.06) !important;
}

.single-product .flex-viewport,
.single-product .woocommerce-product-gallery__image {
  border-radius: 1rem !important;
  overflow: hidden;
  background: linear-gradient(165deg, #fcfaf7, #ebe4da) !important;
}

.single-product .woocommerce-product-gallery img {
  mix-blend-mode: normal !important;
  background: transparent !important;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 0.35rem;
}

.single-product .woocommerce-product-gallery__trigger {
  inset-inline-start: 0.85rem !important;
  top: 0.85rem !important;
  width: 2.55rem !important;
  height: 2.55rem !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(33, 27, 24, 0.1) !important;
  box-shadow: 0 8px 18px rgba(33, 27, 24, 0.08);
}

.single-product .flex-control-thumbs {
  display: flex !important;
  gap: 0.5rem !important;
  margin: 0.55rem 0 0 !important;
  padding: 0 0.15rem !important;
}

.single-product .flex-control-thumbs li {
  width: 4.75rem !important;
  flex: 0 0 4.75rem !important;
  border-radius: 0.8rem !important;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  background: #f7f3ec !important;
}

.single-product .flex-control-thumbs img {
  opacity: 0.78;
  border: 2px solid transparent !important;
  border-radius: 0.75rem;
  background: transparent !important;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--hami-espresso) !important;
}

/* Tabs — full-bleed card, not a floating document */
.single-product .woocommerce-tabs {
  max-width: none !important;
  margin: 1.75rem 0 0 !important;
  padding: 1.15rem 1.2rem 1.35rem !important;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 16px 36px rgba(33, 27, 24, 0.05);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  gap: 0.15rem;
  border-bottom: 1px solid rgba(33, 27, 24, 0.1) !important;
  margin-bottom: 0.35rem !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  padding: 0.75rem 0.15rem 0.9rem !important;
  margin-inline-end: 1.35rem !important;
  color: #78716c !important;
  font-size: 0.95rem;
  font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--hami-espresso) !important;
  box-shadow: inset 0 -2.5px 0 var(--hami-espresso) !important;
}

.woocommerce-Tabs-panel {
  max-width: none !important;
  padding-top: 1.15rem !important;
  color: #5c5348;
  font-size: 0.98rem;
  line-height: 1.9;
}

.woocommerce-Tabs-panel h2,
.woocommerce-Tabs-panel h3 {
  color: var(--hami-espresso);
  font-weight: 800;
}

.woocommerce-Tabs-panel ul li {
  position: relative;
  padding-inline-start: 1rem;
  margin: 0.35rem 0;
}

.woocommerce-Tabs-panel ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.7em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--hami-leather);
}

/* Related */
.single-product .related.products,
.single-product .upsells.products {
  margin-top: 2.25rem;
  padding-top: 0.25rem;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--hami-espresso);
}

@media (max-width: 899px) {
  .single-product .hx-pdp-stage {
    direction: rtl;
    gap: 1rem !important;
    padding-block: 0.5rem 1.25rem !important;
  }

  .single-product .hx-pdp-stage .summary {
    position: static !important;
    order: 2;
  }

  .single-product .hx-pdp-stage .woocommerce-product-gallery {
    order: 1;
  }

  .single-product .woocommerce-variation-add-to-cart {
    grid-template-columns: 1fr !important;
  }

  .single-product .quantity .qty {
    width: 100% !important;
  }

  .single-product .woocommerce-tabs {
    padding: 1rem 0.95rem 1.15rem !important;
  }
}

/* Sticky mobile ATC — espresso, not washed gold */
@media (max-width: 767px) {
  .hami-sticky-atc {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(33, 27, 24, 0.1) !important;
    box-shadow: 0 -12px 28px rgba(33, 27, 24, 0.08);
    backdrop-filter: blur(12px);
  }

  .hami-sticky-atc__price {
    color: var(--hami-espresso);
    font-weight: 800;
    font-size: 0.95rem;
  }

  .hami-sticky-atc__button,
  .hami-btn.hami-sticky-atc__button {
    border: 0 !important;
    border-radius: 0.85rem !important;
    background: var(--hami-espresso) !important;
    color: #f6f1e8 !important;
    font-weight: 800 !important;
    min-height: 2.85rem;
    padding-inline: 1.15rem !important;
  }
}

/* Hide duplicate panel titles Woo prints under tabs */
.woocommerce-Tabs-panel > h2:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ——— Final 100 pass: attributes, reviews, shop cards ——— */

/* Digikala-style product attributes */
.woocommerce-product-attributes.shop_attributes {
  width: 100% !important;
  margin: 0.35rem 0 0 !important;
  border: 0 !important;
  border-collapse: separate;
  border-spacing: 0 0.45rem;
}

.woocommerce-product-attributes-item {
  display: grid !important;
  grid-template-columns: minmax(7rem, 11rem) minmax(0, 1fr);
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem !important;
  border-radius: 0.9rem;
  background: #f7f3ec;
  border: 1px solid rgba(33, 27, 24, 0.06);
}

.woocommerce-product-attributes-item th,
.woocommerce-product-attributes-item td {
  display: block !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  text-align: start !important;
  vertical-align: middle;
  font-size: 0.95rem;
  line-height: 1.55;
}

.woocommerce-product-attributes-item th {
  color: #78716c !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
}

.woocommerce-product-attributes-item td,
.woocommerce-product-attributes-item td p {
  margin: 0 !important;
  color: var(--hami-espresso) !important;
  font-weight: 800;
}

.woocommerce-product-attributes-item td a {
  color: var(--hami-espresso);
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 27, 24, 0.2);
}

/* Reviews */
#reviews {
  max-width: none !important;
}

#review_form_wrapper {
  margin-top: 1rem !important;
  padding: 1.2rem 1.15rem 1.25rem !important;
  border-radius: 1.1rem !important;
  background: #f7f3ec !important;
  border: 1px solid rgba(33, 27, 24, 0.07) !important;
  box-shadow: none !important;
}

.woocommerce #reviews #comments h2,
.woocommerce #reviews .woocommerce-Reviews-title {
  margin: 0 0 0.75rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hami-espresso);
}

.woocommerce #review_form #respond .form-submit input#submit,
#review_form .submit {
  border-radius: 0.85rem !important;
  background: var(--hami-espresso) !important;
  color: #f6f1e8 !important;
}

.woocommerce p.stars a {
  color: var(--hami-leather) !important;
}

.single-product .woocommerce-noreviews {
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  background: #f7f3ec;
  color: #5c5348;
}

/* Shop cards — clearer media stage + always-ready CTA hint */
.woocommerce ul.products li.product .hx-product__media {
  background: linear-gradient(165deg, #fcfaf7 0%, #ebe4da 100%) !important;
}

.woocommerce ul.products li.product .hx-product__cat {
  opacity: 0.85;
}

.woocommerce ul.products li.product .hx-product__view {
  letter-spacing: 0.01em;
}

@media (hover: hover) and (pointer: fine) {
  .woocommerce ul.products li.product:hover .hx-product__view,
  .woocommerce ul.products li.product:focus-within .hx-product__view {
    opacity: 1;
    transform: none;
  }
}

/* Related strip */
.single-product .related.products,
.single-product .upsells.products {
  margin-top: 2rem !important;
  padding: 1.35rem 1.2rem 1.5rem;
  border-radius: 1.2rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 16px 36px rgba(33, 27, 24, 0.05);
  border-top: 1px solid rgba(33, 27, 24, 0.08) !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  margin-bottom: 1.1rem !important;
}

/* Breadcrumb quieter on PDP/shop */
.woocommerce .woocommerce-breadcrumb,
.hx-crumb {
  margin-bottom: 0.85rem !important;
  font-size: 0.8rem;
  color: #78716c;
}

/* Variation price flash */
.single-product .woocommerce-variation-price .price {
  color: var(--hami-espresso) !important;
  font-weight: 800;
  font-size: 1.15rem;
}

.single-product .woocommerce-variation-availability {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #5c5348;
}

@media (max-width: 720px) {
  .woocommerce-product-attributes-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* ——— PDP Visual Elevation — framing / density / luxury ——— */

/* Dual atelier frames: gallery + buy box share one stage language */
@media (min-width: 900px) {
  .single-product .hx-pdp-stage {
    gap: 1.1rem 1.35rem !important;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr) !important;
  }
}

.single-product .hx-pdp-stage .summary {
  position: relative;
  padding: 1.35rem 1.3rem 1.25rem !important;
  border-radius: 1.35rem !important;
  border: 1px solid rgba(33, 27, 24, 0.09) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 22px 48px rgba(33, 27, 24, 0.075) !important;
  overflow: hidden;
}

.single-product .hx-pdp-stage .summary::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(134, 87, 56, 0.55) 18%,
    rgba(33, 27, 24, 0.85) 50%,
    rgba(134, 87, 56, 0.55) 82%,
    transparent 100%
  );
  pointer-events: none;
}

.single-product .product_title {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem) !important;
  letter-spacing: -0.03em !important;
}

.single-product .summary .price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0 0 1rem !important;
  padding-bottom: 1rem !important;
  border-bottom: 1px solid rgba(33, 27, 24, 0.09) !important;
  font-size: clamp(1.4rem, 2.2vw, 1.75rem) !important;
}

.single-product .summary .price .woocommerce-Price-currencySymbol,
.single-product .summary .price .amount + .woocommerce-Price-currencySymbol {
  color: var(--hami-leather);
  font-size: 0.72em;
  font-weight: 700;
}

.single-product .woocommerce-product-details__short-description {
  max-width: 36rem;
  font-size: 0.98rem;
  line-height: 1.9;
  color: #4a433c;
}

.single-product .hx-pill {
  min-width: 3.35rem;
  min-height: 3.35rem;
  border-radius: 1rem !important;
  border: 1.5px solid rgba(33, 27, 24, 0.16) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.single-product .hx-pill.is-on {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 12px 26px rgba(33, 27, 24, 0.22);
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  min-height: 3.35rem !important;
  border-radius: 1.05rem !important;
  background: #14110e !important;
  background-image: none !important;
  color: #fff !important;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 16px 32px rgba(20, 17, 14, 0.35) !important;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover,
.woocommerce div.product form.cart .button.single_add_to_cart_button:focus-visible {
  background: #000 !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.14) inset,
    0 20px 40px rgba(0, 0, 0, 0.4) !important;
}

.single-product .quantity .qty {
  min-height: 3.35rem !important;
  border-radius: 1.05rem !important;
  border: 1.5px solid rgba(33, 27, 24, 0.16) !important;
}

.single-product .hx-pdp__trust {
  gap: 0.55rem !important;
  margin-top: 1.2rem !important;
}

.single-product .hx-pdp__trust li {
  position: relative;
  padding: 0.85rem 0.95rem 0.85rem 0.95rem !important;
  padding-inline-start: 1.05rem !important;
  border-radius: 1rem;
  background: linear-gradient(135deg, #faf7f2 0%, #f3ebe1 100%);
  border: 1px solid rgba(33, 27, 24, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}

.single-product .hx-pdp__trust li::after {
  content: "";
  position: absolute;
  inset-block: 0.7rem;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--hami-leather), rgba(134, 87, 56, 0.25));
}

/* Gallery — fill the frame, thumbs span full width */
.single-product .woocommerce-product-gallery,
.single-product .hx-gallery {
  position: relative;
  padding: 0.45rem !important;
  border-radius: 1.4rem !important;
  border: 1px solid rgba(33, 27, 24, 0.09) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 52px rgba(33, 27, 24, 0.08) !important;
  overflow: hidden;
}

.single-product .woocommerce-product-gallery::before {
  content: "";
  position: absolute;
  inset-inline: 12%;
  top: 0;
  height: 3px;
  z-index: 2;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(134, 87, 56, 0.5),
    rgba(33, 27, 24, 0.75),
    rgba(134, 87, 56, 0.5),
    transparent
  );
  pointer-events: none;
}

.single-product .flex-viewport,
.single-product .woocommerce-product-gallery__wrapper,
.single-product .woocommerce-product-gallery__image {
  border-radius: 1.15rem !important;
  background: linear-gradient(165deg, #f5efe6 0%, #e7ddd0 100%) !important;
}

.single-product .woocommerce-product-gallery .flex-viewport {
  margin: 0 !important;
}

.single-product .woocommerce-product-gallery__image a,
.single-product .woocommerce-product-gallery__image {
  display: block !important;
}

.single-product .woocommerce-product-gallery img {
  padding: 0 !important;
  width: 100% !important;
  height: auto !important;
  transform: scale(1.04);
  transform-origin: center;
}

.single-product .flex-control-thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 0.45rem !important;
  margin: 0.5rem 0 0 !important;
  padding: 0 0.05rem 0.1rem !important;
  width: 100% !important;
  justify-content: stretch !important;
}

.single-product .flex-control-thumbs li {
  width: auto !important;
  flex: unset !important;
  margin: 0 !important;
  border-radius: 0.9rem !important;
  border: 1.5px solid rgba(33, 27, 24, 0.1) !important;
  background: #f7f3ec !important;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.single-product .flex-control-thumbs li:has(img.flex-active),
.single-product .flex-control-thumbs li:hover {
  border-color: var(--hami-espresso) !important;
  box-shadow: 0 8px 18px rgba(33, 27, 24, 0.12);
  transform: translateY(-1px);
}

.single-product .flex-control-thumbs img {
  width: 100% !important;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.82;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0.2rem;
  background: transparent !important;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: transparent !important;
}

/* Specs — Digikala dense chips (label↔value, no stretch) */
.woocommerce-Tabs-panel--additional_information .woocommerce-product-attributes.shop_attributes,
.woocommerce-product-attributes.shop_attributes {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem !important;
  border-spacing: 0 !important;
  width: 100% !important;
  max-width: 52rem;
  margin-inline: auto 0 !important;
}

.woocommerce-product-attributes.shop_attributes tbody {
  display: contents;
}

.woocommerce-product-attributes-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem !important;
  margin: 0 !important;
  padding: 0.7rem 0.85rem !important;
  border-radius: 0.85rem;
  background: #f7f3ec;
  border: 1px solid rgba(33, 27, 24, 0.07);
  box-shadow: none;
  grid-template-columns: none !important;
}

.woocommerce-product-attributes-item th {
  width: auto !important;
  flex: 0 0 auto;
  color: #8a8178 !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
}

.woocommerce-product-attributes-item td,
.woocommerce-product-attributes-item td p {
  flex: 1 1 auto;
  text-align: end !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  color: var(--hami-espresso) !important;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .woocommerce-product-attributes.shop_attributes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 560px) {
  .woocommerce-product-attributes.shop_attributes {
    grid-template-columns: 1fr;
  }

  .woocommerce-product-attributes-item {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .woocommerce-product-attributes-item td,
  .woocommerce-product-attributes-item td p {
    text-align: start !important;
  }
}

/* Description — section cards, readable measure */
.woocommerce-Tabs-panel--description {
  max-width: 46rem;
  margin-inline: auto 0;
}

.woocommerce-Tabs-panel--description > p:first-of-type {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #faf7f2, #f3ebe1);
  border: 1px solid rgba(33, 27, 24, 0.06);
  color: #3f3933;
  font-size: 1.02rem;
  line-height: 1.95;
  font-weight: 600;
}

.woocommerce-Tabs-panel--description h3 {
  margin: 1.35rem 0 0.55rem;
  padding: 0.15rem 0 0.15rem 0;
  padding-inline-start: 0.85rem;
  border-inline-start: 3px solid var(--hami-leather);
  color: var(--hami-espresso);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.woocommerce-Tabs-panel--description p,
.woocommerce-Tabs-panel--description li {
  color: #5a534c;
  line-height: 1.9;
  font-size: 0.95rem;
}

.woocommerce-Tabs-panel--description ul {
  margin: 0.35rem 0 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 0.95rem;
  background: #f7f3ec;
  border: 1px solid rgba(33, 27, 24, 0.05);
  list-style: none;
}

.woocommerce-Tabs-panel--description ul li {
  position: relative;
  padding-inline-start: 1rem;
  margin: 0.35rem 0;
}

.woocommerce-Tabs-panel--description ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--hami-leather);
}

/* Tabs chrome */
.single-product .woocommerce-tabs {
  padding: 1.25rem 1.35rem 1.5rem !important;
  border-radius: 1.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 20px 44px rgba(33, 27, 24, 0.06);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a[aria-selected="true"] {
  color: var(--hami-espresso) !important;
  box-shadow: inset 0 -2.5px 0 var(--hami-espresso);
}

/* Related — denser luxury strip */
.single-product .related.products,
.single-product .upsells.products {
  margin-top: 2.25rem !important;
  padding: 1.5rem 1.35rem 1.65rem !important;
  border-radius: 1.35rem !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 22px 48px rgba(33, 27, 24, 0.07) !important;
}

.single-product .related.products > h2,
.single-product .upsells.products > h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 1.25rem !important;
  padding-bottom: 0.55rem;
  font-size: 1.2rem !important;
  font-weight: 800;
  color: var(--hami-espresso);
  letter-spacing: -0.02em;
}

.single-product .related.products > h2::after,
.single-product .upsells.products > h2::after {
  content: "";
  position: absolute;
  inset-inline-end: 0;
  bottom: 0;
  width: 2.75rem;
  height: 2.5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--hami-leather), transparent);
}

.single-product .related.products ul.products,
.single-product .upsells.products ul.products {
  gap: 0.85rem !important;
}

.single-product .related.products ul.products li.product,
.single-product .upsells.products ul.products li.product {
  padding: 0.55rem 0.55rem 0.85rem !important;
  border-radius: 1.15rem !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  background: #fff !important;
  box-shadow: 0 10px 24px rgba(33, 27, 24, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.single-product .related.products ul.products li.product:hover,
.single-product .upsells.products ul.products li.product:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 27, 24, 0.14) !important;
  box-shadow: 0 18px 36px rgba(33, 27, 24, 0.1);
}

.single-product .related.products .hx-product__media,
.single-product .upsells.products .hx-product__media {
  border-radius: 0.95rem !important;
  margin-bottom: 0.65rem;
  overflow: hidden;
  background: linear-gradient(165deg, #f5efe6, #e7ddd0) !important;
}

.single-product .related.products .hx-product__media img,
.single-product .upsells.products .hx-product__media img {
  transform: scale(1.06);
  transform-origin: center;
}

.single-product .related.products .woocommerce-loop-product__title,
.single-product .upsells.products .woocommerce-loop-product__title {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
  line-height: 1.4 !important;
  color: var(--hami-espresso) !important;
}

.single-product .related.products .price,
.single-product .upsells.products .price {
  margin-top: 0.35rem !important;
  color: var(--hami-espresso) !important;
  font-weight: 800 !important;
  font-size: 0.95rem !important;
}

@media (max-width: 899px) {
  .single-product .flex-control-thumbs {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0.35rem !important;
  }

  .single-product .hx-pdp-stage .summary::before,
  .single-product .woocommerce-product-gallery::before {
    height: 2.5px;
  }
}

/* ——— Specialist polish pass: signals / pay / FAQ / filter swatches ——— */

.single-product .hx-pdp__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.9rem;
  padding: 0;
  list-style: none;
}

.single-product .hx-pdp__signal {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.1);
  background: #f7f3ec;
  color: #5c5348;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.single-product .hx-pdp__signal--stock {
  background: rgba(34, 120, 72, 0.1);
  border-color: rgba(34, 120, 72, 0.22);
  color: #1f6b42;
}

.single-product .hx-pdp__size-hint {
  margin: 0.35rem 0 0;
  color: #8a8178;
  font-size: 0.8rem;
  line-height: 1.55;
}

.single-product .hx-pdp__pay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
}

.single-product .hx-pdp__pay li {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 2.65rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: #fff;
  color: #5c5348;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.single-product .hx-pdp-faq {
  margin: 1.75rem 0 0;
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(33, 27, 24, 0.05);
}

.single-product .hx-pdp-faq__title {
  margin: 0 0 0.9rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hami-espresso);
  letter-spacing: -0.02em;
}

.single-product .hx-pdp-faq__item {
  border-radius: 0.9rem;
  border: 1px solid rgba(33, 27, 24, 0.07);
  background: #f7f3ec;
  margin: 0 0 0.5rem;
  overflow: hidden;
}

.single-product .hx-pdp-faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--hami-espresso);
}

.single-product .hx-pdp-faq__item summary::-webkit-details-marker {
  display: none;
}

.single-product .hx-pdp-faq__item p {
  margin: 0;
  padding: 0 1rem 0.95rem;
  color: #5c5348;
  font-size: 0.88rem;
  line-height: 1.85;
}

.single-product .summary .price .amount,
.single-product .summary .price bdi {
  color: var(--hami-espresso) !important;
}

.single-product .summary .price .woocommerce-Price-currencySymbol {
  color: var(--hami-leather) !important;
  font-size: 0.72em;
  font-weight: 700;
  margin-inline-start: 0.2em;
}

/* Shop color filters — Digikala-like swatch + label */
.hx-filter__list--color {
  grid-template-columns: 1fr !important;
  gap: 0.35rem !important;
}

.hx-filter__list--color .hami-chip.hami-swatch {
  display: flex !important;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 0.65rem 0.85rem !important;
  border-radius: 0.9rem !important;
  background: #fff !important;
}

.hx-filter__list--color .hami-chip.hami-swatch::before {
  content: "";
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
  background: #ccc;
}

.hami-swatch--black::before { background: #1a1512 !important; }
.hami-swatch--brown::before { background: #6b3f2a !important; }
.hami-swatch--navy::before { background: #1e2a44 !important; }
.hami-swatch--olive::before { background: #5c6140 !important; }
.hami-swatch--chocolate::before,
.hami-swatch--choco::before { background: #4a2c1a !important; }

.hx-filter__list--color .hami-chip.hami-swatch.is-active,
.hx-filter__list--color .hami-chip.hami-swatch:has(input:checked) {
  border-color: var(--hami-espresso) !important;
  box-shadow: 0 0 0 1.5px var(--hami-espresso);
  background: #faf7f2 !important;
}

.hx-filters {
  border-radius: 1.25rem !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 18px 40px rgba(33, 27, 24, 0.06) !important;
}

.hx-filters__apply {
  min-height: 2.85rem !important;
  border-radius: 0.95rem !important;
  background: #14110e !important;
  color: #fff !important;
  font-weight: 800 !important;
}

@media (max-width: 720px) {
  .single-product .hx-pdp__pay {
    grid-template-columns: 1fr;
  }
}

/* ——— Commerce phase: chips / wish / recent / pay icons / size error ——— */

.hx-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-active-filters__label {
  color: #78716c;
  font-size: 0.8rem;
  font-weight: 700;
}

.hx-active-filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-active-filters__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.14);
  background: #f7f3ec;
  color: var(--hami-espresso);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.hx-active-filters__chip:hover {
  border-color: var(--hami-espresso);
}

.hx-active-filters__x {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
}

.hx-active-filters__clear {
  margin-inline-start: auto;
  color: var(--hami-leather);
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

.single-product .hx-pdp__size-error {
  margin: 0.45rem 0 0;
  color: #b42318;
  font-size: 0.84rem;
  font-weight: 700;
}

.single-product .hx-pills.is-error .hx-pill {
  border-color: rgba(180, 35, 24, 0.45) !important;
  animation: hx-pill-shake 0.35s ease;
}

@keyframes hx-pill-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  75% { transform: translateX(2px); }
}

.single-product .hx-pdp__rating {
  margin: 0 0 0.65rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.single-product .hx-pdp__rating a {
  color: var(--hami-leather);
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

.single-product .hx-pdp__rating-score {
  display: inline-grid;
  place-items: center;
  min-width: 2rem;
  min-height: 1.6rem;
  margin-inline-end: 0.35rem;
  padding: 0 0.4rem;
  border-radius: 0.45rem;
  background: var(--hami-espresso);
  color: #f6f1e8;
  font-size: 0.8rem;
}

.single-product .hx-wish--pdp {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.14);
  background: #fff;
  color: var(--hami-espresso);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.hx-wish__icon {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  position: relative;
}

.hx-wish__icon::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: transparent;
}

.hx-wish.is-on {
  border-color: var(--hami-leather);
  color: var(--hami-leather);
  background: rgba(134, 87, 56, 0.08);
}

.hx-wish.is-on .hx-wish__icon::after {
  background: var(--hami-leather);
}

.hx-product {
  position: relative;
}

.hx-wish--card {
  position: absolute;
  top: 0.65rem;
  inset-inline-start: 0.65rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 16px rgba(33, 27, 24, 0.1);
  cursor: pointer;
  color: var(--hami-espresso);
}

.single-product .hx-pdp__pay-item {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  place-items: unset;
}

.single-product .hx-pdp__pay-ico {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.35rem;
  background: var(--hami-espresso);
  opacity: 0.9;
}

.hx-pdp__pay-item--pay .hx-pdp__pay-ico {
  mask: none;
  background:
    linear-gradient(135deg, #2a221d, #14110e);
  border-radius: 0.3rem;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.2);
}

.hx-pdp__pay-item--ship .hx-pdp__pay-ico {
  border-radius: 999px;
  background: var(--hami-leather);
}

.hx-pdp__pay-item--track .hx-pdp__pay-ico {
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  background: #3f3933;
}

.hx-color-family,
.hx-recent {
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 16px 36px rgba(33, 27, 24, 0.05);
}

.hx-color-family__title,
.hx-recent__title {
  margin: 0 0 0.95rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--hami-espresso);
}

.hx-color-family__list,
.hx-recent__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-color-family__list a,
.hx-recent__list a {
  display: grid;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}

.hx-color-family__media,
.hx-recent__media {
  display: block;
  aspect-ratio: 1;
  border-radius: 0.9rem;
  overflow: hidden;
  background: linear-gradient(165deg, #f5efe6, #e7ddd0);
}

.hx-color-family__media img,
.hx-recent__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hx-color-family__name,
.hx-recent__name {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--hami-espresso);
  line-height: 1.4;
}

.hx-color-family__price,
.hx-recent__price {
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c5348;
}

.hx-wish-fab {
  position: fixed;
  inset-inline-start: 1rem;
  bottom: 5.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.75rem 0.35rem 0.55rem;
  border: 0;
  border-radius: 999px;
  background: #14110e;
  color: #fff;
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.28);
  cursor: pointer;
}

.hx-wish-fab > span:first-child {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--hami-leather);
}

.hx-wish-fab__count {
  font-size: 0.8rem;
  font-weight: 800;
}

.hx-wish-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.hx-wish-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(20, 17, 14, 0.45);
  cursor: pointer;
}

.hx-wish-drawer__panel {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  width: min(22rem, 92vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 12px 0 40px rgba(20, 17, 14, 0.18);
  padding: 1rem 1rem 1.25rem;
}

.hx-wish-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hx-wish-drawer__head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.hx-wish-drawer__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #5c5348;
}

.hx-wish-drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: auto;
  flex: 1;
}

.hx-wish-drawer__list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-wish-drawer__list a {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hx-wish-drawer__list img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: cover;
  border-radius: 0.65rem;
  background: #f7f3ec;
}

.hx-wish-drawer__list strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--hami-espresso);
}

.hx-wish-drawer__list em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: 0.78rem;
  color: #78716c;
}

.hx-wish-drawer__list button {
  border: 0;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  color: #78716c;
}

.hx-wish-drawer__empty {
  margin: 1rem 0 0;
  color: #78716c;
  font-size: 0.9rem;
}

.hx-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 1.25rem;
  z-index: 90;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin-inline: auto;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #14110e;
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.hx-toast.is-on {
  opacity: 1;
  transform: translateY(0);
}

.single-product .woocommerce-noreviews {
  display: grid;
  gap: 0.55rem;
  padding: 1rem 1.1rem !important;
  border: 1px dashed rgba(33, 27, 24, 0.14);
  background: linear-gradient(135deg, #faf7f2, #f3ebe1) !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .hx-color-family__list,
  .hx-recent__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .hx-wish-fab {
    bottom: 6.5rem;
  }
}

/* ——— Trust phase: stars, pay badges, ivory media, gallery video, shop hint ——— */

.single-product .hx-pdp__stars {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.7rem;
}

.single-product .hx-pdp__stars .star-rating {
  float: none !important;
  margin: 0 !important;
  color: var(--hami-leather) !important;
}

.single-product .hx-pdp__stars-link {
  color: var(--hami-espresso);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(33, 27, 24, 0.2);
}

.hx-pay-badges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-pay-badges__item {
  display: grid;
  gap: 0.15rem;
  padding: 0.65rem 0.55rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: linear-gradient(165deg, #faf7f2, #f1ebe3);
  text-align: center;
}

.hx-pay-badges__item strong {
  color: var(--hami-espresso);
  font-size: 0.78rem;
  font-weight: 800;
}

.hx-pay-badges__item span {
  color: #78716c;
  font-size: 0.7rem;
  font-weight: 600;
}

.hx-pay-badges__item--secure {
  border-color: rgba(34, 120, 72, 0.2);
}

.hx-pay-badges__item--shetab {
  border-color: rgba(33, 27, 24, 0.14);
}

.hx-pay-badges__item--post {
  border-color: rgba(134, 87, 56, 0.25);
}

/* Ivory product stage — unify shop + PDP media mats */
.woocommerce ul.products li.product .hx-product__media,
.single-product .flex-viewport,
.single-product .woocommerce-product-gallery__image,
.hx-color-family__media,
.hx-recent__media {
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #fffdf9 0%, #f3ebe1 72%, #ebe2d6 100%) !important;
}

.woocommerce ul.products li.product .hx-product__media img,
.single-product .woocommerce-product-gallery img {
  mix-blend-mode: multiply;
  filter: contrast(1.04) saturate(1.02);
}

.hx-gallery-video {
  position: relative;
}

.hx-gallery-video__el,
.hx-gallery-video__frame,
.hx-gallery-video__frame iframe {
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 1rem;
  background: #1a1512;
  object-fit: contain;
}

.hx-gallery-video__frame {
  overflow: hidden;
}

.hx-shop-rating-hint {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(134, 87, 56, 0.08);
  border: 1px solid rgba(134, 87, 56, 0.18);
  color: #5c5348;
  font-size: 0.84rem;
  font-weight: 700;
}

.woocommerce #reviews .comment-text .star-rating {
  color: var(--hami-leather) !important;
}

.woocommerce #reviews .commentlist .comment_container {
  padding: 0.9rem 1rem !important;
  border-radius: 1rem;
  background: #f7f3ec;
  border: 1px solid rgba(33, 27, 24, 0.06);
  margin-bottom: 0.65rem !important;
}

@media (max-width: 720px) {
  .hx-pay-badges {
    grid-template-columns: 1fr;
  }
}

/* ——— Ops phase: account wishlist, gateway marks, UGC photos ——— */

.hx-gateway-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-gateway-marks__item {
  display: grid;
  justify-items: center;
  gap: 0.25rem;
}

.hx-gateway-marks__item em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  color: #78716c;
}

.hx-gateway-marks__item svg {
  display: block;
  border-radius: 0.4rem;
  box-shadow: 0 4px 12px rgba(33, 27, 24, 0.08);
}

.hx-review-photo {
  margin: 0.85rem 0 0 !important;
}

.hx-review-photo input[type="file"] {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  font: inherit;
}

.hx-review-photo__hint {
  display: block;
  margin-top: 0.35rem;
  color: #78716c;
  font-size: 0.78rem;
}

.hx-review-ugc {
  margin: 0.65rem 0 0 !important;
}

.hx-review-ugc img {
  max-width: min(100%, 16rem);
  border-radius: 0.85rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: #f7f3ec;
}

.hx-gallery-cinema-note {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.65rem;
  border-radius: 0.65rem;
  background: rgba(134, 87, 56, 0.1);
  color: #5c5348;
  font-size: 0.78rem;
  font-weight: 700;
}

.hx-account-wish__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.hx-account-wish__head p {
  margin: 0 0 1rem;
  color: #5c5348;
}

.hx-account-wish__empty {
  padding: 1rem;
  border-radius: 0.95rem;
  background: #f7f3ec;
  color: #5c5348;
  font-weight: 700;
}

.hx-account-wish__list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hx-account-wish__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: #fff;
}

.hx-account-wish__link {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.hx-account-wish__media {
  display: block;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
  background: linear-gradient(165deg, #fffdf9, #ebe2d6);
}

.hx-account-wish__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
}

.hx-account-wish__body strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--hami-espresso);
}

.hx-account-wish__body em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  font-size: 0.84rem;
  color: #5c5348;
  font-weight: 700;
}

.hx-account-wish__remove {
  border: 1px solid rgba(33, 27, 24, 0.14);
  border-radius: 999px;
  background: #fff;
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #5c5348;
}

/* Stronger ivory multiply on PDP hero */
.single-product .woocommerce-product-gallery {
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, #fffefb 0%, #f4ebe2 68%, #e8dfd3 100%) !important;
}

/* ——— Schedule phase: cinema + gateway imgs + ops polish ——— */

.hx-cinema {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-cinema__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.14);
  background: #fff;
  color: var(--hami-espresso);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.hx-cinema__toggle[aria-pressed="true"] {
  background: var(--hami-espresso);
  border-color: var(--hami-espresso);
  color: #f6f1e8;
}

.hx-cinema__stage {
  display: none;
  margin-top: 0.55rem;
  aspect-ratio: 1;
  border-radius: 1.05rem;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 55% at 50% 42%, #fffdf9, #ebe2d6);
}

.hx-cinema__stage.is-on {
  display: block;
}

.hx-cinema__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.35s ease, transform 0.9s ease;
  mix-blend-mode: multiply;
}

.hx-cinema__stage img.is-in {
  opacity: 1;
  transform: scale(1);
}

.hx-gateway-marks__img {
  display: block;
  width: 64px;
  height: 32px;
  object-fit: contain;
  border-radius: 0.4rem;
  background: #fff;
  border: 1px solid rgba(33, 27, 24, 0.08);
  padding: 2px;
}

/* ——— Launch phase: ivory grade + review honesty badges ——— */

body.hx-ivory-grade.single-product .woocommerce-product-gallery__image img,
body.hx-ivory-grade.single-product .woocommerce-product-gallery__image--placeholder img {
  mix-blend-mode: multiply;
  filter: saturate(0.94) contrast(1.04) brightness(1.03);
}

body.hx-ivory-grade.single-product .woocommerce-product-gallery {
  background:
    radial-gradient(ellipse 78% 68% at 50% 38%, #fffefb 0%, #f3ebe3 62%, #e6ddd1 100%) !important;
}

.hx-review-badge {
  display: inline-block;
  margin-inline-start: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
  letter-spacing: 0;
}

.hx-review-badge--sample {
  background: rgba(33, 27, 24, 0.06);
  color: #6a5f54;
  border: 1px solid rgba(33, 27, 24, 0.1);
}

.hx-review-badge--verified {
  background: rgba(47, 107, 79, 0.1);
  color: #2f6b4f;
  border: 1px solid rgba(47, 107, 79, 0.22);
}

.hx-gateway-marks__item img.hx-gateway-marks__img[src$=".svg"] {
  background: transparent;
}

/* ——— Growth phase: review campaign, size remind, A/B, thank-you ——— */

.hx-review-campaign {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.95rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #f7f2ea, #efe6da);
  border: 1px solid rgba(33, 27, 24, 0.08);
  color: #4a4239;
  font-size: 0.86rem;
  line-height: 1.55;
}

.hx-review-campaign p {
  margin: 0;
}

.hx-thankyou-review {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border-radius: 0.9rem;
  background: #f7f2ea;
  border: 1px solid rgba(33, 27, 24, 0.1);
}

.hx-thankyou-review h2 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.hx-thankyou-review ul {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-thankyou-review li + li {
  margin-top: 0.35rem;
}

.hx-size-remind {
  position: fixed;
  inset-inline: 0.75rem;
  bottom: 0.85rem;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  max-width: 28rem;
  margin-inline: auto;
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: #14110e;
  color: #f6f1e8;
  box-shadow: 0 10px 28px rgba(20, 17, 14, 0.28);
  font-size: 0.82rem;
}

.hx-size-remind[hidden] {
  display: none !important;
}

.hx-size-remind p {
  margin: 0;
  flex: 1;
}

.hx-size-remind__link {
  color: #e8d5b5;
  font-weight: 700;
  white-space: nowrap;
}

.hx-size-remind__close {
  border: 0;
  background: transparent;
  color: #c9b8a3;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.25rem;
}

.hx-ab-trust-lead {
  margin: 0.35rem 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #5c5348;
}

body.hx-ab-b .hx-ab-trust-lead {
  color: var(--hami-espresso);
}

body.hx-ab-b .single_add_to_cart_button {
  letter-spacing: 0.01em;
}

/* ——— Cart stage: Digikala-class Woo Cart Block framing ——— */

body.hx-cart-stage {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, #fffdf9 0%, transparent 55%),
    linear-gradient(180deg, #f3ebe3 0%, #efe6db 38%, #f7f2ea 100%);
}

body.hx-cart-stage .hami-entry__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.hx-cart-stage .entry-content,
body.hx-cart-stage .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hx-cart-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.4rem, 3.5vw, 2.4rem) clamp(1rem, 3vw, 1.5rem) 1rem;
}

.hx-cart-hero__inner {
  padding: clamp(1.1rem, 2.8vw, 1.75rem) clamp(1.1rem, 2.6vw, 1.85rem);
  border-radius: 1.35rem;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(247, 240, 231, 0.92));
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 18px 48px rgba(33, 27, 24, 0.06);
}

.hx-cart-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #865738;
}

.hx-cart-hero__row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hx-cart-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #14110e;
  line-height: 1.15;
}

.hx-cart-hero__count {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: #14110e;
  color: #f6f1e8;
  font-size: 0.78rem;
  font-weight: 800;
}

.hx-cart-steps {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 1rem 0 0.85rem;
  padding: 0;
}

.hx-cart-steps__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  padding: 0.2rem 0.7rem 0.2rem 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(33, 27, 24, 0.1);
  background: rgba(255, 255, 255, 0.72);
  color: #6a5f54;
  font-size: 0.78rem;
  font-weight: 700;
}

.hx-cart-steps__item span {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(33, 27, 24, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.hx-cart-steps__item.is-active {
  background: #14110e;
  border-color: #14110e;
  color: #f6f1e8;
}

.hx-cart-steps__item.is-active span {
  background: #865738;
  color: #fff;
}

.hx-cart-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.hx-cart-hero__link {
  color: #865738;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

.hx-cart-hero__link--mute {
  color: #6a5f54;
  border-bottom-color: rgba(33, 27, 24, 0.18);
}

/* Cart Block shell */
body.hx-cart-stage .wp-block-woocommerce-cart {
  margin-top: 0.35rem !important;
}

body.hx-cart-stage .wc-block-components-sidebar-layout.wc-block-cart {
  display: grid !important;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.78fr);
  gap: clamp(1rem, 2.5vw, 1.6rem);
  align-items: start;
}

body.hx-cart-stage .wc-block-cart__main {
  margin: 0 !important;
  padding: clamp(1rem, 2.2vw, 1.45rem) !important;
  border-radius: 1.25rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(33, 27, 24, 0.08);
  box-shadow: 0 16px 42px rgba(33, 27, 24, 0.05);
}

body.hx-cart-stage .wc-block-cart__sidebar {
  margin: 0 !important;
  padding: clamp(1rem, 2.2vw, 1.35rem) !important;
  border-radius: 1.25rem;
  background:
    linear-gradient(165deg, #17130f 0%, #2a221c 58%, #1a1511 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 50px rgba(20, 17, 14, 0.28);
  color: #f6f1e8;
  position: sticky;
  top: 5.5rem;
}

body.hx-cart-stage .wc-block-cart__sidebar h2,
body.hx-cart-stage .wc-block-components-title,
body.hx-cart-stage .wp-block-woocommerce-cart-order-summary-heading-block {
  color: #f6f1e8 !important;
  font-size: 1.15rem !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem !important;
}

body.hx-cart-stage .wc-block-cart-items {
  width: 100%;
  border: 0 !important;
  margin: 0 !important;
}

body.hx-cart-stage .wc-block-cart-items__header {
  border: 0 !important;
}

body.hx-cart-stage .wc-block-cart-items__header th {
  padding: 0 0 0.85rem !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(33, 27, 24, 0.08) !important;
  color: #6a5f54 !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

body.hx-cart-stage .wc-block-cart-items__row {
  border: 0 !important;
  border-bottom: 1px solid rgba(33, 27, 24, 0.07) !important;
}

body.hx-cart-stage .wc-block-cart-items__row td {
  padding: 1.1rem 0.35rem !important;
  border: 0 !important;
  vertical-align: middle !important;
}

body.hx-cart-stage .wc-block-cart-item__image img {
  width: 104px !important;
  height: 104px !important;
  object-fit: contain;
  border-radius: 1rem;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, #fffefb, #ebe2d6);
  border: 1px solid rgba(33, 27, 24, 0.08);
  padding: 0.35rem;
  mix-blend-mode: multiply;
}

body.hx-cart-stage .wc-block-components-product-name {
  color: #14110e !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  line-height: 1.35;
}

body.hx-cart-stage .wc-block-cart-item__prices,
body.hx-cart-stage .wc-block-components-product-price {
  color: #5c5348 !important;
  font-weight: 700 !important;
}

body.hx-cart-stage .wc-block-components-product-metadata,
body.hx-cart-stage .wc-block-components-product-details {
  margin-top: 0.35rem;
  color: #865738 !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
}

body.hx-cart-stage .wc-block-components-quantity-selector {
  display: inline-flex !important;
  align-items: center;
  border-radius: 999px !important;
  border: 1px solid rgba(33, 27, 24, 0.14) !important;
  background: #fff !important;
  overflow: hidden;
  margin-top: 0.55rem;
}

body.hx-cart-stage .wc-block-components-quantity-selector__button {
  width: 2.2rem !important;
  height: 2.2rem !important;
  border: 0 !important;
  background: transparent !important;
  color: #14110e !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
}

body.hx-cart-stage .wc-block-components-quantity-selector__input {
  width: 2.4rem !important;
  border: 0 !important;
  background: transparent !important;
  text-align: center;
  font-weight: 800 !important;
  color: #14110e !important;
}

body.hx-cart-stage .wc-block-cart-item__remove-link {
  color: #8a7b6c !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  margin-top: 0.45rem;
}

body.hx-cart-stage .wc-block-cart-item__total .wc-block-components-product-price {
  color: #14110e !important;
  font-size: 1.05rem !important;
  font-weight: 900 !important;
}

/* Sidebar totals on dark panel */
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-item,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-footer-item,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-panel,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-wrapper {
  color: #f0e7db !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-item__label,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-footer-item-tax,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-panel__button {
  color: #d9cbb8 !important;
}

body.hx-cart-stage .wc-block-cart__sidebar .wc-block-formatted-money-amount,
body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  color: #fff !important;
  font-weight: 900 !important;
}

body.hx-cart-stage .wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
  font-size: 1.35rem !important;
}

body.hx-cart-stage .wc-block-cart__sidebar a {
  color: #e8d5b5 !important;
}

body.hx-cart-stage .wc-block-cart__submit-container,
body.hx-cart-stage .wc-block-cart__submit {
  margin-top: 1rem !important;
}

body.hx-cart-stage .wc-block-cart__submit-button,
body.hx-cart-stage a.wc-block-components-button,
body.hx-cart-stage .wc-block-components-button:not(.is-link) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 3.25rem !important;
  padding: 0.75rem 1.1rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #f6f1e8 !important;
  color: #14110e !important;
  font: inherit !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background 0.25s ease;
}

body.hx-cart-stage .wc-block-cart__submit-button:hover,
body.hx-cart-stage a.wc-block-components-button:hover,
body.hx-cart-stage .wc-block-components-button:not(.is-link):hover {
  background: #fff !important;
  transform: translateY(-2px);
  color: #14110e !important;
}

body.hx-cart-stage .wc-block-components-panel__button {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  border-radius: 0.75rem !important;
  padding: 0.65rem 0.8rem !important;
}

/* Empty cart */
/* Cart Block still prints default empty heading — hide it when our panel is present. */
body.hx-cart-stage--empty .wc-block-cart__empty-cart__title,
body.hx-cart-stage--empty .wp-block-woocommerce-empty-cart-block > .wp-block-heading.with-empty-cart-icon,
body.hx-cart-stage--empty .wp-block-woocommerce-empty-cart-block > .wp-block-separator.is-style-dots {
  display: none !important;
}

body.hx-cart-stage--empty .hx-cart-empty {
  margin: 0 0 1.25rem;
}

.hx-cart-empty {
  text-align: center;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  border-radius: 1.35rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% 30%, #fffefb, #efe6da);
  border: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-cart-empty__eyebrow {
  margin: 0 0 0.4rem;
  color: #865738;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-cart-empty__title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3.5vw, 2rem);
  font-weight: 900;
  color: #14110e;
}

.hx-cart-empty__text {
  margin: 0 auto 1.25rem;
  max-width: 32rem;
  color: #5c5348;
  line-height: 1.7;
}

.hx-cart-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  background: #14110e;
  color: #f6f1e8 !important;
  font-weight: 900;
  text-decoration: none !important;
}

/* Trust under cart */
.hx-cart-trust {
  max-width: 1180px;
  margin: 1.25rem auto 0;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.hx-cart-trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 1rem;
  border-radius: 1.15rem;
  background: rgba(255, 252, 247, 0.9);
  border: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-cart-trust__list li {
  padding: 0.55rem 0.65rem;
}

.hx-cart-trust__list strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #14110e;
  font-size: 0.88rem;
}

.hx-cart-trust__list span {
  color: #6a5f54;
  font-size: 0.78rem;
}

/* Classic cart fallback polish */
body.hx-cart-stage .woocommerce-cart-form,
body.hx-cart-stage .cart_totals {
  border-radius: 1.25rem !important;
  background: rgba(255, 252, 247, 0.94) !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  box-shadow: 0 16px 42px rgba(33, 27, 24, 0.05) !important;
}

body.hx-cart-stage .cart_totals {
  background: linear-gradient(165deg, #17130f, #2a221c) !important;
  color: #f6f1e8 !important;
}

body.hx-cart-stage .cart_totals h2,
body.hx-cart-stage .cart_totals th,
body.hx-cart-stage .cart_totals td {
  color: #f6f1e8 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.hx-cart-stage .wc-proceed-to-checkout a.checkout-button {
  border-radius: 999px !important;
  background: #f6f1e8 !important;
  color: #14110e !important;
  font-weight: 900 !important;
}

@media (max-width: 900px) {
  body.hx-cart-stage .wc-block-components-sidebar-layout.wc-block-cart {
    grid-template-columns: 1fr !important;
  }

  body.hx-cart-stage .wc-block-cart__sidebar {
    position: static;
    order: 2;
  }

  body.hx-cart-stage .wc-block-cart__main {
    order: 1;
  }

  .hx-cart-trust__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  body.hx-cart-stage .wc-block-cart-item__image img {
    width: 76px !important;
    height: 76px !important;
  }

  .hx-cart-trust__list {
    grid-template-columns: 1fr;
  }
}

body.hx-cart-stage .wc-block-cart-items__header-product,
body.hx-cart-stage .wc-block-cart__main > h2,
body.hx-cart-stage .wp-block-woocommerce-cart-line-items-block + h2 {
  /* keep table headers */
}

body.hx-cart-stage .wc-block-cart__main .wc-block-cart-items__header-image {
  width: 7.5rem;
}

body.hx-cart-stage .wc-block-components-product-details__value {
  display: inline-flex;
  align-items: center;
  min-height: 1.5rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(134, 87, 56, 0.12);
  color: #865738;
  font-weight: 900;
}

.hx-cart-upsell {
  max-width: 1180px;
  margin: 1.5rem auto 0;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.hx-cart-upsell__head {
  margin-bottom: 0.85rem;
}

.hx-cart-upsell__head p {
  margin: 0 0 0.2rem;
  color: #865738;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-cart-upsell__head h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 900;
  color: #14110e;
}

.hx-cart-upsell__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-cart-upsell__link {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  border-radius: 1.05rem;
  background: rgba(255, 252, 247, 0.95);
  border: 1px solid rgba(33, 27, 24, 0.08);
  text-decoration: none !important;
  color: inherit;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hx-cart-upsell__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(33, 27, 24, 0.08);
}

.hx-cart-upsell__media {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 0.85rem;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #fffefb, #ebe2d6);
  overflow: hidden;
}

.hx-cart-upsell__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hx-cart-upsell__name {
  font-size: 0.9rem;
  font-weight: 800;
  color: #14110e;
  line-height: 1.35;
}

.hx-cart-upsell__price {
  font-size: 0.84rem;
  font-weight: 800;
  color: #5c5348;
}

@media (max-width: 900px) {
  .hx-cart-upsell__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ——— Checkout Digikala-class v2 + sticky mobile CTA ——— */

body.hx-checkout-stage {
  background:
    radial-gradient(ellipse 70% 48% at 82% -8%, rgba(134, 87, 56, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(255, 255, 255, 0.7), transparent 48%),
    linear-gradient(180deg, #f5eee6 0%, #efe6db 42%, #f8f3eb 100%);
}

body.hx-checkout-stage .hami-entry__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.hx-checkout-stage .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

.hx-checkout-hero__total {
  margin-inline-start: auto;
  font-size: 0.95rem;
  font-weight: 900;
  color: #14110e;
  letter-spacing: -0.02em;
}

.hx-checkout-hero__secure {
  color: #6a5f54;
  font-size: 0.78rem;
  font-weight: 700;
}

/* Coupon — compact Digikala chip, not a tall banner stack */
body.hx-checkout-stage .woocommerce-form-coupon-toggle {
  max-width: 1180px;
  margin: 0 auto 0.85rem;
  padding: 0;
  border: 0;
  background: transparent;
}

body.hx-checkout-stage .woocommerce-form-coupon-toggle .woocommerce-info {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 !important;
  padding: 0.7rem 1rem !important;
  border-radius: 999px !important;
  border: 1px dashed rgba(134, 87, 56, 0.35) !important;
  background: rgba(255, 252, 247, 0.92) !important;
  color: #5c5348 !important;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none !important;
}

body.hx-checkout-stage .woocommerce-form-coupon-toggle .woocommerce-info::before {
  display: none;
}

body.hx-checkout-stage form.checkout_coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto 1rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 1rem !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  background: rgba(255, 252, 247, 0.96) !important;
  box-shadow: 0 10px 28px rgba(33, 27, 24, 0.04);
}

body.hx-checkout-stage form.checkout_coupon .form-row {
  margin: 0 !important;
  float: none !important;
  width: auto !important;
  flex: 1 1 180px;
}

body.hx-checkout-stage form.checkout_coupon input#coupon_code {
  min-height: 2.75rem;
  border-radius: 0.75rem !important;
  border: 1px solid rgba(33, 27, 24, 0.14) !important;
}

body.hx-checkout-stage form.checkout_coupon button {
  min-height: 2.75rem;
  padding-inline: 1.15rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #14110e !important;
  color: #f6f1e8 !important;
  font-weight: 800 !important;
}

/* RTL Digikala: form RIGHT, sticky summary LEFT */
body.hx-checkout-stage form.checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.9fr);
  gap: clamp(1rem, 2.4vw, 1.55rem);
  align-items: start;
}

body.hx-checkout-stage #customer_details {
  margin: 0 !important;
  padding: clamp(1.15rem, 2.4vw, 1.65rem) !important;
  border-radius: 1.4rem !important;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 250, 244, 0.96)) !important;
  border: 1px solid rgba(33, 27, 24, 0.07) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(33, 27, 24, 0.06);
  float: none !important;
  width: 100% !important;
}

body.hx-checkout-stage .hx-checkout-aside {
  position: sticky;
  top: 5.25rem;
  margin: 0;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  border-radius: 1.4rem;
  background:
    linear-gradient(165deg, #fffdf9 0%, #f7f0e7 55%, #f3ebe1 100%);
  border: 1px solid rgba(33, 27, 24, 0.09);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 50px rgba(33, 27, 24, 0.1);
}

body.hx-checkout-stage #order_review_heading {
  margin: 0 0 0.85rem !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  clip: auto;
  width: auto;
  height: auto;
  overflow: visible;
  font-size: 1.12rem !important;
  font-weight: 900 !important;
  color: #14110e !important;
  letter-spacing: -0.02em;
}

body.hx-checkout-stage #order_review {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #14110e !important;
  position: static;
  float: none !important;
  width: 100% !important;
}

body.hx-checkout-stage #order_review table {
  border-collapse: separate;
  border-spacing: 0;
  margin: 0 0 0.85rem !important;
}

body.hx-checkout-stage #order_review table,
body.hx-checkout-stage #order_review th,
body.hx-checkout-stage #order_review td {
  color: #2a241f !important;
  border-color: rgba(33, 27, 24, 0.08) !important;
  background: transparent !important;
  font-size: 0.9rem;
}

body.hx-checkout-stage #order_review thead th {
  padding: 0.55rem 0.2rem !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  color: #6a5f54 !important;
  text-transform: none;
  letter-spacing: 0;
}

body.hx-checkout-stage #order_review tbody td,
body.hx-checkout-stage #order_review tfoot th,
body.hx-checkout-stage #order_review tfoot td {
  padding: 0.75rem 0.2rem !important;
  vertical-align: middle;
}

body.hx-checkout-stage #order_review .order-total th,
body.hx-checkout-stage #order_review .order-total td {
  border-top: 1px solid rgba(33, 27, 24, 0.14) !important;
  padding-top: 0.95rem !important;
}

body.hx-checkout-stage #order_review .order-total .amount,
body.hx-checkout-stage #order_review .order-total .woocommerce-Price-amount {
  color: #14110e !important;
  font-weight: 900;
  font-size: 1.2rem;
}

.hx-chk-line {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-align: start;
}

.hx-chk-thumb {
  width: 52px !important;
  height: 52px !important;
  object-fit: cover;
  border-radius: 0.7rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: #fff;
  flex-shrink: 0;
}

.hx-chk-line__txt {
  font-weight: 800;
  line-height: 1.35;
  color: #14110e;
}

body.hx-checkout-stage #payment {
  background: #fff !important;
  border-radius: 1.05rem !important;
  border: 1px solid rgba(33, 27, 24, 0.08);
  padding: 0.9rem !important;
  box-shadow: 0 8px 22px rgba(33, 27, 24, 0.04);
}

body.hx-checkout-stage #payment .payment_methods {
  list-style: none;
  margin: 0 0 0.75rem !important;
  padding: 0 !important;
  border: 0 !important;
}

body.hx-checkout-stage #payment .payment_methods > li {
  margin: 0 0 0.55rem !important;
  padding: 0.7rem 0.8rem !important;
  border-radius: 0.85rem;
  border: 1px solid rgba(33, 27, 24, 0.1);
  background: #faf7f2;
  transition: border-color 0.15s ease, background 0.15s ease;
}

body.hx-checkout-stage #payment .payment_methods > li:has(input:checked) {
  border-color: #14110e;
  background: #fff;
  box-shadow: 0 0 0 1px #14110e;
}

body.hx-checkout-stage #payment .payment_methods,
body.hx-checkout-stage #payment label,
body.hx-checkout-stage #payment p {
  color: #2a241f !important;
}

body.hx-checkout-stage #payment .payment_box {
  margin: 0.55rem 0 0 !important;
  padding: 0.65rem 0.75rem !important;
  border-radius: 0.7rem;
  background: rgba(134, 87, 56, 0.06) !important;
  border: 0 !important;
  color: #5c5348 !important;
}

body.hx-checkout-stage #place_order {
  width: 100% !important;
  min-height: 3.35rem !important;
  margin-top: 0.35rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #14110e !important;
  color: #f6f1e8 !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 32px rgba(20, 17, 14, 0.22);
}

body.hx-checkout-stage #place_order:hover,
body.hx-checkout-stage #place_order:focus-visible {
  background: #865738 !important;
  transform: translateY(-2px);
}

body.hx-checkout-stage .woocommerce-terms-and-conditions-wrapper {
  margin: 0.65rem 0 0.35rem;
  color: #6a5f54;
  font-size: 0.78rem;
  line-height: 1.55;
}

.hx-pay-marks--v2 {
  margin: 0 0 0.85rem;
}

.hx-pay-marks--v2 .hx-pay-marks__item {
  background: #fff;
  border-color: rgba(33, 27, 24, 0.1);
  color: #2a241f;
}

.hx-pay-marks--v2 .hx-pay-marks__item em {
  color: #5c5348;
}

body.hx-checkout--no-shipping #order_review .woocommerce-shipping-totals {
  display: none !important;
}

body.hx-checkout-stage .form-row.hx-chk-hide {
  display: none !important;
}

.hx-cart-steps__item.is-done {
  background: rgba(47, 107, 79, 0.12);
  border-color: rgba(47, 107, 79, 0.28);
  color: #2f6b4f;
}

.hx-cart-steps__item.is-done span {
  background: #2f6b4f;
  color: #fff;
}

.hx-cart-steps__item.is-done a {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
}

.hx-cart-empty-recent {
  max-width: 1180px;
  margin: 1.25rem auto 0;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

.hx-cart-empty-recent[hidden] {
  display: none !important;
}

/* Sticky mobile CTA */
.hx-sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
  background: rgba(20, 17, 14, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hx-sticky-cta[hidden] {
  display: none !important;
}

.hx-sticky-cta__inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 560px;
  margin-inline: auto;
}

.hx-sticky-cta__total {
  margin: 0;
  flex: 1;
  color: #d9cbb8;
  font-size: 0.78rem;
}

.hx-sticky-cta__total strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
}

.hx-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: #f6f1e8;
  color: #14110e !important;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
}

@media (min-width: 901px) {
  .hx-sticky-cta {
    display: none !important;
  }
}

@media (max-width: 900px) {
  body.hx-checkout-stage form.checkout {
    grid-template-columns: 1fr;
  }

  body.hx-checkout-stage #customer_details {
    order: 1;
  }

  body.hx-checkout-stage .hx-checkout-aside {
    order: 2;
    position: static;
  }

  body.hx-cart-stage--filled,
  body.hx-checkout-stage {
    padding-bottom: 5.5rem;
  }
}

body.hx-checkout-stage #customer_details .col-1,
body.hx-checkout-stage #customer_details .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
}

body.hx-checkout-stage #customer_details .col2-set {
  display: grid;
  gap: 1.15rem;
}

body.hx-checkout-stage .woocommerce-billing-fields h3,
body.hx-checkout-stage .woocommerce-additional-fields h3,
body.hx-checkout-stage .woocommerce-shipping-fields h3 {
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(33, 27, 24, 0.08);
  font-size: 1.12rem;
  font-weight: 900;
  color: #14110e;
  letter-spacing: -0.02em;
}

body.hx-checkout-stage .woocommerce-billing-fields h3::after {
  content: "";
  display: block;
  width: 2.4rem;
  height: 3px;
  margin-top: 0.55rem;
  border-radius: 999px;
  background: #865738;
}

body.hx-checkout-stage .form-row {
  margin-bottom: 0.95rem !important;
  padding: 0 !important;
}

body.hx-checkout-stage .form-row label {
  margin-bottom: 0.35rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #3d352e !important;
}

body.hx-checkout-stage .form-row .required {
  color: #865738 !important;
  text-decoration: none !important;
  border: 0 !important;
}

body.hx-checkout-stage .form-row input.input-text,
body.hx-checkout-stage .form-row textarea,
body.hx-checkout-stage .form-row select,
body.hx-checkout-stage .select2-container--default .select2-selection--single {
  min-height: 3rem !important;
  padding: 0.65rem 0.9rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(33, 27, 24, 0.12) !important;
  background: #fff !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.hx-checkout-stage .form-row input.input-text:focus,
body.hx-checkout-stage .form-row textarea:focus,
body.hx-checkout-stage .form-row select:focus,
body.hx-checkout-stage .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #865738 !important;
  box-shadow: 0 0 0 3px rgba(134, 87, 56, 0.18) !important;
  outline: none !important;
}

body.hx-checkout-stage .form-row-first,
body.hx-checkout-stage .form-row-last {
  width: 48% !important;
}

body.hx-checkout-stage .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 3rem !important;
  padding-inline: 0.9rem !important;
  color: #14110e !important;
}

body.hx-checkout-stage .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 3rem !important;
}

body.hx-checkout-stage .hx-checkout-trust {
  max-width: 1180px;
  margin: 1.35rem auto 0;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
}

/* ——— Thank-you / order-received stage ——— */

body.hx-thankyou-stage {
  background:
    radial-gradient(ellipse 90% 55% at 50% -10%, #fffdf9 0%, transparent 55%),
    linear-gradient(180deg, #f3ebe3 0%, #efe6db 40%, #f7f2ea 100%);
}

body.hx-thankyou-stage .hami-entry__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.hx-thankyou-stage .woocommerce-order {
  max-width: 820px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

body.hx-thankyou-stage .woocommerce-notice,
body.hx-thankyou-stage .woocommerce-thankyou-order-received {
  border-radius: 1rem;
  border: 1px solid rgba(47, 107, 79, 0.22);
  background: rgba(47, 107, 79, 0.08);
  color: #1f4d38;
  font-weight: 700;
}

.hx-thankyou-hero__lead {
  margin: 0.35rem 0 0.75rem;
  color: #5c5348;
  font-size: 0.92rem;
  line-height: 1.65;
  max-width: 36rem;
}

.hx-thankyou-card {
  margin: 1.15rem 0;
  padding: clamp(1rem, 2.4vw, 1.4rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(165deg, #17130f 0%, #2a221c 58%, #1a1511 100%);
  color: #f6f1e8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 50px rgba(20, 17, 14, 0.22);
}

.hx-thankyou-card__head p {
  margin: 0 0 0.2rem;
  color: #e8d5b5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-thankyou-card__head h2 {
  margin: 0 0 0.9rem;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
}

.hx-thankyou-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hx-thankyou-card__meta li span {
  display: block;
  color: #c9b8a3;
  font-size: 0.74rem;
}

.hx-thankyou-card__meta li strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
}

.hx-thankyou-card__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hx-thankyou-card__items li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hx-thankyou-card__media {
  flex: 0 0 4.5rem;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 0.85rem;
  background: radial-gradient(ellipse 70% 55% at 50% 40%, #fffefb, #ebe2d6);
  overflow: hidden;
}

.hx-thankyou-card__media img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.hx-thankyou-card__body strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
}

.hx-thankyou-card__body em {
  color: #c9b8a3;
  font-style: normal;
  font-size: 0.8rem;
}

.hx-thankyou-next {
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 1.1rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-thankyou-next ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-thankyou-next strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #14110e;
  font-size: 0.88rem;
}

.hx-thankyou-next span,
.hx-thankyou-next a {
  color: #5c5348;
  font-size: 0.8rem;
}

.hx-pay-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
}

.hx-pay-marks__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.2rem;
  padding: 0.25rem 0.55rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hx-pay-marks__item img,
.hx-pay-marks__item svg {
  width: 48px;
  height: 24px;
  object-fit: contain;
}

.hx-pay-marks__item em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: #e8d5b5;
}

body.hx-thankyou-stage .woocommerce-order-details,
body.hx-thankyou-stage .woocommerce-customer-details {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 1.1rem;
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(33, 27, 24, 0.08);
}

@media (max-width: 720px) {
  .hx-thankyou-card__meta,
  .hx-thankyou-next ul {
    grid-template-columns: 1fr;
  }
}

/* ——— Account orders polish (thank-you language) ——— */

body.hx-account-stage .woocommerce-MyAccount-content {
  max-width: 920px;
}

.hx-account-orders-head {
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.96), rgba(247, 240, 231, 0.92));
  border: 1px solid rgba(33, 27, 24, 0.08);
}

.hx-account-orders-head__eyebrow {
  margin: 0 0 0.25rem;
  color: #865738;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-account-orders-head__title {
  margin: 0 0 0.35rem;
  font-size: 1.45rem;
  font-weight: 900;
  color: #14110e;
}

.hx-account-orders-head__text {
  margin: 0;
  color: #5c5348;
  font-size: 0.9rem;
}

body.hx-account-stage .woocommerce-orders-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background: rgba(255, 252, 247, 0.96);
  box-shadow: 0 14px 36px rgba(33, 27, 24, 0.05);
}

body.hx-account-stage .woocommerce-orders-table thead th {
  background: #14110e;
  color: #f6f1e8;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.85rem 1rem;
  border: 0;
}

body.hx-account-stage .woocommerce-orders-table td {
  padding: 0.95rem 1rem;
  border-color: rgba(33, 27, 24, 0.07);
  vertical-align: middle;
}

body.hx-account-stage .woocommerce-orders-table .woocommerce-button,
body.hx-account-stage .woocommerce-orders-table a.button {
  min-height: 2.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 0;
  background: #14110e;
  color: #f6f1e8 !important;
  font-weight: 800;
  text-decoration: none !important;
}

.hx-account-order-card {
  margin: 0 0 1.15rem;
  padding: 1.1rem 1.25rem;
  border-radius: 1.2rem;
  background: linear-gradient(165deg, #17130f 0%, #2a221c 58%, #1a1511 100%);
  color: #f6f1e8;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hx-account-order-card__eyebrow {
  margin: 0 0 0.2rem;
  color: #e8d5b5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-account-order-card__title {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.hx-account-order-card__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-account-order-card__meta span {
  display: block;
  color: #c9b8a3;
  font-size: 0.74rem;
}

.hx-account-order-card__meta strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-size: 0.92rem;
}

body.hx-account-stage .woocommerce-MyAccount-navigation {
  border-radius: 1.1rem;
  overflow: hidden;
}

@media (max-width: 720px) {
  .hx-account-order-card__meta {
    grid-template-columns: 1fr;
  }
}

/* ——— Account Digikala-class v2 (gate + dashboard) ——— */

body.hx-account-gate,
body.hx-account-in {
  background:
    radial-gradient(ellipse 70% 48% at 82% -8%, rgba(134, 87, 56, 0.09), transparent 52%),
    radial-gradient(ellipse 55% 40% at 8% 12%, rgba(255, 255, 255, 0.7), transparent 48%),
    linear-gradient(180deg, #f5eee6 0%, #efe6db 42%, #f8f3eb 100%);
}

body.hx-account-gate .hami-entry__title,
body.hx-account-in.hx-account-stage--v2 .hami-entry__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.hx-account-gate .woocommerce,
body.hx-account-in .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

/* Login gate: story RIGHT (RTL col1), form LEFT */
.hx-gate.hx-gate--v2,
body.hx-account-gate .hx-gate {
  display: grid;
  grid-template-columns: minmax(17rem, 0.92fr) minmax(20rem, 1.08fr);
  gap: 0;
  min-height: min(70vh, 640px);
  margin: 0.5rem auto 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 20% 0%, rgba(134, 87, 56, 0.28), transparent 55%),
    linear-gradient(165deg, #17130f 0%, #2a221c 55%, #14110e 100%);
  color: #f6f1e8;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 28px 64px rgba(20, 17, 14, 0.22);
}

body.hx-account-gate .hx-gate__story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.65rem;
  padding: clamp(1.6rem, 4vw, 3rem);
  color: #f6f1e8;
}

body.hx-account-gate .hx-gate__mark {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 181, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #e8d5b5;
  font-size: 1.45rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(232, 213, 181, 0.08);
}

body.hx-account-gate .hx-gate__en {
  margin: 0;
  color: #e8d5b5;
  font-family: Cormorant, "Times New Roman", serif;
  font-size: 1.35rem;
  letter-spacing: 0.28em;
  font-weight: 700;
}

body.hx-account-gate .hx-gate__title {
  margin: 0;
  color: #fff !important;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

body.hx-account-gate .hx-gate__lead {
  margin: 0;
  max-width: 22rem;
  color: rgba(246, 241, 232, 0.82) !important;
  font-size: 0.95rem;
  line-height: 1.75;
}

body.hx-account-gate .hx-gate__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
}

body.hx-account-gate .hx-gate__facts li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 213, 181, 0.35);
  color: #e8d5b5;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
}

body.hx-account-gate .hx-gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: clamp(0.85rem, 2vw, 1.25rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.99), rgba(255, 250, 244, 0.97));
  color: #14110e;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

body.hx-account-gate .hx-gate__panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 900;
  color: #14110e;
  letter-spacing: -0.02em;
}

body.hx-account-gate .hx-gate__hint {
  margin: 0 0 1rem;
  color: #6a5f54;
  font-size: 0.86rem;
  line-height: 1.55;
}

body.hx-account-gate .hx-gate .form-row label {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #3d352e !important;
}

body.hx-account-gate .hx-gate .input-text,
body.hx-account-gate .hx-gate input[type="text"],
body.hx-account-gate .hx-gate input[type="password"],
body.hx-account-gate .hx-gate input[type="email"] {
  min-height: 3rem !important;
  padding: 0.65rem 0.9rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(33, 27, 24, 0.12) !important;
  background: #fff !important;
}

body.hx-account-gate .hx-gate .input-text:focus,
body.hx-account-gate .hx-gate input:focus {
  border-color: #865738 !important;
  box-shadow: 0 0 0 3px rgba(134, 87, 56, 0.18) !important;
  outline: none !important;
}

body.hx-account-gate .hx-gate__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 0.35rem;
}

body.hx-account-gate .woocommerce-form-login__submit,
body.hx-account-gate .woocommerce-form-register__submit {
  min-height: 3.1rem !important;
  padding-inline: 1.4rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #14110e !important;
  color: #f6f1e8 !important;
  font-weight: 900 !important;
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.2);
}

body.hx-account-gate .woocommerce-form-login__submit:hover,
body.hx-account-gate .woocommerce-form-register__submit:hover {
  background: #865738 !important;
}

body.hx-account-gate .lost_password a {
  color: #865738;
  font-weight: 800;
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

body.hx-account-gate .hx-gate__cols {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  body.hx-account-gate .hx-gate__cols.col2-set {
    grid-template-columns: 1fr 1fr;
  }

  body.hx-account-gate .hx-gate__cols .col-1,
  body.hx-account-gate .hx-gate__cols .col-2 {
    float: none !important;
    width: 100% !important;
  }
}

@media (max-width: 860px) {
  body.hx-account-gate .hx-gate {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.hx-account-gate .hx-gate__story {
    padding-bottom: 0.25rem;
  }
}

/* Logged-in: nav RIGHT, content LEFT (RTL Digikala) */
body.hx-account-in .woocommerce {
  display: flex !important;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
}

@media (min-width: 860px) {
  body.hx-account-in .woocommerce {
    flex-direction: row;
    align-items: flex-start;
  }
}

.hx-account-hero__lead {
  margin: 0.55rem 0 0;
  color: #5c5348;
  font-size: 0.92rem;
  max-width: 36rem;
  line-height: 1.65;
}

body.hx-account-in .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0.65rem;
  border-radius: 1.35rem !important;
  background: linear-gradient(165deg, #17130f 0%, #2a221c 58%, #14110e 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(20, 17, 14, 0.16);
  overflow: hidden;
}

@media (min-width: 860px) {
  body.hx-account-in .woocommerce-MyAccount-navigation {
    width: 15.5rem !important;
    flex: 0 0 15.5rem;
    position: sticky;
    top: 5.5rem;
  }
}

body.hx-account-in .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

body.hx-account-in .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.45rem 0.85rem;
  border-radius: 0.85rem;
  color: #f0e7db !important;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none !important;
  background: transparent;
  border: 0;
}

body.hx-account-in .woocommerce-MyAccount-navigation a:hover,
body.hx-account-in .woocommerce-MyAccount-navigation .is-active a {
  background: #865738 !important;
  color: #fff !important;
}

body.hx-account-in .woocommerce-MyAccount-content {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(1.15rem, 2.4vw, 1.75rem) !important;
  border-radius: 1.4rem !important;
  border: 1px solid rgba(33, 27, 24, 0.08) !important;
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 250, 244, 0.96)) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 18px 48px rgba(33, 27, 24, 0.06);
  color: #14110e;
  line-height: 1.8;
}

body.hx-account-in .woocommerce-MyAccount-content a {
  color: #865738;
  font-weight: 800;
}

.hx-acc-dash__hello {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: #14110e;
}

.hx-acc-dash__lead {
  margin: 0 0 1.1rem;
  color: #5c5348;
  font-size: 0.92rem;
}

.hx-acc-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.35rem 0 0.5rem;
}

@media (max-width: 640px) {
  .hx-acc-cards {
    grid-template-columns: 1fr;
  }
}

.hx-acc-cards__item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(33, 27, 24, 0.09);
  background: #fff;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(33, 27, 24, 0.04);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.hx-acc-cards__item:hover {
  transform: translateY(-2px);
  border-color: rgba(134, 87, 56, 0.35);
}

.hx-acc-cards__item strong {
  color: #14110e;
  font-size: 1rem;
  font-weight: 900;
}

.hx-acc-cards__item span {
  color: #6a5f54;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
}

/* ——— Account shell v3: one frame, denser Digikala layout ——— */

body.hx-account-in .woocommerce {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 1.5rem);
  padding-block: 0.85rem 2.5rem;
  display: block !important;
}

.hx-acc-shell {
  border-radius: 1.5rem;
  border: 1px solid rgba(33, 27, 24, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 254, 251, 0.98), rgba(255, 250, 244, 0.96));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 22px 50px rgba(33, 27, 24, 0.07);
  overflow: hidden;
}

.hx-acc-shell__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: clamp(1rem, 2.2vw, 1.35rem) clamp(1.05rem, 2.4vw, 1.5rem);
  border-bottom: 1px solid rgba(33, 27, 24, 0.07);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(247, 240, 231, 0.92));
}

.hx-acc-shell__eyebrow {
  margin: 0 0 0.2rem;
  color: #865738;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hx-acc-shell__title {
  margin: 0;
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #14110e;
  line-height: 1.2;
}

.hx-acc-shell__lead {
  margin: 0.35rem 0 0;
  max-width: 34rem;
  color: #5c5348;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hx-acc-shell__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
}

.hx-acc-shell__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0.4rem 1.05rem;
  border-radius: 999px;
  background: #14110e;
  color: #f6f1e8 !important;
  font-weight: 900;
  font-size: 0.84rem;
  text-decoration: none !important;
}

.hx-acc-shell__btn:hover {
  background: #865738;
}

.hx-acc-shell__link {
  color: #865738;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(134, 87, 56, 0.35);
}

.hx-acc-shell__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0.85rem;
}

@media (min-width: 860px) {
  .hx-acc-shell__body {
    flex-direction: row;
    align-items: stretch;
    gap: 0.85rem;
    padding: 1rem;
  }
}

body.hx-account-in .hx-acc-shell .woocommerce-MyAccount-navigation {
  float: none !important;
  width: 100% !important;
  flex: 0 0 auto;
  margin: 0 !important;
  position: static !important;
  top: auto !important;
  padding: 0.55rem;
  border-radius: 1.15rem !important;
  background: linear-gradient(165deg, #17130f 0%, #2a221c 58%, #14110e 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

@media (min-width: 860px) {
  body.hx-account-in .hx-acc-shell .woocommerce-MyAccount-navigation {
    width: 14.5rem !important;
    flex: 0 0 14.5rem;
    position: sticky !important;
    top: 5.5rem;
    align-self: flex-start;
  }
}

body.hx-account-in .hx-acc-shell .woocommerce-MyAccount-content {
  float: none !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(0.95rem, 2vw, 1.25rem) !important;
  border-radius: 1.15rem !important;
  border: 1px solid rgba(33, 27, 24, 0.07) !important;
  background: #fff !important;
  box-shadow: none;
}

/* Kill old separate hero if any leftover */
body.hx-account-in .hx-account-hero {
  display: none !important;
}

.hx-acc-dash__hint,
.hx-acc-section-note,
.hx-acc-address-intro {
  margin: 0 0 0.95rem;
  color: #6a5f54;
  font-size: 0.88rem;
  line-height: 1.55;
}

.hx-acc-empty {
  margin: 0.25rem 0;
  padding: 1.35rem 1.2rem;
  border-radius: 1.15rem;
  border: 1px dashed rgba(134, 87, 56, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 253, 249, 0.98), rgba(247, 240, 231, 0.9));
  text-align: center;
}

.hx-acc-empty__eyebrow {
  margin: 0 0 0.3rem;
  color: #865738;
  font-size: 0.74rem;
  font-weight: 800;
}

.hx-acc-empty__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 900;
  color: #14110e;
}

.hx-acc-empty__text {
  margin: 0 0 1rem;
  color: #5c5348;
  font-size: 0.9rem;
}

.hx-acc-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.45rem 1.25rem;
  border-radius: 999px;
  background: #14110e;
  color: #f6f1e8 !important;
  font-weight: 900;
  text-decoration: none !important;
}

body.hx-account-in .woocommerce-info,
body.hx-account-in .woocommerce-message,
body.hx-account-in .woocommerce-error {
  margin: 0 0 0.9rem !important;
  padding: 0.85rem 1rem !important;
  border-radius: 0.95rem !important;
  border: 1px solid rgba(33, 27, 24, 0.1) !important;
  border-top: 1px solid rgba(33, 27, 24, 0.1) !important;
  background: #faf7f2 !important;
  box-shadow: none !important;
}

body.hx-account-in .woocommerce-info .button,
body.hx-account-in .woocommerce-message .button {
  border-radius: 999px !important;
  background: #14110e !important;
  color: #f6f1e8 !important;
  border: 0 !important;
  font-weight: 800 !important;
}

.hx-acc-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (max-width: 720px) {
  .hx-acc-addresses {
    grid-template-columns: 1fr;
  }
}

.hx-acc-address-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(33, 27, 24, 0.09);
  background: #faf7f2;
}

.hx-acc-address-card.is-empty {
  border-style: dashed;
  border-color: rgba(134, 87, 56, 0.3);
}

.hx-acc-address-card__head h2 {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 900;
  color: #14110e;
}

.hx-acc-address-card__body {
  flex: 1;
  color: #3d352e;
  font-size: 0.9rem;
  line-height: 1.7;
}

.hx-acc-address-card__body address {
  font-style: normal;
}

.hx-acc-address-card__empty {
  margin: 0;
  color: #6a5f54;
}

.hx-acc-address-card__foot {
  margin-top: 0.95rem;
}

.hx-acc-address-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: #14110e;
  color: #f6f1e8 !important;
  font-weight: 800;
  font-size: 0.84rem;
  text-decoration: none !important;
}

.hx-acc-address-card__cta:hover {
  background: #865738;
}

/* Edit account form */
body.hx-account-in .woocommerce-EditAccountForm .form-row label {
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #3d352e !important;
}

body.hx-account-in .woocommerce-EditAccountForm .input-text,
body.hx-account-in .woocommerce-EditAccountForm input[type="text"],
body.hx-account-in .woocommerce-EditAccountForm input[type="email"],
body.hx-account-in .woocommerce-EditAccountForm input[type="password"] {
  min-height: 2.95rem !important;
  padding: 0.6rem 0.85rem !important;
  border-radius: 0.85rem !important;
  border: 1px solid rgba(33, 27, 24, 0.12) !important;
  background: #fff !important;
}

body.hx-account-in .woocommerce-EditAccountForm .input-text:focus {
  border-color: #865738 !important;
  box-shadow: 0 0 0 3px rgba(134, 87, 56, 0.16) !important;
  outline: none !important;
}

body.hx-account-in .woocommerce-EditAccountForm fieldset {
  margin: 1.15rem 0 0 !important;
  padding: 1rem 1.05rem !important;
  border-radius: 1.05rem !important;
  border: 1px solid rgba(33, 27, 24, 0.09) !important;
  background: #faf7f2;
}

body.hx-account-in .woocommerce-EditAccountForm legend {
  padding-inline: 0.35rem;
  font-weight: 900;
  color: #14110e;
}

body.hx-account-in .woocommerce-EditAccountForm .woocommerce-Button,
body.hx-account-in .woocommerce-EditAccountForm button[type="submit"] {
  min-height: 2.9rem !important;
  padding-inline: 1.25rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #14110e !important;
  color: #f6f1e8 !important;
  font-weight: 900 !important;
}

body.hx-account-in .hx-account-orders-head {
  display: none;
}

.hx-acc-cards {
  margin-top: 0.15rem;
}
