* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-menu {
    display: flex;
    list-style: none;
}

.main-menu li a {
    color: #f5f5f7;
    text-decoration: none;
    font-size: 14px;
    padding: 0 15px;
    opacity: 0.8;
}

.main-menu li a:hover { opacity: 1; }

/* Slider Section */
.slider-container {
    position: relative;
    width: 100%;
    height: 450px;
    overflow: hidden;
    margin-top: 20px;
    border-radius: 20px;
}

.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide { width: 33.3333%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }

input[name="slider"] { display: none; }

#slide1:checked ~ .slides { transform: translateX(0); }
#slide2:checked ~ .slides { transform: translateX(-33.3333%); }
#slide3:checked ~ .slides { transform: translateX(-66.6666%); }

/* Controls Mũi tên */
.arrow-prev, .arrow-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: none; /* Ẩn hết, chỉ hiện cái của slide đang active */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }

/* Logic hiện mũi tên tương ứng */
#slide1:checked ~ .controls label:nth-child(1),
#slide1:checked ~ .controls label:nth-child(2),
#slide2:checked ~ .controls label:nth-child(3),
#slide2:checked ~ .controls label:nth-child(4),
#slide3:checked ~ .controls label:nth-child(5),
#slide3:checked ~ .controls label:nth-child(6) {
    display: flex;
}

/* Dots */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dots label {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
}

#slide1:checked ~ .dots label:nth-child(1),
#slide2:checked ~ .dots label:nth-child(2),
#slide3:checked ~ .dots label:nth-child(3) {
    background: #fff;
    width: 30px;
    border-radius: 10px;
}

/* Categories */
.categories { display: flex; justify-content: space-around; padding: 40px 0; }
.cat-item { text-align: center; cursor: pointer; }
.cat-item img { width: 60px; margin-bottom: 10px; }

/* Product Section */
.section-title {
    font-size: 32px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.section-title::before {
    content: ""; 
    font-size: 40px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #1d1d1f;
    border-radius: 18px;
    padding: 30px;
    text-align: center;
    position: relative;
    transition: 0.3s;
}
.card:hover { background: #2d2d2f; }
.card img { width: 100%; max-width: 220px; margin: 20px 0; }

.label {
    background: #32d74b;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.price { font-size: 18px; font-weight: 600; }
.price del { color: #86868b; font-size: 14px; margin-left: 10px; }

.buy-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: 600;
}
.buy-btn:hover { background: #0077ed; }