/**
 * EarlyWell Next-Gen Health-Tech Platform
 * Component Styles: Header, Mega-Menu, Drawers, Footer, Modals & Toast
 * Style Direction: Style C - Dark Tech Premium
 */

/* ==========================================================================
   1. Announcement Bar (Top Banner)
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #070a11 0%, #0d1527 50%, #070a11 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--color-text-secondary);
  position: relative;
  z-index: 100;
}

.announcement-bar__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.announcement-bar__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 245, 160, 0.12);
  color: #00f5a0;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid rgba(0, 245, 160, 0.35);
}

.announcement-bar__badge--coral {
  background: rgba(255, 77, 109, 0.16);
  color: #ff4d6d;
  border-color: rgba(255, 77, 109, 0.4);
}

.announcement-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-bar__text-short {
  display: none;
}

@media (max-width: 900px) {
  .announcement-bar__hide-mobile { display: none !important; }
  .announcement-bar__content { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .announcement-bar {
    padding: 5px 0;
    font-size: 10.5px;
    line-height: 1.25;
  }
  .announcement-bar__content {
    justify-content: center;
    text-align: center;
    padding: 0 8px;
  }
  .announcement-bar__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 10.5px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .announcement-bar__badge {
    font-size: 9px;
    padding: 1.5px 6px;
    cursor: pointer;
    flex-shrink: 0;
    user-select: none;
    transition: transform 0.15s ease;
  }
  .announcement-bar__badge:active {
    transform: scale(0.95);
  }
  .announcement-bar__text-full {
    display: none !important;
  }
  .announcement-bar__text-short {
    display: inline !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 360px) {
  .announcement-bar {
    font-size: 9.5px;
  }
  .announcement-bar__item {
    gap: 4px;
    font-size: 9.5px;
  }
  .announcement-bar__badge {
    font-size: 8px;
    padding: 1px 5px;
  }
}

/* ==========================================================================
   2. Main Header & Navigation Bar
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(11, 16, 28, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.site-header.is-scrolled {
  background: rgba(7, 10, 17, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(0, 245, 160, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: var(--space-lg);
}

/* Brand Logo */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  color: #ffffff;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-logo__symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 245, 160, 0.2) 0%, rgba(0, 229, 255, 0.1) 100%);
  border: 1px solid var(--color-border-highlight);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 0 16px rgba(0, 245, 160, 0.25);
  transition: all var(--transition-normal);
}

.brand-logo:hover .brand-logo__symbol {
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 0 24px rgba(0, 245, 160, 0.45);
}

.brand-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-logo__main {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
}

.brand-logo__main span {
  color: var(--color-primary);
}

.brand-logo__tagline {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  color: var(--color-text-secondary);
  font-size: 13.5px;
  font-weight: var(--font-weight-semibold);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: var(--color-primary);
}

.nav-link__pill {
  padding: 2px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  background: var(--color-accent-coral-subtle);
  color: var(--color-accent-coral);
  border: 1px solid rgba(255, 77, 109, 0.4);
}

/* Mega Menu Dropdown */
.nav-item--mega {
  position: static;
}

.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(14, 20, 34, 0.97);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 245, 160, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all var(--transition-normal);
  padding: var(--space-xl) 0;
  z-index: 85;
}

.nav-item--mega:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: var(--space-2xl);
}

.mega-menu__categories {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.mega-cat-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-subtle);
  transition: all var(--transition-fast);
}

.mega-cat-card:hover {
  background: rgba(0, 245, 160, 0.04);
  border-color: var(--color-border-highlight);
  transform: translateX(4px);
}

.mega-cat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.mega-cat-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  margin-bottom: 2px;
}

.mega-cat-desc {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  line-height: 1.4;
}

.mega-feature-card {
  background: linear-gradient(145deg, #131b2c 0%, #17243d 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.mega-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(0, 245, 160, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

/* Header Action Controls */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-action-btn {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  position: relative;
  transition: all var(--transition-fast);
}

.header-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.header-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px rgba(0, 245, 160, 0.5);
}

.header-badge--coral {
  background: var(--color-accent-coral);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
}

.burger-btn {
  display: none;
}

@media (max-width: 1180px) {
  .nav-menu { display: none !important; }
  .burger-btn { display: flex !important; }
}

@media (max-width: 768px) {
  .header-inner {
    height: 60px;
    gap: 8px;
  }
  .brand-logo {
    gap: 7px;
  }
  .brand-logo__symbol {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .brand-logo__symbol svg {
    width: 17px;
    height: 17px;
  }
  .brand-logo__main {
    font-size: 1.2rem;
  }
  .brand-logo__tagline {
    display: none !important;
  }
  .header-actions {
    gap: 6px;
  }
  .header-action-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
  }
  .header-action-btn svg {
    width: 16px;
    height: 16px;
  }
  .header-badge {
    width: 16px;
    height: 16px;
    font-size: 9px;
    top: -3px;
    right: -3px;
  }
}

@media (max-width: 390px) {
  .header-actions {
    gap: 4px;
  }
  .header-action-btn {
    width: 34px;
    height: 34px;
  }
  .brand-logo__main {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   3. Slide-Over Cart Drawer
   ========================================================================== */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.cart-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: var(--color-bg-surface);
  border-left: 1px solid var(--color-border);
  box-shadow: none;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-smooth), visibility var(--transition-smooth), box-shadow var(--transition-smooth);
}

.cart-drawer.is-active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8);
}

/* Universal Perfectly Centered Drawer / Modal Close Button */
.drawer-close-btn,
[data-action="close-cart"],
[data-action="close-mobile-menu"],
[data-action="close-search"] {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0 !important;
  margin: 0;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid var(--color-border) !important;
  color: var(--color-text-secondary) !important;
  cursor: pointer;
  line-height: 1 !important;
  text-align: center;
  transition: all var(--transition-fast) !important;
  flex-shrink: 0;
  box-sizing: border-box;
}

.drawer-close-btn svg,
[data-action="close-cart"] svg,
[data-action="close-mobile-menu"] svg,
[data-action="close-search"] svg {
  display: block;
  pointer-events: none;
}

.drawer-close-btn:hover,
[data-action="close-cart"]:hover,
[data-action="close-mobile-menu"]:hover,
[data-action="close-search"]:hover {
  background: rgba(255, 77, 109, 0.15) !important;
  border-color: rgba(255, 77, 109, 0.5) !important;
  color: #ff4d6d !important;
  transform: rotate(90deg);
}

.cart-drawer__header {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-drawer__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-drawer__free-shipping {
  padding: 12px var(--space-lg);
  background: rgba(0, 245, 160, 0.05);
  border-bottom: 1px solid var(--color-border);
}

.free-shipping-bar {
  height: 6px;
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-top: 6px;
}

.free-shipping-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-cyan) 0%, var(--color-primary) 100%);
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Empty Cart View */
.cart-drawer__empty {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
  color: var(--color-text-muted);
}

.cart-drawer__empty svg {
  margin: 0 auto var(--space-md);
  color: var(--color-text-dim);
}

.cart-drawer__empty h4,
.cart-drawer__empty p {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  -webkit-hyphens: none !important;
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-sm);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  position: relative;
}

.cart-item__thumb {
  width: 74px;
  height: 74px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
}

.cart-item__details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item__title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  line-height: 1.3;
}

.cart-item__variant {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.cart-qty-picker {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-surface);
  overflow: hidden;
}

.cart-qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 15px;
  transition: all var(--transition-fast);
}

.cart-qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-primary);
}

.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: var(--font-size-xs);
  font-weight: 700;
  color: #ffffff;
}

.cart-item__price {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  font-family: var(--font-family-mono);
}

.cart-item__remove {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
  margin-left: 6px;
  flex-shrink: 0;
  cursor: pointer;
  line-height: 1;
  box-sizing: border-box;
}

.cart-item__remove svg {
  display: block;
  pointer-events: none;
}

.cart-item__remove:hover {
  background: rgba(255, 77, 109, 0.2);
  border-color: rgba(255, 77, 109, 0.5);
  color: #ff4d6d;
  transform: scale(1.08);
}

.cart-drawer__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  background: rgba(14, 20, 34, 0.98);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-extrabold);
  color: #ffffff;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 640px) {
  .cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
  }
  .cart-drawer__header {
    padding: 12px 14px !important;
  }
  .cart-drawer__free-shipping {
    padding: 8px 14px !important;
  }
  .cart-drawer__body {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .cart-drawer__footer {
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .cart-item {
    padding: 8px 10px !important;
    gap: 10px !important;
  }
  .cart-item__thumb {
    width: 60px !important;
    height: 60px !important;
  }
  .cart-item__title {
    font-size: 12.5px !important;
  }
}

/* ==========================================================================
   4. Mobile Navigation Drawer
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-normal);
}

.mobile-drawer-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 320px;
  background: var(--color-bg-surface);
  border-right: 1px solid var(--color-border);
  box-shadow: none;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform var(--transition-smooth), visibility var(--transition-smooth), box-shadow var(--transition-smooth);
}

@media (max-width: 360px) {
  .mobile-drawer {
    max-width: 86vw;
  }
}

.mobile-drawer.is-active {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: 15px 0 50px rgba(0, 0, 0, 0.8);
}

.mobile-drawer__header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-sm);
}

.mobile-nav-link:hover {
  background: rgba(0, 245, 160, 0.06);
  border-color: var(--color-border-highlight);
  color: var(--color-primary);
}

.mobile-drawer__footer {
  padding: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* ==========================================================================
   5. Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-base);
  border-top: 1px solid var(--color-border);
  margin-top: auto;
  position: relative;
  z-index: 10;
}

.footer-top {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: var(--space-2xl);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 640px) {
  .footer-top {
    padding-top: 32px;
    padding-bottom: 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

.footer-desc {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.footer-col__title {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

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

.footer-link {
  font-size: 13px;
  color: #b0bad0;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-primary);
  transform: translateX(3px);
}

.footer-company-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 12px;
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.footer-company-box strong {
  color: #ffffff;
}

.footer-company-box a {
  color: var(--color-primary);
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--color-border-subtle);
  padding: 12px 0;
  font-size: 12px;
  color: #8e9bb5;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-legal-link {
  color: #8e9bb5;
  font-size: 12px;
  transition: color var(--transition-fast);
}

.footer-legal-link:hover {
  color: var(--color-primary);
}

button.footer-legal-link {
  background: transparent;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  line-height: inherit;
}

/* Payment Icons */
.payment-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.payment-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  padding: 4px 9px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--color-text-main);
  border-radius: var(--radius-xs);
}

/* Desktop Fine-Tuning: Slightly smaller, refined aesthetic */
@media (min-width: 1025px) {
  .footer-top {
    padding-top: 44px;
    padding-bottom: 24px;
  }
  .footer-desc {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .footer-col__title {
    font-size: 12px;
    margin-bottom: 12px;
  }
  .footer-links {
    gap: 8px;
  }
  .footer-link {
    font-size: 12px;
  }
  .footer-company-box {
    font-size: 11.5px;
    line-height: 1.6;
    padding: 10px 12px;
  }
  .footer-bottom {
    font-size: 11.5px;
  }
  .footer-legal-link {
    font-size: 11.5px;
  }
  .payment-badge {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* ==========================================================================
   6. Toast Notifications (High-Z-Index, Non-Colliding)
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10005;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 48px);
}

@media (max-width: 768px) {
  .toast-container {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
  }
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(14, 20, 34, 0.96);
  border: 1px solid var(--color-border-highlight);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 245, 160, 0.25);
  border-radius: var(--radius-lg);
  color: #ffffff;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transform: translateY(16px);
  animation: toast-slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast--coral,
.toast--remove {
  border-color: rgba(255, 77, 109, 0.6);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8), 0 0 25px rgba(255, 77, 109, 0.3);
}

.toast-icon {
  color: #00f5a0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-icon svg {
  display: block;
}

.toast--coral .toast-icon,
.toast--remove .toast-icon {
  color: #ff4d6d;
}

.toast-close {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  margin-left: auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  box-sizing: border-box;
}

.toast-close svg {
  display: block;
  pointer-events: none;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff !important;
  transform: rotate(90deg);
}

@keyframes toast-slide-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   7. Quick Search Modal (High-Tech Live Search Window)
   ========================================================================== */
.search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 10002;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8vh 16px 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  overflow-y: auto;
}

.search-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.search-modal {
  width: 100%;
  max-width: 680px;
  background: linear-gradient(180deg, #121929 0%, #0d1322 100%);
  border: 1px solid rgba(0, 245, 160, 0.35);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 45px rgba(0, 245, 160, 0.16);
  overflow: hidden;
  transform: translateY(-16px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.search-modal-overlay.is-active .search-modal {
  transform: translateY(0) scale(1);
}

.search-modal__form {
  margin: 0;
  padding: 0;
}

.search-modal__input-wrap {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.search-modal__icon-btn {
  background: transparent;
  border: none;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.search-modal__input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  color: #ffffff;
  outline: none;
  font-family: var(--font-family-base);
}

.search-modal__input::placeholder {
  color: #8492a6;
}

.search-modal__clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--color-text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  flex-shrink: 0;
}

.search-modal__clear-btn:hover {
  background: rgba(255, 77, 109, 0.2);
  color: #ff4d6d;
}

/* Quick Tag Chips Row */
.search-modal__quick-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow-x: auto;
  scrollbar-width: none;
}

.search-modal__quick-chips::-webkit-scrollbar {
  display: none;
}

.search-modal__chips-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #8492a6;
  white-space: nowrap;
}

.search-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--color-text-secondary);
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}

.search-chip:hover {
  background: rgba(0, 245, 160, 0.12);
  border-color: rgba(0, 245, 160, 0.35);
  color: #00f5a0;
  transform: translateY(-1px);
}

/* Results Container */
.search-modal__results {
  max-height: 460px;
  overflow-y: auto;
  padding: 16px 18px;
}

.search-results-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12.5px;
  color: var(--color-text-secondary);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.search-open-catalog-link {
  color: var(--color-primary);
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.15s;
}

.search-open-catalog-link:hover {
  text-decoration: underline;
  color: #ffffff;
}

/* Individual Search Card Item */
.search-card-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  transition: all 0.15s ease;
  text-decoration: none;
}

.search-card-item:hover {
  background: rgba(0, 245, 160, 0.05);
  border-color: rgba(0, 245, 160, 0.25);
  transform: translateY(-1px);
}

.search-card-thumb {
  width: 58px;
  height: 58px;
  min-width: 58px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #080c16;
}

.search-card-info {
  flex: 1;
  min-width: 0;
}

.search-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
  margin-bottom: 3px;
}

.search-highlight {
  background: rgba(0, 245, 160, 0.22);
  color: #00f5a0;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 800;
}

.search-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--color-text-muted);
  flex-wrap: wrap;
}

.search-card-compat {
  background: rgba(0, 229, 255, 0.09);
  color: #00e5ff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
}

.search-card-desc {
  font-size: 11.5px;
  color: var(--color-text-secondary);
  line-height: 1.35;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-card-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.search-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--color-primary);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.search-card-btn {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 8px;
}

/* Modal Footer */
.search-modal__footer {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
}

/* Empty Search State */
.search-empty-state {
  text-align: center;
  padding: 32px 16px;
}

.search-empty-state h4 {
  font-size: 16px;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 6px;
}

.search-empty-state p {
  font-size: 13px;
  color: #8492a6;
  margin-bottom: 16px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile search modal adjustments */
@media (max-width: 640px) {
  .search-modal-overlay {
    padding-top: 2vh;
    padding-left: 8px;
    padding-right: 8px;
  }
  .search-modal {
    border-radius: 16px;
  }
  .search-modal__input {
    font-size: 15px;
  }
  .search-card-thumb {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }
  .search-card-title {
    font-size: 12.5px;
  }
  .search-card-desc {
    display: none;
  }
  .search-card-btn {
    display: none;
  }
  .search-modal__quick-chips {
    gap: 6px;
    padding: 8px 12px;
  }
  .search-chip {
    padding: 3px 8px;
    font-size: 11px;
  }
  .search-modal__footer .btn {
    min-height: 40px !important;
    padding: 10px 14px !important;
    font-size: 12.5px !important;
  }
}

/* ==========================================================================
   8. Mobile Bottom Sticky Navigation Bar (Touch Dock Tab Bar)
   ========================================================================== */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(9, 14, 25, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.55), 0 -1px 0 rgba(0, 245, 160, 0.12);
    box-sizing: content-box;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
    pointer-events: auto !important;
  }

  .mobile-bottom-nav.is-hidden-keyboard {
    transform: translateY(120%);
    opacity: 0;
    pointer-events: none !important;
  }

  .mobile-bottom-nav__item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 2px;
    color: var(--color-text-muted);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.18s ease, transform 0.12s ease;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  .mobile-bottom-nav__item * {
    pointer-events: none !important;
  }

  .mobile-bottom-nav__item:active {
    transform: scale(0.92);
  }

  .mobile-bottom-nav__icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 24px;
  }

  .mobile-bottom-nav__icon-wrap svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: stroke 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  }

  .mobile-bottom-nav__label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
    color: var(--color-text-secondary);
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Active State (Current Page / Tab) */
  .mobile-bottom-nav__item.is-active {
    color: #00f5a0;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__label {
    color: #00f5a0;
    font-weight: 700;
  }

  .mobile-bottom-nav__item.is-active .mobile-bottom-nav__icon-wrap svg {
    stroke: #00f5a0;
    filter: drop-shadow(0 0 8px rgba(0, 245, 160, 0.55));
    transform: translateY(-1px);
  }

  .mobile-bottom-nav__item.is-active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 2.5px;
    background: #00f5a0;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 0 8px #00f5a0;
  }

  /* Interactive Badges (Cart & Wishlist Count) */
  .mobile-bottom-nav__badge {
    position: absolute;
    top: -4px;
    right: -8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    background: #00f5a0;
    color: #050811;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
    border: 1.5px solid #090e19;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s ease;
  }

  .mobile-bottom-nav__badge--coral {
    background: #ff4d6d;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.4);
  }

  .mobile-bottom-nav__badge.is-zero,
  .mobile-bottom-nav__badge:empty {
    display: none !important;
  }

  /* Reposition floating cookie banner above bottom nav on mobile */
  .earlywell-cookie-banner {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* ==========================================================================
   DSGVO & TDDDG Cookie Preference System & Modal
   ========================================================================== */
.earlywell-cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 520px;
  background: rgba(14, 20, 34, 0.96);
  border: 1px solid var(--color-border-highlight);
  border-radius: var(--radius-xl);
  padding: 22px;
  z-index: 990;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 245, 160, 0.12);
  font-size: 13px;
  line-height: 1.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

@media (max-width: 768px) {
  .earlywell-cookie-banner {
    left: 14px;
    right: 14px;
    max-width: 100%;
    padding: 16px;
  }
}

.earlywell-cookie-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.earlywell-cookie-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.earlywell-cookie-modal {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: #0d1322;
  border: 1px solid var(--color-border-highlight);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(0, 245, 160, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.earlywell-cookie-modal-overlay.is-active .earlywell-cookie-modal {
  transform: scale(1) translateY(0);
}

.earlywell-cookie-modal__header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  background: rgba(14, 20, 34, 0.6);
}

.earlywell-cookie-modal__body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
}

.earlywell-cookie-modal__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(14, 20, 34, 0.6);
}

.cookie-pref-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cookie-pref-item {
  background: rgba(20, 28, 46, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.cookie-pref-item:hover {
  background: rgba(20, 28, 46, 0.65);
  border-color: rgba(0, 245, 160, 0.25);
}

.cookie-pref-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.cookie-pref-title {
  font-weight: 700;
  color: var(--color-text-main);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-pref-desc {
  font-size: 12px;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Custom Tech Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-switch-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-switch-slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.cookie-switch input:checked + .cookie-switch-slider {
  background-color: rgba(0, 245, 160, 0.2);
  border-color: #00f5a0;
}

.cookie-switch input:checked + .cookie-switch-slider::before {
  transform: translateX(20px);
  background-color: #00f5a0;
  box-shadow: 0 0 8px rgba(0, 245, 160, 0.6);
}

.cookie-switch input:disabled + .cookie-switch-slider {
  opacity: 0.6;
  cursor: not-allowed;
}

