/* Product Showcase Widget - Premium Grid/Card Layout */

.sp-product-showcase-grid {
    padding: 100px 0;
}

.sp-product-showcase-grid .sp-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px !important;
}

/* Header Section */
.sp-product-showcase-grid__header {
    margin-bottom: 60px;
    text-align: left;
}

.sp-product-showcase-grid__header .main-title {
    font-size: 38px;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
    margin-bottom: 24px;
    font-family: var(--primaryFont);
}

.sp-product-showcase-grid__header .section-desc {
    font-size: 1.25rem;
    color: var(--silver);
    line-height: 1.6;
    max-width: 800px;
}

.sp-product-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Default, overridden by Elementor setting */
    gap: 24px;
}

/* --- Premium Product Card (Synced with Product Grid) --- */

.product-card {
    background: #000000;
    border-radius: 1rem;
    overflow: hidden;
    border: none;
    transition: transform 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    width: 440px;
    height: 440px;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-card-inner-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.card-visual {
    width: 100%;
    flex: 1;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 1rem 1rem 0 0 !important;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.product-card:hover .card-visual img {
    transform: scale(1.05);
}

.item-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 5;
}

.card-footer {
    background: #000000 !important;
    padding: 15px 20px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-top: none;
    border-radius: 0 0 1rem 1rem !important;
    box-sizing: border-box;
    gap: 4px;
}

.product-title {
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.2;
}

.product-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.curr-price {
    color: #14b8a6;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.curr-price .currency {
    font-size: 12px;
    font-weight: 400;
    vertical-align: 6px;
    margin-right: 2px;
}

.old-price {
    color: #94a3b8;
    text-decoration: line-through;
    font-size: 12px;
    opacity: 0.6;
}

.price-suffix {
    color: #94a3b8;
    font-size: 12px;
    opacity: 0.8;
}

/* --- Optimized Responsive Scaling --- */

@media (max-width: 1199px) {
    .sp-product-showcase-grid {
        padding: 80px 0;
    }
    
    .sp-product-showcase-grid__header .main-title {
        font-size: 32px;
    }
    
    .product-card {
        border-radius: 1.5rem !important;
    }
    
    .card-visual img {
        border-radius: 1.5rem 1.5rem 0 0 !important;
    }
    
    .card-footer {
        border-radius: 0 0 1.5rem 1.5rem !important;
        align-items: center;
        text-align: center;
    }
    
    .product-title {
        text-align: center;
        width: 100%;
    }
    
    .product-price-row {
        justify-content: center;
    }
}

/* Tablets (Portrait) */
@media (max-width: 1024px) {
    .sp-product-grid-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }

    .sp-product-showcase-grid .sp-container {
        padding: 0 30px !important;
    }
}

/* Mobile Devices */
@media (max-width: 767px) {
    .sp-product-showcase-grid {
        padding: 60px 0;
    }

    .sp-product-grid-wrapper {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .sp-product-showcase-grid .sp-container {
        padding: 0 20px !important;
    }

    .sp-product-showcase-grid__header {
        margin-bottom: 40px;
        text-align: center;
    }

    .sp-product-showcase-grid__header .main-title {
        font-size: 28px;
    }
}