/* ===============================
   GRID 5 KOLOM
================================ */
.product-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ===============================
   MATIKAN EFEK OTOMATIS THEME
================================ */
.product-thumb::before,
.product-thumb::after,
.product-item::before,
.product-item::after {
    content: none !important;
}

/* ===============================
   CARD (TINGGI DIKUNCI)
================================ */
.product-item {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
    overflow: hidden;
    position: relative;

    height: 320px;               /* ⬅️ FIX TINGGI CARD */
    display: flex;
    flex-direction: column;
}

/* ===============================
   BADGE DISKON LIPAT
================================ */
.badge-diskon {
    position: absolute;
    top: 0;
    left: 0;
    background: #ff424e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 0 0 6px 0;
    z-index: 3;
    line-height: 1.2;
}

/* EFEK LIPAT */
.badge-diskon::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 0;
    border-top: 8px solid #c91c27;
    border-right: 8px solid transparent;
}

/* ===============================
   FOTO PRODUK (DOMINAN)
================================ */
.product-thumb {
    width: 100%;
    height: 230px;               /* ⬅️ FOTO LEBIH TINGGI */
    overflow: hidden;
    flex-shrink: 0;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   INFO PRODUK (ISI SISA TINGGI)
================================ */
.product-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* ⬅️ BIAR RAPAT */
}

/* ===============================
   JUDUL PRODUK (1 BARIS)
================================ */
.product-title {
    font-size: 14px;
    font-weight: bold;
    margin: 0 0 4px 0;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-title a {
    display: block;
    color: #222;
    text-decoration: none;
}

/* ===============================
   HARGA
================================ */
.price-row {
    margin-top: 4px; /* rapat tapi tidak nempel */
}

.price-old {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

.price {
    font-size: 15px;
    font-weight: bold;
    color: #e53935;
}

/* ===============================
   RESPONSIVE GRID
================================ */
@media (max-width: 1200px) {
    .product-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
    .product-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid-5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .product-grid-5 { grid-template-columns: 1fr; }
}

/* ===============================
   FIX SLICK SLIDER
================================ */
.sb-slick-slider .single-slide {
    padding: 0 10px;
}

.sb-slick-slider .slick-track {
    display: flex !important;
}

.sb-slick-slider .slick-slide {
    height: auto !important;
}

.sb-slick-slider .slick-slide > div {
    height: 100%;
}
