:root {
   --naranja-fuerte: #ff6f00;
   --naranja-suave: #fffaf3;
   --gris-oscuro: #333;
   --gris-medio: #6c757d;
   --gris-claro: #f8f9fa;
   --blanco: #ffffff;
   --sombra: 0 4px 15px rgba(0, 0, 0, 0.07);
   --radio-borde: 12px;
   --transicion: all 0.3s ease-in-out;
}
.producto-detalle {
   gap: 20px;
   max-width: 1200px;
   margin: 0 auto;
   background-color: var(--blanco);
   border-radius: var(--radio-borde);
   box-shadow: var(--sombra);
   padding: 30px;
}
@media (max-width: 768px) {
   .producto-detalle {
      display: block;
   }
}
.media-producto {
   border: 1px solid #e0e0e0;
   border-radius: var(--radio-borde);
   overflow: hidden;
   margin-bottom: 15px;
}
#productGalleryCarousel {
   border: 1px solid #e0e0e0;
   border-radius: var(--radio-borde);
   overflow: hidden;
   /* Ensures image corners are rounded */
   margin-bottom: 15px;
   /* Space below main image */
}
.carousel-item img {
   height: auto;
   max-height: 500px;
   /* Adjust as needed for image height */
   object-fit: contain;
   /* Ensures the whole image is visible */
   width: 100%;
   /* Ensure images fill their carousel item */
}
/* Specific styling for Bootstrap carousel controls */

.carousel-control-prev, .carousel-control-next {
   width: 40px;
   height: 40px;
   background-color: rgba(0, 0, 0, 0.5);
   /* Semi-transparent background */
   border-radius: 50%;
   /* Circular buttons */
   top: 50%;
   transform: translateY(-50%);
   opacity: 0.7;
   transition: var(--transicion);
}
.carousel-control-prev:hover, .carousel-control-next:hover {
   opacity: 1;
}
.carousel-control-prev-icon, .carousel-control-next-icon {
   background-size: 60%;
   /* Adjust icon size */
   /* Bootstrap's icons are usually SVGs or background images.
       If you want to use a color, you might need to override Bootstrap's defaults
       or use a custom SVG for the icon. Default is white. */
}
/* Thumbnail Gallery (if you uncommented it in HTML) */

.thumbnail-gallery {
   display: flex;
   gap: 10px;
   overflow-x: auto;
   /* Allow horizontal scrolling for many thumbnails */
   padding-bottom: 5px;
   /* Space for scrollbar if present */
}
.thumbnail-gallery img {
   width: 80px;
   /* Fixed width for thumbnails */
   height: 60px;
   /* Fixed height for thumbnails */
   object-fit: cover;
   /* Cover the thumbnail area */
   border-radius: 8px;
   cursor: pointer;
   border: 2px solid transparent;
   transition: var(--transicion);
}
.thumbnail-gallery img:hover, .thumbnail-gallery img.active {
   /* Add 'active' class via JS for current thumb */
   border-color: var(--naranja-fuerte);
}
.info-producto {
   padding-left: 0px;
   display: flex;
   flex-direction: column;
}
.einhell-brand {
   color: var(--gris-medio);
   font-size: 0.85rem;
   margin-bottom: 5px;
   display: block;
   /* Ensures it takes its own line */
}
.titulo-producto {
   font-size: 1.8rem;
   font-weight: bold;
   color: var(--gris-oscuro);
   margin-bottom: 10px;
   /* Slightly reduce space */
}
.sku-info {
   color: var(--gris-medio);
   font-size: 0.8rem;
   margin-bottom: 20px;
}
.price-and-discount {
   margin-bottom: 20px;
}
.discount-tag {
   background-color: #ffe0b2;
   /* A lighter orange/yellow for the tag */
   color: var(--naranja-fuerte);
   font-weight: bold;
   padding: 5px 10px;
   border-radius: 5px;
   margin-bottom: 15px;
   /* Space between tag and prices */
   display: inline-block;
   /* Allows text to wrap */
   font-size: 0.9em;
}
.precio-producto {
   display: flex;
   align-items: baseline;
   /* Aligns text baselines */
   gap: 10px;
   margin-bottom: 5px;
   /* Space between prices and tax info */
}
.precio-mayor {
   font-size: 1.2rem;
   color: var(--gris-medio);
   text-decoration: line-through;
}
.precio-menor {
   font-size: 2.2rem;
   font-weight: bold;
   color: var(--naranja-fuerte);
}
.tax-info {
   font-size: 0.85rem;
   color: var(--gris-medio);
   margin-top: 5px;
   /* Space below prices */
}
.control-cantidad {
   display: flex;
   align-items: center;
   border: 1px solid #e0e0e0;
   border-radius: 8px;
   width: fit-content;
   /* Adjusts width to content */
   margin-bottom: 25px;
   /* Space before buttons */
   overflow: hidden;
   /* Ensures border-radius is applied to children */
}
.control-cantidad button {
   background-color: var(--blanco);
   border: none;
   font-size: 1.5rem;
   padding: 8px 15px;
   cursor: pointer;
   color: var(--gris-oscuro);
   transition: var(--transicion);
   user-select: none;
   /* Prevent text selection on click */
}
.control-cantidad button:hover {
   background-color: var(--gris-claro);
}
.control-cantidad .input-cantidad {
   width: 60px;
   text-align: center;
   border: none;
   /* Remove default input border */
   font-size: 1.2rem;
   color: var(--gris-oscuro);
   padding: 8px 0;
   /* Vertical padding to align with buttons */
   outline: none;
   /* Remove outline on focus */
   -moz-appearance: textfield;
   /* Firefox: remove spinner */
}
.control-cantidad .input-cantidad::-webkit-outer-spin-button, .control-cantidad .input-cantidad::-webkit-inner-spin-button {
   -webkit-appearance: none;
   /* Chrome, Safari, Edge: remove spinner */
   margin: 0;
}
/*botones*/

.btn-comprar {
   background-color: var(--naranja-fuerte);
   color: var(--blanco);
   border: none;
   padding: 0.5rem 1rem;
   cursor: pointer;
   border-radius: 4px;
   font-weight: 600;
   transition: background-color 0.3s ease;
}
.btn-comprar:hover {
   background-color: #e06000;
}
.btn-agregar-carrito {
   background-color: var(--blanco);
   color: var(--naranja-fuerte);
   border: 1px solid var(--naranja-fuerte);
   padding: 0.5rem 1rem;
   cursor: pointer;
   border-radius: 4px;
   font-weight: 600;
   transition: background-color 0.3s ease, color 0.3s ease;
}
.btn-agregar-carrito:hover {
   background-color: var(--naranja-suave);
   color: var(--naranja-fuerte);
}
/* Enlace simple, sin estilo de botón */

.seguir-eligiendo {
   display: inline-block;
   margin-top: 10px;
   color: var(--naranja-fuerte);
   text-decoration: underline;
   font-weight: 600;
   cursor: pointer;
}
.seguir-eligiendo:hover {
   color: #e06000;
   text-decoration: none;
}
.botones-acciones {
   display: flex;
   flex-direction: column;
   gap: 10px;
}
/*fin botones*/

/* Common section styling */

.delivery-section, .description-section {
   margin-top: 25px;
   /* Space from previous section */
   padding-top: 25px;
   border-top: 1px solid #eee;
   /* Separator line */
}
.delivery-section h4, .description-section h4 {
   font-size: 1.2rem;
   color: var(--gris-oscuro);
   margin-bottom: 15px;
   font-weight: bold;
}
.delivery-location {
   display: flex;
   align-items: center;
   gap: 10px;
   color: var(--gris-oscuro);
   font-size: 0.95rem;
}
.delivery-location i {
   /* For Font Awesome icon */
   color: var(--naranja-fuerte);
   font-size: 1.1rem;
}
.delivery-location .ubicacion-link {
   color: var(--naranja-fuerte);
   text-decoration: none;
   font-weight: bold;
}
.delivery-location .ubicacion-link:hover {
   text-decoration: underline;
}
.description-section p {
   font-size: 0.95rem;
   color: var(--gris-oscuro);
}
/* Media Queries for Responsiveness */

@media (max-width: 992px) {
   .producto-detalle {
      flex-direction: column;
      padding: 20px;
      gap: 20px;
      /* Reduce gap on smaller screens */
   }
   .media-producto, .info-producto {
      min-width: unset;
      /* Remove min-width to allow full flexibility */
      max-width: 100%;
      /* Ensure they take full width */
      width: 100%;
      /* Ensure they take full width */
   }
   .info-producto {
      padding-left: 0;
   }
   .titulo-producto {
      font-size: 1.6rem;
      /* Adjust title size */
   }
   .precio-menor {
      font-size: 1.8rem;
      /* Adjust price size */
   }
}
@media (max-width: 576px) {
   .producto-detalle {
      padding: 15px;
   }
   .titulo-producto {
      font-size: 1.4rem;
   }
   .precio-menor {
      font-size: 1.6rem;
   }
   .btn-comprar, .btn-agregar-carrito {
      padding: 12px 20px;
      /* Smaller padding for buttons */
      font-size: 1rem;
   }
}