/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.turbo-progress-bar {
  z-index: 9999;
}

/* Storefront cart icon */
.cart-menu-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: none;
  color: var(--tblr-body-color);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color .15s ease;
}

.cart-menu-icon:hover {
  color: var(--tblr-primary);
}

/* Storefront cart icon badge */
.cart-badge {
  position: absolute;
  top: -.3rem;
  right: -.4rem;
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 .3rem;
  border-radius: 999px;
  background: var(--tblr-red, #d63939);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  line-height: 1.2rem;
  text-align: center;
}

/* Storefront "added to cart" toast */
.cart-toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1080;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  pointer-events: none;
}

.cart-toast {
  pointer-events: auto;
  min-width: 260px;
  padding: 1rem 1.5rem;
  text-align: center;
  border-radius: .75rem;
  background: rgba(30, 30, 30, .92);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  opacity: 0;
  transform: scale(.95);
  transition: opacity .2s ease, transform .2s ease;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: scale(1);
}

.cart-toast-message {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
}

.cart-toast-message i {
  color: #2fb344;
  font-size: 1.25rem;
}

/* Storefront cart hover menu */
.cart-menu {
  position: relative;
}

.cart-menu-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1055;
  width: 320px;
  padding-top: .5rem; /* bridges the gap so hover doesn't drop between icon and panel */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.cart-menu:hover .cart-menu-dropdown,
.cart-menu:focus-within .cart-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cart-menu-dropdown-inner {
  background: var(--tblr-card-bg, #fff);
  border: 1px solid var(--tblr-border-color);
  border-radius: .75rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .15);
  padding: 1rem;
}

.cart-menu-empty {
  margin: 0;
  padding: .5rem 0;
  color: var(--tblr-muted);
  text-align: center;
}

.cart-menu-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow-y: auto;
}

.cart-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--tblr-border-color);
}

.cart-menu-item:last-child {
  border-bottom: none;
}

.cart-menu-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-menu-item-name {
  overflow: hidden;
  font-size: .85rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-menu-item-meta {
  color: var(--tblr-muted);
  font-size: .75rem;
}

.cart-menu-item-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: .5rem;
}

.cart-menu-item-subtotal {
  font-size: .85rem;
  font-weight: 500;
  white-space: nowrap;
}

.cart-menu-item-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--tblr-bg-surface-secondary, #f5f5f5);
  color: var(--tblr-red, #d63939);
  font-size: 1rem;
  line-height: 1;
}

.cart-menu-item-remove:hover {
  background: var(--tblr-red-lt, #fbdbdb);
}

/* Storefront cart page — remove item (icon button, roomy tap target) */
.cart-item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: .5rem;
  background: none;
  color: var(--tblr-muted);
  font-size: 1.15rem;
}

.cart-item-remove:hover {
  background: var(--tblr-bg-surface-secondary, #f0f0f0);
  color: var(--tblr-red, #d63939);
}

.cart-menu-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid var(--tblr-border-color);
  font-size: .9rem;
}

/* Storefront reward progress (spend-based rewards) */
.reward-progress-heading {
  margin: 0 0 .5rem;
  color: var(--tblr-muted);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.reward-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.reward-progress-item {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.reward-progress-item-icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--tblr-green-lt, #d3f9d8);
  color: var(--tblr-green, #2fb344);
  font-size: 1.05rem;
}

.reward-progress-item-icon--locked {
  background: var(--tblr-bg-surface-secondary, #f0f0f0);
  color: var(--tblr-muted);
}

.reward-progress-item-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.reward-progress-item-title {
  font-size: .85rem;
  font-weight: 600;
}

.reward-progress-item-desc {
  color: var(--tblr-muted);
  font-size: .78rem;
}

.reward-progress-item-check {
  flex-shrink: 0;
  margin-left: auto;
  color: var(--tblr-green, #2fb344);
  font-size: 1.1rem;
}

.reward-progress-bar {
  height: .4rem;
  border-radius: 999px;
  background: var(--tblr-bg-surface-secondary, #f0f0f0);
  overflow: hidden;
}

.reward-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--tblr-primary, #206bc4);
  transition: width .3s ease;
}

.reward-progress-compact {
  margin-bottom: .75rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

/* Storefront floating reward bar (spend progress, sticky footer) */
.reward-floating-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1025;
  background: var(--tblr-bg-surface, #fff);
  border-top: 1px solid var(--tblr-border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
}

.reward-floating-bar-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: .6rem 1rem;
}

.reward-floating-bar-icon {
  position: relative;
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--tblr-primary-lt, #cee0f5);
  color: var(--tblr-primary, #206bc4);
  font-size: 1.15rem;
}

.reward-floating-bar-badge {
  position: absolute;
  top: -.3rem;
  right: -.3rem;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 .25rem;
  border-radius: 999px;
  border: 2px solid var(--tblr-bg-surface, #fff);
  background: var(--tblr-red, #d63939);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  line-height: 1;
}

.reward-floating-bar-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: 0;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
}

.reward-floating-bar-info {
  flex: 1;
  min-width: 0;
}

.reward-floating-bar-text {
  display: block;
  overflow: hidden;
  font-size: .82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reward-floating-bar-progress {
  margin-top: .3rem;
  max-width: 220px;
}

.reward-floating-bar-cta {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: .25rem;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: var(--tblr-primary, #206bc4);
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.reward-floating-bar-cta:hover {
  color: #fff;
  text-decoration: none;
  opacity: .9;
}

/* Storefront reward modal (bottom sheet opened from the floating bar) */
.reward-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s;
}

.reward-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.reward-modal-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1041;
  display: flex;
  flex-direction: column;
  max-height: 50vh;
  border-radius: 1rem 1rem 0 0;
  background: var(--tblr-bg-surface, #fff);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .2);
  transform: translateY(100%);
  visibility: hidden;
  transition: transform .25s ease, visibility .25s;
}

.reward-modal-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
}

.reward-modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tblr-border-color);
}

.reward-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.reward-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: var(--tblr-bg-surface-secondary, #f5f5f5);
  color: var(--tblr-body-color);
  font-size: 1.1rem;
  cursor: pointer;
}

.reward-modal-close:hover {
  background: var(--tblr-bg-surface-tertiary, #eee);
}

.reward-modal-body {
  overflow-y: auto;
  padding: 1.25rem;
}

/* Hides the floating support button/panel while the reward modal is open, so its close
   button never ends up fighting the support widget for the same corner of the screen. */
body.reward-modal-open .support-float-button,
body.reward-modal-open .support-chat-panel,
body.reward-modal-open .support-menu-panel,
body.reward-modal-open .support-need-help-bubble {
  display: none;
}

/* Keeps page content clear of the fixed bar above */
body.has-reward-bar .page-wrapper {
  padding-bottom: 5rem;
}

@media (max-width: 575.98px) {
  .reward-floating-bar-progress {
    max-width: none;
  }
}

/* Storefront reward celebration (confetti toast) */
.reward-celebration {
  position: relative;
  overflow: visible;
}

.reward-celebration-message i {
  color: #f59f00;
}

.reward-celebration-description {
  color: rgba(255, 255, 255, .75);
  font-size: .8rem;
  font-weight: 400;
}

.reward-celebration-ok {
  display: block;
  margin: .85rem auto 0;
  padding: .35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: .5rem;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}

.reward-celebration-ok:hover {
  background: rgba(255, 255, 255, .22);
}

.reward-celebration-confetti {
  position: absolute;
  inset: -20px 0 auto 0;
  height: 0;
  overflow: visible;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  top: -10px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
  opacity: .9;
  animation: confetti-fall var(--duration) var(--delay) ease-in forwards;
}

@keyframes confetti-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(140px) rotate(var(--rotation)); opacity: 0; }
}

/* Storefront header search */
.storefront-header-search {
  flex: 1 1 auto;
  max-width: 480px;
  margin: 0 auto;
}

/* Attached directly to <body> by search_controller.js (top/left/width set from there) rather
   than nested inside .storefront-header-search — nesting it in the search bar made Chrome count
   its width toward the bar's own intrinsic size even while hidden, starving the cart icon of
   room on narrow (iPhone-width) screens and pushing it onto a second line. */
.search-suggestions {
  position: fixed;
  z-index: 1030;
  background: var(--tblr-bg-surface, #fff);
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-border-radius, .375rem);
  box-shadow: var(--tblr-box-shadow-dropdown, 0 .25rem .75rem rgba(0, 0, 0, .1));
  overflow: hidden;
}

.search-suggestion-item {
  display: block;
  padding: .5rem .75rem;
  color: var(--tblr-body-color);
  text-decoration: none;
}

.search-suggestion-item:hover,
.search-suggestion-item:focus {
  background: var(--tblr-bg-surface-secondary, #f2ede4);
}

/* Storefront home categories row (circular icon + name, Instagram-style) */
.storefront-categories-row {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: .25rem .1rem 1rem;
  margin-bottom: .25rem;
  scrollbar-width: thin;
}

.storefront-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
  width: 4.5rem;
  text-decoration: none;
  color: inherit;
}

.storefront-category-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 999px;
  overflow: hidden;
  background: var(--tblr-bg-surface-secondary, #f2ede4);
  border: 1.5px solid var(--tblr-border-color);
  font-size: 1.3rem;
  color: var(--tblr-muted);
  transition: border-color .15s ease;
}

.storefront-category-item:hover .storefront-category-avatar {
  border-color: var(--tblr-primary, #206bc4);
}

.storefront-category-item.is-active .storefront-category-avatar {
  border-color: var(--tblr-primary, #206bc4);
  border-width: 2px;
  background: var(--tblr-primary-lt, #e9f0fc);
  color: var(--tblr-primary, #206bc4);
}

.storefront-category-item.is-active .storefront-category-name {
  color: var(--tblr-primary, #206bc4);
}

.storefront-category-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.storefront-category-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--tblr-body-color);
  font-size: .72rem;
  font-weight: 600;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Storefront home banners (single image or carousel) */
.storefront-banner {
  margin-bottom: 1rem;
  border-radius: .75rem;
  overflow: hidden;
}

.storefront-banner img {
  display: block;
  width: 100%;
  height: auto;
}

.storefront-banner--full {
  border-radius: 0;
}

/* Storefront catalog (vitrine) — 2 columns on mobile, 6 on desktop */
.catalog-empty {
  text-align: center;
  color: var(--tblr-muted);
  padding: 3rem 1rem;
}

.catalog-results {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 992px) {
  .catalog-results {
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
  }
}

.catalog-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--tblr-card-bg);
  border: 1px solid var(--tblr-border-color);
  border-radius: .75rem;
  overflow: hidden;
}

.catalog-video-badge-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  pointer-events: none;
}

.catalog-video-badge-wrap .media-play-badge {
  pointer-events: auto;
}

.catalog-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.catalog-card-link:hover {
  color: inherit;
}

.catalog-thumb {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.catalog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-thumb-placeholder {
  font-size: 2rem;
}

.catalog-status-badge {
  position: absolute;
  top: .5rem;
  left: .5rem;
}

.catalog-share-badge {
  position: absolute;
  top: .5rem;
  right: .5rem;
  z-index: 1;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--tblr-primary, #206bc4);
  font-size: 1.05rem;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.catalog-share-badge:hover {
  color: var(--tblr-primary, #206bc4);
  text-decoration: none;
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.catalog-share-badge--lg {
  top: .85rem;
  right: .85rem;
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.5rem;
}

.media-play-badge {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  width: auto;
  height: 2.5rem;
  padding: 0 .8rem 0 .65rem;
  border-radius: 999px;
  background: #fff;
  color: var(--tblr-primary, #206bc4);
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.media-play-badge:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .3);
}

.media-play-badge-label {
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
}

.media-play-badge--lg {
  height: 3.5rem;
  bottom: .85rem;
  right: .85rem;
  padding: 0 1.1rem 0 .85rem;
  font-size: 1.5rem;
}

.media-play-badge--lg .media-play-badge-label {
  font-size: .95rem;
}

.catalog-info {
  padding: .75rem;
}

.catalog-name {
  margin: 0 0 .25rem;
  overflow: hidden;
  font-size: .9rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-desc {
  display: none;
}

.catalog-price {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
}

.catalog-price--tbd {
  font-weight: 500;
  font-style: italic;
  color: var(--tblr-muted);
  font-size: .8rem;
}

.catalog-price-original {
  margin-right: .35rem;
  color: var(--tblr-muted);
  font-weight: 400;
  font-size: .75rem;
  text-decoration: line-through;
}

/* Storefront catalog — quick-add size shortcuts */
.catalog-quick-add {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: auto;
  padding: 0 .75rem .75rem;
}

.catalog-quick-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .3rem;
}

.catalog-quick-row:first-child {
  padding-top: 0;
}

.catalog-quick-row:not(:first-child) {
  border-top: 1px solid var(--tblr-border-color);
}

.catalog-quick-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: .5rem;
  min-width: 0;
  font-size: .74rem;
}

.catalog-quick-info .size {
  min-width: 0;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding-top: .15rem;
}

.catalog-quick-info .price {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .15rem;
  color: var(--tblr-muted);
  font-size: .68rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.catalog-price-promo-row {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.catalog-price-promo {
  margin-left: auto;
  color: var(--tblr-body-color);
  font-size: .78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.catalog-discount-badge {
  flex-shrink: 0;
  background: var(--tblr-green, #2fb344);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  padding: .1rem .35rem;
  border-radius: .25rem;
  line-height: 1.3;
  white-space: nowrap;
}

/* On sale: label + struck original price share the first line; the badge + bold promo
   price get their own line below, right-aligned — the bold price needs more room than
   fits squeezed beside a long label on a single line. */
.catalog-quick-row--promo .catalog-quick-info {
  flex-direction: column;
  align-items: stretch;
  gap: .15rem;
}

.catalog-quick-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
}

.catalog-quick-line .size {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-quick-action {
  flex-shrink: 0;
}

.catalog-quick-pill-form {
  display: contents;
}

.catalog-quick-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border: none;
  border-radius: .5rem;
  background: var(--tblr-primary-lt, #e9f0fc);
  color: var(--tblr-primary, #206bc4);
  font-size: 1rem;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}

.catalog-quick-btn:hover:not(:disabled) {
  background: #dbe6f9;
}

.catalog-quick-btn:active:not(:disabled) {
  transform: scale(.9);
}

.catalog-quick-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.catalog-quick-stepper {
  display: inline-flex;
  align-items: stretch;
  height: 1.9rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: .5rem;
  overflow: hidden;
}

.catalog-quick-stepper-btn {
  flex-shrink: 0;
  width: 1.6rem;
  border: none;
  background: var(--tblr-bg-surface-secondary, #f2ede4);
  color: var(--tblr-primary, #206bc4);
  font-size: .95rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.catalog-quick-stepper-btn:hover:not(:disabled) {
  background: #dbe6f9;
}

.catalog-quick-stepper-btn:active:not(:disabled) {
  transform: scale(.9);
}

.catalog-quick-stepper-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.catalog-quick-stepper-count {
  flex: 1 1 auto;
  min-width: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--tblr-card-bg, #fff);
  font-size: .72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Storefront product detail page */
.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1.25rem;
  font-size: .8rem;
  color: var(--tblr-muted);
}

.product-breadcrumb a {
  color: var(--tblr-muted);
}

.product-breadcrumb .sep {
  opacity: .6;
}

.product-breadcrumb .current {
  color: var(--tblr-body-color);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.product-detail-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: .75rem;
  background: var(--tblr-bg-surface-secondary, #f2ede4);
}

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

.product-detail-media-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 2.5rem;
  color: var(--tblr-muted);
}

.product-detail-info {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  min-width: 0;
}

.product-purchase-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.product-detail-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}

.product-price-block {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.product-detail-price {
  font-size: 2.1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--tblr-body-color);
}

.product-detail-price-original {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--tblr-muted);
  text-decoration: line-through;
}

.product-discount-badge {
  background: var(--tblr-green, #2fb344);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: .375rem;
  white-space: nowrap;
}

.product-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  width: fit-content;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: var(--tblr-green-lt, #d3f9d8);
  color: var(--tblr-green, #2fb344);
  font-size: .8rem;
  font-weight: 600;
}

.product-stock-badge--out {
  background: var(--tblr-red-lt, #fbdbdb);
  color: var(--tblr-red, #d63939);
}

.product-field-label {
  display: block;
  margin-bottom: .75rem;
  font-size: .82rem;
  font-weight: 600;
}

.product-variant-group {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.product-variant-chip {
  display: block;
  border: 1.5px solid var(--tblr-border-color);
  border-radius: .625rem;
  padding: .55rem .9rem;
  font-size: .85rem;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.product-variant-chip .size {
  display: block;
  font-weight: 600;
}

.product-variant-chip .price {
  display: block;
  color: var(--tblr-muted);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}

.product-variant-chip .chip-tag {
  display: block;
  color: var(--tblr-red, #d63939);
  font-size: .72rem;
  font-weight: 600;
}

.product-variant-radio:checked + .product-variant-chip {
  border-color: var(--tblr-primary, #206bc4);
  background: var(--tblr-primary-lt, #e9f0fc);
}

.product-variant-radio:disabled + .product-variant-chip {
  cursor: not-allowed;
  opacity: .55;
}

.product-variant-radio:focus-visible + .product-variant-chip {
  outline: 2px solid var(--tblr-primary, #206bc4);
  outline-offset: 2px;
}

.product-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--tblr-border-color);
  border-radius: .625rem;
  overflow: hidden;
}

.product-stepper button {
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  background: var(--tblr-bg-surface, #fff);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.product-stepper button:hover {
  background: var(--tblr-bg-surface-secondary, #f2ede4);
}

.product-stepper input {
  width: 2.75rem;
  height: 2.25rem;
  border: none;
  border-left: 1.5px solid var(--tblr-border-color);
  border-right: 1.5px solid var(--tblr-border-color);
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}

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

.product-actions {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.product-btn-add-cart {
  background: var(--tblr-primary-lt, #e9f0fc);
  border: none;
  color: var(--tblr-primary, #206bc4);
}

.product-btn-add-cart:hover {
  background: #dbe6f9;
  color: var(--tblr-primary, #206bc4);
}

.product-trust-row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding-top: .9rem;
  border-top: 1px solid var(--tblr-border-color);
}

.product-trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  color: var(--tblr-body-color);
}

.product-trust-item i {
  color: var(--tblr-primary, #206bc4);
  font-size: 1rem;
}

.product-description {
  padding-top: 1.25rem;
  border-top: 1px solid var(--tblr-border-color);
}

.product-description h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 .5rem;
}

.product-description p {
  margin: 0;
  color: var(--tblr-muted);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 62ch;
}

.product-description .trix-content {
  color: var(--tblr-muted);
  font-size: .92rem;
  line-height: 1.6;
  max-width: 62ch;
}

.product-description .trix-content h2,
.product-description .trix-content h3 {
  color: var(--tblr-body-color);
  font-size: 1rem;
  font-weight: 600;
  margin: 1.25em 0 .5em;
}

.product-description .trix-content h2:first-child,
.product-description .trix-content h3:first-child {
  margin-top: 0;
}

.product-description .trix-content p {
  margin: 0 0 1em;
}

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

.product-description .trix-content ul,
.product-description .trix-content ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.product-description .trix-content ul:last-child,
.product-description .trix-content ol:last-child {
  margin-bottom: 0;
}

.product-description .trix-content li {
  margin: 0 0 .35em 1em;
}

.product-description .trix-content li:last-child {
  margin-bottom: 0;
}

.product-description .trix-content mark {
  background-color: #fef3c7;
  color: var(--tblr-body-color);
  padding: .05em .35em;
  border-radius: 4px;
}

.product-back-link {
  font-size: .85rem;
  color: var(--tblr-muted);
}

@media (max-width: 767.98px) {
  .product-actions {
    position: sticky;
    bottom: 0;
    z-index: 10;
    margin: 1rem -1rem -1rem;
    padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom, 0px));
    background: var(--tblr-bg-surface, #fff);
    border-top: 1px solid var(--tblr-border-color);
  }
}

@media (min-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
  }

  .product-detail-title {
    font-size: 2.3rem;
  }

  .product-detail-price {
    font-size: 2.5rem;
  }
}

/* Storefront floating support button (WhatsApp or AI chat) — sits a bit above where the
   reward bar would be, so its position doesn't jump depending on whether the bar is shown. */
.support-float-button {
  position: fixed;
  right: 1.5rem;
  bottom: 4.5rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border: none;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
  cursor: pointer;
}

.support-float-button:hover {
  color: #fff;
  transform: scale(1.06);
}

.support-float-button--ai {
  background: var(--tblr-primary);
}

/* Nudge shown next to the floating support button when a customer adds their first item to the
   cart, pointing them at help if they get stuck during checkout. */
.support-need-help-bubble {
  position: fixed;
  right: 5.5rem;
  bottom: 4.75rem;
  z-index: 1029;
  display: flex;
  align-items: center;
  gap: .5rem;
  max-width: calc(100vw - 8rem);
  padding: .65rem .75rem .65rem 1rem;
  background: var(--tblr-bg-surface, #fff);
  color: var(--tblr-body-color);
  border-radius: .75rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  font-weight: 600;
  font-size: .9rem;
  opacity: 0;
  transform: translateY(6px) scale(.95);
  transition: opacity .2s ease, transform .2s ease;
}

.support-need-help-bubble.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.support-need-help-bubble::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--tblr-bg-surface, #fff);
}

.support-need-help-close {
  flex-shrink: 0;
  display: inline-flex;
  border: none;
  background: transparent;
  color: var(--tblr-muted);
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

/* Storefront AI support chat panel */
.support-chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 8.5rem;
  z-index: 1030;
  width: 320px;
  max-width: calc(100vw - 2rem);
  height: 420px;
  max-height: calc(100vh - 8rem);
  background: var(--tblr-bg-surface, #fff);
  border-radius: .75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.support-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--tblr-border-color);
  cursor: pointer;
}

.support-chat-header i {
  color: var(--tblr-muted);
  font-size: 1rem;
}

.support-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: .75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.support-chat-bubble {
  max-width: 85%;
  padding: .5rem .75rem;
  border-radius: .75rem;
  font-size: .875rem;
  line-height: 1.3;
  white-space: pre-wrap;
}

.support-chat-bubble--user {
  align-self: flex-end;
  background: var(--tblr-primary);
  color: #fff;
}

.support-chat-bubble--assistant {
  align-self: flex-start;
  background: var(--tblr-bg-surface-secondary, #f4f4f5);
  color: var(--tblr-body-color);
}

.support-chat-bubble--assistant a {
  color: var(--tblr-primary);
  word-break: break-word;
}

/* Storefront support picker — shown instead of a single float button/chat panel when a store
   has more than one active support channel, so the customer chooses which one to use. */
.support-menu-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 8.5rem;
  z-index: 1030;
  width: 320px;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 8rem);
  background: var(--tblr-bg-surface, #fff);
  border-radius: .75rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.support-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  font-weight: 600;
  border-bottom: 1px solid var(--tblr-border-color);
  cursor: pointer;
}

.support-menu-header i {
  color: var(--tblr-muted);
  font-size: 1rem;
}

.support-menu-list {
  display: flex;
  flex-direction: column;
  padding: .5rem;
  gap: .25rem;
}

.support-menu-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  width: 100%;
  padding: .625rem;
  border: none;
  background: none;
  border-radius: .5rem;
  text-align: left;
  text-decoration: none;
  color: var(--tblr-body-color);
  cursor: pointer;
  transition: background-color .1s ease;
}

.support-menu-item:hover {
  background: var(--tblr-bg-surface-secondary, #f4f4f5);
  color: var(--tblr-body-color);
}

.support-menu-item-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--tblr-bg-surface-secondary, #f4f4f5);
  font-size: 1.1rem;
}

.support-menu-item-text {
  display: flex;
  flex-direction: column;
}

.support-menu-item-title {
  font-weight: 600;
  font-size: .875rem;
}

.support-menu-item-description {
  font-size: .8rem;
  color: var(--tblr-muted);
}

.support-chat-bubble--error {
  align-self: center;
  background: var(--tblr-red-lt, #fbe7e7);
  color: var(--tblr-red, #d63939);
}

.support-chat-lead {
  padding: .75rem;
  border-top: 1px solid var(--tblr-border-color);
}

.support-chat-lead-text {
  font-size: .875rem;
  color: var(--tblr-muted);
  margin-bottom: .625rem;
}

/* The lead inputs/button previously used Tabler's -sm modifiers, which made them noticeably
   thinner than the rest of the storefront's form controls. */
.support-chat-lead-input {
  height: auto;
  min-height: 2.75rem;
  padding: .625rem .75rem;
  font-size: .9375rem;
  border-radius: .5rem;
  margin-bottom: .5rem;
}

.support-chat-lead-btn {
  min-height: 2.75rem;
  padding: .625rem 1rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: .5rem;
}

.support-chat-panel form {
  display: flex;
  align-items: center;
  gap: .5rem;
  border-top: 1px solid var(--tblr-border-color);
  padding: .625rem;
}

.support-chat-panel form input {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 1.25rem;
  outline: none;
  padding: .5rem .875rem;
  font-size: .9375rem;
  background: var(--tblr-bg-surface, #fff);
  color: var(--tblr-body-color);
}

.support-chat-panel form input:focus {
  border-color: var(--tblr-primary);
}

.support-chat-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--tblr-primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.support-chat-send-btn:hover {
  filter: brightness(0.95);
}

.support-chat-mic-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--tblr-bg-surface-secondary, #f1f3f5);
  color: var(--tblr-body-color);
  font-size: 1.1rem;
  cursor: pointer;
}

.support-chat-mic-btn:hover {
  filter: brightness(0.95);
}

.support-chat-mic-btn:disabled {
  opacity: .6;
  cursor: default;
}

.support-chat-mic-btn--recording {
  background: var(--tblr-red, #d63939);
  color: #fff;
  animation: support-chat-mic-pulse 1.2s ease-in-out infinite;
}

@keyframes support-chat-mic-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .6; }
}

.support-chat-discard-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 50%;
  background: var(--tblr-bg-surface-secondary, #f1f3f5);
  color: var(--tblr-red, #d63939);
  font-size: 1.1rem;
  cursor: pointer;
}

.support-chat-discard-btn:hover {
  filter: brightness(0.95);
}

.support-chat-voice-status {
  margin: 0;
  padding: 0 .625rem .375rem;
  font-size: .8125rem;
  color: var(--tblr-muted);
}

.support-chat-level-meter {
  flex: 1;
  min-width: 0;
  min-height: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: 1.25rem;
  background: var(--tblr-bg-surface, #fff);
  display: flex;
  align-items: center;
  padding: 0 .875rem;
}

.support-chat-level-fill {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: .25rem;
  background: var(--tblr-red, #d63939);
  transform: scaleY(0.08);
  transition: transform 0.08s linear;
}

@media (max-width: 767.98px) {
  /* On iOS Safari the keyboard pushes fixed-position elements up along with the page, so a tall
     panel can end up with its header off-screen while typing. A shorter panel stays fully
     visible above the keyboard, which is open most of the time this is used on mobile. */
  .support-chat-panel {
    height: 320px;
    max-height: calc(100vh - 8rem);
  }

  /* iOS Safari auto-zooms the page when a focused input's font-size is under 16px (e.g. Tabler's
     .form-control at .875rem, or the support chat's unstyled message input). Bumping it to 16px
     here stops the zoom-on-focus without affecting desktop sizing. */
  .form-control,
  .form-select,
  .support-chat-panel form input {
    font-size: 16px;
  }
}

