/* ============================================================
   Liyaas – components.css
   Flux/Fuel theme reusable UI components
   ============================================================ */

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 22px;
  height: 44px;
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 0.813rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
  -webkit-user-select: none;
  user-select: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn.loading { pointer-events: none; }
.btn.loading .btn-text { opacity: 0; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* Primary – black bg, white text */
.btn-primary {
  background: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
}
.btn-primary:hover { background: #333333; border-color: #333333; }

/* Secondary – same as primary */
.btn-secondary {
  background: var(--color-text);
  color: #ffffff;
  border-color: var(--color-text);
}
.btn-secondary:hover { background: #333333; border-color: #333333; }

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }

/* Outline dark (same for Flux) */
.btn-outline-dark {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline-dark:hover { border-color: var(--color-text); background: var(--color-bg-2); }

/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  padding: 0 14px;
  border-color: transparent;
}
.btn-ghost:hover { background: var(--color-bg-2); }

/* Danger */
.btn-danger {
  background: var(--c-red);
  color: white;
  border-color: var(--c-red);
}
.btn-danger:hover { background: #c62828; }

/* Sizes */
.btn-sm  { height: 34px;  padding: 0 16px; font-size: 0.725rem; }
.btn-lg  { height: 52px;  padding: 0 30px; font-size: 0.875rem; }
.btn-xl  { height: 58px;  padding: 0 36px; font-size: 0.938rem; }
.btn-icon    { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-btn); text-transform: none; }
.btn-icon-sm { width: 34px; height: 34px; padding: 0; border-radius: var(--r-sm); text-transform: none; }
.btn-block   { width: 100%; }

/* ── Cards ──────────────────────────────────────────────────── */
.card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: border-color var(--t-base);
}
.card:hover { border-color: var(--color-text); }
.card-body   { padding: var(--sp-6); }
.card-header { padding: var(--sp-5) var(--sp-6); border-bottom: 1px solid var(--color-border); }
.card-footer { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--color-border); background: var(--color-bg-2); }

/* ── Product Card ───────────────────────────────────────────── */
.product-card {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: none;
  transition: transform var(--t-base);
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); }

/* Card media / image area */
.card-link { display: block; text-decoration: none; color: inherit; }
.card-media,
.product-card__img-wrap {
  position: relative;
  padding-bottom: 100%;
  background: var(--color-bg-2);
  overflow: hidden;
  border-radius: var(--radius-card);
}

/* Primary image */
.card-img-primary,
.product-card__img-wrap img,
.card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.35s ease;
}

/* Secondary image (shown on hover) */
.card-img-secondary {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.product-card:hover .card-img-secondary { opacity: 1; }
.product-card:hover .card-img-primary   { opacity: 0; }

/* Card badges */
.card-badge-wrap,
.product-card__badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

/* Wishlist on card */
.product-card__wishlist {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.92);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast);
  border: none;
  cursor: pointer;
}
.product-card__wishlist:hover { background: white; }
.product-card__wishlist.active svg { fill: var(--c-red); stroke: var(--c-red); }

/* Card info block */
.card-info,
.product-card__body {
  padding: 12px 4px 4px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

/* Card category */
.product-card__cat {
  font-family: var(--font-body);
  font-size: 0.688rem;
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Card title */
.card-title,
.product-card__name {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title a,
.product-card__name a { color: inherit; text-decoration: none; }
.card-title a:hover,
.product-card__name a:hover { text-decoration: underline; }

/* Card rating */
.product-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 0.725rem;
  color: var(--c-gray);
}

/* Card price row */
.card-price,
.product-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.price-sale { color: var(--color-text); font-weight: 700; }
.price-compare { font-size: 0.813rem; color: var(--c-gray); text-decoration: line-through; font-weight: 400; }

/* Card swatches (model pills or color dots) */
.product-card__swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

/* Swatch mini – 24px circles on card */
.swatch-mini {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 2px solid transparent;
  cursor: pointer;
  transition: outline-color var(--t-fast);
  flex-shrink: 0;
}
.swatch-mini.active,
.swatch-mini:hover {
  outline-color: var(--color-text);
  outline-offset: 2px;
}

/* Card model pill swatches */
.card-model-pills {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.card-model-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--c-gray-dark);
  white-space: nowrap;
  background: var(--color-bg);
  cursor: pointer;
  transition: border-color var(--t-fast), color var(--t-fast);
}
.card-model-pill:hover {
  border-color: var(--color-text);
  color: var(--color-text);
}

/* Add to cart on card */
.product-card__actions { margin-top: auto; padding-top: 8px; }
.product-card__quick-add { width: 100%; }

/* btn-add-card */
.btn-add-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 38px;
  background: var(--color-text);
  color: #fff;
  border: 1px solid var(--color-text);
  border-radius: var(--radius-btn);
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--t-fast);
  margin-top: 8px;
}
.btn-add-card:hover { background: #333; }

/* View Product variant (link styled as button) */
.btn-view-product {
  text-decoration: none;
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-text);
}
.btn-view-product:hover {
  background: var(--color-text);
  color: #fff;
}

/* Card group swatches (collection page) — rectangle thumbnails */
.card-group-swatches {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.card-group-swatch {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  border: 1.5px solid var(--color-border);
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  transition: border-color var(--t-fast), outline-color var(--t-fast);
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.card-group-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-group-swatch:hover {
  border-color: var(--color-text);
}
.card-group-swatch--active {
  border-color: var(--color-text);
  outline-color: var(--color-text);
}
.card-group-swatch-ph {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--color-bg-2);
}
.card-group-swatch-more {
  display: flex;
  align-items: center;
  font-size: 0.65rem;
  color: var(--c-gray);
  font-family: var(--font-body);
}

/* ── Swatch (full size) ─────────────────────────────────────── */
.swatch {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.swatch:hover { transform: scale(1.08); }
.swatch.active {
  box-shadow: 0 0 0 3px var(--color-bg), 0 0 0 5px var(--color-text);
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch-label {
  font-family: var(--font-body);
  font-size: 0.725rem;
  color: var(--c-gray);
  text-align: center;
  margin-top: 4px;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-group   { margin-bottom: var(--sp-5); }
.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  margin-bottom: var(--sp-2);
}
.form-input, .form-select, .form-textarea, .form-control {
  width: 100%;
  height: 48px;
  padding: 0 var(--sp-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-input);
  font-family: var(--font-body);
  font-size: 0.938rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--t-fast);
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus, .form-control:focus {
  border-color: var(--color-text);
}
.form-input::placeholder, .form-control::placeholder { color: var(--c-gray); }
.form-input.error { border-color: var(--c-red); }
.form-textarea, textarea.form-control {
  height: auto;
  padding: var(--sp-3) var(--sp-4);
  resize: vertical;
  min-height: 100px;
}
.form-select {
  padding-right: 36px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.form-hint  { font-family: var(--font-body); font-size: 0.775rem; color: var(--c-gray); margin-top: var(--sp-1); }
.form-error { font-family: var(--font-body); font-size: 0.775rem; color: var(--c-red); margin-top: var(--sp-1); }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.form-check { display: flex; align-items: center; gap: var(--sp-3); }
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 17px; height: 17px;
  accent-color: var(--color-text);
  cursor: pointer;
  flex-shrink: 0;
}
.input-group { display: flex; }
.input-group .form-input { border-radius: var(--radius-input) 0 0 var(--radius-input); }
.input-group .btn { border-radius: 0 var(--radius-btn) var(--radius-btn) 0; height: 48px; }

/* ── Toast Notifications ────────────────────────────────────── */
#toast-container {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 350px;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-text);
  color: white;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-xl);
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.5;
  animation: slideInRight 0.28s ease;
  position: relative;
  overflow: hidden;
}
.toast.success { background: #1a3c34; }
.toast.error   { background: #3c1a1a; }
.toast.info    { background: var(--color-text); }
.toast.warning { background: #3c2d1a; }
.toast__icon   { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.toast__body   { flex: 1; }
.toast__title  { font-family: var(--font-heading); font-weight: 700; font-size: 0.813rem; text-transform: uppercase; letter-spacing: 0.04em; }
.toast__msg    { opacity: 0.85; font-size: 0.788rem; margin-top: 2px; }
.toast__close  { flex-shrink: 0; opacity: 0.65; transition: opacity var(--t-fast); background: none; border: none; color: white; cursor: pointer; }
.toast__close:hover { opacity: 1; }
.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.35);
  animation: toast-shrink 3s linear forwards;
}
@keyframes toast-shrink { from { width: 100%; } to { width: 0%; } }
.toast.leaving { animation: fadeIn 0.28s ease reverse; }

/* ── Star Rating ────────────────────────────────────────────── */
.star-rating {
  display: inline-flex;
  gap: 2px;
  color: #FFD60A;
  font-size: 1rem;
}
.star-rating .star { transition: transform var(--t-fast); }
.star-rating .star.filled { color: #FFD60A; }
.star-rating .star.half   { position: relative; color: var(--color-border); }
.star-rating .star.half::before {
  content: '★';
  position: absolute;
  left: 0; top: 0;
  width: 50%;
  overflow: hidden;
  color: #FFD60A;
}
.star-rating .star.empty { color: var(--color-border); }

/* Interactive star rating */
.star-picker { display: flex; gap: 4px; cursor: pointer; }
.star-picker .star { font-size: 1.5rem; color: var(--color-border); transition: color var(--t-fast), transform var(--t-fast); }
.star-picker .star.active { color: #FFD60A; }
.star-picker:hover .star { color: #FFD60A; }
.star-picker .star:hover ~ .star { color: var(--color-border); }

/* ── Accordion (generic) ────────────────────────────────────── */
.accordion { border: 1px solid var(--color-border); border-radius: var(--radius-card); overflow: hidden; }
.accordion + .accordion { margin-top: -1px; }
.accordion__item { border-bottom: 1px solid var(--color-border); }
.accordion__item:last-child { border-bottom: none; }
.accordion__header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-heading);
  font-size: 0.775rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
  background: var(--color-bg);
  cursor: pointer;
  transition: background var(--t-fast);
  text-align: left;
  border: none;
}
.accordion__header:hover { background: var(--color-bg-2); }
.accordion__icon {
  width: 18px; height: 18px;
  flex-shrink: 0;
  transition: transform var(--t-base);
  color: var(--c-gray);
}
.accordion__item.open .accordion__icon { transform: rotate(180deg); }
.accordion__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion__item.open .accordion__body { max-height: 800px; }
.accordion__content {
  padding: var(--sp-4) var(--sp-6) var(--sp-5);
  font-family: var(--font-body);
  color: var(--c-gray-dark);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ── Modal / Lightbox ───────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 800;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-6);
  animation: fadeIn 0.2s ease;
}
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-card);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.22s ease;
  box-shadow: var(--shadow-xl);
}
.modal__header {
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; background: var(--color-bg); z-index: 1;
}
.modal__title { font-family: var(--font-heading); font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.modal__body  { padding: var(--sp-6); }
.modal__footer { padding: var(--sp-5) var(--sp-6); border-top: 1px solid var(--color-border); display: flex; gap: var(--sp-3); justify-content: flex-end; }

/* ── Trust Badges (strip) ───────────────────────────────────── */
.trust-strip {
  background: var(--color-bg-2);
  padding: var(--sp-8) 0;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-10);
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.trust-item svg { color: var(--color-text); flex-shrink: 0; }
.trust-item span {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

/* ── Search Overlay ─────────────────────────────────────────── */
.search-overlay {
  position: fixed; inset: 0;
  z-index: 700;
  background: rgba(255, 255, 255, 0.97);
  display: flex;
  flex-direction: column;
  padding: var(--sp-8) var(--sp-6);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.search-overlay.active { opacity: 1; pointer-events: all; }
.search-overlay__inner { max-width: 660px; margin: 0 auto; width: 100%; }
.search-input-wrap {
  display: flex;
  align-items: center;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-input);
  padding: 0 var(--sp-5);
  height: 56px;
  background: var(--color-bg);
}
.search-input-wrap svg { color: var(--c-gray); flex-shrink: 0; }
.search-input-main {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  padding: 0 var(--sp-4);
  background: transparent;
  color: var(--color-text);
}
.search-results {
  margin-top: var(--sp-6);
  max-height: 60vh;
  overflow-y: auto;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t-fast);
  text-decoration: none;
  color: var(--color-text);
}
.search-result-item:hover { background: var(--color-bg-2); }
.search-result-img { width: 54px; height: 54px; border-radius: var(--r-sm); object-fit: cover; background: var(--color-bg-2); flex-shrink: 0; }
.search-result-name { font-family: var(--font-body); font-weight: 500; font-size: 0.875rem; }
.search-result-price { font-family: var(--font-body); font-size: 0.838rem; color: var(--c-gray-dark); font-weight: 600; }

/* ── Rating Summary (component) ─────────────────────────────── */
.rating-summary-row { display: flex; align-items: center; gap: var(--sp-6); }
.rating-avg { text-align: center; }
.rating-avg .score { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 700; line-height: 1; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-family: var(--font-body); font-size: 0.875rem; }
.table th {
  padding: 11px 16px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.688rem;
  color: var(--c-gray);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-2);
}
.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-bg-2);
  color: var(--color-text);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--color-bg-2); }

/* ── Status Pills ───────────────────────────────────────────── */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.725rem;
  font-weight: 600;
}
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-pending    { background: #fff3cd; color: #856404; }
.status-pending::before { background: var(--color-badge); }
.status-confirmed  { background: var(--color-bg-2); color: var(--c-gray-dark); }
.status-confirmed::before { background: var(--color-text); }
.status-processing { background: #e3f2fd; color: #0d47a1; }
.status-processing::before { background: #1976d2; }
.status-shipped    { background: var(--color-accent); color: var(--color-text); }
.status-shipped::before { background: var(--color-text); }
.status-delivered  { background: #d4edda; color: #155724; }
.status-delivered::before { background: var(--c-green); }
.status-cancelled  { background: #f8d7da; color: #721c24; }
.status-cancelled::before { background: var(--c-red); }
.status-refunded   { background: #e8eaf6; color: #283593; }
.status-refunded::before { background: #3949ab; }

/* ── Pagination ─────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  padding: var(--sp-8) 0;
}
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  background: var(--color-bg);
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  cursor: pointer;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: white;
}
.page-btn.disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

/* ── Range Slider ───────────────────────────────────────────── */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
  outline: none;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-text);
  cursor: pointer;
  transition: transform var(--t-fast);
}
.range-slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

/* ── Tabs ─────────────────────────────────────────────────── */
.tabs { border-bottom: 1px solid var(--color-border); display: flex; gap: 0; }
.tab-btn {
  padding: 12px 18px;
  font-family: var(--font-heading);
  font-size: 0.713rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-gray);
  border-bottom: 2px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tab-btn:hover { color: var(--color-text); }
.tab-btn.active { color: var(--color-text); border-bottom-color: var(--color-text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Quick Add Modal ─────────────────────────────────────────── */
.qa-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.qa-modal[hidden] { display: none; }
@media (min-width: 600px) {
  .qa-modal { align-items: center; }
}
.qa-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}
.qa-modal__sheet {
  position: relative;
  background: #fff;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.18);
  animation: qaSlideUp 0.25s cubic-bezier(0.32,0.72,0,1);
}
@media (min-width: 600px) {
  .qa-modal__sheet {
    border-radius: 20px;
    max-height: 88vh;
    animation: qaFadeScale 0.22s cubic-bezier(0.32,0.72,0,1);
  }
}
@keyframes qaSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);   opacity: 1; }
}
@keyframes qaFadeScale {
  from { transform: scale(0.95); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.qa-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: var(--color-bg-2);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text);
  transition: background var(--t-fast);
  z-index: 1;
}
.qa-modal__close:hover { background: var(--color-border); }
.qa-modal__inner {
  padding: 24px 20px 28px;
}
/* Product summary row */
.qa-product {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}
.qa-product__img-wrap {
  width: 72px; height: 72px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--color-bg-2);
  border: 1px solid var(--color-border);
}
.qa-product__img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.qa-product__name {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}
.qa-product__price { display: flex; gap: 8px; align-items: baseline; }
.qa-price-sale {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}
.qa-price-compare {
  font-size: 0.875rem;
  color: var(--c-gray);
  text-decoration: line-through;
}
/* Model section */
.qa-section { margin-bottom: 20px; }
.qa-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-gray);
  margin-bottom: 12px;
}
.qa-selected-name {
  text-transform: none;
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.875rem;
  letter-spacing: 0;
}
.qa-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qa-model-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  color: var(--color-text);
  transition: border-color var(--t-fast), background var(--t-fast);
  position: relative;
}
.qa-model-btn:hover:not(.qa-model-btn--oos) {
  border-color: var(--color-text);
}
.qa-model-btn--selected {
  border-color: var(--color-text);
  background: var(--color-text);
  color: #fff;
}
.qa-model-btn--oos {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
}
.qa-no-models {
  font-size: 0.875rem;
  color: var(--c-gray);
}
/* Loading */
.qa-loading {
  display: flex;
  justify-content: center;
  padding: 24px 0;
}
.qa-loading[hidden] { display: none !important; }
.qa-spinner {
  width: 28px; height: 28px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-text);
  border-radius: 50%;
  animation: qaSpinAnim 0.7s linear infinite;
}
.qa-btn-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: qaSpinAnim 0.7s linear infinite;
  margin: 0 auto;
}
@keyframes qaSpinAnim { to { transform: rotate(360deg); } }
/* Actions */
.qa-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.qa-btn-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--color-text);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity var(--t-fast);
}
.qa-btn-cart:hover { opacity: 0.88; }
.qa-btn-cart:disabled { opacity: 0.5; cursor: not-allowed; }
.qa-btn-view {
  display: block;
  text-align: center;
  font-size: 0.8rem;
  color: var(--c-gray);
  text-decoration: none;
  padding: 6px;
}
.qa-btn-view:hover { color: var(--color-text); text-decoration: underline; }
@keyframes qaShake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-6px); }
  40%,80%  { transform: translateX(6px); }
}
.qa-shake { animation: qaShake 0.4s ease; }
