/* Unified product / promo / accessory card imagery on shop pages */
body.storefront-shop {
  --sf-unified-media-ratio: 1 / 1;
  --sf-unified-media-max-h: 300px;
  --sf-unified-media-pad: 14px;
}

body.storefront-shop #store .sf-unified-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: var(--sf-unified-media-ratio);
  max-height: var(--sf-unified-media-max-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sf-unified-media-pad);
  box-sizing: border-box;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  overflow: hidden;
}

body.storefront-shop #store .sf-unified-card__media > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* Always fit inside the media box — never larger than the padded area */
body.storefront-shop #store .sf-unified-card__media img,
body.storefront-shop #store .product .sf-shop-card__img.sf-unified-card__media img,
body.storefront-shop #store .product .product-img.sf-unified-card__media img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform-origin: center center;
}

body.storefront-shop #store .store-product-grid--promo {
  position: relative;
  z-index: 1;
}

body.storefront-shop #store .sf-promo-shop-card .product-label--deal {
  position: absolute;
  top: 10px;
  left: 10px;
  right: auto;
  z-index: 3;
}

body.storefront-shop #store .sf-promo-shop-card .product-label--deal > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #d10024 0%, #f43f5e 100%);
  border: none;
  box-shadow: 0 8px 16px rgba(209, 0, 36, 0.28);
}

body.storefront-shop #store .sf-promo-reveal {
  animation: sf-promo-rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--promo-delay, 0s);
}

@keyframes sf-promo-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.storefront-shop #store .sf-accessory-shop-card .accessory-card__body {
  padding: 14px 14px 16px;
}

body.storefront-shop #store .sf-accessory-shop-card .accessory-card__name {
  min-height: 2.5em;
  font-size: 14px;
}

/* Hot deals sidebar: luxury Why Choose Us */
body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux {
  border: 1px solid rgba(201, 168, 108, 0.22) !important;
  background: linear-gradient(165deg, #1a1a24 0%, #12121a 100%) !important;
  box-shadow: 0 16px 40px rgba(18, 18, 26, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  animation-delay: 0.18s;
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__glow {
  background: radial-gradient(ellipse at 80% 100%, rgba(201, 168, 108, 0.35), transparent 68%);
  opacity: 0.55;
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__title {
  color: #f8fafc;
  letter-spacing: 0.16em;
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__lead {
  color: #fff;
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__desc {
  color: #cbd5e1;
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__ico {
  background: rgba(201, 168, 108, 0.2);
  color: var(--hot-lux-gold, #c9a86c);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

body.storefront-shop--hot-deals #aside .sf-aside-spotlight--lux .sf-aside-spotlight__btn {
  color: #12121a;
  background: linear-gradient(180deg, #f5e6c8 0%, var(--hot-lux-gold, #c9a86c) 100%);
}

body.storefront-shop--hot-deals #store .sf-promo-products-section {
  border-color: rgba(201, 168, 108, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  body.storefront-shop #store .sf-promo-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (min-width: 1200px) {
  body.storefront-shop {
    --sf-unified-media-max-h: 320px;
  }
}

@media (max-width: 767px) {
  body.storefront-shop {
    --sf-unified-media-max-h: 300px;
    --sf-unified-media-pad: 12px;
  }

  body.storefront-shop #store .sf-unified-card__media {
    width: 100%;
    aspect-ratio: auto;
    height: 300px;
    max-height: 300px;
  }
}
