/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #111;
    color: white;
    flex-wrap: wrap;
}

header h2 {
    font-size: 20px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

nav a {
    margin: 5px 10px;
    color: white;
    text-decoration: none;
    font-size: 14px;
}

nav a:hover {
    color: gold;
}

/* HERO */
.hero {
    height: 200px;
    background: url('images/banner.jpg') center/cover no-repeat;
}

/* CONTAINER */
.container {
    overflow: hidden;
    position: relative;
    padding: 20px 10px;
}

/* SLIDER */
.slider {
    display: flex;
    gap: 12px;
    animation: scroll 35s linear infinite;
}

.slider:hover {
    animation-play-state: paused;
}

/* ANIMATION */
@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* CARD */
.card {
    min-width: 160px;
    max-width: 160px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    position: relative;
}

.card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* DISCOUNT */
.discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #000;
    color: #fff;
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 15px;
}

/* CARD BODY */
.card-body {
    padding: 10px;
}

.card-body h3 {
    font-size: 13px;
    margin-bottom: 5px;
}

/* PRICE */
.price {
    text-decoration: line-through;
    color: #888;
    font-size: 12px;
}

.new-price {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 5px;
}

/* BUTTON */
.btn {
    width: 100%;
    padding: 8px;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 12px;
}

.btn:hover {
    background: #333;
}

/* FLOATING BUTTONS */
.register {
    position: fixed;
    bottom: 15px;
    left: 15px;
    background: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
    font-size: 12px;
    cursor: pointer;
}

.chat {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: #25D366;
    color: white;
    padding: 10px 14px;
    border-radius: 50px;
    font-size: 12px;
    cursor: pointer;
}

/* FOOTER */
.footer {
    background: #111;
    color: #fff;
    padding: 20px;
    margin-top: 40px;
}

.footer-content {
    text-align: center;
    font-size: 13px;
    line-height: 1.6;
}

/* ========================= */
/* TABLET (≥768px) */
/* ========================= */
@media (min-width: 768px) {

    header {
        flex-direction: row;
        padding: 15px 30px;
    }

    nav a {
        margin: 0 12px;
        font-size: 15px;
    }

    .hero {
        height: 260px;
    }

    .card {
        min-width: 200px;
        max-width: 200px;
    }

    .card img {
        height: 180px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .new-price {
        font-size: 16px;
    }

    .btn {
        font-size: 14px;
    }

    .footer-content {
        text-align: right;
    }
}

/* ========================= */
/* LAPTOP / DESKTOP (≥1024px) */
/* ========================= */
@media (min-width: 1024px) {

    .hero {
        height: 350px;
    }

    .slider {
        animation-duration: 25s;
    }

    .card {
        min-width: 250px;
        max-width: 250px;
    }

    .card img {
        height: 200px;
    }

    .card-body h3 {
        font-size: 16px;
    }

    .new-price {
        font-size: 18px;
    }

    .register {
        bottom: 20px;
        left: 20px;
        font-size: 14px;
    }

    .chat {
        bottom: 20px;
        right: 20px;
        font-size: 14px;
    }
}