.product-details {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.product-header {
    margin-bottom: 20px;
    grid-column: 1 / -1;
}

.product-header h1 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #333;
}

.product-code {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.special-label {
    display: inline-block;
    background-color: #ff9800;
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 10px;
}

.product-images {
    margin-bottom: 30px;
}

.main-image {
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-item {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-item:hover {
    border-color: #2196F3;
}

.gallery-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
}

.product-info {
    display: grid;
    gap: 20px;
}

.price-section {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    color: #2196F3;
}

.original-price {
    text-decoration: line-through;
    color: #666;
    font-size: 18px;
}

.discount {
    background-color: #ff4444;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.discount-percentage {
    font-size: 18px;
    font-weight: bold;
}

.discount-type {
    font-size: 14px;
    opacity: 0.9;
}

.product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.badge {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.badge.new {
    background-color: #4CAF50;
    color: white;
}

.badge.cdr {
    background-color: #2196F3;
    color: white;
}

.badge.special-delivery {
    background-color: #FF9800;
    color: white;
}

.badge.bigger {
    background-color: #9C27B0;
    color: white;
}

.badge.promotion {
    background-color: #E91E63;
    color: white;
}

.delivery-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
}

.delivery-info i {
    margin-right: 8px;
    color: #2196F3;
}

.savings {
    color: #4CAF50;
    font-weight: bold;
    font-size: 18px;
    padding: 10px;
    background-color: #E8F5E9;
    border-radius: 4px;
}

.product-options {
    margin-top: 20px;
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
}

.product-options h3 {
    margin-bottom: 15px;
    color: #333;
}

.product-options ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.product-options li {
    padding: 10px;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.product-options li:hover {
    transform: translateY(-2px);
}

.option-name {
    font-weight: bold;
    margin-bottom: 8px;
}

.option-image {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.cart-actions {
    margin-top: 20px;
}

.cart-token-button {
    background-color: #2196F3;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cart-token-button:hover {
    background-color: #1976D2;
}

/* Cart message styles */
.cart-message {
    width: 100%;
    padding: 10px 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: fadeIn 0.3s ease-in-out;
    border: 1px solid;
    font-size:14px;
    overflow: hidden;
    text-align: left;
}

.cart-message.success {
    background-color: #034D8E;
    color: #ffffff;
    border-color: #A7C1D8; 
}

.cart-message.success span{
    line-height: 1;
    padding: 12px 3px;
    display: inline-block;
}

.cart-message.success a{
  border-radius: 50px;
  -moz-border-radius: 50px;
  -webkit-border-radius: 50px;
  overflow: hidden;
  font-family: 'Roboto-Bold' !important;
  background-color: #ffffff;
  color: #034D8E;
    display: inline-block;
    vertical-align: middle;
    margin:0;
    -webkit-appearance: none;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    padding: 12px 18px;
    float: right;
    font-size:16px;
}

.cart-message.error {
    background-color: #f2dede;
    color: #a94442;
    border-color: #ebccd1;
    padding: 15px 15px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .product-details {
        grid-template-columns: 1fr;
    }
}

/* ===== ESTILOS PARA OPCIONES DE VARIANTES ===== */

/* Estilos para opciones deshabilitadas */
.contenedor-color label,
.contenedor-talle label {
    position: relative;
}

.contenedor-color label.disabled,
.contenedor-talle label.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    filter: grayscale(100%);
}

.contenedor-color label.disabled img,
.contenedor-talle label.disabled {
    opacity: 0.4;
}

.contenedor-color input:disabled+label,
.contenedor-talle input:disabled+label {
    pointer-events: none;
}

.contenedor-color label.disabled::after,
.contenedor-talle label.disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* Línea diagonal para indicar "no disponible" */
.contenedor-color label.disabled::before,
.contenedor-talle label.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; 
    z-index: 2;
}

/* ===== ESTILOS PARA CUCARDAS DETALLADAS ===== */

.cucarda-detalle {
    position: relative;
    display: inline-block;
    margin: 2px;
}

.cucarda-detalle img {
    max-width: 60px;
    height: auto;
    display: block;
}

.leyenda-cucarda {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cucarda-detalle:hover .leyenda-cucarda {
    opacity: 1;
}

.vigencia-cucarda {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #666;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    white-space: nowrap;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cucarda-detalle:hover .vigencia-cucarda {
    opacity: 1;
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .cucarda-detalle {
        margin: 1px;
    }

    .cucarda-detalle img {
        max-width: 50px;
    }

    .leyenda-cucarda,
    .vigencia-cucarda {
        font-size: 9px;
        padding: 3px 6px;
    }
}

/* Plus Price Styles */
.precio-plus-destacado {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    position: relative;
    overflow: hidden;
}

.precio-plus-destacado::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.precio-plus-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.precio-plus-valor {
    display: block;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 5px;
}

.precio-plus-cantidad {
    display: block;
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .precio-plus-destacado {
        padding: 12px 15px;
    }

    .precio-plus-valor {
        font-size: 24px;
    }

    .precio-plus-label {
        font-size: 12px;
    }
}