/* Aniyab UI — Shop (Hub / Catalog / PDP helpers) */

.ay-shop .visually-hidden,
.ay-pdp .visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ay-shop {
  --ay-shop-max: 1222px;
  --ay-shop-gutter: 16px;
  box-sizing: border-box;
  width: 100%;
  min-height: 50vh;
  overflow-x: clip;
  padding: 24px 0 64px;
  background: var(--ay-bg-lighter, #FEFEFE);
  font-family: var(--ay-font-family, dana, IRANSansfanum, Tahoma, sans-serif);
  color: var(--ay-text-main, #404040);
  /* Opacity only: a transform here would make .ay-shop the containing block of the fixed filter/sort sheets */
  animation: ay-shop-fade 0.45s ease both;
  position: relative;
}

.ay-shop.is-loading {
  pointer-events: none;
}

.ay-shop.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgba(254, 254, 254, 0.55);
  backdrop-filter: blur(1px);
}

.ay-shop.is-loading::before {
  content: '';
  position: absolute;
  top: 28%;
  left: 50%;
  z-index: 21;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 2px solid rgba(64, 64, 64, 0.18);
  border-top-color: var(--ay-brand, #0b6e4f);
  border-radius: 50%;
  animation: ay-shop-spin 0.7s linear infinite;
}

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

@keyframes ay-shop-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ay-shop-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ay-shop *,
.ay-shop *::before,
.ay-shop *::after {
  box-sizing: border-box;
}

.ay-shop__inner {
  width: min(100% - 2 * var(--ay-shop-gutter), var(--ay-shop-max));
  margin-inline: auto;
}

[dir="ltr"] .ay-shop-catalog__back svg,
[dir="ltr"] .ay-shop-more svg {
  transform: scaleX(-1);
}

.ay-shop__breadcrumb {
  margin-bottom: 20px;
}

.ay-shop__alerts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.ay-shop__alert-link {
  margin-inline-start: 8px;
  color: var(--ay-brand-primary, #002D71);
  font-weight: 600;
  text-decoration: none;
}

.ay-shop__alert-link:hover {
  text-decoration: underline;
}

.ay-shop__empty {
  margin: 48px 0;
  text-align: center;
  color: var(--ay-text-secondary, #737373);
  font-weight: 500;
}

/* ── Hub head + search ── */

.ay-shop-hub__intro {
  display: flex;
  flex-direction: column;
}

.ay-shop-hub__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  text-align: center;
}

.ay-shop-hub__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.ay-shop-hub__back {
  display: none;
}

.ay-shop-hub__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.4;
  color: var(--ay-text-title, #302E2E);
}

.ay-shop-hub__sub {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-secondary, #737373);
}

.ay-shop-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 640px);
  margin: 0 auto 28px;
  padding-block: 8px;
  padding-inline: 16px 8px;
  background: var(--ay-surface-white, #FFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 12px;
  box-shadow: var(--ay-elevation-sm);
}

.ay-shop-search__icon {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: var(--ay-text-tertiary, #A3A3A3);
  flex: none;
}

.ay-shop-search__icon svg {
  width: 20px;
  height: 20px;
}

.ay-shop-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-main, #404040);
}

.ay-shop-search__input::placeholder {
  color: var(--ay-text-tertiary, #A3A3A3);
}

.ay-shop-search__btn {
  flex: none;
}

/* ── Banners ── */

.ay-shop-banners {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 40px;
}

.ay-shop-banner {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ay-bg-light, #FAFAFA);
  min-height: 180px;
  box-shadow: var(--ay-elevation-sm);
}

.ay-shop-banner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ay-shop-banner--secondary {
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 111, 28, 0.18), transparent 55%),
    linear-gradient(135deg, #fff8f2, #ffe8d6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ay-shop-banner--secondary img {
  width: min(72%, 280px);
  height: auto;
  object-fit: contain;
}

.ay-shop-banner--mobile-only {
  display: none;
}

/* ── Sections ── */

.ay-shop-section {
  margin-bottom: 48px;
}

.ay-shop-section__title {
  margin: 0 0 20px;
  text-align: center;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ay-text-title, #302E2E);
}

.ay-shop-section__title--light {
  color: #fff;
}

.ay-shop-more {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.ay-shop-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ay-brand-primary-light, #0545A6);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.ay-shop-more a:hover {
  text-decoration: underline;
}

/* ── Carousel ── */

.ay-shop-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
}

/* Carousel dots — mobile only (desktop uses the prev/next buttons) */

.ay-shop-dots {
  display: none;
}

.ay-shop-dots__dot {
  flex: none;
  width: 6px;
  height: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 60px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.ay-shop-dots__dot.is-active {
  width: 14px;
  background: #FFFFFF;
}

.ay-shop-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 8px 4px;
}

.ay-shop-carousel__track::-webkit-scrollbar {
  display: none;
}

.ay-shop-carousel__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.ay-shop-carousel__nav {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 10px;
  background: var(--ay-surface-white, #FFF);
  color: var(--ay-text-main, #404040);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ay-shop-carousel__nav:hover {
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  box-shadow: var(--ay-elevation-sm);
}

.ay-shop-carousel__nav svg {
  width: 18px;
  height: 18px;
}

.ay-shop-carousel--on-brand .ay-shop-carousel__nav {
  background: rgba(255, 255, 255, 0.95);
}

/* Category cards */

.ay-shop-cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 140px;
  padding: 16px 12px;
  background: var(--ay-surface-white, #FFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--ay-elevation-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ay-shop-cat-card:hover {
  box-shadow: var(--ay-elevation-active);
  transform: translateY(-2px);
}

.ay-shop-cat-card__media {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: var(--ay-brand-primary-paler, #EBF1FB);
  color: var(--ay-brand-primary, #002D71);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ay-shop-cat-card__media svg {
  width: 28px;
  height: 28px;
}

.ay-shop-cat-card__label {
  font-weight: 600;
  font-size: 13px;
  line-height: 22px;
  text-align: center;
  color: var(--ay-text-title, #302E2E);
}

/* Popular band */

.ay-shop-popular {
  margin: 0 calc(50% - 50vw) 48px;
  width: 100vw;
  padding: 40px 0;
  background:
    url("/images/shop/hub-pattern.png") center/180px repeat,
    linear-gradient(135deg, #ff843c 0%, #ff6f1c 55%, #ed5904 100%);
}

.ay-shop-popular .ay-shop-carousel {
  width: min(100% - 32px, var(--ay-shop-max));
  margin-inline: auto;
}

.ay-shop-section__title--light {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ay-shop-popular__icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: none;
}

.ay-shop-popular__icon svg {
  width: 100%;
  height: 100%;
}

.ay-shop-popular .ay-product-card {
  width: 220px;
  max-width: 220px;
}

/* Product grids */

.ay-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ay-shop-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ay-shop-grid .ay-product-card,
.ay-shop-catalog .ay-product-card {
  max-width: none;
  width: 100%;
}

.ay-shop .ay-product-card__title,
.ay-pdp .ay-product-card__title {
  text-align: start;
}

.ay-product-card__oos-label {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--ay-error, #D92412);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.ay-product-card--compact .ay-product-card__desc {
  display: none;
}

/* CTA */

.ay-shop-cta {
  margin-top: 16px;
}

.ay-shop-cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 32px;
  border-radius: 16px;
  background: linear-gradient(120deg, #1a1a1a 0%, #2c2c2c 100%);
  color: #ffffff;
}

.ay-shop-cta__title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
}

.ay-shop .ay-shop-cta__title {
  color: #ffffff;
}

/* ── Catalog ── */

.ay-shop-catalog__head {
  margin-bottom: 20px;
}

.ay-shop-catalog__title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ay-shop-catalog__back {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--ay-text-main, #404040);
  border-radius: 8px;
  text-decoration: none;
}

.ay-shop-catalog__back:hover {
  background: var(--ay-bg-dark, #F4F4F5);
}

.ay-shop-catalog__back svg {
  width: 20px;
  height: 20px;
}

.ay-shop-catalog__title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-shop-catalog__meta {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ay-text-secondary, #737373);
}

.ay-shop-catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ay-shop-catalog__main {
  min-width: 0;
}

.ay-shop-catalog__mobile-bar,
.ay-shop-catalog__search,
.ay-shop-filters__footer,
.ay-shop-sort-sheet {
  display: none;
}

.ay-shop-filters-backdrop {
  display: none;
}

/* Filter / sort sheet triggers (mobile bar) */

.ay-shop-trigger {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  height: 36px;
  margin: 0;
  padding: 4px 8px;
  background: var(--ay-bg-lighter, #FEFEFE);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 24px;
  color: var(--ay-text-title, #302E2E);
  font: inherit;
  font-weight: 500;
  font-size: 14px;
  line-height: 28px;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.ay-shop-trigger:focus-visible {
  outline: 2px solid var(--ay-brand-primary-light, #0545A6);
  outline-offset: 2px;
}

.ay-shop-trigger.is-active {
  border-color: var(--ay-brand-primary-light, #0545A6);
  color: var(--ay-brand-primary-light, #0545A6);
}

.ay-shop-trigger__icon {
  display: inline-flex;
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--ay-text-main, #404040);
}

.ay-shop-trigger.is-active .ay-shop-trigger__icon {
  color: inherit;
}

.ay-shop-trigger__icon svg {
  width: 100%;
  height: 100%;
}

.ay-shop-trigger__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ay-shop-trigger__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--ay-brand-primary-light, #0545A6);
  color: #FFFFFF;
  font-size: 11px;
  line-height: 1;
}

.ay-shop-filters__head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ay-shop-filters__close {
  display: none;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ay-bg-dark, #F4F4F5);
  color: var(--ay-text-main, #404040);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ay-shop-filters__close svg {
  width: 24px;
  height: 24px;
}

.ay-shop-filters {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--ay-surface-white, #FFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 12px;
}

.ay-shop-filters__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ay-shop-filters__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-shop-filters__clear {
  font-size: 12px;
  color: var(--ay-text-secondary, #737373);
  text-decoration: none;
}

.ay-shop-filters__clear:hover {
  color: var(--ay-brand-primary-light, #0545A6);
}

.ay-shop-filters__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ay-shop-filters__product-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ay-shop-filters__product-search-btn {
  width: 100%;
}

.ay-shop-filters__search {
  position: relative;
  display: block;
}

.ay-shop-filters__search-icon {
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--ay-text-tertiary, #A3A3A3);
  pointer-events: none;
  z-index: 1;
}

.ay-shop-filters__search-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.ay-shop-filters__search input {
  width: 100%;
  height: 40px;
  padding-block: 8px;
  padding-inline: 36px 12px; /* space for icon on inline-start (RTL-safe) */
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  outline: none;
  background: var(--ay-bg-light, #FAFAFA);
}

.ay-shop-filters__search input:focus {
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  background: #fff;
}

.ay-shop-filters__list {
  max-height: 220px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-inline-end: 4px;
}

.ay-shop-filters__option {
  width: 100%;
  justify-content: flex-start;
  padding: 4px 0;
  text-decoration: none;
  color: inherit;
}

.ay-shop-filters__option.is-active .ay-check__label {
  color: var(--ay-brand-primary-light, #0545A6);
  font-weight: 600;
}

.ay-shop-filters__option.is-active .ay-check__control::before {
  background: var(--ay-brand-primary-light, #0545A6);
  border-color: var(--ay-brand-primary-light, #0545A6);
}

.ay-shop-filters__option.is-active .ay-check__control::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.ay-shop-filters__switch-row {
  padding-top: 4px;
  border-top: 1px solid var(--ay-border-light, #E7E5E4);
}

.ay-shop-filters__switch {
  width: 100%;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  min-height: 44px;
}

.ay-shop-filters__switch .ay-switch__track.is-on {
  background: var(--ay-accent-blue, #2D7AFE);
}

.ay-shop-filters__switch:has(.ay-switch__track.is-on) .ay-switch__thumb {
  left: 6px;
}

.ay-shop-sort {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 20px;
  padding: 12px 14px;
  background: var(--ay-bg-light, #FAFAFA);
  border-radius: 12px;
}

.ay-shop-sort__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ay-text-secondary, #737373);
}

.ay-shop-sort__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ay-shop__pager {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

/* ── PDP ── */

.ay-pdp {
  --ay-shop-max: 1222px;
  box-sizing: border-box;
  width: 100%;
  min-height: 50vh;
  padding: 24px 0 64px;
  background: var(--ay-bg-light, #FAFAFA);
  font-family: var(--ay-font-family, dana, IRANSansfanum, Tahoma, sans-serif);
  color: var(--ay-text-main, #404040);
  animation: ay-shop-fade-in 0.45s ease both;
}

.ay-pdp *,
.ay-pdp *::before,
.ay-pdp *::after {
  box-sizing: border-box;
}

.ay-pdp__inner {
  width: min(100% - 32px, var(--ay-shop-max));
  margin-inline: auto;
}

.ay-pdp__breadcrumb {
  margin-bottom: 16px;
}

.ay-pdp__alerts {
  margin-bottom: 12px;
}

.ay-pdp-summary {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 20px;
  padding: 20px;
  background: var(--ay-surface-white, #FFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 16px;
  box-shadow: var(--ay-elevation-sm);
}

.ay-pdp-gallery {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.ay-pdp-gallery--empty {
  grid-template-columns: 1fr;
}

.ay-pdp-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ay-pdp-gallery__thumb {
  position: relative;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 10px;
  background: var(--ay-bg-light, #FAFAFA);
  overflow: hidden;
  cursor: pointer;
}

.ay-pdp-gallery__thumb.is-active {
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  box-shadow: 0 0 0 2px rgba(57, 116, 205, 0.2);
}

.ay-pdp-gallery__thumb img,
.ay-pdp-gallery__main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ay-pdp-gallery__thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ay-text-tertiary, #A3A3A3);
  background: var(--ay-bg-light, #FAFAFA);
}

.ay-pdp-gallery__thumb-ph[hidden] {
  display: none !important;
}

.ay-pdp-gallery__thumb-ph svg {
  width: 22px;
  height: 22px;
}

.ay-pdp-gallery__main {
  position: relative;
  min-height: 320px;
  border-radius: 12px;
  background: var(--ay-bg-light, #FAFAFA);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: zoom-in;
}

.ay-pdp-gallery__main--placeholder {
  cursor: default;
  min-height: 280px;
}

.ay-pdp-gallery__main img {
  max-height: 360px;
}

.ay-pdp-gallery__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  min-height: 240px;
  padding: 24px;
  color: var(--ay-text-secondary, #737373);
  background:
    linear-gradient(135deg, rgba(0, 45, 113, 0.04), rgba(255, 111, 28, 0.06)),
    var(--ay-bg-light, #FAFAFA);
  border-radius: 12px;
  text-align: center;
}

.ay-pdp-gallery__placeholder[hidden] {
  display: none !important;
}

.ay-pdp-gallery__placeholder-icon {
  width: 56px;
  height: 56px;
  opacity: 0.75;
}

.ay-pdp-gallery__placeholder-text {
  font-weight: 500;
  font-size: 14px;
  line-height: 24px;
}

.ay-pdp-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.ay-pdp-info__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ay-pdp-info__actions {
  display: inline-flex;
  gap: 8px;
}

.ay-pdp-info__icon-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 10px;
  background: #fff;
  color: var(--ay-text-main, #404040);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ay-pdp-info__icon-btn:hover {
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  color: var(--ay-brand-primary, #002D71);
}

.ay-pdp-info__icon-btn.is-active {
  color: var(--ay-error, #D92412);
  border-color: var(--ay-error-pale, #FFEEED);
  background: var(--ay-error-pale, #FFEEED);
}

.ay-pdp-info__title {
  margin: 0;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-pdp-info__rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ay-success, #129A44);
  font-weight: 600;
  font-size: 14px;
}

.ay-pdp-info__summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ay-text-secondary, #737373);
}

.ay-pdp-buy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.ay-pdp-buy__prices {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.ay-pdp-buy__current {
  font-size: 20px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-pdp-buy__original {
  font-size: 14px;
  color: var(--ay-text-secondary, #737373);
  text-decoration: line-through;
}

.ay-pdp-buy__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ay-pdp-buy__qty label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ay-text-secondary, #737373);
}

.ay-pdp-buy__qty input {
  width: 88px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 8px;
  font: inherit;
}

.ay-pdp-buy__cta {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--ay-brand-primary, #002D71);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ay-pdp-buy__cta:hover {
  background: var(--ay-brand-primary-dark, #022251);
}

.ay-pdp-buy__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: var(--ay-brand-secondary, #FF6F1C);
  font-weight: 500;
}

.ay-pdp-buy__success {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ay-success, #129A44);
}

.ay-pdp-panel {
  margin-bottom: 16px;
  padding: 20px 22px;
  background: var(--ay-surface-white, #FFF);
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 16px;
  box-shadow: var(--ay-elevation-sm);
}

.ay-pdp-panel__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-pdp-panel__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--ay-brand-primary-paler, #EBF1FB);
  color: var(--ay-brand-primary, #002D71);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ay-pdp-desc {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ay-text-main, #404040);
}

.ay-pdp-desc.is-expanded {
  max-height: none;
}

.ay-pdp-desc:not(.is-expanded)::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(to top, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
}

.ay-pdp-desc__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 12px auto 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ay-brand-primary-light, #0545A6);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ay-pdp-desc__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ay-pdp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ay-pdp-comments__form textarea,
.ay-pdp-comments__form input,
.ay-pdp-comments__form select {
  width: 100%;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: var(--ay-bg-light, #FAFAFA);
}

.ay-pdp-comments__form textarea:focus,
.ay-pdp-comments__form input:focus,
.ay-pdp-comments__form select:focus {
  outline: none;
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  background: #fff;
}

.ay-pdp-comments__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.ay-pdp-comments__grid--full {
  grid-template-columns: 1fr;
}

.ay-pdp-comments__submit {
  margin-top: 8px;
}

.ay-pdp-comments__form input[readonly],
.ay-pdp-comments__form input.is-readonly {
  background: var(--ay-surface-disabled, #F4F4F5);
  color: var(--ay-text-main, #404040);
  cursor: default;
  caret-color: transparent;
}

.ay-pdp-comments__list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ay-pdp-comment {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ay-border-light, #E7E5E4);
}

.ay-pdp-comment:last-child {
  border-bottom: 0;
}

.ay-pdp-comment__avatar {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ay-bg-darker, #E7E5E4);
  color: var(--ay-text-tertiary, #A3A3A3);
}

.ay-pdp-comment__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ay-pdp-comment__avatar svg {
  width: 24px;
  height: 24px;
  display: block;
}

.ay-pdp-comment__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.ay-pdp-comment__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ay-pdp-comment__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-pdp-comment__date {
  font-size: 12px;
  line-height: 20px;
  color: var(--ay-text-tertiary, #A3A3A3);
}

.ay-pdp-comment__text {
  margin: 0;
  font-size: 14px;
  line-height: 28px;
  color: var(--ay-text-main, #404040);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ay-pdp-comment__toolbar {
  display: flex;
  justify-content: flex-start;
}

.ay-pdp-comment__reply-box {
  margin-top: 4px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  background:
    linear-gradient(180deg, var(--ay-brand-primary-paler, #EBF1FB) 0%, var(--ay-bg-light, #FAFAFA) 100%);
  animation: ay-pdp-reply-in 0.25s ease both;
}

.ay-pdp-comment__reply-box[hidden] {
  display: none !important;
}

@keyframes ay-pdp-reply-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.ay-pdp-comment__reply-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ay-pdp-comment__reply-field {
  max-width: none;
  width: 100%;
}

.ay-pdp-comment__reply-field .ay-field__control {
  max-width: none;
  width: 100%;
  background: var(--ay-surface-white, #FFF);
}

.ay-pdp-comment__reply-field .ay-field__input--area {
  min-height: 96px;
  resize: vertical;
}

.ay-pdp-comment__reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.ay-pdp-comment__replies {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
  padding: 4px 0 0 12px;
  border-inline-start: 2px solid var(--ay-border-light, #E7E5E4);
}

.ay-pdp-comment--reply {
  padding: 12px 0 12px 8px;
  border-bottom: 0;
}

.ay-pdp-comment--reply .ay-pdp-comment__avatar {
  width: 36px;
  height: 36px;
}

.ay-pdp-comment--reply .ay-pdp-comment__avatar svg {
  width: 20px;
  height: 20px;
}

.ay-pdp-comment--pending {
  opacity: 0.92;
  background: var(--ay-warning-pale, #FFF8E8);
  border-radius: 10px;
  padding-inline: 8px;
}

.ay-pdp-comments__status {
  margin-bottom: 14px;
}

.ay-pdp-comments__status[hidden] {
  display: none !important;
}

.ay-pdp-toast {
  position: fixed;
  inset-inline: 0;
  bottom: 24px;
  z-index: 60;
  width: min(380px, calc(100% - 32px));
  margin-inline: auto;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ay-text-title, #302E2E);
  color: #fff;
  font-family: var(--ay-font-family, dana, IRANSansfanum, Tahoma, sans-serif);
  font-size: 14px;
  line-height: 24px;
  text-align: center;
  box-shadow: var(--ay-elevation-lg);
}

.ay-pdp-toast.is-error {
  background: var(--ay-error-dark, #A21303);
}

.ay-pdp-toast[hidden] {
  display: none !important;
}

.ay-pdp-related .ay-shop-carousel__track > .ay-product-card {
  width: 240px;
  max-width: 240px;
}

/* Gallery modal — must sit outside transformed ancestors (appended to body in JS too) */

.ay-pdp-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  margin: 0;
  background: rgba(16, 24, 40, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.ay-pdp-modal.is-open {
  display: flex;
}

.ay-pdp-modal__dialog {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  width: min(880px, calc(100vw - 48px));
  max-height: min(88vh, 820px);
  margin: 0;
  overflow: hidden;
  background: var(--ay-surface-white, #FFF);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 24px 64px rgba(16, 24, 40, 0.28);
  animation: ay-pdp-modal-in 0.22s ease both;
}

@keyframes ay-pdp-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ay-pdp-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: none;
  margin-bottom: 12px;
}

.ay-pdp-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ay-text-title, #302E2E);
}

.ay-pdp-modal__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--ay-bg-dark, #F4F4F5);
  color: var(--ay-text-main, #404040);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  flex: none;
}

.ay-pdp-modal__close:hover {
  background: var(--ay-border-light, #E7E5E4);
}

.ay-pdp-modal__main {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  height: min(58vh, 480px);
  border-radius: 12px;
  background: var(--ay-bg-light, #FAFAFA);
  padding: 16px;
  overflow: hidden;
}

.ay-pdp-modal__main img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.ay-pdp-modal__count {
  text-align: center;
  margin: 10px 0 8px;
  font-size: 13px;
  line-height: 20px;
  color: var(--ay-text-secondary, #737373);
  flex: none;
}

.ay-pdp-modal__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  flex: none;
  justify-content: center;
}

.ay-pdp-modal__thumbs button {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid var(--ay-border-light, #E7E5E4);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.ay-pdp-modal__thumbs button.is-active {
  border-color: var(--ay-brand-primary-lighter, #3974CD);
  box-shadow: 0 0 0 2px rgba(57, 116, 205, 0.22);
}

.ay-pdp-modal__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Responsive */

@media (max-width: 1100px) {
  .ay-shop-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .ay-shop__inner,
  .ay-pdp__inner {
    width: min(100% - 24px, var(--ay-shop-max));
  }

  .ay-shop-banners {
    grid-template-columns: 1fr;
  }

  .ay-shop-banner {
    min-height: 160px;
  }

  /* ── Catalog: search, sheet triggers, single column ── */

  .ay-shop-catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .ay-shop-catalog__search {
    display: flex;
    width: 100%;
    margin: 0 0 16px;
  }

  .ay-shop-filters__product-search,
  .ay-shop-sort {
    display: none;
  }

  .ay-shop-catalog__mobile-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* ── Bottom sheets (filters + sort) ── */

  .ay-shop-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1190;
    background: rgba(48, 46, 46, 0.4);
    animation: ay-shop-fade 0.2s ease both;
  }

  .ay-shop-filters-backdrop[hidden] {
    display: none !important;
  }

  /* Floating sheet lifted off the bottom edge so the browser toolbar /
     home indicator on phones can't cover the footer buttons. */
  .ay-shop-filters,
  .ay-shop-sort-sheet {
    --ay-sheet-gap: calc(16px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    inset: auto 8px var(--ay-sheet-gap) 8px;
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 0;
    width: auto;
    max-width: 640px;
    max-height: calc(100vh - 96px - var(--ay-sheet-gap));
    max-height: calc(100dvh - 96px - var(--ay-sheet-gap));
    margin: 0 auto;
    padding: 0;
    background: var(--ay-surface-white, #FFF);
    border: 1px solid var(--ay-border-light, #E7E5E4);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(16, 24, 40, 0.18);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translateY(calc(100% + var(--ay-sheet-gap) + 24px));
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0s linear 0.28s;
  }

  .ay-shop-filters.is-open,
  .ay-shop-sort-sheet.is-open {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.28s ease, visibility 0s;
  }

  .ay-shop-filters__head,
  .ay-shop-sort-sheet .ay-shop-filters__head {
    position: sticky;
    top: 0;
    z-index: 2;
    flex: none;
    min-height: 64px;
    padding: 16px;
    background: inherit;
    border-bottom: 1px solid var(--ay-border-light, #E7E5E4);
  }

  .ay-shop-filters__title {
    font-size: 14px;
    font-weight: 700;
    line-height: 28px;
  }

  .ay-shop-filters__clear {
    display: none;
  }

  .ay-shop-filters__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    color: var(--ay-text-main, #404040);
  }

  .ay-shop-filters__close:hover {
    background: var(--ay-bg-dark, #F4F4F5);
  }

  .ay-shop-filters .ay-accordion {
    flex: none;
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--ay-border-light, #E7E5E4);
    border-radius: 0;
    overflow: visible;
  }

  .ay-shop-filters .ay-accordion__trigger {
    min-height: 60px;
    padding: 16px;
  }

  .ay-shop-filters .ay-accordion__title {
    font-size: 14px;
    line-height: 28px;
    color: var(--ay-text-main, #404040);
  }

  .ay-shop-filters .ay-accordion__icon {
    width: 20px;
    height: 20px;
    border: 1.5px solid var(--ay-text-main, #404040);
    border-radius: 6px;
  }

  .ay-shop-filters .ay-accordion__icon svg {
    width: 14px;
    height: 14px;
  }

  .ay-shop-filters .ay-accordion__body {
    padding: 0 16px 16px;
    background: transparent;
  }

  .ay-shop-filters__search input {
    height: 48px;
    padding-inline: 40px 14px;
    border-color: var(--ay-border-dark, #D6D3D1);
    background: #FFF;
    font-size: 16px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  }

  .ay-shop-filters__search-icon {
    inset-inline-start: 14px;
  }

  .ay-shop-filters__list {
    max-height: 200px;
    gap: 6px;
  }

  .ay-shop-filters__option {
    min-height: 36px;
    font-size: 14px;
  }

  .ay-shop-filters__switch-row {
    flex: none;
    padding: 8px 16px;
    border-top: 0;
    border-bottom: 1px solid var(--ay-border-light, #E7E5E4);
  }

  .ay-shop-filters__switch {
    min-height: 52px;
    font-size: 14px;
  }

  .ay-shop-sheet__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
  }

  .ay-shop-sheet__body .ay-shop-filters__option {
    background: transparent;
    border: 0;
    color: var(--ay-text-main, #404040);
    font: inherit;
    font-size: 14px;
    text-align: start;
  }

  .ay-shop-filters__footer,
  .ay-shop-sheet__footer {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    flex: none;
    margin-top: auto;
    padding: 12px 16px 16px;
    background: inherit;
    border-top: 1px solid var(--ay-border-light, #E7E5E4);
  }

  .ay-shop-sheet__footer .ay-btn {
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
  }

  body.ay-shop-filters-open {
    overflow: hidden;
  }

  .ay-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ay-shop-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .ay-pdp-summary {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 16px;
  }

  .ay-pdp-gallery {
    grid-template-columns: 1fr;
  }

  .ay-pdp-gallery__thumbs {
    flex-direction: row;
    order: 2;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ay-pdp-gallery__main {
    order: 1;
    min-height: 220px;
  }

  .ay-pdp-gallery__thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 640px) {
  .ay-shop {
    --ay-shop-gutter: 20px;
    padding: 16px 0 48px;
    background: var(--ay-bg-light, #FAFAFA);
  }

  .ay-pdp {
    padding: 12px 0 48px;
  }

  .ay-pdp__inner {
    width: min(100% - 20px, var(--ay-shop-max));
  }

  .ay-shop__breadcrumb {
    margin-bottom: 16px;
  }

  /* ── Hub intro: search first, then start-aligned title ── */

  .ay-shop-search {
    order: -1;
    width: 100%;
    height: 48px;
    margin: 0 0 16px;
    padding: 8px 14px;
    gap: 8px;
    border-color: var(--ay-border-dark, #D6D3D1);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
  }

  .ay-shop-search__icon {
    width: 16px;
    height: 16px;
    color: var(--ay-text-secondary, #737373);
  }

  .ay-shop-search__icon svg {
    width: 16px;
    height: 16px;
  }

  .ay-shop-search__input {
    font-size: 16px; /* avoid iOS zoom */
    line-height: 28px;
  }

  .ay-shop-search__input::placeholder {
    color: var(--ay-text-secondary, #737373);
  }

  .ay-shop-search__btn {
    display: none;
  }

  .ay-shop-hub__head {
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
    text-align: start;
  }

  .ay-shop-hub__title-row {
    justify-content: flex-start;
  }

  .ay-shop-hub__back {
    display: inline-flex;
  }

  .ay-shop-catalog__back {
    width: 24px;
    height: 24px;
    flex: none;
    border-radius: 6px;
  }

  .ay-shop-catalog__back svg {
    width: 24px;
    height: 24px;
  }

  .ay-shop-hub__title,
  .ay-shop-catalog__title {
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
  }

  .ay-shop-hub__sub {
    overflow: hidden;
    font-size: 14px;
    line-height: 28px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  /* ── Banners: one wide + two square-ish ── */

  .ay-shop-banners {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 32px;
  }

  .ay-shop-banner {
    min-height: 0;
    box-shadow: none;
  }

  .ay-shop-banner--primary {
    grid-column: 1 / -1;
    height: 180px;
    border-radius: 24px;
  }

  .ay-shop-banner--secondary,
  .ay-shop-banner--mobile-only {
    display: flex;
    height: 154px;
    padding: 12px;
    border-radius: 16px;
    background: #212121;
  }

  .ay-shop-banner--secondary img {
    width: auto;
    max-width: 100%;
    height: 100%;
  }

  /* ── Sections + carousels ── */

  .ay-shop-section {
    margin-bottom: 40px;
  }

  .ay-shop-section__title {
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    line-height: 36px;
  }

  .ay-shop-carousel {
    grid-template-columns: minmax(0, 1fr);
  }

  .ay-shop-carousel__nav {
    display: none;
  }

  .ay-shop-carousel__track {
    --ay-shop-card-w: 200px;
    gap: 16px;
    margin-inline: calc(-1 * var(--ay-shop-gutter));
    padding: 4px var(--ay-shop-gutter) 8px;
    scroll-padding-inline: var(--ay-shop-gutter);
  }

  /* Centered snap: the active card sits in the middle with neighbours peeking */
  .ay-shop-carousel--center .ay-shop-carousel__track {
    padding-inline: calc(50% + var(--ay-shop-gutter) - var(--ay-shop-card-w) / 2);
    scroll-padding-inline: 0;
  }

  .ay-shop-carousel--center .ay-shop-carousel__track > * {
    scroll-snap-align: center;
  }

  .ay-shop-dots:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 16px auto 0;
    padding: 4px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.1);
  }

  /* Category cards: large image tile + label */

  .ay-shop-cat-card {
    width: var(--ay-shop-card-w);
    gap: 20px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .ay-shop-cat-card:hover {
    box-shadow: none;
    transform: none;
  }

  .ay-shop-cat-card__media {
    width: 200px;
    height: 200px;
    border: 1px solid var(--ay-border-light, #E7E5E4);
    border-radius: 24px;
    background: #FFFFFF url("/images/shop/hub-banner-2.png") center / auto 80% no-repeat;
    transition: border-color 0.15s ease;
  }

  .ay-shop-cat-card:hover .ay-shop-cat-card__media {
    border-color: var(--ay-brand-primary-lighter, #3974CD);
  }

  .ay-shop-cat-card__media svg {
    display: none;
  }

  .ay-shop-cat-card__label {
    font-size: 16px;
    font-weight: 500;
    line-height: 28px;
    color: var(--ay-text-main, #404040);
  }

  /* Popular band */

  .ay-shop-popular {
    margin-bottom: 40px;
    padding: 32px 0;
  }

  .ay-shop-popular .ay-shop-carousel {
    --ay-shop-gutter: 0px;
    width: 100%;
  }

  .ay-shop-popular .ay-shop-carousel__track {
    --ay-shop-card-w: 210px;
  }

  .ay-shop-popular .ay-shop-section__title {
    margin-bottom: 20px;
  }

  .ay-shop-popular .ay-product-card {
    width: var(--ay-shop-card-w);
    max-width: var(--ay-shop-card-w);
    padding: 12px;
    gap: 12px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  }

  .ay-shop-popular .ay-product-card .ay-product-card__media {
    height: 124px;
  }

  .ay-shop-popular .ay-product-card__body {
    gap: 8px;
    padding-bottom: 0;
  }

  .ay-shop-popular .ay-product-card .ay-product-card__title {
    overflow: hidden;
    font-size: 14px;
    line-height: 28px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ay-shop-popular .ay-shop-dots:not([hidden]) {
    margin-top: 20px;
  }

  /* Hub products: grid becomes a start-aligned swipe row */

  .ay-shop-grid--hub {
    display: flex;
    gap: 16px;
    margin-inline: calc(-1 * var(--ay-shop-gutter));
    padding: 4px var(--ay-shop-gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--ay-shop-gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .ay-shop-grid--hub::-webkit-scrollbar {
    display: none;
  }

  .ay-shop-grid--hub > .ay-product-card {
    flex: 0 0 240px;
    width: 240px;
    scroll-snap-align: start;
  }

  .ay-shop-more {
    margin-top: 24px;
  }

  .ay-shop-more a {
    gap: 8px;
    color: var(--ay-brand-primary, #002D71);
    font-weight: 500;
    line-height: 28px;
  }

  /* ── Product cards (design: bordered, flat) ── */

  .ay-shop-grid .ay-product-card,
  .ay-shop-catalog .ay-product-card {
    padding: 16px;
    gap: 12px;
    border: 1px solid var(--ay-border-light, #E7E5E4);
    border-radius: 12px;
    box-shadow: none;
  }

  .ay-shop .ay-product-card__media {
    height: 185px;
  }

  .ay-shop .ay-product-card__title {
    font-size: 16px;
    line-height: 28px;
  }

  .ay-shop .ay-product-card__desc {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 24px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .ay-shop .ay-price {
    flex-direction: row-reverse;
    justify-content: space-between;
  }

  .ay-shop .ay-price--single {
    justify-content: flex-start;
  }

  .ay-shop .ay-price__current {
    font-size: 16px;
    font-weight: 600;
    line-height: 28px;
  }

  .ay-shop .ay-price__original {
    font-size: 14px;
  }

  /* ── CTA ── */

  .ay-shop-cta__inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    padding: 20px 16px;
    gap: 14px;
  }

  .ay-shop-cta__title {
    font-size: 15px;
    line-height: 1.7;
  }

  /* ── Catalog ── */

  .ay-shop-catalog__head {
    margin-bottom: 16px;
  }

  .ay-shop-catalog__title-row {
    align-items: flex-start;
    gap: 8px;
  }

  .ay-shop-catalog__back {
    margin-top: 2px;
  }

  .ay-shop-catalog__meta {
    margin-top: 0;
    font-size: 14px;
    line-height: 28px;
  }

  .ay-shop-catalog {
    gap: 32px;
  }

  .ay-shop-grid--catalog {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .ay-shop__pager {
    margin-top: 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .ay-pdp-panel {
    padding: 16px;
    border-radius: 12px;
  }

  .ay-pdp-panel__title {
    font-size: 16px;
  }

  .ay-pdp-info__title {
    font-size: 20px;
  }

  .ay-pdp-info__top {
    flex-direction: column;
    gap: 10px;
  }

  .ay-pdp-info__actions {
    align-self: flex-end;
  }

  .ay-pdp-buy {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 8px -14px -14px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0.92));
    border-top: 1px solid var(--ay-border-light, #E7E5E4);
  }

  .ay-pdp-summary {
    margin-bottom: 12px;
    overflow: hidden;
  }

  .ay-pdp-comments__grid {
    grid-template-columns: 1fr;
  }

  .ay-pdp-buy__prices {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
  }

  .ay-pdp-buy__trust {
    font-size: 12px;
  }

  .ay-pdp-modal {
    padding: 12px;
    align-items: center;
    justify-content: center;
  }

  .ay-pdp-modal__dialog {
    width: min(100%, calc(100vw - 24px));
    max-height: min(90vh, 760px);
    border-radius: 14px;
    padding: 12px;
  }

  .ay-pdp-modal__main {
    height: min(52vh, 360px);
    padding: 10px;
  }

  .ay-pdp-related .ay-shop-carousel__track > .ay-product-card {
    width: 180px;
    max-width: 180px;
  }
}

@media (max-width: 380px) {
  .ay-shop-grid,
  .ay-shop-grid--catalog {
    grid-template-columns: 1fr;
  }

  .ay-shop .ay-product-card__media {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ay-shop,
  .ay-pdp {
    animation: none;
  }

  .ay-shop-filters,
  .ay-shop-sort-sheet,
  .ay-shop-filters-backdrop,
  .ay-shop-dots__dot {
    transition: none;
    animation: none;
  }

  .ay-shop-cat-card,
  .ay-shop-carousel__nav,
  .ay-pdp-buy__cta {
    transition: none;
  }
}
