/* =========================================================
   1. RESET & KHUNG XƯƠNG CHUNG
   ========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
/*    font-family: 'Roboto', sans-serif;*/
}

.category-page-container { 
    padding: 0 100px; 
    background: #fff;
    min-height: 100vh; 
}

/* HERO SECTION */
.hero-mist-section {
    margin-top: -140px; 
    padding: 190px 100px 90px 100px; 
    background: linear-gradient(180deg, rgba(253, 250, 245, 0.8) 0%, #ffffff 100%);
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end;
    border-bottom: 1px solid #f1f1f1;
}

.main-content-flex { display: flex; gap: 40px; margin-top: 40px; }

/* =========================================================
   2. CARD SẢN PHẨM (PC ĐỂ 4 CỘT)
   ========================================================= */
.product-grid-display { 
    flex-grow: 1; 
    display: grid;
     grid-template-columns: repeat(3, 1fr); 
     gap: 10px; }

.card-pro-item { 
    background: #fff;
    border-radius: 20px; 
    border: 1px solid #f0f0f0; 
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    overflow: hidden;
}

.card-pro-item:hover {
    box-shadow: 0 20px 45px rgba(243, 114, 1, 0.15);
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-img-box { position: relative; overflow: hidden; height: 160px; }
.card-img-box img { width: 100%; height: 100%; object-fit: cover; }
.card-img-box::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 40%;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent); z-index: 1;
}

.card-details { padding: 18px; }
.card-price { color: var(--primary-color); font-size: 22px; font-weight: 900; }
.card-name { font-size: 14px; font-weight: 800; color: #222; margin: 8px 0; height: 40px; overflow: hidden; line-height: 1.4; }
.card-addr { font-size: 12px; color: #999; margin: 8px 0 12px 0; height: 32px; overflow: hidden;  gap: 4px;
 }

/* TIỆN ÍCH TRONG CARD */
.card-meta-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #f5f5f5; padding-top: 12px; margin-top: 10px; }
.card-meta-row span, .meta-item-inner { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; color: #555; }
.card-meta-row span i, .meta-item-inner i { color: var(--primary-color); font-size: 13px; }

/* =========================================================
   3. SIDEBAR & BỘ LỌC
   ========================================================= */
.sidebar-filter-pro { width: 450px; flex-shrink: 0; margin-bottom: 20px; }
.filter-card { background: #ffffff; padding: 30px; border-radius: 24px; border: 1px solid #f0f0f0; box-shadow: 0 20px 50px rgba(0,0,0,0.05); position: sticky; top: 20px; transition: all 0.3s ease; }
.filter-card h3 { position: relative; padding-bottom: 15px; border-bottom: 2px solid #fff5ed; display: inline-block; width: 100%; }
.filter-card h3::after { content: ""; position: absolute; bottom: -2px; left: 0; width: 60px; height: 2px; background: var(--primary-color); }

.filter-group { margin-bottom: 22px; }
.filter-group label { display: block; font-weight: 700; font-size: 13px; color: #222; margin-bottom: 10px; text-transform: uppercase; }
.f-input { width: 100%; padding: 12px 15px; border: 1.5px solid #eee; border-radius: 12px; font-size: 14px; background: #fafafa; outline: none; transition: 0.3s; }
.f-input:focus { border-color: var(--primary-color); background: #fff; box-shadow: 0 0 0 4px rgba(243, 114, 1, 0.1); }

.f-grid-2, .amenity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.amenity-grid { background: #fcfcfc; padding: 15px; border-radius: 12px; border: 1px solid #f5f5f5; }
.amenity-grid label { font-weight: 500; font-size: 12px; display: flex; align-items: center; gap: 8px; cursor: pointer; color: #555; text-transform: none; }

.btn-search-pro { width: 100%; padding: 16px; background: #222; color: #fff; border: none; border-radius: 15px; font-weight: 900; font-size: 15px; cursor: pointer; margin-top: 15px; transition: 0.4s; }
.btn-search-pro:hover { background: var(--primary-color); transform: translateY(-3px); box-shadow: 0 15px 30px rgba(243, 114, 1, 0.3); }




/* =========================================================
   ĐIỀU CHỈNH NÚT LOAD MORE GỌN ĐẸP
   ========================================================= */
#load-more-btn.btn-load-more {
    position: relative;
    display: inline-block;
    /* Giảm padding: 15px 70px -> 10px 40px */
    padding: 10px 45px; 
    background-color: transparent;
    border: 1.5px solid #e0e0eb; /* Viền mảnh hơn */
    border-radius: 30px; /* Bo tròn vừa phải */
/*    font-family: 'Roboto', sans-serif;*/
    font-weight: 700; /* Giảm từ 900 xuống 700 cho đỡ thô */
    font-size: 13px; /* Giảm cỡ chữ */
    color: #444; 
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    outline: none;
    text-transform: uppercase; /* Chữ in hoa nhỏ trông sẽ sang hơn */
    letter-spacing: 0.5px;
    margin: 20px auto; /* Canh giữa */
}

/* Hiệu ứng nền màu cam chạy bên dưới */
#load-more-btn.btn-load-more::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    transition: left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

#load-more-btn.btn-load-more:hover::before {
    left: 0;
}

#load-more-btn.btn-load-more:hover {
    color: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(243, 114, 1, 0.2);
}

/* Căn giữa nút trong container */
.load-more-wrapper {
    text-align: center;
    width: 100%;
    margin-top: 30px;
}

/* =========================================================
   5. RESPONSIVE (GOM NHÓM ĐỂ KHÔNG TRÙNG LẶP)
   ========================================================= */

/* TABLET (Dưới 1024px) */
@media (max-width: 1024px) {
    .category-page-container { padding: 0 30px; }
    .hero-mist-section { padding: 160px 30px 40px 30px; margin-top: -120px; }
    .main-content-flex { flex-direction: column; gap: 30px; }
    .sidebar-filter-pro { width: 100%; }
    .filter-card { position: relative; top: 0; }
    #filter-form-pro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .filter-group:last-child, .btn-search-pro { grid-column: span 2; }
    .product-grid-display { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* MOBILE (Dưới 767px) */
@media (max-width: 767px) {
    .category-page-container { padding: 0 15px; }
    .hero-mist-section { padding: 130px 15px 30px 15px; flex-direction: column; align-items: flex-start; }
    .hero-stats { margin-top: 15px; text-align: left; }
    #filter-form-pro, .f-grid-2 { display: block; }
    .f-input, .filter-group select { width: 100%; height: 50px; margin-bottom: 12px; font-size: 16px; display: block; }
    .amenity-grid { grid-template-columns: 1fr 1fr; padding: 15px; background: #f9f9f9; }
    .btn-search-pro { height: 55px; font-size: 17px; }
    .product-grid-display { grid-template-columns: 1fr; gap: 25px; margin-top: 30px; }
    .card-img-box { height: 240px; }
    .card-details { padding: 12px 15px; }
    .card-price { font-size: 20px; line-height: 1; margin-top: -5px; }
    .card-name { font-size: 16px; margin: 5px 0 8px 0; height: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
     #load-more-btn.btn-load-more {
        padding: 12px 40px;
        font-size: 14px;
    }
}