/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0
*/

/* Mostrar solo si el usuario está logueado */
body.logged-in .solo-logueados {
  display: block !important;
}
body.logged-out .solo-logueados {
  display: none !important;
}

/* ========================================================================== */
/* ENLACES DE MI CUENTA */
.woocommerce-MyAccount-content a {
  color: #E66000 !important;
  text-decoration: none;
  font-weight: 500;
}
.woocommerce-MyAccount-content a:hover {
  color: #0073aa !important;
  text-decoration: underline;
}

/* ========================================================================== */
/* PRECIO SIN OFERTA */
.no-sale-price {
  color: #2A2A2A;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
}

/* ========================================================================== */
/* REDES SOCIALES */
.cj-social-wrapper {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}
.cj-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  font-size: 22px;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cj-social:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cj-facebook { background-color: #3b5998; }
.cj-whatsapp { background-color: #25D366; }
.cj-twitter,
.cj-threads { background-color: #000; }
.cj-social i {
  line-height: 1;
}

/* ========================================================================== */
/* BARRA STICKY EN MÓVIL (NO TOCAR) */
@media (max-width: 767px) {
  .sticky-compra {
    position: static !important;
    box-shadow: none !important;
  }

  .barra-sticky {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box;
    z-index: 9999;
    background: #1a1a3a;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    overflow-x: hidden;
  }

  .barra-sticky * {
    box-sizing: border-box;
    max-width: 100%;
  }

  .barra-sticky .elementor-widget-woocommerce-product-price {
    color: #fff;
    font-size: 18px;
    font-weight: bold;
  }

  .barra-sticky .elementor-button {
    background: #ff7300;
    color: #fff;
    font-weight: bold;
    padding: 10px 18px;
    border-radius: 6px;
  }

  .barra-sticky .price:not(:has(del)) {
    color: #ffffff !important;
    font-weight: bold;
  }

  .barra-sticky .price del {
    font-size: 10px !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 0.6;
    margin-right: 8px;
  }

  .barra-sticky .price ins {
    color: #ffffff !important;
    font-weight: bold;
    text-decoration: none !important;
  }

  .barra-sticky .woocommerce-Price-amount.amount,
  .barra-sticky .woocommerce-Price-currencySymbol {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: bold;
  }

  .barra-sticky span:has(> bdi):not(.woocommerce-Price-amount) {
    display: none !important;
  }

  .barra-sticky span:before {
    content: attr(data-label);
    font-size: 0 !important;
    color: transparent !important;
  }

  .barra-sticky-spacer {
    height: 72px;
    width: 100vw;
  }

  body, .site, .elementor-section, .elementor-container, .woocommerce, .woocommerce-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
}

/* ========================================================================== */
/* STOCK - OCULTAR */
.woocommerce div.product form.cart .stock,
.woocommerce div.product form.cart p.stock,
.woocommerce div.product form.cart span.stock,
.woocommerce div.product p.stock,
.woocommerce .stock {
  display: none !important;
}

/* ========================================================================== */
/* PREVENIR SCROLL HORIZONTAL GENERAL */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* === TABLA DE PEDIDOS === */
.woocommerce table.my_account_orders {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #1A1F36;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.woocommerce table.my_account_orders thead th {
  background-color: #f3f3f3;
  color: #1A1F36;
  font-weight: 600;
  text-transform: uppercase;
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 2px solid #e0e0e0;
}
.woocommerce table.my_account_orders td {
  padding: 14px 12px;
  background-color: #ffffff;
  border-bottom: 1px solid #efefef;
}
.woocommerce table.my_account_orders td.order-number a {
  color: #E66000;
  font-weight: bold;
}
.woocommerce table.my_account_orders td.order-status {
  font-weight: 500;
}

/* === BOTÓN VER MIS CÓDIGOS === */
.woocommerce .my_account_orders .button {
  background-color: #E66000 !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  padding: 10px 18px;
  display: inline-block;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(230, 96, 0, 0.2);
}
.woocommerce .my_account_orders .button:hover {
  background: linear-gradient(135deg, #E66000, #FF8C42);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(230, 96, 0, 0.3);
  transform: translateY(-1px);
}

