/*
Theme Name: Sonhidal
Theme URI: https://sonhidal.com
Author: Sonhidal
Author URI: https://sonhidal.com
Description: Tema oficial Sonhidal — tienda de instrumentos musicales con WooCommerce. Dark mode profesional, responsive, compatible con WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Propietario
Text Domain: sonhidal
Tags: woocommerce, dark, music, ecommerce, responsive
*/

/* ═══════════════════════════════════════════════════════
   TOKENS
═══════════════════════════════════════════════════════ */
:root {
  --bg:        #181818;
  --surface:   #222222;
  --elevated:  #2c2c2c;
  --border:    #333333;
  --text:      #f0f0f0;
  --muted:     #888888;
  --accent:    #7DC420;
  --cta:       #F8B803;
  --danger:    #ff4444;
  --success:   #4CAF50;
  --radius:    14px;
  --radius-sm: 8px;
  --shadow:    0 2px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

/* ═══════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.2;
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--cta); }
img { max-width: 100%; height: auto; display: block; }
button { font-family: 'Space Grotesk', sans-serif; cursor: pointer; }
input, select, textarea { font-family: 'Inter', sans-serif; }
ul, ol { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--elevated); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════ */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 48px 0; }
.section-sm { padding: 32px 0; }

/* ═══════════════════════════════════════════════════════
   HEADER
═══════════════════════════════════════════════════════ */
#site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 60px;
}
.site-logo img { height: 32px; width: auto; }
.site-logo .logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -1px;
}

/* Search */
.header-search { flex: 1; max-width: 520px; position: relative; }
.header-search input {
  width: 100%;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 16px 9px 40px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.header-search input:focus { border-color: var(--accent); }
.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 16px;
  pointer-events: none;
}

/* Header actions */
.header-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; }
.header-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  text-decoration: none;
}
.header-btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-cart {
  background: var(--cta) !important;
  border-color: var(--cta) !important;
  color: #111 !important;
  font-weight: 700;
}
.btn-cart:hover { filter: brightness(1.1); color: #111 !important; }
.cart-count {
  background: #111;
  color: var(--cta);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-weight: 700;
}

/* Primary Nav */
.primary-nav {
  display: flex;
  gap: 4px;
  padding-bottom: 6px;
  align-items: center;
}
.primary-nav a {
  padding: 6px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all .15s;
}
.primary-nav a:hover,
.primary-nav .current-menu-item a { color: var(--accent); }
.nav-shipping {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.nav-shipping .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); display: inline-block; }

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #0f1f06 100%);
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(125,196,32,.1);
  border: 1px solid rgba(125,196,32,.3);
  border-radius: 20px;
  padding: 4px 14px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-size: 54px; font-weight: 700; letter-spacing: -1.5px; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 17px; max-width: 460px; margin-bottom: 32px; }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 36px; }
.hero-stat-value { font-size: 22px; font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.hero-stat-label { font-size: 12px; color: var(--muted); }
.hero-img-box {
  width: 100%;
  aspect-ratio: 1.2;
  background: var(--elevated);
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.hero-img-box img { object-fit: contain; max-height: 80%; }

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  padding: 14px 28px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--cta); color: #111; }
.btn-primary:hover { filter: brightness(1.08); color: #111; }
.btn-secondary { background: none; border: 1.5px solid var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-accent { background: var(--accent); color: #111; }
.btn-accent:hover { filter: brightness(1.08); color: #111; }
.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }
.btn-danger { background: #cc0011; color: #fff; border: none; }
.btn-danger:hover { filter: brightness(1.1); }
.btn-full { width: 100%; justify-content: center; }

/* ═══════════════════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════════════════ */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.section-title {
  font-size: 26px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-title .accent-bar {
  width: 4px;
  height: 24px;
  border-radius: 2px;
  background: var(--accent);
}
.section-tag {
  background: rgba(125,196,32,.1);
  border: 1px solid rgba(125,196,32,.3);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* ═══════════════════════════════════════════════════════
   BENTO CATEGORIES
═══════════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.bento-card {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: left;
  transition: all .2s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.bento-card:hover { transform: translateY(-2px); }
.bento-card .bar { width: 28px; height: 4px; border-radius: 2px; margin-bottom: 12px; }
.bento-card h3 { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.bento-card p { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.bento-card .count { font-size: 11px; font-weight: 600; }

/* ═══════════════════════════════════════════════════════
   COUNTDOWN
═══════════════════════════════════════════════════════ */
.countdown { display: flex; align-items: center; gap: 6px; }
.countdown-box {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 6px 10px;
  min-width: 40px;
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: #fff;
}
.countdown-sep { color: var(--danger); font-weight: 800; font-size: 18px; }

/* ═══════════════════════════════════════════════════════
   PRODUCT GRID & CARDS
═══════════════════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.products-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* WooCommerce product card override */
ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }

.product-card,
ul.products li.product {
  background: var(--elevated);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .22s;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow);
}
.product-card:hover,
ul.products li.product:hover {
  border-color: var(--accent);
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(125,196,32,.15);
}

/* Image zone */
.product-card-img,
ul.products li.product .woocommerce-LoopProduct-link {
  background: #fff;
  padding: 24px 20px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
ul.products li.product .woocommerce-LoopProduct-link img {
  width: 170px;
  height: 170px;
  object-fit: contain;
  display: block;
  transition: transform .3s ease, filter .3s ease;
}
ul.products li.product:hover .woocommerce-LoopProduct-link img {
  transform: scale(1.08);
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.35));
}
ul.products li.product .woocommerce-LoopProduct-link .woocommerce-loop-product__title { display: none; }

/* Card body */
.product-card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
ul.products li.product .product-card-inner { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }

.product-brand {
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-ref { font-size: 11px; color: var(--muted); font-style: italic; margin-bottom: 10px; }
.product-card-actions { margin-top: auto; }
.product-stock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
}
.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.stock-dot.in { background: var(--success); }
.stock-dot.low { background: var(--danger); }
.stock-dot.out { background: var(--muted); }

/* Price */
.product-price,
ul.products li.product .price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
}
.price-main,
ul.products li.product .price .woocommerce-Price-amount { font-size: 22px; font-weight: 800; color: var(--text); }
.price-tax { font-size: 11px; color: var(--muted); }
.price-old,
ul.products li.product .price del { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-flash-main { font-size: 20px; font-weight: 800; color: var(--success) !important; }

/* Add to cart button */
.btn-add-cart,
ul.products li.product .button {
  width: 100%;
  background: var(--cta);
  border: none;
  border-radius: 10px;
  padding: 11px;
  color: #111;
  font-weight: 800;
  font-size: 13px;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-add-cart:hover,
ul.products li.product .button:hover { filter: brightness(1.1); color: #111; }
.btn-add-cart.added { background: var(--success); }

/* Badges */
.badge {
  position: absolute;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .5px;
}
.badge-offer { top: 8px; right: 8px; background: #cc0011; color: #fff; }
.badge-stock { top: 8px; left: 8px; background: var(--danger); color: #fff; }
.badge-discount { top: 8px; left: 8px; background: var(--danger); color: #fff; }
.onsale { top: 8px; left: 8px !important; right: auto !important; background: var(--danger) !important; }

/* Quick add button on hover */
.product-quick-add {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--accent);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #111;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(4px);
}
.product-card:hover .product-quick-add,
ul.products li.product:hover .product-quick-add { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════════
   FLASH OFFERS
═══════════════════════════════════════════════════════ */
.flash-section { background: linear-gradient(to bottom, var(--bg), rgba(255,68,68,.03)); }
.flash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}
.flash-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
  font-weight: 700;
}
.flash-title .flash-icon { color: var(--danger); }
.flash-tag {
  background: rgba(255,68,68,.1);
  color: var(--danger);
  border: 1px solid rgba(255,68,68,.3);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

/* Stock bar */
.stock-bar-wrap { margin-bottom: 10px; }
.stock-bar-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
}
.stock-bar-track {
  background: rgba(255,255,255,.08);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}
.stock-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width .6s ease;
}
.stock-bar-fill.low { background: linear-gradient(90deg, var(--danger), #ff6666); }
.stock-bar-fill.ok  { background: linear-gradient(90deg, var(--cta), #ffd040); }
.stock-bar-fill.out { background: #555; }

/* ═══════════════════════════════════════════════════════
   CATEGORY ROW
═══════════════════════════════════════════════════════ */
.cat-row { margin-bottom: 48px; }
.cat-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cat-row-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
}
.cat-count {
  font-size: 12px;
  color: var(--muted);
  background: var(--elevated);
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.btn-see-all {
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 14px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.btn-see-all:hover { color: var(--accent); border-color: var(--accent); }

/* ═══════════════════════════════════════════════════════
   TRUST STRIP
═══════════════════════════════════════════════════════ */
.trust-strip {
  background: var(--elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-strip-inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-icon { font-size: 22px; }
.trust-title { font-size: 13px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }
.trust-sub { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════
   BRANDS
═══════════════════════════════════════════════════════ */
.brands-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  font-family: 'Space Grotesk', sans-serif;
  opacity: .45;
  transition: opacity .2s;
  cursor: default;
}
.brand-name:hover { opacity: 1; }

/* ═══════════════════════════════════════════════════════
   CATALOG PAGE
═══════════════════════════════════════════════════════ */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  padding: 32px 0;
}
.catalog-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}
.sidebar-block {
  background: var(--elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 16px;
}
.sidebar-block h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.sidebar-link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active { color: var(--accent); background: rgba(125,196,32,.08); }
.sidebar-link.active { font-weight: 600; }
.filter-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text); margin-bottom: 8px; }
.filter-checkbox input { accent-color: var(--accent); }

.catalog-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.catalog-count { color: var(--muted); font-size: 13px; }
.catalog-sort {
  background: var(--elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════
   SINGLE PRODUCT (PDP)
═══════════════════════════════════════════════════════ */
.breadcrumb {
  background: var(--elevated);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { margin: 0 8px; }

.pdp-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 32px 0 48px;
}
.pdp-gallery-main {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: 12px;
  position: relative;
}
.pdp-gallery-main img { object-fit: contain; max-height: 80%; width: 80%; transition: transform .3s; }
.pdp-gallery-main img:hover { transform: scale(1.05); }
.pdp-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pdp-thumb {
  background: var(--elevated);
  border-radius: 10px;
  border: 1.5px solid var(--border);
  padding: 10px;
  display: flex;
  justify-content: center;
  cursor: pointer;
  transition: border-color .15s;
}
.pdp-thumb:hover, .pdp-thumb.active { border-color: var(--accent); }
.pdp-thumb img { width: 60px; height: 60px; object-fit: contain; }

.pdp-brand-badge {
  display: inline-block;
  background: rgba(125,196,32,.1);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(125,196,32,.3);
  margin-bottom: 8px;
}
.pdp-title {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.5px;
  margin-bottom: 12px;
}
.pdp-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.stars { color: var(--cta); font-size: 14px; letter-spacing: 1px; }
.rating-count { font-size: 13px; color: var(--muted); }

.price-box {
  background: var(--elevated);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.price-box .price-big {
  font-size: 38px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}
.price-box .price-note { font-size: 12px; color: var(--muted); margin-top: 4px; }
.price-save {
  background: rgba(248,184,3,.12);
  color: var(--cta);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 8px;
  border-radius: 5px;
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 600;
}
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.qty-btn {
  background: var(--elevated);
  border: none;
  padding: 0 16px;
  height: 52px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  transition: background .15s;
}
.qty-btn:hover { background: var(--surface); }
.qty-val { padding: 0 18px; font-size: 15px; font-weight: 600; min-width: 44px; text-align: center; }

.pdp-cta-row { display: flex; gap: 12px; margin-bottom: 16px; align-items: stretch; }
.btn-checkout {
  width: 100%;
  background: var(--elevated);
  border: 1.5px solid var(--accent);
  border-radius: 10px;
  height: 48px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: all .15s;
}
.btn-checkout:hover { background: rgba(125,196,32,.12); }

.trust-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--muted);
  background: var(--elevated);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Tabs */
.pdp-tabs { border-top: 1px solid var(--border); margin-bottom: 48px; }
.tab-nav { display: flex; border-bottom: 1px solid var(--border); }
.tab-btn {
  background: none;
  border: none;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { padding: 28px 0; display: none; }
.tab-panel.active { display: block; }
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.spec-card {
  background: var(--elevated);
  border-radius: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border);
}
.spec-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.spec-val { font-size: 14px; font-weight: 600; font-family: 'Space Grotesk', sans-serif; }

/* Reviews */
.review-item { padding: 20px 0; border-bottom: 1px solid var(--border); }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(125,196,32,.2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; color: var(--accent);
}
.review-author { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--muted); margin-left: auto; }
.review-text { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════
   CHECKOUT
═══════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
  padding: 32px 0;
}
.checkout-block {
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 24px;
}
.checkout-block h2 { font-size: 18px; font-weight: 700; margin-bottom: 24px; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.form-group { flex: 0 0 100%; }
.form-group.half { flex: 0 0 calc(50% - 6px); }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
}
.form-input:focus { border-color: var(--accent); }

/* Progress steps */
.checkout-steps { display: flex; align-items: center; margin-bottom: 32px; }
.step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid var(--border);
  color: var(--muted);
  transition: all .2s;
}
.step.active .step-num { border-color: var(--accent); background: rgba(125,196,32,.15); color: var(--accent); }
.step.done .step-num { background: var(--accent); border-color: var(--accent); color: #111; }
.step-label { font-size: 14px; color: var(--muted); font-weight: 400; }
.step.active .step-label { color: var(--text); font-weight: 700; }
.step-line { flex: 1; height: 1px; background: var(--border); margin: 0 10px; min-width: 20px; }

/* Order summary */
.order-summary {
  background: var(--elevated);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 22px;
  position: sticky;
  top: 80px;
}
.order-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.order-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 13px; }
.order-line .label { color: var(--muted); }
.order-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 14px; margin-top: 4px; }
.order-total .label { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.order-total .amount { font-weight: 800; font-size: 20px; font-family: 'Space Grotesk', sans-serif; }
.secure-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 16px; }
.secure-badge { font-size: 11px; color: var(--muted); background: var(--surface); padding: 4px 8px; border-radius: 5px; border: 1px solid var(--border); }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#site-footer {
  background: #111;
  border-top: 1px solid #1e1e1e;
  margin-top: 64px;
  padding-top: 48px;
  padding-bottom: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo { height: 34px; margin-bottom: 16px; }
.footer-desc { color: #555; font-size: 13px; line-height: 1.75; max-width: 280px; margin-bottom: 20px; }
.social-row { display: flex; gap: 8px; }
.social-btn {
  background: #1c1c1c;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  width: 34px; height: 34px;
  color: #555;
  font-size: 12px; font-weight: 700;
  cursor: pointer;
  transition: all .15s;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); }
.footer-col h4 { font-size: 11px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 16px; }
.footer-col a { display: block; color: #555; font-size: 13px; margin-bottom: 9px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }

.newsletter-box {
  background: #161616;
  border-radius: var(--radius);
  border: 1px solid #252525;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.newsletter-title { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.newsletter-sub { font-size: 12px; color: #555; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-input {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  padding: 10px 16px;
  color: #fff;
  font-size: 13px;
  outline: none;
  width: 220px;
  transition: border-color .2s;
}
.newsletter-input:focus { border-color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid #1c1c1c;
  padding-top: 20px;
}
.footer-copy { font-size: 12px; color: #3a3a3a; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #3a3a3a; text-decoration: none; transition: color .15s; }
.footer-legal a:hover { color: var(--accent); }
.payment-badges { display: flex; gap: 6px; }
.payment-badge {
  background: #1a1a1a;
  border: 1px solid #252525;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  color: #444;
  letter-spacing: .5px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-img-col { display: none; }
  .hero h1 { font-size: 40px; }
  .bento-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  ul.products { grid-template-columns: repeat(3, 1fr); }
  .catalog-layout { grid-template-columns: 180px 1fr; }
  .pdp-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .header-top { flex-wrap: wrap; height: auto; padding: 12px 0; }
  .header-search { max-width: 100%; order: 3; flex: 0 0 100%; }
  .primary-nav { overflow-x: auto; padding-bottom: 8px; }
  .hero h1 { font-size: 32px; }
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .catalog-sidebar { display: none; }
  .flash-header { flex-direction: column; align-items: flex-start; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .order-summary { position: static; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .specs-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-cta-row { flex-direction: column; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  ul.products { grid-template-columns: 1fr; }
  .bento-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; }
  .hero-stats { gap: 16px; }
}
