/* Import a modern font */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: linear-gradient(45deg, #ff9a9e, #fad0c4, #fad0c4, #ff9a9e);
    background-size: 400%;
    animation: gradientBG 15s ease infinite;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Gradient background animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}
nav a {
    color: #fff;
    margin: 0 15px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, transform 0.3s ease;
}
nav a:hover {
    color: #ff6f61;
    transform: scale(1.1);
}

/* Hero Section (Home Page) */
.hero {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.hero h1 {
    font-size: 48px;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}
.hero p {
    font-size: 20px;
    color: #f5f5f5;
    margin-bottom: 30px;
}
.hero ,button {
    padding: 15px 30px;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.hero button:hover {
    background: #ff8780;
    transform: scale(1.05);
}

/* Products Section (Store Page) */
.products {
    padding: 60px 20px;
    text-align: center;
}
.products h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    padding: 0 20px;
}
.product {
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}
.product-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.product:hover .product-image {
    transform: scale(1.05);
}
.product h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}
.product p {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}
.product button {
    padding: 10px 20px;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.product button:hover {
    background: #ff8780;
    transform: scale(1.05);
}

/* About Section (About Page) */
.about {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.about h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 20px;
}
.about p {
    font-size: 18px;
    color: #f5f5f5;
    max-width: 700px;
    margin: 0 auto 20px;
}

/* Cart Section (Cart Page) */
.cart {
    padding: 60px 20px;
    text-align: center;
}
.cart h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
}
.cart-items {
    max-width: 800px;
    margin: 0 auto 30px;
    background: #fff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
}
.cart-item:last-child {
    border-bottom: none;
}
.cart-item h3 {
    font-size: 20px;
    color: #333;
}
.cart-item p {
    font-size: 18px;
    color: #666;
}
.cart-item button {
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s ease;
}
.cart-item button:hover {
    background: #c0392b;
}
.cart-total {
    margin-top: 30px;
}
.cart-total p {
    font-size: 22px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 20px;
}
.cart-total button {
    padding: 15px 30px;
    background: #ff6f61;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.cart-total button:hover {
    background: #ff8780;
    transform: scale(1.05);
}
.cart-total button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Success Section (Success Page) */
.success {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    margin: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.success h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 20px;
}
.success p {
    font-size: 18px;
    color: #f5f5f5;
    margin-bottom: 30px;
}
.success .btn {
    display: inline-block;
    padding: 15px 30px;
    background: #ff6f61;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}
.success .btn:hover {
    background: #ff8780;
    transform: scale(1.05);
}

/* Login/Sign Up Section (Index Page) */
.login {
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
}
.login h2 {
    font-size: 36px;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}
.form-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.form-box {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.form-box h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}
.form-box form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-box input {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    transition: border 0.3s ease;
}
.form-box input:focus {
    border-color: #ff6f61;
}
.form-box button.auth-btn {
    padding: 15px;
    background: #2ecc71;
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.form-box button.auth-btn:hover {
    background: #27ae60;
    transform: scale(1.05);
}

/* Show Password Checkbox */
.show-password {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

/* Forgot Password Link */
.forgot-password {
    margin-top: 15px;
    font-size: 14px;
}
.forgot-password a {
    color: #ff6f61;
    text-decoration: underline;
    transition: color 0.3s ease;
}
.forgot-password a:hover {
    color: #ff8780;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    color: #f5f5f5;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .logo {
        font-size: 22px;
    }
    nav a {
        margin: 0 10px;
        font-size: 14px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 16px;
    }
    .products h2, .cart h2, .login h2 {
        font-size: 28px;
    }
    .product {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .form-container {
        gap: 20px;
    }
    .form-box {
        max-width: 100%;
    }
}