/* ========================================
   AQUAFINS — Design System & Styles
   Deep Ocean Luxury Aesthetic
   ======================================== */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

/* --- CSS Variables (Design Tokens) --- */
:root {
  /* Colors */
  --bg-deep: #0a1628;
  --bg-mid: #0e1f3a;
  --bg-card: #112240;
  --bg-card-hover: #1a3056;
  --ocean: #0e3a5c;
  --teal: #00c8b4;
  --teal-glow: rgba(0, 200, 180, 0.35);
  --teal-soft: rgba(0, 200, 180, 0.12);
  --aqua-light: #64ffda;
  --white: #ffffff;
  --text-primary: #e6f1ff;
  --text-secondary: #a8b2d1;
  --text-muted: #6b7fa3;
  --danger: #ff6b6b;
  --success: #00c8b4;
  --warning: #ffd93d;
  --overlay: rgba(10, 22, 40, 0.85);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 50%;
  --border-subtle: 1px solid rgba(100, 255, 218, 0.08);
  --border-glow: 1px solid rgba(0, 200, 180, 0.25);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px rgba(0, 200, 180, 0.15);
  --shadow-btn: 0 4px 15px rgba(0, 200, 180, 0.3);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Z-index scale */
  --z-dropdown: 10;
  --z-sticky: 20;
  --z-navbar: 30;
  --z-modal: 50;
  --z-toast: 60;

  /* Layout */
  --max-width: 1280px;
  --navbar-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a:hover {
  color: var(--aqua-light);
}

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: var(--font-body);
  border: none;
  outline: none;
}

input, select, textarea {
  font-family: var(--font-body);
  font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Utility Classes --- */
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: var(--border-subtle);
  z-index: var(--z-navbar);
  transition: background var(--transition-base);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  fill: var(--teal);
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-logo span {
  background: linear-gradient(135deg, var(--white), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition-base);
}

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cart {
  position: relative;
  color: var(--text-secondary);
  background: none;
  font-size: 1.3rem;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.nav-cart:hover {
  color: var(--teal);
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--teal);
  color: var(--bg-deep);
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-badge.hidden {
  display: none;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.nav-user:hover {
  color: var(--teal);
}

.nav-user img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: 2px solid var(--teal);
}

.nav-user-name {
  font-size: 0.9rem;
  font-weight: 500;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: var(--space-sm);
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition-base);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(180deg, var(--bg-deep) 0%, #071222 50%, #0a1e3d 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Animated bubbles */
.bubble {
  position: absolute;
  bottom: -50px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, rgba(0, 200, 180, 0.2), rgba(0, 200, 180, 0.05));
  border: 1px solid rgba(0, 200, 180, 0.1);
  animation: float-up linear infinite;
}

@keyframes float-up {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  100% {
    transform: translateY(-110vh) scale(0.4);
    opacity: 0;
  }
}

/* Underwater light rays */
.hero-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 20%;
  width: 200px;
  height: 100%;
  background: linear-gradient(180deg, rgba(0, 200, 180, 0.06), transparent 70%);
  transform: skewX(-15deg);
  animation: ray-sway 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  right: 25%;
  width: 150px;
  height: 100%;
  background: linear-gradient(180deg, rgba(100, 255, 218, 0.04), transparent 60%);
  transform: skewX(10deg);
  animation: ray-sway 10s ease-in-out infinite reverse;
}

@keyframes ray-sway {
  0%, 100% { transform: skewX(-15deg) translateX(0); }
  50% { transform: skewX(-10deg) translateX(30px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-xl);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: var(--space-md);
  opacity: 0;
  animation: fadeInUp 0.8s 0.3s forwards;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 0.8s 0.5s forwards;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--teal), var(--aqua-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 550px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 0.8s 0.7s forwards;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 0.8s 0.9s forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #00a89a);
  color: var(--bg-deep);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 200, 180, 0.45);
  color: var(--bg-deep);
}

.btn-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}

.btn-outline:hover {
  background: var(--teal);
  color: var(--bg-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: rgba(0, 200, 180, 0.08);
  color: var(--teal);
  border: var(--border-glow);
}

.btn-ghost:hover {
  background: rgba(0, 200, 180, 0.18);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: var(--white);
}

.btn-danger:hover {
  background: #ff5252;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

/* ========================================
   SECTION TITLES
   ======================================== */
.section {
  padding: var(--space-4xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  text-align: center;
  border: var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, var(--teal-soft));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 200, 180, 0.3);
  box-shadow: var(--shadow-glow);
}

.category-card:hover::before {
  opacity: 1;
}

.category-icon {
  font-size: 2.8rem;
  margin-bottom: var(--space-md);
  display: block;
  position: relative;
}

.category-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  position: relative;
}

.category-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  position: relative;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-subtle);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 200, 180, 0.2);
  box-shadow: var(--shadow-card);
}

.product-card-img {
  position: relative;
  height: 220px;
  background: var(--bg-mid);
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.product-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  background: var(--teal);
  color: var(--bg-deep);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card-body {
  padding: var(--space-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.product-card-name {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.product-card-name a {
  color: inherit;
  text-decoration: none;
}

.product-card-name a:hover {
  color: var(--teal);
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-md);
  margin-top: auto;
}

.product-card-price .old-price {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: var(--space-sm);
  font-weight: 400;
}

.product-card-actions {
  display: flex;
  gap: var(--space-sm);
}

.product-card-actions .btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.85rem;
}

/* ========================================
   BESTSELLER CAROUSEL
   ======================================== */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--space-lg);
  transition: transform var(--transition-slow);
  will-change: transform;
}

.carousel-track .product-card {
  min-width: 280px;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: var(--border-glow);
  color: var(--teal);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: var(--z-dropdown);
  transition: all var(--transition-base);
}

.carousel-btn:hover {
  background: var(--teal);
  color: var(--bg-deep);
}

.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* ========================================
   WHY CHOOSE US
   ======================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: var(--border-subtle);
  text-align: center;
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: rgba(0, 200, 180, 0.25);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--teal-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  font-size: 1.6rem;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
  background: linear-gradient(135deg, var(--ocean), var(--bg-mid));
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  border: var(--border-glow);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--teal-soft), transparent 70%);
  border-radius: var(--radius-full);
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  position: relative;
}

.newsletter p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  position: relative;
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.2rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.06);
  border: var(--border-subtle);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: #060e1a;
  border-top: var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: var(--space-md);
  max-width: 300px;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

.footer-social a:hover {
  background: var(--teal);
  color: var(--bg-deep);
  border-color: var(--teal);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
  color: var(--white);
}

.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--teal);
}

.footer-bottom {
  border-top: var(--border-subtle);
  padding-top: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ========================================
   SHOP PAGE
   ======================================== */
.page-header {
  padding-top: calc(var(--navbar-height) + var(--space-3xl));
  padding-bottom: var(--space-2xl);
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-mid));
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-sm);
}

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

.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0;
}

/* Search */
.search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.search-bar input {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: var(--border-subtle);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.search-bar input:focus {
  border-color: var(--teal);
}

.search-bar button {
  padding: 0.8rem 1.5rem;
}

/* Sidebar Filters */
.filter-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
  align-self: start;
}

.filter-group {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: var(--border-subtle);
  margin-bottom: var(--space-lg);
}

.filter-group h3 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  color: var(--white);
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: var(--space-xs) 0;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.filter-group label:hover {
  color: var(--white);
}

.filter-group input[type="checkbox"],
.filter-group input[type="radio"] {
  accent-color: var(--teal);
  width: 16px;
  height: 16px;
}

.filter-group select {
  width: 100%;
  padding: 0.6rem;
  background: var(--bg-mid);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
}

.filter-group select:focus {
  border-color: var(--teal);
}

.price-range {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.price-range input {
  width: 80px;
  padding: 0.5rem;
  background: var(--bg-mid);
  border: var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
  text-align: center;
}

.price-range span {
  color: var(--text-muted);
}

.no-results {
  text-align: center;
  padding: var(--space-3xl);
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
  padding-top: calc(var(--navbar-height) + var(--space-2xl));
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  padding: var(--space-2xl) 0;
}

.product-gallery {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
  align-self: start;
}

.product-gallery-main {
  width: 100%;
  height: 450px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: var(--border-subtle);
  margin-bottom: var(--space-md);
}

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

.product-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
}

.product-gallery-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.product-gallery-thumbs img:hover,
.product-gallery-thumbs img.active {
  border-color: var(--teal);
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.product-info .product-category {
  font-size: 0.85rem;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.product-price-large {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: var(--space-lg);
}

.product-description {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: var(--space-xl);
}

.quantity-selector button {
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.quantity-selector button:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.quantity-selector button:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quantity-selector button:hover {
  background: var(--teal);
  color: var(--bg-deep);
}

.quantity-selector input {
  width: 60px;
  height: 44px;
  text-align: center;
  background: var(--bg-card);
  border: var(--border-subtle);
  border-left: none;
  border-right: none;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  outline: none;
}

.product-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.product-actions .btn {
  flex: 1;
}

/* Tabs */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(255, 255, 255, 0.06);
  margin-bottom: var(--space-xl);
}

.tab-nav button {
  padding: var(--space-md) var(--space-xl);
  background: none;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.tab-nav button.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

.tab-content {
  display: none;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* ========================================
   CART PAGE
   ======================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cart-item {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  border: var(--border-subtle);
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: var(--space-lg);
  transition: border-color var(--transition-fast);
}

.cart-item:hover {
  border-color: rgba(0, 200, 180, 0.15);
}

.cart-item-img {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-mid);
}

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

.cart-item-info h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

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

.cart-item-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
  padding: var(--space-sm);
  transition: color var(--transition-fast);
}

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

.cart-empty {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.cart-empty svg {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-lg);
  opacity: 0.3;
}

.cart-empty h2 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.cart-empty p {
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: var(--border-subtle);
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
  align-self: start;
}

.order-summary h2 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-subtle);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-sm) 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.summary-row.total {
  border-top: var(--border-glow);
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  color: var(--white);
  font-weight: 700;
  font-size: 1.15rem;
}

.summary-row.total span:last-child {
  color: var(--teal);
}

.order-summary .btn {
  margin-top: var(--space-lg);
}

/* ========================================
   FORM STYLES (Login, Checkout, etc.)
   ======================================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--navbar-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
}

.auth-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 440px;
  border: var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.auth-card h1 {
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: var(--space-xs);
}

.auth-card .subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-xl);
  background: var(--bg-mid);
  border-radius: var(--radius-md);
  padding: 4px;
}

.auth-tabs button {
  flex: 1;
  padding: 0.7rem;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.auth-tabs button.active {
  background: var(--teal);
  color: var(--bg-deep);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-mid);
  border: var(--border-subtle);
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 0.8rem;
  background: var(--white);
  color: #333;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}

.google-btn:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.google-btn svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   CHECKOUT PAGE
   ======================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.checkout-form-section {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: var(--border-subtle);
  margin-bottom: var(--space-lg);
}

.checkout-form-section h2 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: var(--border-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* ========================================
   ACCOUNT PAGE
   ======================================== */
.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl) 0 var(--space-4xl);
}

.account-sidebar {
  position: sticky;
  top: calc(var(--navbar-height) + var(--space-xl));
  align-self: start;
}

.account-sidebar-menu {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: var(--border-subtle);
}

.account-sidebar-menu a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.account-sidebar-menu a:hover,
.account-sidebar-menu a.active {
  background: var(--teal-soft);
  color: var(--teal);
}

.account-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: var(--border-subtle);
}

.account-content h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: var(--space-xl);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding: var(--space-md);
  border-bottom: var(--border-subtle);
}

.data-table td {
  padding: var(--space-md);
  border-bottom: var(--border-subtle);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.data-table tr:hover td {
  background: rgba(0, 200, 180, 0.03);
}

.status-badge {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pending { background: rgba(255, 217, 61, 0.15); color: var(--warning); }
.status-badge.processing { background: rgba(0, 200, 180, 0.15); color: var(--teal); }
.status-badge.shipped { background: rgba(100, 149, 237, 0.15); color: #6495ed; }
.status-badge.delivered { background: rgba(46, 213, 115, 0.15); color: #2ed573; }

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast-container {
  position: fixed;
  top: calc(var(--navbar-height) + var(--space-md));
  right: var(--space-md);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.toast {
  background: var(--bg-card);
  border: var(--border-glow);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: var(--white);
  font-size: 0.9rem;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
  min-width: 280px;
}

.toast.success { border-left: 3px solid var(--teal); }
.toast.error { border-left: 3px solid var(--danger); }

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
  to { transform: translateX(100%); opacity: 0; }
}

/* ========================================
   MODAL
   ======================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  border: var(--border-glow);
  box-shadow: var(--shadow-card);
  animation: modalIn 0.3s ease;
}

@keyframes modalIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.modal-header h2 {
  font-family: var(--font-body);
  font-size: 1.3rem;
  font-weight: 600;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close:hover {
  background: rgba(255, 107, 107, 0.15);
  color: var(--danger);
}

/* ========================================
   PAYMENT SUCCESS
   ======================================== */
.payment-success {
  text-align: center;
  padding: var(--space-4xl) var(--space-xl);
}

.payment-success .checkmark {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--teal), var(--aqua-light));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 2rem;
}

.payment-success h1 {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.payment-success p {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

/* ========================================
   MOBILE RESPONSIVENESS
   ======================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .filter-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-md);
  }

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

  .product-gallery {
    position: static;
  }

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

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

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

  .account-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: var(--space-xl);
    gap: var(--space-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-base);
    border-bottom: var(--border-subtle);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hamburger {
    display: flex;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .newsletter-form {
    flex-direction: column;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
    gap: var(--space-md);
  }

  .cart-item-price {
    grid-column: 2;
  }

  .cart-item-remove {
    grid-column: 2;
    justify-self: end;
  }

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

  .product-actions {
    flex-direction: column;
  }

  .section {
    padding: var(--space-2xl) 0;
  }

  .data-table {
    font-size: 0.8rem;
  }

  .data-table th,
  .data-table td {
    padding: var(--space-sm);
  }

  .nav-user-name {
    display: none;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .carousel-track .product-card {
    min-width: 240px;
  }

  .auth-card {
    padding: var(--space-lg);
  }
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: var(--ocean);
  border-radius: 4px;
}

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

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* --- Selection --- */
::selection {
  background: var(--teal);
  color: var(--bg-deep);
}
