/* ==========================================================================
   CSS Variables & Settings
   ========================================================================== */
:root {
  /* Colors - Premium Dark Theme with Vibrant Accents */
  --bg-dark: #0f1115;
  --bg-surface: #1a1d24;
  --bg-surface-hover: #232730;
  
  --primary-accent: #6dd623;   /* Suplemental logo lime green */
  --primary-hover: #7ee62e;
  
  --text-main: #ffffff;
  --text-secondary: #9ba1a6;
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Layout & Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition-speed: 0.3s;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* Remove blue highlight on mobile */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(0, 208, 132, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 30%);
  z-index: -1;
  pointer-events: none;
  animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
  0% { transform: scale(1) translateY(0); }
  100% { transform: scale(1.1) translateY(-2%); }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  padding: 20px 0;
  top: 0;
  z-index: 100;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  position: sticky;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

.logo-mental {
  color: var(--text-main);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

/* Hero Logo */
.hero-logo-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.hero-logo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 40px rgba(109, 214, 35, 0.3);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color var(--transition-speed);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-accent);
}

/* Navbar Mobile Optimization (Stacked Layout) */
@media (max-width: 767px) {
  .navbar {
    padding: 16px 0 12px 0;
  }
  .nav-container {
    flex-direction: column;
    gap: 16px;
  }
  .logo {
    font-size: 1.35rem;
    letter-spacing: 1px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 32px;
  }
  .nav-links a {
    font-size: 1rem;
  }
  .cart-icon {
    width: 22px;
    height: 22px;
  }
}

/* ==========================================================================
   View Management (SPA logic)
   ========================================================================== */
.view {
  display: none;
  opacity: 0;
  transition: opacity var(--transition-speed) ease-in-out;
}

.view.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 80px 0 40px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Objectives Cards
   ========================================================================== */
.objectives-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 40px;
}

.card-objective {
  background-color: rgba(26, 29, 36, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed), box-shadow var(--transition-speed);
  color: var(--text-main);
  display: block;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.card-objective::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: skewX(-20deg);
  transition: 0.6s;
}

.card-objective:hover::after {
  left: 200%;
}

.card-objective:hover {
  background-color: rgba(35, 39, 48, 0.8);
  border-color: rgba(0, 208, 132, 0.4);
  box-shadow: 0 8px 32px rgba(0, 208, 132, 0.15);
}

.card-objective:active {
  transform: scale(0.98);
}

.card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
}

.card-arrow {
  color: var(--primary-accent);
  font-size: 1.5rem;
  font-weight: bold;
  transition: transform 0.2s;
}

/* Desktop Hover */
@media (min-width: 768px) {
  .card-objective:hover {
    transform: translateY(-4px);
  }
  
  .card-objective:hover .card-arrow {
    transform: translateX(4px);
  }
}

/* ==========================================================================
   Products Showcase
   ========================================================================== */
.products-showcase {
  margin: 60px 0;
  text-align: center;
}

.showcase-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 208, 132, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 208, 132, 0.1);
}

.product-img-wrapper {
  width: 100%;
  aspect-ratio: 1;
  background: radial-gradient(circle at center, rgba(35, 39, 48, 0.8) 0%, rgba(20, 22, 28, 0.4) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  position: relative;
  overflow: hidden;
}

.product-img-wrapper::before {
  content: '';
  position: absolute;
  width: 150px;
  height: 150px;
  background: rgba(0, 208, 132, 0.15);
  filter: blur(40px);
  z-index: 0;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.product-card:hover .product-img-wrapper::before {
  opacity: 1;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.08) translateY(-4px);
}

.product-info {
  padding: 20px;
  text-align: left;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(20, 22, 28, 0.95) 0%, rgba(15, 17, 21, 0.95) 100%);
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.1rem;
}

.product-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ==========================================================================
   Brand Concept
   ========================================================================== */
.concept-section {
  padding: 60px 0 80px;
  text-align: center;
}

.concept-message {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-main);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  padding: 40px 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Objective Dynamic View Area
   ========================================================================== */
#view-objective {
  padding: 40px 0;
}

.btn-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  transition: color var(--transition-speed);
}

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

.objective-header h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 24px;
}

.objective-problem {
  background-color: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--text-secondary);
  padding: 16px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 32px;
  font-size: 1.1rem;
}

.objective-offer h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.sup-list {
  list-style: none;
  margin-bottom: 40px;
}

.sup-item {
  background-color: var(--bg-surface);
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

.sup-item strong {
  color: var(--primary-accent);
}

/* ==========================================================================
   Combo Section
   ========================================================================== */
.objective-combo {
  background: linear-gradient(135deg, rgba(0, 208, 132, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
  border: 1px solid rgba(0, 208, 132, 0.3);
  border-radius: var(--radius-md);
  padding: 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.combo-badge {
  display: inline-block;
  background-color: var(--primary-accent);
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.objective-combo h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.combo-desc {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.combo-explanation {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.btn-cta {
  display: inline-block;
  background-color: var(--primary-accent);
  color: #000;
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 30px;
  transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 208, 132, 0.4);
  animation: pulseButton 2s infinite;
}

@keyframes pulseButton {
  0% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(0, 208, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 208, 132, 0); }
}

.btn-cta:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  animation: none;
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.6);
}

.btn-cta:active {
  transform: translateY(0);
}

/* ==========================================================================
   Products Catalog View
   ========================================================================== */
#view-products {
  padding: 40px 0;
}

.products-header {
  text-align: center;
  margin-bottom: 40px;
}

.products-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-accent);
  margin-bottom: 12px;
}

.products-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* --- Filters --- */
.filters-container {
  background-color: rgba(26, 29, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
}

.filters-hint {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  text-align: center;
}

.dropdowns-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Custom Dropdown */
.custom-dropdown {
  position: relative;
  flex: 1;
}

.dropdown-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: var(--font-family);
}

.dropdown-toggle:hover,
.custom-dropdown.open .dropdown-toggle {
  border-color: var(--primary-accent);
  background: rgba(109, 214, 35, 0.06);
}

.dropdown-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--primary-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.dropdown-value {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-arrow {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.custom-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: rgba(22, 25, 32, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  z-index: 9999;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.custom-dropdown.open .dropdown-menu {
  max-height: 400px;
  opacity: 1;
  pointer-events: all;
}

.dropdown-item {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: background 0.2s ease;
  font-family: var(--font-family);
  min-height: 48px;
}

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

.dropdown-item:hover { background: rgba(255, 255, 255, 0.05); }

.dropdown-item.active { background: rgba(109, 214, 35, 0.08); }

.dropdown-item span {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.dropdown-item.active span {
  color: var(--primary-accent);
  font-weight: 700;
}

.dropdown-item .brand-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.75;
}

.dropdown-item.active .brand-logo-img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(43%) saturate(623%) hue-rotate(51deg) brightness(106%) contrast(101%);
  opacity: 1;
}

/* Keep old filter-btn classes (used by hidden elements for JS compat) */
.filter-btn { display: none; }
.filter-group, .filter-label, .filter-buttons { display: none; }


.filter-btn {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 24px;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 0;
}

.filter-btn span {
  position: relative;
  z-index: 1;
}

.filter-btn:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.filter-btn.active {
  background-color: transparent;
  border-color: var(--primary-accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 208, 132, 0.3);
}

.filter-btn.active::before {
  opacity: 1;
  transform: scaleX(1);
}

/* --- Brand Logo Filter Buttons --- */
.brand-logo-filters {
  align-items: center;
  gap: 12px;
}

.filter-btn-logo {
  background-color: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  min-width: 60px;
}

.filter-btn-logo span {
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 600;
}

.brand-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.filter-btn-logo:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.filter-btn-logo:hover .brand-logo-img {
  opacity: 1;
}

.filter-btn-logo.active {
  background-color: rgba(109, 214, 35, 0.08);
  border-color: var(--primary-accent);
  box-shadow: 0 0 14px rgba(109, 214, 35, 0.2);
  transform: translateY(-2px);
}

.filter-btn-logo.active span {
  color: var(--primary-accent);
}

.filter-btn-logo.active .brand-logo-img {
  filter: brightness(0) saturate(100%) invert(74%) sepia(43%) saturate(623%) hue-rotate(51deg) brightness(106%) contrast(101%);
  opacity: 1;
}

/* --- Catalog Grid Modifications --- */

.products-grid.single-product {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.catalog-mode .product-card .price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.catalog-mode .product-card .price::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--primary-accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 8px var(--primary-accent);
}

.catalog-mode .product-card .brand {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-accent);
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 18px;
}

.no-results {
  text-align: center;
  padding: 60px 0;
  color: var(--text-secondary);
  font-size: 1.2rem;
  width: 100%;
  grid-column: 1 / -1;
}

/* --- Variant Selectors & Buy Button --- */
.variant-selectors {
  margin: 6px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 52px;
}

.selector-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.selector-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  width: 100%;
  margin-bottom: 2px;
}

.chip {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-family);
}

.chip:not(.disabled):hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.chip.active {
  background-color: rgba(0, 208, 132, 0.2);
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.chip.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.variant-name {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  margin-bottom: 4px;
  min-height: 2.1rem; /* Ensure 2 lines exact height */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.2;
}

.btn-buy {
  display: block;
  width: 100%;
  text-align: center;
  background-color: rgba(0, 208, 132, 0.1);
  color: var(--primary-accent);
  border: 1px solid var(--primary-accent);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  padding: 14px;
  border-radius: var(--radius-md);
  margin-top: auto;
  transition: all 0.3s ease;
}

.btn-buy:hover {
  background-color: var(--primary-accent);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 208, 132, 0.25);
}

.product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes imgAppear {
  from { opacity: 0.5; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.img-appear {
  animation: imgAppear 0.3s ease-out forwards;
}

/* Subtle brand logo inside card info */
.card-brand-logo {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

/* ==========================================================================
   Media Queries for Desktop
   ========================================================================== */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  
  .objectives-grid {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .card-objective {
    width: calc(33.333% - 16px);
  }
  
  .products-showcase {
    margin: 80px 0;
  }

  .nav-container {
      flex-direction: row;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
  }
  
  .product-card {
    min-height: 480px;
    scroll-snap-align: none;
  }
  
  .products-grid.catalog-mode {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .filter-group {
      flex-direction: row;
      align-items: center;
  }
}

/* ==========================================================================
   Shopping Cart UI
   ========================================================================== */

/* Navbar Cart Button */
.cart-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-speed);
  padding: 0 4px;
}

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

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: var(--primary-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  height: 18px;
  min-width: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
  animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Cart Overlay */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(10, 12, 15, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%; /* Hidden by default */
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background-color: var(--bg-surface);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-drawer.active {
  right: 0;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: rgba(20, 22, 28, 0.95);
}

.cart-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
}

.close-cart-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s;
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-items::-webkit-scrollbar {
  width: 6px;
}
.cart-items::-webkit-scrollbar-track {
  background: transparent;
}
.cart-items::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.cart-empty {
  text-align: center;
  margin: auto;
  color: var(--text-secondary);
}

.cart-empty p {
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.btn-small {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Individual Cart Item */
.cart-item {
  display: flex;
  gap: 14px;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: relative;
  animation: slideInRight 0.3s ease-out;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background-color: rgba(35, 39, 48, 0.8);
  border-radius: var(--radius-sm);
  padding: 4px;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 2px;
  line-height: 1.2;
  padding-right: 20px; /* Space for remove btn */
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-accent);
}

.cart-item-price.no-price {
  font-size: 0.8rem;
}

/* Quantity Controls */
.qty-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.qty-btn {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

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

.qty-btn:disabled {
  color: var(--text-secondary);
  cursor: not-allowed;
  opacity: 0.5;
}

.qty-value {
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 14px;
  text-align: center;
}

.remove-item-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-item-btn:hover {
  color: #ff4d4f;
}

/* Cart Footer */
.cart-footer {
  padding: 24px;
  background-color: rgba(20, 22, 28, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.2);
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
}

.cart-total-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary-accent);
}

.btn-checkout {
  width: 100%;
  background-color: var(--primary-accent);
  color: #000;
  border: none;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-checkout:not(:disabled):hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 208, 132, 0.4);
}

.btn-checkout:disabled {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}
