/* Shtyrman conversion design system — orange CTA, mobile-first */
:root {
  --sh-brand: #f5a623;
  --sh-brand-hover: #e09a1a;
  --sh-brand-active: #c8850f;
  --sh-brand-soft: #fff8eb;
  --sh-brand-ring: rgba(245, 166, 35, 0.35);
  --sh-nav: #0f0f1e;
  --sh-nav-2: #1a1a2e;
  --sh-ink: #111827;
  --sh-muted: #6b7280;
  --sh-surface: #ffffff;
  --sh-bg: #f5f5f7;
  --sh-success: #16a34a;
  --sh-success-soft: #dcfce7;
  --sh-link: #1d4ed8;
  --sh-radius: 12px;
  --sh-radius-lg: 16px;
  --sh-cta-shadow: 0 8px 22px var(--sh-brand-ring);
  --sh-z-sticky: 1400;
  --sh-z-mobnav: 1500;
  --sh-z-sticky-buy: 1450;
}

/* ── Primary buy buttons (site-wide) ── */
.sh-btn-buy,
#content .btn-primary,
#content a.btn-primary,
#content .btn-cart,
.product-thumb .button-group button:not(:disabled),
#button-cart,
.btn-sticky-cart,
#sh-popup-checkout-btn,
#checkout-cart .btn-primary,
#checkout-checkout .btn-primary,
#checkout-confirm .btn-primary {
  background: linear-gradient(135deg, var(--sh-brand) 0%, var(--sh-brand-hover) 100%) !important;
  border: none !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: var(--sh-radius) !important;
  min-height: 48px;
  box-shadow: var(--sh-cta-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}

.sh-btn-buy:hover,
#content .btn-primary:hover,
#content a.btn-primary:hover,
#content .btn-cart:hover,
.product-thumb .button-group button:not(:disabled):hover,
#button-cart:hover,
.btn-sticky-cart:hover,
#sh-popup-checkout-btn:hover {
  background: linear-gradient(135deg, var(--sh-brand-hover) 0%, var(--sh-brand-active) 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px var(--sh-brand-ring) !important;
  color: #fff !important;
}

.sh-btn-buy:active,
#content .btn-primary:active,
#button-cart:active,
.btn-sticky-cart:active {
  transform: translateY(0) scale(0.98) !important;
}

#button-cart.added,
.product-thumb .button-group button.added,
.btn-sticky-cart.success {
  background: linear-gradient(135deg, #22c55e 0%, var(--sh-success) 100%) !important;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.3) !important;
}

/* Secondary / outline */
.sh-btn-secondary,
#content .btn-light,
#content a.btn-light {
  background: var(--sh-surface) !important;
  border: 1.5px solid #e5e7eb !important;
  color: var(--sh-ink) !important;
  border-radius: var(--sh-radius) !important;
  font-weight: 600 !important;
  min-height: 44px;
}

.sh-btn-secondary:hover,
#content .btn-light:hover {
  border-color: var(--sh-brand) !important;
  color: var(--sh-brand-hover) !important;
  background: var(--sh-brand-soft) !important;
}

/* ── Product cards ── */
.product-thumb {
  border-radius: var(--sh-radius-lg) !important;
  border: 1px solid #eee !important;
  background: var(--sh-surface);
  overflow: hidden;
}

.product-thumb .caption h4 a {
  color: var(--sh-ink) !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-thumb .price .price-new {
  color: var(--sh-ink) !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.product-thumb .price .price-old {
  color: var(--sh-muted) !important;
}

.product-thumb .button-group {
  padding: 0 12px 12px !important;
}

/* ── Product page ── */
.price-block {
  background: var(--sh-brand-soft) !important;
  border-left: 4px solid var(--sh-brand) !important;
  border-radius: var(--sh-radius) !important;
}

.price-block .price-new {
  color: var(--sh-ink) !important;
}

.stock-badge {
  background: var(--sh-success-soft) !important;
  color: #166534 !important;
}

/* Sticky buy — above mobile bottom nav */
.sticky-buy-bar {
  z-index: var(--sh-z-sticky-buy) !important;
  border-top: 1px solid #eee !important;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.08) !important;
}

@media (max-width: 991px) {
  .sticky-buy-bar {
    bottom: 64px !important;
    display: flex !important;
    align-items: center;
    gap: 12px;
  }

  .sticky-buy-bar .sticky-price {
    margin-bottom: 0 !important;
    flex-shrink: 0;
    min-width: 90px;
  }

  .sticky-buy-bar .btn-sticky-cart {
    flex: 1;
    margin: 0 !important;
    font-size: 16px !important;
    padding: 14px 16px !important;
  }

  #product-info,
  #product-product {
    padding-bottom: 130px !important;
  }
}

/* ── Mobile bottom bar polish ── */
#sh-mobile-bottom-bar .sh-mob-bar-cart {
  background: linear-gradient(135deg, var(--sh-brand), var(--sh-brand-hover)) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

#sh-mobile-bottom-bar a.sh-mob-bar-phone {
  color: #22c55e !important;
}

/* ── Home hero accents ── */
.sh-benefits {
  border-bottom-color: var(--sh-brand) !important;
}

.sh-top-picks-title,
.sh-cats-title,
.related-slider-section h2 {
  border-bottom-color: var(--sh-brand) !important;
}

.sh-hero-cover {
  background: linear-gradient(120deg, var(--sh-nav) 0%, #1e3a5f 42%, var(--sh-brand) 100%) !important;
  box-shadow: 0 12px 40px var(--sh-brand-ring) !important;
}

.sh-hero-card-price {
  color: #ffe082 !important;
}

.sh-hero-btn-w {
  background: #fff !important;
  color: var(--sh-brand-hover) !important;
  border: 2px solid transparent !important;
}

.sh-hero-btn-w:hover {
  background: var(--sh-brand-soft) !important;
  border-color: var(--sh-brand) !important;
}

.sh-cat:hover,
.sh-cat.featured {
  border-color: var(--sh-brand) !important;
}

.sh-cat.featured {
  background: linear-gradient(135deg, var(--sh-brand-soft), #fff) !important;
}

.sh-cat:hover .lbl,
.sh-cat.featured .lbl {
  color: var(--sh-brand-hover) !important;
}

/* ── Cart popup ── */
#sh-popup-checkout-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* ── Cookie banner — don't block CTAs ── */
#cookie-consent,
.cookie-consent,
[class*="cookie"] {
  z-index: 1200 !important;
}

@media (prefers-reduced-motion: reduce) {
  .sh-btn-buy,
  #button-cart,
  .btn-sticky-cart,
  .product-thumb {
    transition: none !important;
    transform: none !important;
  }
}