/**
 * SOULSHORE v2 — Unified Mode Enforcer
 * Single soft-pastel luxury palette. No dark mode.
 * All [data-theme="dark"] / .dark-mode selectors are redirected to v2 tokens.
 * @package Soulshore
 */

/* ══════════════════════════════════════════════════════════════════════════
   NEUTRALIZE: Override any dark-mode attributes → v2 soft pastel luxury
   ══════════════════════════════════════════════════════════════════════════ */

[data-theme="dark"],
.dark-mode,
html:not([data-theme="light"]) {
  color-scheme: light;
  --bg-page:        #FFFFFF;
  --bg-surface:     rgba(255,255,255,0.80);
  --bg-elevated:    rgba(255,255,255,0.95);
  --bg-sunken:      #F2EBE1;
  --text-primary:   #1F1F1F;
  --text-secondary: rgba(31,31,31,0.72);
  --text-muted:     #6B5F5B;
  --text-inverse:   #FAF7F2;
  --text-accent:    #D8A48F;
  --accent:         #D8A48F;
  --accent-hover:   #B497A9;
  --accent-light:   #E8B7A7;
  --gold:           #D7B899;
  --rose-gold:      #D8A48F;
  --glass-bg:       rgba(255,255,255,0.58);
  --glass-border:   rgba(255,255,255,0.55);
  --border:         rgba(31,31,31,0.08);
  --border-strong:  rgba(31,31,31,0.14);
  --shadow-card:    0 18px 50px rgba(35,25,20,0.10), inset 0 1px 0 rgba(255,255,255,0.75);
}

/* Body — always warm ivory, never dark */
[data-theme="dark"] body,
.dark-mode body {
  background-color: #FAF7F2 !important;
  color: #1F1F1F !important;
}

/* Headings — always dark warm */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3,
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
  color: #1F1F1F !important;
}

/* Announcement scroll — v2 pastel gradient */
[data-theme="dark"] .announcement-scroll,
.dark-mode .announcement-scroll {
  background: linear-gradient(90deg, #E8B7A7 0%, #D8A48F 40%, #B497A9 75%, #C6B6D9 100%) !important;
  color: #1F1F1F !important;
}

/* Desktop header — soft white glass */
[data-theme="dark"] #site-header,
.dark-mode #site-header {
  background: #ffffff !important;
  border-bottom-color: #eeeeee !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] #site-header .main-nav a,
.dark-mode #site-header .main-nav a,
[data-theme="dark"] #site-header .header-action-btn,
.dark-mode #site-header .header-action-btn,
[data-theme="dark"] #site-header .site-logo-text,
.dark-mode #site-header .site-logo-text {
  color: #1F1F1F !important;
}
[data-theme="dark"] #site-header .main-nav a:hover,
.dark-mode #site-header .main-nav a:hover {
  color: #D8A48F !important;
}

/* Mobile header */
[data-theme="dark"] .mobile-header,
.dark-mode .mobile-header {
  background: #ffffff !important;
  border-bottom-color: #eeeeee !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .mobile-header .header-action-btn,
.dark-mode .mobile-header .header-action-btn {
  color: #1F1F1F !important;
}

/* Mobile drawer */
[data-theme="dark"] #mobile-menu-drawer,
.dark-mode #mobile-menu-drawer {
  background: rgba(255,255,255,0.88) !important;
  border-right-color: rgba(255,255,255,0.55) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .mobile-drawer .header-action-btn,
.dark-mode .mobile-drawer .header-action-btn {
  color: #1F1F1F !important;
}

/* Product cards */
[data-theme="dark"] .product-card,
.dark-mode .product-card {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 8px 28px rgba(35,25,20,0.08), inset 0 1px 0 rgba(255,255,255,0.75) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .product-card:hover,
.dark-mode .product-card:hover {
  box-shadow: 0 18px 48px rgba(35,25,20,0.12), inset 0 1px 0 rgba(255,255,255,0.80) !important;
}
[data-theme="dark"] .product-card-name,
.dark-mode .product-card-name { color: #1F1F1F !important; }
[data-theme="dark"] .product-card-category,
.dark-mode .product-card-category { color: #6B5F5B !important; }
[data-theme="dark"] .price-current,
.dark-mode .price-current { color: #D8A48F !important; }
[data-theme="dark"] .price-original,
.dark-mode .price-original { color: rgba(107,95,91,0.55) !important; }

/* Glass elements */
[data-theme="dark"] .glass,
.dark-mode .glass,
[data-theme="dark"] .glass-card,
.dark-mode .glass-card {
  background: rgba(255,255,255,0.58) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 18px 50px rgba(35,25,20,0.10), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}
[data-theme="dark"] .glass-panel,
.dark-mode .glass-panel {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(255,255,255,0.60) !important;
}

/* Forms */
[data-theme="dark"] .form-input,
.dark-mode .form-input {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(255,255,255,0.55) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .form-input:focus,
.dark-mode .form-input:focus {
  border-color: rgba(216,164,143,0.60) !important;
  box-shadow: 0 0 0 4px rgba(216,164,143,0.14) !important;
}

/* Buttons */
[data-theme="dark"] .btn-primary,
.dark-mode .btn-primary {
  background: linear-gradient(135deg, #D8A48F 0%, #B497A9 100%) !important;
  border-color: rgba(255,255,255,0.30) !important;
  color: #FAF7F2 !important;
}
[data-theme="dark"] .btn-secondary,
.dark-mode .btn-secondary {
  color: #1F1F1F !important;
  border-color: rgba(255,255,255,0.55) !important;
}

/* Trust tiles */
[data-theme="dark"] .trust-tile,
.dark-mode .trust-tile {
  background: rgba(255,255,255,0.58) !important;
  border-color: rgba(255,255,255,0.55) !important;
  box-shadow: 0 8px 24px rgba(35,25,20,0.07), inset 0 1px 0 rgba(255,255,255,0.75) !important;
}
[data-theme="dark"] .trust-tile-icon,
.dark-mode .trust-tile-icon {
  color: #D8A48F !important;
  background: rgba(216,164,143,0.10) !important;
}

/* Testimonials */
[data-theme="dark"] .testimonial-card,
.dark-mode .testimonial-card {
  background: rgba(255,255,255,0.58) !important;
  border-color: rgba(255,255,255,0.55) !important;
}
[data-theme="dark"] .testimonial-text,
.dark-mode .testimonial-text { color: #1F1F1F !important; }

/* Search overlay */
[data-theme="dark"] .search-overlay,
.dark-mode .search-overlay {
  background: rgba(250,247,242,0.96) !important;
  backdrop-filter: blur(40px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(40px) saturate(145%) !important;
}
[data-theme="dark"] .search-input-main,
.dark-mode .search-input-main { color: #1F1F1F !important; }

/* Cart drawer */
[data-theme="dark"] .cart-drawer,
.dark-mode .cart-drawer {
  background: rgba(255,255,255,0.82) !important;
  border-left-color: rgba(255,255,255,0.55) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .cart-drawer .header-action-btn,
.dark-mode .cart-drawer .header-action-btn { color: #1F1F1F !important; }
[data-theme="dark"] .cart-drawer-footer,
.dark-mode .cart-drawer-footer {
  background: rgba(255,255,255,0.50) !important;
  border-top-color: rgba(31,31,31,0.07) !important;
}

/* Cart badge */
[data-theme="dark"] .cart-badge,
.dark-mode .cart-badge {
  background: linear-gradient(135deg, #D8A48F, #B497A9) !important;
  color: #FAF7F2 !important;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track,
.dark-mode ::-webkit-scrollbar-track { background: #FAF7F2 !important; }
[data-theme="dark"] ::-webkit-scrollbar-thumb,
.dark-mode ::-webkit-scrollbar-thumb { background: rgba(216,164,143,0.40) !important; }

/* Accordion */
[data-theme="dark"] .accordion-item,
.dark-mode .accordion-item { border-bottom-color: rgba(31,31,31,0.08) !important; }
[data-theme="dark"] .accordion-trigger,
.dark-mode .accordion-trigger { color: #1F1F1F !important; }

/* Section backgrounds */
[data-theme="dark"] .section,
.dark-mode .section { background: transparent !important; }

/* WooCommerce tables */
[data-theme="dark"] .woocommerce table.shop_table,
.dark-mode .woocommerce table.shop_table {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(31,31,31,0.08) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] th, .dark-mode th {
  background: rgba(255,255,255,0.55) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] td, .dark-mode td {
  border-color: rgba(31,31,31,0.06) !important;
  color: #1F1F1F !important;
}

/* Swiper navigation */
[data-theme="dark"] .swiper-button-next,
[data-theme="dark"] .swiper-button-prev,
.dark-mode .swiper-button-next,
.dark-mode .swiper-button-prev {
  background: rgba(255,255,255,0.72) !important;
  border-color: rgba(255,255,255,0.55) !important;
  color: #1F1F1F !important;
}
[data-theme="dark"] .swiper-pagination-bullet,
.dark-mode .swiper-pagination-bullet { background: rgba(31,31,31,0.18) !important; }
[data-theme="dark"] .swiper-pagination-bullet-active,
.dark-mode .swiper-pagination-bullet-active { background: #D8A48F !important; }

/* Countdown */
[data-theme="dark"] .countdown-wrapper,
.dark-mode .countdown-wrapper { color: #1F1F1F !important; }

/* ── Force light mode on prefers-color-scheme: dark ── */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: light;
    --bg-page:      #FFFFFF;
    --text-primary: #1F1F1F;
    --accent:       #D8A48F;
  }
  html { background: #FFFFFF; }
}
