.page-home {
    background: #f4f7fb;
    padding: 25px 0;
}

.home-container {
    max-width: 1180px;
    margin: auto;
    padding: 0 15px;
}

.section-box {
    margin-bottom: 45px;
}

.section-title {
    text-align: center;
    color: #1687c9;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: #777;
    margin-bottom: 22px;
    font-size: 14px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 22px;
}

.product-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transition: .25s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0,0,0,.13);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 999px;
    z-index: 2;
}

.product-thumb-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.product-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: .25s ease;
}

.product-card:hover .product-thumb {
    transform: scale(1.05);
}

.product-link {
    text-decoration: none;
    color: inherit;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    color: #263238;
    min-height: 36px;
    line-height: 1.35;
    margin-bottom: 5px;
}

.product-rating {
    color: #ffb703;
    font-size: 12px;
    margin-bottom: 5px;
}

.product-price {
    color: #f97316;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qty-mini {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.qty-mini button {
    width: 32px;
    height: 30px;
    border: 0;
    background: #eef6ff;
    color: #1687c9;
    font-weight: 800;
    cursor: pointer;
}

.qty-input {
    flex: 1;
    width: 100%;
    height: 30px;
    border: 0;
    text-align: center;
    font-weight: 700;
}

.add-cart-btn {
    display: block;
    text-align: center;
    background: linear-gradient(135deg, #1687c9, #0ea5e9);
    color: #fff;
    padding: 9px 10px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
}

.add-cart-btn:hover {
    background: linear-gradient(135deg, #0f6fa8, #0284c7);
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .product-card {
        padding: 9px;
        border-radius: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .product-name {
        font-size: 12px;
    }
}

.cart-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;

    background: #16a34a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,.2);

    font-size: 14px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(-15px);
    pointer-events: none;
    transition: .3s ease;
}

.cart-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.hero-slider {
    width: 100%;
    max-width: 1979px;
    height: 462px;
    margin: 0 auto 25px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ddd;
}

.hero-slide {
    display: none;
    width: 100%;
    height: 100%;
}

.hero-slide.active {
    display: block;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* sembunyikan gambar slide yang belum aktif */
.hero-slide:not(.active) img {
    display: none;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 7px;
}

.hero-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.6);
}

.hero-dot.active {
    background: #fff;
}

.home-usp {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 0 auto 35px;
    max-width: 1150px;
}

.home-usp-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.home-usp-item i {
    font-size: 24px;
    color: #1687c9;
}

.home-usp-item strong {
    display: block;
    color: #222;
    margin-bottom: 3px;
}

.home-usp-item span {
    color: #666;
    font-size: 13px;
}

@media (max-width: 700px) {
    .hero-slider {
        height: 150px;
        border-radius: 10px;
    }

    .home-usp {
        grid-template-columns: 1fr;
    }
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 18px;
    color: #ccc;
    cursor: pointer;
    transition: .2s;
}

.wishlist-btn.active {
    color: #ef4444;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);
    color: #ccc;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    cursor: pointer;
}

.wishlist-btn.active {
    color: #ef4444;
}

.product-card {
    position: relative;
}

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10; /* 🔥 ini penting */

    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.95);
    color: #ccc;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.product-card {
    display: flex;
    flex-direction: column;
}

.product-actions {
    margin-top: auto;
}