/* =============================================
   byjackieoficial — Single Product Mobile
   ============================================= */

/* Limpiar layout del theme en página de producto */
body.single-product .site-content,
body.single-product .content-area,
body.single-product main#main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
body.single-product .container,
body.single-product .woocommerce {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
}
body.single-product .woocommerce-notices-wrapper { padding: 0 16px; }

/* ---- PÁGINA ---- */
.bjk-page {
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  padding-bottom: 170px;
}

/* ---- TOPBAR ---- */
.bjk-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 0.5px solid #f0f0f0;
}
.bjk-topbar-right { display: flex; gap: 2px; }
.bjk-icon-btn {
  background: none;
  border: none;
  color: #1a1a1a;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  text-decoration: none;
}

/* ---- GALERÍA ---- */
.bjk-gallery {
  position: relative;
  background: #f7f4f2;
  overflow: hidden;
}
.bjk-slides {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bjk-slides::-webkit-scrollbar { display: none; }
.bjk-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  aspect-ratio: 1 / 1;
}
.bjk-slide-img,
.bjk-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bjk-badge {
  position: absolute;
  top: 12px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 2;
}
.bjk-badge-sale { left: 12px; background: #1a1a1a; color: #fff; }
.bjk-badge-hot  { left: 12px; background: #f0997b; color: #4A1B0C; }
.bjk-badge-sale + .bjk-badge-hot { top: 44px; }
.bjk-counter {
  position: absolute;
  bottom: 62px;
  right: 12px;
  background: rgba(0,0,0,0.38);
  color: #fff;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 20px;
}
.bjk-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #f7f4f2;
}
.bjk-thumbs::-webkit-scrollbar { display: none; }
.bjk-thumb {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  border: 1.5px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
}
.bjk-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bjk-thumb.active { border-color: #1a1a1a; }

/* ---- INFO ---- */
.bjk-info { padding: 14px 16px 0; }

.bjk-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  flex-wrap: wrap;
}
.bjk-stars { display: flex; gap: 1px; }
.bjk-rating-num { font-size: 13px; font-weight: 500; color: #1a1a1a; }
.bjk-rating-meta { font-size: 12px; color: #999; }

.bjk-title {
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #1a1a1a !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
}

.bjk-divider {
  border: none;
  border-top: 0.5px solid #ececec;
  margin: 12px 0;
}

/* ---- VARIACIONES WOOCOMMERCE ---- */
.bjk-info .variations_form { margin: 0; }
.bjk-info .variations_form .variations {
  width: 100%;
  border: none;
  margin: 0;
  border-collapse: collapse;
}
.bjk-info .variations_form .variations tr { display: block; margin-bottom: 14px; }
.bjk-info .variations_form .variations td,
.bjk-info .variations_form .variations th {
  display: block;
  padding: 0;
  border: none;
  text-align: left;
}
.bjk-info .variations_form label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #999 !important;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  display: block;
}
.bjk-info .variations_form select {
  width: 100%;
  padding: 11px 14px;
  border: 0.5px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  -webkit-appearance: auto;
  appearance: auto;
}
/* Ocultar botón de WC — lo reemplazamos con nuestro CTA bar */
.bjk-info .single_add_to_cart_button,
.bjk-info .woocommerce-variation-add-to-cart,
.bjk-info .cart { display: none !important; }

/* ---- PRECIO ---- */
.bjk-price-wrap .price {
  font-size: 26px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  line-height: 1.1 !important;
}
.bjk-price-wrap .price del {
  font-size: 15px !important;
  color: #bbb !important;
  font-weight: 400 !important;
}
.bjk-price-wrap .price ins { text-decoration: none !important; }

/* Cuotas Mercado Pago */
.bjk-price-wrap [class*="mercadopago"],
.bjk-price-wrap .wc-mercadopago-installments {
  font-size: 13px !important;
  color: #555 !important;
  margin-top: 5px;
}

/* ---- ENVÍO Y STOCK ---- */
.bjk-envio {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 13px;
  color: #555;
  margin-top: 10px;
  line-height: 1.45;
}
.bjk-envio svg { flex-shrink: 0; margin-top: 1px; }
.bjk-envio strong { color: #1a1a1a; font-weight: 500; }

.bjk-stock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  margin-top: 6px;
}
.bjk-stock-ok { color: #27500A; }
.bjk-stock-low { color: #BA7517; }

.bjk-short-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  margin-top: 14px;
  padding-bottom: 4px;
}

/* ---- ACORDEÓN ---- */
.bjk-accordion { border-top: 0.5px solid #ececec; }
.bjk-accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 16px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  cursor: pointer;
  text-align: left;
}
.bjk-chev { transition: transform 0.2s; flex-shrink: 0; }
.bjk-accordion-btn[aria-expanded="true"] .bjk-chev { transform: rotate(180deg); }
.bjk-accordion-body {
  padding: 0 16px 16px;
  font-size: 13px;
  color: #555;
  line-height: 1.7;
}

/* ---- CTA BAR ---- */
.bjk-cta-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  padding: 10px 16px 16px;
  background: #fff;
  border-top: 0.5px solid #e8e8e8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 150;
}
.bjk-btn {
  width: 100%;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: opacity 0.15s;
  text-align: center;
}
.bjk-btn:active { opacity: 0.8; }
.bjk-btn-comprar { background: #1a1a1a; color: #fff; }
.bjk-btn-carrito { background: #fff; color: #1a1a1a; border: 0.5px solid #ccc; }
.bjk-btn-wsp     { background: #EAF3DE; color: #27500A; }

/* ---- DESKTOP: centrado con sidebar si el theme lo requiere ---- */
@media (min-width: 768px) {
  .bjk-page { max-width: 480px; margin: 0 auto; }
  .bjk-cta-bar { position: static; transform: none; border-top: 0.5px solid #ececec; margin-top: 12px; max-width: 480px; }
}
