body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 120px;
    background-color: #f4f4f4;
}

.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

header {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 15px 40px;
    background: linear-gradient(to right, #00b4db, #0083b0);/* xanh biển */
    color: white;
    position: fixed;/* CỐ ĐỊNH */
    top: 0;/* DÍNH TRÊN CÙNG */
    left: 0;
    width: 100%;/* FULL NGANG */
    z-index: 9999;

    box-sizing: border-box;
        /* them */
}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.logo span {
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    text-decoration: none;
    color: white;
    font-weight: 400;
    font-size:19px;
    text-shadow:
        1px 1px 0 #005f8d,
        2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: 0.3s;
    display: inline-block;
}

nav ul li a:hover {
    transform: scale(1.15) translateY(-3px);
    color: #2cbfda;
}


.icon {
    font-size: 20px;
    cursor: pointer;
}

.btn-dangky {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}


/*  danh muc theo  loại san pham */
.container {
    max-width: 1500px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    padding: 20px 20px 20px 0;
}

.sidebar {
    width: 185px;
    background-color: white;
    border-radius: 4px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 20px;
    height: fit-content;
    align-self: flex-start;
}

.sidebar h3 {
    background-color: purple;
    color: white;
    padding: 10px;
    margin: -15px -15px 10px -15px;
    text-align: center;
}

.sidebar ul {
    list-style-type: none;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: #333;
}

/* Danh sách sản phẩm*/
.products {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover img {
    transform: scale(1.1);
    /* phóng to nhẹ */
}

.product-card h4 {
    margin: 10px 0 5px;
    font-size: 16px;
}

.price {
    color: #007bff;
    font-weight: bold;
    margin: 5px 0;
}


/* tạo  list Categories */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    border: 1px solid #ddd;
    border-top: none;
}

.category-list li {
    border-top: 1px solid #ddd;
}

.category-list li a {
    display: block;
    padding: 12px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

.category-list li a:hover {
    background-color: #f5f5f5;
}

/* tao slide o giưa dể tu dộng move */
.slider {
    position: relative;
    width: 100%;
    max-width: 800px;
    background: white;
    box-shadow: 0 8px 6px -6px black;
    overflow: hidden;
    border-radius: 10px;
    /* Thêm các dòng sau để căn giữa */
    margin: 0 auto;
}

.slides {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
    /* Hiệu ứng chuyển động mượt mà */
}

.slide {
    min-width: 100%;
    /* slide chiếm đúng 100% khung nhìn */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.slide img {
    width: 60%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
}

.nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    color: #333;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 50%;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* footer.css */
.footer {
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1200px;
    margin: auto;
    text-align: left;
}

.footer-column {
    flex: 0 0 30%;
    min-width: 250px;
    margin-bottom: 20px;
}

.footer-column hr {
    border-color: white;
    width: 50px;
    margin-left: 0;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 150px;
    height: auto;
}

.footer-bottom {
    text-align: center;
    background-color: #26353a;
    color: #ccc;
    padding: 15px;
    margin-top: 30px;
}
