/* ============================================
   BORTLE CERO — TIENDA (WooCommerce) · Noir Cósmico
   1. Archivo: header, filtros, grid
   2. Tarjeta de producto
   3. Producto individual (override del markup nativo)
   4. Botones y precio
   5. Carrito
   6. Checkout
   7. Mi cuenta
   8. Notices
   9. Responsive
   ============================================ */

.bc-shop { background: #080c14; }

/* ── 1. HEADER ── */
.bc-shop-header {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080c14;
}
.bc-shop-header__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(var(--shop-rgb,123,168,212),0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 30% 30%, #16263e 0%, #0d1625 45%, #080c14 100%);
}
.bc-shop-header__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, #080c14 2%, rgba(8,12,20,.55) 50%, rgba(8,12,20,.3) 100%);
}
.bc-shop-header__stars { position: absolute; inset: 0; pointer-events: none; }
.bc-shop-header__content {
  position: relative; z-index: 2;
  max-width: 1200px; margin: 0 auto; width: 100%;
  padding: 0 40px 56px;
}
.bc-shop-header__eyebrow {
  font-size: 10px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--bc-muted,#4a6080); font-weight: 400; margin-bottom: 14px;
}
.bc-shop-header__title {
  font-size: clamp(36px,6vw,64px); font-weight: 500; color: #f0f6ff;
  letter-spacing: -1px; line-height: 1.1; margin: 0;
}
.bc-shop-header__accent {
  width: 32px; height: 2px; background: var(--shop-color,#7ba8d4);
  border-radius: 1px; margin: 18px 0;
}
.bc-shop-header__desc {
  font-size: 15px; font-weight: 300; color: #8aa4c0; max-width: 560px;
}

/* ── FILTROS (sticky, como el blog) ── */
.bc-shop-filters {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,12,20,.82);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: .5px solid #1a2840;
}
.bc-shop-filters__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
}
.bc-shop-filters__inner::-webkit-scrollbar { display: none; }
.bc-shop-filter {
  padding: 14px 18px; font-size: 12px; letter-spacing: .5px;
  color: var(--bc-muted,#4a6080); text-decoration: none; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .15s ease, border-color .15s ease;
}
.bc-shop-filter:hover { color: #f0f6ff; }
.bc-shop-filter.is-active {
  color: var(--filter-color,#7ba8d4);
  border-bottom-color: var(--filter-color,#7ba8d4);
}

/* ── GRID ── */
.bc-shop-main { max-width: 1200px; margin: 0 auto; padding: 60px 40px 90px; }
.bc-shop-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin: 0; list-style: none;
}
.bc-shop-grid::before, .bc-shop-grid::after { content: none; } /* anula clearfix WC */
.bc-shop-empty { color: #8aa4c0; text-align: center; padding: 40px 0; }

/* ── 2. TARJETA DE PRODUCTO ── */
.bc-product-card {
  background: #0d1625; border: .5px solid #1a2840; border-radius: 10px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
  margin: 0; width: auto; float: none;
}
.bc-product-card:hover { border-color: var(--card-color,#7ba8d4); transform: translateY(-3px); }
.bc-product-card__thumb-wrap {
  position: relative; display: block; aspect-ratio: 4/5; overflow: hidden;
}
.bc-product-card__thumb { position: absolute; inset: 0; }
.bc-product-card__img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.bc-product-card:hover .bc-product-card__img { transform: scale(1.05); }
.bc-product-card__thumb-overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(13,22,37,.6) 0%, transparent 55%);
}
.bc-product-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: #080c14; background: var(--card-color,#7ba8d4);
  padding: 4px 10px; border-radius: 20px; font-weight: 500;
}
.bc-product-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.bc-product-card__cat {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--card-color,#7ba8d4);
}
.bc-product-card__title { font-size: 16px; font-weight: 500; margin: 8px 0 10px; line-height: 1.35; }
.bc-product-card__title a { color: #f0f6ff; text-decoration: none; }
.bc-product-card__title a:hover { color: var(--card-color,#7ba8d4); }
.bc-product-card__price { font-size: 18px; font-weight: 500; color: var(--card-color,#7ba8d4); }
.bc-product-card__price del { color: #4a6080; font-weight: 300; margin-right: 6px; }
.bc-product-card__price ins { text-decoration: none; }
.bc-product-card__footer { margin-top: auto; padding-top: 14px; }
.bc-product-card__link {
  font-size: 12px; letter-spacing: .5px; color: var(--card-color,#7ba8d4); text-decoration: none;
}

/* ── 3. PRODUCTO INDIVIDUAL (markup nativo WC) ── */
.single-product .bc-shop,
.woocommerce.single-product .site-content { background: #080c14; }
.single-product div.product {
  max-width: 1140px; margin: 0 auto; padding: 60px 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
}
.single-product div.product .woocommerce-product-gallery { margin: 0; }
.single-product div.product .woocommerce-product-gallery__image img { border-radius: 10px; }
.single-product .product_title {
  font-size: clamp(26px,4vw,44px); font-weight: 500; color: #f0f6ff;
  letter-spacing: -.5px; line-height: 1.15; margin: 0 0 16px;
}
.single-product .woocommerce-product-details__short-description {
  color: #9ab4cc; font-weight: 300; line-height: 1.8; font-size: 15px;
}
.single-product .price,
.single-product .price .woocommerce-Price-amount {
  color: var(--bc-acento,#7ba8d4) !important; font-size: 24px; font-weight: 500;
}
.single-product .price del .woocommerce-Price-amount { color: #4a6080 !important; font-size: 18px; }
.single-product .product_meta { font-size: 12px; color: #4a6080; margin-top: 20px; }
.single-product .product_meta a { color: var(--bc-acento,#7ba8d4); }

/* Variaciones (tamaño/acabado) */
.single-product table.variations { width: 100%; margin: 0 0 18px; }
.single-product table.variations th { color: #c8d8ec; font-weight: 400; text-align: left; }
.single-product .variations select,
.single-product .quantity input.qty {
  background: #0d1625; border: .5px solid #2a4060; color: #f0f6ff;
  border-radius: 8px; padding: 10px 12px; font-family: var(--bc-font,'Space Grotesk',sans-serif);
}

/* Pestañas de descripción / reseñas */
.woocommerce-tabs { grid-column: 1 / -1; max-width: 1140px; margin: 40px auto 0; padding: 0 40px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 6px; padding: 0; border-bottom: .5px solid #1a2840; }
.woocommerce-tabs ul.tabs li a {
  color: var(--bc-muted,#4a6080); text-decoration: none; padding: 10px 16px;
  font-size: 13px; display: inline-block;
}
.woocommerce-tabs ul.tabs li.active a { color: #f0f6ff; border-bottom: 2px solid var(--bc-acento,#7ba8d4); }
.woocommerce-tabs .panel { color: #9ab4cc; font-weight: 300; line-height: 1.8; padding-top: 22px; }
.woocommerce-tabs h2 { color: #f0f6ff; font-weight: 500; }

/* Relacionados / ventas cruzadas */
.related.products, .up-sells.products { grid-column: 1 / -1; max-width: 1140px; margin: 60px auto 0; padding: 0 40px; }
.related.products > h2, .up-sells.products > h2, .cross-sells > h2 {
  font-size: 22px; color: #f0f6ff; font-weight: 500; margin-bottom: 24px;
}
.related.products ul.products, .up-sells ul.products {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; list-style: none; margin: 0; padding: 0;
}

/* ── 4. BOTONES Y PRECIO ── */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button {
  background: var(--bc-estrella,#b8d4f0) !important; color: #080c14 !important;
  border: none !important; border-radius: 6px !important;
  font-family: var(--bc-font,'Space Grotesk',sans-serif) !important;
  font-size: 13px !important; letter-spacing: 1px; text-transform: uppercase;
  font-weight: 500 !important; padding: 14px 26px !important; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.single_add_to_cart_button:hover { background: #f0f6ff !important; transform: translateY(-2px); }
.woocommerce .button.alt, .single_add_to_cart_button.alt { background: var(--bc-acento,#7ba8d4) !important; }

/* Botón "outline" (seguir comprando, etc.) */
.woocommerce .button.wc-backward {
  background: transparent !important; color: var(--bc-acento,#7ba8d4) !important;
  border: .5px solid #2a4060 !important;
}

/* ── 5. CARRITO ── */
.woocommerce-cart .bc-shop,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content { background: #080c14; }
.woocommerce table.shop_table {
  background: #0d1625; border: .5px solid #1a2840; border-radius: 10px; color: #c8d8ec;
  border-collapse: separate;
}
.woocommerce table.shop_table th { color: #f0f6ff; font-weight: 500; }
.woocommerce table.shop_table td { border-top: .5px solid #1a2840; }
.woocommerce table.shop_table a { color: var(--bc-acento,#7ba8d4); }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { color: #f0f6ff; font-weight: 500; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-checkout #order_review {
  background: #0d1625; border: .5px solid #1a2840; border-radius: 10px; padding: 6px 20px;
}

/* Campos de formulario */
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce-checkout input,
.select2-container .select2-selection {
  background: #0d1625 !important; border: .5px solid #2a4060 !important; color: #f0f6ff !important;
  border-radius: 8px !important; padding: 12px 14px !important;
  font-family: var(--bc-font,'Space Grotesk',sans-serif) !important;
}
.woocommerce form .form-row label,
.woocommerce-checkout label { color: #c8d8ec; }

/* ── 6. CHECKOUT ── */
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout #payment { background: #0d1625; border-radius: 10px; }
.woocommerce #payment .payment_methods { border: .5px solid #1a2840; border-radius: 10px; }
.woocommerce-checkout #payment ul.payment_methods li { color: #c8d8ec; }

/* ── 7. MI CUENTA ── */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { color: var(--bc-muted,#4a6080); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--bc-acento,#7ba8d4); }

/* ── 8. NOTICES ── */
.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
  background: #0d1625 !important; color: #c8d8ec !important;
  border-top: none !important; border-left: 3px solid var(--bc-acento,#7ba8d4);
  border-radius: 8px; padding: 14px 18px; list-style: none;
}
.woocommerce-message { border-left-color: #6dd5c0; }
.woocommerce-error { border-left-color: #e07a7a; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: inherit; }

/* ── PAGINACIÓN ── */
.bc-shop-pagination { margin-top: 50px; }
.bc-shop-pagination .page-numbers {
  list-style: none; display: flex; gap: 6px; justify-content: center; padding: 0; flex-wrap: wrap;
}
.bc-shop-pagination .page-numbers li .page-numbers {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 6px; border: .5px solid #2a4060;
  color: #8aa4c0; text-decoration: none;
}
.bc-shop-pagination .page-numbers li .page-numbers.current,
.bc-shop-pagination .page-numbers li .page-numbers:hover {
  color: var(--bc-acento,#7ba8d4); border-color: var(--bc-acento,#7ba8d4);
  background: rgba(123,168,212,.08);
}

/* ── 9. RESPONSIVE ── */
@media (max-width: 1024px) {
  .bc-shop-grid, .related.products ul.products, .up-sells ul.products { grid-template-columns: repeat(2,1fr); }
  .single-product div.product { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .bc-shop-grid, .related.products ul.products, .up-sells ul.products { grid-template-columns: 1fr; }
  .bc-shop-header__content, .bc-shop-main, .bc-shop-filters__inner { padding-left: 24px; padding-right: 24px; }
  .single-product div.product, .woocommerce-tabs, .related.products { padding-left: 24px; padding-right: 24px; }
}
