.card-body select {
    width: 100%;
}

#product-grid .card {
    min-height: 100%;
}

.product-card {
    cursor: pointer;
}

.quantity-stepper {
    width: 150px;
}

    .quantity-stepper input {
        background-color: #fff !important;
    }

#modal-talla-pills .btn-check:disabled + .btn-outline-primary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #adb5bd;
    cursor: not-allowed;
}

    #modal-talla-pills .btn-check:disabled + .btn-outline-primary:hover {
        background-color: #f8f9fa;
        color: #adb5bd;
    }

/* Elegant Menu Styles */
#main-nav-menu {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
}

    #main-nav-menu .navbar-nav .nav-item {
        margin-right: 1.5rem; /* Increased spacing */
    }

    #main-nav-menu .nav-link {
        color: #333;
        position: relative;
        padding-bottom: 0.5rem;
    }

        #main-nav-menu .nav-link::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: #0d6efd;
            transform: scaleX(0);
            transition: transform 0.3s ease-in-out;
            transform-origin: center;
        }

        #main-nav-menu .nav-link:hover::after,
        #main-nav-menu .nav-link:focus::after {
            transform: scaleX(1);
        }

    #main-nav-menu .dropdown-menu {
        border: none;
        box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
        animation: fadeIn 0.2s ease-out;
    }

    #main-nav-menu .dropdown-item:hover {
        background-color: #f1f1f1;
    }

    #main-nav-menu .line-link.active {
        font-weight: bold;
        background-color: #e9ecef;
    }

@@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.color-thumbnail {
    border: 2px solid transparent;
    transition: all 0.2s;
    border-radius: 0 !important; /* Rectangular */
}

    .color-thumbnail:hover {
        border-color: #aaa;
    }

.color-seleccionado {
    border-color: #000;
    transform: scale(1.1);
}

/* Image Zoom Styles */
#modal-product-img-main {
    transition: transform 0.1s ease;
}

/* New Product Card Style 2 */
.product-card-style-2-container {
    padding: 5px;
}

.product-card-style-2 {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

    .product-card-style-2:hover {
        transform: translateY(-5px);
    }

.product-card-image-style-2 {
    width: 100%;
    height: 500px; /* Adjusted to 500px */
    object-fit: contain; /* Changed from cover to contain */
    display: block;
}

.product-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%); /* Adjusted transparency */
    color: white;
    padding: 5px; /* Reduced padding */
    font-family: 'Roboto', sans-serif;
}

.product-name-style-2 {
    font-size: 0.9rem; /* Reduced font size */
    margin-bottom: 5px;
    font-weight: 400; /* Thin letters */
}

    .product-name-style-2 b {
        font-weight: 700; /* Bold for the name */
    }

.product-details-style-2,
.product-price-style-2 {
    font-size: 0.9rem;
    margin-bottom: 3px;
    font-weight: 300; /* Thin letters */
}

.product-actions-style-2 {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

    .product-actions-style-2 .btn {
        font-size: 0.8rem;
        padding: 5px 10px;
        border: none; /* Remove border */
        background-color: rgba(255, 255, 255, 0.1); /* Subtle background */
        color: white; /* Ensure text is visible */
    }

        .product-actions-style-2 .btn:hover {
            background-color: rgba(255, 255, 255, 0.2); /* Slightly more visible on hover */
            color: white;
        }

/* Product Detail Modal Style 2 */
.modal-body {
    font-family: 'Roboto', sans-serif;
    font-weight: 300; /* Thin letters for general modal text */
}

#modal-product-name {
    font-size: 1.2rem; /* Further reduced font size */
    font-weight: 400;
    margin-bottom: 0.25rem;
}

#modal-product-fabricante,
#modal-product-code {
    font-size: 0.8rem; /* Further reduced font size */
    font-weight: 300;
    margin-bottom: 0.1rem;
}

#modal-product-price,
#modal-product-promo {
    font-size: 1.0rem; /* Further reduced font size */
    font-weight: 400;
    margin-bottom: 0.25rem;
}

.modal-body label {
    font-weight: 400;
    font-size: 0.9rem; /* Adjusted label font size */
    margin-bottom: 0.25rem;
}

.modal-body hr {
    border-top: 1px solid rgba(0, 0, 0, 0.05); /* Even lighter separator */
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Talla Pill Style 2 */
.talla-pill-style-2 {
    border: 1px solid #ced4da !important; /* Added straight border */
    font-weight: 300 !important;
    color: #333 !important;
    background-color: #f8f9fa !important;
    padding: 0.3rem 0.6rem;
    border-radius: 0 !important; /* Rectangular */
}

    .talla-pill-style-2:hover {
        background-color: #e2e6ea !important;
    }

.btn-check:checked + .talla-pill-style-2 {
    background-color: #0d6efd !important;
    color: white !important;
    border-color: #0d6efd !important; /* Ensure border color matches when checked */
}

.talla-quantity {
    font-weight: 500;
    color: #007bff;
}

/* Quantity Stepper Style 2 */
.quantity-stepper {
    width: 160px; /* Adjusted width */
    border: none; /* No border for the group */
    border-radius: 0; /* Rectangular */
    background-color: #f8f9fa; /* Subtle background */
}

    .quantity-stepper .btn {
        border: none !important;
        background-color: transparent !important;
        color: #6c757d !important;
        font-weight: 300 !important;
        padding: 0.25rem 0.5rem; /* Adjusted padding */
    }

        .quantity-stepper .btn:hover {
            background-color: #e2e6ea !important;
        }

    .quantity-stepper input {
        border: none !important;
        background-color: transparent !important;
        font-weight: 300 !important;
        color: #333 !important;
        padding: 0.25rem 0; /* Adjusted padding */
    }

        .quantity-stepper input:focus {
            box-shadow: none !important;
        }

#modal-image-thumbnails img {
    border-radius: 0 !important;
}

/* Modal Footer Buttons */
.modal-footer .btn {
    border-radius: 0 !important; /* Rectangular buttons */
}

/* Prevent blinking cursor in product grid */
#product-grid * {
    caret-color: transparent !important;
}

#product-grid input, #product-grid textarea {
    caret-color: auto !important;
}

/* =============================================== */
/* POPUP INTRODUCTORIO - Propiedades críticas para la animación y JS */
/* =============================================== */
#intro-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    /* ESTADOS INICIALES PARA EL CONTROL POR JS */
    opacity: 0;
    visibility: hidden;
    /* TRANSICIÓN PARA EL EFECTO FADE-IN/FADE-OUT */
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#intro-popup-content {
    background: transparent;
    padding: 20px;
    border-radius: 0;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    position: relative;
}

#intro-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
}
