/* ============================================
   AHARA SHOP — CSS Principal
   Diseño fiel al tema WordPress Ahara
   ============================================ */

/* Fuentes locales */
@font-face { font-family: 'Lato'; src: url('../fonts/Lato-Thin.woff2') format('woff2'); font-weight: 100 200; font-style: normal; }
@font-face { font-family: 'Lato'; src: url('../fonts/Lato-Light.woff2') format('woff2'); font-weight: 300; font-style: normal; }
@font-face { font-family: 'Lato'; src: url('../fonts/Lato-Regular.woff2') format('woff2'); font-weight: 400 500; font-style: normal; }
@font-face { font-family: 'Lato'; src: url('../fonts/Lato-Bold.woff2') format('woff2'); font-weight: 600 700; font-style: normal; }
@font-face { font-family: 'Lato'; src: url('../fonts/Lato-Black.woff2') format('woff2'); font-weight: 800 900; font-style: normal; }

/* ---- Variables (tokens del tema) ---- */
:root {
  --bg: #111111;
  --bg-mid: #1a1a1a;
  --bg-surface: #1e1e1e;
  --white: #ffffff;
  --gray-light: #eeeeee;
  --gray-mid: #dddddd;
  --gray: #555555;
  --gray-dark: #333333;
  --text: #ffffff;
  --link: #ffffff;
  --link-hover: #eeeeee;
  --border: rgba(255,255,255,0.25);
  --border-solid: #ffffff;
  --nav-bg: #111111;
  --nav-text: #ffffff;
  --nav-hover-bg: #ffffff;
  --nav-hover-text: #111111;
  --font: 'Lato', sans-serif;
  --radius: 0px;
  --transition: .22s ease;
  --max-w: 1400px;
  --header-h: 70px;
}

/* ---- Reset base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.5;
  margin: 0; padding: 0;
}
a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--link-hover); }
img { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font); margin: 0 0 20px; line-height: 1.2; }
h1 { font-weight: 700; font-size: 60px; }
h2 { font-weight: 700; font-size: 32px; }
h3 { font-weight: 700; font-size: 25px; }
h4,h5,h6 { font-weight: 400; font-size: 20px; }
p { margin: 0 0 1.3em; }
ul { list-style: disc; margin: 0 0 1.3em; padding-left: 1.5em; }
button, input, select, textarea { font-family: var(--font); }
input, select, textarea {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-solid);
  padding: .8rem 1rem;
  font-size: 16px;
  width: 100%;
  border-radius: var(--radius);
  outline: none;
  transition: background var(--transition), color var(--transition);
}
input:focus, textarea:focus, select:focus {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #ffffff; }
::-webkit-scrollbar-thumb { background: #111111; }
::-webkit-scrollbar-thumb:hover { background: #333333; }

/* ============================================
   TOPBAR
   ============================================ */
.topbar {
  background: var(--bg);
  color: var(--white);
  padding: .5vw 4vw;
  border-bottom: 1px solid var(--border-solid);
}
.topbar-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .4vw 2vw;
  border-left: 1px solid var(--border-solid);
  border-right: 1px solid var(--border-solid);
}
.topbar h5 {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0;
  line-height: 1.4;
}
.topbar a { color: var(--white); }
.topbar a:hover { color: var(--gray-mid); }

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg);
  padding: 0 4vw;
  border-bottom: 1px solid var(--border-solid);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: #0a0a0a;
  box-shadow: 0 2px 20px rgba(0,0,0,.6);
}
.header-inner {
  max-width: var(--max-w);
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2vw;
  border-left: 1px solid var(--border-solid);
  border-right: 1px solid var(--border-solid);
  min-height: var(--header-h);
  gap: 2vw;
}
.site-title {
  font-size: clamp(20px, 1.8vw, 36px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #ffffff;
  background: #ffffff;
  color: #111111;
  padding: .5vw 2vw;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-title a { color: inherit; }
.site-title a:hover { color: #333333; }

/* ---- Nav ---- */
.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
  display: block;
  padding: .5em 1vw;
  font-weight: 700;
  font-size: clamp(12px, 1.3vw, 18px);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--nav-text);
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li.active > a {
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
  border-color: var(--nav-hover-bg);
}
/* Dropdown */
.main-nav ul ul {
  position: absolute;
  top: 100%; left: 0;
  background: #111111;
  border: 1px solid var(--border-solid);
  min-width: 200px;
  display: none;
  flex-direction: column;
  z-index: 200;
}
.main-nav ul li:hover > ul { display: flex; }
.main-nav ul ul li a {
  display: block;
  padding: .6em 1.2em;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.main-nav ul ul li a:hover { background: #ffffff; color: #111111; }

/* ---- Header actions ---- */
.header-actions { display: flex; align-items: center; gap: 1vw; flex-shrink: 0; }
.btn-cart {
  position: relative;
  background: none;
  border: 1px solid var(--border-solid);
  color: #fff;
  padding: .4em .9em;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: .5em;
  transition: background var(--transition), color var(--transition);
}
.btn-cart:hover { background: #fff; color: #111; }
.cart-count {
  background: #fff;
  color: #111;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}
.btn-cart:hover .cart-count { background: #111; color: #fff; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid #fff;
  color: #fff;
  font-size: 22px;
  padding: .3em .6em;
  cursor: pointer;
}

/* ============================================
   HERO / BANNER
   ============================================ */
.hero {
  background: var(--bg);
  padding: 6vw 4vw 4vw;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,.02) 40px,
    rgba(255,255,255,.02) 41px
  );
  pointer-events: none;
}
.hero-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 4vw 2vw;
  border: 1px solid var(--border-solid);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: center;
  position: relative;
}
.hero-content { padding: 2vw; }
.hero-eyebrow {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: var(--gray-mid);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 1.5rem;
}
.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--gray-mid);
  max-width: 460px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border: 1px solid var(--border);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 10px 28px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  border: 1px solid var(--border-solid);
}
.btn-primary { background: #111; color: #fff; }
.btn-primary:hover { background: #fff; color: #111; }
.btn-white { background: #fff; color: #111; }
.btn-white:hover { background: #111; color: #fff; }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: #111; }
.btn-sm { padding: 6px 18px; font-size: 13px; }
.btn-lg { padding: 14px 36px; font-size: 18px; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================
   SECCIONES GENERALES
   ============================================ */
.section { padding: 4vw 4vw; }
.section-inner {
  max-width: var(--max-w);
  margin: auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2vw 2vw 2vw;
  border: 1px solid var(--border-solid);
  border-bottom: none;
  margin-bottom: 0;
}
.section-title {
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
}
.section-link {
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fff;
  border-bottom: 1px solid #fff;
  padding-bottom: 2px;
}
.section-link:hover { color: var(--gray-mid); border-color: var(--gray-mid); }

/* ============================================
   GRID DE PRODUCTOS
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0;
  border: 1px solid var(--border-solid);
}
.product-card {
  border-right: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover { background: var(--bg-surface); }
.product-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #1a1a1a;
}
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; filter: grayscale(10%); }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: #fff;
  color: #111;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 4px 10px;
}
.product-badge.sale { background: #fff; color: #111; }
.product-actions {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17,17,17,.9);
  display: flex;
  gap: 0;
  transform: translateY(100%);
  transition: transform var(--transition);
  border-top: 1px solid var(--border-solid);
}
.product-card:hover .product-actions { transform: translateY(0); }
.product-actions button {
  flex: 1;
  padding: 10px;
  background: none;
  border: none;
  border-right: 1px solid var(--border-solid);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  transition: background var(--transition), color var(--transition);
}
.product-actions button:last-child { border-right: none; }
.product-actions button:hover { background: #fff; color: #111; }
.product-info { padding: 1.2rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.product-category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--gray);
}
.product-name {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3;
  margin: 0;
}
.product-name a { color: #fff; }
.product-name a:hover { color: var(--gray-mid); }
.product-price {
  font-size: 17px;
  font-weight: 700;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: .7em;
}
.price-old { text-decoration: line-through; color: var(--gray); font-weight: 400; font-size: 14px; }
.price-sale { color: #fff; }

/* ============================================
   CATEGORIAS BANNER
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-solid);
}
.category-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-right: 1px solid var(--border-solid);
  cursor: pointer;
}
.category-card:last-child { border-right: none; }
.category-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%); transition: transform .5s ease, filter .4s ease; }
.category-card:hover img { transform: scale(1.06); filter: grayscale(0%); }
.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
}
.category-name {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 .5rem;
}
.category-count { font-size: 13px; color: var(--gray-mid); font-weight: 400; }

/* ============================================
   BANNER PROMOCIONAL
   ============================================ */
.promo-banner {
  border: 1px solid var(--border-solid);
  padding: 4vw 2vw;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 3vw;
}
.promo-text { }
.promo-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--gray); margin-bottom: .8rem; }
.promo-title { font-size: clamp(28px, 4vw, 64px); font-weight: 900; text-transform: uppercase; line-height: 1.05; margin-bottom: 1rem; }
.promo-subtitle { font-size: 18px; font-weight: 300; color: var(--gray-mid); }

/* ============================================
   SINGLE PRODUCTO
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--border-solid);
}
.product-gallery { padding: 3vw; border-right: 1px solid var(--border-solid); }
.product-gallery-main {
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
}
.product-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.thumb-item {
  aspect-ratio: 1/1;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}
.thumb-item:hover, .thumb-item.active { border-color: var(--white); }
.thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.product-detail-info { padding: 3vw; }
.product-detail-category { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; color: var(--gray); margin-bottom: 1rem; }
.product-detail-title { font-size: clamp(24px, 3vw, 42px); font-weight: 900; text-transform: uppercase; margin-bottom: 1.5rem; }
.product-detail-price { font-size: 28px; font-weight: 700; margin-bottom: 2rem; display: flex; align-items: baseline; gap: 1rem; }
.product-divider { border: none; border-top: 1px solid var(--border-solid); margin: 2rem 0; }
.product-description { font-weight: 300; line-height: 1.7; color: var(--gray-mid); margin-bottom: 2rem; }
.product-meta { font-size: 13px; color: var(--gray); margin-bottom: .5rem; }
.product-meta span { color: var(--white); font-weight: 600; }

/* Variantes */
.variant-group { margin-bottom: 1.5rem; }
.variant-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .7rem; display: block; }
.variant-options { display: flex; gap: .5rem; flex-wrap: wrap; }
.variant-option {
  padding: .4em 1.1em;
  border: 1px solid var(--border-solid);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  color: #fff;
  transition: background var(--transition), color var(--transition);
}
.variant-option:hover, .variant-option.selected { background: #fff; color: #111; }
.variant-option.swatch { width: 36px; height: 36px; padding: 0; border-radius: 50%; }

/* Qty */
.qty-wrap { display: flex; align-items: center; gap: 0; border: 1px solid var(--border-solid); width: fit-content; margin-bottom: 1.5rem; }
.qty-wrap button { width: 44px; height: 44px; background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition), color var(--transition); }
.qty-wrap button:hover { background: #fff; color: #111; }
.qty-wrap input { width: 60px; height: 44px; background: none; border: none; border-left: 1px solid var(--border-solid); border-right: 1px solid var(--border-solid); text-align: center; color: #fff; font-size: 17px; font-weight: 700; padding: 0; }
.qty-wrap input:focus { background: none; color: #fff; }

/* ============================================
   CART (SIDEBAR Y PÁGINA)
   ============================================ */
.cart-sidebar {
  position: fixed;
  top: 0; right: 0;
  width: min(460px, 100vw);
  height: 100vh;
  background: #111;
  border-left: 1px solid var(--border-solid);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.visible { opacity: 1; pointer-events: all; }
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-solid);
}
.cart-title { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin: 0; }
.cart-close { background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; line-height: 1; padding: 0; transition: color var(--transition); }
.cart-close:hover { color: var(--gray-mid); }
.cart-body { flex: 1; overflow-y: auto; padding: 1.5rem 2rem; }
.cart-empty { text-align: center; padding: 4rem 2rem; }
.cart-empty-icon { font-size: 48px; margin-bottom: 1rem; opacity: .4; }
.cart-empty p { color: var(--gray); font-size: 16px; }
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.cart-item-img { aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--border); }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 14px; font-weight: 700; text-transform: uppercase; margin-bottom: .3rem; letter-spacing: .04em; }
.cart-item-meta { font-size: 12px; color: var(--gray); }
.cart-item-qty { display: flex; align-items: center; gap: .5rem; margin-top: .7rem; }
.cart-item-qty button { background: none; border: 1px solid var(--border-solid); color: #fff; width: 28px; height: 28px; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.cart-item-qty button:hover { background: #fff; color: #111; }
.cart-item-qty span { font-weight: 700; font-size: 15px; min-width: 24px; text-align: center; }
.cart-item-right { text-align: right; }
.cart-item-price { font-weight: 700; font-size: 16px; margin-bottom: .5rem; }
.cart-item-remove { background: none; border: none; color: var(--gray); font-size: 20px; cursor: pointer; line-height: 1; transition: color var(--transition); }
.cart-item-remove:hover { color: #fff; }
.cart-footer { padding: 1.5rem 2rem; border-top: 1px solid var(--border-solid); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; }
.cart-subtotal-label { font-size: 15px; text-transform: uppercase; font-weight: 700; letter-spacing: .08em; }
.cart-subtotal-value { font-size: 22px; font-weight: 900; }

/* ---- Cart Page ---- */
.cart-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  align-items: start;
  border: 1px solid var(--border-solid);
}
.cart-items-col { border-right: 1px solid var(--border-solid); }
.cart-items-col table { width: 100%; border-collapse: collapse; }
.cart-items-col th { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--gray); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-solid); text-align: left; }
.cart-items-col td { padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-summary-col { padding: 2rem; }
.cart-summary-title { font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem; }
.cart-summary-row { display: flex; justify-content: space-between; padding: .8rem 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.cart-summary-total { font-weight: 900; font-size: 20px; }

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 0;
  align-items: start;
  border: 1px solid var(--border-solid);
}
.checkout-form-col { padding: 3vw; border-right: 1px solid var(--border-solid); }
.checkout-summary-col { padding: 2rem; background: var(--bg-surface); }
.form-section-title { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1.5rem; padding-bottom: .8rem; border-bottom: 1px solid var(--border-solid); }
.form-row { margin-bottom: 1.2rem; }
.form-row label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: .5rem; color: var(--gray-mid); }
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.order-item-row { display: flex; align-items: center; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.order-item-img { width: 60px; height: 60px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.order-item-details { flex: 1; font-size: 14px; }
.order-item-name { font-weight: 700; text-transform: uppercase; margin-bottom: .2rem; }
.order-item-price-col { font-weight: 700; font-size: 16px; flex-shrink: 0; }
#stripe-card-element {
  background: var(--bg);
  border: 1px solid var(--border-solid);
  padding: 1rem;
  margin-bottom: 1.5rem;
  transition: border-color var(--transition);
}
#stripe-card-element.StripeElement--focus { border-color: #fff; }
#payment-message { font-size: 14px; color: #ff6b6b; margin-top: 1rem; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--bg);
  padding: 0 4vw;
  margin-top: 4vw;
}
.footer-inner {
  max-width: var(--max-w);
  margin: auto;
  border: 1px solid var(--border-solid);
  border-bottom: none;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.footer-brand {
  padding: 3vw 2vw;
  border-right: 1px solid var(--border-solid);
  border-bottom: 1px solid var(--border-solid);
}
.footer-brand-title {
  font-size: clamp(28px, 4vw, 60px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1vw;
  background: #fff;
  color: #111;
  display: inline-block;
  padding: .2em .5em;
}
.footer-brand-desc { font-size: clamp(14px, 2vw, 24px); font-weight: 300; color: #fff; padding-right: 8vw; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3vw 2vw;
  border-bottom: 1px solid var(--border-solid);
}
.footer-col { padding: 0 1.5vw; border-right: 1px solid var(--border); }
.footer-col:first-child { padding-left: 0; }
.footer-col:last-child { border-right: none; }
.footer-col-title { font-size: clamp(14px, 2vw, 24px); font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col p, .footer-col a { font-size: clamp(12px, 1.3vw, 18px); font-weight: 400; display: block; margin-bottom: .5rem; color: #fff; }
.footer-col a:hover { color: var(--gray-mid); }
.footer-bottom {
  padding: 1rem 2vw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--gray);
  border-top: 1px solid var(--border-solid);
}

/* ============================================
   BACK TO TOP
   ============================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px; height: 46px;
  background: #111;
  border: 1px solid #fff;
  color: #fff;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), color var(--transition);
}
#back-to-top.visible { opacity: 1; pointer-events: all; }
#back-to-top:hover { background: #fff; color: #111; }

/* ============================================
   BREADCRUMB / PAGE HEADER
   ============================================ */
.page-header {
  padding: 3vw 4vw 0;
}
.page-header-inner {
  max-width: var(--max-w);
  margin: auto;
  padding: 2vw 2vw 2vw;
  border: 1px solid var(--border-solid);
  border-bottom: none;
}
.breadcrumb { font-size: 13px; color: var(--gray); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .8rem; }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 .5em; }
.page-title { font-size: clamp(24px, 4vw, 56px); font-weight: 900; text-transform: uppercase; margin: 0; }

/* ============================================
   SHOP FILTERS
   ============================================ */
.shop-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  border: 1px solid var(--border-solid);
  margin: 0 4vw 4vw;
}
.shop-sidebar { border-right: 1px solid var(--border-solid); padding: 2rem; }
.filter-group { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--border); }
.filter-group:last-child { border-bottom: none; }
.filter-title { font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 1rem; }
.filter-item { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; cursor: pointer; }
.filter-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: #fff; cursor: pointer; }
.filter-item label { font-size: 14px; cursor: pointer; }
.price-range { margin-top: .5rem; }
.price-range input[type="range"] { width: 100%; accent-color: #fff; background: none; border: none; padding: 0; cursor: pointer; }
.price-labels { display: flex; justify-content: space-between; font-size: 13px; margin-top: .4rem; color: var(--gray); }
.shop-main { }
.shop-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border-solid);
}
.shop-count { font-size: 14px; color: var(--gray); }
.shop-sort select { border: 1px solid var(--border-solid); background: #111; color: #fff; padding: .4em 1em; font-size: 14px; }

/* ============================================
   TOAST / NOTIFICATIONS
   ============================================ */
.toast-container { position: fixed; bottom: 2rem; left: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: .7rem; }
.toast {
  background: #fff;
  color: #111;
  padding: 1rem 1.5rem;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  border-left: 4px solid #111;
  animation: toastIn .3s ease forwards;
  max-width: 300px;
}
@keyframes toastIn { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ============================================
   NOISE TEXTURE OVERLAY
   ============================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .03;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { border-right: none; border-bottom: 1px solid var(--border-solid); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { aspect-ratio: 16/9; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { border-right: none; border-bottom: 1px solid var(--border-solid); }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary-col { border-top: 1px solid var(--border-solid); }
  .cart-page-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 25px; }
  .main-nav { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #111; flex-direction: column; align-items: flex-start; padding: 5rem 2rem 2rem; z-index: 1500; overflow-y: auto; }
  .main-nav.open { display: flex; }
  .main-nav > ul { flex-direction: column; width: 100%; }
  .main-nav > ul > li > a { font-size: 20px; padding: .8em 0; border-bottom: 1px solid var(--border); }
  .menu-toggle { display: block; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { aspect-ratio: 16/9; }
  .footer-cols { grid-template-columns: 1fr; }
  .promo-banner { grid-template-columns: 1fr; }
  .form-cols { grid-template-columns: 1fr; }
  .topbar { display: none; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .section { padding: 8vw 4vw; }
  .header-inner { padding: 0 4vw; }
}

/* ============================================
   LOADING
   ============================================ */
.loading-spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 2rem auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-box {
  text-align: center;
  padding: 6vw 4vw;
  max-width: 600px;
  margin: 0 auto;
}
.success-icon { font-size: 72px; margin-bottom: 2rem; }
.success-title { font-size: 42px; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; }
.success-order { font-size: 14px; color: var(--gray); font-weight: 700; text-transform: uppercase; letter-spacing: .15em; margin-bottom: 2rem; }
