* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #ffdce3;
    color: #c5568a;
    overflow-x: hidden; 
}


img {
    max-width: 100%;
    height: auto;
}

/* HEADER */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
    background: #fff6fa;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar a {
    margin: 0 15px;
    text-decoration: none;
    color: #b16e7c;
    font-weight: 500;
    font-size: 1.2em;
    transition: 0.3s;
}

.navbar a:hover {
    color: #e63946;
    transform: scale(1.1);
}

/* HERO */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 10%;
}

.hero-text h1 {
    font-size: 60px;
    font-weight: 700;
}

.hero-text span {
    color: #e63946;
}

.responsive-banner {
    width: 100%;
    max-width: 600px;
    display: block;
}

.hero button {
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    background: #e63946;
    color: white;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.hero button:hover {
    background: #c1121f;
    transform: scale(1.05);
}

/* FEATURE */
.feature {
    display: flex;
    justify-content: space-around;
    padding: 50px 10%;
}

.feature-box {
    text-align: center;
}

.feature-box img {
    width: 60px;
    margin-bottom: 10px;
}

/* PRODUCT */
.product, .new-product {
    padding: 60px 10%;
    text-align: center;
}

.product-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.product-card {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 10px;
    transition: 0.3s;
    background: white;
}

.product-card img {
    width: 100%;
    border-radius: 10px;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.product button {
    font-size: 10px;
    font-weight: 600;
    padding: 7px 10px;
    color: #fff;
    background-color: #e63946;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: 0.2s;
    margin-top: 10px;
}

.product-card button {
    font-size: 14px;
    font-weight: 600;
    padding: 10px 15px;
    color: #fff;
    background-color: #e63946;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
    width: 100%;
}

.product-card button:hover {
    background-color: #c1121f;
    transform: scale(1.02);
}

/* SMALL BANNER */
.sm-banner {
    display: flex;
    gap: 20px;
    padding: 60px 10%;
}

.banner-box {
    position: relative;
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
}

.banner-box img {
    width: 100%;
    border-radius: 10px;
    display: block;
}

.banner-box::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.banner-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    color: white;
    z-index: 2;
}

.banner-text button {
    margin-top: 10px;
    padding: 10px 20px;
    border: none;
    background: #e63946;
    color: white;
    cursor: pointer;
    border-radius: 5px;
    transition: 0.3s;
}

/* NEWSLETTER */
.newsletter {
    background: #ffb4da;
    color: white;
    text-align: center;
    padding: 60px 10%;
}

.newsletter-form {
    margin-top: 20px;
}

.newsletter input {
    padding: 10px;
    width: 250px;
    border: none;
    border-radius: 5px;
    margin-bottom: 10px;
}

.newsletter button {
    padding: 10px 20px;
    background: #e63946;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}


.footer {
    display: flex;
    justify-content: space-around;
    padding: 40px 10%;
    background: #91445b;
    color: white;
    flex-wrap: wrap;
    gap: 20px;
}

@media (max-width: 1024px) {
    .header { padding: 20px 5%; }
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 5%;
    }
    .hero-text h1 { font-size: 40px; }
    .product-container { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    .navbar {
        margin-top: 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navbar a { margin: 5px 10px; font-size: 14px; }
    .feature { flex-direction: column; gap: 30px; }
    .product-container { grid-template-columns: 1fr; }
    .sm-banner { flex-direction: column; }
    .newsletter-form { display: flex; flex-direction: column; align-items: center; }
    .newsletter input { width: 100%; max-width: 300px; }
    .footer { text-align: center; flex-direction: column; }
}


.single-product {
    padding: 80px 10%;
}
.details-container {
    display: flex;
    gap: 50px;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
}
.detail-img { flex: 1; }
.detail-text { flex: 1; }
.detail-text h2 { font-size: 35px; margin: 15px 0; }
.detail-text h3 { color: #e63946; margin-bottom: 20px; }
.detail-text input { width: 50px; height: 40px; padding-left: 10px; margin-right: 10px; }
.detail-text .btn { background: #e63946; color: #fff; padding: 10px 30px; border: none; cursor: pointer; }
.detail-text p { line-height: 1.6; color: #666; margin-top: 20px; }


@media (max-width: 768px) {
    .details-container { flex-direction: column; text-align: center; }
    .single-product { padding: 40px 5%; }
}


@media (max-width: 768px) {

    .about-section {
        flex-direction: column;
        text-align: center;
    }
    
   
    .cart-page table th, .cart-page table td {
        font-size: 12px;
        padding: 5px;
    }
    

    form {
        padding: 0 5%;
    }
}

/* Header & Dropdown */
.logo-img { cursor: pointer; }
.header-icons { display: flex; align-items: center; gap: 15px; }
.cart-link { text-decoration: none; }
#user-icon { cursor: pointer; font-size: 20px; }
#user-dropdown {
    display: none; position: absolute; right: 0; top: 30px; background: white; 
    min-width: 180px; box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
    border-radius: 8px; z-index: 9999; padding: 15px; 
    border: 1px solid #ffdae1; text-align: left;
}
.dropdown-greeting {
    font-size: 14px; color: #e63946; font-weight: 700; 
    margin-bottom: 10px; border-bottom: 1px solid #eee; padding-bottom: 8px;
}
.dropdown-hr { border: 0.5px solid #f9f9f9; margin: 10px 0; }
.dropdown-link { display: block; color: #c5568a; text-decoration: none; font-size: 13px; padding: 5px 0; }
.dropdown-logout { display: block; color: #999; text-decoration: none; font-size: 13px; padding-top: 10px; }
.footer-link { color: white; text-decoration: none; }

/* About Page */
.about-section { padding: 60px 10%; text-align: center; }
.about-section h2 { font-size: 35px; margin-bottom: 20px; }
.about-section p { max-width: 800px; margin: 0 auto; line-height: 1.6; }
.team-section { padding: 40px 10%; background: #fff6fa; }
.team-section h2 { text-align: center; margin-bottom: 40px; }
.team-card { text-align: center; }
.team-img-wrapper {
    width: 150px; height: 150px; background: #ddd; border-radius: 50%; 
    margin: 0 auto 15px; overflow: hidden; border: 3px solid #e63946;
}
.team-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.team-role { color: #e63946; font-weight: bold; }
.team-class { font-size: 14px; }
/* Blog Page */
.blog-page { padding: 60px 10%; }
.blog-page h2 { text-align: center; margin-bottom: 40px; font-size: 35px; }
.blog-content { padding: 15px; text-align: left; }
.blog-content h4 { margin-bottom: 10px; }
.blog-content p { font-size: 14px; color: #666; margin-bottom: 15px; }
.blog-btn {
    width: 100%; background: #e63946; color: white; border: none; 
    padding: 10px; border-radius: 5px; cursor: pointer;
}

/* Cart Page */
.cart-page { padding: 60px 10%; min-height: 70vh; }
.cart-page h2 { text-align: center; margin-bottom: 30px; font-size: 35px; }
.cart-table-wrapper {
    overflow-x: auto; background: white; border-radius: 15px; box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead tr { background: #e63946; color: white; text-align: left; }
.cart-table th, .cart-table td { padding: 20px; }
.cart-table tbody tr { border-bottom: 1px solid #eee; }
.cart-item-info { display: flex; align-items: center; gap: 15px; }
.cart-item-info img { border-radius: 8px; }
.cart-item-info h4 { margin: 0; }
.cart-item-info small { color: #666; }
.item-quantity { width: 60px; padding: 8px; border-radius: 5px; border: 1px solid #ddd; }
.cart-subtotal-cell { font-weight: 600; color: #e63946; }
.cart-checkout-box {
    text-align: right; margin-top: 30px; padding: 30px; background: #fff6fa; 
    border-radius: 15px; border: 1px solid #ffdae1;
}
.cart-checkout-box h3 { margin-bottom: 15px; font-size: 24px; }
.total-price-display { color: #e63946; }
.cart-buttons { display: flex; justify-content: flex-end; gap: 15px; flex-wrap: wrap; }
.btn-continue {
    background: #b16e7c; color: white; padding: 12px 25px; border: none; 
    cursor: pointer; border-radius: 8px; font-weight: 600; transition: 0.3s;
}
.btn-checkout {
    background: #e63946; color: white; padding: 12px 25px; border: none; 
    cursor: pointer; border-radius: 8px; font-weight: 600; transition: 0.3s;
}

/* Contact Page */
.contact-page { padding: 60px 10%; text-align: center; }
.contact-page h2 { font-size: 35px; margin-bottom: 30px; }
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 15px; border-radius: 8px; border: 1px solid #ddd; font-family: 'Poppins', sans-serif;
}
.btn-submit {
    background: #e63946; color: white; padding: 15px; border: none; 
    cursor: pointer; border-radius: 8px; font-weight: 600; transition: 0.3s;
}
.back-link { text-decoration: none; color: #91445b; font-weight: 500; margin-top: 10px; display: inline-block; }

/* Shop Page */
.shop-title { text-align: center; margin-top: 40px; margin-bottom: 30px; font-size: 35px; }

/* Product Details Page */
.detail-text h4 { margin-top: 20px; }
.detail-text input { width: 50px; padding: 5px; margin-bottom: 10px; }
.detail-text .btn { border-radius: 5px; font-weight: 600; }
.detail-text p { line-height: 1.6; color: #666; margin-top: 10px; }