/**
 * Shop frames — homepage: simple grid list (Bootstrap + .store-card).
 * Product detail page: .shop-detail-* below.
 */

:root {
  --sc-font-sans: "Montserrat", system-ui, -apple-system, sans-serif;
  --sc-font-display: "Montserrat", system-ui, -apple-system, sans-serif;
  --sc-text: 1.0625rem;
  --sc-text-sm: 1rem;
  --sc-text-md: 1.125rem;
  --sc-lead: 1.1875rem;
  --sc-h-page: clamp(1.875rem, 2.35vw, 2.375rem);
  --sc-h-product: clamp(2rem, 2.65vw, 2.5rem);
  --sc-price: clamp(1.3125rem, 1.1rem + 1.1vw, 1.625rem);
  --sc-price-lg: clamp(1.5rem, 2.75vw, 2rem);
  --sc-overline: 0.8125rem;
  --sc-line: 1.6;
  --sc-ink: #0f172a;
  --sc-body: #334155;
  --sc-muted: #64748b;
  --sc-brand: #002e6d;
  --sc-gold: #faba00;
  --sc-accent: #002e6d;
  --sc-radius-sm: 0;
  --sc-radius-md: 0;
  /* Shop UI: sharp corners, hairline borders (modern / editorial) */
  --sc-radius-ui: 0;
  --sc-line-subtle: #e8e8e8;
  --sc-surface: #fafafa;
  --sc-surface-elevated: #ffffff;
  --sc-space-lg: 2.5rem;
  --sc-space-xl: 3rem;
}

/* Larger type in main content only (listing + PDP), not site chrome */
.shop-catalog-main {
  --sc-text: 1.25rem;
  --sc-text-sm: 1.125rem;
  --sc-text-md: 1.3125rem;
  --sc-lead: 1.375rem;
  --sc-h-page: clamp(2.15rem, 1.72rem + 2.2vw, 2.75rem);
  --sc-h-product: clamp(2.35rem, 1.95rem + 2.35vw, 2.95rem);
  --sc-price: clamp(1.5rem, 1.25rem + 1.3vw, 1.95rem);
  --sc-price-lg: clamp(1.85rem, 1.55rem + 2.1vw, 2.5rem);
  --sc-overline: 0.9375rem;
}

/* ——— Homepage listing ——— */
.shop-catalog-main.shop-list-page {
  display: block;
  position: relative;
  z-index: 4;
  width: 100%;
  overflow: visible;
  min-height: 55vh;
  background: var(--sc-surface);
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text);
  line-height: var(--sc-line);
  color: var(--sc-body);
}

.shop-page.shop-catalog {
  position: relative;
  z-index: 4;
  padding-top: var(--sc-space-lg);
  padding-bottom: var(--sc-space-xl);
  min-height: 50vh;
}

@media (min-width: 992px) {
  .shop-page.shop-catalog {
    padding-top: 2.75rem;
    padding-bottom: 3.5rem;
  }
}

.shop-list-page .shop-catalog__intro h1 {
  font-family: var(--sc-font-display);
  font-weight: 700;
}

.shop-list-page .shop-catalog__intro h1.title {
  color: var(--sc-brand);
  font-weight: 700;
}

.shop-catalog__intro {
  margin-bottom: 0;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.shop-catalog__kicker {
  font-size: clamp(1rem, 0.92rem + 0.5vw, 1.0625rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sc-muted);
  margin-bottom: 0.75rem;
}

.shop-list-page .shop-catalog__intro .title {
  font-size: clamp(2.25rem, 1.75rem + 2.4vw, 3rem);
}

.shop-list-page__lede {
  font-size: clamp(1.28rem, 1.15rem + 0.55vw, 1.42rem);
  color: var(--sc-muted);
  margin: 0.35rem 0 0;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.shop-page__hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

@media (min-width: 768px) {
  .shop-page__hero {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
  }
}

.shop-page__grid {
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .shop-page__grid {
    padding-top: 0.75rem;
  }
}

/* Bootstrap row — tighter gutters on 2-col mobile */
.store-grid {
  margin-left: -6px;
  margin-right: -6px;
}

@media (min-width: 768px) {
  .store-grid {
    margin-left: -8px;
    margin-right: -8px;
  }
}

.store-grid > [class*="col-"] {
  display: flex;
  flex-direction: column;
  padding-left: 6px;
  padding-right: 6px;
}

@media (min-width: 768px) {
  .store-grid > [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
  }
}

.store-grid > [class*="col-"] > .store-card {
  flex: 1 1 auto;
  width: 100%;
}

.store-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--sc-surface-elevated);
  border-radius: var(--sc-radius-ui);
  border: 1px solid var(--sc-line-subtle);
  box-shadow: none;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.store-card:hover {
  border-color: #0f172a;
  transform: none;
}

/* Homepage listing: soft corners + hover lift/shadow */
.shop-list-page .store-card {
  --sc-radius-card: 0.5rem;
  border-radius: var(--sc-radius-card);
  transition:
    border-color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.shop-list-page .store-card:hover {
  border-color: rgba(0, 46, 109, 0.35);
  box-shadow:
    0 12px 28px rgba(15, 23, 42, 0.09),
    0 4px 10px rgba(0, 46, 109, 0.07);
  transform: translateY(-4px);
}

.shop-list-page .store-card__badge-pct {
  border-radius: 0.375rem;
}

.shop-list-page .store-card__stock-pill {
  border-radius: 0.375rem;
}

.store-card__link {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 100%;
  color: inherit;
  text-decoration: none;
}

.store-card__link:hover {
  color: inherit;
  text-decoration: none;
}

.store-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: clamp(168px, 42vw, 236px);
  padding: 1rem 0.75rem 0.65rem;
  background: #fff;
  border-bottom: 1px solid #eef1f4;
}

@media (min-width: 768px) {
  .store-card__media {
    min-height: 228px;
    padding: 1.15rem 0.85rem 0.75rem;
  }
}

.store-card__media img {
  position: relative;
  display: block;
  max-width: 92%;
  max-height: min(46vw, 168px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

@media (min-width: 768px) {
  .store-card__media img {
    max-height: 168px;
  }
}

.store-card__placeholder {
  color: #94a3b8;
  font-size: var(--sc-text-sm);
}

.store-card__badge-pct {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 0.35rem 0.5rem;
  font-size: clamp(0.875rem, 0.82rem + 0.3vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #422006;
  background: #facc15;
  border: 1px solid #ca8a04;
  border-radius: var(--sc-radius-ui);
  box-shadow: none;
  line-height: 1.2;
}

.store-card__body {
  padding: 0.95rem 0.8rem 0.7rem;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0.45rem;
  text-align: left;
}

@media (min-width: 768px) {
  .store-card__body {
    padding: 1.1rem 1.05rem 0.85rem;
    gap: 0.5rem;
  }
}

.store-card__title {
  font-family: var(--sc-font-display);
  font-size: clamp(1.3125rem, 1.18rem + 0.6vw, 1.5rem);
  font-weight: 700;
  line-height: 1.32;
  margin: 0 0 0.15rem;
  color: var(--sc-brand);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  margin: 0.1rem 0 0.25rem;
}

.store-card__price {
  font-size: var(--sc-price);
  font-weight: 700;
  color: var(--sc-brand);
  margin: 0;
  letter-spacing: -0.025em;
}

.store-card__was {
  font-size: clamp(1rem, 0.93rem + 0.45vw, 1.125rem);
  color: #94a3b8;
  text-decoration: line-through;
  margin: 0;
  font-weight: 600;
}

.store-card__meta {
  font-size: clamp(1.1rem, 1.02rem + 0.45vw, 1.2rem);
  color: var(--sc-body);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.store-card__meta-sep {
  opacity: 0.75;
}

.store-card__stock-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 0.15rem;
  padding: 0.35rem 0.55rem;
  font-size: clamp(0.9375rem, 0.9rem + 0.28vw, 1rem);
  font-weight: 600;
  border-radius: var(--sc-radius-ui);
  line-height: 1.25;
  max-width: 100%;
}

@media (min-width: 768px) {
  .store-card__stock-pill {
    padding: 0.42rem 0.8rem;
    margin-top: 0.2rem;
  }
}

.store-card__stock-pill--in::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 0.4rem;
  border-radius: var(--sc-radius-ui);
  background: #059669;
  flex-shrink: 0;
}

.store-card__stock-pill--in {
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.store-card__stock-pill--out {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.store-card__actions {
  margin-top: auto;
  /* Match .store-card__body horizontal padding so the button aligns with title/meta */
  padding: 0.7rem 0.8rem 0.8rem;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .store-card__actions {
    padding: 0.75rem 1.05rem 1rem;
  }
}

.store-card__view {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.6rem 0.875rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.2rem);
  font-weight: 700;
  color: #fff;
  background: var(--sc-brand);
  border-radius: var(--sc-radius-ui);
  min-height: 44px;
  line-height: 1.2;
  box-shadow: none;
}

.store-card__link:hover .store-card__view {
  background: #001a40;
  color: #fff;
}

.shop-catalog__empty {
  text-align: center;
  padding: var(--sc-space-xl) 1.5rem;
  font-size: clamp(1.28rem, 1.18rem + 0.5vw, 1.42rem);
  color: var(--sc-muted);
  border: 1px dashed #a3a3a3;
  border-radius: var(--sc-radius-ui);
  background: var(--sc-surface-elevated);
  line-height: 1.55;
}

.shop-catalog-main:not(.shop-list-page) h1,
.shop-catalog-main:not(.shop-list-page) h2,
.shop-catalog-main:not(.shop-list-page) h3 {
  font-family: var(--sc-font-display);
  font-weight: 600;
  color: var(--sc-ink);
}
/* ——— Product detail page (mobile-first, sharp / modern) ——— */
.shop-catalog-main--detail {
  --sd-sticky-h: 4.25rem;
  background: var(--sc-surface);
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text);
  line-height: var(--sc-line);
  color: var(--sc-body);
  overflow-x: clip;
  padding-bottom: 1.5rem;
}

.shop-catalog-main--detail:has(.shop-detail__sticky) {
  padding-bottom: calc(var(--sd-sticky-h) + env(safe-area-inset-bottom, 0px) + 0.5rem);
}

@media (min-width: 992px) {
  .shop-catalog-main--detail {
    padding-bottom: 3.5rem;
  }

  .shop-catalog-main--detail:has(.shop-detail__sticky) {
    padding-bottom: 3.5rem;
  }
}

.shop-catalog--detail {
  padding-top: 1rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .shop-catalog--detail {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }
}

.shop-detail {
  max-width: 1180px;
}

.shop-detail__row {
  align-items: stretch;
}

/* ——— Nav: back link + breadcrumb ——— */
.shop-detail__nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.shop-detail__back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sc-brand);
  text-decoration: none;
  padding: 0.45rem 0.65rem;
  margin: -0.45rem -0.65rem;
  border-radius: var(--sc-radius-ui);
  transition: background 0.15s ease;
}

.shop-detail__back-link:hover {
  background: rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--sc-brand);
}

.shop-detail__back-icon {
  font-size: 1.35rem;
  line-height: 1;
}

@media (min-width: 992px) {
  .shop-detail__back-link {
    display: none;
  }
}

.shop-detail__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(1rem, 0.93rem + 0.3vw, 1.125rem);
  margin: 0;
  padding: 0.5rem 0.85rem;
  background: var(--sc-surface-elevated);
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  flex: 1;
  min-width: 0;
  box-shadow: none;
}

.shop-detail__breadcrumb a {
  color: var(--sc-brand);
  font-weight: 700;
  text-decoration: none;
}

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

.shop-detail__bc-sep {
  color: #cbd5e1;
  user-select: none;
}

.shop-detail__bc-current {
  color: #475569;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  max-width: min(72vw, 22rem);
}

@media (min-width: 992px) {
  .shop-detail__bc-current {
    max-width: 28rem;
  }
}

/* ——— Media column: full-bleed on small screens ——— */
.shop-detail__col-media {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .shop-detail__col-media {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }
}

.shop-detail__gallery {
  position: relative;
}

.shop-detail__ribbon {
  position: absolute;
  top: max(12px, env(safe-area-inset-top, 12px));
  left: max(12px, env(safe-area-inset-left, 12px));
  z-index: 3;
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #422006;
  background: #facc15;
  border: 1px solid #ca8a04;
  border-radius: var(--sc-radius-ui);
  box-shadow: none;
}

.shop-detail__image-shell {
  position: relative;
  border-radius: var(--sc-radius-ui);
  padding: 0;
  background: var(--sc-surface-elevated);
  border-bottom: 1px solid var(--sc-line-subtle);
  box-shadow: none;
}

@media (min-width: 992px) {
  .shop-detail__image-shell {
    border: 1px solid var(--sc-line-subtle);
    border-bottom: 1px solid var(--sc-line-subtle);
  }
}

.shop-detail__image-wrap {
  background: var(--sc-surface-elevated);
  border-radius: var(--sc-radius-ui);
  padding: 1.75rem 1.25rem;
  min-height: min(56vw, 320px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 992px) {
  .shop-detail__image-wrap {
    padding: 2.25rem 1.75rem;
    min-height: 320px;
  }
}

.shop-detail__image {
  display: block;
  max-width: 100%;
  max-height: min(58vh, 540px);
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
}

.shop-detail__no-img {
  color: #94a3b8;
  font-size: var(--sc-text);
}

/* ——— Info card ——— */
.shop-detail__info-card {
  position: relative;
  background: var(--sc-surface-elevated);
  border-radius: var(--sc-radius-ui);
  margin-top: 0;
  padding: 1.5rem 1.25rem 1.25rem;
  border: 1px solid var(--sc-line-subtle);
  border-top: 1px solid var(--sc-line-subtle);
  box-shadow: none;
  z-index: 2;
}

@media (min-width: 992px) {
  .shop-detail__info-card {
    padding: 2rem 2rem 2.25rem;
    border-left: 3px solid var(--sc-brand);
  }

  .shop-detail__info-card::before {
    display: none;
  }
}

.shop-detail__intro {
  margin-bottom: 1.25rem;
}

.shop-detail__eyebrow {
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sc-muted);
  margin: 0 0 0.5rem;
}

.shop-detail__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.6rem 0.85rem;
  margin-bottom: 0.65rem;
}

.shop-detail__title {
  font-family: var(--sc-font-display);
  font-size: clamp(1.75rem, 1.45rem + 1.7vw, 2.65rem);
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.035em;
  color: var(--sc-ink);
  flex: 1 1 12rem;
  min-width: 0;
}

.shop-detail__badge-pct {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #422006;
  background: #facc15;
  border: 1px solid #ca8a04;
  border-radius: var(--sc-radius-ui);
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-detail__lead {
  font-size: clamp(1.12rem, 1.04rem + 0.4vw, 1.28rem);
  color: var(--sc-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 36rem;
}

.shop-detail__description {
  margin-top: 0.9rem;
  font-size: var(--sc-text-sm);
  line-height: 1.7;
  color: var(--sc-body);
}

/* Accordion: product details */
.shop-detail__accordion {
  margin: 0 0 1.35rem;
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  background: var(--sc-surface);
  overflow: hidden;
}

.shop-detail__accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sc-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.shop-detail__accordion-summary::-webkit-details-marker {
  display: none;
}

.shop-detail__accordion-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--sc-muted);
  border-bottom: 2px solid var(--sc-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-bottom: 0.2rem;
}

.shop-detail__accordion[open] .shop-detail__accordion-chevron {
  transform: rotate(-135deg);
  margin-top: 0.2rem;
  margin-bottom: 0;
}

.shop-detail__accordion-body {
  padding: 0 1.1rem 1.1rem;
}

@media (min-width: 992px) {
  .shop-detail__accordion {
    background: transparent;
    border: none;
    border-radius: 0;
    margin-bottom: 1.75rem;
  }

  .shop-detail__accordion-summary {
    display: none;
  }

  .shop-detail__accordion-body {
    padding: 0;
  }
}

.shop-detail__h2 {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sc-muted);
  margin: 0 0 0.85rem;
}

.shop-detail__h2--specs-desktop {
  display: none;
}

@media (min-width: 992px) {
  .shop-detail__h2--specs-desktop {
    display: block;
  }
}

/* Specs grid */
.shop-detail__specs {
  margin: 0;
  padding: 0;
}

.shop-detail__specs--grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

@media (min-width: 480px) {
  .shop-detail__specs--grid {
    grid-template-columns: 1fr 1fr;
  }
}

.shop-detail__specs--grid .shop-detail__spec-block {
  margin: 0;
  padding: 0.75rem 0.85rem;
  background: var(--sc-surface-elevated);
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  transition: border-color 0.15s ease;
}

@media (min-width: 992px) {
  .shop-detail__accordion .shop-detail__specs--grid .shop-detail__spec-block {
    background: var(--sc-surface);
  }
}

.shop-detail__specs--grid .shop-detail__spec-block:hover {
  border-color: #0f172a;
  box-shadow: none;
}

.shop-detail__specs--grid dt {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sc-muted);
  margin: 0 0 0.35rem;
  padding: 0;
}

.shop-detail__specs--grid dd {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  font-weight: 600;
  color: var(--sc-ink);
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

/* Purchase */
.shop-detail__h2--order {
  margin-bottom: 1rem;
  color: var(--sc-brand);
}

.shop-detail__purchase {
  margin-top: 0.25rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--sc-surface-elevated);
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
}

@media (min-width: 576px) {
  .shop-detail__purchase {
    padding: 1.35rem 1.35rem 1.5rem;
  }
}

.shop-detail__field {
  margin-bottom: 1.05rem;
}

.shop-detail__field--qty {
  margin-bottom: 0;
}

.shop-detail__label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--sc-ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}

.shop-detail__select,
.shop-detail__input {
  width: 100%;
  max-width: 100%;
  font-size: 1.125rem;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  background: var(--sc-surface-elevated);
  color: #0f172a;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-detail__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.shop-detail__qty-stepper {
  display: flex;
  align-items: stretch;
  max-width: 12rem;
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  overflow: visible;
  background: var(--sc-surface-elevated);
  isolation: isolate;
}

.shop-detail__qty-btn {
  flex: 0 0 48px;
  min-height: 48px;
  border: none;
  background: #f5f5f5;
  color: var(--sc-ink);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 2;
  user-select: none;
}

.shop-detail__qty-btn:hover {
  background: #ebebeb;
}

.shop-detail__qty-btn:active {
  background: #e0e0e0;
}

.shop-detail__input--qty,
.shop-detail__qty-stepper input[type="number"]#sf-quantity {
  flex: 0 0 3.75rem;
  width: 3.75rem;
  min-width: 3rem;
  max-width: 6rem;
  min-height: 48px;
  border: none;
  border-left: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  border-radius: 0;
  text-align: center;
  font-weight: 700;
  font-size: 1.4rem !important;
  line-height: 1.35;
  color: #0f172a !important;
  -webkit-text-fill-color: #0f172a !important;
  background-color: #ffffff !important;
  font-variant-numeric: tabular-nums;
  opacity: 1 !important;
  position: relative;
  z-index: 1;
  -moz-appearance: textfield;
}

.shop-detail__input--qty::-webkit-outer-spin-button,
.shop-detail__input--qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.shop-detail__select:focus,
.shop-detail__input:not(.shop-detail__input--qty):focus {
  outline: none;
  border-color: #0f172a;
  box-shadow: 0 0 0 1px #0f172a;
}

/* One ring around the full control (minus | qty | plus) — inner focus must not draw its own outline/shadow */
.shop-detail__qty-stepper:focus-within {
  border-color: var(--sc-brand);
  box-shadow: 0 0 0 2px var(--sc-brand);
}

.shop-detail__qty-stepper .shop-detail__qty-btn:focus,
.shop-detail__qty-stepper .shop-detail__qty-btn:focus-visible,
.shop-detail__qty-stepper .shop-detail__input--qty:focus,
.shop-detail__qty-stepper .shop-detail__input--qty:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.shop-detail__price-card {
  margin: 1.1rem 0 1.15rem;
  padding: 1rem 1.1rem;
  background: var(--sc-surface);
  border: 1px solid var(--sc-line-subtle);
  border-radius: var(--sc-radius-ui);
  box-shadow: none;
}

.shop-detail__price-row {
  margin: 0;
  padding: 0;
  border: none;
}

.shop-detail__price-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--sc-muted);
  margin-bottom: 0.3rem;
}

.shop-detail__price-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.75rem;
}

.shop-detail__price-current {
  font-size: var(--sc-price-lg);
  font-weight: 700;
  color: var(--sc-brand);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.shop-detail__price-was {
  font-size: var(--sc-text-sm);
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 600;
}

.shop-detail__line-total-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--sc-line-subtle);
}

.shop-detail__line-total {
  font-size: clamp(1.4rem, 1.25rem + 0.6vw, 1.75rem);
  font-weight: 800;
  color: var(--sc-ink);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.shop-detail__stock {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-detail__stock--ok::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--sc-radius-ui);
  background: #059669;
  flex-shrink: 0;
}

.shop-detail__stock--bad::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--sc-radius-ui);
  background: #dc2626;
  flex-shrink: 0;
}

.shop-detail__btn {
  display: block;
  width: 100%;
  font-size: 1.125rem;
  font-weight: 700;
  padding: 1rem 1.5rem;
  min-height: 52px;
  border: 1px solid var(--sc-brand);
  border-radius: var(--sc-radius-ui);
  color: #fff;
  cursor: pointer;
  background: var(--sc-brand);
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shop-detail__btn:hover:not(:disabled) {
  background: #001a40;
  border-color: #001a40;
  color: #fff;
}

.shop-detail__btn:active:not(:disabled) {
  transform: none;
  background: #001433;
}

.shop-detail__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.2);
}

/* Desktop: full-width CTA in form */
.shop-detail__btn--desktop {
  margin-top: 1.15rem;
}

@media (max-width: 991.98px) {
  .shop-detail__btn--desktop {
    display: none;
  }
}

/* Sticky bottom bar (thumb zone) */
.shop-detail__sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 250, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--sc-line-subtle);
  box-shadow: none;
}

@media (max-width: 991.98px) {
  .shop-detail__sticky {
    display: block;
  }
}

.shop-detail__sticky-inner {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 720px;
  margin: 0 auto;
}

.shop-detail__sticky-text {
  flex: 1;
  min-width: 0;
}

.shop-detail__sticky-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--sc-muted);
  margin-bottom: 0.15rem;
}

.shop-detail__sticky-amount {
  font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.6rem);
  font-weight: 800;
  color: var(--sc-brand);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.shop-detail__btn--sticky {
  flex: 0 1 auto;
  width: auto;
  min-width: min(52vw, 12rem);
  margin-top: 0;
  padding: 0.85rem 1.15rem;
  min-height: 48px;
  font-size: 1.125rem;
  border-radius: var(--sc-radius-ui);
}

.shop-detail__empty-msg {
  font-size: var(--sc-lead);
  color: var(--sc-muted);
  margin: 0;
}

/* A11y: focus + reduced motion (qty stepper uses wrapper ring only) */
.shop-catalog-main a:focus-visible,
.shop-catalog-main button:not(.shop-detail__qty-btn):focus-visible,
.shop-catalog-main select:focus-visible,
.shop-catalog-main input:not(.shop-detail__input--qty):focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
}

.shop-catalog-main .shop-detail__qty-btn:focus-visible {
  outline: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .store-card,
  .store-card:hover,
  .shop-detail__btn,
  .shop-detail__accordion-chevron {
    transition: none;
  }
  .store-card:hover {
    transform: none;
  }
  .shop-list-page .store-card:hover {
    transform: none;
    box-shadow: none;
  }
}
