/* ==========================================================================
   DOBGISON SLEEP - MAIN STYLESHEET
   High-End E-Commerce for Restorative Sleep Products
   Theme: Midnight Celestial & Luminous Moon (Dark/Light Balance)
   Currency: EUR (€) | Market: Bulgaria (BG)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Background Layers */
  --color-bg-deep: #060911;
  --color-bg-base: #090e1a;
  --color-bg-surface: #0f172a;
  --color-bg-surface-elevated: #162038;
  --color-bg-card: #131d33;
  --color-bg-card-hover: #1a2745;
  --color-bg-card-subtle: #0d1527;

  /* Moonlight & Atmospheric Accents */
  --moon-core: #f8fafc;
  --moon-glow-outer: rgba(191, 219, 254, 0.28);
  --moon-glow-inner: rgba(248, 250, 252, 0.85);
  --moon-halo: rgba(147, 197, 253, 0.12);
  --moon-beam: rgba(255, 255, 255, 0.05);

  /* Brand Accents & CTA */
  --color-gold: #f59e0b;
  --color-gold-light: #fbbf24;
  --color-gold-glow: rgba(245, 158, 11, 0.25);
  --color-blue-accent: #3b82f6;
  --color-blue-light: #60a5fa;
  --color-blue-glow: rgba(59, 130, 246, 0.3);

  /* Status Colors */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.12);
  --color-discount: #ef4444;
  --color-discount-glow: rgba(239, 68, 68, 0.3);

  /* Typography Colors */
  --text-pure: #ffffff;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.14);
  --border-active: rgba(245, 158, 11, 0.5);
  --border-moon: rgba(191, 219, 254, 0.25);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 36px -6px rgba(0, 0, 0, 0.6);
  --shadow-moon: 0 0 50px rgba(191, 219, 254, 0.2);
  --shadow-gold: 0 8px 25px rgba(245, 158, 11, 0.35);

  /* Fonts */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Container */
  --container-width: 1280px;
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Background Stars & Night Depth */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.4), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 75px 120px, rgba(255, 255, 255, 0.3), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 150px 80px, rgba(255, 255, 255, 0.5), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 280px 220px, rgba(255, 255, 255, 0.35), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 390px 70px, rgba(255, 255, 255, 0.6), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 520px 310px, rgba(255, 255, 255, 0.4), rgba(0,0,0,0)),
    radial-gradient(1.5px 1.5px at 700px 150px, rgba(255, 255, 255, 0.45), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 890px 420px, rgba(255, 255, 255, 0.3), rgba(0,0,0,0)),
    radial-gradient(2px 2px at 1050px 190px, rgba(255, 255, 255, 0.55), rgba(0,0,0,0)),
    radial-gradient(1px 1px at 1200px 350px, rgba(255, 255, 255, 0.35), rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 1300px 600px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 1;
}

/* --- Atmospheric Moon Backdrop Element --- */
.moon-scene-container {
  position: absolute;
  top: 0;
  right: 5%;
  width: 480px;
  height: 480px;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.celestial-moon {
  position: relative;
  width: 280px;
  height: 280px;
  margin-left: auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffffff 0%, #f1f5f9 25%, #e2e8f0 55%, #cbd5e1 80%, #94a3b8 100%);
  box-shadow: 
    0 0 40px rgba(255, 255, 255, 0.8),
    0 0 100px rgba(191, 219, 254, 0.45),
    0 0 180px rgba(147, 197, 253, 0.25),
    inset -15px -15px 30px rgba(71, 85, 105, 0.4);
  animation: moonPulse 8s ease-in-out infinite alternate;
}

/* Realistic lunar maria texture overlay */
.celestial-moon::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: 
    radial-gradient(circle at 60% 45%, rgba(100, 116, 139, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 30% 70%, rgba(71, 85, 105, 0.2) 0%, transparent 35%),
    radial-gradient(circle at 75% 65%, rgba(51, 65, 85, 0.25) 0%, transparent 25%),
    radial-gradient(circle at 45% 25%, rgba(148, 163, 184, 0.15) 0%, transparent 30%);
  opacity: 0.85;
}

/* Outer ethereal moonlight glow ring */
.moon-halo-ring {
  position: absolute;
  top: -40px;
  right: -40px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(226, 232, 240, 0.15);
  box-shadow: 0 0 120px rgba(147, 197, 253, 0.15);
  pointer-events: none;
  animation: haloRotate 40s linear infinite;
}

@keyframes moonPulse {
  0% {
    transform: scale(1);
    box-shadow: 
      0 0 40px rgba(255, 255, 255, 0.8),
      0 0 100px rgba(191, 219, 254, 0.4),
      0 0 180px rgba(147, 197, 253, 0.2);
  }
  100% {
    transform: scale(1.03);
    box-shadow: 
      0 0 55px rgba(255, 255, 255, 0.9),
      0 0 130px rgba(191, 219, 254, 0.55),
      0 0 220px rgba(147, 197, 253, 0.35);
  }
}

@keyframes haloRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* --- Top Utility Bar (Google Ads & Trust Standard) --- */
.top-bar {
  background: linear-gradient(90deg, #070c18 0%, #0d1529 50%, #070c18 100%);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
  z-index: 50;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-perks {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.top-bar-item svg {
  color: var(--color-gold-light);
  flex-shrink: 0;
}

.top-bar-item strong {
  color: var(--text-pure);
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-pure);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.top-bar-phone:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--color-gold);
  color: var(--color-gold-light);
}

.top-bar-currency-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.currency-flag {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
  background: linear-gradient(#fff 33%, #00966e 33%, #00966e 66%, #d62612 66%);
}

/* --- Header / Navigation (WordPress WooCommerce Style) --- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(9, 14, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  transition: all var(--transition-fast);
}

.site-header.scrolled {
  background: rgba(7, 10, 19, 0.97);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  border-bottom-color: var(--border-light);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

/* Brand Logo with Moon Identity */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid var(--border-moon);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 20px rgba(147, 197, 253, 0.25);
  overflow: hidden;
}

.brand-symbol::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 20px rgba(191, 219, 254, 0.6);
  top: 7px;
  right: 7px;
}

.brand-symbol::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #0f172a;
  top: 4px;
  right: 12px;
  z-index: 2;
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-pure);
  line-height: 1.1;
  text-transform: lowercase;
}

.brand-title span {
  color: var(--color-gold-light);
}

.brand-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Main Navigation Menu */
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 6px;
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-pure);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 6px;
  right: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-blue-light));
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--color-gold-light);
}

.nav-badge-sale {
  background: var(--color-discount);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 0 10px var(--color-discount-glow);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-search-btn, .header-wishlist-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.header-search-btn:hover, .header-wishlist-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-pure);
  border-color: var(--border-light);
}

/* WooCommerce Style Cart Pill */
.header-cart-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid var(--border-moon);
  padding: 6px 14px 6px 10px;
  border-radius: var(--radius-full);
  color: var(--text-pure);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.header-cart-pill:hover {
  border-color: var(--color-gold-light);
  box-shadow: 0 0 20px var(--color-gold-glow);
  transform: translateY(-1px);
}

.cart-icon-wrapper {
  position: relative;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-counter-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-gold);
  color: #0f172a;
  font-size: 0.7rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 0 8px var(--color-gold-glow);
}

.cart-pill-price {
  font-weight: 700;
  color: var(--color-gold-light);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-pure);
  cursor: pointer;
  padding: 8px;
}

/* --- Section Formatting & Titles --- */
section {
  position: relative;
  padding: 72px 0;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px auto;
}

.section-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-light);
  margin-bottom: 12px;
  padding: 4px 14px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.25;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-title .text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title .text-gold {
  color: var(--color-gold-light);
  -webkit-text-fill-color: var(--color-gold-light);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Breadcrumbs (WooCommerce Standard) --- */
.woocommerce-breadcrumbs {
  padding: 18px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.3);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-list a:hover {
  color: var(--color-gold-light);
}

.breadcrumbs-list .current {
  color: var(--text-pure);
  font-weight: 600;
}

/* --- Footer (Rich WordPress Store Style) --- */
.site-footer {
  background: linear-gradient(180deg, #090e1a 0%, #05070d 100%);
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
  position: relative;
  z-index: 10;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-top-perks {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.4);
}

.footer-perks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer-perk-box {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-perk-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-perk-title {
  color: var(--text-pure);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-perk-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-main {
  padding: 60px 0 40px 0;
}

.footer-columns-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.3fr;
  gap: 36px;
}

.footer-col-title {
  color: var(--text-pure);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  letter-spacing: -0.2px;
}

.footer-col-title::after {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--color-gold-light);
  margin-top: 8px;
  border-radius: var(--radius-full);
}

.footer-brand-desc {
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links-list a {
  color: var(--text-muted);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links-list a:hover {
  color: var(--text-pure);
  transform: translateX(4px);
}

.footer-company-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.86rem;
  line-height: 1.5;
}

.company-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.company-detail-item svg {
  color: var(--color-gold-light);
  margin-top: 3px;
  flex-shrink: 0;
}

/* Google Ads & Legal Compliance Badge Row */
.footer-trust-badges {
  padding: 24px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 28, 0.6);
}

.trust-badges-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-group-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-subtle);
  font-weight: 700;
  margin-bottom: 8px;
}

.trust-badges-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.trust-badge-tag.highlight {
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.payment-methods-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.payment-pill {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-pure);
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom a {
  color: var(--text-muted);
}

.footer-bottom a:hover {
  color: var(--text-pure);
}

.google-ads-disclaimer {
  margin-top: 10px;
  font-size: 0.74rem;
  color: var(--text-subtle);
  line-height: 1.45;
}
