/* ==========================================================================
   RUOK STORE - APPLE STORE INSPIRED DESIGN SYSTEM
   Minimalist, High-End Dark Aesthetic, Precision Typography & Whitespace
   ========================================================================== */

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

:root {
  /* Apple-Inspired Slate & Titanium Dark Theme */
  --store-bg: #0b0e14;
  --store-surface: #121620;
  --store-card: #161b26;
  --store-card-hover: #1c2331;
  --store-border: rgba(255, 255, 255, 0.09);
  --store-border-focus: rgba(88, 166, 255, 0.5);

  /* Acentos y Tipografía */
  --store-text: #f0f6fc;
  --store-muted: #8b949e;
  --store-dim: #6e7681;
  
  --store-accent: #2f81f7;
  --store-accent-hover: #1f6feb;
  --store-green: #3fb950;
  --store-gold: #e3b341;
  --store-flame: #ff2a5f;

  --font-apple: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-rock: 'Bebas Neue', sans-serif;
  --font-brand: 'Rajdhani', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 12px 30px rgba(0, 0, 0, 0.45);
  --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.65);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-apple);
  background-color: var(--store-bg);
  color: var(--store-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

.store-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ════════════ HEADER MINIMALISTA ESTILO APPLE ════════════ */
.store-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 20, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--store-border);
}

.store-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}

.store-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}

.store-brand span.badge-store {
  font-family: var(--font-apple);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c9d1d9;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.store-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.store-nav-item {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--store-muted);
  transition: var(--transition);
}

.store-nav-item:hover {
  color: #fff;
}

.store-nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-store-bag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #000;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.15);
}

.btn-store-bag:hover {
  background: #f0f6fc;
  transform: scale(1.03);
}

.btn-store-bag .bag-counter {
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ════════════ HERO KEYNOTE SHOWCASE ════════════ */
.store-hero {
  padding: 48px 0 32px;
  text-align: center;
}

.store-hero-eyebrow {
  font-family: var(--font-apple);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--store-gold);
  margin-bottom: 8px;
}

.store-hero-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 12px;
}

.store-hero-subtitle {
  font-size: 17px;
  color: var(--store-muted);
  max-width: 620px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

/* ════════════ BARRA DE CATEGORÍAS & BÚSQUEDA ════════════ */
.store-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding: 12px 16px;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--radius-lg);
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.category-pill {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--store-muted);
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.category-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.category-pill.active {
  background: #fff;
  color: #000;
  font-weight: 700;
}

.store-search-box {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--store-border);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  gap: 8px;
  min-width: 240px;
}

.store-search-box input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  outline: none;
  width: 100%;
}

/* ════════════ GRID DE PRODUCTOS ESTILO APPLE ════════════ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
  margin-bottom: 60px;
}

.product-card {
  background: var(--store-card);
  border: 1px solid var(--store-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
  position: relative;
}

.product-card:hover {
  background: var(--store-card-hover);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-hover);
}

.product-stage {
  height: 250px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.3) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.product-stage img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

.product-card:hover .product-stage img {
  transform: scale(1.05);
}

.btn-zoom-stage {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(11, 14, 20, 0.85);
  border: 1px solid var(--store-border);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.btn-zoom-stage:hover {
  background: #fff;
  color: #000;
  transform: scale(1.1);
}

.product-category-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(11, 14, 20, 0.75);
  border: 1px solid var(--store-border);
  color: var(--store-muted);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-desc {
  font-size: 13.5px;
  color: var(--store-muted);
  margin-bottom: 18px;
  line-height: 1.45;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 14px;
  margin-top: auto;
}

.product-price {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}

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

.product-stock-badge {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-stock-badge.in-stock { color: var(--store-green); }
.product-stock-badge.out-of-stock { color: var(--store-flame); }

/* Selector de variantes estilo Apple */
.product-variant-select {
  width: 100%;
  background: var(--store-surface);
  border: 1px solid var(--store-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  outline: none;
  margin-bottom: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.product-variant-select:focus {
  border-color: var(--store-accent);
}

.btn-add-bag {
  width: 100%;
  background: var(--store-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-add-bag:hover {
  background: var(--store-accent-hover);
  transform: translateY(-2px);
}

/* ════════════ LIGHTBOX MODAL DE FOTO EN GRANDE ════════════ */
.store-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.store-lightbox.active {
  display: flex;
}

.lightbox-dialog {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-dialog img {
  max-width: 85vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 14px;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: #fff;
  color: #000;
}

/* ════════════ FOOTER APPLE MINIMALISTA ════════════ */
.store-footer {
  margin-top: auto;
  border-top: 1px solid var(--store-border);
  padding: 40px 0 24px;
  background: #07090e;
  font-size: 13px;
  color: var(--store-dim);
}

.store-footer-links {
  display: flex;
  gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.store-footer-links a:hover {
  color: #fff;
}

/* ════════════ RESPONSIVE ════════════ */
@media (max-width: 768px) {
  .store-nav-links {
    display: none;
  }
  .store-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .category-pills {
    width: 100%;
  }
  .store-search-box {
    width: 100%;
  }
}
