/* ===== VARIABLES ===== */
:root {
    --negro: #0a0a0a;
    --blanco: #ffffff;
    --dorado: #d4af37;
    --dorado-oscuro: #b8942f;
    --gris-oscuro: #1a1a1a;
    --gris-medio: #333333;
    --gris-claro: #666666;
    --borde: rgba(255, 255, 255, 0.1);
}

/* ===== HEADER DE PRODUCTOS ===== */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--borde);
}

.products-header h3 {
    font-size: 32px;
    color: var(--dorado);
    margin: 0;
    font-weight: 600;
}

.products-count {
    background: var(--gris-oscuro);
    color: var(--dorado);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid var(--dorado);
}

/* ===== GRID DE PRODUCTOS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: var(--gris-oscuro);
    border: 1px solid var(--borde);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--dorado);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-img {
    position: relative;
    height: 220px; /* Igualar con la altura nueva de la imagen (antes era 200px) */
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.product-overlay span {
    color: var(--dorado);
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid var(--dorado);
    border-radius: 20px;
    background: rgba(212, 175, 55, 0.1);
}

.product-info {
    padding: 20px;
}

.product-info h4 {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--blanco);
}

.short-desc {
    color: var(--gris-claro);
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.product-colour {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.colour-label {
    color: var(--gris-claro);
}

.colour-swatch {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--blanco);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.colour-hex {
    color: var(--dorado);
    font-family: monospace;
    font-size: 12px;
}

/* ===== NO PRODUCTS ===== */
.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--gris-oscuro);
    border: 2px dashed var(--borde);
    border-radius: 12px;
}

.no-products svg {
    color: var(--dorado);
    margin-bottom: 20px;
}

.no-products h4 {
    color: var(--blanco);
    font-size: 24px;
    margin-bottom: 10px;
}

.no-products p {
    color: var(--gris-claro);
    margin-bottom: 25px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--negro);
    border: 1px solid var(--dorado);
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    animation: modalAppear 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalAppear {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== MODAL HEADER ===== */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid var(--borde);
}

.modal-header h3 {
    margin: 0;
    font-size: 28px;
    color: var(--dorado);
}

.close-modal {
    background: none;
    border: 1px solid var(--borde);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: var(--dorado);
    border-color: var(--dorado);
    color: var(--negro);
}

.close-modal svg {
    width: 20px;
    height: 20px;
}

/* ===== FORMULARIO ===== */
#addProductForm {
    padding: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--blanco);
    font-size: 15px;
}

.form-group label .icon {
    color: var(--dorado);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--gris-oscuro);
    border: 1px solid var(--borde);
    border-radius: 8px;
    color: var(--blanco);
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.form-group input[type="text"]::placeholder,
.form-group textarea::placeholder {
    color: var(--gris-claro);
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--dorado);
    background: var(--gris-medio);
}

/* ===== COLOR INPUT ===== */
.colour-input-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

#colourPicker {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 8px;
    background: none;
    cursor: pointer;
    padding: 0;
}

.colour-input-group {
    display: flex;
    align-items: center;
    background: var(--gris-oscuro);
    border: 1px solid var(--borde);
    border-radius: 8px;
    overflow: hidden;
    flex: 1;
}

.colour-prefix {
    padding: 0 12px;
    color: var(--dorado);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
}

#productColour {
    border: none;
    background: transparent;
    padding: 14px;
    color: var(--blanco);
    flex: 1;
}

.colour-preview {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--blanco);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    background: var(--gris-oscuro);
    border: 2px dashed var(--borde);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--dorado);
    background: rgba(212, 175, 55, 0.05);
}

.upload-icon {
    margin-bottom: 15px;
}

.upload-icon svg {
    color: var(--dorado);
}

.upload-title {
    color: var(--blanco);
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 16px;
}

.upload-subtitle {
    color: var(--gris-claro);
    font-size: 14px;
    margin: 0;
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ===== IMAGE PREVIEW ===== */
.image-preview {
    margin-top: 15px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    display: none;
}

.image-preview.active {
    display: block;
}

#previewImage {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
}

.remove-preview {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid var(--borde);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--blanco);
    transition: all 0.3s ease;
}

.remove-preview:hover {
    background: var(--dorado);
    border-color: var(--dorado);
    color: var(--negro);
}

.remove-preview svg {
    width: 16px;
    height: 16px;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid var(--borde);
}

.btn-secondary {
    padding: 14px 28px;
    background: transparent;
    color: var(--blanco);
    border: 1px solid var(--borde);
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
}

.btn-secondary:hover {
    background: var(--gris-oscuro);
    border-color: var(--gris-claro);
}

.btn-primary {
    padding: 14px 28px;
    background: var(--dorado);
    color: var(--negro);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--dorado-oscuro);
}

.btn-primary .icon {
    width: 18px;
    height: 18px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
.products-header {
        flex-direction: column;
        align-items: center; /* <-- Cambiar flex-start por center */
        gap: 15px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header {
        padding: 20px;
    }
    
    #addProductForm {
        padding: 20px;
    }
    
    .colour-input-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-secondary,
    .btn-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-header h3 {
        font-size: 24px;
    }
}

/* Overlay general */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Caja interna */
.overlay-content {
    background: #111;
    padding: 35px;
    width: 420px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 0 18px rgba(212,175,55,0.1);
    animation: fadeIn 0.3s ease;
}

.overlay-content h2 {
    color: var(--dorado);
    text-align: center;
    margin-bottom: 25px;
    font-size: 26px;
}

.overlay-form label {
    color: var(--blanco);
    font-size: 14px;
    margin-bottom: 6px;
    display: block;
}

.overlay-form input,
.overlay-form textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--blanco);
}

.overlay-form input:focus,
.overlay-form textarea:focus {
    border-color: var(--dorado);
    outline: none;
}

.close-overlay {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--blanco);
    transition: 0.2s;
}

.close-overlay:hover {
    color: var(--dorado);
}

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.custom-file-upload {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.upload-btn {
    background: var(--dorado);
    padding: 10px 20px;
    color: var(--negro);
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.upload-btn:hover {
    background: #b8942f;
}

.file-name {
    color: #ccc;
    font-size: 14px;
    opacity: 0.85;
}

/* ===== CATEGORY SELECT ===== */
.overlay-form select {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--blanco);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.overlay-form select:focus {
    outline: none;
    border-color: var(--dorado);
    background: #222;
}

.overlay-form select option {
    background: #111;
    color: var(--blanco);
}


/* ===== ADD CATEGORY INLINE ===== */
.add-category-inline {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}

.add-category-inline input {
    flex: 1;
    padding: 10px;
    border-radius: 6px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--blanco);
    font-size: 14px;
    transition: all 0.3s ease;
}

.add-category-inline input::placeholder {
    color: #777;
}

.add-category-inline input:focus {
    outline: none;
    border-color: var(--dorado);
    background: #222;
}

.add-category-inline .btn-secondary {
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
}

.overlay-form select option:checked {
    background: rgba(212,175,55,0.15);
    color: var(--dorado);
}

@media (max-width: 480px) {
    .add-category-inline {
        flex-direction: column;
    }

    .add-category-inline .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* ===== COLOURS MULTI SELECT ===== */
.colours-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.colour-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    color: var(--blanco);
    transition: all 0.25s ease;
}

.colour-checkbox:hover {
    border-color: var(--dorado);
}

.colour-checkbox input {
    display: none;
}

.custom-check {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    border: 1px solid var(--gris-claro);
    background: transparent;
    transition: all 0.25s ease;
}

.colour-checkbox input:checked + .custom-check {
    background: var(--dorado);
    border-color: var(--dorado);
}


/* Scroll SOLO dentro del overlay */
.overlay {
    overflow: hidden;
}

.overlay-content {
    max-height: 90vh;
    overflow-y: auto;
}











/*xxxxxxxxxxxxxxxxxxx PRODUCT_DESC.PHP xxxxxxxxxxxxxxxxxxxxxxxx*/



.product-detail {
    padding-top: 60px;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-detail-img {
    position: relative; /* 🔥 CLAVE */
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
}


.product-detail-img img {
    width: 100%;
    display: block;
}

.product-detail-info {
    text-align: left;
}

.product-category {
    font-size: 14px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-detail-info h1 {
    font-size: 38px;
    margin: 10px 0 20px;
    color: var(--dorado);
}

.product-description {
    font-size: 16px;
    line-height: 1.7;
    opacity: 0.9;
}

/* ================= DESCRIPCIÓN DEL PRODUCTO (Estilo E-commerce Premium) ================= */
.product-description-container {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Línea divisoria elegante */
    text-align: left;
    
    /* Limitar el ancho es clave en diseño UX para que el texto sea fácil de leer */
    max-width: 850px; 
}

.description-title {
    font-size: 24px;
    color: var(--blanco);
    font-weight: 600;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
}

.description-content {
    font-size: 16px;
    line-height: 1.8; /* Da "aire" entre las líneas de texto */
    color: #cccccc; /* Gris claro para no fatigar la vista sobre el fondo negro */
    font-weight: 400;
}

/* Reglas por si en el futuro decides guardar listas o negritas desde el panel de admin */
.description-content ul, 
.description-content ol {
    margin-top: 15px;
    margin-bottom: 15px;
    padding-left: 20px;
}

.description-content li {
    margin-bottom: 10px;
}

.description-content strong, 
.description-content b {
    color: var(--blanco);
    font-weight: 600;
}

/* Responsivo para celulares */
@media (max-width: 768px) {
    .product-description-container {
        margin-top: 40px;
        padding-top: 30px;
    }
    
    .description-title {
        font-size: 20px;
    }
    
    .description-content {
        font-size: 15px;
    }
}

.product-colours {
    margin-top: 30px;
}

.product-colours h4 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--dorado);
}

.colour-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.colour-badge {
    padding: 6px 14px;
    background: #111;
    border-radius: 20px;
    font-size: 14px;
    border: 1px solid rgba(255,255,255,0.15);
}

/* Responsive */
@media (max-width: 900px) {
    .product-detail-container {
        grid-template-columns: 1fr;
    }
}


/* Agregar a tu product.css o en un style tag */
#cropperOverlay .overlay-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    max-width: 700px;
    width: 90%;
}

#cropperOverlay h2 {
    margin-bottom: 20px;
    color: #333;
    text-align: center;
}

#cropperImage {
    max-width: 100%;
    max-height: 400px;
    display: block;
    margin: 0 auto;
}

.cropper-view-box {
    border-radius: 50%;
    outline: 2px solid #39f;
    outline-color: rgba(51, 153, 255, 0.75);
}

.cropper-line {
    background-color: #39f;
}

.cropper-point {
    background-color: #39f;
    width: 8px;
    height: 8px;
}

.cropper-modal {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Botones del cropper */
.cropper-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.cropper-buttons button {
    padding: 10px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#cropButton {
    background-color: #28a745;
    color: white;
}

#cropButton:hover {
    background-color: #218838;
}

#skipCropButton {
    background-color: #6c757d;
    color: white;
}

#skipCropButton:hover {
    background-color: #5a6268;
}

/* Estado de las imágenes */
.image-status {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 2;
}

/* Loading para el cropper */
.cropper-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 10px;
    z-index: 1000;
}




.carousel-main {
    width: 100%;
    margin-bottom: 15px;
}

.carousel-main img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.carousel-thumbs {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.carousel-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 6px;
    opacity: 0.6;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-thumbs img:hover {
    opacity: 1;
}

.carousel-thumbs img.active {
    opacity: 1;
    border-color: var(--dorado);
}



/* ===== ADD TO CART ===== */

.add-to-cart-form {
    margin-top: 35px;
}

.product-quantity {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 25px;
}

.product-quantity label {
    font-size: 14px;
    color: var(--gris-claro);
}

.product-quantity input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--borde);
    background: var(--gris-oscuro);
    color: var(--blanco);
    font-size: 16px;
    width: 100%;
}

.product-quantity input:focus {
    outline: none;
    border-color: var(--dorado);
    background: var(--gris-medio);
}

.btn-add-cart {
    width: 100%;
    padding: 16px;
    background: var(--dorado);
    color: var(--negro);
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart:hover {
    background: var(--dorado-oscuro);
    transform: translateY(-2px);
}

/* ===== QUANTITY CUSTOM CONTROL ===== */

.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 180px;
}

.quantity-control input {
    text-align: center;
    width: 70px;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid var(--borde);
    background: var(--gris-oscuro);
    color: var(--blanco);
}

/* Botones + y - */
.qty-btn {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--borde);
    background: #111;
    color: var(--dorado);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.qty-btn:hover {
    background: var(--dorado);
    color: var(--negro);
    border-color: var(--dorado);
}

.qty-btn:active {
    transform: scale(0.95);
}

/* Mantener sin flechas */
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-control input[type=number] {
    -moz-appearance: textfield;
}

.product-title {
    font-size: 42px;
    color: var(--dorado);
    margin-bottom: 15px;
}

.product-price {
    font-size: 34px;
    font-weight: 700;
    color: #ffd700;
    margin-bottom: 10px;
}

.payment-method {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 30px;
}

.colour-pill {
    cursor: pointer;
}

.colour-pill input {
    display: none;
}

.colour-pill span {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: #111;
    font-size: 14px;
    transition: all 0.25s ease;
}

.colour-pill input:checked + span {
    background: var(--dorado);
    color: #000;
    border-color: var(--dorado);
}

.btn-shipping {
    width: 100%;
    padding: 14px;
    background: #d4b03a;
    color: #000;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    margin-bottom: 25px;
    cursor: pointer;
}

.btn-add-cart.big {
    margin-top: 20px;
    padding: 18px;
    font-size: 18px;
    border-radius: 10px;
}

.carousel-main img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 12px;
}

.carousel-thumbs img {
    width: 60px;
    height: 60px;
    opacity: 0.5;
}


.payment-menu {
    position: relative;
    margin-bottom: 25px;
}

.payment-toggle {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #bbb;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.envio {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #bbb;
    padding: 10px 14px;
    border-radius: 8px;
    width:30%;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.envio:hover {
    border-color: var(--dorado);
    color: var(--dorado);
}

.payment-toggle:hover {
    border-color: var(--dorado);
    color: var(--dorado);
}

.payment-dropdown {
    position: absolute;
    top: 115%;
    left: 0;
    width: 220px;
    background: #0e0e0e;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 100;
}

.payment-dropdown span {
    padding: 12px 15px;
    font-size: 14px;
    color: #ddd;
    cursor: default;
}

.payment-dropdown span:not(:last-child) {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.payment-dropdown span:hover {
    background: rgba(212,175,55,0.1);
    color: var(--dorado);
}

.payment-dropdown.active {
    display: flex;
}

/* ===== COLOUR SELECT (PRODUCT DESC) ===== */

.colour-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.colour-pill {
    cursor: pointer;
}

.colour-pill input {
    display: none;
}

.colour-pill span {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    background: #111;
    font-size: 14px;
    color: #ccc;
    transition: all 0.25s ease;
}

.colour-pill:hover span {
    border-color: var(--dorado);
    color: var(--dorado);
}

.colour-pill input:checked + span {
    background: var(--dorado);
    color: #000;
    border-color: var(--dorado);
    font-weight: 600;
}





/* ===== FAV BUTTON (PRODUCT DESC) ===== */
/* ===== FAVORITO · PRODUCT DETAIL ===== */

.fav-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 60;

    width: 44px;
    height: 44px;
    border-radius: 50%;

    background: rgba(10, 10, 10, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.45);

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    line-height: 1;
    cursor: pointer;

    color: rgba(212, 175, 55, 0.55);

    box-shadow:
        0 6px 16px rgba(0,0,0,0.6),
        inset 0 0 0 1px rgba(255,255,255,0.05);

    backdrop-filter: blur(4px);

    transition: 
        transform 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

/* Hover elegante */
.fav-btn:hover {
    transform: scale(1.08);
    color: var(--dorado);
    border-color: var(--dorado);
    background: rgba(10, 10, 10, 0.95);
}

/* Activo (favorito) */
.fav-btn.active {
    color: var(--dorado);
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--dorado);
}

/* Pequeño glow premium */
.fav-btn.active::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(212,175,55,0.35) 0%,
        rgba(212,175,55,0.15) 40%,
        transparent 70%
    );
    z-index: -1;
}



/* ================= ZOOM EFECTO & MODAL ================= */

/* Efecto Hover PC (Estilo Amazon) */
.carousel-main {
    overflow: hidden; /* 🔑 Clave para que la imagen no se desborde al hacer zoom */
    position: relative;
    cursor: zoom-in;
}

.carousel-main img {
    transition: transform 0.15s ease-out; /* Movimiento fluido pero responsivo */
    will-change: transform; /* Optimización de rendimiento */
}

/* Modal Fullscreen (Mobile y click) */
.zoom-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.zoom-modal.active {
    display: flex;
    opacity: 1;
}

.zoom-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--blanco);
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s ease;
}

.zoom-modal-close:hover {
    color: var(--dorado);
}

/* Imagen dentro del modal */
.zoom-modal img {
    max-width: 95%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

/* Estado ultra-zoom dentro del modal */
.zoom-modal img.zoomed-in {
    transform: scale(2.5);
    cursor: zoom-out;
}

/* ================= PANEL DE ADMINISTRACIÓN (PRODUCT DESC) ================= */
.admin-panel {
    background: #151515;
    border: 1px solid rgba(212, 175, 55, 0.4);
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.admin-panel h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--blanco);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formulario de Stock */
.admin-stock-control form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.admin-stock-control input {
    padding: 10px;
    width: 80px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: #0a0a0a;
    color: white;
    font-family: 'Poppins', sans-serif;
}

.admin-stock-control input:focus {
    border-color: var(--dorado);
    outline: none;
}

.btn-stock {
    padding: 10px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
}

.btn-stock.add { background: #2e7d32; color: white; }
.btn-stock.add:hover { background: #1b5e20; }
.btn-stock.sub { background: #c62828; color: white; }
.btn-stock.sub:hover { background: #b71c1c; }

.admin-divider {
    height: 1px;
    background: rgba(212, 175, 55, 0.2);
    margin: 20px 0;
}

/* Botones Editar y Borrar */
.admin-actions {
    display: flex;
    gap: 12px;
}

.btn-admin {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s;
}

.btn-admin.edit {
    background: transparent;
    border: 1px solid var(--dorado);
    color: var(--dorado);
}

.btn-admin.edit:hover {
    background: rgba(212, 175, 55, 0.1);
}

.btn-admin.delete {
    background: rgba(198, 40, 40, 0.1);
    border: 1px solid #c62828;
    color: #ef5350;
    width: 100%;
}

.btn-admin.delete:hover {
    background: #c62828;
    color: white;
}

/* ================= MODAL ELIMINAR PRODUCTO ================= */
.delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.delete-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.delete-modal-content {
    background: #111;
    padding: 35px;
    border-radius: 12px;
    border: 1px solid rgba(198, 40, 40, 0.5); /* Borde rojo de alerta */
    box-shadow: 0 15px 40px rgba(198, 40, 40, 0.15);
    text-align: center;
    width: 90%;
    max-width: 420px;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.delete-modal-overlay.active .delete-modal-content {
    transform: scale(1);
}

.delete-modal-content h3 {
    color: #ef5350;
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
}

.delete-modal-content p {
    color: var(--blanco);
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

.delete-modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.delete-modal-actions button {
    flex: 1;
    padding: 14px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-cancel-modal {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: var(--blanco);
}

.btn-cancel-modal:hover {
    border-color: var(--blanco) !important;
    background: rgba(255, 255, 255, 0.05);
}

.btn-confirm-modal {
    background: #c62828;
    color: white;
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.btn-confirm-modal:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}