/*
 * 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 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;
}

/* 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 {
  display: flex;
  flex-direction: column;
  background: var(--tblr-card-bg);
  border: 1px solid var(--tblr-border-color);
  border-radius: .75rem;
  overflow: hidden;
}

.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;
  right: .5rem;
}

.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) */
.support-float-button {
  position: fixed;
  right: 1.5rem;
  bottom: 1.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);
}

/* Storefront AI support chat panel */
.support-chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 5.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;
}

.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: .5rem;
}

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

.support-chat-panel form input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  padding: .5rem;
  background: transparent;
  color: var(--tblr-body-color);
}

.support-chat-send-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  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);
}

@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);
  }
}

