/* Shop and product — luxury catalog */

.hx-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 0 1.1rem;
  color: #78716c;
  font-size: 0.82rem;
}

.hx-crumb a {
  color: inherit;
  text-decoration: none;
}

.hx-crumb a:hover {
  color: #1c1917;
}

.hx-crumb__sep {
  color: #d4af37;
}

.hami-main--shop {
  padding-top: 1.35rem;
  padding-bottom: 4.5rem;
}

.hami-main--shop .page-title,
.woocommerce .woocommerce-products-header__title {
  font-size: clamp(1.7rem, 2.2vw, 2.15rem) !important;
  letter-spacing: 0 !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}

.hx-shop-lead {
  max-width: 36rem;
  margin: 0.55rem 0 0;
  color: #57534e;
  font-size: 1rem;
}

.hx-catalog {
  display: grid;
  gap: 1.15rem;
  align-items: start;
  margin-top: 1.15rem;
}

/* Safety: never let stray widgets sit as catalog grid siblings. */
.hx-catalog > .hami-shop-filters {
  display: none !important;
}

.hx-filters {
  padding: 1rem 1rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px rgba(28, 25, 23, 0.05);
}

/* Sidebar form must be vertical — main.css flex row crushed size chips to ~20px. */
.hx-filters .hami-filter-form,
.hx-filters .hx-filters__form {
  display: grid !important;
  width: 100%;
  gap: 0.95rem;
  align-items: stretch;
}

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

.hx-filters__panel {
  border: 0;
  margin: 0;
  padding: 0;
}

.hx-filters__panel > summary {
  list-style: none;
  cursor: pointer;
}

.hx-filters__panel > summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 960px) {
  .hx-filters__summary {
    display: none;
  }
}

.hx-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(28, 25, 23, 0.08);
}

.hx-filters__head h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.hx-filters__clear {
  color: #78716c;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.hx-filters__clear:hover {
  color: #1c1917;
}

.hx-filter {
  margin: 0 0 0.95rem;
  padding: 0;
  border: 0;
  min-width: 0;
}

.hx-filter legend {
  margin-bottom: 0.45rem;
  padding: 0;
  color: #44403c;
  font-size: 0.8rem;
  font-weight: 800;
}

.hx-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hx-filter__list--size {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
}

.hx-filter__list--color {
  display: grid;
  gap: 0.4rem;
}

.hx-filter .hami-chip {
  width: 100%;
  justify-content: center;
  min-height: 2.45rem;
  border-radius: 0.7rem;
  border: 1px solid #e7e2da;
  background: #fff;
  color: #1c1917;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.hx-filter__list--size .hami-chip.is-active,
.hx-filter__list--size .hami-chip:has(input:checked) {
  background: #1c1917;
  border-color: #1c1917;
  color: #fafaf9;
}

.hami-swatch {
  justify-content: flex-start;
  gap: 0.55rem;
  padding-inline: 0.7rem;
}

.hami-swatch::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #d6d3d1;
  box-shadow: inset 0 0 0 1px rgba(28, 25, 23, 0.16);
}

.hami-swatch--black::before { background: #1c1917; }
.hami-swatch--brown::before { background: #6b4226; }
.hami-swatch--navy::before { background: #1e2a44; }
.hami-swatch--olive::before { background: #4d5534; }

.hami-swatch.is-active,
.hami-swatch:has(input:checked) {
  background: #fff;
  color: #1c1917;
  border-color: #1c1917;
  box-shadow: inset 0 0 0 1px #1c1917;
}

.hx-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.hx-price label {
  display: grid;
  gap: 0.2rem;
  color: #78716c;
  font-size: 0.75rem;
  font-weight: 700;
}

.hx-price input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #e7e2da;
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.35rem 0.6rem;
  color: #1c1917;
  font: inherit;
  font-weight: 700;
}

.hx-filters__apply {
  width: 100%;
  min-height: 2.7rem;
  border: 0;
  border-radius: 0.8rem;
  background: #d4af37;
  color: #1c1917;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hx-filters__apply:hover {
  background: #e6cb8d;
}

@media (min-width: 960px) {
  /*
   * Lock physical columns independent of page RTL:
   * products = left (wide), filters = right (sticky sidebar).
   * Children keep direction:rtl for Persian content.
   */
  .hx-catalog {
    direction: ltr;
    grid-template-columns: minmax(0, 1fr) 17.75rem;
    gap: 1.5rem 1.75rem;
  }

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

  .hx-filters {
    direction: rtl;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 6.2rem;
  }
}

.hami-shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.75rem;
  margin: 1.25rem 0 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(25, 25, 25, 0.12);
  background: rgba(255, 255, 255, 0.42);
}

.hami-shop-filters strong {
  flex-basis: 100%;
  color: #191919;
}

.hami-shop-filters label {
  display: grid;
  gap: 0.3rem;
  min-width: 9rem;
  color: #57534e;
  font-size: 0.82rem;
  font-weight: 700;
}

.hami-shop-filters select,
.hami-shop-filters button {
  min-height: 2.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(25, 25, 25, 0.18);
  border-radius: 0.65rem;
  font: inherit;
}

.hami-shop-filters button {
  border-color: #191919;
  background: #191919;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.hami-shop-filters a {
  min-height: 2.65rem;
  display: inline-grid;
  place-items: center;
  color: #8d6a32;
  font-weight: 800;
}

@media (max-width: 767px) {
  .hami-shop-filters > * {
    width: 100%;
  }
}

.hx-shop-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1.15rem 0 1.35rem;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
  float: none !important;
  margin: 0 !important;
}

.woocommerce-ordering select {
  appearance: none;
  min-height: 2.6rem;
  padding-block: 0.4rem;
  padding-inline-start: 0.95rem;
  padding-inline-end: 2rem;
  border-radius: 999px;
  border: 1px solid #d6d3d1;
  background:
    linear-gradient(45deg, transparent 50%, #1c1917 50%) 0.85rem 58% / 0.32rem 0.32rem no-repeat,
    linear-gradient(135deg, #1c1917 50%, transparent 50%) 1.05rem 58% / 0.32rem 0.32rem no-repeat,
    #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.2rem 0.75rem !important;
  margin: 0 !important;
  clear: both;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

.woocommerce ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  min-width: 0;
}

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

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

.hx-product__link {
  display: grid;
  gap: 0.8rem;
  color: inherit;
  text-decoration: none;
}

.hx-product__link:focus-visible {
  outline: 3px solid #8d6a32;
  outline-offset: 0.35rem;
  border-radius: 1.2rem;
}

.hx-product__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 1.05rem;
  background: #e8e2d8;
}

.woocommerce ul.products li.product .hx-product__media img {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  aspect-ratio: auto !important;
  object-fit: contain;
  padding: 0.65rem;
  background: transparent;
  border-radius: 0;
  transform: scale(1);
  transition: transform 0.55s 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.06);
}

.hx-product__badge,
.hx-product__view {
  position: absolute;
  z-index: 2;
}

.hx-product__badge {
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: #d4af37;
  color: #1c1917;
  font-size: 0.75rem;
  font-weight: 800;
}

.hx-product__badge--out {
  background: #1c1917;
  color: #fafaf9;
}

.hx-product__view {
  inset-inline: 0.8rem;
  bottom: 0.8rem;
  display: grid;
  place-items: center;
  min-height: 2.5rem;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.88);
  color: #1c1917;
  font-weight: 800;
  font-size: 0.88rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  backdrop-filter: blur(10px);
}

.hx-product:hover .hx-product__view,
.hx-product:focus-within .hx-product__view {
  opacity: 1;
  transform: none;
}

.hx-product__body {
  display: grid;
  gap: 0.15rem;
  padding-inline: 0.15rem;
}

@media (max-width: 767px) {
  .hx-product__view {
    opacity: 1;
    transform: none;
  }
}

.hx-product__cat {
  color: #8d6a32;
  font-size: 0.75rem;
  font-weight: 700;
}

.hx-product__title {
  margin: 0;
  min-height: 2.6em;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hx-product__meta {
  color: #78716c;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
}

.hx-product__price {
  color: #1c1917;
  font-weight: 700;
  font-size: 0.92rem;
}

.hx-product__price del {
  color: #a8a29e;
  font-weight: 500;
  margin-inline-end: 0.35rem;
}

.hx-product__price ins {
  text-decoration: none;
  color: #8d6a32;
}

/* ——— Product page ——— */
.single-product div.product {
  display: block;
}

.hx-pdp-stage {
  display: grid;
  gap: 1.5rem 2.5rem;
  align-items: start;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  min-width: 0;
}

@media (min-width: 900px) {
  .single-product div.product {
    display: block;
    grid-template-columns: none;
  }

  .hx-pdp-stage {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

  .hx-pdp-stage .summary {
    position: sticky;
    top: 6.2rem;
    padding: 1.15rem 1.15rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: inset 0 1px 0 #fff, 0 14px 32px rgba(28, 25, 23, 0.05);
  }
}

.single-product .hx-gallery,
.single-product .woocommerce-product-gallery {
  background: transparent !important;
}

.single-product div.product .woocommerce-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.single-product .flex-viewport {
  height: auto !important;
  border-radius: 1.25rem;
  background: #e8e2d8;
  overflow: hidden;
}

.single-product .woocommerce-product-gallery__image a {
  display: block;
  background: #e8e2d8;
}

.single-product .woocommerce-product-gallery__image {
  border-radius: 1.25rem;
  overflow: hidden;
}

.single-product .woocommerce-product-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e8e2d8;
}

.single-product .woocommerce-product-gallery__trigger {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

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

.single-product .flex-control-thumbs li {
  float: none !important;
  width: 5.4rem !important;
  flex: 0 0 5.4rem;
  margin: 0 !important;
}

.single-product .flex-control-thumbs img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #e8e2d8;
  border-radius: 0.75rem;
  opacity: 0.72;
  border: 2px solid transparent;
  transition: opacity 0.25s ease, border-color 0.25s ease;
}

.single-product .flex-control-thumbs img.flex-active,
.single-product .flex-control-thumbs img:hover {
  opacity: 1;
  border-color: #1c1917;
}

.hx-pdp__kicker {
  margin: 0 0 0.35rem;
  color: #8d6a32;
  font-size: 0.82rem;
  font-weight: 800;
}

.single-product .product_title {
  font-size: clamp(1.7rem, 2.6vw, 2.35rem);
  letter-spacing: 0;
  line-height: 1.25;
}

.single-product .summary .price {
  font-size: 1.45rem !important;
  letter-spacing: -0.03em;
}

.single-product .woocommerce-product-details__short-description {
  color: #44403c;
  line-height: 1.8;
}

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

.single-product form.cart {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  border-top: 1px solid rgba(28, 25, 23, 0.1);
}

.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
  gap: 0.65rem;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  width: 100%;
}

.single-product .quantity {
  justify-self: start;
  margin: 0 !important;
  float: none !important;
}

.single-product .quantity .qty {
  width: 4.4rem;
  min-height: 3.05rem;
  border-radius: 999px;
  border: 1px solid #d6d3d1;
  background: #fff;
  text-align: center;
  font: inherit;
  font-weight: 700;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button {
  border-radius: 1.05rem !important;
  background: #14110e !important;
  color: #fff !important;
  min-height: 3.35rem;
  padding-inline: 1.5rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em;
  box-shadow: 0 16px 32px rgba(20, 17, 14, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.woocommerce div.product form.cart .button.single_add_to_cart_button:hover {
  background: #000 !important;
  color: #fff !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(-1px);
}

.single-product .variations {
  width: 100%;
  margin: 0 0 0.4rem;
}

.single-product .variations td,
.single-product .variations th {
  display: block;
  padding: 0.35rem 0;
  text-align: start;
  background: transparent;
}

.single-product .variations label {
  font-weight: 800;
  font-size: 0.82rem;
}

.hx-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.hx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.hx-pill {
  min-width: 2.7rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d6d3d1;
  background: #fff;
  color: #1c1917;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.hx-pill.is-on,
.hx-pill:hover {
  background: #1c1917;
  border-color: #1c1917;
  color: #fafaf9;
}

.reset_variations {
  display: inline-block;
  margin-top: 0.4rem;
  color: #57534e;
  font-size: 0.82rem;
}

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

.hx-pdp__trust li {
  position: relative;
  padding-inline-start: 1rem;
  color: #44403c;
  font-size: 0.88rem;
}

.hx-pdp__trust li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #211b18;
}

.hx-pdp__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 1rem 0 0;
  color: #78716c;
  font-size: 0.82rem;
}

.hx-pdp__meta a {
  color: #1c1917;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #865738;
}

.single-product .onsale {
  inset-inline-start: 1rem;
  top: 1rem;
  left: auto;
  right: auto;
  margin: 0;
  border-radius: 999px;
  background: #211b18;
  color: #f6f1e8;
  font-weight: 800;
  line-height: 1;
  min-height: 0;
  padding: 0.45rem 0.75rem;
}

.single-product .woocommerce-tabs {
  margin-top: 2.5rem;
  padding-top: 0.4rem;
  border-top: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  display: flex;
  gap: 0.4rem;
  overflow: visible;
  padding: 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(28, 25, 23, 0.12);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before,
.woocommerce div.product .woocommerce-tabs ul.tabs::after,
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 0 !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0.7rem 0.2rem 0.85rem !important;
  margin-inline-end: 1.2rem;
  color: #78716c;
  font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: #1c1917;
  box-shadow: inset 0 -2px 0 #211b18;
}

.woocommerce-Tabs-panel {
  padding-top: 1.2rem;
  line-height: 1.9;
  max-width: 46rem;
}

.woocommerce-Tabs-panel h3 {
  margin: 1.35rem 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
}

.woocommerce-Tabs-panel ul {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

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

.woocommerce-Tabs-panel ul li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.72em;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #865738;
}

.hx-shop-note {
  margin: 2.2rem 0 0;
  max-width: 44rem;
  padding: 1.35rem 1.4rem 1.2rem;
  background: #fff;
  border-radius: 1.15rem;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.05);
}

.hx-shop-note h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.35;
  letter-spacing: 0;
}

.hx-shop-note p {
  margin: 0.45rem 0 0;
  color: #44403c;
  line-height: 1.9;
}

.woocommerce-Tabs-panel > h2,
.related.products > h2,
.upsells.products > h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.related.products,
.upsells.products {
  margin-top: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(28, 25, 23, 0.1);
}

#reviews {
  max-width: 46rem;
}

#review_form_wrapper {
  margin-top: 0.5rem;
  padding: 1.1rem 1.15rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.62);
}

.comment-form {
  display: grid;
  gap: 0.75rem;
}

.comment-form label {
  display: block;
  font-weight: 700;
}

.woocommerce #review_form #respond .form-submit input#submit {
  border: 0 !important;
  border-radius: 999px !important;
  background: #1c1917 !important;
  color: #fafaf9 !important;
  min-height: 2.8rem;
  padding: 0.55rem 1.35rem !important;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea,
.comment-form select {
  width: min(100%, 40rem);
  margin-top: 0.3rem;
  border: 1px solid #d6d3d1;
  border-radius: 0.95rem;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
}

.comment-form .form-submit .submit,
#review_form .submit {
  border: 0;
  border-radius: 999px;
  background: #1c1917;
  color: #fafaf9;
  min-height: 2.8rem;
  padding: 0.55rem 1.35rem;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.woocommerce p.stars a {
  color: #d4af37;
}

.single-product .woocommerce-noreviews {
  color: #57534e;
}

@media (prefers-reduced-motion: reduce) {
  .hx-product__media img,
  .hx-product__view,
  .single-product .single_add_to_cart_button,
  .single-product .flex-control-thumbs img {
    transition: none;
  }
}

/* ——— Customer account ——— */

.hami-account-gate .hami-main {
  padding: 0;
}

.hami-account-gate .hami-container {
  width: 100%;
  max-width: none;
}

.hami-account-gate .hami-entry__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hx-gate {
  display: grid;
  grid-template-columns: minmax(17rem, 0.86fr) minmax(20rem, 1.14fr);
  min-height: calc(100vh - 7.5rem);
  background:
    radial-gradient(ellipse 70% 55% at 80% 0%, rgba(212, 175, 55, 0.2), transparent 55%),
    #0c0a09;
  color: #fafaf9;
}

.hx-gate__story {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.7rem;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.hx-gate__mark {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin: 0;
  border: 1px solid rgba(212, 175, 55, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(212, 175, 55, 0.08);
  color: #d4af37;
  font-size: 1.65rem;
  font-weight: 700;
}

.hx-gate__en {
  margin: 0.2rem 0 0;
  font-family: Cormorant, "Times New Roman", serif;
  font-size: 1.7rem;
  letter-spacing: 0.32em;
  line-height: 1;
}

.hx-gate__title {
  margin: 0.2rem 0 0;
  color: #fafaf9;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.hx-gate__lead {
  max-width: 22rem;
  margin: 0;
  color: rgba(250, 250, 249, 0.78);
  line-height: 1.9;
}

.hx-gate__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.hx-gate__facts li {
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: #d4af37;
  font-size: 0.82rem;
}

.hx-gate__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: clamp(1rem, 2.5vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 1.5rem;
  background: #fafaf9;
  color: #1c1917;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hx-gate__panel h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  letter-spacing: 0;
}

.hx-gate .woocommerce-form-row label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #44403c;
}

.hx-gate .input-text,
.hx-gate input[type="text"],
.hx-gate input[type="password"],
.hx-gate input[type="email"] {
  width: 100%;
  min-height: 3.05rem;
  border: 1px solid #e7e5e4;
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.55rem 0.9rem;
  font: inherit;
  color: #1c1917;
  box-sizing: border-box;
}

.hx-gate .input-text:focus,
.hx-gate input:focus {
  border-color: #d4af37;
  outline: 3px solid rgba(212, 175, 55, 0.28);
  outline-offset: 1px;
}

.hx-gate__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
}

.hx-gate .woocommerce-form-login__rememberme {
  font-weight: 500;
}

.hami-account-gate .hx-gate button.button,
.hami-account-gate .hx-gate button.woocommerce-button {
  width: 100%;
  min-height: 3.15rem;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: #1c1917;
  color: #fafaf9;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  float: none;
}

.hami-account-gate .hx-gate button.button:hover,
.hami-account-gate .hx-gate button.button:focus {
  background: #d4af37;
  color: #1c1917;
}

.hx-gate form.login,
.hx-gate form.register {
  border: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
}

.hx-gate .password-input {
  position: relative;
  display: block;
}

.hx-gate .show-password-input {
  position: absolute;
  inset-inline-end: 0.7rem;
  top: 50%;
  z-index: 2;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: #78716c;
  font-family: Vazirmatn, Tahoma, sans-serif;
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hx-gate .show-password-input::before {
  content: none !important;
}

.hx-gate .show-password-input::after {
  content: "نمایش" !important;
  font-family: Vazirmatn, Tahoma, sans-serif !important;
  font-size: 0.75rem !important;
}

.hx-gate .show-password-input.display-password::after {
  content: "پنهان" !important;
}

.hx-gate .password-input .input-text {
  padding-inline-end: 4.4rem;
}

.hx-gate .lost_password {
  margin: 0.85rem 0 0;
}

.hx-gate .lost_password a {
  color: #78716c;
  text-decoration: none;
}

.hx-gate .lost_password a:hover,
.hx-gate .lost_password a:focus {
  color: #1c1917;
}

.hx-gate .col2-set {
  display: grid;
  gap: 1.5rem;
}

.hx-gate .woocommerce-error,
.hx-gate .woocommerce-message,
.hx-gate .woocommerce-info {
  border-radius: 0.9rem;
}

.hami-account-in .hami-entry__title {
  margin-bottom: 1.1rem;
}

.hami-account-in .woocommerce-MyAccount-navigation {
  margin-bottom: 1.25rem;
}

.hami-account-in .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hami-account-in .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #fff;
  color: #1c1917;
  text-decoration: none;
  border: 1px solid #e7e5e4;
}

.hami-account-in .woocommerce-MyAccount-navigation .is-active a {
  background: #1c1917;
  border-color: #1c1917;
  color: #fafaf9;
}

.hami-account-in .woocommerce-MyAccount-content {
  background: #fff;
  border-radius: 1.15rem;
  padding: clamp(1rem, 2vw, 1.6rem);
}

@media (max-width: 860px) {
  .hx-gate {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hx-gate__story {
    padding-bottom: 0.4rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hx-gate__story,
  .hx-gate__panel {
    animation: hx-gate-in 0.7s ease both;
  }

  .hx-gate__panel {
    animation-delay: 0.08s;
  }
}

@keyframes hx-gate-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
