/* 
    GegolShop - Estilos personalizados adicionales
    Integración con WhatsApp
*/

/* WhatsApp Button Styles */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 2px 5px 10px rgba(0, 0, 0, 0.3);
}

.whatsapp-float i {
    margin-top: 2px;
}

/* WhatsApp Call-to-action styles */
.whatsapp-cta {
    background-color: #25d366;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s;
}

.whatsapp-cta:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
}

.whatsapp-cta i {
    margin-right: 10px;
    font-size: 20px;
}

/* Asegurar que el botón de Ver Detalles sea visible */
.single-product .product-image .button .btn {
    background-color: #0167F3;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
}

.single-product .product-image .button .btn:hover {
    background-color: #081828;
}

/* Mejorar el botón WhatsApp */
.single-product .product-info .whatsapp-cta {
    margin-top: auto !important;
    margin-bottom: 0;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-product .product-info .whatsapp-cta i {
    margin-right: 6px;
    font-size: 14px;
}

/* Responsive para tablets y móviles */
@media (max-width: 768px) {
    .single-product .product-image {
        height: 100px;
    }
    
    .single-product .product-info .btn-details {
        padding: 6px 10px !important;
        font-size: 10px !important;
        margin-top: 6px;
        margin-bottom: 6px;
    }
    
    .single-product .product-info {
        padding: 6px;
    }
    
    .single-product .product-info .category {
        font-size: 9px;
        margin-bottom: 2px;
    }
    
    .single-product .product-info .title {
        height: 28px;
        font-size: 11px;
        margin-bottom: 3px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .single-product .product-info .price {
        font-size: 12px;
        margin-bottom: 3px;
        font-weight: 700;
    }
    
    .single-product .product-info .whatsapp-cta {
        padding: 5px 6px;
        font-size: 9px;
    }
    
    .single-product .product-info .whatsapp-cta i {
        margin-right: 2px;
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .single-product .product-image {
        height: 90px;
    }
    
    .single-product .product-info .btn-details {
        padding: 5px 8px !important;
        font-size: 9px !important;
        margin-top: 5px;
        margin-bottom: 5px;
    }
    
    .single-product .product-info {
        padding: 5px;
    }
    
    .single-product .product-info .category {
        font-size: 8px;
        margin-bottom: 1px;
    }
    
    .single-product .product-info .title {
        height: 24px;
        font-size: 10px;
        margin-bottom: 2px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .single-product .product-info .price {
        font-size: 11px;
        margin-bottom: 2px;
        font-weight: 700;
    }
    
    .single-product .product-info .whatsapp-cta {
        padding: 4px 5px;
        font-size: 8px;
    }
    
    .single-product .product-info .whatsapp-cta i {
        margin-right: 1px;
        font-size: 9px;
    }
}

@media (max-width: 400px) {
    .single-product .product-image {
        height: 80px;
    }
    
    .single-product .product-info .btn-details {
        padding: 4px 6px !important;
        font-size: 8px !important;
        margin-top: 4px;
        margin-bottom: 4px;
    }
    
    .single-product .product-info {
        padding: 4px;
    }
    
    .single-product .product-info .category {
        font-size: 7px;
        display: none;
    }
    
    .single-product .product-info .title {
        height: 22px;
        font-size: 9px;
        margin-bottom: 1px;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }
    
    .single-product .product-info .price {
        font-size: 10px;
        margin-bottom: 1px;
        font-weight: 700;
    }
    
    .single-product .product-info .whatsapp-cta {
        padding: 3px 4px;
        font-size: 7px;
    }
    
    .single-product .product-info .whatsapp-cta i {
        margin-right: 1px;
        font-size: 8px;
    }
}

/* Estilos para botones de compra por WhatsApp en la página de producto */
.buy-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    color: white;
    border-radius: 4px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    width: 100%;
}

.buy-whatsapp:hover {
    background-color: #128c7e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.buy-whatsapp i {
    margin-right: 10px;
    font-size: 22px;
}

/* Estilos para la información de contacto en el header */
.nav-hotline a {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-hotline a:hover {
    color: #25d366;
}

/* Estilos para el botón de WhatsApp en el header */
.navbar-cart .wishlist a[href*="wa.me"] {
    color: #25d366;
}

.navbar-cart .wishlist a[href*="wa.me"]:hover {
    color: #128c7e;
}

/* Custom Product Styles */
.single-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.single-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.single-product .product-image {
    flex-shrink: 0;
    height: 140px;
    overflow: hidden;
    position: relative;
}

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

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

.single-product .product-image .button {
    display: none;
}

.single-product .product-image .button .btn {
    display: none;
}

/* Botón Ver Detalles en la tarjeta */
.single-product .product-info .btn-details {
    background-color: #0167F3;
    color: #fff;
    border: none;
    padding: 8px 12px !important;
    font-size: 11px !important;
    font-weight: 600;
    margin-top: 8px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.single-product .product-info .btn-details:hover {
    background-color: #081828;
    color: #fff;
}

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

.single-product .product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #fff;
}

.single-product .product-info .category {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    text-transform: uppercase;
    font-weight: 600;
}

.single-product .product-info .title {
    height: 40px; /* Fixed height for product title to maintain alignment */
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    line-clamp: 2;
    margin-bottom: 8px;
    flex-grow: 1;
    font-size: 14px;
}

.single-product .product-info .price {
    font-size: 16px;
    font-weight: 700;
    color: #0167F3;
    margin-bottom: 8px;
    margin-top: auto;
}

/* Espaciado entre productos en móvil */
@media (max-width: 768px) {
    .row > [class*="col-"] {
        padding-right: 3px;
        padding-left: 3px;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 25px;
        bottom: 20px;
        right: 20px;
    }
    
    .buy-whatsapp {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* Product Details Page Responsive Styles */
.item-details .top-area {
    padding: 20px 0;
}

.item-details .product-info {
    margin-top: 20px;
}

.item-details .product-info .title {
    font-size: 24px;
    font-weight: 700;
    color: #081828;
    margin-bottom: 12px;
    word-wrap: break-word;
}

.item-details .product-info .category {
    display: inline-block;
    font-size: 12px;
    color: #888;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 16px;
    text-transform: uppercase;
    font-weight: 600;
}

.item-details .product-info .price {
    font-size: 32px;
    font-weight: 700;
    color: #0167F3;
    margin-bottom: 16px;
}

.item-details .product-info .info-text {
    font-size: 14px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Galería de imágenes en móvil */
.product-images .main-img {
    width: 100%;
    margin-bottom: 15px;
}

.product-images .main-img img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.product-images .images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.product-images .images .item {
    flex: 0 0 calc(25% - 6px);
}

.product-images .images .item img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product-images .images .item img:hover,
.product-images .images .item img.active {
    border-color: #0167F3;
    box-shadow: 0 2px 8px rgba(1, 103, 243, 0.3);
}

/* Responsive para móvil */
@media (max-width: 768px) {
    .item-details .product-info .title {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .item-details .product-info .category {
        font-size: 11px;
        padding: 4px 8px;
        margin-bottom: 12px;
    }
    
    .item-details .product-info .price {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .item-details .product-info .info-text {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 16px;
    }
    
    .product-images .images .item {
        flex: 0 0 calc(33.333% - 5px);
    }
    
    .product-images .images {
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .item-details .product-info .title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .item-details .product-info .category {
        font-size: 10px;
        padding: 3px 6px;
        margin-bottom: 10px;
    }
    
    .item-details .product-info .price {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .item-details .product-info .info-text {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 14px;
    }
    
    .product-images .images .item {
        flex: 0 0 calc(25% - 4px);
    }
    
    .product-images .images {
        gap: 4px;
    }
}