
/**
 * CSS for Jalan Wisata Seru Products
 * 
 * Save this file as jws-products.css in your theme's css directory
 */

/* Container for all products */
.jws-products-wrapper {
    padding: 20px 0;
}

.jws-products-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 0 auto;
}

.jws-products-container[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.jws-products-container[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Individual product card */
.jws-product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background-color: #fff;
    height: 100%;
}

.jws-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Sale badge */
.jws-sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #ff6b6b, #f53b57);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 30px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(245, 59, 87, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Product image container */
.jws-product-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

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

.jws-product-card:hover .jws-product-image img {
    transform: scale(1.08);
}

/* Overlay with quick view button */
.jws-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.jws-product-card:hover .jws-product-overlay {
    opacity: 1;
}

.jws-detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #333;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jws-detail-button:hover {
    background-color: #fff;
    transform: scale(1.05);
}

.jws-detail-button svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.jws-detail-button:hover svg {
    transform: scale(1.2);
}

/* Product content section */
.jws-product-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.jws-product-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #333;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.jws-product-card:hover .jws-product-title {
    color: #3a7e3a;
}

/* Rating stars */
.jws-product-rating {
    margin-bottom: 12px;
}

.jws-product-rating .star-rating {
    float: none;
    margin-top: 0;
    font-size: 16px;
}

.jws-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #3a7e3a;
    margin-bottom: 15px;
}

.jws-product-price del {
    font-size: 14px;
    color: #888;
    font-weight: normal;
    margin-right: 5px;
}

.jws-product-price ins {
    text-decoration: none;
    color: #f53b57;
}

.jws-product-description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* WhatsApp button */
.jws-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #25D366, #128C7E);
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 5px 15px rgba(18, 140, 126, 0.3);
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.jws-whatsapp-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #128C7E, #25D366);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.jws-whatsapp-button:hover:before {
    opacity: 1;
}

.jws-whatsapp-button svg {
    width: 20px;
    height: 20px;
    color: white;
}

.jws-whatsapp-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(18, 140, 126, 0.4);
    color: white;
}

/* No products found */
.jws-no-products {
    text-align: center;
    padding: 60px 20px;
    background-color: #f8f9fa;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.jws-no-products svg {
    width: 60px;
    height: 60px;
    color: #ccc;
    margin-bottom: 20px;
}

.jws-no-products p {
    font-size: 16px;
    color: #666;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .jws-products-container,
    .jws-products-container[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .jws-products-container,
    .jws-products-container[data-columns="3"],
    .jws-products-container[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .jws-product-image {
        height: 220px;
    }
    
    .jws-product-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .jws-products-container,
    .jws-products-container[data-columns="2"],
    .jws-products-container[data-columns="3"],
    .jws-products-container[data-columns="4"] {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .jws-product-image {
        height: 240px;
    }
}

/* Animation effects */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.jws-product-card {
    animation: fadeIn 0.6s ease-out forwards;
    opacity: 0;
}

/* Stagger effect for multiple cards */
.jws-product-card:nth-child(1) { animation-delay: 0.1s; }
.jws-product-card:nth-child(2) { animation-delay: 0.2s; }
.jws-product-card:nth-child(3) { animation-delay: 0.3s; }
.jws-product-card:nth-child(4) { animation-delay: 0.4s; }
.jws-product-card:nth-child(5) { animation-delay: 0.5s; }
.jws-product-card:nth-child(6) { animation-delay: 0.6s; }
.jws-product-card:nth-child(n+7) { animation-delay: 0.7s; }



