/* ==========================================
   ADIDAS E-COMMERCE PLATFORM - MAIN STYLES
   ========================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #000000;
  --on-primary: #ffffff;
  --surface: #f9f9f9;
  --on-surface: #1a1c1c;
  --secondary: #757575;
  --on-secondary: #ffffff;
  --error: #d32f2f;
  --success: #2e7d32;
  --solar-red: #FF3100;
  --outline: #e0e0e0;
  --outline-variant: #cfc4c5;
  --surface-container-low: #f3f3f3;
  --surface-container-highest: #e8e8e8;
  --surface-variant: #f5f5f5;

  /* Spacing */
  --stack-sm: 8px;
  --stack-md: 16px;
  --stack-lg: 24px;
  --stack-xl: 48px;
  --gutter: 16px;
  --margin-mobile: 16px;
  --margin-desktop: 40px;
  --container-max: 1280px;

  /* Fonts */
  --font-headline: 'Oswald', 'Arial Black', sans-serif;
  --font-body: 'Hanken Grotesk', 'Segoe UI', sans-serif;
  --font-size-lg: 18px;
  --font-size-md: 16px;
  --font-size-sm: 14px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--surface);
  color: var(--on-surface);
  line-height: 1.6;
  font-size: var(--font-size-md);
  overflow-x: hidden;
}

/* ==========================================
   GLOBAL: every button / clickable -> pointer
   ========================================== */
button,
.btn,
.icon-button,
.quick-add-btn,
.nav-menu a,
.footer-links a,
.tab-link,
.size-btn,
.filter-chip,
.payment-method-btn,
.theme-toggle,
.cart-icon,
.search-icon,
.cta-button,
.add-to-cart-btn,
input[type="button"],
input[type="submit"],
a {
  cursor: pointer;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

/* Brand Ticker Bar */
.brand-ticker {
  background: var(--primary);
  overflow: hidden;
  white-space: nowrap;
  padding: 7px 0;
  position: relative;
}

.brand-ticker::before,
.brand-ticker::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
}
.brand-ticker::before {
  left: 0;
  background: linear-gradient(90deg, var(--primary), transparent);
}
.brand-ticker::after {
  right: 0;
  background: linear-gradient(-90deg, var(--primary), transparent);
}

.brand-ticker-track {
  display: inline-flex;
  animation: tickerScroll 20s linear infinite;
}

.brand-ticker-track span {
  color: rgba(255,255,255,0.6);
  font-family: var(--font-headline);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 0 28px;
  transition: all 0.3s;
  cursor: pointer;
}

.brand-ticker-track span:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(255,49,0,0.6);
}

.brand-ticker-track .sep {
  color: var(--solar-red);
  padding: 0 8px;
  font-size: 6px;
  opacity: 0.8;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Header Main Row */
.header-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px var(--margin-mobile);
  gap: 16px;
  position: relative;
}

/* Logo */
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 2;
}
.logo svg {
  height: 50px;
  width: auto;
  transition: transform 0.3s;
}
.logo:hover svg {
  transform: scale(1.05);
}

/* Footer Logo */
.footer-logo svg {
  height: 80px;
  width: auto;
}

/* Main Navigation */
.nav-menu {
  display: none;
  gap: 0;
  list-style: none;
  align-items: center;
}

.nav-menu.active {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background-color: #fff;
  border-bottom: 3px solid var(--primary);
  padding: 12px;
  z-index: 49;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-menu a {
  text-decoration: none;
  color: var(--on-surface);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1.5px;
  padding: 8px 14px;
  border-radius: 4px;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--solar-red);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

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

.nav-menu a:hover::after,
.nav-menu a.active::after {
  transform: scaleX(1);
}

/* Brands Sub-Navbar */
.brand-navbar {
  border-top: 1px solid #f0f0f0;
  background: #fafafa;
}

.brand-navbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 0 var(--margin-mobile);
}

/* Mobile Menu Extras */
.mobile-menu-divider {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 8px 0;
}
.mobile-menu-section-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #999;
  padding: 8px 14px 4px;
}
.mobile-menu-home {
  font-weight: 700 !important;
  color: var(--primary) !important;
}
.mobile-menu-user {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 14px !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  color: #333 !important;
  border-bottom: 1px solid #f0f0f0 !important;
}
.mobile-menu-user:hover {
  background: #f5f5f5 !important;
  color: var(--primary) !important;
}
.mobile-menu-logout {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 12px 14px !important;
  font-size: 13px !important;
  letter-spacing: 0.5px !important;
  text-transform: none !important;
  color: #e53935 !important;
  font-weight: 600;
}
.mobile-menu-logout:hover {
  background: #fff5f5 !important;
}

/* Mobile menu toggle */
@media (max-width: 767px) {
  .brand-navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 49;
    background: #fff;
    border-top: 3px solid var(--primary);
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    animation: slideDown 0.3s ease;
  }
  .brand-navbar.active {
    display: block;
  }
  .brand-navbar-inner {
    flex-direction: column;
    padding: 12px;
    gap: 0;
  }
  .brand-navbar a {
    width: 100%;
    text-align: center;
    padding: 12px 14px;
    font-size: 12px;
    letter-spacing: 2px;
    border-bottom: 1px solid #f0f0f0;
    color: #1a1a1a;
  }
  .brand-navbar a:last-child {
    border-bottom: none;
  }
  .brand-navbar a:hover,
  .brand-navbar a.active {
    background: var(--primary);
    color: #fff;
  }
  /* Profile dark theme override */
  .brand-navbar[style*="background: #111"] a {
    color: #aaa;
    border-bottom-color: #222;
  }
  .brand-navbar[style*="background: #111"] a:hover,
  .brand-navbar[style*="background: #111"] a.active {
    background: var(--primary);
    color: #fff;
  }
}

.brand-navbar a {
  text-decoration: none;
  color: #555;
  font-family: var(--font-headline);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 2.5px;
  padding: 12px 20px;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
  border-bottom: 2px solid transparent;
}

.brand-navbar a:hover,
.brand-navbar a.active {
  color: var(--primary);
  border-bottom-color: var(--solar-red);
  background: rgba(255,49,0,0.03);
}

@media (min-width: 768px) {
  .nav-menu {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    border: none;
    padding: 0;
    gap: 0;
    box-shadow: none;
    animation: none;
  }
  .nav-menu a {
    padding: 8px 10px;
  }
  .nav-menu a::after { bottom: 0; left: 10px; right: 10px; }
}

.header-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #1a1a1c;
  transition: color 0.2s;
  position: relative;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover { color: var(--solar-red); }
.icon-button:active { transform: scale(0.92); }

/* ==========================================
   HEADER SEARCH
   ========================================== */

.header-search {
  position: relative;
}

.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1a1a1c;
  transition: color 0.2s, background 0.2s;
}

.search-toggle-btn:hover {
  color: var(--solar-red);
  background: rgba(255, 49, 0, 0.06);
}

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 400px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  overflow: hidden;
}

.search-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.search-input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'Hanken Grotesk', sans-serif;
  color: #1a1a1c;
  background: transparent;
}

.search-input-wrap input::placeholder {
  color: #aaa;
}

.search-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color 0.2s;
}

.search-close-btn:hover { color: #FF3100; }

.search-results {
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.search-results::-webkit-scrollbar { width: 5px; }
.search-results::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid #f8f8f8;
}

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

.search-result-item:hover {
  background: #fafafa;
}

.search-result-img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f3f3;
  flex-shrink: 0;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #1a1a1c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
  text-transform: capitalize;
}

.search-result-price {
  font-weight: 800;
  font-size: 14px;
  color: #FF3100;
  white-space: nowrap;
  font-family: 'Oswald', sans-serif;
}

.search-no-results {
  padding: 32px 16px;
  text-align: center;
  color: #aaa;
  font-size: 13px;
}

.search-no-results .icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.search-hint {
  padding: 12px 16px;
  text-align: center;
  color: #bbb;
  font-size: 12px;
  letter-spacing: 0.5px;
}

@media (max-width: 480px) {
  .search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0;
    max-height: 100vh;
  }
  .search-results { max-height: calc(100vh - 60px); }
}

/* ==========================================
   USER AVATAR (top-right corner)
   ========================================== */

.user-avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--solar-red);
  color: #fff;
  border: 2px solid #fff;
  outline: 2px solid var(--primary);
  font-weight: 700;
  font-family: var(--font-headline);
  font-size: 14px;
  text-transform: uppercase;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, outline-color 0.2s;
  overflow: hidden;
  position: relative;
  padding: 0;
}
.user-avatar-btn:hover { transform: scale(1.08); outline-color: var(--solar-red); }
.user-avatar-btn.logged-in { display: inline-flex; }
.user-avatar-btn img { width: 100%; height: 100%; object-fit: cover; }

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 50;
}

.hamburger span {
  width: 22px;
  height: 2.5px;
  background-color: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s;
}

.hamburger:hover span {
  background-color: var(--primary);
}

.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);
}

@media (min-width: 768px) { .hamburger { display: none; } }

/* ==========================================
   HEADER SOCIAL ICONS
   ========================================== */

.header-social {
  display: none;
  gap: 8px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

@media (min-width: 768px) {
  .header-social { display: flex; }
}

.header-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1a1a1c;
  text-decoration: none;
  transition: all 0.3s ease;
  background: transparent;
}

.header-social a:hover {
  background: var(--solar-red);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 49, 0, 0.3);
}

.header-social a svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ==========================================
   MAIN CONTENT LAYOUT
   ========================================== */

main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--stack-md) var(--margin-mobile);
}

section { margin-bottom: var(--stack-xl); }

/* Shop Layout */
.shop-layout {
  display: flex;
  gap: 40px;
}

.shop-sidebar {
  width: 250px;
  flex-shrink: 0;
}

.shop-main {
  flex: 1;
  min-width: 0;
}

@media (max-width: 768px) {
  .shop-layout {
    flex-direction: column;
    gap: 24px;
  }
  .shop-sidebar {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
  }
  .shop-sidebar > div {
    flex: 1;
    min-width: 140px;
  }
}

/* ==========================================
   HERO SECTION (with background image)
   ========================================== */

.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 80px 60px;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 60%, rgba(255,49,0,0.35) 100%),
    url('https://images.unsplash.com/photo-1556906781-9a412961c28c?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  border-bottom: 2px solid var(--outline);
  margin-bottom: var(--stack-md);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -80px;
  width: 380px;
  height: 380px;
  background: var(--solar-red);
  transform: rotate(45deg);
  opacity: 0.18;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-tag {
  display: inline-block;
  font-family: var(--font-headline);
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--solar-red);
  color: #fff;
  padding: 6px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-headline);
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--stack-md);
  color: #fff;
  letter-spacing: -1px;
}

.hero h1 span { color: var(--solar-red); }

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: var(--stack-lg);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.hero .btn-primary:hover { background: var(--solar-red); border-color: var(--solar-red); color: #fff; }
.hero .btn-secondary { color: #fff; border-color: #fff; background: transparent; }
.hero .btn-secondary:hover { background: #fff; color: var(--primary); }

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 28px;
  color: #fff;
}
.hero-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
  .hero { padding: 48px 24px; min-height: 380px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .hero-tag { font-size: 11px; }
  .hero::after { width: 200px; height: 200px; right: -80px; bottom: -60px; }
  .hero-stats { gap: 24px; }
  .hero-stat strong { font-size: 24px; }
}

/* ==========================================
   HERO SLIDER
   ========================================== */

.hero-slider {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  margin-bottom: var(--stack-md);
  border-bottom: 2px solid var(--outline);
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  display: flex;
  align-items: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 60px;
  color: #fff;
}

.hero-slide-content .hero-tag {
  display: inline-block;
  font-family: var(--font-headline);
  letter-spacing: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--solar-red);
  color: #fff;
  padding: 6px 14px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-slide-content h1 {
  font-family: var(--font-headline);
  font-size: 64px;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--stack-md);
  color: #fff;
  letter-spacing: -1px;
}

.hero-slide-content h1 span { color: var(--solar-red); }

.hero-slide-content p {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: var(--stack-lg);
}

.hero-slide-content .hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-slide-content .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}
.hero-slide-content .btn-primary:hover {
  background: var(--solar-red);
  border-color: var(--solar-red);
  color: #fff;
}
.hero-slide-content .btn-secondary {
  color: #fff;
  border-color: #fff;
  background: transparent;
}
.hero-slide-content .btn-secondary:hover {
  background: #fff;
  color: var(--primary);
}

.hero-slide-content .hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.hero-slide-content .hero-stat strong {
  display: block;
  font-family: var(--font-headline);
  font-size: 28px;
  color: #fff;
}

.hero-slide-content .hero-stat span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.7);
}

/* Slider Navigation Buttons */
/* Slider Dots */
.hero-slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot:hover {
  background: rgba(255,255,255,0.5);
}

.hero-dot.active {
  background: var(--solar-red);
  border-color: var(--solar-red);
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 49, 0, 0.5);
}

/* Hero Slider Responsive */
@media (max-width: 768px) {
  .hero-slider { min-height: 380px; }
  .hero-slides { height: 380px; }
  .hero-slide-content { padding: 48px 24px; }
  .hero-slide-content h1 { font-size: 36px; }
  .hero-slide-content p { font-size: 15px; }
  .hero-slide-content .hero-stats { gap: 24px; }
  .hero-slide-content .hero-stat strong { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-slider { min-height: 320px; }
  .hero-slides { height: 320px; }
  .hero-slide-content { padding: 40px 16px; }
  .hero-slide-content h1 { font-size: 28px; }
  .hero-slide-content p { font-size: 14px; }
  .hero-slide-content .hero-actions { flex-direction: column; gap: 10px; }
  .hero-slide-content .hero-actions .btn { width: 100%; }
  .hero-slide-content .hero-stats { gap: 20px; margin-top: 32px; }
  .hero-slide-content .hero-stat strong { font-size: 22px; }
  .hero-dot { width: 10px; height: 10px; }
}

/* ==========================================
   PREMIUM PRODUCT CARDS — BLACK & ORANGE
   ========================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: var(--stack-lg);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-grid::-webkit-scrollbar {
  display: none;
}

/* Scroll Animation - Initial State */
.product-card {
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Stagger Animation */
.product-card.visible:nth-child(1) { transition-delay: 0s; }
.product-card.visible:nth-child(2) { transition-delay: 0.1s; }
.product-card.visible:nth-child(3) { transition-delay: 0.2s; }
.product-card.visible:nth-child(4) { transition-delay: 0.3s; }
.product-card.visible:nth-child(5) { transition-delay: 0.4s; }
.product-card.visible:nth-child(6) { transition-delay: 0.5s; }
.product-card.visible:nth-child(7) { transition-delay: 0.6s; }
.product-card.visible:nth-child(8) { transition-delay: 0.7s; }

/* Card Base */
.product-card {
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  position: relative;
  overflow: clip;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card::-webkit-scrollbar,
.product-card::-webkit-scrollbar-track,
.product-card::-webkit-scrollbar-thumb,
.product-card::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
  border: none !important;
}

.product-card:hover {
  border-color: #e0e0e0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-6px);
}

/* Product Image */
.product-image {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  position: relative;
  border-radius: 16px 16px 0 0;
}

.product-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 107, 0, 0.05), transparent 60%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.5s;
}

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

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 70%, rgba(0, 0, 0, 0.05) 100%);
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover .product-image::after { opacity: 1; }

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Badges */
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, #FF6B00, #FF3100);
  color: #fff;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  z-index: 4;
  border-radius: 8px;
  font-family: 'Oswald', sans-serif;
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.product-badge.sale {
  background: linear-gradient(135deg, #e53935, #c62828);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

.product-badge.hot {
  background: linear-gradient(135deg, #FF6B00, #FF8F00);
  box-shadow: 0 4px 15px rgba(255, 107, 0, 0.4);
}

.product-badge.new {
  background: linear-gradient(135deg, #00C853, #009624);
  box-shadow: 0 4px 15px rgba(0, 200, 83, 0.3);
}

/* Like Button */
.like-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #e0e0e0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.like-btn:hover {
  background: #fff;
  border-color: #FF6B00;
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.like-btn.liked {
  background: rgba(255, 107, 0, 0.1);
  border-color: #FF6B00;
}

.like-btn.pop {
  animation: likePop 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes likePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  100% { transform: scale(1); }
}

/* Like Count */
.product-like-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #333;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  z-index: 3;
  border: 1px solid #e0e0e0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  height: auto;
  max-height: 28px;
  overflow: hidden;
  white-space: nowrap;
}

/* Product Info */
.product-info {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.product-category {
  font-size: 10px;
  text-transform: uppercase;
  color: #FF6B00;
  font-weight: 700;
  letter-spacing: 2.5px;
  font-family: 'Oswald', sans-serif;
}

.product-name {
  font-family: 'Oswald', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a1a;
  line-height: 1.3;
  letter-spacing: 0.5px;
  transition: color 0.3s;
}

.product-card:hover .product-name { color: #FF6B00; }

.product-description {
  font-size: 12px;
  color: #888;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Rating */
.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.stars {
  display: flex;
  gap: 2px;
}

.star {
  color: #FF6B00;
  font-size: 12px;
}

.star.empty {
  color: #ddd;
}

.rating-count {
  font-size: 11px;
  color: #999;
}

/* Price Section */
.product-price-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
}

.product-price del {
  color: #bbb;
  font-weight: 500;
  margin-right: 8px;
  font-size: 14px;
  font-family: 'Hanken Grotesk', sans-serif;
  text-decoration: line-through;
  text-decoration-color: #FF6B00;
}

.product-price ins {
  text-decoration: none;
  color: #FF6B00;
}

.discount-tag {
  background: rgba(255, 107, 0, 0.1);
  color: #FF6B00;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Stock Status */
.stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.stock-dot.in-stock {
  background: #00C853;
  box-shadow: 0 0 6px rgba(0, 200, 83, 0.4);
}

.stock-dot.low-stock {
  background: #FF6B00;
  box-shadow: 0 0 6px rgba(255, 107, 0, 0.4);
}

.stock-dot.out-of-stock {
  background: #e53935;
  box-shadow: 0 0 6px rgba(229, 57, 53, 0.4);
  animation: none;
}

.stock-text.in-stock { color: #00C853; }
.stock-text.low-stock { color: #FF6B00; }
.stock-text.out-of-stock { color: #e53935; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Buttons Container */
.product-buttons {
  padding: 0 16px 16px;
  display: flex;
  gap: 8px;
}

/* Add to Cart Button */
.quick-add-btn {
  flex: 1;
  background: #1a1a1a;
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-family: 'Oswald', sans-serif;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.quick-add-btn:hover {
  background: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.quick-add-btn:active {
  transform: scale(0.98);
}

.quick-add-btn svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Buy Now Button */
.buy-now-btn {
  flex: 1;
  background: linear-gradient(135deg, #FF6B00, #FF3100);
  color: #fff;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1.5px;
  font-family: 'Oswald', sans-serif;
  z-index: 2;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.buy-now-btn:hover {
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.35);
  transform: translateY(-1px);
}

.buy-now-btn:active {
  transform: scale(0.98);
}
  transform: translateY(100%);
  transition: transform 0.3s, background 0.3s, color 0.3s;
  font-size: 11px;
  letter-spacing: 2px;
  font-family: 'Oswald', sans-serif;
  z-index: 2;
}

.product-card:hover .buy-now-btn { transform: translateY(0); }
.buy-now-btn:hover { background: #FF3100; color: #fff; }
.buy-now-btn:active { transform: translateY(0) scale(0.98); }

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 2px solid transparent;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  font-size: 14px;
  font-family: var(--font-headline);
  letter-spacing: 1.5px;
  text-align: center;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: linear-gradient(135deg, #FF6B00, #FF3100);
  color: #fff;
  border-color: #FF3100;
  box-shadow: 0 4px 15px rgba(255, 49, 0, 0.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FF3100, #e62d00);
  border-color: #FF3100;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 49, 0, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: #FF3100;
  border-color: #FF3100;
}
.btn-secondary:hover {
  background: linear-gradient(135deg, #FF6B00, #FF3100);
  color: #fff;
  border-color: #FF3100;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 49, 0, 0.3);
}

.btn-danger {
  background-color: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger:hover { background-color: #b71c1c; border-color: #b71c1c; }

.btn-success { background: var(--success); color: #fff; border-color: var(--success); }
.btn-success:hover { background: #1b5e20; border-color: #1b5e20; }

.btn-full-width { width: 100%; }
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ==========================================
   FORMS
   ========================================== */

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

label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 0;
  border: none;
  border-bottom: 2px solid var(--outline-variant);
  background-color: transparent;
  font-family: var(--font-body);
  font-size: var(--font-size-md);
  color: var(--on-surface);
  transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-bottom-color: var(--primary);
}

input::placeholder { color: var(--surface-container-highest); text-transform: uppercase; }

input[type="checkbox"], input[type="radio"] {
  width: auto;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Form with boxed inputs (login/signup) */
.boxed-form .form-group { margin-bottom: 18px; }
.boxed-form input,
.boxed-form select {
  border: 2px solid var(--outline);
  border-radius: 4px;
  padding: 14px 16px;
  background: #fff;
}
.boxed-form input:focus, .boxed-form select:focus {
  border-color: var(--primary);
}
.boxed-form label { color: var(--on-surface); margin-bottom: 6px; }

/* ==========================================
   AUTH (LOGIN / SIGNUP) CARDS
   ========================================== */

.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(255,49,0,0.6) 100%),
    url('https://images.unsplash.com/photo-1542291026-7eec264c27ff?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

.auth-card {
  background: #fff;
  width: 100%;
  max-width: 440px;
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  border-top: 4px solid var(--solar-red);
}

.auth-card h1 {
  font-family: var(--font-headline);
  font-size: 32px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--primary);
}
.auth-card .subtitle {
  color: var(--secondary);
  margin-bottom: 28px;
  font-size: 14px;
}

.auth-card .form-actions { margin-top: 24px; }

.auth-card .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--secondary);
}
.auth-card .auth-footer a {
  color: var(--solar-red);
  font-weight: 700;
  text-decoration: none;
}
.auth-card .auth-footer a:hover { text-decoration: underline; }

.auth-error {
  background: #ffe5e5;
  color: var(--error);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-error.show { display: block; }

.auth-success {
  background: #e6f4ea;
  color: var(--success);
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  margin-bottom: 16px;
  display: none;
}
.auth-success.show { display: block; }

/* ==========================================
   PRODUCT DETAIL (card) PAGE
   ========================================== */

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
  align-items: start;
}

.product-detail-image {
  background: #fff;
  border: 1px solid var(--outline);
  overflow: hidden;
  position: sticky;
  top: 120px;
  max-height: 480px;
}
.product-detail-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }

.product-detail-info h1 {
  font-family: var(--font-headline);
  font-size: 40px;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1.1;
}

.product-detail-info .product-category { font-size: 13px; margin-bottom: 16px; }

.product-detail-info .product-price {
  font-size: 28px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.product-detail-info .description {
  color: var(--on-surface);
  line-height: 1.6;
  margin-bottom: 16px;
  font-size: 14px;
}

.size-selector { margin-bottom: 24px; }
.size-options { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  border: 2px solid var(--outline);
  background: #fff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  min-width: 54px;
  transition: all 0.2s;
}
.size-btn:hover { border-color: var(--primary); }
.size-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.qty-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.qty-selector label { margin: 0; }
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--outline);
}
.qty-control button {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: 700;
}
.qty-control button:hover { background: var(--primary); color: #fff; }
.qty-control input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 2px solid var(--outline);
  border-right: 2px solid var(--outline);
  padding: 0;
  height: 40px;
  font-weight: 700;
}

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.detail-features {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.detail-feature {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--surface-container-low);
  font-size: 11px;
  font-weight: 600;
}
.detail-feature .icon { font-size: 14px; }

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .product-detail-info h1 { font-size: 28px; }
  .product-detail-info .product-price { font-size: 24px; }
  .product-detail-image { position: static; max-height: none; aspect-ratio: 4/3; }
}

@media (max-width: 480px) {
  .product-detail-info h1 { font-size: 22px; }
  .product-detail-info .product-price { font-size: 20px; }
}

/* ==========================================
   FOOTER
   ========================================== */

footer {
  background-color: var(--primary);
  color: var(--on-primary);
  padding: 0;
  margin-top: var(--stack-xl);
}

footer .footer-container { max-width: var(--container-max); margin: 0 auto; }

.footer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--margin-mobile);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
}
.footer-brand svg {
  height: 70px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  background: var(--solar-red);
  border-color: var(--solar-red);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 49, 0, 0.4);
}

.footer-social a svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer-body {
  padding: 40px var(--margin-mobile) 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--stack-lg);
  margin-bottom: var(--stack-lg);
}

.footer-section h3 {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--stack-md);
  letter-spacing: 2px;
  color: var(--solar-red);
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s, padding-left 0.3s;
  display: inline-block;
}
.footer-links a:hover {
  color: #fff;
  padding-left: 6px;
}

footer hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.1); margin: 0; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--stack-md);
  font-size: 11px;
  padding: 20px var(--margin-mobile);
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-bottom p { margin: 0; }

@media (max-width: 768px) {
  .footer-top-bar {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  .footer-social { justify-content: center; }
  .footer-content { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================
   UTILITY
   ========================================== */

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--margin-mobile); }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-solar-red { color: var(--solar-red); }
.mb-sm { margin-bottom: var(--stack-sm); }
.mb-md { margin-bottom: var(--stack-md); }
.mb-lg { margin-bottom: var(--stack-lg); }
.mt-md { margin-top: var(--stack-md); }
.gap-md { gap: var(--stack-md); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

/* ==========================================
   RESPONSIVE - Industry Standard Breakpoints
   320px  Small Mobile (iPhone SE)
   360px  Standard Mobile (Most Android)
   480px  Large Mobile / Landscape
   576px  Bootstrap sm
   768px  Tablet (iPad portrait)
   1024px Tablet landscape / Small desktop
   ========================================== */

/* 1024px — Tablet Landscape */
@media (max-width: 1024px) {
  .header-container { padding: 10px 16px; }
  .logo svg { height: 42px; }
  .brand-navbar a { padding: 10px 14px; font-size: 10px; letter-spacing: 2px; }
  .hero { min-height: 440px; padding: 60px 40px; }
  .hero h1 { font-size: 52px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .shop-layout { gap: 28px; }
  .shop-sidebar { width: 220px; }
  .footer-content { grid-template-columns: repeat(2, 1fr); }
}

/* 768px — Tablet */
@media (max-width: 768px) {
  .header-container { padding: 8px 12px; }
  .logo svg { height: 38px; }
  .header-actions { gap: 2px; }
  .icon-button { width: 36px; height: 36px; font-size: 18px; padding: 6px; }
  .user-avatar-btn { width: 34px; height: 34px; font-size: 13px; }
  .fav-count, .cart-count { width: 16px !important; height: 16px !important; font-size: 10px !important; }
  .brand-ticker { padding: 5px 0; }
  .brand-ticker-track span { font-size: 9px; padding: 0 20px; letter-spacing: 2px; }
  .brand-navbar { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .brand-navbar-inner { padding: 0 8px; gap: 0; }
  .brand-navbar a { padding: 10px 12px; font-size: 10px; letter-spacing: 1.5px; }
  .hero { min-height: 360px; padding: 48px 24px; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 15px; }
  .hero::after { width: 200px; height: 200px; right: -80px; bottom: -60px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-card { border-radius: 16px; }
  .product-name { font-size: 15px; }
  .product-description { font-size: 11px; }
  .product-price { font-size: 18px; }
  .product-category { font-size: 9px; letter-spacing: 1.5px; }
  .product-info { padding: 14px; gap: 6px; }
  .product-rating { gap: 4px; }
  .stars { gap: 1px; }
  .star { font-size: 10px; }
  .rating-count { font-size: 10px; }
  .product-price-section { gap: 8px; }
  .discount-tag { font-size: 9px; padding: 2px 6px; }
  .stock-status { font-size: 10px; }
  .product-buttons { padding: 0 14px 14px; gap: 6px; }
  .quick-add-btn { padding: 10px; font-size: 10px; letter-spacing: 1px; border-radius: 8px; }
  .buy-now-btn { padding: 10px; font-size: 10px; letter-spacing: 1px; border-radius: 8px; }
  .like-btn { width: 34px; height: 34px; font-size: 14px; top: 10px; right: 10px; }
  .product-badge { padding: 4px 10px; font-size: 9px; top: 10px; left: 10px; border-radius: 6px; }
  .product-like-count { bottom: 10px; right: 10px; font-size: 10px; padding: 3px 8px; }
  .shop-layout { flex-direction: column; gap: 24px; }
  .shop-sidebar { width: 100%; display: flex; flex-wrap: wrap; gap: 16px; }
  .shop-sidebar > div { flex: 1; min-width: 140px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-info h1 { font-size: 28px; }
  .product-detail-info .product-price { font-size: 24px; }
  .product-detail-image { position: static; max-height: none; aspect-ratio: 4/3; }
  .btn { padding: 12px 20px; font-size: 13px; }
  .footer-top-bar { flex-direction: column; gap: 16px; text-align: center; padding: 16px 12px; }
  .footer-brand svg { height: 60px; }
  .footer-social { justify-content: center; }
  .footer-body { padding: 24px 12px; }
  .footer-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-section h3 { font-size: 13px; margin-bottom: 12px; }
  .footer-links a { font-size: 12px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; padding: 16px 12px; }
  .search-wrap { max-width: 100%; padding: 0 12px; }
  .search-box { height: 44px; }
  .search-dropdown { max-height: 360px; }
  .auth-wrapper { padding: 24px 16px; }
  .auth-card { padding: 28px 20px; }
  .auth-card h1 { font-size: 26px; }
  .profile-shell { grid-template-columns: 1fr; }
}

/* 576px — Large Phone */
@media (max-width: 576px) {
  .logo svg { height: 36px; }
  .brand-ticker-track span { font-size: 8px; padding: 0 18px; letter-spacing: 1.5px; }
  .brand-navbar a { padding: 9px 11px; font-size: 9.5px; }
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 14px; }
  .hero-tag { font-size: 10px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 14px; }
  .product-info { padding: 10px; gap: 4px; }
  .product-name { font-size: 12px; }
  .product-description { display: none; }
  .product-price { font-size: 14px; }
  .product-category { font-size: 8px; letter-spacing: 1px; }
  .product-rating { display: none; }
  .product-price-section { gap: 6px; }
  .discount-tag { font-size: 8px; padding: 2px 5px; }
  .stock-status { font-size: 9px; margin-top: 4px; }
  .product-buttons { padding: 0 10px 10px; gap: 5px; }
  .quick-add-btn { padding: 9px; font-size: 9px; letter-spacing: 0.8px; border-radius: 8px; }
  .buy-now-btn { padding: 9px; font-size: 9px; letter-spacing: 0.8px; border-radius: 8px; }
  .like-btn { width: 30px; height: 30px; font-size: 12px; }
  .product-badge { font-size: 8px; padding: 3px 8px; }
  .product-like-count { display: none; }
  .product-detail-info h1 { font-size: 24px; }
  .product-detail-info .product-price { font-size: 22px; }
  .footer-brand svg { height: 55px; }
}

/* 480px — Large Mobile */
@media (max-width: 480px) {
  .logo svg { height: 34px; }
  .brand-ticker-track span { font-size: 8px; padding: 0 16px; }
  .brand-navbar a { padding: 8px 10px; font-size: 9px; letter-spacing: 1px; }
  .hero { min-height: 320px; padding: 40px 16px; }
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 14px; }
  .hero-tag { font-size: 10px; padding: 4px 10px; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 20px; margin-top: 32px; }
  .hero-stat strong { font-size: 22px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .product-card { border-radius: 12px; }
  .product-info { padding: 8px; gap: 3px; }
  .product-name { font-size: 11px; }
  .product-price { font-size: 13px; }
  .product-category { font-size: 8px; }
  .product-buttons { padding: 0 8px 8px; gap: 4px; }
  .quick-add-btn { padding: 8px; font-size: 8px; border-radius: 6px; }
  .buy-now-btn { padding: 8px; font-size: 8px; border-radius: 6px; }
  .like-btn { width: 28px; height: 28px; font-size: 11px; }
  .stock-status { font-size: 8px; }
  .product-detail-info h1 { font-size: 22px; }
  .product-detail-info .product-price { font-size: 20px; }
  .footer-brand svg { height: 50px; }
  .footer-social a { width: 36px; height: 36px; }
  .footer-social a svg { width: 14px; height: 14px; }
  .auth-card h1 { font-size: 22px; }
  .auth-card .subtitle { font-size: 13px; }
}

/* 360px — Standard Mobile */
@media (max-width: 360px) {
  .logo svg { height: 32px; }
  .header-container { padding: 6px 10px; }
  .icon-button { width: 34px; height: 34px; font-size: 16px; padding: 5px; }
  .user-avatar-btn { width: 32px; height: 32px; font-size: 12px; }
  .brand-ticker { padding: 4px 0; }
  .brand-ticker-track span { font-size: 7.5px; padding: 0 14px; letter-spacing: 1px; }
  .brand-navbar a { padding: 8px 8px; font-size: 8.5px; letter-spacing: 0.8px; }
  .hero { min-height: 280px; padding: 32px 12px; }
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 13px; }
  .hero-tag { font-size: 9px; }
  .hero-stat strong { font-size: 20px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .product-card { border-radius: 10px; }
  .product-info { padding: 6px; gap: 2px; }
  .product-name { font-size: 10px; }
  .product-price { font-size: 12px; }
  .product-category { font-size: 7px; letter-spacing: 0.8px; }
  .product-buttons { padding: 0 6px 6px; gap: 4px; }
  .quick-add-btn { padding: 7px; font-size: 7px; border-radius: 6px; letter-spacing: 0.5px; }
  .buy-now-btn { padding: 7px; font-size: 7px; border-radius: 6px; letter-spacing: 0.5px; }
  .like-btn { width: 24px; height: 24px; font-size: 10px; top: 6px; right: 6px; }
  .product-badge { font-size: 7px; padding: 2px 6px; top: 6px; left: 6px; }
  .stock-status { font-size: 7px; }
  .btn { padding: 10px 16px; font-size: 12px; }
  .footer-brand svg { height: 45px; }
  .footer-section h3 { font-size: 12px; }
  .footer-links a { font-size: 11px; }
  .auth-card { padding: 24px 16px; }
  .auth-card h1 { font-size: 20px; }
}

/* 320px — Small Mobile (iPhone SE) */
@media (max-width: 320px) {
  .logo svg { height: 28px; }
  .brand-ticker-track span { font-size: 7px; padding: 0 12px; }
  .brand-navbar a { padding: 7px 7px; font-size: 8px; letter-spacing: 0.5px; }
  .hero { min-height: 260px; padding: 28px 10px; }
  .hero h1 { font-size: 22px; }
  .hero p { font-size: 12px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 5px; }
  .product-info { padding: 6px; }
  .product-name { font-size: 10px; }
  .product-price { font-size: 11px; }
  .footer-brand svg { height: 40px; }
  .footer-social a { width: 32px; height: 32px; }
  .footer-social a svg { width: 12px; height: 12px; }
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.slide-in { animation: slideIn 0.5s ease-out; }
.fade-in  { animation: fadeIn 0.5s ease-out; }
.pop      { animation: pop 0.4s ease; }

/* ==========================================
   LIKE BUTTON ON PRODUCT CARD
   ========================================== */

.like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: transform 0.2s, background 0.2s;
  cursor: pointer;
}
.like-btn:hover { transform: scale(1.12); background: #fff; }
.like-btn.liked { background: #fff; }
.like-btn .like-icon { line-height: 1; }

.product-like-count {
  position: absolute;
  top: 56px;
  right: 12px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  height: 24px;
  min-height: 24px;
  max-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
  align-self: flex-start;
  border: 1px solid #e0e0e0;
}

/* ==========================================
   GREAT SEARCH BAR (with live dropdown)
   ========================================== */

.search-wrap {
  position: relative;
  max-width: 540px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: none;
}
.search-wrap.open { display: block; }

.search-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 0;
  padding: 0 16px;
  height: 48px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.search-box:focus-within { box-shadow: 0 6px 20px rgba(255, 49, 0, 0.18); }

.search-box .search-ico {
  font-size: 20px;
  color: var(--primary);
  margin-right: 12px;
  flex-shrink: 0;
}
.search-box input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-size: 15px;
  padding: 0 !important;
  height: 100%;
  outline: none;
  text-transform: none !important;
  color: var(--on-surface) !important;
}
.search-box input::placeholder { color: #999; text-transform: none; }
.search-box .search-clear {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--secondary);
  padding: 4px 8px;
  cursor: pointer;
  display: none;
}
.search-box .search-clear:hover { color: var(--error); }
.search-box.has-text .search-clear { display: block; }

.search-dropdown {
  position: absolute;
  top: 64px;
  left: 16px;
  right: 16px;
  background: #fff;
  border: 2px solid var(--primary);
  border-top: none;
  max-height: 480px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
  display: none;
}
.search-dropdown.open { display: block; }

.search-result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--outline-variant);
  transition: background 0.15s;
}
.search-result:last-child { border-bottom: none; }
.search-result:hover,
.search-result.active { background: var(--surface-container-low); }
.search-result img {
  width: 48px; height: 48px;
  object-fit: cover; flex-shrink: 0;
  border: 1px solid var(--outline);
}
.search-result .info { flex: 1; min-width: 0; }
.search-result .name {
  font-weight: 700; font-size: 14px; color: var(--primary);
  text-transform: uppercase; font-family: var(--font-headline);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.search-result .cat {
  font-size: 11px; color: var(--secondary);
  text-transform: uppercase; letter-spacing: 1px; font-weight: 600;
}
.search-result .price {
  font-weight: 700; color: var(--solar-red); font-size: 14px;
  white-space: nowrap;
}
.search-result .arrow {
  color: var(--secondary); font-size: 18px; margin-left: 4px;
}

.search-empty {
  padding: 24px;
  text-align: center;
  color: var(--secondary);
  font-size: 14px;
}
.search-empty .big { font-size: 36px; margin-bottom: 8px; }

.search-footer {
  padding: 10px 16px;
  background: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
  font-size: 11px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.search-footer kbd {
  background: #fff;
  border: 1px solid var(--outline);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 10px;
  margin: 0 2px;
}

/* Highlight matching text in results */
.search-result .name mark,
.search-result .cat mark {
  background: #fff3a0;
  color: inherit;
  padding: 0 1px;
}

/* ==========================================
   COLOR PICKER + SIZE PICKER (product page)
   ========================================== */

.color-selector { margin-bottom: 24px; }
.color-options { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.color-swatch {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid #fff;
  outline: 2px solid var(--outline);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s, outline-color 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.color-swatch:hover { transform: scale(1.1); }
.color-swatch.active { outline: 3px solid var(--primary); transform: scale(1.1); }
.color-swatch.active::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.6);
}
.color-swatch.out-of-stock { opacity: 0.35; cursor: not-allowed; }
.color-swatch.out-of-stock::after {
  content: "✕";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
}

.color-label {
  font-size: 13px;
  color: var(--secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.color-label strong { color: var(--primary); }

.size-btn.out-of-stock {
  color: var(--secondary);
  background: repeating-linear-gradient(45deg, #fafafa, #fafafa 4px, #ececec 4px, #ececec 8px);
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: var(--outline);
}
.size-btn.out-of-stock:hover { border-color: var(--outline); transform: none; }
.size-btn .stock-tag {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--error);
  letter-spacing: 0;
  margin-top: 2px;
  text-transform: uppercase;
}

.detail-stock {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}
.detail-stock.in-stock { background: #e6f4ea; color: var(--success); }
.detail-stock.low-stock { background: #fff3cd; color: #856404; }
.detail-stock.out-of-stock { background: #ffe5e5; color: var(--error); }

/* ==========================================
   VARIANT EDITOR (admin)
   ========================================== */

.variant-editor {
  grid-column: 1 / -1;
  border-top: 2px solid var(--outline-variant);
  padding-top: 16px;
  margin-top: 8px;
}
.variant-editor > label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 12px;
  letter-spacing: 1px;
  display: block;
}

.variant-block {
  background: #fff;
  border: 2px solid var(--outline);
  border-left: 4px solid var(--solar-red);
  padding: 14px;
  margin-bottom: 12px;
  position: relative;
}
.variant-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.variant-block-header input[type="text"] {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--outline);
  padding: 8px 10px;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
}
.variant-block-header input[type="color"] {
  width: 44px;
  height: 36px;
  border: 1px solid var(--outline);
  padding: 2px;
  border-radius: 4px;
  cursor: pointer;
  background: #fff;
}
.variant-remove {
  background: var(--error);
  color: #fff;
  border: none;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
}
.variant-remove:hover { background: #b71c1c; }

.size-rows { display: flex; flex-direction: column; gap: 6px; }

.variant-image-row {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--outline-variant);
}
.size-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.size-row input {
  border: 1px solid var(--outline);
  padding: 6px 8px;
  border-radius: 4px;
  background: #fff;
  font-size: 13px;
  width: 100%;
}
.size-row-btn {
  background: var(--outline);
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.size-row-btn:hover { background: var(--error); color: #fff; }

.add-variant-btn, .add-size-btn {
  background: #fff;
  border: 2px dashed var(--outline);
  padding: 10px 16px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  color: var(--primary);
  border-radius: 4px;
  margin-top: 6px;
  transition: all 0.2s;
}
.add-variant-btn:hover, .add-size-btn:hover {
  border-color: var(--solar-red);
  color: var(--solar-red);
  background: #fffaf8;
}
.add-variant-btn { width: 100%; margin-top: 10px; }
.add-size-btn { width: auto; }

@media (max-width: 600px) {
  .size-row { grid-template-columns: 1fr 1fr 1fr auto; font-size: 12px; }
}

/* ==========================================
   CUSTOMER REVIEWS
   ========================================== */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: var(--stack-lg);
}

.review-card {
  background: #fff;
  border: 1px solid var(--outline);
  padding: 24px;
  position: relative;
  transition: all 0.3s ease;
}

.review-card:hover {
  border-color: var(--solar-red);
  box-shadow: 0 8px 24px rgba(255, 49, 0, 0.08);
  transform: translateY(-4px);
}

.review-card::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 60px;
  font-family: Georgia, serif;
  color: var(--solar-red);
  opacity: 0.15;
  line-height: 1;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars .star {
  color: #FF6B00;
  font-size: 14px;
}

.review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B00, #FF3100);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name {
  font-family: var(--font-headline);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 2px;
}

.review-location {
  font-size: 11px;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--success);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .review-card { padding: 20px; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   VIEW ALL PRODUCTS BUTTON
   ========================================== */

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  animation: viewAllPulse 2s infinite;
}

.view-all-btn svg {
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.view-all-btn:hover svg {
  transform: translateX(6px);
}

.view-all-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 49, 0, 0.35);
}

.view-all-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 49, 0, 0.25);
}

@keyframes viewAllPulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(255, 49, 0, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(255, 49, 0, 0.4); }
}

@media (max-width: 768px) {
  .view-all-btn {
    padding: 14px 32px;
    font-size: 13px;
    letter-spacing: 1px;
  }
}

/* Product page styles now self-contained in pages/product.html */
