/* ============================================================
   Zytheralabs — Global Styles
   ============================================================ */

/* Google Fonts loaded via <link> in HTML — NOT here — avoids render-blocking @import */


/* ---- Design Tokens ---- */
:root {
  --background: #0a0e1a;
  --surface: #111827;
  --surface-light: #1a2235;
  --border: #1e293b;
  --border-glow: #06b6d4;
  --primary: #06b6d4;
  --primary-light: #22d3ee;
  --primary-dark: #0891b2;
  --accent: #10b981;
  --accent-light: #34d399;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #10b981;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

[data-theme="light"] {
  --background: #ffffff;
  --surface: #f8fafc;
  --surface-light: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Transition only applied during theme toggle via JS, not on every paint */
  transition: none;
}

main {
  flex: 1;
  padding-top: 80px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}

/* ---- Typography ---- */
.font-heading {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
}

/* ---- Container ---- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* ---- Gradient Text ---- */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4, #10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Glow Effects ---- */
.glow-cyan {
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3), 0 0 60px rgba(6, 182, 212, 0.1);
}

.glow-cyan-sm {
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), 0 0 30px rgba(6, 182, 212, 0.05);
}

.glow-green {
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.3), 0 0 60px rgba(16, 185, 129, 0.1);
}

.text-glow-cyan {
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

[data-theme="light"] .glow-cyan {
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.15), 0 8px 40px rgba(6, 182, 212, 0.05);
}

[data-theme="light"] .text-glow-cyan {
  text-shadow: none;
}

/* ---- Glass Effect ---- */
.glass {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(30, 41, 59, 0.5);
}

[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* ---- Grid Pattern ---- */
.grid-pattern {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  position: absolute;
  inset: 0;
}

[data-theme="light"] .grid-pattern {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
}

/* ---- Noise Overlay ---- */
.noise-overlay {
  position: relative;
}

.noise-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ---- Animated Gradient ---- */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.animated-gradient {
  background: linear-gradient(-45deg, #0a0e1a, #111827, #0c4a6e, #064e3b);
  background-size: 400% 400%;
  animation: gradient-shift 15s ease infinite;
}

[data-theme="light"] .animated-gradient {
  background: linear-gradient(-45deg, #ffffff, #f0f9ff, #e0f2fe, #f0fdf4);
  background-size: 400% 400%;
}

/* ---- Float Animation ---- */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ---- Pulse Glow ---- */
@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  }

  50% {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.4), 0 0 80px rgba(6, 182, 212, 0.1);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ---- Spin ---- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 0.8s linear infinite;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
}

.navbar.scrolled {
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s;
}

.logo:hover {
  opacity: 0.85;
}

.logo-icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-text span {
  color: var(--text);
}

.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

.footer-logo-img {
  height: 48px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  padding: 0.5rem;
  border-radius: 0.75rem;
  color: var(--text-muted);
  transition: all 0.2s;
  position: relative;
}

.icon-btn:hover {
  background: var(--surface-light);
  color: var(--primary);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: var(--background);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  border-radius: 0.75rem;
  transition: all 0.2s;
}

.mobile-menu a:hover {
  background: var(--surface-light);
  color: var(--primary);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu.open {
    display: flex;
  }
}

/* ---- Cart Sidebar ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 70;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.cart-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}

.cart-item {
  display: flex;
  gap: 1rem;
  position: relative;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--surface-light);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.cart-item:hover .cart-item-img img {
  transform: scale(1.05);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.25rem 0.5rem;
  width: fit-content;
}

.qty-btn {
  padding: 2px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.qty-btn:hover {
  color: var(--primary);
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qty-num {
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.cart-item-price {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
}

.remove-btn {
  position: absolute;
  top: -2px;
  right: -2px;
  padding: 0.25rem;
  border-radius: 0.5rem;
  color: var(--text-muted);
  opacity: 0;
  transition: all 0.2s;
}

.cart-item:hover .remove-btn {
  opacity: 1;
}

.remove-btn:hover {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.1);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(26, 34, 53, 0.3);
}

.cart-subtotals {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.cart-row .label {
  color: var(--text-muted);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 1.125rem;
  font-weight: 700;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
}

.cart-total-row .total-price {
  color: var(--primary);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: scale(1.02);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: rgba(6, 182, 212, 0.5);
  background: var(--surface);
}

.btn-ghost {
  background: var(--surface-light);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--border);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  border-radius: 0.625rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  border-radius: 0.875rem;
}

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

/* ---- Product Card ---- */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all 0.5s;
  display: block;
  color: inherit;
}

.product-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), 0 0 30px rgba(6, 182, 212, 0.05);
}

.product-card-img {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--background);
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}

.product-card:hover .product-card-img img {
  transform: scale(1.1);
}

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--surface), transparent, transparent);
  opacity: 0.6;
}

/* ---- Hero Carousel ---- */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 4rem;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  /* Square aspect ratio */
  margin: 0 auto;
  border-radius: 2rem;
  overflow: hidden;
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 2;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3));
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(4px);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
  opacity: 0;
}

.hero-carousel-wrapper:hover .carousel-btn {
  opacity: 1;
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: 1rem;
}

.carousel-btn.next {
  right: 1rem;
}

.product-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.quick-add-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(17, 24, 39, 0.8);
  color: var(--text-muted);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  opacity: 0;
  transform: translateY(8px);
}

.product-card:hover .quick-add-btn {
  opacity: 1;
  transform: translateY(0);
}

.quick-add-btn:hover {
  background: var(--primary);
  color: var(--background);
}

.quick-add-btn.added {
  background: var(--accent);
  color: var(--background);
  transform: scale(1.1) translateY(0);
}

.out-of-stock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 14, 26, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.out-of-stock-label {
  color: var(--danger);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.product-card:hover .product-card-name {
  color: var(--primary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.star-icon {
  color: var(--warning);
  fill: var(--warning);
  width: 14px;
  height: 14px;
}

.rating-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
}

.stock-badge {
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 0.375rem;
}

.stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.stock-badge.out-of {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ---- Product Grid ---- */
.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1280px) {
  .products-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---- Page Header ---- */
.page-header {
  position: relative;
  padding: 4rem 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* ---- Category Chips ---- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-chip {
  padding: 0.5rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: pointer;
}

.cat-chip:hover {
  border-color: rgba(6, 182, 212, 0.3);
  color: var(--primary);
}

.cat-chip.active {
  background: var(--primary);
  color: var(--background);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* ---- Form Inputs ---- */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
}

.form-input,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--text);
  transition: border-color 0.2s;
  outline: none;
  font-family: inherit;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-select {
  cursor: pointer;
}

.search-wrapper {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.search-wrapper .form-input {
  padding-left: 2.75rem;
}

/* ---- Cart / Checkout Tables ---- */
.cart-table {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-table-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.2s;
}

.cart-table-item:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.cart-table-img {
  width: 96px;
  height: 96px;
  border-radius: 0.75rem;
  overflow: hidden;
  background: var(--background);
  flex-shrink: 0;
}

.cart-table-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-table-info {
  flex: 1;
  min-width: 0;
}

.cart-table-name {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
}

.cart-table-name:hover {
  color: var(--primary);
}

.cart-table-cat {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 2px;
}

.cart-table-actions {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 1rem;
}

.qty-control-group {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 0.625rem;
  overflow: hidden;
}

.qty-control-btn {
  padding: 0.5rem;
  background: none;
  transition: background 0.2s;
}

.qty-control-btn:hover {
  background: var(--surface-light);
}

.qty-display {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 2.5rem;
  text-align: center;
}

.cart-line-total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--primary);
}

.delete-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  color: var(--text-dim);
  transition: all 0.2s;
}

.delete-btn:hover {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

/* ---- Order Summary Box ---- */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: sticky;
  top: 7rem;
}

.order-summary h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.summary-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.summary-row .lbl {
  color: var(--text-muted);
}

.summary-divider {
  border: none;
  border-top: 1px solid var(--border);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  padding-top: 0.75rem;
}

.summary-total .total-amt {
  color: var(--primary);
}

/* ---- Section: Trust Badges ---- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: border-color 0.3s;
}

.trust-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
}

.trust-icon {
  flex-shrink: 0;
  padding: 0.75rem;
  background: rgba(6, 182, 212, 0.05);
  border-radius: 0.75rem;
  color: var(--primary);
  transition: background 0.3s;
}

.trust-card:hover .trust-icon {
  background: rgba(6, 182, 212, 0.1);
}

.trust-icon svg {
  width: 32px;
  height: 32px;
  display: block;
}

.trust-title {
  font-family: var(--font-heading);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.trust-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---- Category Grid ---- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  -webkit-text-fill-color: initial;
  color: inherit;
}

.cat-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2), 0 0 30px rgba(6, 182, 212, 0.05);
}

.cat-icon {
  padding: 0.75rem;
  background: rgba(6, 182, 212, 0.05);
  color: var(--primary);
  border-radius: 0.75rem;
  transition: all 0.3s;
}

.cat-card:hover .cat-icon {
  background: rgba(6, 182, 212, 0.1);
  transform: scale(1.1);
}

.cat-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}

.cat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
  transition: color 0.3s;
}

.cat-card:hover .cat-label {
  color: var(--primary);
}

/* ---- Footer ---- */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 20rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-contact-row svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer-col-title {
  font-size: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-newsletter-wrap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .footer-newsletter-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.newsletter-form {
  display: flex;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.625rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--primary);
}

.newsletter-input::placeholder {
  color: var(--text-dim);
}

.newsletter-btn {
  padding: 0.625rem 1.25rem;
  background: var(--primary);
  color: var(--background);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 0 0.5rem 0.5rem 0;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.newsletter-btn:hover {
  background: var(--primary-light);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a {
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--primary);
}

/* ---- Research Articles ---- */
.article-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s;
}

.article-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.05);
}

.article-icon-wrap {
  padding: 0.75rem;
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
  border-radius: 0.75rem;
  display: inline-flex;
  transition: transform 0.3s;
}

.article-card:hover .article-icon-wrap {
  transform: scale(1.1);
}

.article-icon-wrap svg {
  width: 24px;
  height: 24px;
  display: block;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.article-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.article-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.article-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color 0.3s;
}

.article-card:hover .article-title {
  color: var(--primary);
}

.article-excerpt {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  transition: color 0.2s;
  cursor: pointer;
}

.read-more:hover {
  color: var(--primary-light);
}

/* ---- Profile ---- */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .profile-grid {
    grid-template-columns: 260px 1fr;
  }
}

.profile-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  align-self: flex-start;
  position: sticky;
  top: 7rem;
}

.profile-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.2s;
  width: 100%;
}

.profile-nav-btn:hover {
  background: var(--surface-light);
  color: var(--text);
}

.profile-nav-btn.active {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
}

.profile-nav-btn svg {
  width: 20px;
  height: 20px;
}

.profile-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.profile-nav-btn.danger {
  color: var(--danger);
}

.profile-nav-btn.danger:hover {
  background: rgba(239, 68, 68, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

.welcome-banner {
  background: linear-gradient(to right, var(--surface), var(--surface-light));
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.welcome-glow {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 33%;
  background: linear-gradient(to left, rgba(6, 182, 212, 0.05), transparent);
}

/* ---- Orders Table ---- */
.orders-table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.orders-table-head {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.orders-table-head h3 {
  font-family: var(--font-heading);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--surface-light);
  border-bottom: 1px solid var(--border);
}

th {
  padding: 1rem 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: left;
}

tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background: rgba(26, 34, 53, 0.5);
}

td {
  padding: 1rem 1.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-badge.delivered {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent);
}

.status-badge.processing {
  background: rgba(6, 182, 212, 0.1);
  color: var(--primary);
}

/* ---- Product Detail ---- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .product-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-detail-img {
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 1;
}

.product-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dosage-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
}

.dosage-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.dosage-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---- Checkout Sections ---- */
.checkout-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.checkout-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.checkout-section-title svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.col-span-2 {
  grid-column: span 2;
}

@media (max-width: 540px) {

  .grid-2 .col-span-2,
  .grid-2>* {
    grid-column: span 1;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---- Order Success ---- */
.order-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 2px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

/* ---- Empty States ---- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  gap: 1rem;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon svg {
  width: 32px;
  height: 32px;
  color: var(--text-dim);
}

/* ---- Utilities ---- */
.section-py {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.relative {
  position: relative;
}

.z-10 {
  position: relative;
  z-index: 10;
}

.text-primary {
  color: var(--primary);
}

.text-accent {
  color: var(--accent);
}

.text-danger {
  color: var(--danger);
}

.text-muted {
  color: var(--text-muted);
}

.text-dim {
  color: var(--text-dim);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-3 {
  margin-bottom: 0.75rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-10 {
  margin-bottom: 2.5rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.pt-4 {
  padding-top: 1rem;
}

.display-count {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.spin-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.two-col-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col-layout {
    grid-template-columns: 2fr 1fr;
  }
}

.two-col-layout-checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .two-col-layout-checkout {
    grid-template-columns: 3fr 2fr;
  }
}

.no-results {
  text-align: center;
  padding: 5rem 0;
}

.free-ship-note {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.checkout-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 16rem;
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.5rem;
}

.checkout-mini-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkout-mini-img {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: var(--background);
  flex-shrink: 0;
}

.checkout-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.checkout-mini-qty {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: var(--primary);
  color: var(--background);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checkout-mini-name {
  font-size: 0.875rem;
  font-weight: 500;
}

.checkout-mini-unit {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.checkout-mini-price {
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: auto;
  flex-shrink: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--primary);
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.secure-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

.secure-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.agree-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 1rem;
}

.toaster {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease-out;
}

.toast.success {
  border-left-color: var(--accent);
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ============================================================
   PERFORMANCE — Skeleton Loaders
   ============================================================ */

@keyframes skeleton-shimmer {
  0% {
    background-position: -400px 0;
  }

  100% {
    background-position: 400px 0;
  }
}

.skeleton {
  background: linear-gradient(90deg,
      var(--surface) 25%,
      var(--surface-light) 50%,
      var(--surface) 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 0.5rem;
}

.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
}

.skeleton-img {
  width: 100%;
  height: 220px;
  border-radius: 0;
  margin-bottom: 0.25rem;
}

.skeleton-badge {
  height: 1.25rem;
  width: 5rem;
  margin: 0 1.25rem;
}

.skeleton-title {
  height: 1.5rem;
  width: 70%;
  margin: 0 1.25rem;
}

.skeleton-text {
  height: 0.875rem;
  width: 90%;
  margin: 0 1.25rem;
}

.skeleton-text.short {
  width: 60%;
}

.skeleton-btn {
  height: 2.5rem;
  width: calc(100% - 2.5rem);
  margin: 0.5rem 1.25rem 0;
  border-radius: 0.5rem;
}

/* ============================================================
   PERFORMANCE — Scroll-Reveal Animations
   ============================================================ */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children using CSS custom property */
.reveal-on-scroll:nth-child(2) {
  transition-delay: 0.05s;
}

.reveal-on-scroll:nth-child(3) {
  transition-delay: 0.10s;
}

.reveal-on-scroll:nth-child(4) {
  transition-delay: 0.15s;
}

.reveal-on-scroll:nth-child(5) {
  transition-delay: 0.20s;
}

.reveal-on-scroll:nth-child(6) {
  transition-delay: 0.25s;
}

/* ============================================================
   PERFORMANCE — Lazy Image Fade-In
   ============================================================ */

img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease;
}

img.img-loaded {
  opacity: 1;
}

/* ============================================================
   PERFORMANCE — content-visibility for off-screen sections
   ============================================================ */

.features-section,
.featured-section,
.testimonials-section,
.footer-section {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* ============================================================
   Page Loader Component
   ============================================================ */

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--background);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  width: 150px;
  height: auto;
  animation: pulse-loader 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.loader-spinner {
  width: 40px;
  height: 40px;
  color: var(--primary);
  animation: spin 1s linear infinite;
}

@keyframes pulse-loader {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(0.95);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}