/* grid-standard.css - Akila Florist Standard Version (Optimized Fluid) */

/* 1. Base Card Standard */
.st-grid-standard .st-product-card {
    background: var(--white, #ffffff);
    border: 1px solid var(--border-color, #f0f0f0) !important;
    border-radius: var(--border-radius, 8px) !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Base Hover: Lift Up & Shadow */
.st-grid-standard .st-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
    border-color: transparent !important;
}

/* ============================================================
   HOVER VARIATIONS
   ============================================================ */

/* STYLE 1: HOVER ZOOM (Bunga Segar) */
.st-grid-standard .st-product-card.hover-zoom:hover .product-thumb-area img {
    transform: scale(1.15);
}
.st-grid-standard .st-product-card.hover-zoom .product-card-overlay {
    display: none !important;
}

/* STYLE 2: HOVER SLIDE (Artificial) */
.st-grid-standard .st-product-card.hover-slide:hover .product-thumb-area img {
    transform: scale(1.05); 
    filter: brightness(0.8);
}
.st-grid-standard .st-product-card.hover-slide .product-card-overlay {
    display: flex !important;
    opacity: 0;
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: all 0.4s ease;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}
.st-grid-standard .st-product-card.hover-slide:hover .product-card-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Style Tombol Slide */
.st-grid-standard .btn-product-view {
    background: var(--white, #fff);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-decoration: none;
}

/* ============================================================
   2. Content Area (Typo & Colors)
   ============================================================ */
.st-grid-standard .product-card-content {
    padding: 15px !important;
    text-align: left !important;
    display: flex;
    flex-direction: column;
    gap: var(--p-content-gap, 4px);
    flex-grow: 1;
}

.st-grid-standard .product-card-title {
    display: block !important;
    width: 100%;
    font-size: var(--p-card-title-size, 0.95rem) !important;
    font-weight: 600;
    color: var(--primary-color, #333333);
    margin: 0 0 8px 0 !important;
    line-height: var(--p-card-title-line-height, 1.4);
    transition: color 0.3s ease;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: calc(var(--p-card-title-size) * var(--p-card-title-line-height));
}

.st-grid-standard .st-product-card:hover .product-card-title {
    color: var(--primary-color) !important;
}

.st-grid-standard .product-card-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: auto; /* Memaksa harga berada di bawah kartu */
    align-self: flex-start; 
    width: 100%;
}

.st-grid-standard .price-actual {
    font-size: var(--p-price-actual-size, 0.9rem) !important;
    font-weight: 700;
    color: var(--accent-color, #D4A373);
}

.st-grid-standard .price-old {
    font-size: var(--p-price-old-size, 0.75rem) !important;
    color: var(--text-muted, #999999);
    text-decoration: line-through;
}

/* ============================================================
   3. Grid Layout & Responsiveness (FLUID LOGIC)
   ============================================================ */
.st-grid-standard .st-product-main-grid {
    display: grid;
    /* Desktop: Otomatis 4-5 kolom tergantung lebar layar */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Tablet & iPad (Pro & Mini) - Konsisten 2 Kolom */
@media (max-width: 1024px) {
    .st-grid-standard .st-product-main-grid {
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 20px;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .st-grid-standard .st-product-main-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px;
    }
    .st-grid-standard .product-card-content { 
        padding: 10px !important; 
    }
}