/* =========================
   BLOQUE: TIENDA (PLP) Y FILTROS
   SUGERIDO: modules/store.css
   ========================= */
.content-store .woocommerce-notices-wrapper {
  display: none !important;
}
.section-store {
  padding: 125px 1rem;
  padding-bottom: 0;
}

.content-store {
  padding: 0;
}

.content-store .shop-controls-wrapper {
  display: flex;
  margin-bottom: 1.5rem;
  justify-content: space-between;
}

.content-store .shop-controls-wrapper button {
  max-width: 45%;
  width: 100%;
  border: unset;
  background: unset;
  background-color: #eaeaea;
  font-family: var(--font-semiBold);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  height: 40px;
  cursor: pointer;
}

.content-store .shop-controls-wrapper button img {
  width: 20px;
  height: 17px;
}

.content-store .shop-controls-wrapper .woocommerce-ordering {
  max-width: 54%;
  width: 100%;
  margin: 0;
}

.content-store .shop-controls-wrapper .woocommerce-ordering select {
  height: 40px;
  text-transform: uppercase;
  font-size: 11px;
  border-radius: 2px;
  width: 100%;
  border: 2px solid var(--black);
}

/* =========================
   BLOQUE: PANEL DE FILTROS
   SUGERIDO: modules/store.css
   ========================= */

/* =========================
   BLOQUE: SLIDER DE PRECIO
   SUGERIDO: modules/store.css
   ========================= */
.range-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.range-wrapper input[type="range"] {
  width: 100%;
}

.range-slider-container {
  position: relative;
  width: 100%;
  height: 40px;
  margin-bottom: 1rem;
}

.range-slider-container input[type="range"] {
  position: absolute;
  width: 100%;
  height: 6px;
  top: 16px;
  background: none;
  pointer-events: none;
  appearance: none;
  z-index: 2;
}

.range-slider-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: all;
  width: 18px;
  height: 18px;
  background-color: white;
  border-radius: 50%;
  border: 3px solid var(--black);
  cursor: pointer;
  appearance: none;
  position: relative;
  z-index: 3;
}

.slider-track {
  position: absolute;
  height: 6px;
  background-color: #ddd;
  top: 16px;
  left: 3px;
  right: 0;
  z-index: 1;
}

.slider-track::before {
  content: "";
  position: absolute;
  height: 100%;
  background-color: var(--sky-blue);
  z-index: 2;
  left: 0;
  right: 0;
}

/* =========================
   BLOQUE: CONTADOR DE RESULTADOS Y PRODUCTOS (PLP)
   SUGERIDO: modules/store.css
   ========================= */
.content-store p.woocommerce-result-count {
  font-size: 14px;
  margin: 0;
  margin-bottom: 1rem;
  float: none;
}

.contenedor-tienda {
  padding: 125px 1rem;
  padding-bottom: 2rem;
}

.contenedor-tienda .wp-block-woocommerce-checkout {
  padding-top: 0;
}

.contenedor-tienda .wp-block-woocommerce-checkout .wc-block-components-sidebar {
  margin-top: 0;
}

.contenedor-tienda
  .wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title {
  margin-top: 0;
}

/* =========================
   BLOQUE: LISTADO DE PRODUCTOS (PLP)
   SUGERIDO: modules/product-card.css
   ========================= */
.section-store .content-store .wrapper-products .products {
  gap: 10px 5px;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  list-style: none;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0;
  clear: none;
  float: none;
}

.section-store .content-store .wrapper-products .products::before,
.section-store .content-store .wrapper-products .products::after {
  display: none;
}

.section-store .content-store .wrapper-products .products .product {
  border: 1px solid var(--black);
  border-radius: 10px;
  max-width: 100%;
  width: 49%;
  overflow: hidden;
  margin: 0;
  clear: none;
  float: none;
}

.section-store .content-store .wrapper-products .products .product .product-image-wrapper {
  overflow: hidden;
  padding: 0;
  position: relative;
}

.section-store .content-store .wrapper-products .products .product .product-image-wrapper::after {
  content: "";
  width: calc(100% + 16px);
  height: 1px;
  position: absolute;
  left: -8px;
  bottom: 0px;
  background-color: var(--black);
}

.section-store .content-store .wrapper-products .products .product .onsale {
  position: absolute;
  display: none;
}

.section-store .content-store .wrapper-products .products .product .product-image-wrapper > img {
  height: auto;
  display: block;
  max-width: 100%;
  border-radius: 10px;
  position: relative;
}

.section-store .content-store .wrapper-products .products .product.outofstock .product-image-wrapper {
  position: relative;
}

.section-store .content-store .wrapper-products .products .product.outofstock .product-image-wrapper::after {
  content: "Agotado por el momento";
  height: 100%;
  width: 100%;
  z-index: 7;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.5);
  left: 0;
  top: 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-align: center;
}

.section-store .content-store .wrapper-products .products .product .product-image-wrapper .product-discount-percentage {
  position: absolute;
  display: flex;
  flex-direction: column;
  z-index: 1;
  top: 0;
  left: 1rem;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-image-wrapper
  .product-discount-percentage
  .product-discount-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  left: 50%;
  top: 4px;
  transform: translateX(-50%);
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-image-wrapper
  .product-discount-percentage
  .product-discount-text
  .number-discount-percentage {
  font-size: 15px;
  line-height: 1;
  text-align: center;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-image-wrapper
  .product-discount-percentage
  .product-discount-text
  .discount-percentage {
  font-size: 14px;
  text-align: center;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-image-wrapper
  .product-discount-percentage
  img {
  width: 40px;
  border-radius: unset;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper {
  padding: 8px;
  padding-bottom: 10px;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper a {
  text-decoration: none;
  position: relative;
  display: flex;
  margin-top: 0px;
  align-items: center;
  margin-bottom: 0;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .product-attribute {
  display: flex;
  flex-direction: column;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  .product-attribute
  span:nth-child(1) {
  text-transform: uppercase;
  color: var(--black);
  font-family: var(--font-semiBold);
  font-size: 15px;
  margin: 0;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  .product-attribute
  span:nth-child(2) {
  text-transform: uppercase;
  color: var(--black);
  font-family: var(--font-medium);
  font-size: 12px;
  margin: 0;
  margin: 3px 0;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  .product-attribute
  span:nth-child(3) {
  font-size: 15px;
  font-family: var(--font-bold);
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  a
  .woocommerce-loop-product__title {
  text-transform: uppercase;
  color: var(--black);
  font-family: var(--font-semiBold);
  font-size: 15px;
  margin: 0;
  padding: 0;
  min-height: 38px;
  display: flex;
  align-items: center;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .price {
  margin: 0.5rem 0;
  font-size: 15px;
  font-family: "Barlow-Semibold";
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: var(--black);
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .price .sale-price {
  color: var(--black);
  font-size: 15px;
  font-family: var(--font-bold);
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .price .antes-label {
  font-size: 13px;
  letter-spacing: -0.5px;
  font-family: var(--font-medium);
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart .quantity-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  margin-bottom: 0.825rem;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  .cart
  .quantity-wrapper
  label {
  text-transform: uppercase;
  font-size: 13px;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .cart
  .quantity-wrapper
  .quantity
  .input-text.qty.text {
  width: 38px;
  height: 23px;
  border: unset;
  background-color: #eaeaea;
  padding-left: 7px;
  border-radius: 5px;
  font-size: 12px;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart button {
  background: unset;
  border: 1px solid var(--black);
  background-color: var(--sky-blue);
  color: var(--black);
  text-transform: uppercase;
  font-size: 15px;
  font-family: var(--font-semiBold);
  width: 100%;
  padding: 0.35rem 0;
  border-radius: 5px;
  padding-bottom: 8px;
  margin-top: 0;
  min-width: 150px;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart button:after {
  display: none;
}

.section-store .content-store .wrapper-products .products .product .product-content-wrapper .input-text.qty.text {
  height: 25px;
  border: unset;
  background: #EAEAEA;
  margin-bottom: .5rem;
  font-weight: bold;
  margin-top: .5rem;
}

.section-store
  .content-store
  .wrapper-products
  .products
  .product
  .product-content-wrapper
  .cart
  .added_to_cart.wc-forward {
  display: none;
}

.contenedor-tienda .wc-block-components-text-input > input {
  border: 1px solid var(--black) !important;
  border-radius: unset !important;
}

.is-mobile .wc-block-components-form .wc-block-components-checkout-step:after,
.is-small .wc-block-components-form .wc-block-components-checkout-step:after {
  display: none !important;
}

.is-mobile .wc-block-components-form .wc-block-components-checkout-step,
.is-small .wc-block-components-form .wc-block-components-checkout-step {
  margin-bottom: 0 !important;
}

button.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained {
  background: unset;
  border: 2px solid var(--black);
  background-color: var(--yellow);
  color: var(--black);
  text-transform: uppercase;
  font-size: 15px;
  font-family: var(--font-semiBold);
  padding: 0.35rem 0;
  border-radius: 5px;
  padding-bottom: 8px;
  margin-top: 0;
}

button.wc-block-components-button.wp-element-button.wc-block-components-totals-coupon__button.contained > div {
  opacity: 1;
}

.woocommerce-message::after,
.woocommerce-error::after,
.woocommerce-info::after {
  display: none;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
  display: none;
}

.woocommerce-message .button.wc-forward,
.woocommerce-error .button.wc-forward,
.woocommerce-info .button.wc-forward {
  display: block;
  float: unset;
}

.woocommerce-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  justify-content: center;
}

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received {
  margin: 0;
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 18px;
  padding-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.woocommerce-order-details h2.woocommerce-order-details__title {
  margin: 0;
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 18px;
  padding-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.woocommerce-order-details h2.woocommerce-order-details__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  left: 0;
}

.woocommerce .woocommerce-customer-details h2.woocommerce-column__title {
  margin: 0;
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 18px;
  padding-bottom: 0.5rem;
  letter-spacing: -0.5px;
}

.woocommerce .woocommerce-customer-details h2.woocommerce-column__title::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  left: 0;
}

.woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  left: 0;
}

.woocommerce-order-overview.woocommerce-thankyou-order-details.order_details {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 1rem;
}

.woocommerce ul.order_details li {
  margin: 0;
  padding: 0 1rem;
  border-right: 1px solid #ededed;
  border-left: 1px solid #ededed;
}

.woocommerce ul.order_details li:last-of-type {
  border-right: 1px solid #ededed;
  border-left: 1px solid #ededed;
}

.woocommerce table.shop_table {
  border: unset;
  margin-bottom: 0;
  font-size: 15px;
}

.woocommerce table.shop_table th {
  font-weight: 400;
  padding: 0.5rem 0;
}

.woocommerce table.shop_table td {
  padding: 0.5rem 0;
}

.woocommerce-order h2 {
  margin: 0;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: -0.5px;
  position: relative;
  display: block;
  padding-bottom: 0.5rem;
}

.woocommerce-order h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--black);
  left: 0;
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  margin-bottom: 2.5rem !important;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
  font-size: 15px;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details a {
  color: var(--black);
  font-size: 15px;
}

/* =========================
   BLOQUE: RESPONSIVE PLP
   SUGERIDO: modules/store.css
   ========================= */

/* =========================
   PANEL DE CUENTA OFF-CANVAS
   ========================= */

.account-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: right 0.3s ease;
  overflow-y: auto;
}

.account-panel.is-open {
  right: 0;
}

.account-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.close-account-button {
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 30px;
  position: relative;
}

.close-account-button span {
  position: absolute;
  width: 100%;
  height: 2px;
  background: #333;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.close-account-button span:first-child {
  transform: translateY(-50%) rotate(45deg);
}

.close-account-button span:last-child {
  transform: translateY(-50%) rotate(-45deg);
}

.account-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.account-header h3 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.account-content {
  padding: 20px;
}

/* Estilos para la navegación de cuenta */
.woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-MyAccount-navigation-link {
  margin-bottom: 10px;
}

.woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 15px;
  background: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.woocommerce-MyAccount-navigation-link a:hover {
  background: #e9ecef;
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background: #007cba;
  color: #fff;
}

/* Estilos para el botón de cuenta en el header */
.content-account {
  margin-right: 15px;
}

.account-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.account-button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.account-button img {
  width: 24px;
  height: 24px;
}

/* Estilos para usuarios no logueados */
.account-login {
  text-align: center;
  padding: 40px 20px;
}

.account-login p {
  margin-bottom: 20px;
  color: #666;
}

.account-login .button {
  display: inline-block;
  padding: 12px 24px;
  background: #007cba;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.account-login .button:hover {
  background: #005a87;
}

/* Responsive */
@media (max-width: 768px) {
  .account-panel {
    width: 100%;
    right: -100%;
  }

  .content-account {
    margin-right: 10px;
  }

  .account-button img {
    width: 20px;
    height: 20px;
  }
}

@media only screen and (min-width: 760px) {
  .section-store .content-store .wrapper-products .products {
    gap: 20px 5px;
  }

  .section-store .content-store .wrapper-products .products .product {
    max-width: 32%;
  }
}

@media only screen and (min-width: 960px) {
  .content-store {
    max-width: 70%;
  }
      
  .woocommerce-notice.woocommerce-notice--success.woocommerce-thankyou-order-received,
  .woocommerce-order-details h2.woocommerce-order-details__title {
    font-size: 1.5rem;
    font-family: var(--font-semiBold);
  }

  .contenedor-tienda {
    min-height: 500px;
    padding-bottom: 4rem;
  }

  .section-store .content-store .wrapper-products .products {
    gap: 12px;
  }

  .section-store .content-store .wrapper-products .products .product {
    width: 32.5%;
  }

  .woocommerce table.shop_table td.woocommerce-orders-table__cell-order-actions {
    display: flex;
    gap: 10px;
  }

  .woocommerce table.shop_table {
    font-size: 14px;
  }

  .section-store {
    display: flex;
    flex-direction: row;
  }

  .content-store .shop-controls-wrapper button {
    display: none;
  }

  .section-store .content-store .wrapper-products .products .product {
    max-width: 100%;
    width: 49%;
    border-width: 2px;
  }

  .section-store .content-store .wrapper-products .products .product .product-image-wrapper::after {
    height: 2px;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper {
    padding: 1rem;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper a {
    font-size: 18px;
  }

  .section-store
    .content-store
    .wrapper-products
    .products
    .product
    .product-content-wrapper
    .product-attribute
    span:nth-child(1) {
    font-size: 18px;
  }

  .section-store
    .content-store
    .wrapper-products
    .products
    .product
    .product-content-wrapper
    a
    .woocommerce-loop-product__title {
    font-size: 18px;
    min-height: 44px;
  }

  .section-store .content-store .wrapper-products .products .product .product-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .content-store .shop-controls-wrapper {
    display: inline;
    margin-bottom: 1rem;
  }

  .content-store .shop-controls-wrapper .woocommerce-ordering {
    width: 250px;
    max-width: unset;
  }

  .content-store .shop-controls-wrapper .woocommerce-ordering select {
    height: 35px;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .section-store
    .content-store
    .wrapper-products
    .products
    .product
    .cart
    .quantity-wrapper
    .quantity
    .input-text.qty.text {
    width: 50px;
    height: 30px;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper .price {
    margin-bottom: 1.5rem;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart .quantity-wrapper {
    margin-bottom: 0;
  }

  .section-store .content-store .wrapper-products .products .product .product-content-wrapper .cart button {
    width: auto;
    height: 30px;
    padding: 0 5px;
    font-size: 14px;
  }

  .content-store p.woocommerce-result-count {
    margin-bottom: 2rem;
    display: block;
  }

  .section-yhankyou {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .section-yhankyou .checkout-steps.third-step {
    width: 100%;
  }

  .section-yhankyou .woocommerce-order {
    max-width: 49%;
    width: 100%;
  }

  .section-yhankyou .col-right {
    max-width: 49%;
    width: 100%;
  }

  .woocommerce .woocommerce-customer-details h2.woocommerce-column__title {
    font-size: 16px;
  }
}

@media only screen and (min-width: 1300px) {
  .section-store {
    gap: 1%;
    margin: 0 auto;
    max-width: 1280px;
    padding: 180px 0;
    padding-bottom: 2rem;
    justify-content: space-between;
  }

  .section-store .content-store {
    width: 100%;
    max-width: 80%;
  }

  .section-store .content-store .wrapper-products .products .product {
    max-width: 32.5%;
  }

  .section-store .content-store .wrapper-products .products {
    justify-content: flex-start;
  }

  .contenedor-tienda {
    margin: 0 auto;
    max-width: 1280px;
    padding: 180px 0;
    padding-bottom: 2rem;
  }

  .woocommerce-form-coupon-toggle .woocommerce-info {
    margin-bottom: 0;
  }
}