/* General Container Styles */
.product-categories-wrapper {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.categories-title h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #333;
    font-weight: bold;
}

/* Category Section Styling */
.product-category-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.category-banner {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white !important;
    margin: 0;
    padding: 5px 15px;
    font-size: 18px;
    text-align: left;
}

/* Swiper Customization */
.swiper {
    padding: 20px 50px;
    margin: 0;
    background: #fff;
}

.swiper-wrapper {
    align-items: stretch;
    height: auto;
}

.swiper-slide {
    height: auto;
    background: transparent;
    padding: 15px;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

/* Product Card Styling */
.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.product-image-container {
    height: 180px;
    background: #f9f9f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image-container img {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 15px;
    margin: 0 12px 5px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    color: #e85d04;
    margin: 5px 12px;
}

.product-card .code {
    font-size: 12px;
    color: #777;
    margin: 3px 12px;
}

/* Cuotas Information */
.cuotas-info {
    font-size: 11px;
    color: #666;
    margin: 3px 12px;
    line-height: 1.2;
}

/* Navigation Buttons */
.swiper-button-next,
.swiper-button-prev {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    opacity: 0; /* Inicialmente ocultos */
    transition: opacity 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper:hover .swiper-button-next,
.swiper:hover .swiper-button-prev {
    opacity: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    color: #ff6b00;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.swiper-button-disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* Pagination Bullets */
.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #ccc;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: #ff6b00;
    opacity: 1;
}

/* Comprar Button */
.comprar-btn {
    display: block;
    width: calc(100% - 24px);
    margin: 8px 12px 0;
    padding: 8px 12px;
    background: #ff6b00;
    color: white;
    text-align: center;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.comprar-btn:hover {
    background: #e05600;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .swiper {
        padding: 20px 40px;
    }
    .product-image-container {
        height: 160px;
    }
}

@media (max-width: 768px) {
    .swiper-slide {
        padding: 10px;
    }
    .product-card h3 {
        font-size: 14px;
        height: 36px;
    }
    .product-image-container {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .swiper {
        padding: 15px 30px;
    }
    .category-title {
        font-size: 16px;
    }
    .product-image-container {
        height: 120px;
    }
    .product-card .price {
        font-size: 16px;
    }
}
/* Product Modal Styles */
.product-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.75);
    animation: modalFadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0}
    to {opacity: 1}
}

.product-modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s;
    max-height: 90vh;
    overflow: auto;
}

@keyframes modalSlideIn {
    from {transform: translateY(-30px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}


.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #e85d04;
    background: white;
    transform: rotate(90deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-product-details {
    display: flex;
    flex-direction: row;
}

.modal-left {
    flex: 0 0 50%;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 350px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
    border-radius: 4px;
    overflow: hidden;
}

#modal-product-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.modal-thumbnail {
    width: 60px;
    height: 60px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-thumbnail img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.modal-thumbnail.active {
    border: 2px solid #e85d04;
}

.modal-right {
    flex: 0 0 50%;
    padding: 30px 20px 20px 10px;
    display: flex;
    flex-direction: column;
}

.modal-breadcrumb {
    color: #666;
    font-size: 12px;
    margin-bottom: 15px;
}

#modal-product-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.3;
}

.modal-price-container {
    margin-bottom: 20px;
}

.modal-price {
    font-size: 28px;
    font-weight: bold;
    color: #e85d04;
    margin: 0;
}

.modal-installments {
    font-size: 14px;
    color: #555;
    margin: 5px 0 0 0;
}

.modal-code-container {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-code {
    font-size: 14px;
    color: #777;
    margin: 0;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-detail-item {
    font-size: 14px;
    line-height: 1.5;
}

.modal-notice {
    margin-top: 25px;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #e85d04;
    border-radius: 4px;
}

.modal-notice p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

/* Estilos para las cuotas en las tarjetas de productos */
.cuotas-info {
    font-size: 12px;
    color: #666;
    margin: 3px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-product-details {
        flex-direction: column;
    }
    
    .modal-left, .modal-right {
        flex: 0 0 100%;
        padding: 15px;
    }
    
    .modal-image-container {
        height: 250px;
    }
    
    #modal-product-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
}

/* Estilos para los resultados de búsqueda */
.product-search-container {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 20px;
}

.product-search-form {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 20px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.product-search-input {
    flex-grow: 1;
    border: 1px solid #ddd;
    border-right: none;
    padding: 12px 20px;
    font-size: 16px;
    outline: none;
    border-radius: 8px 0 0 8px;
}

.product-search-button {
    background-color: #e85d04;
    color: white;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s;
    border-radius: 0 8px 8px 0;
}

.search-results-container {
    display: none;
    margin-top: 20px;
}

.search-results-title {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.category-tag {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 5px;
}

/* Estilos para tarjetas en resultados de búsqueda */
.search-result-card {
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 8px 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 10px;
    transition: all 0.3s ease;
    max-width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

.whatsapp-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='white' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

/* Estilos para el botón de WhatsApp en el modal */
.modal-whatsapp-container {
    margin-top: 25px;
}

.modal-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 300px;
    margin: 15px auto;
}

.modal-whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    color: white;
    text-decoration: none;
}

/* Ocultar elementos de precio en el modal */
.modal-price-container {
    display: none;
}

/* Responsive para botones de WhatsApp */
@media (max-width: 768px) {
    .product-modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-product-details {
        flex-direction: column;
    }

    .modal-left, .modal-right {
        width: 100%;
        padding: 15px;
    }
    
    .modal-image-container {
        height: 250px;
    }
    
    .whatsapp-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .whatsapp-icon {
        width: 16px;
        height: 16px;
        margin-right: 5px;
    }
    
    .modal-whatsapp-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}

.product-card .code {
    margin-bottom: 5px;
}

.product-card-bottom {
    margin-top: auto;
    padding: 8px 0;
}

.info-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ff6b00;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: calc(100% - 24px);
    margin: 0 auto;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0; /* Inicialmente oculto */
    transform: translateY(10px);
}


.product-card:hover .info-btn {
    opacity: 1;
    transform: translateY(0);
}