/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* CSS Custom Properties / Design System */
:root {
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Colors - Premium Dark Slate Palette (Default Theme) */
  --bg-primary: #090d16;
  --bg-secondary: #101726;
  --bg-tertiary: #172237;
  --bg-glass: rgba(16, 23, 38, 0.7);
  --border-color: #1e2d46;
  --border-light: rgba(255, 255, 255, 0.05);

  /* Brand Accents - High-end Neon Coral & Orange */
  --accent: #ff5f38;
  --accent-color: #ff5f38;
  --accent-light: #ff7d5c;
  --accent-gradient: linear-gradient(135deg, #ff5f38 0%, #ff8e53 100%);
  --accent-glow: rgba(255, 95, 56, 0.3);

  /* System status */
  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);
  --color-warning: #f59e0b;
  --color-danger: #ef4444;

  /* Text */
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dark: #6b7280;

  /* Dimensions & Spacing */
  --header-height: 80px;
  --container-width: 1400px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Shadows & Transitions */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Overrides */
:root.light-theme,
html.light-theme,
body.light-theme {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --border-color: #e2e8f0;
  --border-light: rgba(0, 0, 0, 0.05);

  --accent-glow: rgba(255, 95, 56, 0.15);

  --color-success-bg: rgba(16, 185, 129, 0.08);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #94a3b8;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(148, 163, 184, 0.15);
  --shadow-lg: 0 16px 40px rgba(148, 163, 184, 0.2);
}

body.light-theme .hero-carousel-container {
  background-color: var(--bg-primary);
}

/* Theme Toggle Button Styling */
.theme-toggle-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.theme-toggle-btn svg {
  transition: transform 0.5s ease;
}

.theme-toggle-btn:hover svg {
  transform: rotate(30deg);
}

body.light-theme .theme-toggle-btn .sun-icon {
  display: block;
}

body.light-theme .theme-toggle-btn .moon-icon {
  display: none;
}

body:not(.light-theme) .theme-toggle-btn .sun-icon {
  display: none;
}

body:not(.light-theme) .theme-toggle-btn .moon-icon {
  display: block;
}


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

html {
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

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

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

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border: 2px solid var(--bg-primary);
  border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* Layout Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.main-content {
  flex-grow: 1;
  padding-top: var(--header-height);
}

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Global Navbar / Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  text-decoration: none;
}

.logo span {
  color: var(--accent-color);
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: var(--shadow-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.search-trigger {
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

.search-trigger:hover {
  color: var(--text-main);
}

/* Styled Cart Icon Button */
.cart-btn {
  position: relative;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-gradient);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* Styled Wishlist Header Quick Access Button */
.wishlist-header-btn {
  position: relative;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.wishlist-header-btn:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.35);
  transform: translateY(-2px);
}

.wishlist-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* User Actions */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 95, 56, 0.2);
}

.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(255, 95, 56, 0.4), var(--shadow-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background-color: var(--border-color);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-color);
  background-color: rgba(255, 95, 56, 0.05);
}

.btn-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.btn-link:hover {
  color: var(--accent-color);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-block {
  width: 100%;
}

/* Footer styles */
.site-footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 0 2rem;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-link:hover {
  color: var(--accent-color);
  padding-left: 4px;
}

.footer-newsletter p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.newsletter-input {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.newsletter-input:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(255, 95, 31, 0.15);
}

.newsletter-submit-btn,
.newsletter-form .btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  box-sizing: border-box;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-link svg {
  transition: transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  color: white;
}

.social-link:hover svg {
  transform: scale(1.1);
}

.social-link.social-yt:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #ef4444;
}

.social-link.social-ig:hover {
  background: rgba(225, 48, 108, 0.15);
  border-color: #e1306c;
  color: #e1306c;
}

.social-link.social-li:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: #0a66c2;
  color: #0a66c2;
}

.social-link.social-fb:hover {
  background: rgba(24, 119, 242, 0.15);
  border-color: #1877f2;
  color: #1877f2;
}

.social-link.social-tw:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

/* Responsive navigation toggle */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--text-main);
  cursor: pointer;
}

/* Toast System */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 20000;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  pointer-events: none;
}

.toast {
  background-color: var(--bg-secondary);
  border-left: 4px solid var(--accent-color);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 300px;
  max-width: 450px;
  transform: translateX(120%);
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  pointer-events: auto;
}

.toast.toast-success {
  border-left-color: var(--color-success);
}

.toast.toast-danger {
  border-left-color: var(--color-danger);
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

.toast.fade-out {
  animation: slideOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideOut {
  to {
    transform: translateX(120%);
    opacity: 0;
  }
}

/* Product Card Grid & Card Components */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.home-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 992px) {
  .home-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .home-section-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-md);
}

.product-card-image {
  position: relative;
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  background-color: #10b981;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Category Specific Solid Badge Colors */
.badge-course,
.badge-courses,
.badge-cat2 {
  background-color: var(--accent-color) !important;
  color: #ffffff !important;
}

.badge-toolkit,
.badge-tool,
.badge-tools,
.badge-cat1 {
  background-color: #3b82f6 !important;
  color: #ffffff !important;
}

.badge-asset,
.badge-assets,
.badge-cat3 {
  background-color: #10b981 !important;
  color: #ffffff !important;
}

.badge-bundle,
.badge-bundles,
.badge-cat4 {
  background-color: #f59e0b !important;
  color: #ffffff !important;
}

.badge-service,
.badge-services {
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
}

.product-card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-creator {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.product-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

.rating-stars {
  color: var(--color-warning);
}

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

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.product-card-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

.quick-add-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
}

.quick-add-btn:hover {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.quick-wishlist-btn {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.quick-wishlist-btn:hover {
  border-color: #f43f5e;
  color: #f43f5e;
  background: rgba(244, 63, 94, 0.08);
  transform: translateY(-1px);
}

.quick-wishlist-btn.active {
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.45);
  color: #f43f5e;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.25);
}

.quick-wishlist-btn.active:hover {
  background: rgba(244, 63, 94, 0.22);
  border-color: #f43f5e;
}

/* Home Storefront Styles */
/* Full Width Hero Carousel Slider */
.hero-carousel-container {
  position: relative;
  width: 100%;
  height: 580px;
  overflow: hidden;
  background-color: #05080f;
}

.carousel-track {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}

.carousel-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(5, 8, 15, 0.95) 0%, rgba(5, 8, 15, 0.7) 45%, rgba(5, 8, 15, 0.1) 100%);
  z-index: 1;
}

body.light-theme .carousel-slide-overlay {
  background: linear-gradient(90deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0.7) 45%, rgba(248, 250, 252, 0.1) 100%);
}

.carousel-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding-left: 8%;
  padding-right: 2rem;
}

.carousel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-color);
  color: var(--accent-light);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  font-family: var(--font-heading);
}

.carousel-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  font-family: var(--font-heading);
}

.carousel-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
  line-height: 1.5;
}

.carousel-btn {
  background-color: var(--text-main);
  color: var(--bg-primary);
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.carousel-btn:hover {
  transform: scale(1.04);
  box-shadow: var(--shadow-md);
  background-color: var(--accent-color);
  color: #ffffff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(16, 23, 38, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  z-index: 15;
  font-size: 1.2rem;
  user-select: none;
}

.carousel-arrow:hover {
  background-color: var(--accent-color);
  border-color: transparent;
  box-shadow: var(--shadow-glow);
}

.carousel-arrow-prev {
  left: 2.5rem;
}

.carousel-arrow-next {
  right: 2.5rem;
}

.carousel-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.75rem;
  z-index: 15;
  list-style: none;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

body.light-theme .carousel-dot {
  background-color: rgba(0, 0, 0, 0.2);
}

.carousel-dot.active {
  background-color: var(--accent-color);
  width: 24px;
  border-radius: 4px;
  box-shadow: var(--shadow-glow);
}

.carousel-slide-credit {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
  z-index: 15;
}

body.light-theme .carousel-slide-credit {
  color: rgba(0, 0, 0, 0.4);
}

/* Industry Partners Logos Infinite Scrolling Ticker */
.industry-marquee-section {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  overflow: hidden;
  position: relative;
}

.industry-marquee-title-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.industry-marquee-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.industry-marquee-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.industry-marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  position: relative;
  width: 100%;
  height: 40px;
  align-items: center;
}

.industry-marquee-container::before,
.industry-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 180px;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

.industry-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
}

.industry-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-secondary) 0%, transparent 100%);
}

.industry-marquee-track {
  display: flex;
  gap: 5rem;
  width: max-content;
  animation: infiniteMarquee 35s linear infinite;
  align-items: center;
}

@keyframes infiniteMarquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-50% - 2.5rem));
  }
}

.industry-logo {
  height: 24px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  opacity: 0.45;
  transition: var(--transition);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.industry-logo svg {
  height: 100%;
  fill: currentColor;
}

.industry-logo:hover {
  color: var(--text-main);
  opacity: 0.95;
  transform: scale(1.05);
}

/* Custom layout adjustment for hero search */
.hero-search {
  max-width: 650px;
  position: relative;
}


.search-input-wrapper {
  position: relative;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-color);
  box-shadow: var(--shadow-glow), var(--shadow-lg);
}

.search-input-wrapper svg {
  margin-left: 1rem;
  color: var(--text-muted);
}

.search-input-wrapper input {
  padding: 0.75rem 1rem;
  width: 100%;
  font-size: 1.05rem;
}

/* Home Page Landing Page Elements */
.storefront-hero {
  padding: 6.5rem 0 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.trust-badges-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1.75rem 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: 1.5rem auto 4.5rem;
  position: relative;
  z-index: 1;
  gap: 2rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.trust-badge-item svg {
  color: var(--accent-color);
  flex-shrink: 0;
}

.trust-badge-text h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
  color: var(--text-main);
}

.trust-badge-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: normal;
}

.home-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ── Spotlight Banner Cards (Flagship & Curated Bundle) ──────────────────── */
.spotlight-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 0;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  align-items: stretch;
}

.spotlight-card.bundle-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
}

.spotlight-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
}

.spotlight-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bundle-card .spotlight-img-wrap {
  aspect-ratio: 1 / 1;
}

.spotlight-content {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bundle-content {
  padding: 3.25rem 3.5rem;
}

.spotlight-badge {
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-color);
  color: var(--accent-light);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.bundle-campaign-pill {
  background: linear-gradient(90deg, #6c63ff, #8b5cf6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.bundle-discount-badge {
  background: rgba(0, 0, 0, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
}

.spotlight-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  color: var(--text-main);
  word-break: break-word;
}

.spotlight-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.bundle-includes-list {
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.spotlight-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.bundle-price-row {
  align-items: baseline;
  gap: 1rem;
  justify-content: flex-start;
}

.spotlight-price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
}

.bundle-price {
  font-size: 2.5rem;
}

.bundle-original-val {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1.2rem;
}

.bundle-savings {
  color: #10b981;
  font-weight: 800;
  font-size: 0.9rem;
}

.spotlight-reviews {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.spotlight-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.spotlight-actions .btn {
  padding: 0.85rem 1.75rem;
}

.home-section {
  margin-bottom: 6rem;
}

.seo-knowledge-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem 3.5rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
}

.home-hero-h1 {
  font-size: 3.8rem;
  line-height: 1.15;
  max-width: 950px;
  margin: 0 auto 1.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
}

.home-hero-p {
  font-size: 1.25rem;
  max-width: 750px;
  margin: 0 auto 3.5rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 5rem;
}

.category-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.category-card:hover {
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.category-card svg {
  color: var(--text-muted);
  transition: var(--transition);
}

.category-card:hover svg {
  color: var(--accent-color);
  transform: scale(1.1);
}

.category-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
}

.newsletter-section {
  margin-bottom: 5rem;
}

.promo-cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 2.5rem;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
}

.promo-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: var(--accent-gradient);
  opacity: 0.08;
  filter: blur(50px);
  pointer-events: none;
}

.promo-cta-content {
  max-width: 650px;
  width: 100%;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.promo-cta-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  color: var(--text-main);
}

.promo-cta-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 0;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
}

.promo-cta-btn {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

/* ── Responsive Mobile Rules for Promo CTA Banner & Newsletter Form ── */
@media (max-width: 992px) {
  .promo-cta-banner {
    padding: 2.75rem 2rem;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .newsletter-section {
    margin-bottom: 3.5rem;
  }

  .promo-cta-banner {
    padding: 2.25rem 1.65rem;
    gap: 1.5rem;
    flex-direction: column;
    align-items: stretch;
  }

  .promo-cta-content h2 {
    font-size: 1.65rem;
  }

  .promo-cta-content p {
    font-size: 0.95rem;
  }
}

@media (max-width: 580px) {
  .promo-cta-banner {
    padding: 1.6rem 1.15rem !important;
    border-radius: 14px !important;
    gap: 1rem !important;
  }

  .promo-cta-content h2 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
    margin-bottom: 0.45rem !important;
  }

  .promo-cta-content p {
    font-size: 0.88rem !important;
    line-height: 1.5 !important;
  }

  .newsletter-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 1.15rem !important;
  }

  .newsletter-form .newsletter-input,
  .newsletter-input {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0.85rem 1rem !important;
    font-size: 0.92rem !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
  }

  .newsletter-form .newsletter-submit-btn,
  .newsletter-form .btn {
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0.85rem 1.25rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    font-size: 0.95rem !important;
  }
}

@media (max-width: 380px) {
  .promo-cta-banner {
    padding: 1.35rem 0.95rem !important;
  }

  .promo-cta-content h2 {
    font-size: 1.22rem !important;
  }

  .promo-cta-content p {
    font-size: 0.84rem !important;
  }
}

.seo-rich-block {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  margin-bottom: 5rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  box-shadow: var(--shadow-sm);
}

.seo-rich-block h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.seo-rich-block p {
  margin-bottom: 1.25rem;
}

.seo-rich-block p:last-child {
  margin-bottom: 0;
}

/* Store catalog grid structure */
.storefront-layout {

  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

/* Filters Sidebar */
.filters-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.filter-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

/* Custom checkbox stylings */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  user-select: none;
  transition: var(--transition);
}

.checkbox-label:hover {
  color: var(--text-main);
}

.checkbox-label input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  width: 18px;
  height: 18px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}

.checkbox-label input:checked~.custom-checkbox {
  background: var(--accent-gradient);
  border-color: transparent;
}

.custom-checkbox::after {
  content: "";
  display: none;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-label input:checked~.custom-checkbox::after {
  display: block;
}

/* Range input pricing */
.price-range-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.price-range-inputs input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.85rem;
  width: 100%;
  text-align: center;
}

.price-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--bg-tertiary);
  outline: none;
  margin-bottom: 0.5rem;
}

.price-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-color);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
}

.price-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Catalog View Header */
.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

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

.catalog-sorting {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.catalog-sorting label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.sort-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.5rem 0.5rem 0.75rem;
  color: var(--text-main);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
}

/* Product Detail Page Styles */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main-gallery-view {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}

.main-gallery-view img,
.main-gallery-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.gallery-thumb {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
  opacity: 1;
  border-color: var(--accent-color);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tabs System for description / curriculum / reviews */
.product-tabs-wrapper {
  margin-top: 3rem;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
  list-style: none;
}

.tab-btn {
  padding: 1rem 2rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
}

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

.tab-btn.active {
  color: var(--text-main);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-color);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h3 {
  font-size: 1.4rem;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.tab-panel p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.tab-panel ul {
  list-style-type: none;
  margin-bottom: 1.5rem;
}

.tab-panel li {
  color: var(--text-muted);
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.tab-panel li::before {
  content: '→';
  color: var(--accent-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* Review elements inside tabs */
.review-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.5rem 0;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.review-user {
  font-weight: 600;
}

.review-comment {
  color: var(--text-muted);
}

/* Checkout / Detail Sidebar */
.purchase-sidebar {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.purchase-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.license-toggle-wrapper {
  margin-bottom: 2rem;
}

.license-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-top: 0.75rem;
}

.license-option {
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.license-option.active {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  box-shadow: var(--shadow-sm);
}

.purchase-price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.purchase-price-display .price-amount {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
}

.purchase-meta-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.purchase-meta-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.purchase-meta-item span:first-child {
  font-weight: 500;
}

.purchase-meta-item span:last-child {
  color: var(--text-main);
  font-weight: 600;
}

/* Shopping Cart CSS */
.cart-layout {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.cart-items-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-light);
  box-sizing: border-box;
  width: 100%;
}

.cart-item-actions-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}

.cart-item:first-child {
  padding-top: 0;
}

.cart-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cart-item-img {
  width: 100px;
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
}

.remove-cart-item {
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.remove-cart-item:hover {
  color: var(--color-danger);
}

/* Cart Summary Card & Promo Section */
.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.summary-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.promo-form {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1.5rem;
}

.promo-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  flex-grow: 1;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.summary-row.total-row {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  color: var(--text-main);
  font-size: 1.3rem;
  font-weight: 700;
}

/* Payment tabs block */
.payment-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 0.25rem;
  margin-bottom: 1.5rem;
}

.payment-tab {
  text-align: center;
  padding: 0.75rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
}

.payment-tab.active {
  background-color: var(--bg-secondary);
  color: var(--accent-color);
}

.payment-form-panel {
  display: none;
}

.payment-form-panel.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-input {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  color: var(--text-main);
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Customer Library Area */
.library-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  margin-top: 3rem;
  margin-bottom: 5rem;
}

.library-sidebar {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  height: fit-content;
}

.library-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0.5rem;
}

.library-nav-item:last-child {
  margin-bottom: 0;
}

.library-nav-item:hover,
.library-nav-item.active {
  color: var(--text-main);
  background-color: var(--bg-tertiary);
}

.library-nav-item.active {
  border-left: 3px solid var(--accent-color);
  padding-left: calc(1.25rem - 3px);
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* Library product card modification */
.library-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.library-card-img {
  aspect-ratio: 16/10;
  background-color: var(--bg-tertiary);
  overflow: hidden;
}

.library-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.library-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.library-card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.library-card-btn {
  margin-top: auto;
}

/* Course Player interface */
.player-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 600px;
}

.video-screen {
  background-color: #000;
  display: flex;
  flex-direction: column;
  position: relative;
}

.video-screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.video-screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}

.video-screen-placeholder svg {
  color: var(--accent-color);
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.video-screen-info {
  background-color: rgba(9, 13, 22, 0.95);
  padding: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.playlist-sidebar {
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.playlist-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}

.playlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.playlist-item:hover {
  background-color: var(--bg-tertiary);
}

.playlist-item.active {
  background-color: rgba(255, 95, 56, 0.08);
  color: var(--accent-color);
  border-left: 3px solid var(--accent-color);
  padding-left: calc(1.5rem - 3px);
}

.playlist-item-duration {
  color: var(--text-dark);
}

/* Service Request upload layout */
.service-submission-box {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-top: 2rem;
}

.service-status-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--color-warning);
}

.status-completed {
  background-color: var(--color-success-bg);
  color: var(--color-success);
}

.brief-submission-area {
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

/* Admin Dashboard CSS styling */
.admin-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.metric-title {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.metric-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.metric-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-up {
  color: var(--color-success);
}

.trend-down {
  color: var(--color-danger);
}

.admin-layout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2.5rem;
  margin-bottom: 5rem;
}

.admin-block {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.admin-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.admin-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.admin-table tr:last-child td {
  border-bottom: none;
}

/* Modal form style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.custom-modal-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  width: 100%;
  max-width: 650px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  margin: auto;
}

.wishlist-btn-corner {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 12;
  background: rgba(16, 23, 38, 0.85);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.wishlist-btn-corner:hover {
  transform: scale(1.15);
  border-color: #f43f5e;
  color: #f43f5e;
}

.wishlist-btn-corner.active {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.5);
  color: #f43f5e;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.3);
}

.modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 2rem;
}

.modal-close-btn {
  color: var(--text-muted);
  cursor: pointer;
}

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

/* Mock charts elements styling */
.chart-container {
  height: 250px;
  margin-top: 1rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 2px solid var(--border-color);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.chart-bar-wrapper {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  background: var(--accent-gradient);
  border-radius: 4px 4px 0 0;
  width: 100%;
  max-width: 40px;
  min-height: 4px;
  transition: height 0.5s ease;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.chart-bar:hover::after {
  content: attr(data-value);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border-color);
  white-space: nowrap;
}

.chart-label {
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cat-analytics-list-wrap {
  padding: 1.25rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.dashboard-inventory-table,
.dashboard-orders-table {
  width: 100%;
  border-collapse: collapse;
}

.inventory-table-title {
  font-weight: 600;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-actions {
    gap: 1.1rem;
  }

  .storefront-layout {
    grid-template-columns: 1fr;
  }

  .filters-sidebar {
    position: static;
    margin-bottom: 2rem;
    display: none;
    /* Can toggle active with JS */
  }

  .filters-sidebar.active {
    display: block;
  }

  .product-detail-layout,
  .cart-layout,
  .library-layout {
    grid-template-columns: 1fr;
  }

  .purchase-card {
    position: static;
  }

  .admin-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-layout-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .navbar {
    gap: 0.85rem;
  }

  .logo {
    font-size: 1.25rem;
    gap: 0.4rem;
    margin-right: auto;
  }

  .logo-dot {
    width: 7px;
    height: 7px;
  }

  .nav-actions {
    gap: 0.65rem;
  }

  .theme-toggle-btn,
  .cart-btn,
  .wishlist-header-btn {
    width: 38px;
    height: 38px;
  }

  .theme-toggle-btn svg,
  .cart-btn svg,
  .wishlist-header-btn svg {
    width: 18px;
    height: 18px;
  }

  .profile-avatar-btn {
    width: 38px;
    height: 38px;
  }

  .profile-avatar-img {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: var(--shadow-lg);
  }

  .nav-links.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .storefront-hero h1 {
    font-size: 2.5rem;
  }

  .admin-metrics-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
    align-items: center;
  }

  .footer-legal-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .player-container {
    grid-template-columns: 1fr;
    height: auto;
  }

  .playlist-sidebar {
    border-left: none;
    border-top: 1px solid var(--border-color);
    height: 300px;
  }

  .catalog-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .gallery-thumbs {
    gap: 0.5rem;
  }
}

/* ── Admin Panel Core Layout ────────────────────────────────────────────── */
:root {
  --admin-sidebar-w: 220px;
}

.admin-shell {
  display: flex;
  gap: 0;
  min-height: calc(100vh - var(--header-height, 80px));
  margin-top: var(--header-height, 80px);
}

.admin-sidebar-nav {
  width: var(--admin-sidebar-w);
  flex-shrink: 0;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 0;
  position: sticky;
  top: var(--header-height, 80px);
  height: calc(100vh - var(--header-height, 80px));
  overflow-y: auto;
}

.admin-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
  border: 1px solid transparent;
  background: none;
  width: calc(100% - 1.5rem);
  text-align: left;
  margin: 0.08rem 0.75rem;
}

.admin-sidebar-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-main);
}

.admin-sidebar-item.active {
  background: linear-gradient(90deg, rgba(255, 95, 56, 0.22) 0%, rgba(255, 95, 56, 0.08) 100%);
  color: #ffffff;
  font-weight: 700;
  border-color: rgba(255, 95, 56, 0.35);
  box-shadow: inset 3px 0 0 var(--accent), 0 2px 10px rgba(255, 95, 56, 0.12);
}

html.light-theme .admin-sidebar-item.active,
body.light-theme .admin-sidebar-item.active {
  background: linear-gradient(90deg, rgba(255, 95, 56, 0.16) 0%, rgba(255, 95, 56, 0.06) 100%);
  color: var(--accent-color);
  border-color: rgba(255, 95, 56, 0.32);
}

.admin-sidebar-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dark);
  text-transform: uppercase;
  padding: 0.75rem 1.25rem 0.25rem;
  display: block;
}

.admin-sidebar-label:first-of-type {
  padding-top: 0.25rem;
}

.admin-main {
  flex: 1;
  padding: 2rem 2.5rem;
  overflow-x: hidden;
}

/* ── Modal Dialog System ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: modalFadeIn 0.2s ease-out forwards;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  color: var(--text-main);
  animation: modalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.1rem;
  z-index: 10;
  transition: all 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--text-main);
  border-color: var(--accent-color);
  background: rgba(108, 99, 255, 0.15);
  transform: scale(1.05);
}

.admin-layout-grid-custom {
  grid-template-columns: 1.2fr 1.8fr;
}

/* ── Responsive Enhancements for Mobile & Tablets ── */
@media (max-width: 860px) {

  .spotlight-card,
  .spotlight-card.bundle-card {
    grid-template-columns: 1fr !important;
  }

  .spotlight-img-wrap,
  .bundle-card .spotlight-img-wrap {
    min-height: 250px !important;
    height: 280px !important;
    max-height: 320px !important;
    aspect-ratio: auto !important;
  }

  .spotlight-content,
  .bundle-content {
    padding: 1.75rem 1.25rem !important;
  }

  .spotlight-title {
    font-size: 1.6rem !important;
    margin-bottom: 0.75rem !important;
  }

  .spotlight-desc {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
  }

  .spotlight-price,
  .bundle-price {
    font-size: 1.8rem !important;
  }

  .spotlight-price-row {
    padding-top: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  .spotlight-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
    width: 100% !important;
  }

  .spotlight-actions .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  .admin-layout-grid-custom {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .home-section {
    margin-bottom: 3.5rem !important;
  }

  .storefront-hero {
    padding: 4.5rem 0 2rem !important;
  }

  .home-hero-h1 {
    font-size: 2.3rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  .home-hero-p {
    font-size: 1.05rem !important;
    margin-bottom: 2rem !important;
  }

  .seo-knowledge-card {
    padding: 1.75rem 1.25rem !important;
  }

  .trust-badges-row {
    margin: 1.5rem auto 3.5rem !important;
    gap: 1.5rem !important;
    padding: 1.5rem 1.25rem !important;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 62px;
  }

  .navbar {
    gap: 0.6rem;
  }

  .logo {
    font-size: 1.15rem;
    gap: 0.35rem;
  }

  .logo-dot {
    width: 6px;
    height: 6px;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .theme-toggle-btn,
  .cart-btn,
  .wishlist-header-btn {
    width: 36px;
    height: 36px;
  }

  .theme-toggle-btn svg,
  .cart-btn svg,
  .wishlist-header-btn svg {
    width: 17px;
    height: 17px;
  }

  .profile-avatar-btn {
    width: 36px;
    height: 36px;
  }

  .profile-avatar-img {
    width: 30px;
    height: 30px;
  }

  .container {
    padding: 0 1.25rem !important;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1rem !important;
  }

  .trust-badges-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.25rem !important;
  }

  .home-section-title {
    font-size: 1.4rem !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
    margin-bottom: 1.5rem !important;
  }
}

@media (max-width: 480px) {
  :root {
    --header-height: 60px;
  }

  .navbar {
    gap: 0.45rem;
  }

  .logo {
    font-size: 1.08rem;
    gap: 0.3rem;
  }

  .logo-dot {
    width: 5px;
    height: 5px;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .theme-toggle-btn,
  .cart-btn,
  .wishlist-header-btn {
    width: 34px;
    height: 34px;
  }

  .theme-toggle-btn svg,
  .cart-btn svg,
  .wishlist-header-btn svg {
    width: 16px;
    height: 16px;
  }

  .cart-count,
  .wishlist-count {
    min-width: 15px;
    height: 15px;
    font-size: 0.65rem;
    top: -2px;
    right: -2px;
    padding: 0 3px;
  }

  .profile-avatar-btn {
    width: 34px;
    height: 34px;
  }

  .profile-avatar-img {
    width: 28px;
    height: 28px;
  }

  .menu-toggle svg {
    width: 22px;
    height: 22px;
  }

  .nav-actions .btn-sm {
    padding: 0.25rem 0.5rem !important;
    font-size: 0.72rem !important;
    margin-right: 0 !important;
  }

  .container {
    padding: 0 1rem !important;
  }

  .storefront-hero {
    padding: 3.5rem 0 1.5rem !important;
  }

  .trust-badges-row {
    margin: 1rem auto 2.5rem !important;
    padding: 1.25rem 1rem !important;
  }

  .home-hero-h1 {
    font-size: 1.85rem !important;
  }

  .home-hero-p {
    font-size: 0.95rem !important;
  }

  .spotlight-img-wrap,
  .bundle-card .spotlight-img-wrap {
    min-height: 200px !important;
    height: 220px !important;
  }

  .spotlight-content,
  .bundle-content {
    padding: 1.25rem 1rem !important;
  }

  .spotlight-title {
    font-size: 1.35rem !important;
  }

  .spotlight-price,
  .bundle-price {
    font-size: 1.55rem !important;
  }

  .bundle-campaign-pill {
    font-size: 0.78rem !important;
    padding: 0.4rem 0.75rem !important;
  }

  .categories-grid {
    grid-template-columns: 1fr !important;
  }
}



@media (max-width: 375px) {
  .logo {
    font-size: 0.98rem;
    gap: 0.25rem;
  }

  .nav-actions {
    gap: 0.32rem;
  }

  .theme-toggle-btn,
  .cart-btn,
  .wishlist-header-btn,
  .profile-avatar-btn {
    width: 32px;
    height: 32px;
  }

  .theme-toggle-btn svg,
  .cart-btn svg,
  .wishlist-header-btn svg {
    width: 15px;
    height: 15px;
  }
}


/* ── Admin Dashboard Mobile & Tablet Responsiveness ──────────────────────── */
.admin-mobile-nav-bar {
  display: none;
}

.admin-sidebar-header-mobile {
  display: none;
}

.admin-sidebar-backdrop {
  display: none;
}

@media (max-width: 992px) {

  /* Admin Shell switches from side-by-side flex to block / column */
  .admin-shell {
    display: block !important;
    min-height: auto !important;
    margin-top: var(--header-height, 62px) !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  /* Sticky Mobile Admin Navigation Bar */
  .admin-mobile-nav-bar {
    display: block !important;
    position: sticky !important;
    top: var(--header-height, 62px) !important;
    z-index: 990 !important;
    background: var(--bg-glass, rgba(16, 23, 38, 0.95)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid var(--border-color) !important;
    padding: 0.65rem 1rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  }

  .admin-mobile-toggle-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    width: 100% !important;
    padding: 0.65rem 0.85rem !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    color: var(--text-main) !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
  }

  .admin-mobile-toggle-btn:active {
    transform: scale(0.99);
  }

  .admin-mobile-active-pill {
    max-width: 135px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    background: rgba(108, 99, 255, 0.18) !important;
    color: var(--accent-light) !important;
    border: 1px solid rgba(108, 99, 255, 0.3) !important;
    padding: 0.2rem 0.55rem !important;
    border-radius: 50px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    display: inline-block !important;
    vertical-align: middle !important;
    flex-shrink: 1 !important;
  }

  /* Admin Sidebar transformed into smooth sliding Off-Canvas Drawer */
  .admin-sidebar-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 290px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    background: var(--bg-secondary, #111827) !important;
    border-right: 1px solid var(--border-color) !important;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.75) !important;
    z-index: 100010 !important;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 0 0 2.5rem 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-sidebar-nav.mobile-open {
    transform: translateX(0) !important;
  }

  /* Drawer Header with Title and Close Button */
  .admin-sidebar-header-mobile {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.1rem 1.25rem !important;
    background: var(--bg-primary, #0d1117) !important;
    border-bottom: 1px solid var(--border-color) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    margin-bottom: 0.5rem !important;
  }

  .admin-sidebar-close-btn {
    background: var(--bg-tertiary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-muted) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }

  .admin-sidebar-close-btn:hover {
    color: #fff !important;
    border-color: var(--accent-color) !important;
    background: rgba(108, 99, 255, 0.2) !important;
  }

  /* Backdrop Overlay */
  .admin-sidebar-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(5px) !important;
    -webkit-backdrop-filter: blur(5px) !important;
    z-index: 100005 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.25s ease !important;
  }

  .admin-sidebar-backdrop.active {
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  body.admin-sidebar-locked {
    overflow: hidden !important;
  }

  /* Admin Main Area gets 100% width on Mobile */
  .admin-main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 1.25rem 1rem !important;
    overflow-x: hidden !important;
  }

  .admin-page-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.85rem !important;
    margin-bottom: 1.25rem !important;
  }

  .admin-page-title {
    font-size: 1.45rem !important;
    line-height: 1.25 !important;
  }

  .admin-page-subtitle {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
  }

  #action-header-btn-wrap {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  #action-header-btn-wrap .btn {
    flex: 1 1 calc(50% - 0.5rem) !important;
    text-align: center !important;
    justify-content: center !important;
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  /* Grid Layouts Stack Vertically */
  .admin-layout-grid-custom,
  .admin-layout-grid,
  .cat-layout,
  .services-layout,
  .form-row,
  .form-row-3,
  .license-grid,
  .review-grid,
  .cms-main-grid,
  .roles-main-grid,
  .settings-main-grid,
  .course-studio-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .tickets-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .products-metrics {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
  }

  .bulk-bar {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* Metric Cards Grid Responsive */
  .admin-metrics-grid-expanded {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
  }

  .metric-card-expanded {
    padding: 0.9rem !important;
  }

  .metric-card-value {
    font-size: 1.35rem !important;
  }

  .metric-card-title {
    font-size: 0.7rem !important;
  }

  /* Table Horizontal Scrolling Wrapper */
  .admin-block {
    padding: 1.1rem !important;
    overflow: hidden !important;
    border-radius: var(--radius-md) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .admin-table-container,
  .products-table-wrap,
  div[style*="overflow-x: auto"],
  div[style*="overflow-x:auto"],
  div[style*="overflow-x: scroll"],
  div[style*="overflow-x:scroll"] {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-sm);
    box-sizing: border-box !important;
  }

  .admin-table {
    min-width: 640px !important;
  }

  .admin-table th,
  .admin-table td,
  .products-table th,
  .products-table td {
    padding: 0.75rem 0.65rem !important;
    font-size: 0.84rem !important;
  }

  /* Customer Account / Library Mobile Layout Fix */
  .account-sidebar {
    position: static !important;
    top: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .account-layout {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }

  .account-content-area {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 480px) {
  .admin-metrics-grid-expanded {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .metric-card-expanded {
    padding: 0.75rem !important;
  }

  .metric-card-value {
    font-size: 1.2rem !important;
  }

  .admin-main {
    padding: 1rem 0.75rem !important;
  }

  .products-metrics {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  .pmetric-card {
    padding: 0.75rem 0.65rem !important;
  }

  .pmetric-value {
    font-size: 1.25rem !important;
  }
}

/* ══════════════════════════════════════════════════════════════════
   COMPREHENSIVE ADMIN RESPONSIVE & MOBILE COMPATIBILITY ENGINE
   ══════════════════════════════════════════════════════════════════ */

/* Universal Scroll Containers for all Admin Tables */
.admin-table-container,
.rev-table-scroll-wrap,
.dl-table-scroll-wrap,
#reviews-table-view-container,
#downloads-table-view-container,
#courses-table-view-container,
#orders-table-view-container,
#licenses-table-view-container,
#coupons-table-view-container,
#sale-campaigns-table-view-container,
.products-table-wrap,
div[class*="table-scroll-wrap"],
div[id*="table-view-container"],
div[style*="overflow-x: auto"],
div[style*="overflow-x:auto"],
div[style*="overflow-x: scroll"],
div[style*="overflow-x:scroll"] {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  box-sizing: border-box !important;
  margin-bottom: 1rem !important;
  scrollbar-width: thin;
}

/* Strict enforcement for hidden view mode containers */
.view-mode-hidden,
#courses-table-view-container.view-mode-hidden,
#courses-cards-view-container.view-mode-hidden,
#reviews-table-view-container.view-mode-hidden,
#reviews-cards-view-container.view-mode-hidden,
#downloads-table-view-container.view-mode-hidden,
#downloads-cards-view-container.view-mode-hidden,
#orders-table-view-container.view-mode-hidden,
#orders-cards-view-container.view-mode-hidden,
#users-table-view-container.view-mode-hidden,
#users-cards-view-container.view-mode-hidden,
#licenses-table-view-container.view-mode-hidden,
#licenses-cards-view-container.view-mode-hidden,
#coupons-table-view-container.view-mode-hidden,
#coupons-cards-view-container.view-mode-hidden,
#sale-campaigns-table-view-container.view-mode-hidden,
#sale-campaigns-cards-view-container.view-mode-hidden,
#roles-table-view-container.view-mode-hidden,
#roles-cards-view-container.view-mode-hidden {
  display: none !important;
}

/* Base minimum width for tables to prevent squishing on narrow screens */
.admin-table {
  min-width: 680px;
  width: 100%;
}
.products-table {
  width: 100%;
}
@media (min-width: 769px) {
  .products-table {
    min-width: 680px;
  }
}

/* Universal Form & Input Responsive Safeguards */
.form-input-custom,
.form-input,
.admin-main input[type="text"],
.admin-main input[type="email"],
.admin-main input[type="password"],
.admin-main input[type="number"],
.admin-main input[type="search"],
.admin-main input[type="url"],
.admin-main select,
.admin-main textarea {
  box-sizing: border-box !important;
  max-width: 100% !important;
}

/* Ensure flex containers in Settings don't push checkboxes or switches out of bounds */
#tab-panel-settings label[style*="justify-content:space-between"] > div:first-child,
#tab-panel-settings label[style*="justify-content: space-between"] > div:first-child {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  padding-right: 0.75rem !important;
}

#tab-panel-settings label[style*="justify-content:space-between"] input[type="checkbox"],
#tab-panel-settings label[style*="justify-content: space-between"] input[type="checkbox"],
.switch-toggle {
  flex-shrink: 0 !important;
}

.admin-grid-2col-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* CMS & Growth Responsiveness Safeguards */
.cms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.cms-kpi-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.cms-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.cms-main-grid > * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#cms-banner-live-preview {
  flex-wrap: wrap !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#tab-panel-cms,
#tab-panel-cms .admin-block,
#tab-panel-cms form,
#tab-panel-cms .form-group-custom,
#tab-panel-cms input,
#tab-panel-cms textarea,
#tab-panel-cms select {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

#tab-panel-cms input,
#tab-panel-cms textarea,
#tab-panel-cms select {
  width: 100% !important;
}

@media (max-width: 1024px) {
  .cms-main-grid {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }
}

@media (max-width: 768px) {
  .admin-shell,
  .admin-main,
  .tab-panel-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  .admin-block {
    max-width: 100% !important;
    overflow-x: visible !important; /* Allow scrollable tables to scroll without being clipped */
    box-sizing: border-box !important;
    padding: 1.15rem 1rem !important;
  }

  .admin-main {
    padding: 1rem 0.75rem !important;
  }

  .admin-table,
  .products-table {
    font-size: 0.8rem !important;
  }

  .admin-table th,
  .admin-table td,
  .products-table th,
  .products-table td {
    padding: 0.65rem 0.5rem !important;
  }

  /* Grid layouts collapse to single column */
  .settings-main-grid,
  .cms-main-grid,
  .admin-layout-grid-custom,
  .admin-layout-grid,
  .cat-layout {
    grid-template-columns: 1fr !important;
    gap: 1.25rem !important;
  }

  .admin-layout-grid-custom > *,
  .admin-layout-grid > *,
  .cms-main-grid > *,
  .cms-kpi-grid > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Weekly Sales Performance Chart */
  .chart-container {
    height: 190px !important;
    gap: 0.5rem !important;
    padding: 0.75rem 0.25rem !important;
  }

  .chart-bar {
    max-width: 32px !important;
  }

  .chart-label {
    font-size: 0.72rem !important;
  }

  /* Category Inventory Breakdown */
  .cat-analytics-list-wrap {
    padding: 0.85rem 0.35rem !important;
  }

  /* Product & Orders Inventory Tables */
  .inventory-table-title {
    max-width: 120px !important;
  }

  .dashboard-inventory-table th,
  .dashboard-inventory-table td,
  .dashboard-orders-table th,
  .dashboard-orders-table td {
    padding: 0.55rem 0.4rem !important;
    font-size: 0.8rem !important;
  }

  /* KPI Stat card grids adapt gracefully */
  .settings-kpi-grid,
  .rev-kpi-grid,
  .dl-kpi-grid,
  .cat-kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .cms-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .admin-stat-card,
  .cat-kpi-card {
    padding: 0.85rem 0.95rem !important;
  }

  .admin-stat-card .cat-kpi-val,
  .admin-stat-card div[style*="font-size:1.6rem"],
  .admin-stat-card div[style*="font-size: 1.6rem"] {
    font-size: 1.35rem !important;
  }

  .admin-block-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  /* Email Logs Toolbar & Filters */
  .email-logs-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.65rem !important;
  }

  .email-logs-toolbar > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  #email-log-filters {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.35rem !important;
    width: 100% !important;
  }

  #email-log-filters button {
    flex: 1 1 auto !important;
    text-align: center !important;
    padding: 0.25rem 0.45rem !important;
    font-size: 0.72rem !important;
  }

  .email-log-search-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 100% !important;
  }

  #email-log-search {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Collapse 2-column form rows on tablets & mobile */
  .admin-grid-2col-responsive {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }
}

@media (max-width: 640px) {
  /* Modals padding safeguard */
  #subscribers-modal,
  #email-log-detail-modal {
    padding: 0.5rem !important;
  }

  /* Collapse all 2-col form rows & inline grids */
  .admin-grid-2col-responsive,
  div[style*="grid-template-columns: 1fr 1fr"],
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))"],
  div[style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"],
  div[style*="grid-template-columns:repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
  }

  /* Responsive Cards View Containers */
  #reviews-cards-view-container,
  #downloads-cards-view-container,
  #courses-cards-view-container {
    grid-template-columns: 1fr !important;
  }

  /* Settings security switches row */
  #tab-panel-settings label[style*="justify-content:space-between"],
  #tab-panel-settings label[style*="justify-content: space-between"] {
    flex-wrap: wrap !important;
    gap: 0.5rem !important;
  }

  /* Page headers and toolbars */
  .admin-page-header,
  .cat-toolbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
  }

  .cat-search-box {
    width: 100% !important;
    min-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .admin-main {
    padding: 0.75rem 0.5rem !important;
  }

  .admin-block {
    padding: 1rem 0.75rem !important;
    border-radius: 8px !important;
  }

  .chart-container {
    height: 165px !important;
    gap: 0.35rem !important;
    padding: 0.5rem 0.15rem !important;
  }

  .chart-bar {
    max-width: 24px !important;
  }

  .chart-label {
    font-size: 0.68rem !important;
  }

  .cat-analytics-list-wrap {
    padding: 0.65rem 0.15rem !important;
  }

  .inventory-table-title {
    max-width: 95px !important;
    font-size: 0.75rem !important;
  }

  .dashboard-inventory-table th,
  .dashboard-inventory-table td,
  .dashboard-orders-table th,
  .dashboard-orders-table td {
    padding: 0.45rem 0.25rem !important;
    font-size: 0.75rem !important;
  }

  .settings-kpi-grid,
  .rev-kpi-grid,
  .dl-kpi-grid,
  .cat-kpi-grid {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
  }

  .cat-row {
    flex-wrap: wrap !important;
    padding: 0.75rem !important;
    gap: 0.65rem !important;
  }

  .cat-row.is-child {
    margin-left: 0.75rem !important;
    border-left-width: 2px !important;
  }

  .cat-form-card,
  .cat-list-panel {
    padding: 1rem 0.75rem !important;
  }
}

/* ── Global Anti-Video Download Protections ── */
video::-internal-media-controls-download-button {
  display: none !important;
}

video::-webkit-media-controls-enclosure {
  overflow: hidden;
}

video::-webkit-media-controls-panel {
  width: calc(100% + 30px);
}

video {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.video-viewport-wrapper,
#video-player-container,
.course-video-wrapper {
  -webkit-user-select: none;
  user-select: none;
}

/* ─── Fully Automated Theme Adaptive Descriptions ─── */
.course-desc-content,
.product-desc-content {
  --card-adaptive-bg: rgba(255, 255, 255, 0.04);
  --card-adaptive-border: rgba(255, 255, 255, 0.1);
  --course-bg: #151621;
  --course-card: #1d2030;
  --course-card-alt: #25283a;
  --course-text: #dfe2ee;
  --course-heading: #ffffff;
  --course-muted: #a4a9bd;
  --course-border: #303449;
  --course-accent: #a995ff;
  --course-accent-bg: #30294b;
  --course-accent-text: #c4b7ff;
  --course-hero-bg: #292344;
  --course-hero-text: #ffffff;
  --course-hero-muted: #d0c9e8;
  --course-shadow: none;

  --product-bg: #151621;
  --product-card: #1d2030;
  --product-card-alt: #25283a;
  --product-text: #dfe2ee;
  --product-heading: #ffffff;
  --product-muted: #a4a9bd;
  --product-border: #303449;
  --product-accent: #ff5f38;
  --product-accent-bg: rgba(255, 95, 56, 0.12);
  --product-accent-text: #ff7d5c;
  --product-hero-bg: #1a1c29;
  --product-hero-text: #ffffff;
  --product-shadow: none;

  line-height: 1.7;
  color: var(--text-main);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.light-theme .course-desc-content,
body.light-theme .course-desc-content,
html.light-theme .course-desc-content,
[data-theme="light"] .course-desc-content,
.light-theme .product-desc-content,
body.light-theme .product-desc-content,
html.light-theme .product-desc-content,
[data-theme="light"] .product-desc-content {
  --card-adaptive-bg: #f8fafc !important;
  --card-adaptive-border: #e2e8f0 !important;

  /* Automatic Course Theme Variables Bridge */
  --course-bg: #ffffff !important;
  --course-card: #f8fafc !important;
  --course-card-alt: #f1f3f9 !important;
  --course-text: #25283a !important;
  --course-heading: #0f172a !important;
  --course-muted: #626a7d !important;
  --course-border: #e2e8f0 !important;
  --course-accent: #7055d9 !important;
  --course-accent-bg: #f0ecff !important;
  --course-accent-text: #5940b7 !important;
  --course-hero-bg: #f8fafc !important;
  --course-hero-text: #0f172a !important;
  --course-hero-muted: #626a7d !important;
  --course-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;

  /* Automatic Product Theme Variables Bridge */
  --product-bg: #ffffff !important;
  --product-card: #f8fafc !important;
  --product-card-alt: #f1f3f9 !important;
  --product-text: #25283a !important;
  --product-heading: #0f172a !important;
  --product-muted: #626a7d !important;
  --product-border: #e2e8f0 !important;
  --product-accent: #ff5f38 !important;
  --product-accent-bg: #fff1ee !important;
  --product-accent-text: #e04820 !important;
  --product-hero-bg: #f8fafc !important;
  --product-hero-text: #0f172a !important;
  --product-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;

  color: #25283a !important;
}

.light-theme .course-desc-content .course-section,
.light-theme .course-desc-content .highlight,
.light-theme .course-desc-content .learning-item,
.light-theme .course-desc-content .audience-item,
.light-theme .course-desc-content .course-outcome,
.light-theme .product-desc-content .product-section,
.light-theme .product-desc-content .highlight,
.light-theme .product-desc-content .feature-item {
  border-color: #e2e8f0 !important;
}

.light-theme .course-desc-content h1,
.light-theme .course-desc-content h2,
.light-theme .course-desc-content h3,
.light-theme .course-desc-content h4,
.light-theme .course-desc-content h5,
.light-theme .course-desc-content h6,
.light-theme .course-desc-content p,
.light-theme .course-desc-content li,
.light-theme .course-desc-content strong,
.light-theme .course-desc-content b,
.light-theme .product-desc-content h1,
.light-theme .product-desc-content h2,
.light-theme .product-desc-content h3,
.light-theme .product-desc-content h4,
.light-theme .product-desc-content h5,
.light-theme .product-desc-content h6,
.light-theme .product-desc-content p,
.light-theme .product-desc-content li,
.light-theme .product-desc-content strong,
.light-theme .product-desc-content b {
  color: #0f172a !important;
}

.light-theme .course-desc-content em,
.light-theme .course-desc-content i,
.light-theme .course-desc-content small,
.light-theme .product-desc-content em,
.light-theme .product-desc-content i,
.light-theme .product-desc-content small {
  color: #475569 !important;
}

.light-theme .course-desc-content table,
.light-theme .product-desc-content table {
  background: #f8fafc !important;
}

.light-theme .course-desc-content th,
.light-theme .course-desc-content td,
.light-theme .product-desc-content th,
.light-theme .product-desc-content td {
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

.light-theme .course-desc-content th,
.light-theme .product-desc-content th {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.light-theme .course-desc-content blockquote,
.light-theme .product-desc-content blockquote {
  background: #f8fafc !important;
  border-left-color: var(--accent-color, #ff5f38) !important;
  color: #334155 !important;
}

/* Automatically neutralize any hardcoded dark background box into a clean light card */
.light-theme .course-desc-content [style*="background:#0"],
.light-theme .course-desc-content [style*="background: #0"],
.light-theme .course-desc-content [style*="background:#1"],
.light-theme .course-desc-content [style*="background: #1"],
.light-theme .course-desc-content [style*="background:#2"],
.light-theme .course-desc-content [style*="background: #2"],
.light-theme .course-desc-content [style*="background: rgb(0"],
.light-theme .course-desc-content [style*="background: rgb(1"],
.light-theme .course-desc-content [style*="background: rgb(2"],
.light-theme .course-desc-content [style*="background: rgb(3"],
.light-theme .course-desc-content [style*="background: rgba(0"],
.light-theme .course-desc-content [style*="background: rgba(1"],
.light-theme .course-desc-content [style*="background: rgba(2"],
.light-theme .course-desc-content [style*="background: rgba(3"],
.light-theme .course-desc-content [style*="background:rgb(0"],
.light-theme .course-desc-content [style*="background:rgb(1"],
.light-theme .course-desc-content [style*="background:rgb(2"],
.light-theme .course-desc-content [style*="background:rgb(3"],
.light-theme .course-desc-content [style*="background:rgba(0"],
.light-theme .course-desc-content [style*="background:rgba(1"],
.light-theme .course-desc-content [style*="background:rgba(2"],
.light-theme .course-desc-content [style*="background:rgba(3"],
.light-theme .product-desc-content [style*="background:#0"],
.light-theme .product-desc-content [style*="background: #0"],
.light-theme .product-desc-content [style*="background:#1"],
.light-theme .product-desc-content [style*="background: #1"],
.light-theme .product-desc-content [style*="background:#2"],
.light-theme .product-desc-content [style*="background: #2"],
.light-theme .product-desc-content [style*="background: rgb(0"],
.light-theme .product-desc-content [style*="background: rgb(1"],
.light-theme .product-desc-content [style*="background: rgb(2"],
.light-theme .product-desc-content [style*="background: rgb(3"],
.light-theme .product-desc-content [style*="background: rgba(0"],
.light-theme .product-desc-content [style*="background: rgba(1"],
.light-theme .product-desc-content [style*="background: rgba(2"],
.light-theme .product-desc-content [style*="background: rgba(3"],
.light-theme .product-desc-content [style*="background:rgb(0"],
.light-theme .product-desc-content [style*="background:rgb(1"],
.light-theme .product-desc-content [style*="background:rgb(2"],
.light-theme .product-desc-content [style*="background:rgb(3"],
.light-theme .product-desc-content [style*="background:rgba(0"],
.light-theme .product-desc-content [style*="background:rgba(1"],
.light-theme .product-desc-content [style*="background:rgba(2"],
.light-theme .product-desc-content [style*="background:rgba(3"],
.light-theme .course-desc-content [style*="background: #0f111a"],
.light-theme .course-desc-content [style*="background:#0f111a"],
.light-theme .course-desc-content [style*="background: #10111a"],
.light-theme .course-desc-content [style*="background:#10111a"],
.light-theme .product-desc-content [style*="background: #0f111a"],
.light-theme .product-desc-content [style*="background:#0f111a"],
.light-theme .product-desc-content [style*="background: #10111a"],
.light-theme .product-desc-content [style*="background:#10111a"] {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05) !important;
}

.light-theme .course-desc-content [style*="background:#0"] *,
.light-theme .course-desc-content [style*="background: #0"] *,
.light-theme .course-desc-content [style*="background:#1"] *,
.light-theme .course-desc-content [style*="background: #1"] *,
.light-theme .course-desc-content [style*="background:#2"] *,
.light-theme .course-desc-content [style*="background: #2"] *,
.light-theme .product-desc-content [style*="background:#0"] *,
.light-theme .product-desc-content [style*="background: #0"] *,
.light-theme .product-desc-content [style*="background:#1"] *,
.light-theme .product-desc-content [style*="background: #1"] *,
.light-theme .product-desc-content [style*="background:#2"] *,
.light-theme .product-desc-content [style*="background: #2"] * {
  color: #0f172a !important;
}

/* ─── Interactive Antigravity DateTime Picker Popup ─── */
.ag-datetime-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 100060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ag-datetime-picker-card {
  background: var(--bg-secondary, #141a29);
  border: 1px solid rgba(108, 99, 255, 0.35);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.65);
  width: 100%;
  max-width: 340px;
  padding: 1.25rem;
  color: var(--text-main);
  animation: agPickerFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
@keyframes agPickerFadeIn {
  from { opacity: 0; transform: scale(0.95) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.ag-dp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border-color);
}
.ag-dp-month-year {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
}
.ag-dp-nav-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all 0.15s;
}
.ag-dp-nav-btn:hover {
  border-color: var(--accent-color);
  color: var(--accent-light);
}
.ag-dp-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
}
.ag-dp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 0.85rem;
}
.ag-dp-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.15s;
}
.ag-dp-day:hover {
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
}
.ag-dp-day.today {
  border-color: var(--accent-color);
  color: var(--accent-light);
  font-weight: 800;
}
.ag-dp-day.selected {
  background: var(--accent-color) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}
.ag-dp-day.other-month {
  opacity: 0.28;
}
.ag-dp-time-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.85rem;
}
.ag-dp-time-strip select {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  padding: 0.25rem 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.ag-dp-ampm-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s;
}
.ag-dp-ampm-btn.active {
  background: var(--accent-color);
  color: #fff;
  border-color: var(--accent-color);
}
.ag-dp-shortcuts {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.ag-dp-chip {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  border-radius: 4px;
  padding: 0.2rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}
.ag-dp-chip:hover {
  border-color: var(--accent-color);
  color: var(--accent-light);
}
.ag-dp-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Top Announcement Banner Universal & Mobile Responsive Center Alignment
   ========================================================================== */
#site-top-announcement-banner,
.site-top-announcement-banner {
  position: fixed !important;
  top: var(--header-height, 80px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  padding: 0 1rem !important;
  margin: 0 !important;
  z-index: 999 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25) !important;
  overflow: hidden !important;
}

#site-top-announcement-banner .banner-inner-wrap,
.site-top-announcement-banner .banner-inner-wrap {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 1200px !important;
  height: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: 0.65rem !important;
}

#site-top-announcement-banner .banner-badge,
.site-top-announcement-banner .banner-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  background: rgba(255, 255, 255, 0.25) !important;
  padding: 0.22rem 0.6rem !important;
  border-radius: 4px !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.04em !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

#site-top-announcement-banner .banner-text,
.site-top-announcement-banner .banner-text {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-align: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #ffffff !important;
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  margin: 0 !important;
}

#site-top-announcement-banner .banner-cta-link,
.site-top-announcement-banner .banner-cta-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  vertical-align: middle !important;
  text-align: center !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.35) !important;
  padding: 0.25rem 0.8rem !important;
  border-radius: 50px !important;
  text-decoration: none !important;
  font-size: 0.74rem !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

#site-top-announcement-banner .banner-cta-link:hover,
.site-top-announcement-banner .banner-cta-link:hover {
  background: rgba(0, 0, 0, 0.6) !important;
}

body.has-top-banner {
  padding-top: 38px !important;
}

@media (max-width: 768px) {
  #site-top-announcement-banner,
  .site-top-announcement-banner {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 0.5rem !important;
  }

  body.has-top-banner {
    padding-top: 36px !important;
  }

  body.has-top-banner .nav-links {
    top: calc(var(--header-height) + 36px) !important;
  }

  #site-top-announcement-banner .banner-inner-wrap,
  .site-top-announcement-banner .banner-inner-wrap {
    gap: 0.45rem !important;
  }

  #site-top-announcement-banner .banner-badge,
  .site-top-announcement-banner .banner-badge {
    font-size: 0.68rem !important;
    padding: 0.18rem 0.45rem !important;
  }

  #site-top-announcement-banner .banner-cta-link,
  .site-top-announcement-banner .banner-cta-link {
    font-size: 0.70rem !important;
    padding: 0.20rem 0.65rem !important;
  }
}

@media (max-width: 540px) {
  #site-top-announcement-banner .banner-badge + .banner-text,
  .site-top-announcement-banner .banner-badge + .banner-text {
    display: none !important;
  }
}


/* ── Admin Floating Settings Action Bar & Theme Adaptations ─────────────── */
.admin-floating-settings-bar {
  background: var(--bg-glass, rgba(16, 23, 38, 0.95)) !important;
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
}

.light-theme .admin-floating-settings-bar,
body.light-theme .admin-floating-settings-bar,
[data-theme="light"] .admin-floating-settings-bar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.light-theme .admin-floating-settings-bar strong,
body.light-theme .admin-floating-settings-bar strong {
  color: #0f172a !important;
}

.light-theme .admin-floating-settings-bar div[style*="text-muted"],
body.light-theme .admin-floating-settings-bar div[style*="text-muted"] {
  color: #64748b !important;
}

.light-theme .admin-mobile-nav-bar,
body.light-theme .admin-mobile-nav-bar {
  background: rgba(255, 255, 255, 0.95) !important;
  border-bottom-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}



/* ==========================================================================
   CART & CHECKOUT MOBILE RESPONSIVENESS FIX
   ========================================================================== */

.cart-items-wrapper,
.summary-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.promo-form {
  box-sizing: border-box;
  width: 100%;
}

.promo-input {
  min-width: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
    margin-bottom: 3.5rem !important;
  }
}

@media (max-width: 600px) {
  .cart-layout {
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
    margin-bottom: 2.5rem !important;
  }

  .cart-items-wrapper,
  .summary-card {
    padding: 1.25rem 1rem !important;
    border-radius: 14px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .cart-item {
    display: grid !important;
    grid-template-columns: 72px 1fr !important;
    grid-template-areas:
      "thumb info"
      "actions actions" !important;
    gap: 0.75rem 0.85rem !important;
    align-items: start !important;
    padding: 1.15rem 0 !important;
  }

  .cart-item-img {
    grid-area: thumb !important;
    width: 72px !important;
    height: 52px !important;
    border-radius: 8px !important;
  }

  .cart-item-info {
    grid-area: info !important;
    min-width: 0 !important;
  }

  .cart-item-title {
    font-size: 0.95rem !important;
    line-height: 1.35 !important;
    margin-bottom: 0.35rem !important;
    word-break: break-word !important;
  }

  .cart-item-meta {
    font-size: 0.76rem !important;
    line-height: 1.3 !important;
  }

  .cart-item-actions-wrap {
    grid-area: actions !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    padding-top: 0.65rem !important;
    margin-top: 0.15rem !important;
    border-top: 1px dashed rgba(255, 255, 255, 0.08) !important;
    gap: 0.75rem !important;
  }

  .cart-item-price {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    color: var(--text-main) !important;
  }

  .remove-cart-item {
    padding: 0.4rem 0.75rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.35rem !important;
    border-radius: 6px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    color: #ef4444 !important;
    cursor: pointer !important;
  }

  .promo-form {
    display: flex !important;
    gap: 0.5rem !important;
    width: 100% !important;
  }

  .promo-input {
    min-width: 0 !important;
    width: 100% !important;
    flex: 1 1 auto !important;
    font-size: 0.88rem !important;
    padding: 0.7rem 0.85rem !important;
  }

  #promo-submit-btn {
    flex-shrink: 0 !important;
    min-width: 75px !important;
    padding: 0.7rem 1rem !important;
  }
}

@media (max-width: 380px) {
  .cart-items-wrapper,
  .summary-card {
    padding: 1.15rem 0.85rem !important;
  }
}

/* Password visibility toggle */
.password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-wrap input {
  width: 100%;
  padding-right: 2.85rem !important;
}

.password-toggle-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

