/*
 * Valse theme overrides — not overwritten by SellAuth updates.
 */
:root {
  --primary: #ff1a1a;
  --cl-accent: 255, 26, 26;
}

body.valse-site {
  background: #050505;
}

.text-primary,
.hs-line-red,
.fl-eyebrow,
.tl-dot span {
  color: #ff1a1a !important;
}

.btn-primary,
.client-panel-btn,
.hs-eyebrow-dot {
  background: #ff1a1a !important;
  border-color: #ff1a1a !important;
}

/* SellAuth product pages inside Valse shell */
body.valse-site .bg-accent-500,
body.valse-site .text-accent-500,
body.valse-site .border-accent-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 26 26 / var(--tw-bg-opacity)) !important;
  color: #ff1a1a !important;
  border-color: #ff1a1a !important;
}

body.valse-site .border-l-accent-500 {
  border-left-color: #ff1a1a !important;
}

body.valse-site main,
body.valse-site .component[data-component-id="products-page"],
body.valse-site .component[data-component-id="product-page"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
}

/* Scroll reveal stagger */
.valse-reveal-item.fade-in {
  transition-delay: var(--reveal-delay, 0s);
}

.fl-item.fade-in,
.tl-item.fade-in {
  transition-delay: var(--reveal-delay, 0s);
}

.valse-home-products {
  padding-bottom: 40px;
}

.valse-home-products .catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  padding: 48px 20px;
  font-size: 1rem;
}

.valse-shop-products-wrap {
  padding: 0;
  margin: 0;
  max-width: none;
}

/* License / variant rows on home product cards */
.valse-license-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.valse-license-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 26, 26, 0.12);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.valse-license-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
  text-decoration: none;
  min-width: 0;
}

.valse-license-add {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 26, 26, 0.35);
  background: rgba(255, 26, 26, 0.15);
  color: #ff1a1a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.valse-license-add:hover {
  background: #ff1a1a;
  color: #fff;
}

/* Currency selector in navbar — native select (no Choices.js white dropdown bug) */
.valse-currency-selector {
  min-width: 96px;
  position: relative;
  z-index: 1200;
}

.valse-currency-selector .valse-currency-select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 96px;
  min-height: 36px;
  padding: 8px 30px 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(12, 4, 4, 0.92);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ffffff' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 14px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.valse-currency-selector .valse-currency-select:hover,
.valse-currency-selector .valse-currency-select:focus {
  border-color: rgba(255, 26, 26, 0.45);
  box-shadow: 0 0 0 2px rgba(255, 26, 26, 0.15);
}

.valse-currency-selector .valse-currency-select option {
  background: #0a0303;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

/* SellAuth cart + customer pages — Valse shell */
body.valse-site .component[data-component-id="cart-page"] .bg-card,
body.valse-site .component[data-component-id="product-page"] .bg-card,
body.valse-site [class*="customer-"] .bg-card {
  background: rgba(12, 4, 4, 0.85) !important;
  border-color: rgba(255, 26, 26, 0.12) !important;
}

body.valse-site .component[data-component-id="cart-page"] button.bg-accent-500,
body.valse-site .component[data-component-id="product-page"] button.bg-accent-500 {
  background: #ff1a1a !important;
  border-color: #ff1a1a !important;
}

body.valse-site .inline-block.w-full.max-w-lg.border.border-white\/5.rounded-lg.bg-background {
  background: #0a0303 !important;
  border-color: rgba(255, 26, 26, 0.2) !important;
}

.valse-license-name {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.valse-license-price {
  color: #ff1a1a;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.valse-home-products .product-info-page {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.valse-home-products .product-meta-page {
  margin-top: auto;
}

.valse-home-products .valse-product-meta-no-price {
  justify-content: stretch;
}

.valse-home-products .valse-product-meta-no-price .buy-btn-page {
  width: 100%;
  justify-content: center;
}

/* Product card status — synced with SellAuth status_color */
.valse-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.valse-status-dot-wrap {
  position: relative;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.valse-status-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.valse-home-products .price-main {
  color: #ff1a1a !important;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: #ff1a1a;
}

.logo-image {
  display: block;
  object-fit: contain;
  height: 48px;
  width: 48px;
}

/* Product page — variant stock badges (SellAuth stock) */
.valse-variant-btn {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: rgba(12, 4, 4, 0.8) !important;
}

.valse-variant-btn:hover:not(:disabled) {
  border-color: rgba(255, 26, 26, 0.35) !important;
  background: rgba(255, 26, 26, 0.08) !important;
}

.valse-variant-btn-active {
  border-color: #ff1a1a !important;
  background: rgba(255, 26, 26, 0.12) !important;
  box-shadow: 0 0 0 1px rgba(255, 26, 26, 0.25);
}

.valse-stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 26, 26, 0.2);
  color: #ff1a1a;
  font-size: 0.85rem;
  font-weight: 700;
}

.valse-stock-count {
  font-size: 0.8rem;
  line-height: 1;
}

.valse-variant-price {
  color: #ff1a1a;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.valse-btn-back,
.valse-btn-pay {
  text-decoration: none;
  min-height: 48px;
}