/* =========================================================
   Aromatic Product Card — components/product-card.jinja
   Specs from Aromatic Standalone ProductCard.dc.html
   ========================================================= */

.aro-pc {
  --aro-navy: #1a428a;
  --aro-navy-deep: #0f2856;
  --aro-ink: #3d434b;
  --aro-sub: #6b7078;
  --aro-muted: #8a8f98;
  --aro-old: #9aa2ae;
  --aro-disc: #c63a2a;
  --aro-ok: #1f8a5b;
  --aro-media-bg: #f3f2ef;
  --aro-wish: #4a72b8;
  width: 100%;
  max-width: none;
  font-family: inherit;
  direction: inherit;
}

.aro-pc__media {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  background: var(--aro-media-bg);
  border-radius: 5px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.aro-pc__img-link {
  position: absolute;
  inset: 0;
  display: block;
  z-index: 0;
}

.aro-pc__img {
  width: 100%;
  height: 100%;
  object-fit: var(--aro-pc-img-fit, cover);
  object-position: center;
  display: block;
  transition: transform 0.7s ease, filter 0.5s ease, opacity 0.35s ease;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
}

.aro-pc__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.aro-pc.has-hover-img:not(.is-oos):not(.is-variant-picked) .aro-pc__media:hover .aro-pc__img--hover {
  opacity: 1;
}

.aro-pc.has-hover-img:not(.is-oos):not(.is-variant-picked) .aro-pc__media:hover .aro-pc__img--main {
  opacity: 0;
}

.aro-pc:not(.is-oos):not(.has-hover-img) .aro-pc__media:hover .aro-pc__img,
.aro-pc.is-variant-picked:not(.is-oos) .aro-pc__media:hover .aro-pc__img {
  transform: scale(1.055);
}

/* Vertical badge stack: discount + badge-name + bundle offer */
.aro-pc__badges {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  max-width: calc(100% - 52px);
  pointer-events: none;
}

html[dir="ltr"] .aro-pc__badges,
body.ltr .aro-pc__badges {
  right: auto;
  left: 10px;
  align-items: flex-start;
}

.aro-pc__disc {
  position: static;
  background: var(--aro-disc);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  line-height: 1.2;
}

/* Override platform absolute badge-name so it stacks in the column */
.aro-pc__badges .badge-name,
.aro-pc__badges .badge-name-product-card {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  margin: 0 !important;
  max-width: 100%;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.aro-pc__badges .product-card-bundle-offer {
  position: static !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  max-width: 100%;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
  pointer-events: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
}

.aro-pc__badges .product-card-bundle-offer.bundle-offer-product-tag {
  display: inline-block;
}

/* Wishlist — restyle Soft Theme hook */
.aro-pc .add-to-wishlist.aro-pc__wish {
  position: absolute;
  top: 12px;
  left: 13px;
  right: auto;
  margin: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: none;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.aro-pc .add-to-wishlist.aro-pc__wish:hover {
  opacity: 0.65;
}

html[dir="ltr"] .aro-pc .add-to-wishlist.aro-pc__wish,
body.ltr .aro-pc .add-to-wishlist.aro-pc__wish {
  left: auto;
  right: 13px;
}

.aro-pc .aro-pc__wish-btn.icon-heart-mask {
  width: 20px;
  height: 20px;
  background-color: var(--aro-wish);
  filter: drop-shadow(0 1px 4px rgba(255, 255, 255, 0.6));
}

.aro-pc .aro-pc__wish-btn.icon-heart-mask.filled {
  background-color: var(--aro-disc);
}

.aro-pc__oos-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.06),
      rgba(250, 249, 247, 0.55) 60%,
      rgba(250, 249, 247, 0.78));
}

.aro-pc__oos-pill-wrap {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.aro-pc__oos-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.94);
  color: var(--aro-navy);
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 100px;
  border: 1px solid #d9c9a8;
  box-shadow: 0 4px 14px rgba(20, 30, 50, 0.08);
}

.aro-pc__quick {
  position: absolute;
  bottom: 11px;
  left: 11px;
  z-index: 3;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--aro-navy);
  box-shadow: 0 4px 12px rgba(15, 40, 86, 0.28);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

html[dir="ltr"] .aro-pc__quick,
body.ltr .aro-pc__quick {
  left: auto;
  right: 11px;
}

.aro-pc__quick:hover,
.aro-pc__quick:focus-visible {
  background: var(--aro-navy-deep);
  transform: scale(1.12);
  outline: none;
}

.aro-pc__quick.is-unavailable,
.aro-pc__quick:disabled {
  background: #9aa2ae;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  opacity: 0.85;
}

.aro-pc__quick.is-unavailable:hover,
.aro-pc__quick.is-unavailable:focus-visible,
.aro-pc__quick:disabled:hover,
.aro-pc__quick:disabled:focus-visible {
  background: #9aa2ae;
  transform: none;
}

@keyframes aro-spin {
  to { transform: rotate(360deg); }
}

.aro-pc__quick .add-to-cart-progress,
.aro-pc__wish .loader {
  box-sizing: border-box;
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: aro-spin 0.6s linear infinite;
  flex-shrink: 0;
}

.aro-pc__wish .loader {
  width: 16px;
  height: 16px;
  border-color: rgba(26, 66, 138, 0.25);
  border-top-color: var(--aro-navy, #1a428a);
}

.aro-pc__quick .add-to-cart-progress:not(.d-none)~.aro-pc__quick-icon {
  display: none;
}

.aro-pc__body {
  padding: 13px 3px 0;
  text-align: start;
}

.aro-pc__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  row-gap: 5px;
  margin-bottom: 4px;
}

.aro-pc__price {
  font-family: var(--aro-font);
  font-size: 15px;
  color: var(--aro-navy);
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.2;
}

.aro-pc__old {
  font-family: var(--aro-font);
  font-size: 11px;
  color: var(--aro-old);
  text-decoration: line-through;
  white-space: nowrap;
  line-height: 1.2;
}

.aro-pc__name {
  display: block;
  font-family: var(--aro-font);
  font-size: 14px;
  color: var(--aro-ink);
  font-weight: 400;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
  text-decoration: none;
}

.aro-pc__name:hover,
.aro-pc__name:focus-visible {
  color: var(--aro-navy);
  outline: none;
}

.aro-pc__sub {
  font-size: 11px;
  color: var(--aro-sub);
  font-weight: 600;
  line-height: 1.35;
}

.aro-pc__options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 2px 10px;
  overflow: visible;
  max-height: none;
  border-radius: 10px;
  transition: box-shadow 0.2s ease;
}

.aro-pc__options.is-need-choice {
  animation: aroPcNeedChoice 0.7s ease 2;
  box-shadow: 0 0 0 3px rgba(198, 58, 42, 0.28);
}

@keyframes aroPcNeedChoice {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-3px);
  }

  75% {
    transform: translateX(3px);
  }
}

.aro-pc__options-placeholder {
  display: none;
}

.aro-pc__options[hidden] {
  display: none !important;
}

.aro-pc__opt-btn {
  border: 1.5px solid rgba(26, 66, 138, 0.18);
  background: #eef2f7;
  color: var(--aro-navy);
  border-radius: 999px;
  padding: 0;
  font-family: inherit;
  font-weight: 800;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.aro-pc__opt-btn.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--aro-navy, #1a428a);
}

.aro-pc__opt-btn.is-swatch-color {
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.aro-pc__opt-btn.is-swatch-color.is-light {
  box-shadow: inset 0 0 0 1px rgba(26, 66, 138, 0.22);
}

.aro-pc__opt-btn.is-swatch-color.is-selected,
.aro-pc__opt-btn.is-swatch-img.is-selected {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--aro-navy, #1a428a), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.aro-pc__opt-btn.is-oos {
  position: relative;
  opacity: 1;
}

.aro-pc__opt-btn.is-oos img {
  filter: grayscale(0.25) brightness(0.92);
}

.aro-pc__opt-btn.is-oos::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  top: 50%;
  height: 2px;
  background: #c63a2a;
  transform: rotate(-45deg);
  border-radius: 2px;
  pointer-events: none;
  z-index: 2;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.aro-pc__opt-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.aro-pc__opt-btn.is-swatch-text {
  width: auto;
  height: auto;
  min-height: 28px;
  max-width: 100%;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  line-height: 1.3;
}

.aro-pc__opt-btn.is-swatch-text.is-selected {
  background: var(--aro-navy, #1a428a);
  border-color: var(--aro-navy, #1a428a);
  color: #fff;
  box-shadow: none;
}

.aro-pc__opt-btn.is-swatch-text.is-oos {
  opacity: 0.5;
  text-decoration: line-through;
}

.aro-pc__opt-btn.is-swatch-text.is-oos::after {
  display: none;
}

.aro-pc__opt-btn:hover,
.aro-pc__opt-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
  border-color: rgba(26, 66, 138, 0.55);
}

.aro-pc__custom-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 100px;
  border: 1px solid rgba(26, 66, 138, 0.2);
  background: #f3f7fc;
  color: var(--aro-navy);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 100%;
}

.aro-pc__preorder {
  margin-top: 8px;
}

.aro-pc__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #f0eee9;
  font-size: 11px;
  color: var(--aro-muted);
  font-weight: 600;
}

.aro-pc__rating {
  color: #4a4f54;
  font-weight: 700;
}

.aro-pc__star {
  color: var(--aro-navy);
}

.aro-pc__meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d2d6dd;
  flex-shrink: 0;
}

.aro-pc__sold {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aro-pc__labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 13px;
  margin-top: 9px;
}

.aro-pc__label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  color: #6b7280;
  font-weight: 500;
}

.aro-pc__notify {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: none;
  border: 1px solid #d6dae2;
  border-radius: 100px;
  padding: 9px;
  margin-top: 12px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--aro-navy);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
  max-width: none;
}

.aro-pc__notify:hover,
.aro-pc__notify:focus-visible {
  background: #f7f9fc;
  border-color: var(--aro-navy);
  outline: none;
}

/* Kill Soft Theme card constraints when Aromatic card is used */
.products-list .prod-col .product-item.aro-pc,
.bundle-offer-products .prod-col .product-item.aro-pc,
.products-slider .product-item.aro-pc {
  max-width: none;
  width: 100%;
}

.products-list .prod-col .product-item.aro-pc>a,
.bundle-offer-products .prod-col .product-item.aro-pc>a {
  display: contents;
}

/* Hide legacy Soft Theme footer button styles if any remnant */
.aro-pc .product-card-footer {
  display: none;
}

.aro-pc .product-title,
.aro-pc .section-product-price,
.aro-pc .product-crd-spec {
  all: unset;
}

/* ---------- Desktop ≥761 ---------- */
@media (min-width: 761px) {
  .aro-pc__price {
    font-size: 17px;
  }

  .aro-pc__old {
    font-size: 12.5px;
  }

  .aro-pc__name {
    font-size: 16px;
  }

  .aro-pc__sub {
    font-size: 12.5px;
  }

  .aro-pc__meta {
    font-size: 12.5px;
  }

  .aro-pc__label {
    font-size: 11.5px;
  }
}

/* ---------- Mobile ≤760 ---------- */
@media (max-width: 760px) {
  .aro-pc__quick {
    width: 38px;
    height: 38px;
  }

  .aro-pc__quick svg,
  .aro-pc__quick-icon {
    width: 18px;
    height: 18px;
  }

  .aro-pc__notify {
    font-size: 11px;
    padding: 8px;
  }

  .aro-pc__options::-webkit-scrollbar {
    display: none;
  }

  .aro-pc__opt-btn {
    flex: 0 0 auto;
  }
}

/* ---------- Small mobile ≤576 ---------- */
@media (max-width: 576px) {
  .aro-pc__opt-btn {
    width: 26px;
    height: 26px;
  }

  .aro-pc__opt-btn.is-selected {
    box-shadow: 0 0 0 1px #fff, 0 0 0 3px var(--aro-navy, #1a428a);
  }

  .aro-pc .add-to-wishlist.aro-pc__wish {
    display: none !important;
  }

  .aro-pc__badges {
    max-width: calc(100% - 7px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .aro-pc__img,
  .aro-pc__quick {
    transition: none;
  }

  .aro-pc:not(.is-oos) .aro-pc__media:hover .aro-pc__img,
  .aro-pc__quick:hover {
    transform: none;
  }

  .aro-pc__options.is-need-choice {
    animation: none;
  }
}