/* =========================================================
   CATEGORY ITEM STYLES
   ========================================================= */
.category-item {
    cursor: pointer;
    transition: all 0.3s;
}

.category-item:hover {
    background-color: #f8f9fa;
}

.category-item.active {
    background-color: #e7f1ff;
    border-left: 3px solid #0d6efd;
}

.category-item.active a {
    color: #0d6efd !important;
    font-weight: 600;
}

.category-item.active .category-badge {
    background-color: #0d6efd !important;
    color: #FFF !important;
    border: none;
}

/* =========================================================
   CATEGORY BADGE
   ========================================================= */
.category-badge {
    font-size: 0.75rem;
    min-width: 24px;
    padding: 0.25rem 0.5rem;
}

/* =========================================================
   PRODUCT CARD
   ========================================================= */
.product-card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.product-card a {
    display: block;
    position: relative;
}

.product-card .position-relative > a {
    z-index: 1;
}

.product-card .position-absolute {
    z-index: 2;
}

/* =========================================================
   LOVE / FAVORITE BUTTON
   ========================================================= */
.love-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.love-btn:hover {
    transform: scale(1.1);
}

.btn-love-active {
    background-color: #FFFFFF;
    color: #0073dd;
}

/* =========================================================
   ADD TO CART BUTTON
   ========================================================= */
.add-to-cart-btn {
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.add-to-cart-btn:active,
.add-to-cart-btn:focus {
    transform: translateY(0);
    box-shadow: none;
    outline: none;
}

/* =========================================================
   TOAST / NOTIFICATION
   ========================================================= */
.toast-container {
    z-index: 9999 !important;
}

#toastNotification {
    z-index: 10000 !important;
}

/* =========================================================
   TEXT RESPONSIVE
   ========================================================= */
.text-mobile {
    display: none;
}

@media (max-width: 576px) {
    .text-desktop {
        display: none;
    }

    .text-mobile {
        display: inline;
    }
}

/* =========================================================
   PRODUCT IMAGE RESPONSIVE
   ========================================================= */
@media (max-width: 576px) {
    .card-img-top {
        height: 170px !important;
    }
}

/* =========================================================
   HARGA PRODUK (PRICE DISPLAY)
   ========================================================= */
.harga-produk {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 6px;
}

@media (max-width: 576px) {
    .harga-produk {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .old-price {
        font-size: 0.8rem;
        color: #999 !important;
    }
}


/* =========================================================
   RATING DAN REVIEW
   ========================================================= */
.rating-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label.rating-star {
    cursor: pointer;
    font-size: 1.5rem;
    color: #dee2e6;
    transition: all 0.2s;
    padding: 0.25rem;
}

.rating-input label.rating-star:hover,
.rating-input label.rating-star:hover ~ label.rating-star {
    color: #ffc107;
}

.rating-input label.rating-star i {
    display: block;
}

.review-item {
    transition: all 0.3s;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.reply-item {
    transition: all 0.3s;
    border-left: 3px solid #0d6efd !important;
}

.reply-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.replies-container {
    border-left: 2px solid #dee2e6;
    padding-left: 1rem;
}

.reply-form {
    background: #f8f9fa;
    padding: 1rem;
    border: 1px solid #dee2e6;
}

.reply-btn {
    transition: all 0.3s;
}

.reply-btn:hover {
    transform: translateY(-2px);
}