/* ==========================================================================
   BLOCKSTORE ARGENTINA - IMPRESIONES 3D & CRYPTO TECH STOREFRONT CSS
   Versión: v1.7.0
   ========================================================================== */

:root {
  --bs-bg-dark: #0f172a;
  --bs-bg-card: #1e293b;
  --bs-bg-light: #f8fafc;
  --bs-primary: #3b82f6;
  --bs-primary-hover: #2563eb;
  --bs-accent: #f59e0b;
  --bs-accent-glow: rgba(245, 158, 11, 0.2);
  --bs-text-main: #0f172a;
  --bs-text-muted: #64748b;
  --bs-border: #e2e8f0;
  --bs-radius: 12px;
  --bs-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --bs-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --bs-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

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

body {
  font-family: var(--bs-font);
  background-color: var(--bs-bg-light);
  color: var(--bs-text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* TOP NOTIFICATION BAR */
.bs-top-bar {
  background: #020617;
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.5rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1e293b;
  font-weight: 500;
}

.bs-top-bar a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.bs-top-bar a:hover {
  color: var(--bs-accent);
}

/* NAVBAR */
.bs-navbar {
  background: white;
  border-bottom: 1px solid var(--bs-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.bs-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.bs-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.bs-brand-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--bs-accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 900;
  border: 1px solid #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.bs-brand-info h1 {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #0f172a;
  line-height: 1.1;
}

.bs-brand-info span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.bs-search-bar {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.bs-search-input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.6rem;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.88rem;
  outline: none;
  transition: all 0.2s;
}

.bs-search-input:focus {
  background: white;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.bs-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
}

.bs-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.bs-btn-cart {
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 9999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bs-btn-cart:hover {
  background: #1e293b;
  transform: translateY(-1px);
}

.bs-btn-account {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 0.95rem;
  border-radius: 9999px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bs-btn-account:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.bs-cart-badge {
  background: var(--bs-accent);
  color: #0f172a;
  border-radius: 9999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
}

/* CATEGORY SUBNAV */
.bs-subnav {
  background: white;
  border-bottom: 1px solid var(--bs-border);
  padding: 0.6rem 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.bs-subnav-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.bs-cat-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.bs-cat-pill:hover, .bs-cat-pill.active {
  background: #0f172a;
  color: white;
  border-color: #0f172a;
}

/* HERO BANNER */
.bs-hero {
  background: linear-gradient(135deg, #090d16 0%, #1e293b 100%);
  color: white;
  padding: 2.5rem 1.5rem;
  border-bottom: 1px solid #334155;
}

.bs-hero-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.bs-hero-text h2 {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.bs-hero-text h2 span {
  color: var(--bs-accent);
}

.bs-hero-text p {
  color: #94a3b8;
  font-size: 0.95rem;
  max-width: 600px;
}

/* CATALOG GRID */
.bs-catalog-container {
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.bs-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.bs-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* PRODUCT CARD */
.bs-card {
  background: white;
  border: 1px solid var(--bs-border);
  border-radius: var(--bs-radius);
  overflow: hidden;
  box-shadow: var(--bs-shadow);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.bs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bs-shadow-lg);
  border-color: #cbd5e1;
}

.bs-card-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 80%;
  background: #f8fafc;
  overflow: hidden;
}

.bs-card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.bs-card:hover .bs-card-img {
  transform: scale(1.04);
}

.bs-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bs-card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: #3b82f6;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.5px;
}

.bs-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.bs-card-desc {
  font-size: 0.82rem;
  color: var(--bs-text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
  flex: 1;
}

.bs-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.bs-card-price {
  font-size: 1.3rem;
  font-weight: 900;
  color: #0f172a;
}

.bs-btn-buy {
  background: #0f172a;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.bs-btn-buy:hover {
  background: #2563eb;
}

/* DRAWER CARRITO */
.bs-cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: white;
  box-shadow: -5px 0 25px rgba(0,0,0,0.15);
  z-index: 200;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bs-cart-drawer.active {
  right: 0;
}

.bs-cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 199;
  display: none;
}

.bs-cart-overlay.active {
  display: block;
}

.bs-cart-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--bs-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bs-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bs-cart-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.bs-cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.bs-cart-footer {
  padding: 1.25rem;
  border-top: 1px solid var(--bs-border);
  background: #f8fafc;
}

.bs-btn-checkout {
  width: 100%;
  background: #0f172a;
  color: white;
  padding: 0.85rem;
  border-radius: 8px;
  border: none;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s;
  text-align: center;
  text-decoration: none;
  display: block;
}

.bs-btn-checkout:hover {
  background: #2563eb;
}
