/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Account Page Styles */
.account-page {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 1rem;
}

/* Order Page Styles */
.order-page {
    max-width: 1200px;
    margin: 6rem auto 2rem;
    padding: 0 1rem;
}

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

.order-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-header h3 {
    font-size: 1.25rem;
    color: #333;
}

.order-date {
    color: #666;
}

.order-items {
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.order-item .item-details {
    flex: 1;
}

.order-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.order-summary {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.summary-row.total {
    font-weight: bold;
    margin-top: 1rem;
}

.empty-orders {
    text-align: center;
    padding: 3rem 0;
}

.empty-orders p {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #666;
}

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

.account-header {
    margin-bottom: 2rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.user-details h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.btn-edit {
    background: #4a6fa5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.btn-edit:hover {
    background: #3a5a8a;
}

.edit-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1.5rem;
}

.edit-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: #4a6fa5;
    box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

/* Navigation */
.navbar {
    background: #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.logo {
    font-family: serif;
    font-size: 1.5rem;
    color: #333;
}

.nav-right {
    display: flex;
    gap: 1.5rem;
}

.nav-icon {
    text-decoration: none;
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    height: 600px;
    background-image: url('https://images.unsplash.com/photo-1464699908537-0954e50791ee?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: 64px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
    color: white;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-family: serif;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-button {
    background: white;
    color: #333;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background: #f0f0f0;
}

/* Categories Section */
.categories {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.categories h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.category-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    margin: 0;
    text-align: center;
}

/* Featured Products Section */
.featured-products {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

.featured-products h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.product-info {
    padding: 1.5rem;
}

.product-info h3 {
    margin-bottom: 0.5rem;
}

.price {
    color: #666;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.add-to-cart {
    width: 100%;
    padding: 0.75rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background: #4338CA;
}

/* Footer */
.footer {
    background: #eee;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: #111;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #666;
    text-decoration: none;
}

.footer-section a:hover {
    color: #333;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: #4338CA;
}

/* Side Navigation */
.sidenav {
    position: fixed;
    top: 0;
    left: -300px;
    height: 100vh;
    width: 300px;
    background: white;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: left 0.3s ease;
}

.sidenav.active {
    left: 0;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.sidenav-content {
    padding: 2rem;
}

.sidenav-content h2 {
    margin: 1.5rem 0 1rem;
    color: #333;
    font-size: 1.25rem;
}

.sidenav-content ul {
    list-style: none;
}

.sidenav-content ul li {
    margin: 0.5rem 0;
}

.sidenav-content ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s;
}

.sidenav-content ul li a:hover {
    color: #4F46E5;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 5rem;
    z-index: 1002;
}

.search-overlay.active {
    display: flex;
}

.search-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-search {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.search-box {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.search-box input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.search-btn {
    padding: 0.75rem 1.5rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quick-links {
    margin-top: 2rem;
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.quick-links-grid a {
    color: #666;
    text-decoration: none;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s;
}

.quick-links-grid a:hover {
    background: #f5f5f5;
    color: #4F46E5;
}

/* Cart Icon Badge */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #4F46E5;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

/* Cart Page */
.cart-page {
    margin-top: 80px;
    padding: 2rem;
}

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

.cart-items {
    margin: 2rem 0;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: lightgray;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.item-details {
    flex: 1;
    padding: 0 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quantity-controls button {
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
}

.quantity-controls input {
    width: 50px;
    padding: 0.25rem;
    text-align: center;
    border: 1px solid #ddd;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
}

.cart-summary {
    background: #eee;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.summary-row.total {
    font-weight: bold;
    font-size: 1.25rem;
    border-top: 1px solid #ddd;
    padding-top: 1rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: #4F46E5;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.125rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.checkout-btn:hover {
    background: #4338CA;
}

/* Account Page */
.account-page {
    margin-top: 80px;
    padding: 2rem;
}

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

.account-header {
    background: #eee;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.account-info {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.avatar {
    font-size: 3rem;
    background: #eee;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.account-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #eee;
    border-radius: 8px 8px 0 0;
}

.order-content {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.order-content img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.address-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.address-edit-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.address-edit-form h3 {
    margin-bottom: 1rem;
}

.address-edit-form .form-group {
    margin-bottom: 1rem;
}

.address-edit-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: white;
    color: #4F46E5;
    border: 1px solid #4F46E5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Watchlist Page */
.watchlist-page {
    margin-top: 80px;
    padding: 2rem;
}

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

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wishlist-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.remove-wishlist {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }

    .sidenav {
        width: 100%;
        left: -100%;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-bottom: 1rem;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .order-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
/* Password Reset Page Styles */
.card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1.5rem;
}

.card-header h3 {
    margin: 0;
    color: #343a40;
    font-weight: 600;
}

.card-body {
    padding: 2rem;
}

/* Add top margin to prevent navbar overlap */
.container .card.mt-5 {
    margin-top: 6rem !important; /* Increased top margin to prevent navbar overlap */
}


.account-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.account-section {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.order-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.order-header {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: #eee;
    border-radius: 8px 8px 0 0;
}

.order-content {
    padding: 1rem;
    display: flex;
    gap: 1rem;
}

.order-content img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.address-card {
    border: 1px solid #eee;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.address-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.address-edit-form {
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.address-edit-form h3 {
    margin-bottom: 1rem;
}

.address-edit-form .form-group {
    margin-bottom: 1rem;
}

.address-edit-form .form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: #4F46E5;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary {
    background: white;
    color: #4F46E5;
    border: 1px solid #4F46E5;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Watchlist Page */
.watchlist-page {
    margin-top: 80px;
    padding: 2rem;
}

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

.watchlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.wishlist-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.remove-wishlist {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0.75rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.125rem;
    }
    
    .category-grid,
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form button {
        width: 100%;
    }

    .sidenav {
        width: 100%;
        left: -100%;
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
    }
    
    .cart-item img {
        margin-bottom: 1rem;
    }
    
    .account-info {
        flex-direction: column;
        text-align: center;
    }
    
    .order-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

