* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #FFC93C;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --success-color: #27AE60;
    --danger-color: #E74C3C;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-color);
    background-color: #F5F5F5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Featured Products */
.featured-products, .products-section, .cart-section {
    padding: 3rem 0;
}

.featured-products h2, .products-section h1, .cart-section h1 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-card h3 {
    padding: 1rem;
    font-size: 1.1rem;
}

.product-card .price {
    padding: 0 1rem;
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: bold;
}

.product-card .rating {
    padding: 0.5rem 1rem;
    color: #F39C12;
    font-size: 0.9rem;
}

.product-card .category {
    padding: 0 1rem;
    color: #7F8C8D;
    font-size: 0.85rem;
}

.product-card .btn {
    display: block;
    margin: 1rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #FF5A8F;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-secondary:hover {
    background-color: #FFB81C;
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background-color: #C0392B;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-disabled {
    background-color: #BDC3C7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Forms */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 0;
}

.auth-container {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.auth-container h1 {
    margin-bottom: 2rem;
    text-align: center;
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-container label {
    font-weight: bold;
    color: var(--dark-color);
}

.auth-container input {
    padding: 0.75rem;
    border: 1px solid #BDC3C7;
    border-radius: 5px;
    font-size: 1rem;
}

.auth-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 157, 0.3);
}

.auth-container button {
    margin-top: 1rem;
}

.auth-container p {
    text-align: center;
    margin-top: 1rem;
}

.auth-container a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Product Detail */
.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
}

.product-image img {
    width: 100%;
    border-radius: 8px;
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-info h1 {
    font-size: 2rem;
}

.product-info .stock {
    font-weight: bold;
}

.in-stock {
    color: var(--success-color);
}

.out-of-stock {
    color: var(--danger-color);
}

/* Cart */
.cart-table, .orders-table, .review-table, .details-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.cart-table th, .orders-table th, .review-table th, .details-table th {
    background-color: var(--dark-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: bold;
}

.cart-table td, .orders-table td, .review-table td, .details-table td {
    padding: 1rem;
    border-bottom: 1px solid #ECF0F1;
}

.cart-table tr:hover, .orders-table tr:hover {
    background-color: #F9F9F9;
}

.cart-summary {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin: 2rem 0;
}

.cart-summary p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.status-pending {
    background-color: #F39C12;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-processing {
    background-color: #3498DB;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-shipped {
    background-color: #9B59B6;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-delivered {
    background-color: var(--success-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.status-cancelled {
    background-color: var(--danger-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Checkout */
.checkout-section {
    padding: 2rem 0;
}

.checkout-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.order-review {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.payment-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.payment-form label {
    font-weight: bold;
}

.payment-form input {
    padding: 0.75rem;
    border: 1px solid #BDC3C7;
    border-radius: 5px;
    font-size: 1rem;
}

.payment-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Confirmation */
.confirmation-section {
    padding: 3rem 0;
}

.confirmation-box {
    background: white;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.confirmation-box h1 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.order-info {
    background: #ECF0F1;
    padding: 1.5rem;
    border-radius: 5px;
    margin: 1.5rem 0;
    text-align: left;
}

/* Search Bar */
.search-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar form {
    display: flex;
    gap: 1rem;
}

.search-bar input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #BDC3C7;
    border-radius: 5px;
    font-size: 1rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background-color: #D5F4E6;
    color: #27AE60;
    border: 1px solid #27AE60;
}

.alert-danger {
    background-color: #FADBD8;
    color: #E74C3C;
    border: 1px solid #E74C3C;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }
}

.no-products {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 8px;
}

/* Profile Section */
.profile-section {
    padding: 3rem 0;
}

.profile-container {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.profile-form label {
    font-weight: bold;
    color: var(--dark-color);
    margin-top: 0.5rem;
}

.profile-form input,
.profile-form textarea {
    padding: 0.75rem;
    border: 1px solid #BDC3C7;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.profile-form input:disabled {
    background-color: #ECF0F1;
    cursor: not-allowed;
}

.profile-form input:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(255, 107, 157, 0.3);
}
