/* Global Styles */
:root {
    --primary-color: #8d3b8d;
    --secondary-color: #4a7a4a;
    --background-color: #f5f5f5;
    --pink: #cd82a1;
    --header-height: 100px;
}



body {
    margin: 0;
    padding-top: var(--header-height);
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: #FFF;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

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

/* Header Styles */
header {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: #FFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    height: var(--header-height);
    width: 100%;
    padding: 0 50px;
    box-sizing: border-box;
    z-index: 100;
}

.navbar-left, .navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-container {
    background: linear-gradient(to right, var(--primary-color), var(--pink));
    border-radius: 75px;
    padding: 10px 20px;
    display: flex;
    align-items: center;
}

.logo-container img {
    height: 40px;
    width: auto;
    margin-right: 10px;
}

nav ul {
    display: flex;
    gap: 20px;
}

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

.cart-count {
    background-color: var(--secondary-color);
    color: white;
    position: absolute;
    top: -8px;
    right: -8px;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 50px;
    height: 70px;
    margin-right: 10px;
    margin-top: 5px;
    overflow: hidden;
    border-radius: 5px;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.cart-item-details h4 {
    margin: 0;
    font-size: 0.9rem;
}

.cart-item-details p {
    margin: 0;
    font-size: 0.8rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.quantity-btn {
    width: 20px;
    height: 20px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.quantity {
    margin: 0 8px;
    font-size: 0.8rem;
}

.remove-item {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
}

.cart-footer {
    margin-top: 10px;
    text-align: right;
}

.cart-total {
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.empty-cart {
    background-color: #f5f5f5;
    padding: 1rem 0;
    text-align: center;
}

.cart-message.show {
    opacity: 1;
    transform: translateY(0);
}

.cart-message {
    position: fixed;
    top: 110px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.cart-dropdown {
    color: #000;
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    width: 300px;
    background: #FFF;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 500;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../assets/background-collage.jpg');
    background-size: cover;
    background-position: center;
    height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFF;
    font-size: 30px;
}

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

/* Featured Paintings Section */
.featured-paintings {
    padding: 4rem 5%;
}

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

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

.product-card {
    background: #FFFFFF;
    padding: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card a {
    display: flex;
    flex-direction: column;
}

.product-card img {
    height: 200px;
    object-fit: cover;
    align-self: center;
}

.product-info {
    padding: 10px;
}

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

.price {
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0.5rem;
}

.view-more {
    text-align: right;
    margin-top: 2rem;
}

/* About Section */
.about {
    padding: 4rem 5%;
    background-color: #FFFFFF;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.about-item {
    margin-bottom: 2rem;
}

.about-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Footer */
footer {
    padding: 2rem 5%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin: 1rem 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Shop Page Styles */
.shop-container {
    padding: 2rem 5%;
}

.shop-container h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.shop-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.search-bar input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 250px;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    position: absolute;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    min-width: 150px;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f5f5f5;
}

/* Responsive adjustments for shop page */
@media (max-width: 768px) {
    .shop-controls {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .search-bar input {
        width: 100%;
    }
}

/* Loading spinner */
.loading {
    text-align: center;
    padding: 2rem;
}

.spinner {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.no-products {
    text-align: center;
    padding: 2rem;
    color: #666;
}

/* Product Detail Page Styles */
.product-container {
    padding: 2rem 5%;
}

.product-detail {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-image {
    flex: 1;
    max-width: 500px;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-info {
    flex: 1;
}

.product-info h1 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.product-category {
    color: #666;
    margin-bottom: 1rem;
}

.product-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.related-products {
    margin-top: 3rem;
}

.related-products h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Make product cards clickable in related products */
.related-products .product-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.related-products .product-card {
    position: relative;
}

.related-products .product-card .add-to-cart {
    margin-top: 0.5rem;
    width: 100%;
}

/* Responsive adjustments for product detail page */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
    }
    
    .product-image {
        max-width: 100%;
    }
}

/* Checkout Page Styles */
.checkout-container {
    padding: 2rem 5%;
}

.checkout-container h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.checkout-content {
    display: flex;
    gap: 2rem;
}

.checkout-form {
    flex: 2;
}

.checkout-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

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

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

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

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

.form-row .form-group {
    flex: 1;
}

.place-order-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.order-summary {
    flex: 1;
    background-color: #f9f9f9;
    padding: 1.5rem;
    border-radius: 5px;
    align-self: flex-start;
    position: sticky;
    top: 20px;
}

.order-summary h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.order-items {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 1.5rem;
}

.order-item {
    display: flex;
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.order-item-image {
    width: 60px;
    height: 60px;
    margin-right: 10px;
    overflow: hidden;
    border-radius: 5px;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.order-item-details h4 {
    margin: 0;
    font-size: 0.9rem;
}

.order-item-details p {
    margin: 0;
    font-size: 0.8rem;
    color: #666;
}

.order-item-total {
    font-weight: bold;
}

.order-totals {
    border-top: 2px solid #ddd;
    padding-top: 1rem;
}

.order-subtotal,
.order-shipping,
.order-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.order-total {
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #ddd;
}

/* Responsive adjustments for checkout page */
@media (max-width: 768px) {
    .checkout-content {
        flex-direction: column;
    }
    
    .order-summary {
        position: static;
        margin-top: 2rem;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* Dashboard Page Styles */
.dashboard-container {
    padding: 2rem 5%;
}

.dashboard-container h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.dashboard-content {
    display: flex;
    gap: 2rem;
}

/* Dashboard Sidebar */
.dashboard-sidebar {
    flex: 1;
    max-width: 300px;
    background-color: #f9f9f9;
    border-radius: 5px;
    padding: 1.5rem;
}

.user-profile {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
}

.user-profile h2 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.user-profile p {
    color: #666;
}

.dashboard-nav {
    list-style: none;
    padding: 0;
}

.dashboard-nav li {
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.dashboard-nav li i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.dashboard-nav li:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dashboard-nav li.active {
    background-color: var(--primary-color);
    color: white;
}

/* Dashboard Main Content */
.dashboard-main {
    flex: 3;
}

.dashboard-tab {
    display: none;
    background-color: #fff;
    border-radius: 5px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dashboard-tab.active {
    display: block;
}

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

.tab-header h2 {
    margin: 0;
    color: var(--text-color);
}

/* Personal Details Tab */
.detail-group {
    margin-bottom: 1.5rem;
}

.detail-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #666;
}

.detail-group p {
    margin: 0;
    line-height: 1.5;
}

/* Order History Tab */
.orders-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.order-card {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
}

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

.order-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.order-date {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.order-status span {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.status-delivered {
    background-color: #e6f7e6;
    color: #2e7d32;
}

.status-processing {
    background-color: #fff8e1;
    color: #ff8f00;
}

.order-items {
    padding: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    margin-right: 1rem;
    border-radius: 5px;
    overflow: hidden;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.order-item-details h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.order-item-details h4 a:hover {
    color: var(--primary-color);
}

.order-item-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.order-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.order-total {
    font-weight: bold;
}

/* Payment Methods Tab */
.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.payment-card-icon {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.payment-card-details {
    flex: 1;
}

.payment-card-details h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.payment-card-details p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

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

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.add-payment-form {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid #eee;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.add-payment-form h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Message styles */
.dashboard-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dashboard-message.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-content {
        flex-direction: column;
    }
    
    .dashboard-sidebar {
        max-width: 100%;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .order-header,
    .order-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .payment-card-actions {
        width: 100%;
        justify-content: flex-end;
        margin-top: 0.5rem;
    }
}