* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #f8fafc;
    color: #111827;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    border: none;
}


/*HEADER*/

.header {
    height: 72px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    position: sticky;
    top: 0;
    z-index: 100;
}


/* LOGO */

.logo img {
    display: block;
    height: 45px;
    width: 50px;
    object-fit: contain;
    max-width: 100%;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #111827;
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
}

.logo-text {
    font-size: 21px;
    letter-spacing: 1px;
    font-size: 11px;
    color: #6b7280;
    margin-top: 3px;
    display: flex;
    flex-direction: column;                                                                         
}
.logo-title {
    font-size: 18px;
    font-weight: bold;
    color: #111827;
}

.logo-subtitle {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
}

/* MENU */

.menu {
    display: flex;

    align-items: center;

    gap: 38px;

    height: 100%;
}

.menu a {
    height: 100%;

    display: flex;

    align-items: center;

    font-size: 15px;

    font-weight: 500;

    color: #374151;

    position: relative;

    white-space: nowrap;
}

.menu a:hover {
    color: #2563eb;
}

.menu a.active {
    color: #2563eb;

    font-weight: bold;
}

.menu a.active::after {
    content: "";

    position: absolute;

    bottom: 0;

    left: 0;

    right: 0;

    height: 3px;

    background: #2563eb;

    border-radius: 3px 3px 0 0;
}


/* HEADER RIGHT */

.header-right {
    display: flex;

    align-items: center;

    gap: 20px;
}

.search-icon {
    font-size: 22px;

    cursor: pointer;
}

.login-btn {
    background: #2563eb;

    color: white;

    padding: 12px 20px;

    border-radius: 10px;

    font-weight: 600;
}

.login-btn:hover {
    background: #1d4ed8;
}


/*LAYOUT*/

.container {
    max-width: 1450px;
    margin: 20px auto;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 0 20px;
}

/* Khu vuc noi dung ben phai */
.container > main,
.container > .main-content,
.container > .content {
    flex: 1;
    min-width: 0;
}

/* Sidebar co chieu rong co dinh */
.container > .sidebar {
    flex: 0 0 250px;
    min-width: 0;
}

/* SIDEBAR*/

.sidebar {
    background: #ffffff;

    border: 1px solid #e5e7eb;

    border-radius: 12px;

    padding: 20px;

    height: fit-content;

    position: sticky;

    top: 92px;
}

.sidebar-title {
    font-size: 14px;

    font-weight: bold;

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 16px;
}

.sidebar-title span {
    font-size: 18px;
}

.category {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 11px;

    border-radius: 8px;

    font-size: 14px;

    margin-bottom: 5px;

    cursor: pointer;
}

.category:hover {
    background: #eff6ff;

    color: #2563eb;
}

.category.active {
    background: #eff6ff;

    color: #2563eb;

    font-weight: bold;
}

.divider {
    height: 1px;

    background: #e5e7eb;

    margin: 18px 0;
}

.filter-title {
    font-size: 13px;

    font-weight: bold;

    margin-bottom: 12px;
}

.filter-option {
    display: flex;

    align-items: center;

    gap: 10px;

    font-size: 13px;

    margin-bottom: 12px;

    color: #4b5563;
}

.filter-option input {
    accent-color: #2563eb;
}


/*BANNER*/

.banner {
    height: 245px;

    border-radius: 14px;

    overflow: hidden;

    position: relative;

    background:
        linear-gradient(
            90deg,
            rgba(3, 13, 35, 0.98) 0%,
            rgba(3, 13, 35, 0.90) 35%,
            rgba(3, 13, 35, 0.25) 75%
        ),
        url("https://images.unsplash.com/photo-1542751371-adc38448a05e?auto=format&fit=crop&w=1400&q=85");

    background-size: cover;

    background-position: center;
}
/* Mỗi banner */
.banner-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;

    opacity: 0;
    transition: opacity 0.8s ease;
}

/* Banner đang hiển thị */
.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Hình ảnh */
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
/* NÚT TRƯỚC / SAU */

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.45);
    color: white;

    font-size: 18px;
    cursor: pointer;

    z-index: 5;

    transition: 0.3s;
}

.banner-prev {
    left: 15px;
}

.banner-next {
    right: 15px;
}

.banner-prev:hover,
.banner-next:hover {
    background: rgba(37, 99, 235, 0.9);
}


.banner-content {
    position: absolute;

    left: 42px;

    top: 40px;

    color: white;
}

.banner-small {
    font-size: 13px;

    margin-bottom: 10px;

    color: #dbeafe;
}

.banner h1 {
    font-size: 34px;

    line-height: 1.2;

    max-width: 520px;

    margin-bottom: 10px;
}

.banner h1 span {
    color: #60a5fa;
}

.banner-description {
    font-size: 14px;

    color: #e5e7eb;

    margin-bottom: 22px;
}

.banner-btn {
    background: #2563eb;

    color: white;

    padding: 12px 20px;

    border-radius: 8px;

    font-weight: bold;
}

.banner-btn:hover {
    background: #1d4ed8;
}


/* DOT */

.dots {
    position: absolute;
    bottom: 12px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;
    gap: 8px;

    z-index: 5;
}

.dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.6);

    cursor: pointer;

    transition: 0.3s;
}

.dot.active {
    width: 25px;
    border-radius: 10px;
    background: #2563EB;
}

/*PRODUCTS*/

.products-section {
    margin-top: 22px;
}

/* TIÊU ĐỀ VÀ THANH CÔNG CỤ */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

/* THANH TÌM KIẾM VÀ SẮP XẾP */
.tools {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
}

/* Ô TÌM KIẾM */
.search-box {
    width: 290px;
    max-width: 100%;
    height: 42px;
    border: 1px solid #dbe1ea;
    background: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    padding: 0 13px;
    gap: 9px;
    box-sizing: border-box;
}

/* Ô NHẬP TÌM KIẾM */
.search-box input {
    border: none;
    outline: none;
    width: 100%;
    min-width: 0;
    font-size: 13px;
}

/* HỘP SẮP XẾP */
.sort-box {
    height: 42px;
    max-width: 100%;
    padding: 0 14px;
    background: white;
    border: 1px solid #dbe1ea;
    border-radius: 9px;
    color: #374151;
}

/* PRODUCT LIST - CHIA CARD BANG FLEXBOX, KHONG DUNG GRID */
.account-list {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    min-width: 0;
}

/* MỖI CARD */
.account-list .card {
    width: calc((100% - 72px) / 5);
    min-width: 0;
    flex: 0 0 calc((100% - 72px) / 5);
    box-sizing: border-box;
}

/* FILTER GRID - TABLET */
.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-list > * {
    width: calc((100% - 12px) / 5);
    box-sizing: border-box;
}

/* CARD */

.card {
    background: white;
    border: 1px solid #e0e5ed;
    border-radius: 16px;
    overflow: hidden;
    transition: 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
}

/* HÌNH ẢNH CARD */
.card-img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    display: block;
}

/* NỘI DUNG CARD */
.card-body {
    padding: 14px;
}

/* TÊN ACC */
.card-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* THÔNG TIN ACC */
.info {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;

    background: #eff6ff;

    color: #2563eb;

    padding: 4px 8px;

    border-radius: 5px;

    font-size: 11px;

    font-weight: bold;

    margin-bottom: 10px;
}


/* PRICE */

.price {
    color: #2563eb;

    font-size: 19px;

    font-weight: bold;

    margin-bottom: 11px;
}

.price span {
    font-size: 12px;

    font-weight: normal;
}

/* BUTTON */

.card-bottom {
    display: flex;

    gap: 7px;
}

.rent-btn {
    flex: 1;

    background: #2563eb;

    color: white;

    height: 38px;

    border-radius: 7px;

    font-weight: bold;
}

.rent-btn:hover {
    background: #1d4ed8;
}

.favorite {
    width: 40px;

    border: 1px solid #dbe1ea;

    background: white;

    border-radius: 7px;

    font-size: 18px;
}

.favorite:hover {
    color: #2563eb;

    border-color: #2563eb;
}


/*FOOTER*/

footer {
    margin-top: 50px;

    background: #111827;

    color: white;

    padding: 30px;

    text-align: center;
}

footer p {
    font-size: 13px;

    color: #9ca3af;

    margin-top: 7px;
}


/* RESPONSIVE - KHONG SU DUNG GRID */

@media (max-width: 1200px) {
    .menu {
        gap: 20px;
    }

    .account-list .card {
        width: calc((100% - 36px) / 3);
    }
}

@media (max-width: 900px) {
    .header {
        padding: 0 20px;
    }

    .menu {
        display: none;
    }

    .container > .sidebar {
        flex-basis: 200px;
    }

    .account-list .card {
        width: calc((100% - 18px) / 2);
    }

    .tools {
        flex-direction: column;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 650px) {
    .container {
        display: block;
    }

    .sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .banner {
        height: 300px;
    }

    .banner h1 {
        font-size: 27px;
    }

    .account-list .card {
        width: 100%;
    }

    .products-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .tools {
        width: 100%;
    }

    .header-right {
        display: none;
    }
}
