/* ==========================================================================
   TopBoyzGorillaz - Streetwear E-Commerce Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070708;
  --bg-card: #111114;
  --bg-card-hover: #18181d;
  --bg-modal: #121215;
  --accent-red: #ff2a2a;
  --accent-red-bright: #ff4d4d;
  --accent-red-glow: rgba(255, 42, 42, 0.35);
  --accent-orange: #ff7700;
  --accent-amber: #ff9f1c;
  --text-main: #f8f9fa;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-red: rgba(255, 42, 42, 0.25);
  --font-headline: 'Bebas Neue', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: #27272a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-red);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Top Announcement Ticker */
.ticker-bar {
  background: linear-gradient(90deg, #b91c1c 0%, #ff2a2a 50%, #d97706 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 0.45rem 0.75rem;
  text-align: center;
  position: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(255, 42, 42, 0.3);
  word-break: break-word;
}

.ticker-bar span.fire-icon {
  animation: pulse-fire 1.5s infinite alternate;
  flex-shrink: 0;
}

@keyframes pulse-fire {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #fff); }
  100% { transform: scale(1.2); filter: drop-shadow(0 0 8px #ff9f1c); }
}

/* Header Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(7, 7, 8, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 0.85rem 0;
  transition: var(--transition-normal);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
  transition: var(--transition-fast);
}

.brand-text {
  font-family: var(--font-headline);
  font-size: 1.65rem;
  letter-spacing: 1.2px;
  line-height: 1;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-red) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

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

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition-fast);
  position: relative;
  padding: 0.25rem 0;
  white-space: nowrap;
}

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

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

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

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

.search-box {
  position: relative;
}

.search-box input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.85rem 0.45rem 2.1rem;
  color: var(--text-main);
  font-size: 0.82rem;
  outline: none;
  width: 160px;
  transition: var(--transition-fast);
}

.search-box input:focus {
  width: 190px;
  border-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.2);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.8rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
  flex-shrink: 0;
}

.btn-icon:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  box-shadow: 0 0 15px var(--accent-red-glow);
  transform: translateY(-2px);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent-amber);
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

/* Mobile Search Row Bar */
.mobile-search-row {
  display: none;
  padding: 0.5rem 0;
  border-top: 1px solid var(--border-light);
  background: rgba(7, 7, 8, 0.95);
}

.mobile-search-row input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem 0.5rem 2.2rem;
  color: #fff;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 42, 42, 0.22) 0%, rgba(255, 119, 0, 0.08) 40%, rgba(0,0,0,0) 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 42, 42, 0.12);
  border: 1px solid var(--border-red);
  color: var(--accent-red-bright);
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-headline);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  word-wrap: break-word;
}

.hero-title span.highlight {
  color: var(--accent-red);
  text-shadow: 0 0 25px var(--accent-red-glow);
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 1.75rem;
}

.hero-ctas {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #ff2a2a 0%, #d90429 100%);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px var(--accent-red-glow);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 42, 42, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-secondary:hover {
  border-color: var(--accent-red);
  background: rgba(255, 255, 255, 0.04);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  padding: 1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px var(--accent-red-glow);
  transform: rotate(-1.5deg);
  transition: var(--transition-normal);
}

.hero-card:hover {
  transform: rotate(0deg) scale(1.01);
}

.hero-card-img-wrap {
  width: 100%;
  height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  background: #000;
}

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

.hero-card-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 1px;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-sm);
}

.hero-card-details {
  margin-top: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-name {
  font-family: var(--font-headline);
  font-size: 1.3rem;
  letter-spacing: 1px;
}

.hero-card-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-amber);
}

/* Feature Highlights Bar */
.features-bar {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.feature-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.feature-icon {
  color: var(--accent-red);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.feature-text h4 {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feature-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Shop Section Header & Controls */
.shop-section {
  padding: 4rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-tag {
  color: var(--accent-red);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.section-title {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  letter-spacing: 1px;
  line-height: 1;
}

.filter-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
  box-shadow: 0 0 12px var(--accent-red-glow);
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  width: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--accent-red-glow);
}

.product-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 10;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-headline);
  font-size: 0.8rem;
  letter-spacing: 0.8px;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

.product-type-pill {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 10;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-img-wrap {
  position: relative;
  width: 100%;
  height: 290px;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

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

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

.quick-view-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-fast);
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

.btn-quickview {
  background: rgba(255, 255, 255, 0.9);
  color: #000;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.55rem 1.15rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

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

.product-title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  letter-spacing: 0.8px;
  line-height: 1.1;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

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

.product-size-selector {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.size-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 0.7rem;
  font-weight: 700;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.size-chip:hover,
.size-chip.selected {
  border-color: var(--accent-red);
  color: #fff;
  background: var(--accent-red-glow);
}

.product-bottom-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
  gap: 0.5rem;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-amber);
  white-space: nowrap;
}

.product-price span.currency {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: 2px;
}

.btn-add-cart {
  background: rgba(255, 42, 42, 0.15);
  border: 1px solid var(--border-red);
  color: var(--accent-red-bright);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
}

.btn-add-cart:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* About / Brand Story Section */
.brand-story-section {
  padding: 4rem 0;
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0d0d10 50%, var(--bg-dark) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.story-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--border-red);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.story-img-frame img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.story-content h2 {
  font-family: var(--font-headline);
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: 1px;
  margin-bottom: 0.85rem;
  line-height: 1;
}

.story-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Slide-Over Cart Drawer */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.cart-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--bg-modal);
  border-left: 1px solid var(--border-light);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

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

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

.cart-drawer-title {
  font-family: var(--font-headline);
  font-size: 1.4rem;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-close-drawer {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.35rem;
  cursor: pointer;
}

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

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

.cart-item {
  display: flex;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  align-items: center;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: #000;
  flex-shrink: 0;
}

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

.cart-item-name {
  font-family: var(--font-headline);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

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

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.qty-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-main);
  width: 22px;
  height: 22px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.qty-val {
  font-size: 0.8rem;
  font-weight: bold;
  min-width: 14px;
  text-align: center;
}

.btn-remove-item {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  margin-left: 0.35rem;
}

.cart-drawer-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--border-light);
  background: rgba(0, 0, 0, 0.4);
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.cart-summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px dashed var(--border-light);
  padding-top: 0.65rem;
  margin-top: 0.4rem;
  margin-bottom: 1rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--bg-modal);
  border: 1px solid var(--border-red);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.btn-close-modal {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.quickview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.quickview-img-col {
  background: #000;
}

.quickview-img-col img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.quickview-info-col {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
}

.modal-title {
  font-family: var(--font-headline);
  font-size: 2rem;
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.modal-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-bottom: 0.85rem;
}

.modal-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.modal-section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.checkout-form {
  padding: 1.75rem;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
  max-width: calc(100vw - 3rem);
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-red);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  pointer-events: auto;
}

/* Footer */
.footer {
  background: #040405;
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 1.75rem;
}

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

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

.footer-col h4 {
  font-family: var(--font-headline);
  font-size: 1.15rem;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.social-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
}

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

/* ==========================================================================
   Mobile & Tablet Responsive Styles (< 992px, < 768px, < 576px, < 380px)
   ========================================================================== */

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-ctas {
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide top menu links on smaller screens */
  }

  .brand-text {
    font-size: 1.35rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: left;
  }

  .feature-item {
    justify-content: flex-start;
  }

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

  .quickview-img-col img {
    min-height: 240px;
    max-height: 280px;
  }

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

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

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .hero-section {
    padding: 2.5rem 0 2rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .hero-card {
    max-width: 100%;
    transform: none;
    padding: 0.85rem;
  }

  .hero-card-img-wrap {
    height: 270px;
  }

  /* Single Column Product Cards on Mobile so they fit 100% width cleanly */
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-img-wrap {
    height: 260px;
  }

  .product-info {
    padding: 0.95rem;
  }

  .product-title {
    font-size: 1.25rem;
  }

  .cart-drawer {
    max-width: 100vw;
    width: 100vw;
  }

  .modal-container {
    padding: 0;
  }

  .checkout-form {
    padding: 1.1rem;
  }
}

@media (max-width: 480px) {
  .search-box {
    display: none; /* Mobile header space saving */
  }

  .mobile-search-row {
    display: block;
  }

  .brand-text {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
  }

  .ticker-bar {
    font-size: 0.7rem;
    padding: 0.35rem 0.5rem;
  }

  .filter-bar {
    gap: 0.35rem;
  }

  .filter-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.72rem;
  }
}
