/* ==========================================================================
   DOBGISON SLEEP - COMPONENTS STYLESHEET
   WordPress / WooCommerce High-Converting UI Components
   Theme: Midnight & Luminous Moon | Currency: EUR (€)
   ========================================================================== */

/* --- Buttons System --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-smooth);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #090e1a;
  box-shadow: 0 4px 18px rgba(245, 158, 11, 0.35);
  border-color: rgba(251, 191, 36, 0.5);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
  color: #000;
}

.btn-accent {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
  border-color: rgba(147, 197, 253, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.btn-quick {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  border-color: rgba(52, 211, 153, 0.3);
}

.btn-quick:hover {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border: 1px solid var(--border-moon);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-gold-light);
  color: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* --- Badges & Micro-Labels --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  line-height: 1;
}

.badge-discount {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
  box-shadow: 0 0 12px var(--color-discount-glow);
}

.badge-hit {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.35);
}

.badge-new {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
}

.badge-ortho {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
}

.badge-moon {
  background: rgba(191, 219, 254, 0.15);
  border: 1px solid var(--border-moon);
  color: var(--moon-bright);
}

/* --- PRODUCT CARDS (MULTIPLE DISTINCT VARIATIONS) --- */

/* VARIATION 1: Classic WooCommerce Grid Card */
.product-card-classic {
  background: var(--color-bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
}

.product-card-classic:hover {
  transform: translateY(-6px);
  border-color: var(--border-moon);
  box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.6), 0 0 25px rgba(147, 197, 253, 0.15);
}

.product-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0d1424;
}

.product-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.product-card-classic:hover .product-card-image-wrap img {
  transform: scale(1.06);
}

.card-badges-absolute {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.card-quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.product-card-classic:hover .card-quick-actions {
  opacity: 1;
  transform: translateX(0);
}

.card-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-subtle);
  color: var(--text-pure);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.card-action-btn:hover {
  background: var(--color-gold);
  color: #090e1a;
  border-color: var(--color-gold);
}

.product-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category-tag {
  font-size: 0.74rem;
  text-transform: uppercase;
  color: var(--color-blue-light);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  line-height: 1.35;
  margin-bottom: 10px;
}

.product-title a:hover {
  color: var(--color-gold-light);
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.star-rating {
  color: var(--color-gold-light);
  display: flex;
  gap: 2px;
}

.rating-count {
  color: var(--text-muted);
}

.product-firmness-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  font-size: 0.78rem;
}

.firmness-label {
  color: var(--text-muted);
}

.firmness-scale-dots {
  display: flex;
  align-items: center;
  gap: 4px;
}

.scale-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.scale-dot.active {
  background: var(--color-gold-light);
  box-shadow: 0 0 6px var(--color-gold-glow);
}

.product-pricing-box {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
}

.price-regular {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-pure);
}

.price-current span {
  color: var(--color-gold-light);
}

.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* VARIATION 2: High-Impact Spotlight Banner Card */
.product-card-spotlight {
  background: radial-gradient(circle at 85% 20%, rgba(30, 58, 138, 0.3) 0%, rgba(15, 23, 42, 0.95) 70%);
  border: 1px solid var(--border-moon);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7), var(--shadow-moon);
  position: relative;
  overflow: hidden;
}

.product-card-spotlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-gold-light), var(--color-blue-light));
}

.spotlight-media {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-light);
}

.spotlight-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.spotlight-media:hover img {
  transform: scale(1.04);
}

.spotlight-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--color-gold-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.spotlight-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-pure);
  line-height: 1.25;
  margin-bottom: 14px;
}

.spotlight-desc {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.spotlight-features-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.spotlight-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-primary);
}

.spotlight-feature-item svg {
  color: var(--color-success);
  flex-shrink: 0;
}

.spotlight-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 20px;
}

.spotlight-current-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.spotlight-old-price {
  font-size: 1.15rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.spotlight-save-badge {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* 2-Field Fast Order Inside Spotlight Card */
.spotlight-quick-form {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.quick-form-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.quick-form-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

.form-control-minimal {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: var(--text-pure);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control-minimal:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px var(--color-gold-glow);
}

.form-control-minimal::placeholder {
  color: var(--text-muted);
}

/* VARIATION 3: Bundle / Sleep System Card */
.product-card-bundle {
  background: linear-gradient(135deg, #101728 0%, #0d1220 100%);
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: all var(--transition-smooth);
}

.product-card-bundle:hover {
  border-style: solid;
  border-color: var(--color-gold-light);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-gold-glow);
}

.bundle-badge-top {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--color-gold);
  color: #090e1a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.bundle-components-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0;
}

.bundle-component-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px;
  text-align: center;
  font-size: 0.78rem;
}

.bundle-component-item img {
  height: 60px;
  width: 100%;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.bundle-component-name {
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
}

/* --- Interactive Sleep Diagnostic Quiz --- */
.sleep-quiz-box {
  background: linear-gradient(135deg, rgba(20, 29, 51, 0.9) 0%, rgba(13, 21, 39, 0.95) 100%);
  border: 1px solid var(--border-moon);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg), var(--shadow-moon);
  position: relative;
}

.quiz-steps-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.quiz-step-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.quiz-step-card:hover, .quiz-step-card.selected {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--color-gold);
  transform: translateY(-3px);
}

.quiz-step-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.quiz-step-card h4 {
  font-size: 0.95rem;
  color: var(--text-pure);
  margin-bottom: 4px;
}

.quiz-step-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quiz-result-recommendation {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.quiz-result-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz-result-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.quiz-result-title {
  font-weight: 700;
  color: var(--text-pure);
  font-size: 1.05rem;
}

.quiz-result-sub {
  font-size: 0.84rem;
  color: var(--color-gold-light);
}

/* --- 1-Click Fast Order Modal --- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-smooth);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.quick-order-modal {
  background: #0f172a;
  border: 1px solid var(--border-moon);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-moon);
  position: relative;
  overflow: hidden;
  transform: scale(0.92);
  transition: transform var(--transition-bounce);
}

.modal-backdrop.active .quick-order-modal {
  transform: scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-pure);
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 4px;
  transition: color var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-pure);
}

.modal-body {
  padding: 24px;
}

.modal-product-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 20px;
}

.modal-product-img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.modal-product-info h5 {
  font-size: 0.95rem;
  color: var(--text-pure);
  font-weight: 700;
  margin-bottom: 4px;
}

.modal-product-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-gold-light);
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-pure);
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-input:focus {
  border-color: var(--color-gold);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 12px var(--color-gold-glow);
}

.form-helper {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

/* --- Cookie Consent Banner (Google Ads & GDPR) --- */
.cookie-consent-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: 92%;
  max-width: 900px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-moon);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), var(--shadow-moon);
  z-index: 1000;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cookie-consent-bar.visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 600px;
}

.cookie-text a {
  color: var(--color-gold-light);
  text-decoration: underline;
}

.cookie-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --- Floating Toast Notification --- */
.toast-notification {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f172a;
  border: 1px solid var(--color-gold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), var(--shadow-gold);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1100;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-smooth);
}

.toast-notification.active {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-pure);
}

/* --- Tabs System (WooCommerce Style) --- */
.product-tabs-wrapper {
  margin-top: 48px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.4);
  overflow: hidden;
}

.tabs-nav {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(10, 15, 28, 0.6);
  overflow-x: auto;
}

.tab-btn {
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-pure);
}

.tab-btn.active {
  color: var(--color-gold-light);
  border-bottom-color: var(--color-gold-light);
  background: rgba(245, 158, 11, 0.05);
}

.tab-content-pane {
  display: none;
  padding: 32px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.tab-content-pane.active {
  display: block;
}
