/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(#fff0f6, #ffe4ec);
    color: #444;
}

/* ===== HEADER & MENU ===== */
header {
    background: #ff85a2;
    padding: 18px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    color: white;
    font-size: 26px;
}

nav a {
    background: white;
    color: #ff4d79;
    padding: 8px 16px;
    border-radius: 999px;
    text-decoration: none;
    margin-left: 8px;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    background: #ffe4ec;
}

/* ===== BANNER ===== */
.banner {
    text-align: center;
    padding: 70px 20px;
    background: radial-gradient(circle, #ffd6e5, #ffb6c1);
}

.banner h2 {
    font-size: 34px;
    color: #ff3366;
    margin-bottom: 10px;
}

.banner p {
    font-size: 18px;
}

/* ===== SLIDER ===== */
.slider {
    overflow: hidden;
    background: #ffd6e5;
    padding: 25px 0;
}

.slider-track {
    display: flex;
    width: max-content;
    animation: slide 18s linear infinite;
}

.slider img {
    width: 240px;
    margin: 0 12px;
    border-radius: 25px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===== INTRO ===== */
.intro {
    text-align: center;
    padding: 50px 20px;
}

.intro h2 {
    color: #ff3366;
    margin-bottom: 12px;
}

/* ===== SEARCH ===== */
.search-box {
    text-align: center;
    margin: 30px 0;
}

.search-box input {
    width: 280px;
    padding: 10px 18px;
    border-radius: 999px;
    border: 1px solid #ccc;
    font-size: 15px;
}

/* ===== PRODUCTS ===== */
.products {
    padding: 60px 20px;
    text-align: center;
}

.products h2 {
    color: #ff3366;
    margin-bottom: 40px;
}

.product-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.product {
    background: white;
    width: 240px;
    padding: 18px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(255,133,162,0.25);
    transition: 0.3s;
}

.product:hover {
    transform: translateY(-10px);
}

.product img {
    width: 100%;
    border-radius: 20px;
}

.product h3 {
    color: #ff3366;
    margin: 10px 0 5px;
}

.product p {
    font-weight: bold;
    margin-bottom: 10px;
}

.product a {
    text-decoration: none;
    color: inherit;
}

.product button {
    padding: 8px 18px;
    border-radius: 999px;
    border: none;
    background: linear-gradient(45deg, #ff4d79, #ff85a2);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail {
    max-width: 900px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 30px;
    display: flex;
    gap: 30px;
    align-items: center;
    box-shadow: 0 15px 40px rgba(255,133,162,0.3);
}

.product-detail img {
    width: 300px;
    border-radius: 25px;
}

.product-detail h1 {
    color: #ff3366;
    margin-bottom: 10px;
}

.product-detail .price {
    font-size: 22px;
    font-weight: bold;
    color: #ff4d79;
    margin: 10px 0;
}

.product-detail button {
    padding: 12px 28px;
    border-radius: 999px;
    border: none;
    background: #ff4d79;
    color: white;
    cursor: pointer;
}

/* ===== RATING ===== */
.rating span {
    font-size: 26px;
    cursor: pointer;
}

/* ===== COMMENTS ===== */
.comments {
    max-width: 900px;
    margin: 30px auto;
    background: white;
    padding: 25px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(255,133,162,0.25);
}

.comments h2 {
    color: #ff3366;
    margin-bottom: 10px;
}

.comments input {
    width: 70%;
    padding: 10px;
    border-radius: 999px;
    border: 1px solid #ccc;
}

.comments button {
    padding: 10px 18px;
    border-radius: 999px;
    border: none;
    background: #ff4d79;
    color: white;
}

.comments ul {
    margin-top: 15px;
    list-style: none;
}

.comments li {
    background: #fff0f6;
    padding: 10px;
    border-radius: 15px;
    margin-bottom: 6px;
}

/* ===== CART ===== */
.cart-item {
    max-width: 600px;
    margin: 15px auto;
    background: white;
    padding: 15px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item button {
    background: #ff4d79;
    border: none;
    color: white;
    padding: 6px 14px;
    border-radius: 999px;
}

#total {
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    color: #ff3366;
    margin: 20px 0;
}

/* ===== FOOTER ===== */
footer {
    background: #ff85a2;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        text-align: center;
    }

    .product-detail img {
        width: 100%;
    }

    .comments input {
        width: 100%;
        margin-bottom: 10px;
    }
}
