/* ============================================
   myshop.css - Estilos específicos de la tienda
   ============================================ */

/* --- Cabecera de la tienda --- */
.shop-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.shop-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}
.btn-add-product {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-add-product:hover {
    background: var(--primary-light);
}

/* --- Selector de ordenamiento --- */
.sort-select {
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: white;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.sort-select:hover,
.sort-select:focus {
    border-color: var(--primary-color);
}

/* --- Grid de productos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}
.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.btn-save-payments {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.btn-save-payments:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}
.product-image {
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-image .video-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-info {
    padding: 16px;
}
.product-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-price {
    font-weight: 700;
    font-size: 18px;
    color: var(--primary-color);
    margin: 6px 0;
}
.product-price .from {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
}
.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.product-rating .stars {
    display: inline-flex;
}
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}
.product-actions button {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.product-actions .btn-edit {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.product-actions .btn-edit:hover {
    background: var(--primary-color);
    color: white;
}
.product-actions .btn-delete {
    color: #e74c3c;
    border-color: #e74c3c;
}
.product-actions .btn-delete:hover {
    background: #e74c3c;
    color: white;
}
.product-actions .btn-reviews {
    color: #2ecc71;
    border-color: #2ecc71;
}
.product-actions .btn-reviews:hover {
    background: #2ecc71;
    color: white;
}

/* --- Modal de detalle (legacy) --- */
.modal-detail .modal-box {
    max-width: 700px;
    padding: 30px;
}
.detail-image {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}
.detail-title {
    font-size: 26px;
    font-weight: 700;
    margin: 10px 0 6px;
}
.detail-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
}
.detail-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 12px 0;
}
.detail-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
}
.detail-meta span {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
}
.detail-reviews {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
}
.detail-reviews h4 {
    margin-bottom: 10px;
}
.detail-review-item {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.detail-review-item .rating {
    display: flex;
    align-items: center;
    gap: 6px;
}
.detail-review-item .comment {
    margin: 4px 0;
    color: var(--text-muted);
}
.detail-review-item .date {
    font-size: 12px;
    color: #aaa;
}

/* --- Paginación --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.page-link {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    background: white;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}
.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.page-link.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Estilos para vista pública (sin botones) */
.public-grid .product-actions {
    display: none;
}
.public-card {
    cursor: default;
}
.public-card:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.tab-content .pagination {
    margin-top: 30px;
}
.public-card {
    cursor: pointer;
}
.public-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

/* ====== SLIDER DE DETALLE ====== */
.detail-slider-container {
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}
.detail-slider-container .detail-image {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    background: #f8f8f8;
}
.detail-slider-container .swiper-button-next,
.detail-slider-container .swiper-button-prev {
    color: #fff;
    background: rgba(0,0,0,0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    backdrop-filter: blur(4px);
}
.detail-slider-container .swiper-button-next::after,
.detail-slider-container .swiper-button-prev::after {
    font-size: 18px;
}
.detail-slider-container .swiper-pagination-bullet {
    background: #fff;
    opacity: 0.7;
}
.detail-slider-container .swiper-pagination-bullet-active {
    opacity: 1;
    background: #6c63ff;
}

/* ====== BOTÓN DE VIDEO ====== */
.btn-video {
    display: inline-block;
    padding: 10px 20px;
    background: #ff0000;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}
.btn-video:hover {
    background: #cc0000;
}

/* ====== SECCIÓN DE RESEÑAS ====== */
.detail-reviews-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #ddd);
}
.detail-reviews-section h4 {
    margin-bottom: 15px;
}
.star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-rating input {
    display: none;
}
.star-rating label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input:checked ~ label {
    color: #ffc107;
}
.review-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
}
.review-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    flex-wrap: wrap;
}
.review-captcha #captchaQuestion {
    font-weight: bold;
    min-width: 120px;
}
.review-captcha input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 4px;
}
.detail-reviews-list {
    margin-top: 20px;
}
.detail-review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #eee);
}
.detail-review-item .rating {
    font-weight: 600;
}
.detail-review-item .comment {
    margin: 4px 0;
}
.detail-review-item .date {
    font-size: 12px;
    color: var(--text-muted, #888);
}
#reviewFeedback {
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================
   MEDIOS DE PAGO EN SIDEBAR (estilos limpios)
   ============================================ */
.payment-methods-section {
    margin-top: 10px;
}

.payment-input-row {
    display: flex;
    align-items: center;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 4px 10px;
    margin-bottom: 8px;
    border: 1.5px solid #d0d5dd;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.payment-input-row:hover {
    border-color: var(--primary-color, #6c63ff);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
}
.payment-input-row i {
    width: 32px;
    text-align: center;
    font-size: 20px;
    color: var(--primary-color, #6c63ff);
    opacity: 0.8;
}
.payment-input-row input[type="url"] {
    flex: 1;
    padding: 8px 6px;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #222;
    outline: none;
    font-family: inherit;
}
.payment-input-row input[type="url"]::placeholder {
    color: #aaa;
}

.payment-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 8px 14px;
    border: 1.5px solid #d0d5dd;
    margin-top: 6px;
}
.payment-toggle-row .toggle-label {
    font-weight: 600;
    color: #222;
    font-size: 14px;
}
.payment-toggle-row .toggle-switch-small {
    flex-shrink: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .shop-header {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-add-product {
        justify-content: center;
    }
    .products-grid {
        grid-template-columns: 1fr 1fr;
    }
    .sort-select {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    .modal-detail .modal-box {
        padding: 20px;
    }
}

/* ============================================
   MODAL DE PRODUCTO - DISEÑO HORIZONTAL (mejorado)
   ============================================ */
#productModal .modal-content {
    max-width: 750px;
    padding: 30px 35px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

#productModal .modal-content .modal-close {
    top: 16px;
    right: 22px;
    font-size: 26px;
    color: #888;
    transition: color 0.2s;
}
#productModal .modal-content .modal-close:hover {
    color: #222;
}

#productModal .modal-content h3 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.3px;
}

/* Grid de 2 columnas */
#productModal .modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
}

#productModal .form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#productModal .form-field-full {
    grid-column: 1 / -1;
}

/* Etiquetas */
#productModal .form-field label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.3px;
    margin-bottom: 2px;
}
#productModal .form-field label .required {
    color: #e74c3c;
    margin-left: 3px;
}

/* Inputs, selects y textarea */
#productModal .form-field input,
#productModal .form-field select,
#productModal .form-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.25s, box-shadow 0.25s, background 0.2s;
    box-sizing: border-box;
    color: #1a1a1a;
}
#productModal .form-field input::placeholder,
#productModal .form-field textarea::placeholder {
    color: #aab0b8;
    font-weight: 400;
}
#productModal .form-field input:focus,
#productModal .form-field select:focus,
#productModal .form-field textarea:focus {
    border-color: var(--primary-color, #6c63ff);
    box-shadow: 0 0 0 4px rgba(108, 99, 255, 0.12);
    outline: none;
    background: #ffffff;
}
#productModal .form-field textarea {
    resize: vertical;
    min-height: 70px;
}

/* Select personalizado */
#productModal .form-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
    cursor: pointer;
}

/* Inputs de archivo */
#productModal .form-field input[type="file"] {
    padding: 8px 10px;
    border: 1.5px dashed #c5cad4;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.25s, background 0.2s;
}
#productModal .form-field input[type="file"]:hover {
    border-color: var(--primary-color, #6c63ff);
    background: #f0f2ff;
}
#productModal .form-field input[type="file"]::file-selector-button {
    background: var(--primary-color, #6c63ff);
    color: white;
    border: none;
    padding: 6px 18px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-right: 14px;
    transition: background 0.2s, transform 0.1s;
}
#productModal .form-field input[type="file"]::file-selector-button:hover {
    background: var(--primary-light, #5750d1);
    transform: scale(1.02);
}
#productModal .form-field input[type="file"]::file-selector-button:active {
    transform: scale(0.97);
}

/* Texto de ayuda (hint) */
#productModal .form-field .hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
    opacity: 0.8;
}

/* Botones del modal */
#productModal .modal-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color, #e9ecf0);
}
#productModal .modal-actions .modal-btn {
    padding: 10px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.1s;
    letter-spacing: 0.3px;
}
#productModal .modal-actions .modal-btn-primary {
    background: var(--primary-color, #6c63ff);
    color: white;
}
#productModal .modal-actions .modal-btn-primary:hover {
    background: var(--primary-light, #5750d1);
    transform: translateY(-1px);
}
#productModal .modal-actions .modal-btn-secondary {
    background: #f1f3f5;
    color: #555;
}
#productModal .modal-actions .modal-btn-secondary:hover {
    background: #e5e8ec;
}

/* Responsive para el modal de producto */
@media (max-width: 600px) {
    #productModal .modal-content {
        max-width: 95%;
        padding: 20px;
    }
    #productModal .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    #productModal .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
    #productModal .modal-actions .modal-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

/* ============================================
   MODAL DE DETALLE - DISEÑO HORIZONTAL (ancho)
   ============================================ */
#productDetailModal .modal-content {
    max-width: 1050px;
    width: 96%;
    padding: 28px 32px;
    border-radius: 22px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
    max-height: 92vh;
    overflow-y: auto;
}

#productDetailModal .modal-content .modal-close {
    top: 16px;
    right: 18px;
    font-size: 30px;
    color: #6b7280;
    transition: color 0.2s ease;
}
#productDetailModal .modal-content .modal-close:hover {
    color: #111827;
}

#productDetailContent {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Layout de dos columnas */
.detail-layout {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: start;
}

/* Columna izquierda: slider */
.detail-left {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #f8fafc;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-left .detail-slider-container {
    width: 100%;
    height: auto;
}
.detail-left .detail-image {
    width: 100%;
    height: auto;
    max-height: 65vh;
    object-fit: contain;
    background: #f8fafc;
    display: block;
    margin: 0 auto;
}
.detail-left .detail-swiper {
    width: 100%;
    height: auto;
}
.detail-left .swiper-wrapper {
    align-items: center;
}
.detail-left .swiper-slide {
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.detail-left .swiper-button-next,
.detail-left .swiper-button-prev {
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.16);
}
.detail-left .swiper-button-next::after,
.detail-left .swiper-button-prev::after {
    font-size: 16px;
}
.detail-left .swiper-pagination-bullet {
    background: rgba(255,255,255,0.85);
    opacity: 0.85;
}
.detail-left .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Columna derecha: info */
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 0 0;
}
.detail-right .detail-title {
    font-size: 30px;
    font-weight: 800;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.detail-right .detail-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}
.detail-right .detail-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
    margin: 4px 0;
}
.detail-right .detail-meta span {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
}
.detail-right .detail-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin: 8px 0;
}

/* Botón de video */
.detail-right .btn-video {
    display: inline-block;
    padding: 10px 24px;
    background: #ff0000;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s;
    align-self: flex-start;
}
.detail-right .btn-video:hover {
    background: #cc0000;
}

.detail-payment-section {
    margin-top: 26px;
    padding: 24px 24px 22px;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}
.detail-payment-section h4 {
    margin: 0 0 14px;
    font-size: 19px;
    color: #111827;
}
.detail-only-dm {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #fff7ed;
    color: #92400e;
    border: 1px solid #f5d0a9;
    font-size: 14px;
    line-height: 1.6;
}
.detail-payment-methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.payment-method-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 16px 20px;
    min-height: 64px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.payment-method-button i {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}
.payment-method-button span {
    display: inline-flex;
    align-items: center;
    line-height: 1.1;
    white-space: nowrap;
}
.payment-method-button:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 16px 28px rgba(59, 130, 246, 0.10);
}
.payment-method-button.disabled {
    pointer-events: none;
    opacity: 0.6;
    border-color: #d1d5db;
    background: #f8fafc;
    color: #6b7280;
}
.payment-method-button.disabled i {
    background: #e5e7eb;
    color: #9ca3af;
}
.payment-method-button.paypal i {
    background: #003087;
    color: #ffffff;
}
.payment-method-button.stripe i {
    background: #635bff;
    color: #ffffff;
}
.payment-method-button.kofi i {
    background: #f26522;
    color: #ffffff;
}
.payment-method-button.buymeacoffee i {
    background: #ff813f;
    color: #ffffff;
}

/* Sección de reseñas (debajo de las columnas) */
.detail-reviews-section {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color, #ddd);
}
.detail-reviews-section h4 {
    margin-bottom: 12px;
    font-size: 18px;
}
.detail-reviews-section .star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.detail-reviews-section .star-rating input {
    display: none;
}
.detail-reviews-section .star-rating label {
    font-size: 28px;
    color: #ccc;
    cursor: pointer;
    transition: color 0.2s;
}
.detail-reviews-section .star-rating label:hover,
.detail-reviews-section .star-rating label:hover ~ label,
.detail-reviews-section .star-rating input:checked ~ label {
    color: #ffc107;
}
.detail-reviews-section .review-comment textarea {
    width: 100%;
    min-height: 80px;
    padding: 10px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
}
.detail-reviews-section .review-captcha {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 8px 0;
}
.detail-reviews-section .review-captcha input[type="number"] {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color, #ccc);
    border-radius: 6px;
}
.detail-reviews-section .modal-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.detail-reviews-section .modal-btn:hover {
    background: var(--primary-light);
}
.detail-reviews-list {
    margin-top: 20px;
}
.detail-review-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #eee);
}
.detail-review-item .rating {
    font-weight: 600;
}
.detail-review-item .comment {
    margin: 4px 0;
}
.detail-review-item .date {
    font-size: 12px;
    color: var(--text-muted, #888);
}
#reviewFeedback {
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================
   ESTILOS PARA RESEÑAS EN MODAL (nuevo)
   ============================================ */
.review-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 12px;
    border: 1px solid #e9ecef;
    position: relative;
}
.review-item .review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.review-item .rating {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.review-item .date {
    font-size: 12px;
    color: var(--text-muted, #888);
}
.review-item .comment {
    margin: 6px 0 10px 0;
    color: #333;
    line-height: 1.5;
}
.btn-delete-review {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.btn-delete-review:hover {
    background: #c0392b;
}
.btn-delete-review i {
    font-size: 12px;
}

/* Responsive: en móviles una columna */
@media (max-width: 768px) {
    #productDetailModal .modal-content {
        max-width: 95%;
        padding: 15px;
    }
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .detail-right .btn-video {
        align-self: center;
    }
}