@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');

/* --- Core Design System --- */
:root {
  --bg-primary: hsl(240, 6%, 4%);
  --bg-secondary: hsl(240, 5%, 8%);
  --bg-tertiary: hsl(240, 5%, 12%);
  --bg-glass: rgba(15, 15, 17, 0.7);
  --bg-glass-card: rgba(22, 22, 26, 0.45);
  
  --text-primary: hsl(0, 0%, 98%);
  --text-secondary: hsl(240, 5%, 70%);
  --text-muted: hsl(240, 4%, 45%);
  
  --accent-blue: hsl(210, 100%, 56%);
  --accent-blue-glow: rgba(26, 115, 232, 0.3);
  --accent-gold: hsl(38, 92%, 50%);
  --accent-gold-glow: rgba(245, 158, 11, 0.25);
  --accent-green: hsl(142, 72%, 45%);
  --accent-green-glow: rgba(34, 197, 94, 0.2);
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 255, 255, 0.25);
  --border-glow-blue: rgba(26, 115, 232, 0.5);
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px -5px var(--accent-blue-glow);
}

/* --- Base & Reset --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, hsl(240, 10%, 10%) 0%, var(--bg-primary) 70%);
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* --- Layout Utility --- */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 8rem 0;
  position: relative;
}

.glow-ambient {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--accent-blue-glow) 0%, transparent 70%);
  top: 10%;
  left: 5%;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

/* --- Header / Navigation --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: padding var(--transition-normal);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo svg {
  fill: var(--text-primary);
  width: 1.5rem;
  height: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
}

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

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

.cart-trigger {
  background: none;
  border: none;
  color: var(--text-primary);
  position: relative;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
}

.cart-trigger:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-trigger svg {
  width: 1.4rem;
  height: 1.4rem;
}

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background-color: var(--accent-blue);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bg-primary);
  transition: transform var(--transition-fast);
}

/* Cart bounce animation */
@keyframes cartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cart-bump {
  animation: cartPulse 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Hero Section --- */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 6rem 0;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero-video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38; /* elegant background blending */
  filter: saturate(0.8) brightness(0.65);
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 15, 17, 0.25) 0%, var(--bg-primary) 85%),
              linear-gradient(to bottom, transparent 50%, var(--bg-primary) 100%);
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 820px;
  z-index: 10;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-tag span {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.hero h1 {
  font-size: 5.5rem;
  line-height: 1.05;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, #ffffff 40%, rgba(255, 255, 255, 0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero h1 span {
  background: linear-gradient(90deg, var(--accent-gold) 0%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 3.5rem;
  max-width: 680px;
  color: var(--text-secondary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

.btn-primary:hover {
  background-color: transparent;
  color: var(--text-primary);
  box-shadow: 0 10px 30px -10px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: var(--border-focus);
}

/* --- Products Section --- */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  z-index: 10;
}

.section-title h2 {
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--text-primary), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Filters/Tabs */
.filter-tabs {
  display: flex;
  gap: 0.75rem;
  background-color: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.tab-btn.active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Product Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  z-index: 10;
}

/* Product Card */
.product-card {
  background-color: var(--bg-glass-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 530px;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-focus);
  box-shadow: var(--shadow-premium), var(--shadow-glow);
}

.card-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 5;
}

.tag-new {
  background-color: var(--accent-green-glow);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.tag-premium {
  background-color: var(--accent-gold-glow);
  color: var(--accent-gold);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.product-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 240px;
  margin-bottom: 0;
  position: relative;
  background-color: #000000;
  width: 100%;
  overflow: hidden;
  border-top-left-radius: 23px;
  border-top-right-radius: 23px;
}

.product-image-container::after {
  content: '';
  position: absolute;
  width: 80%;
  height: 20px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.5) 0%, transparent 70%);
  bottom: 0;
  pointer-events: none;
}

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

.product-card:hover .product-card-image {
  transform: scale(1.08) rotate(2deg);
}

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

.product-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-specs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.spec-chip {
  font-size: 0.75rem;
  color: var(--text-muted);
  background-color: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border-light);
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.product-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.add-to-cart-btn {
  background: none;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.02);
  transition: all var(--transition-fast);
}

.add-to-cart-btn:hover {
  background-color: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  transform: scale(1.08);
}

.add-to-cart-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

/* --- About the Store --- */
.about {
  background-color: var(--bg-secondary);
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

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

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

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

.about-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  height: 450px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

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

.about-visual:hover .about-img {
  transform: scale(1.05);
}

.about-visual-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(11, 11, 12, 0.8) 0%, rgba(11, 11, 12, 0.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
}

.about-visual-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* --- Location & Contact --- */
.location {
  overflow: hidden;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
}

.location-info h2 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
}

.location-info p {
  margin-bottom: 3rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.contact-icon {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--accent-blue);
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.contact-text h4 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.contact-text p,
.contact-text a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Mock Map Component */
.map-container {
  background-color: var(--bg-secondary);
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  height: 480px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-premium);
}

.mock-map {
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 40% 60%, rgba(26, 115, 232, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  background-color: #111115;
  position: relative;
}

.map-roads {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

/* Custom drawing of road lines on mock map */
.road {
  position: absolute;
  background-color: var(--text-primary);
}
.road-h1 { top: 30%; left: 0; width: 100%; height: 3px; }
.road-h2 { top: 70%; left: 0; width: 100%; height: 2px; }
.road-v1 { top: 0; left: 35%; width: 3px; height: 100%; }
.road-v2 { top: 0; left: 75%; width: 2px; height: 100%; }
.road-diag { top: 10%; left: 20%; width: 150px; height: 2px; transform: rotate(45deg); }

.map-marker {
  position: absolute;
  top: 60%;
  left: 70%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  cursor: pointer;
}

.marker-pin {
  width: 24px;
  height: 24px;
  border-radius: 50% 50% 50% 0;
  background-color: var(--accent-blue);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-blue);
  animation: markerBounce 2s ease-in-out infinite;
}

.marker-pin::after {
  content: '';
  width: 10px;
  height: 10px;
  background-color: var(--bg-primary);
  border-radius: 50%;
}

.marker-pulse {
  position: absolute;
  width: 40px;
  height: 40px;
  background-color: var(--accent-blue-glow);
  border-radius: 50%;
  top: -8px;
  z-index: -1;
  animation: pulseMarker 2s ease-out infinite;
}

@keyframes markerBounce {
  0%, 100% { transform: rotate(-45deg) translateY(0); }
  50% { transform: rotate(-45deg) translateY(-8px); }
}

@keyframes pulseMarker {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.marker-label {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 0.8rem;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
}

/* Route Map Additions */
.map-marker-start {
  position: absolute;
  top: 15%;
  left: 20%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 9;
}

.marker-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--text-secondary);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.marker-label-small {
  background-color: rgba(11, 11, 12, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 0.4rem;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.route-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

#route-path {
  animation: dash 20s linear infinite;
  stroke-dasharray: 4, 3;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

.map-info-badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background-color: rgba(11, 11, 12, 0.85);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-premium);
  backdrop-filter: blur(10px);
  z-index: 1010; /* Sitting over Leaflet controls */
}

.map-info-badge svg {
  color: var(--accent-blue);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.map-element {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background-color: #111115;
}

/* Travel Mode Tabs styling */
.map-modes {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  background: rgba(15, 15, 17, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.35rem;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  z-index: 1010; /* Sitting over Leaflet controls */
  box-shadow: var(--shadow-premium);
}

.map-mode-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.map-mode-btn svg {
  stroke: var(--text-secondary);
  transition: stroke var(--transition-fast);
}

.map-mode-btn:hover {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.03);
}

.map-mode-btn:hover svg {
  stroke: var(--text-primary);
}

.map-mode-btn.active {
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.map-mode-btn.active[data-mode="car"] svg { stroke: var(--accent-blue); }
.map-mode-btn.active[data-mode="transit"] svg { stroke: var(--accent-gold); }
.map-mode-btn.active[data-mode="walk"] svg { stroke: var(--accent-green); }

/* SVG route paths toggling */
.map-route-path {
  opacity: 0;
  transition: opacity var(--transition-normal);
  stroke-dasharray: 4, 3;
  animation: dash 20s linear infinite;
}

.map-route-path.active {
  opacity: 1;
}

/* Leaflet Polyline routing animation */
.map-route-polyline {
  stroke-dasharray: 8, 6;
  animation: dash 15s linear infinite;
}

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(4px);
  transition: opacity var(--transition-normal);
}

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

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 480px;
  height: 100%;
  background-color: var(--bg-secondary);
  border-left: 1px solid var(--border-light);
  z-index: 201;
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-normal);
}

.cart-overlay.active .cart-drawer {
  transform: translateX(0);
}

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

.cart-header h3 {
  font-size: 1.4rem;
}

.cart-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.cart-close-btn svg {
  width: 1.3rem;
  height: 1.3rem;
}

.cart-items-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Empty State */
.cart-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  gap: 1rem;
  color: var(--text-muted);
}

.cart-empty-state svg {
  width: 4rem;
  height: 4rem;
  stroke: var(--text-muted);
}

/* Cart Item Card */
.cart-item {
  display: flex;
  gap: 1.25rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  padding: 1rem;
  border-radius: 16px;
  align-items: center;
  position: relative;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-item-img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.01);
  border-radius: 8px;
}

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

.cart-item-details h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-blue);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.qty-btn {
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.qty-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-focus);
}

.qty-val {
  font-size: 0.85rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

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

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

.cart-item-remove svg {
  width: 1.1rem;
  height: 1.1rem;
}

.cart-footer {
  padding: 2rem;
  border-top: 1px solid var(--border-light);
  background-color: var(--bg-tertiary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.cart-total-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.cart-total-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.checkout-btn {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1.1rem;
}

/* --- Checkout Success Screen / Modal --- */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity var(--transition-normal);
}

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

.success-content {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
  max-width: 420px;
  width: 90%;
  border-radius: 28px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-premium);
  transform: scale(0.9);
  transition: transform var(--transition-normal);
}

.success-modal.active .success-content {
  transform: scale(1);
}

.success-icon-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--accent-green-glow);
  color: var(--accent-green);
  border: 1px solid rgba(34, 197, 94, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  box-shadow: 0 0 30px rgba(34, 197, 94, 0.15);
}

.success-icon-container svg {
  width: 2.5rem;
  height: 2.5rem;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.success-modal.active svg {
  animation: drawCheck 0.6s ease-in-out forwards 0.3s;
}

@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.success-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

/* --- Footer --- */
footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
}

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

.footer-brand h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

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

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
}

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

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

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.social-links a:hover {
  color: var(--text-primary);
}

.social-links svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  html {
    font-size: 93.75%; /* Shrink fonts slightly on tablets */
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  
  .about-visual,
  .map-container {
    height: 380px;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 87.5%;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  section {
    padding: 5rem 0;
  }
  
  .nav-links {
    display: none; /* Hide default nav link list for simple mobile view */
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }
  
  .filter-tabs {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 0.3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
