/* =====================================================
   BR4NDZ — Design System
   Modern Minimalist Sportswear
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700;800;900&display=swap');

/* --- CSS Variables --- */
:root {
  --bg:          #0a0a0a;
  --bg-2:        #111111;
  --bg-3:        #1a1a1a;
  --bg-4:        #222222;
  --border:      #2a2a2a;
  --border-light:#333333;
  --text:        #ffffff;
  --text-2:      #bbbbbb;
  --text-3:      #888888;
  --text-4:      #555555;
  --accent:      #c8ff00;
  --accent-dim:  rgba(200, 255, 0, 0.12);
  --accent-dark: #a8d900;
  --danger:      #ff4444;
  --danger-dim:  rgba(255, 68, 68, 0.12);
  --success:     #00e676;
  --success-dim: rgba(0, 230, 118, 0.12);
  --warning:     #ffb300;
  --warning-dim: rgba(255, 179, 0, 0.12);
  --info:        #29b6f6;
  --info-dim:    rgba(41, 182, 246, 0.12);
  --radius:      8px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.6);
  --transition:  all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --font:        'Inter', system-ui, -apple-system, sans-serif;
  --font-display:'Barlow Condensed', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; background: none; }
input, select, textarea { font-family: var(--font); font-size: inherit; }
ul { list-style: none; }

/* --- Typography --- */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
p { color: var(--text-2); }

/* --- Layout --- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }

/* --- Grid --- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* =====================================================
   HEADER / NAVIGATION
   ===================================================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 72px;
  display: flex; align-items: center;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
}
.logo span { color: var(--accent); }
.logo-img { font-size: 0; line-height: 0; display: inline-flex; align-items: center; }
.logo-img img { display: block; width: auto; object-fit: contain; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav a:hover, .nav a.active { color: var(--text); background: var(--bg-3); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--bg-3);
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border);
}
.cart-btn:hover { background: var(--bg-4); border-color: var(--border-light); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--accent); color: #000;
  font-size: 0.65rem; font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }

.btn-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: var(--transition);
}
.btn-icon:hover { background: var(--bg-4); color: var(--text); }

.hamburger { display: none; flex-direction: column; gap: 5px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

main { padding-top: 72px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: calc(100vh - 72px);
  display: flex; align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(200, 255, 0, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(200, 255, 0, 0.03) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-dim);
  border: 1px solid rgba(200, 255, 0, 0.2);
  padding: 6px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 28px;
}
.hero-tag::before { content: '●'; font-size: 0.6rem; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero h1 { color: var(--text); margin-bottom: 24px; max-width: 700px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { font-size: 1.1rem; color: var(--text-3); max-width: 480px; margin-bottom: 48px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  transition: var(--transition); border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-light);
}
.btn-secondary:hover { background: var(--bg-3); border-color: var(--text-4); }

.btn-ghost {
  background: transparent; color: var(--text-3);
  border-color: transparent;
}
.btn-ghost:hover { color: var(--text); background: var(--bg-3); }

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

.btn-sm { padding: 8px 18px; font-size: 0.78rem; }
.btn-lg { padding: 18px 40px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* =====================================================
   FEATURED STRIP
   ===================================================== */
.features-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg-2);
}
.features-list {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
}
.feature-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 32px;
  border-right: 1px solid var(--border);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3);
}
.feature-item:last-child { border-right: none; }
.feature-item svg { color: var(--accent); flex-shrink: 0; }

/* =====================================================
   SECTION HEADER
   ===================================================== */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 48px; gap: 16px;
}
.section-header h2 { color: var(--text); }
.section-label {
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

/* =====================================================
   PRODUCT CARDS
   ===================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-3);
}
.product-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #000;
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px;
}
.product-badge.badge-new { background: var(--accent); color: #000; }
.product-badge.badge-sale { background: var(--danger); color: #fff; }

.product-actions {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
  transform: translateY(100%);
  transition: var(--transition);
  display: flex; gap: 8px;
}
.product-card:hover .product-actions { transform: translateY(0); }

.product-card-body { padding: 16px; }
.product-card-category {
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-4); margin-bottom: 6px;
}
.product-card-name {
  font-size: 0.95rem; font-weight: 600;
  color: var(--text); margin-bottom: 12px;
  line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--text);
}

/* Product card overlay variant (home featured grid) */
.product-card--overlay {
  background: transparent;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card--overlay:hover { transform: translateY(-4px); }
.product-card--overlay .product-card-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.product-card--overlay:hover .product-card-image { border-color: var(--border-light); }
.product-card--overlay .product-card-image img { transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.product-card--overlay:hover .product-card-image img { transform: scale(1.06); }

/* Info overlay at bottom */
.product-card--overlay .product-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 48px 14px 14px;
  background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.4) 55%, transparent 100%);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.product-card--overlay .product-card-category {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 0;
}
.product-card--overlay .product-card-name {
  font-size: 0.88rem; font-weight: 600;
  color: #fff; line-height: 1.25; margin-bottom: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.product-card--overlay .product-price {
  font-size: 1rem; color: #fff; margin-top: 4px;
}

/* "Ver producto" button slides up on hover */
.product-card--overlay .product-actions {
  background: none;
  padding: 0 14px 14px;
  transform: translateY(4px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-card--overlay:hover .product-actions {
  transform: translateY(0);
  opacity: 1;
}

/* Featured products 4-col grid */
.products-grid--featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) {
  .products-grid--featured { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .products-grid--featured { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =====================================================
   CATEGORIES GRID
   ===================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.category-card {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.category-card:hover { border-color: var(--border-light); }
.category-card-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card-img { transform: scale(1.05); }
.category-card-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.category-card-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}
.category-card-content {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px;
}
.category-card-name {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.category-card-count { font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }

/* =====================================================
   SHOP PAGE
   ===================================================== */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
  padding-top: 40px;
}
.shop-sidebar {
  position: sticky; top: 90px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.filter-group { margin-bottom: 28px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-title {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; cursor: pointer;
  font-size: 0.9rem; color: var(--text-2);
  transition: var(--transition);
}
.filter-option:hover { color: var(--text); }
.filter-option input { accent-color: var(--accent); cursor: pointer; }

.size-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.size-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.8rem; font-weight: 600;
  cursor: pointer; transition: var(--transition);
  padding: 0 8px;
}
.size-btn:hover, .size-btn.active {
  background: var(--accent); color: #000;
  border-color: var(--accent);
}

.shop-main {}
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.shop-count { font-size: 0.85rem; color: var(--text-3); }
.shop-sort select {
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); padding: 8px 16px;
  border-radius: var(--radius); font-size: 0.85rem; cursor: pointer;
}

/* =====================================================
   PRODUCT DETAIL
   ===================================================== */
.product-detail {
  display: grid; grid-template-columns: 1fr 480px;
  gap: 60px; padding: 60px 0;
}
.product-gallery {}
.gallery-main {
  aspect-ratio: 1;
  background: var(--bg-2); border-radius: var(--radius-lg);
  overflow: hidden; margin-bottom: 12px;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; }
.gallery-thumb {
  width: 72px; height: 72px;
  background: var(--bg-2); border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.gallery-thumb.active { border-color: var(--accent); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info {}
.product-info .product-category-link {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px; display: block;
}
.product-info h1 { font-size: 2.5rem; margin-bottom: 16px; }
.product-info .price-main {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800;
  color: var(--accent); margin-bottom: 28px;
}
.product-info .description { color: var(--text-3); margin-bottom: 32px; line-height: 1.7; }

.variant-selector { margin-bottom: 24px; }
.variant-label {
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.variant-label span { color: var(--text); font-weight: 600; }

.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.color-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; border: 2px solid var(--border);
  transition: var(--transition); position: relative;
}
.color-swatch.active { border-color: var(--accent); }
.color-swatch.active::after {
  content: '✓'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.stock-indicator {
  font-size: 0.8rem; margin-bottom: 24px;
  display: flex; align-items: center; gap: 6px;
}
.stock-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.in-stock .stock-dot { background: var(--success); }
.in-stock { color: var(--success); }
.low-stock .stock-dot { background: var(--warning); }
.low-stock { color: var(--warning); }
.out-stock .stock-dot { background: var(--danger); }
.out-stock { color: var(--danger); }

.quantity-selector {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  width: fit-content; margin-bottom: 20px;
}
.qty-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--text-3);
  transition: var(--transition); background: transparent;
  border: none;
}
.qty-btn:hover { background: var(--bg-4); color: var(--text); }
.qty-input {
  width: 60px; height: 44px;
  background: transparent; border: none;
  text-align: center; font-weight: 700; font-size: 1rem;
  color: var(--text); outline: none;
}

.product-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px; margin-top: 24px;
}
.meta-item { display: flex; gap: 8px; font-size: 0.85rem; margin-bottom: 8px; }
.meta-key { color: var(--text-3); min-width: 90px; }
.meta-val { color: var(--text-2); }

/* =====================================================
   CART
   ===================================================== */
.cart-layout {
  display: grid; grid-template-columns: 1fr 360px;
  gap: 40px; padding: 60px 0;
  align-items: start;
}
.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
  display: grid; grid-template-columns: 100px 1fr auto;
  gap: 20px; align-items: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  transition: var(--transition);
}
.cart-item:hover { border-color: var(--border-light); }
.cart-item-image {
  aspect-ratio: 1; background: var(--bg-3);
  border-radius: var(--radius); overflow: hidden;
}
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-variant { font-size: 0.8rem; color: var(--text-3); margin-bottom: 12px; }
.cart-item-price { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }

.cart-summary {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px;
  position: sticky; top: 90px;
}
.cart-summary h3 { margin-bottom: 24px; font-size: 1.3rem; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label { color: var(--text-3); }
.summary-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 0 24px;
  border-top: 1px solid var(--border); margin-top: 8px;
}
.summary-total .label { font-weight: 600; font-size: 1rem; }
.summary-total .value {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 800;
  color: var(--accent);
}

.coupon-form { margin: 16px 0; display: flex; gap: 8px; }
.coupon-form input {
  flex: 1; background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: var(--radius);
  font-size: 0.85rem; outline: none;
}
.coupon-form input:focus { border-color: var(--accent); }

/* =====================================================
   FORMS
   ===================================================== */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.form-control {
  width: 100%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); padding: 12px 16px;
  border-radius: var(--radius); font-size: 0.95rem;
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); background: var(--bg-4); }
.form-control::placeholder { color: var(--text-4); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* =====================================================
   BADGES
   ===================================================== */
.badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.badge-success  { background: var(--success-dim);  color: var(--success); }
.badge-danger   { background: var(--danger-dim);   color: var(--danger); }
.badge-warning  { background: var(--warning-dim);  color: var(--warning); }
.badge-info     { background: var(--info-dim);     color: var(--info); }
.badge-primary  { background: var(--accent-dim);   color: var(--accent); }
.badge-secondary { background: var(--bg-3); color: var(--text-3); }

/* =====================================================
   ALERTS / FLASH
   ===================================================== */
.alert {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  font-size: 0.9rem; margin-bottom: 20px;
  border: 1px solid transparent;
}
.alert-success { background: var(--success-dim); border-color: var(--success); color: var(--success); }
.alert-error   { background: var(--danger-dim);  border-color: var(--danger);  color: var(--danger); }
.alert-warning { background: var(--warning-dim); border-color: var(--warning); color: var(--warning); }
.alert-info    { background: var(--info-dim);    border-color: var(--info);    color: var(--info); }

/* =====================================================
   ADMIN PANEL
   ===================================================== */
.admin-layout {
  display: flex; min-height: 100vh;
  padding-top: 0 !important;
}
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 50; overflow-y: auto;
}
.sidebar-brand {
  padding: 24px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-brand .logo { font-size: 1.3rem; }
.sidebar-badge {
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent-dim); color: var(--accent);
  padding: 3px 8px; border-radius: 4px;
}

.sidebar-nav { flex: 1; padding: 16px 12px; }
.sidebar-section {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-4); padding: 16px 8px 8px;
}
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text-3); transition: var(--transition);
  margin-bottom: 2px;
}
.sidebar-link svg { flex-shrink: 0; opacity: 0.7; }
.sidebar-link:hover { background: var(--bg-3); color: var(--text); }
.sidebar-link:hover svg { opacity: 1; }
.sidebar-link.active { background: var(--accent-dim); color: var(--accent); border: 1px solid rgba(200,255,0,0.15); }
.sidebar-link.active svg { opacity: 1; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: var(--radius);
  background: var(--bg-3);
}
.sidebar-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 800; flex-shrink: 0;
}
.sidebar-user-info { flex: 1; min-width: 0; }
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-role { font-size: 0.7rem; color: var(--text-3); }

.admin-content {
  flex: 1;
  margin-left: 240px;
  padding: 0;
  min-height: 100vh;
  background: var(--bg);
}
.admin-topbar {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 40;
}
.admin-topbar h1 { font-size: 1.4rem; color: var(--text); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }

.admin-body { padding: 32px; }

/* =====================================================
   ADMIN STATS CARDS
   ===================================================== */
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border-light); }
.stat-label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 12px;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 800; color: var(--text);
  line-height: 1; margin-bottom: 8px;
}
.stat-change { font-size: 0.8rem; }
.stat-up { color: var(--success); }
.stat-down { color: var(--danger); }
.stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* =====================================================
   TABLES
   ===================================================== */
.table-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
}
.table-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.table-header h3 { font-size: 1.1rem; }

.table-wrapper { overflow-x: auto; }
table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem;
}
thead { background: var(--bg-3); }
thead th {
  padding: 12px 20px; text-align: left;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
tbody tr { border-top: 1px solid var(--border); transition: var(--transition); }
tbody tr:hover { background: var(--bg-3); }
tbody td { padding: 14px 20px; vertical-align: middle; color: var(--text-2); }
tbody td .fw { font-weight: 600; color: var(--text); }

.table-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.85rem; color: var(--text-3);
}

/* =====================================================
   SEARCH / FILTER BAR
   ===================================================== */
.search-bar {
  position: relative; display: flex; align-items: center;
}
.search-bar svg {
  position: absolute; left: 12px; color: var(--text-4);
  pointer-events: none;
}
.search-bar input {
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text); padding: 9px 16px 9px 38px;
  border-radius: var(--radius); font-size: 0.85rem; outline: none;
  min-width: 240px; transition: var(--transition);
}
.search-bar input:focus { border-color: var(--accent); }
.search-bar input::placeholder { color: var(--text-4); }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex; align-items: center; gap: 4px;
  justify-content: center; padding: 32px 0;
}
.page-btn {
  min-width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 0.85rem; font-weight: 500;
  color: var(--text-3); transition: var(--transition);
  padding: 0 10px;
}
.page-btn:hover { background: var(--bg-3); color: var(--text); border-color: var(--border-light); }
.page-btn.active { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 60px;
}
.footer-brand { text-align: center; }
.footer-brand .logo { font-size: 1.8rem; margin-bottom: 16px; }
.footer-brand p { font-size: 0.9rem; color: var(--text-3); max-width: 280px; line-height: 1.7; margin: 0 auto; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; justify-content: center; }
.social-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text-3);
  transition: var(--transition);
}
.social-btn:hover { background: var(--accent); color: #000; border-color: var(--accent); }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 0.9rem; color: var(--text-3); transition: var(--transition); }
.footer-col ul a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; color: var(--text-4);
  flex-wrap: wrap; gap: 10px;
}

/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-3);
}
.empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h3 { color: var(--text-2); margin-bottom: 8px; font-size: 1.3rem; }
.empty-state p { font-size: 0.9rem; margin-bottom: 24px; }

/* =====================================================
   CHECKOUT STEPS
   ===================================================== */
.checkout-steps {
  display: flex; justify-content: center; align-items: center;
  gap: 0; margin-bottom: 48px;
}
.step {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-3);
}
.step.active .step-num { background: var(--accent); color: #000; border-color: var(--accent); }
.step.done .step-num { background: var(--success); color: #000; border-color: var(--success); }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text-3); }
.step.active .step-label { color: var(--text); }
.step-divider { width: 40px; height: 1px; background: var(--border); }

/* =====================================================
   LOGIN / AUTH
   ===================================================== */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 20px; background: var(--bg);
  padding-top: 112px;
}
.auth-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 48px;
  width: 100%; max-width: 440px;
}
.auth-logo { text-align: center; margin-bottom: 32px; font-size: 2rem; }
.auth-card h2 { text-align: center; margin-bottom: 8px; }
.auth-card .subtitle { text-align: center; color: var(--text-3); margin-bottom: 32px; font-size: 0.9rem; }
.auth-footer { text-align: center; margin-top: 24px; font-size: 0.85rem; color: var(--text-3); }
.auth-footer a { color: var(--accent); }

/* =====================================================
   ORDER SUCCESS
   ===================================================== */
.order-success {
  text-align: center; padding: 80px 20px;
  max-width: 600px; margin: 0 auto;
}
.success-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--success-dim); border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px; font-size: 2rem; color: var(--success);
}
.order-number-display {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--accent); letter-spacing: 0.05em;
}

/* =====================================================
   IMAGE UPLOAD PREVIEW
   ===================================================== */
.image-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center; cursor: pointer;
  transition: var(--transition); position: relative;
}
.image-upload-zone:hover, .image-upload-zone.drag-over {
  border-color: var(--accent); background: var(--accent-dim);
}
.image-upload-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-icon { font-size: 2rem; margin-bottom: 12px; color: var(--text-4); }
.upload-text { font-size: 0.9rem; color: var(--text-3); }
.upload-hint { font-size: 0.75rem; color: var(--text-4); margin-top: 4px; }

.image-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.preview-item {
  position: relative; width: 80px; height: 80px;
  border-radius: var(--radius); overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute; top: 4px; right: 4px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,0.7); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; cursor: pointer;
}

/* =====================================================
   MODALS
   ===================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  width: 100%; max-width: 520px;
  transform: scale(0.95); transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-header h3 { font-size: 1.3rem; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 220px 1fr; }
  .product-detail { grid-template-columns: 1fr; gap: 40px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px; z-index: 99;
  }
  .hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .shop-sidebar.open { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 80px 1fr; }
  .cart-item .quantity-selector { display: none; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .checkout-steps { gap: 0; }
  .step-label { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero { min-height: 80vh; }
  .auth-card { padding: 28px 20px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   UTILITIES
   ===================================================== */
.text-accent   { color: var(--accent); }
.text-muted    { color: var(--text-3); }
.text-danger   { color: var(--danger); }
.text-success  { color: var(--success); }
.text-center   { text-align: center; }
.fw-bold       { font-weight: 700; }
.fw-black      { font-weight: 900; }
.font-display  { font-family: var(--font-display); }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8         { gap: 8px; }
.gap-16        { gap: 16px; }
.mb-0          { margin-bottom: 0; }
.mb-8          { margin-bottom: 8px; }
.mb-16         { margin-bottom: 16px; }
.mb-24         { margin-bottom: 24px; }
.mb-32         { margin-bottom: 32px; }
.mt-24         { margin-top: 24px; }
.mt-32         { margin-top: 32px; }
.w-full        { width: 100%; }
.hidden        { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* =====================================================
   WHATSAPP FLOATING BUTTON
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}
.whatsapp-float svg { flex-shrink: 0; }
.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  background: #1a1a1a;
  color: #fff;
  font-size: 0.78rem; font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s;
  border: 1px solid #2a2a2a;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute; left: 100%; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #2a2a2a;
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; }

/* Pulse animation on load */
.whatsapp-float::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.3);
  animation: wa-pulse 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { transform: scale(1); opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 480px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .whatsapp-tooltip { display: none; }
}

/* =====================================================
   HERO SLIDER
   ===================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-2);
  aspect-ratio: 27 / 10;
  max-height: 500px;
}

.slider-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.slider-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  display: flex;
  align-items: center;
}

.slider-content {
  padding: 0 6%;
  max-width: 560px;
}

.slider-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.slider-subtitle {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 24px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.slider-btn {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

/* Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(4px);
}
.slider-arrow:hover { background: rgba(0,0,0,0.7); transform: translateY(-50%) scale(1.08); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding: 0;
}
.slider-dot.active {
  background: var(--accent);
  transform: scale(1.3);
}
.slider-dot:hover { background: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .hero-slider { aspect-ratio: 16 / 9; max-height: 300px; }
  .slider-overlay { background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%); align-items: flex-end; }
  .slider-content { padding: 0 5% 20px; max-width: 100%; }
  .slider-arrow { width: 36px; height: 36px; }
}

@media (max-width: 480px) {
  .slider-title { font-size: 1.6rem; }
  .slider-subtitle { font-size: 0.82rem; margin-bottom: 14px; }
  .slider-arrow { display: none; }
}

/* =====================================================
   STATIC PAGE CONTENT (already in static_page.php inline)
   ===================================================== */

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-4); }

/* Loading spinner */
.spinner {
  display: inline-block; width: 20px; height: 20px;
  border: 2px solid var(--border); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
