/* grid-standard.css - Akila Florist Standard Version (Optimized Fluid) */

/* 1. Base Card Standard */
.st-grid-standard .st-product-card {
    background: var(--st-surface-card, #ffffff);
    border: 1px solid var(--st-stone-200, #e7e5e4) !important;
    border-radius: var(--st-radius-lg, 16px) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: var(--st-shadow-xs, 0 1px 2px 0 rgba(0, 0, 0, 0.04));
}

/* Base Hover: Lift Up & Shadow */
.st-grid-standard .st-product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--st-shadow-hover, 0 10px 25px -5px rgba(0, 0, 0, 0.08)) !important;
    border-color: var(--st-stone-300, #d6d3d1) !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 .product-thumb-area: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: 10px 12px 12px 12px !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    flex-grow: 1;
}

.st-grid-standard .product-card-title {
    display: -webkit-box !important;
    width: 100%;
    font-size: var(--p-card-title-size, 0.9rem) !important;
    font-weight: 700 !important;
    color: var(--st-charcoal-900, #111827) !important;
    margin: 0 !important;
    line-height: 1.35 !important;
    transition: color 0.2s ease;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    min-height: auto !important;
    letter-spacing: -0.01em !important;
}

.st-grid-standard .st-product-card:hover .product-card-title,
.st-grid-standard .product-card-link:hover .product-card-title {
    color: var(--st-brand-700, #be0038) !important;
}

.st-grid-standard .product-card-footer-row {
    margin-top: 4px !important;
    padding-top: 0 !important;
}

.st-grid-standard .product-card-price {
    display: flex !important;
    align-items: baseline !important;
    gap: 6px !important;
    margin-top: 0 !important;
    align-self: flex-start !important; 
    width: 100%;
}

.st-grid-standard .price-actual {
    font-size: clamp(0.9375rem, 1vw + 0.4rem, 1.05rem) !important;
    font-weight: 800 !important;
    color: var(--st-brand-700, #be0038) !important;
    font-family: var(--st-font-family, 'Plus Jakarta Sans', sans-serif);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease !important;
}

/* Color Switch: Saat kartu di-hover, judul jadi brand red & harga jadi charcoal-900 */
.st-grid-standard .st-product-card:hover .price-actual,
.st-grid-standard .product-card-link:hover .price-actual {
    color: var(--st-charcoal-900, #111827) !important;
}

.st-grid-standard .price-old {
    font-size: 0.75rem !important;
    color: var(--st-stone-400, #9ca3af) !important;
    text-decoration: line-through !important;
    font-family: var(--st-font-family, 'Plus Jakarta Sans', sans-serif);
    transition: color 0.2s ease !important;
}

/* ============================================================
   3. Grid Layout & Responsiveness (FLUID LOGIC)
   ============================================================ */
.st-grid-standard .st-product-main-grid {
    display: grid;
    /* Desktop: Konsisten 4 Kolom Sesuai Design System */
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

/* Tablet Landscape & iPad Pro (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .st-grid-standard .st-product-main-grid {
        grid-template-columns: repeat(3, 1fr) !important; 
        gap: 20px;
    }
}

/* Mobile & Small Tablet (< 768px) - Konsisten 2 Kolom */
@media (max-width: 767px) {
    .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; 
    }
}