/* ==================== VISTA: DETALLE DE PRODUCTO ==================== */

/* ========== MODAL DETALLE PRODUCTO (Layout Principal) ========== */
/* Copiado de lo que estaba en inventario.css */

.product-page-layout,
.modal-product-layout {
    /* Unified Card Style */
    width: 99%;
    max-width: none;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 40% 60%;
    gap: 40px;
    /* Increased gap for better separation */
    align-items: flex-start;

    /* Card Look */
    background: #ffffff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    border: none;
    min-height: auto;
    padding-bottom: 40px;
}

/* Columns */
.product-left-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
    /* Space between image and description */
}

.product-right-col {
    display: flex;
    flex-direction: column;
}

.product-details-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Old classes removed (product-bottom-details) */

.modal-product-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    height: 100%;
}

.modal-product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 500px;
}

.modal-product-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-top: 20px;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--primary-blue);
}

.modal-brand {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-presentation {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
}

.modal-presentation i {
    color: var(--primary-cyan);
}

/* Metadata Grid */
/* Metadata Grid */
.modal-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    /* Increased gap */
    margin-bottom: 30px;
    background: transparent;
    /* Removed bg */
    padding: 20px 0;
    /* Remove side padding */
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 0;
}

.modal-meta-item {
    font-size: 0.9rem;
}

.modal-meta-label {
    display: block;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.modal-meta-value {
    color: var(--primary-blue);
    font-weight: 500;
    font-size: 1rem;
}

/* Tags */
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.modal-tag {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Sections (Description, warnings) */
.modal-section {
    margin-bottom: 24px;
    border-top: none;
    /* Remove extra borders */
    padding-top: 0;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-text {
    font-size: 1rem;
    line-height: 1.7;
    /* Better readability */
    color: #475569;
}

.modal-warning {
    background: transparent;
    /* Clean look */
    border-left: 3px solid var(--primary-red);
    padding: 0 0 0 15px;
    /* Indent content */
    border-radius: 0;
    margin-top: 20px;
}

.modal-warning .modal-section-title {
    color: var(--primary-red);
}

/* Similar Products */
.similar-products-section {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 40px;
}

.similar-products-section .section-title {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 25px;
    font-weight: 700;
}

/* Return Button */
.product-detail-btn-back {
    margin-bottom: 20px;
}

.product-detail-btn-back button {
    background: none;
    border: none;
    color: var(--primary-blue);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.product-detail-btn-back button:hover {
    text-decoration: underline;
}


/* Carousel Structure */
.similar-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 20px;
    /* Space for buttons */
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    min-width: 250px;
    flex-shrink: 0;
}

/* Carousel Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-blue);
    color: white;
}

.carousel-btn.prev-btn {
    left: -10px;
}

.carousel-btn.next-btn {
    right: -10px;
}

/* Responsive */
@media (max-width: 900px) {

    .product-page-layout,
    .modal-product-layout {
        grid-template-columns: 1fr;
        /* Stack columns */
        gap: 30px;
        padding: 20px;
    }

    .modal-product-image img {
        max-height: 350px;
    }

    .modal-title {
        font-size: 1.8rem;
    }

    .modal-meta-grid {
        grid-template-columns: 1fr;
        /* Stack meta items */
        gap: 15px;
    }
}