/** Tienda Digind — Mobile First **/

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--color-border);
}

.product-card__link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--color-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__img--contain {
  object-fit: contain;
  padding: var(--space-6);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-border);
  font-size: 3rem;
}

.product-card__body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.product-card__price {
  margin-top: auto;
  padding-top: var(--space-3);
}

.product-card__price-old {
  text-decoration: line-through;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.product-card__price-current {
  color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-xl);
  margin-left: var(--space-2);
}

.product-card__price-regular {
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-xl);
}

.product-card__price-currency {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.product-card__actions {
  margin-top: auto;
  padding: var(--space-4) var(--space-5) var(--space-5);
  display: flex;
  gap: var(--space-3);
  align-items: stretch;
  border-top: 1px solid var(--color-border);
}

.product-card__form {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
}

.product-card__cta,
.product-card__cta--primary {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding-inline: var(--space-4);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.product-card__cta-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card__cta-icon {
  flex-shrink: 0;
  font-size: 1.0625rem;
}

.product-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.product-card__badge {
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.product-card__badge--promo {
  background: var(--color-accent);
  color: var(--color-text-inverse);
}

.product-card__badge--featured {
  background: var(--color-navy);
  color: var(--color-text-inverse);
}

.product-card__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.45;
  margin: 0 0 var(--space-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-left: var(--space-1);
}

.product-card__view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  min-width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  background: var(--color-navy);
  color: var(--color-text-inverse);
  border-radius: var(--radius-base);
  text-decoration: none;
  font-size: 1.125rem;
  transition: background-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.product-card__view-btn:hover {
  background: var(--color-navy-soft);
  color: var(--color-text-inverse);
}

.product-card__view-btn:active {
  transform: scale(0.97);
}

/* Store grid — overrides legados movidos al bloque v3.2.8 más abajo */

.client-logo__image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Product grids legados — sobreescritos por el bloque v3.2.8 más abajo */

.product-grid--related {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .product-grid--related {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* ============================================================
   Product Show PDP — E-commerce
   ============================================================ */

/* ========== Product Show (PDP mockup) ========== */
.product-show {
  padding-top: var(--space-5);
  padding-bottom: var(--space-16);
  background: var(--bg);
}

@media (max-width: 767px) {
  .product-show {
    padding-bottom: var(--space-24);
  }
}

.product-show__container {
  max-width: var(--max-width);
  width: 100%;
}

/* Breadcrumb */
.product-show__breadcrumb {
  margin-bottom: var(--space-6);
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.product-show__breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-1) var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-show__breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-width: 0;
  max-width: 100%;
}

.product-show__breadcrumb-item:not(:last-child)::after {
  content: "›";
  color: var(--fg-muted);
  opacity: 0.7;
  font-weight: 400;
  font-size: 1.05em;
  line-height: 1;
}

.product-show__breadcrumb a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.product-show__breadcrumb a:hover {
  color: var(--fg);
}

.product-show__breadcrumb [aria-current="page"] span {
  color: var(--fg);
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hero layout: gallery + buy box */
.product-show__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 900px) {
  .product-show__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: var(--space-10);
    align-items: start;
  }
}

@media (min-width: 1100px) {
  .product-show__layout {
    grid-template-columns: minmax(0, 560px) minmax(340px, 1fr);
    gap: var(--space-12);
    justify-content: center;
  }
}

/* Gallery */
.product-show__media {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-show__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (min-width: 900px) {
  .product-show__gallery--with-thumbs {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
  }

  .product-show__gallery--with-thumbs .product-show__thumbs {
    order: 0;
    flex-direction: column;
    overflow-x: visible;
    overflow-y: auto;
    max-height: 32rem;
    padding-bottom: 0;
  }

  .product-show__gallery--with-thumbs .product-show__stage {
    order: 1;
  }
}

.product-show__stage {
  position: relative;
  background: var(--bg-sunken, #f3f4f6);
  border: 0;
  border-radius: var(--radius-lg);
  aspect-ratio: 1 / 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: none;
}

.product-show__stage-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--fg, #111);
  border-radius: var(--radius-sm, 6px);
}

.product-show__placeholder {
  width: 7.5rem;
  height: 7.5rem;
  background: var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 3rem;
}

.product-show__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-show__img--contain {
  max-height: 12.5rem;
  width: auto;
  height: auto;
  object-fit: contain;
  padding: var(--space-6);
}

.product-show__thumbs {
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-1);
  scrollbar-width: thin;
}

.product-show__thumb-btn {
  flex: 0 0 4.5rem;
  width: 4.5rem;
  height: 4.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--bg-sunken, #f3f4f6);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: border-color var(--duration-fast) var(--ease-out);
}

.product-show__thumb-btn:hover {
  border-color: var(--border-strong, #9ca3af);
}

.product-show__thumb-btn.is-active {
  border-color: var(--fg, #111);
  box-shadow: none;
}

.product-show__thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-show__video {
  text-align: center;
}

.product-show__video .btn i {
  margin-right: var(--space-2);
}

/* Buy box */
.product-show__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

@media (min-width: 900px) {
  .product-show__info {
    position: sticky;
    top: calc(var(--nav-height, 80px) + var(--space-4));
    max-height: calc(100vh - var(--nav-height, 80px) - var(--space-8));
    overflow-y: auto;
    padding-right: var(--space-1);
  }
}

.product-show__header-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-show__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--fg);
  text-wrap: balance;
}

.product-show__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2) var(--space-3);
  margin: 0;
}

.product-show__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
}

.product-show__price-current {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.product-show__price-old {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--fg-muted);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.product-show__price-currency {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.product-show__short-desc {
  margin: 0;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 52ch;
  font-size: var(--text-sm);
}

.product-show__short-desc p {
  margin: 0 0 var(--space-2);
}

.product-show__short-desc p:last-child {
  margin-bottom: 0;
}

.product-show__purchase {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.product-show__purchase > form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: 0;
}

.product-show__purchase-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.product-show__purchase-bar {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

@media (max-width: 767px) {
  .product-show__purchase-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-left: calc(-1 * var(--space-4));
    margin-right: calc(-1 * var(--space-4));
    padding: var(--space-4);
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-top: 1px solid var(--border);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 32px color-mix(in srgb, var(--fg) 10%, transparent);
  }

  @supports not (backdrop-filter: blur(1px)) {
    .product-show__purchase-bar {
      background: var(--bg-elevated);
    }
  }
}

.product-show__config {
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: 0;
}

.product-show__config-title {
  font-size: var(--text-base);
  font-weight: 600;
  margin: 0 0 var(--space-4);
  color: var(--fg);
}

.product-show__config .field {
  margin-bottom: var(--space-4);
}

.product-show__config .field:last-child {
  margin-bottom: 0;
}

.product-show__config-hint {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  font-style: normal;
}

.product-show__config-unit {
  font-size: var(--text-sm);
  color: var(--fg-muted);
}

.product-show__field {
  margin: 0;
}

.product-show__field label {
  display: block;
  margin-bottom: var(--space-2);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--fg);
}

.product-show__field--qty {
  flex: 0 0 auto;
}

.product-show__cart-row {
  display: flex;
  align-items: stretch;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.quantity-stepper--boxed {
  gap: 0;
  border: 1px solid var(--border-strong, #d1d5db);
  border-radius: var(--radius-base);
  overflow: hidden;
  background: var(--bg);
  height: 48px;
}

.quantity-stepper__btn {
  width: 44px;
  min-width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--fg);
  font-size: var(--text-lg);
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) var(--ease-out);
}

.quantity-stepper__btn:hover {
  background: var(--bg-sunken);
}

.quantity-stepper--boxed .product-quantity-input,
.quantity-stepper--boxed .product-months-input,
.quantity-stepper--boxed .product-config-input {
  width: 3rem;
  min-height: 100%;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  background: transparent;
  box-shadow: none;
  -moz-appearance: textfield;
}

.quantity-stepper--boxed .product-quantity-input::-webkit-outer-spin-button,
.quantity-stepper--boxed .product-quantity-input::-webkit-inner-spin-button,
.quantity-stepper--boxed .product-months-input::-webkit-outer-spin-button,
.quantity-stepper--boxed .product-months-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-stepper .btn--sm {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  line-height: 1;
}

.quantity-stepper .product-config-input,
.quantity-stepper .product-quantity-input,
.quantity-stepper .product-months-input {
  width: 4rem;
  min-height: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.product-show__btn-outline {
  flex: 1 1 auto;
  min-height: 48px;
  min-width: 8rem;
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg, #111);
  border-radius: var(--radius-base);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.product-show__btn-outline:hover {
  background: var(--fg, #111);
  color: #fff;
}

.product-show__icon-btn {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--fg, #111);
  border-radius: var(--radius-base);
  color: var(--fg);
  background: transparent;
  text-decoration: none;
  font-size: 1.25rem;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.product-show__icon-btn:hover {
  background: #25d366;
  border-color: #25d366;
  color: #fff;
}

.product-show__btn-shop {
  width: 100%;
  min-height: 52px;
  font-weight: 600;
  border-radius: var(--radius-base);
}

.product-show__btn-shop--disabled,
.product-show__btn-shop:disabled {
  width: 100%;
  min-height: 52px;
  font-weight: 600;
  border-radius: var(--radius-base);
  background: var(--bg-sunken, #e5e7eb);
  color: var(--fg-muted, #6b7280);
  border: 1px solid var(--border, #d1d5db);
  cursor: not-allowed;
  opacity: 1;
}

.product-show__purchase-bar--out-of-stock {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-show__total {
  margin: 0;
  padding: var(--space-3) var(--space-4);
  background: var(--bg-sunken);
  border-radius: var(--radius-base);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.product-show__total-label {
  font-weight: 600;
  color: var(--fg);
  font-size: var(--text-sm);
}

.product-show__total-value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

/* Trust / payments */
.product-show__checkout-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-sunken, #f3f4f6);
  border-radius: var(--radius-lg);
  text-align: center;
}

.product-show__payment-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}

.product-show__payment-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 6px);
}

.product-show__checkout-trust-label {
  margin: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Shipping rows */
.product-show__shipping {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-show__shipping-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.5;
}

.product-show__shipping-item i {
  margin-top: 0.15em;
  color: var(--fg);
  width: 1.1em;
  text-align: center;
  flex-shrink: 0;
}

.product-show__shipping-link {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-show__shipping-link:hover {
  color: var(--accent);
}

/* Share */
.product-show__share {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-show__share-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
}

.product-show__share-links {
  display: flex;
  gap: var(--space-2);
}

.product-show__share-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
}

.product-show__share-btn:hover {
  color: var(--fg);
  border-color: var(--fg);
  background: var(--bg-sunken);
}

/* Accordion details */
.product-show__accordion {
  margin-bottom: var(--space-12);
  max-width: 48rem;
  border-top: 1px solid var(--border);
}

.product-show__acc-item {
  border-bottom: 1px solid var(--border);
}

.product-show__acc-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--fg);
  user-select: none;
}

.product-show__acc-summary::-webkit-details-marker {
  display: none;
}

.product-show__acc-icon {
  font-size: 0.85rem;
  color: var(--fg-muted);
  transition: transform var(--duration-fast) var(--ease-out);
}

.product-show__acc-item[open] .product-show__acc-icon {
  transform: rotate(180deg);
}

.product-show__acc-panel {
  padding: 0 0 var(--space-6);
  color: var(--fg-muted);
  line-height: 1.75;
  font-size: var(--text-base);
}

.product-show__acc-panel.trix-content p {
  margin: 0 0 var(--space-4);
}

.product-show__acc-panel.trix-content p:last-child {
  margin-bottom: 0;
}

.product-show__acc-panel.trix-content h1,
.product-show__acc-panel.trix-content h2,
.product-show__acc-panel.trix-content h3,
.product-show__acc-panel.trix-content h4 {
  font-family: var(--font-heading);
  color: var(--fg);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.product-show__acc-panel.trix-content ul,
.product-show__acc-panel.trix-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}

.product-show__acc-panel.trix-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  margin-block: var(--space-4);
}

.product-show__acc-panel.trix-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.product-show__specs {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-show__specs-row {
  display: grid;
  grid-template-columns: minmax(8rem, 0.4fr) minmax(0, 0.6fr);
  gap: var(--space-4);
  padding: var(--space-3) 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.product-show__specs-row:last-child {
  border-bottom: 0;
}

.product-show__specs-row dt {
  margin: 0;
  font-weight: 700;
  color: var(--fg);
  font-size: var(--text-sm);
}

.product-show__specs-row dd {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

@media (max-width: 480px) {
  .product-show__specs-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }
}

/* Related */
.product-show__related {
  margin-bottom: var(--space-12);
  padding-top: var(--space-2);
  max-width: 100%;
}

.product-show__related-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.product-show__related-title {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: 700;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.product-show__related-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
  transition: color var(--duration-fast) var(--ease-out);
}

.product-show__related-link:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .product-show__thumb-btn,
  .product-show__acc-icon,
  .related-carousel__track {
    transition: none;
  }
}

/* Cart badge in navbar */
.nav__cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.nav__cart-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: #e11d48;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Checkbox inline */
.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

/* Admin nested fields */
.nested-fields {
  background: var(--bg);
}

/* Dialog backdrop for YouTube modal */
dialog.youtube-modal::backdrop {
  background: transparent;
}

/* Checkout page */
.checkout-page .field input,
.checkout-page .field textarea,
.checkout-page .field select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  background: var(--bg-elevated);
}

.checkout-page .field input:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 10%, transparent);
}

/* Cart page */
.cart-page .field input,
.cart-page .field textarea,
.cart-page .field select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
}

/* Product show form inputs */
.product-config-input,
.product-quantity-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 1rem;
}

/* Button WhatsApp override */
.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
}

.btn--whatsapp:hover {
  background: #128c7e;
}

/* ActionText content styling */
.trix-content {
  line-height: 1.7;
}

.trix-content h1,
.trix-content h2,
.trix-content h3 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.trix-content ul,
.trix-content ol {
  padding-left: 1.25rem;
}

.trix-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
}

/* ============================================================
   Store Index — landing e-commerce Digind
   ============================================================ */

.store-index {
  background: var(--bg);
}

/* Columna centrada: nunca full-width de viewport */
.store-shell {
  max-width: var(--max-width);
  width: 100%;
  margin-inline: auto;
}

.store-landing {
  padding-bottom: var(--space-8);
}

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

.store-section-head {
  margin: var(--space-10) 0 var(--space-6);
}

.store-section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.store-section-head__title {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.store-section-head__lead {
  margin: 0;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.store-section-head__link {
  font-weight: 700;
  color: var(--brand-accent);
  text-decoration: none;
}

.store-section-head__link:hover {
  text-decoration: underline;
}

/* ---------- Promo banners mosaic ---------- */
.store-banners {
  padding: var(--space-6) 0 var(--space-4);
}

.store-banners__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.store-banner {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  min-height: 140px;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

a.store-banner:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.store-banner--main {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--brand-navy) 92%, #fff) 0%, var(--brand-navy-soft) 100%);
  color: #fff;
  border-color: transparent;
  min-height: 280px;
}

.store-banner--sale {
  background: var(--brand-accent);
  color: #fff;
  border-color: transparent;
}

.store-banner__content {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

.store-banner__eyebrow {
  display: inline-flex;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.store-banner__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.store-banner__title--sm {
  font-size: var(--text-base);
  font-weight: 700;
}

.store-banner__lead {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.5;
  opacity: 0.92;
  max-width: 28rem;
}

.store-banner__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  margin: var(--space-2) 0;
}

.store-banner__price--compact {
  margin: 0;
}

.store-banner__price-label {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.8;
}

.store-banner__price-value {
  font-size: var(--text-xl);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.store-banner__price-old {
  font-size: var(--text-sm);
  text-decoration: line-through;
  opacity: 0.7;
}

.store-banner__price-currency {
  font-size: var(--text-xs);
  font-weight: 600;
  opacity: 0.75;
}

.store-banner__cta {
  margin-top: var(--space-2);
}

.store-banner__cta--light {
  background: #fff;
  color: var(--brand-accent);
  border-color: #fff;
}

.store-banner__cta--light:hover {
  background: color-mix(in srgb, #fff 90%, var(--brand-accent));
}

.store-banner__media,
.store-banner__visual {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(42%, 220px);
}

.store-banner__visual {
  font-size: 4.5rem;
  opacity: 0.2;
  color: #fff;
}

.store-banner__visual--sm {
  font-size: 2.5rem;
  opacity: 0.35;
  color: var(--brand-navy);
}

.store-banner__media img,
.store-banner__media .product-card__img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
}

.store-banner__placeholder {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 1.75rem;
}

.store-banner--product {
  background: var(--bg-elevated);
}

.store-banner--product .store-banner__price-value {
  color: var(--brand-accent);
}

@media (min-width: 768px) {
  .store-banners__grid {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto auto;
    gap: var(--space-4);
  }

  .store-banner--main {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-height: 100%;
  }

  .store-banner--top {
    grid-column: 2;
    grid-row: 1;
  }

  .store-banner--sale {
    grid-column: 2;
    grid-row: 2;
  }

  .store-banner--bottom-left {
    grid-column: 1;
    grid-row: 3;
  }

  .store-banner--bottom-right {
    grid-column: 2;
    grid-row: 3;
  }
}

/* ---------- Product tabs + carousel ---------- */
.store-tabs-section {
  padding: var(--space-4) 0 var(--space-8);
}

.store-tabs__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border);
}

.store-tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-5);
}

.store-tabs__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--space-3) 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.store-tabs__tab:hover {
  color: var(--fg);
}

.store-tabs__tab.is-active {
  color: var(--fg);
  border-bottom-color: var(--brand-accent);
  font-weight: 800;
}

.store-tabs__panel[hidden] {
  display: none !important;
}

.store-tabs__empty {
  margin: 0;
  padding: var(--space-8);
  text-align: center;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
}

.store-carousel {
  position: relative;
}

.store-carousel__toolbar {
  position: absolute;
  top: -3.25rem;
  right: 0;
  display: flex;
  gap: var(--space-2);
  z-index: 2;
}

.store-carousel__arrow {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--fg);
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out);
}

.store-carousel__arrow:hover {
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}

.store-carousel__viewport {
  overflow: hidden;
}

.store-carousel__track {
  display: flex;
  align-items: stretch;
  gap: var(--space-4);
  transition: transform 0.35s ease;
}

.store-carousel__slide {
  flex: 0 0 calc((100% - var(--space-4)) / 2);
  min-width: 0;
}

@media (min-width: 640px) {
  .store-carousel__slide {
    flex-basis: calc((100% - (var(--space-4) * 2)) / 3);
  }
}

@media (min-width: 1024px) {
  .store-carousel__slide {
    flex-basis: calc((100% - (var(--space-4) * 3)) / 4);
  }
}

@media (max-width: 639px) {
  .store-carousel__viewport {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .store-carousel__track {
    transform: none !important;
  }

  .store-carousel__slide {
    scroll-snap-align: start;
  }

  .store-carousel__toolbar {
    display: none;
  }
}

/* ---------- Promo bar (ancho del shell, no viewport) ---------- */
.store-promo-bar {
  background: var(--brand-navy-deep);
  color: #fff;
  padding: var(--space-5) var(--space-6);
  margin: var(--space-6) 0;
  border-radius: var(--radius-lg);
}

.store-promo-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.store-promo-bar__message {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 600;
  max-width: 40rem;
  line-height: 1.45;
}

.store-promo-bar__cta {
  background: var(--brand-accent);
  color: #fff;
  border-color: var(--brand-accent);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  text-decoration: none;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
}

.store-promo-bar__cta:hover {
  background: var(--brand-accent-hover);
  border-color: var(--brand-accent-hover);
  color: #fff;
}

/* ---------- Category nav ---------- */
.store-category-nav {
  margin: var(--space-8) 0 var(--space-6);
  overflow-x: auto;
  scrollbar-width: thin;
}

.store-category-nav__list {
  display: flex;
  gap: var(--space-3);
  margin: 0;
  padding: 0 0 var(--space-2);
  list-style: none;
  min-width: max-content;
}

.store-category-tile {
  appearance: none;
  width: 140px;
  min-height: 128px;
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

a.store-category-tile:visited {
  color: var(--fg);
}

a.store-category-tile.is-active:visited {
  color: #fff;
}

.store-category-tile:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.store-category-tile.is-active {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

.store-category-tile__icon {
  font-size: 1.5rem;
  line-height: 1;
}

.store-category-tile__name {
  font-size: var(--text-sm);
  font-weight: 700;
  line-height: 1.25;
}

.store-category-tile__count {
  font-size: var(--text-xs);
  opacity: 0.75;
}

@media (min-width: 1024px) {
  .store-category-nav {
    overflow: visible;
  }

  .store-category-nav__list {
    flex-wrap: wrap;
    min-width: 0;
  }

  .store-category-tile {
    width: auto;
    flex: 1 1 140px;
    max-width: 180px;
  }
}

/* ---------- Catalog grid ---------- */
.store-catalog {
  padding-bottom: var(--space-8);
}

.store-catalog__empty {
  margin: 0;
  padding: var(--space-10) var(--space-5);
  text-align: center;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px dashed var(--border);
  border-radius: var(--radius-xl);
}

.store-catalog__empty-link {
  display: inline-block;
  margin-top: var(--space-3);
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: underline;
}

.store-catalog__pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-8);
}

.product-grid--store {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .product-grid--store {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-5);
  }
}

@media (min-width: 1024px) {
  .product-grid--store {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.store-empty {
  text-align: center;
  padding: var(--space-12) var(--space-5);
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-xl);
}

.store-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius-full);
  background: var(--bg);
  color: var(--fg-muted);
  font-size: 1.5rem;
}

.store-empty__title {
  margin: 0 0 var(--space-2);
  font-size: var(--text-xl);
}

.store-empty__text {
  margin: 0 auto var(--space-6);
  max-width: 28rem;
  color: var(--fg-muted);
}

.store-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ---------- Blog teaser ---------- */
.store-blog {
  padding: var(--space-6) 0 var(--space-10);
}

.store-blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .store-blog__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.store-blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--duration-base) var(--ease-out), border-color var(--duration-base) var(--ease-out);
}

.store-blog-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.store-blog-card__link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.store-blog-card__media {
  aspect-ratio: 16 / 10;
  background: var(--bg);
  overflow: hidden;
}

.store-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-blog-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--fg-muted);
  font-size: 2rem;
}

.store-blog-card__body {
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.store-blog-card__meta {
  font-size: var(--text-xs);
  color: var(--fg-muted);
  display: flex;
  gap: var(--space-3);
}

.store-blog-card__meta time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.store-blog-card__title {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: 800;
  line-height: 1.3;
}

.store-blog-card__excerpt {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--fg-muted);
  line-height: 1.55;
}

.store-blog-card__more {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand-accent);
}

/* ---------- Brands ---------- */
.store-brands {
  padding: var(--space-6) 0 var(--space-12);
}

.store-brands__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8) var(--space-10);
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-brands__logo {
  max-height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: filter var(--duration-fast) var(--ease-out), opacity var(--duration-fast) var(--ease-out);
}

.store-brands__item:hover .store-brands__logo {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Trust bar (ancho del shell, no viewport) ---------- */
.store-trust--bar {
  background: var(--brand-accent);
  color: #fff;
  margin: var(--space-6) 0 0;
  padding: var(--space-7) var(--space-6);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.store-trust__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.store-trust--bar .store-trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  background: transparent;
  border: 0;
  padding: 0;
  color: #fff;
}

.store-trust--bar .store-trust__item i {
  font-size: 1.5rem;
  width: 1.5rem;
  flex-shrink: 0;
  color: #fff;
  background: transparent;
}

.store-trust__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-trust__copy strong {
  font-size: var(--text-sm);
  font-weight: 800;
}

.store-trust__copy span,
.store-trust--bar .store-trust__link {
  font-size: var(--text-xs);
  color: color-mix(in srgb, #fff 88%, transparent);
}

.store-trust--bar .store-trust__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.store-trust--bar .store-trust__link:hover {
  color: #fff;
}

@media (min-width: 640px) {
  .store-trust__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .store-trust__list {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
  }
}

/* ---------- Store product card ---------- */
.product-card--store {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.product-card--store .product-card__link {
  height: auto;
  flex: 1;
  min-height: 0;
}

.product-card--store:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

.product-card--store[hidden] {
  display: none !important;
}

.product-card--store .product-card__image {
  background: var(--bg);
  aspect-ratio: 1 / 1;
  position: relative;
}

.product-card--store .product-card__brand {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg-muted);
  margin: 0;
  line-height: 1.2;
}

.product-card--store .product-card__body {
  padding: var(--space-4) var(--space-4) var(--space-2);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.product-card--store .product-card__title {
  font-size: var(--text-sm);
  line-height: 1.4;
  font-weight: 700;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--text-sm) * 1.4 * 2);
  margin: 0;
}

.product-card--store .product-card__price {
  margin-top: auto;
  padding-top: var(--space-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-2);
  border-top: 0;
}

.product-card--store .product-card__price-old {
  text-decoration: line-through;
  color: var(--fg-muted);
  font-size: var(--text-xs);
  font-weight: 500;
}

.product-card--store .product-card__price-current,
.product-card--store .product-card__price-regular {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.product-card--store .product-card__price-current {
  color: var(--brand-accent);
}

.product-card--store .product-card__price-currency,
.product-card--store .product-card__price-note {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--fg-muted);
}

.product-card--store .product-card__badges {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-1);
  pointer-events: none;
}

.product-card--store .product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  line-height: 1.2;
}

.product-card--store .product-card__badge--promo {
  background: var(--brand-accent);
  color: #fff;
}

.product-card--store .product-card__badge--new {
  background: var(--brand-navy);
  color: #fff;
  margin-left: auto;
}

.product-card--store .product-card__badge--digital {
  background: var(--bg-elevated);
  color: var(--fg);
  border: 1px solid var(--border);
}

.product-card--store .product-card__badge--out-of-stock {
  background: var(--fg-muted, #6b7280);
  color: #fff;
}

.product-card--out-of-stock .product-card__image {
  opacity: 0.72;
}

.product-card--store .product-card__icon-btn--disabled {
  color: var(--fg-muted);
  border-color: var(--border);
  background: var(--bg-sunken);
  cursor: not-allowed;
  pointer-events: none;
}

.product-card__cta--disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--bg-sunken, #e5e7eb);
  color: var(--fg-muted, #6b7280);
  border: 1px solid var(--border, #d1d5db);
  cursor: not-allowed;
  pointer-events: none;
  opacity: 1;
}

.product-card--store .product-card__actions--icons {
  margin-top: 0;
  padding: var(--space-2) var(--space-4) var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  gap: var(--space-2);
  justify-content: flex-end;
  align-items: center;
}

.product-card--store .product-card__form--icon {
  margin: 0;
  display: inline-flex;
}

.product-card--store .product-card__icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
  text-decoration: none;
  cursor: pointer;
  transition:
    color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    background var(--duration-fast) var(--ease-out);
}

.product-card--store .product-card__icon-btn:hover {
  color: var(--fg);
  border-color: var(--border-strong);
}

.product-card--store .product-card__icon-btn--primary {
  color: var(--brand-accent);
  border-color: color-mix(in srgb, var(--brand-accent) 35%, var(--border));
  background: color-mix(in srgb, var(--brand-accent) 8%, var(--bg));
}

.product-card--store .product-card__icon-btn--primary:hover {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  color: #fff;
}

:root[data-theme="dark"] .product-card--store .product-card__image {
  background: var(--bg-sunken);
}

:root[data-theme="dark"] .store-banner--product {
  background: var(--bg-elevated);
}

:root[data-theme="dark"] .store-promo-bar {
  background: var(--brand-navy);
}

@media (prefers-reduced-motion: reduce) {
  .store-banner,
  .store-category-tile,
  .product-card--store,
  .store-carousel__track {
    transition: none;
  }

  .store-banner:hover,
  .store-category-tile:hover,
  .product-card--store:hover {
    transform: none;
  }
}

/* ============================================================
   Related Products Carousel
   ============================================================ */

.related-carousel {
  position: relative;
  padding-inline: 0;
}

@media (min-width: 769px) {
  .related-carousel {
    padding-inline: var(--space-6);
  }
}

.related-carousel__viewport {
  overflow: hidden;
  padding-bottom: var(--space-8);
}

.related-carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.4s ease-in-out;
  gap: 1.5rem;
}

.related-carousel__slide {
  flex: 0 0 calc((100% - 3rem) / 3);
  min-width: 0;
  display: flex;
}

.related-carousel .product-card {
  overflow: visible;
  width: 100%;
}

.related-carousel .product-card__image {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.related-carousel .product-card__actions {
  padding-bottom: var(--space-6);
}

.related-carousel .product-card__actions form,
.related-carousel .product-card__form {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.related-carousel .product-card__actions .btn--primary {
  width: 100%;
}

.related-carousel .product-card:hover {
  transform: none;
  box-shadow: var(--shadow-hover);
}

.related-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s, transform 0.2s;
  z-index: 2;
}

.related-carousel__arrow:hover {
  background: var(--fg, #111);
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.related-carousel__arrow--prev {
  left: -24px;
}

.related-carousel__arrow--next {
  right: -24px;
}

@media (max-width: 768px) {
  .related-carousel {
    padding-inline: 0;
    max-width: 100%;
  }

  .related-carousel__viewport {
    overflow-x: hidden;
    max-width: 100%;
    padding-bottom: var(--space-4);
  }

  .related-carousel__track {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
    width: 100%;
    max-width: 100%;
    transform: none !important;
  }

  .related-carousel__slide {
    flex: none;
    min-width: 0;
    width: 100%;
  }

  .related-carousel__slide:nth-child(n+5) {
    display: none;
  }

  .related-carousel .product-card {
    min-width: 0;
  }

  .related-carousel .product-card__body {
    padding: var(--space-3) var(--space-3);
  }

  .related-carousel .product-card__title {
    font-size: var(--text-sm);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .related-carousel .product-card__price-regular,
  .related-carousel .product-card__price-current {
    font-size: var(--text-base);
  }

  .related-carousel .product-card__actions {
    padding: var(--space-3);
    gap: var(--space-2);
  }

  .related-carousel .product-card__view-btn {
    flex: 0 0 44px;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .related-carousel .product-card__cta,
  .related-carousel .product-card__cta--primary {
    min-height: 44px;
    padding-inline: var(--space-2);
    font-size: var(--text-sm);
  }

  .related-carousel__arrow {
    display: none;
  }
}

@media (max-width: 640px) {
  .related-carousel__arrow--prev {
    left: -12px;
  }

  .related-carousel__arrow--next {
    right: -12px;
  }
}


/* ---------- Dark mode overrides for shop ---------- */
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .cart-item,
:root[data-theme="dark"] .checkout-panel,
:root[data-theme="dark"] .order-summary,
:root[data-theme="dark"] .shipping-form,
:root[data-theme="dark"] .product-show__purchase {
  background: var(--bg-elevated);
  border-color: var(--border);
}

:root[data-theme="dark"] .product-card__image,
:root[data-theme="dark"] .cart-item__image {
  background: var(--bg-sunken);
}

:root[data-theme="dark"] .quantity-input {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--fg);
}

:root[data-theme="dark"] .form__input,
:root[data-theme="dark"] .form__select,
:root[data-theme="dark"] .form__textarea {
  background-color: var(--bg-elevated);
  color: var(--fg);
}
