
/* ==========================================
   PAGE CONTENT SPACING
========================================== */

.product-page-container {
    padding: 35px 40px 50px;
}

/* ==========================================
       PAGE HEADER
    ========================================== */

.product-page-header {
    margin-bottom: 45px;
    text-align: center;
}

.product-page-header h2 {
    margin: 0;
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

.product-page-header p {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
}


/* ==========================================
       FILTER
    ========================================== */

    .action-bar {
        width: 100%;
        margin-bottom: 30px;
        padding: 18px;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 14px;
        box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
    }
    
    .product-filter-form {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
    }
    
    .search-box {
        flex: 1;
    }
    
    .category-filter {
        width: 230px;
    }
    
    .search-box .form-control,
    .category-filter .form-select {
        height: 44px;
        border-radius: 9px;
        border: 1px solid #d1d5db;
        font-size: 14px;
    }
    
    .search-box .form-control:focus,
    .category-filter .form-select:focus {
        border-color: var(--darkBlue);
        box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.10);
    }
    


    /* BUTTON CARI */
    .btn.btn-primary {
        background-color: var(--darkBlue);
        border-color: var(--darkBlue);
        width: 10%;
        font-size: 16px;
    }

    
    .btn.btn-primary:hover {
        background-color: #0b3d91;
        border-color: #0b3d91;
    }
    
    .btn.btn-primary:focus,
    .btn.btn-primary:active {
        background-color: var(--darkBlue) !important;
        border-color: var(--darkBlue) !important;
        box-shadow: none !important;
    }

    



/* ==========================================
       PRODUCT SECTION
    ========================================== */

.product-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    margin-top: 22px;
}

.title-produk {
    font-size: 23px;
    font-weight: 700;
    color: #1f2937;
}

.title-produk-home {
    font-size: 30px;
    font-weight: 700;
    color: #1f2937;
}

.product-count {
    margin-top: 15px;
    font-size: 13px;
    color: #6b7280;
}


/* ==========================================
       PRODUCT GRID
    ========================================== */

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin-bottom: 35px;
}


/* ==========================================
       PRODUCT CARD
    ========================================== */

.product-card {
    background: #ffffffec;
    border: 3px solid #d7d8d886;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    transition: all 0.25s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.09);
    border-color: var(--darkBlue);
    border: 3px solid ;
}


/* ==========================================
       IMAGE
    ========================================== */

    .product-image-wrapper {
        position: relative;
        width: 100%;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 10px;
        background: #f3f4f6;
    }
    
    .product-image {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        transition: transform 0.35s ease;
    }

/* .product-card:hover .product-image {
    transform: scale(1.04);
} */

.product-no-image {

    width: 100%;

    height: 240px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 10px;

    color: #9ca3af;

    background: #f8fafc;

    /* border: 1px solid #e5e7eb; */

    border-radius: 14px;

}

.product-no-image i {

    font-size: 50px;

}


/* ==========================================
       CARD BODY
    ========================================== */

.product-card-body {
    padding: 13px 4px 4px;
    display: flex;
    flex-direction: column;
    flex: 1;
}


/* ==========================================
       PRODUCT NAME
    ========================================== */

.product-name {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;

    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;

    min-height: 42px;
    margin-bottom: 12px;
    margin-top: 12px;
}


/* ==========================================
       CATEGORY
    ========================================== */

.product-category {
    display: flex;
    align-items: center;
    gap: 5px;

    color: var(--darkBlue);
    font-size: 12px;

    margin-bottom: 10px;
    
}

.product-category i {
    font-size: 13px;
}


/* ==========================================
       PRICE
    ========================================== */

    
    .product-price {
        margin-bottom: 7px;
    }
    
    .product-price-row {
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .product-price-new {
        color: var(--darkBlue);
        font-size: 18px;
        font-weight: 700;
    }
    
    .product-price-old {
        color: #b21703;
        font-size: 12px;
        text-decoration: line-through;
    }
    
    


/* ==========================================
       PROMO DAN STOCK
    ========================================== */

    .product-meta {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        margin-top: 8px;
        margin-bottom: 20PX;
        margin-right: 5px;
    }
    
    .product-promo {
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .product-promo .badge {
        font-size: 11px;
        padding: 5px 8px;
        border-radius: 6px;
    }
    
    .product-stock {
        font-size: 12px;
        color: #6b7280;
        white-space: nowrap;
        margin-right: 7px;
    }
    
    .product-stock strong {
        color: #374151;
        font-weight: 600;
    }



/* ==========================================
       ACTION
    ========================================== */

.product-actions {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1.5px solid #d9d7d7;
}

.product-actions .btn {
    width: 100%;
    height: 36px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}


/* ==========================================
       EMPTY STATE
    ========================================== */

.empty-product {
    grid-column: 1 / -1;
    background: #ffffff;
    border: 1px dashed #d1d5db;
    border-radius: 14px;
    padding: 60px 20px;
    text-align: center;
}

.empty-product i {
    font-size: 40px;
    color: #d1d5db;
    margin-bottom: 15px;
}

.empty-product p {
    color: #6b7280;
    margin: 0;
    font-size: 14px;
}


/* ==========================================
       PAGINATION
    ========================================== */

.pagination {
    gap: 4px;
}

.pagination .page-link {
    border-radius: 8px !important;
    border: 1px solid #e5e7eb;
    
    color: #374151;
    min-width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.pagination .page-item.active .page-link {
    font-weight: 600;
    background-color: var(--darkBlue);
}


/* ==========================================
       RESPONSIVE
    ========================================== */

@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .product-filter-form {
        flex-wrap: wrap;
    }

    .search-box {
        width: 100%;
        flex: none;
    }

    .category-filter {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .product-image-wrapper {
        height: 170px;
    }

    .product-page-header h2 {
        font-size: 24px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .category-filter {
        width: 100%;
    }

    .product-filter-form .btn {
        width: 100%;
    }

    .product-image-wrapper {
        height: 220px;
    }
}
