/** Shopify CDN: Minification failed

Line 39:0 Unexpected "{"
Line 39:1 Expected identifier but found "%"
Line 185:0 Unexpected "{"
Line 185:1 Expected identifier but found "%"

**/
/* Contenedor principal */
.custom-product-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Grilla de dos columnas (Escritorio) */
.custom-product-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .custom-product-grid {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* Columna Izquierda: Imagen */
.custom-product-media {
  flex: 1;
  text-align: center;
  background-color: #fff;
  border-radius: 8px;
  padding: 10px;
}
{% stylesheet %}
  /* ==========================================================================
     1. ARQUITECTURA DE LA GRILLA (Copiada exacta del tema original para no romper alineación)
     ========================================================================== */
  .cart-page {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 var(--padding-5xl);
  }

  .cart-page--empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .cart-page--empty .cart-page__title,
  .cart-page--empty .cart-page__more-blocks {
    margin-top: var(--margin-6xl);
  }

  .cart-page__more-blocks {
    width: 100%;
  }

  .cart-page--empty .cart-title {
    text-align: center;
  }

  .cart-page__main {
    grid-column: 1;
  }

  .cart-page__summary {
    padding-top: var(--padding-xl);
  }

  .cart-page__title + .cart-page__items {
    margin-block-start: var(--margin-lg);
  }

  @media screen and (min-width: 750px) {
    .cart-page {
      grid-template-columns: 1fr min(50vw, var(--sidebar-width));
      grid-template-rows: min-content min-content 1fr;
    }

    .cart-page__summary {
      display: grid;
      height: 100%;
      grid-column: 2;
      grid-row: 1 / -1;
      align-self: stretch;
      grid-template-rows: subgrid;
      padding-top: 0;
      position: relative;
    }

    .section--page-width .cart-page:has(.cart-summary--extend) {
      grid-column: 2 / 4;
      grid-template-columns: 1fr minmax(
          var(--sidebar-width),
          calc((100vw - var(--page-width)) / 2 + var(--sidebar-width))
        );
    }
  }

  @media screen and (min-width: 1400px) {
    .cart-page {
      grid-template-columns: 1fr var(--sidebar-width);
    }
  }


  /* ==========================================================================
     2. CAPA DE DISEÑO PREMIUM (Estilos estéticos sobre los componentes)
     ========================================================================== */
  
  /* Tarjeta de los productos (Columna Izquierda) */
  .cart-page__items {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #edf2f7;
    padding: 24px;
  }

  /* Líneas divisorias internas de productos */
  .cart-page__items .cart-item, 
  .cart-page__items [data-cart-item] {
    border-bottom: 1px solid #f0f4f8;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .cart-page__items .cart-item:last-child, 
  .cart-page__items [data-cart-item]:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  /* Redondear las imágenes de los dulces en el carro */
  .cart-page__items img {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
  }

  /* Tarjeta de Resumen / Totales (Columna Derecha) */
  /* Aplicamos el fondo al contenedor del bloque interno para no romper el subgrid */
  .cart-page__summary-block,
  .cart-summary {
    background-color: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01) !important;
  }

  /* Ajuste al botón principal de "Pagar" */
  .cart-page__summary button[type="submit"],
  .cart-page__summary [name="checkout"],
  .cart-page__summary .checkout-button {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 15px 24px !important;
    font-size: 1rem !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
  }

  .cart-page__summary button[type="submit"]:hover,
  .cart-page__summary [name="checkout"]:hover {
    background-color: #1a202c !important;
  }

  /* Título de Recomendaciones en la parte inferior */
  .cart-page__more-blocks h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #1a202c;
  }
{% endstylesheet %}

.custom-main-img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}

/* Columna Derecha: Tarjeta de Compra Estilo Ripley */
.custom-product-info-card {
  flex: 1;
  background-color: #f9f9f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 30px;
  position: -webkit-sticky;
  position: sticky;
  top: 20px; /* Se queda fija al hacer scroll si la imagen es larga */
}

/* Detalles del Texto */
.custom-product-vendor {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #718096;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.custom-product-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 15px 0;
  line-height: 1.2;
}

/* Precios */
.custom-product-price-box {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-price-actual {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e53e3e; /* Color rojo/destacado para el precio */
}

.custom-price-compare {
  font-size: 1.1rem;
  color: #a0aec0;
  text-decoration: line-through;
}

.custom-product-description {
  font-size: 0.95rem;
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 25px;
  border-top: 1px solid #edf2f7;
  padding-top: 15px;
}

/* Formulario y Selectores */
.custom-shopify-product-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.custom-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #2d3748;
  display: block;
  margin-bottom: 8px;
}

.custom-variant-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  background-color: #fff;
  font-size: 0.95rem;
}

/* Contador de Cantidad */
.custom-quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  width: 130px;
  background: #fff;
  overflow: hidden;
}

.custom-qty-btn {
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
  cursor: pointer;
  color: #4a5568;
  transition: background 0.2s;
}

.custom-qty-btn:hover {
  background-color: #edf2f7;
}

.custom-qty-input {
  width: 50px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid #cbd5e0;
  border-right: 1px solid #cbd5e0;
  font-size: 1rem;
  appearance: textfield;
  -moz-appearance: textfield;
}

.custom-qty-input::-webkit-outer-spin-button,
.custom-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botón Añadir al Carrito */
.custom-btn-submit {
  width: 100%;
  background-color: #000; /* Puedes cambiarlo por el color de tu marca */
  color: #fff;
  border: none;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

.custom-btn-submit:hover {
  background-color: #2d3748;
}

.custom-btn-submit:active {
  transform: scale(0.98);
}

.custom-btn-submit:disabled {
  background-color: #cbd5e0;
  color: #718096;
  cursor: not-allowed;
  transform: none;
}
/* ==============================================
   ESTILOS PARA TIENDA EN CELULARES (STICKY BAR)
   ============================================== */
@media (max-width: 767px) {
  /* Hacemos que el contenedor se fije en la parte inferior de la pantalla */
  .custom-action-controls-wrapper {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.12);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 9999;
    box-sizing: border-box;
    /* Transición suave de 0.3 segundos para cuando aparezca/desaparezca */
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out; 
  }

  /* ESTADO OCULTO: Se activa automáticamente con el JavaScript al terminar la sección */
  .custom-action-controls-wrapper.custom-sticky-hidden {
    transform: translateY(100%); /* La empuja hacia abajo fuera de la pantalla */
    opacity: 0;
    pointer-events: none; /* Evita clics accidentales mientras se oculta */
  }

  /* Ocultamos el texto "Cantidad:" para que no ocupe espacio vertical innecesario en el celular */
  .custom-quantity-container .custom-label {
    display: none;
  }

  /* Hacemos que el selector de cantidad sea un poco más compacto */
  .custom-quantity-selector {
    height: 46px;
    width: 110px;
  }
  .custom-qty-btn, .custom-qty-input {
    height: 46px;
  }

  /* El botón de compra ocupará todo el espacio restante a la derecha */
  .custom-submit-container {
    flex: 1;
  }

  .custom-btn-submit {
    height: 46px;
    padding: 0;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Agregamos un margen al fondo de la página para que la barra fija no tape el contenido */
  .custom-product-wrapper {
    padding-bottom: 90px;
  }
}