﻿
/* General Body & Typography Styles */
:root {
    --primary-color: #4f46e5;
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f8f9fa;
    --white: #ffffff;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--light-gray);
    color: #333;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
}

/* Header & Navigation */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-radius: 5px;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
}

.nav-links {
    display: none; /* Hidden on mobile */
    align-items: center;
}

    .nav-links a {
        padding: 0.5rem 1rem;
        margin: 0 0.5rem;
        position: relative;
        transition: color 0.3s ease;
    }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: -4px;
            left: 50%;
            transform: translateX(-50%);
            background-color: var(--primary-color);
            transition: width 0.3s ease;
        }

        .nav-links a:hover::after, .nav-links a.active::after {
            width: 80%;
        }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hamburger-menu {
    display: block; /* Shown on mobile */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

    .primary-btn:hover {
        background-color: #4338ca;
    }

.cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-gray);
    justify-self: center;
}
.add-cart-btn {
    position: relative;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: #4f46e5;
    justify-self: center;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #ef4444;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: transform 0.2s ease-in-out;
}

    .cart-badge.visible {
        transform: scale(1);
    }


/* Mobile Navigation (Initially hidden) */
.mobile-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

    .mobile-nav.open {
        display: flex;
    }

    .mobile-nav a {
        text-align: center;
        padding: 1rem;
        border-bottom: 1px solid #eee;
    }

        .mobile-nav a:last-child {
            border-bottom: none;
        }

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    background: url('https://placehold.co/1600x900/a3b18a/344e41?text=Timeless+Art') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

    .hero-content h1 {
        font-family: var(--font-display);
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 1.1rem;
        max-width: 600px;
        margin: 0 auto 2rem;
    }

    .hero-content .cta-btn {
        background-color: var(--white);
        color: var(--primary-color);
        padding: 0.8rem 2rem;
        border-radius: 8px;
        font-weight: 700;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    }

        .hero-content .cta-btn:hover {
            background-color: #f0f0f0;
            transform: translateY(-2px);
        }

/* Gallery Section */
.gallery-section {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

    .section-header h2 {
        font-family: var(--font-display);
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        color: var(--dark-gray);
    }

    .section-header p {
        max-width: 600px;
        margin: 0 auto;
        color: var(--medium-gray);
    }

.painting-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.gallery-card {
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .gallery-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    }

.card-image {
    position: relative;
}

    .card-image img {
        width: 100%;
        height: 210px;
        object-fit: cover;
        display: block;
    }

.card-price {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.9rem;
    font-weight: bold;
    padding: 0.3rem 0.6rem;
    border-radius: 999px;
}

.card-content {
    padding: 1.5rem;
}

    .card-content h3 {
        font-family: var(--font-display);
        font-size: 1.5rem;
        color: var(--dark-gray);
        margin-bottom: 0.5rem;
        text-overflow: ellipsis;
        white-space: nowrap;
        width: 100%;
        overflow: hidden;
    }

    .card-content p {
        color: var(--medium-gray);
        margin-bottom: 1rem;
    }

    .card-content .add-to-cart-btn {
        width: 47%;
        /* background-color: var(--primary-color); */
        background-color: #ffffff;
        /* color: var(--white); */
        font-weight: 600;
        padding: 0.45rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        border: #acacac 1px solid;
        font-size: 1.3rem;
        color: #3e34ff;
    }

        .card-content .add-to-cart-btn:hover {
            background-color: #eceaff;
        }

        .card-content .add-to-cart-btn:disabled {
            background-color: #444444;
            cursor: not-allowed;
        }

    .card-content .add-to-wishlist-btn {
        width: 47%;
        /* background-color: var(--primary-color); */
        background-color: #ffffff;
        /* color: var(--white); */
        font-weight: 600;
        padding: 0.45rem;
        border: none;
        border-radius: 8px;
        cursor: pointer;
        transition: background-color 0.3s ease;
        border: #acacac 1px solid;
        font-size: 1.3rem;
        color: red;
    }

        .card-content .add-to-wishlist-btn:hover {
            background-color: #ffeaea;
        }

        .card-content .add-to-wishlist-btn:disabled {
            background-color: #444444;
            cursor: not-allowed;
        }
    
    .card-content a {
        color: var(--medium-gray);
        margin-bottom: 1rem;
    }
        .card-content a:hover {
            color: #4338ca;
            text-decoration: underline;
        }

/* Footer */
.main-footer {
    background-color: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    margin-bottom: 2rem;
}

.footer-col h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #d1d5db;
    transition: color 0.3s;
}

    .footer-col a:hover {
        color: var(--primary-color);
    }

.social-links a {
    font-size: 1.5rem;
    margin: 0 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Modal & Cart Panel Styles */
.overlay-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

    .overlay-backdrop.visible {
        opacity: 1;
        pointer-events: auto;
    }

.modal-content {
    position: fixed;
    z-index: 2000;
    background-color: var(--white);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    width: 90%;
    max-width: 450px;
    padding: 2rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

    .modal-content.visible {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

.modal-header {
    display: flex;
    justify-content: flex-end;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--medium-gray);
}

.modal-tabs {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

    .modal-tabs button {
        flex: 1;
        padding: 0.75rem;
        font-size: 1.1rem;
        font-weight: 600;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--medium-gray);
        border-bottom: 3px solid transparent;
        transition: color 0.3s, border-color 0.3s;
    }

        .modal-tabs button.active {
            color: var(--primary-color);
            border-bottom-color: var(--primary-color);
        }

.form-group {
    margin-bottom: 1rem;
}

    .form-group label {
        display: block;
        font-weight: 600;
        margin-bottom: 0.5rem;
    }

    .form-group input {
        width: 100%;
        padding: 0.8rem 1rem;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 1rem;
    }

        .form-group input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
        }

.modal-content form .primary-btn {
    width: 100%;
    padding: 0.9rem;
    margin-top: 1rem;
    font-size: 1rem;
}

/* Cart Panel */
.cart-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--white);
    z-index: 2000;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
}

    .cart-panel.visible {
        transform: translateX(0);
        pointer-events: auto;
    }

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cart-header h2 {
        font-size: 1.5rem;
        font-family: var(--font-display);
    }

.close-cart-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--medium-gray);
}

.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .cart-item img {
        width: 80px;
        height: 80px;
        object-fit: cover;
        border-radius: 8px;
    }

.cart-item-details {
    flex-grow: 1;
}

    .cart-item-details h4 {
        font-size: 1.1rem;
        font-weight: 600;
    }

    .cart-item-details p {
        color: var(--medium-gray);
        font-size: 0.9rem;
    }

.remove-from-cart-btn {
    background: none;
    border: none;
    color: #ef4444;
    font-size: 1.2rem;
}

.cart-empty-message {
    text-align: center;
    color: var(--medium-gray);
    padding-top: 4rem;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 90%;
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #22c55e;
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    z-index: 3000;
    transform: translateY(150%);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

    .toast-notification.show {
        transform: translateY(0);
        opacity: 1;
    }

/* Responsive Media Queries */
@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }

    .hamburger-menu {
        display: none;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }

    .painting-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-content h1 {
        font-size: 4.5rem;
    }

    .painting-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.ErrorMessage{
    padding: 5px;
    font-style: italic;
    color: red;
    font-size: 9pt;
}
.error-message {
    color: #ef4444; /* Red for errors */
    background-color: #fef2f2; /* Light red background */
    border: 1px solid #fca5a5; /* Red border */
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    display: none; /* Hidden by default */
}
.csUserSetting {
    display: flex;
    align-items: center;
}
.csUserAccount {
    display: inline-block;
    vertical-align: top;
}

.csUserAccount::before {
    color: var(--gstrUserAcc);
    font-size: 23pt;
    margin-left: 7px;
    margin-top: 4px;
}
.dvUserName {
    display: inline-block;
    vertical-align: top;
    color: var(--gstrWSColor);
    font-size: 15px;
    font-weight: 400;
    padding: 5px;
    margin-top: 4px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.Customermenu {
    position: absolute;
    list-style: none;
    top: 46px;
    right: 12px;
    background: white;
    box-shadow: 0 0px 4px 0 rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    padding: 5px;
    z-index: 1;
    min-width: 110px;
}

.Customermenu span {
    font-size: 9pt;
    padding: 2px;
    display: block;
}

.Customermenu span:hover {
    border-left: 2px solid #d9d9d9;
    border-radius: 5px;
    background-color: gray;
    box-shadow: 3px 3px 3px 0px #f1f1f1;
}
.SearchTxtBox{
    padding: 1px 21px 1px 8px;
    display: inline-block;
    height: 30px;
    font-weight: 400;
}
.searchPortalLabel:before {
    font-size: 20px;
}
.searchPortalLabel {
    position: relative;
    right: 10%
}
.txtSearchPortal {
    padding-right: 33px;
    width: 278px;
    border: 1px solid #7c7c7d;
    border-radius: 6px;
}
.searchPortalLabel:before {
    font-size: 20px;
}

.LoadingDiv{
    max-width: 85%;
    width: 100%;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.nav {
    list-style: none;
    display: flex;
    gap: 5px;
}
.nav li {
    position: relative;
}
.nav a {
    text-decoration: none;
    padding: 8p 12px;
    display: block;
}
.submenu {
    border-radius: 3px;
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    list-style: none;
    background: white;
    padding: 3px 0;
    min-width: 150px;
    box-shadow: 0px 0px 5px gray;
    z-index: 1;
}
.submenu li a {
    padding: 6px 12px;
    white-space: nowrap;
}
.menu-item:hover > .submenu {
    display: block;
}
.sub-menu-item:hover > .submenu {
    display: block;
}
.menu-item:hover > .more-submenu {
    display: block;
}
.sub-menu-item:hover > .more-submenu {
    display: block;
}
li:hover {
    background-color: rgb(235, 234, 234);
}
.more-submenu {
    border-radius: 3px;
    display: none;
    position: absolute;
    top: -3px;
    left: 100.5%;
    list-style: none;
    background: white;
    padding: 3px 0;
    min-width: 150px;
    box-shadow: 0px 0px 5px gray;
    z-index: 111;
}
.profile-menu:hover > .profile-submenu {
    display: block;
}
.profile-submenu {
    border-radius: 3px;
    display: none;
    position: absolute;
    top: 70%;
    right: -20px;
    list-style: none;
    background: white;
    padding: 3px 0;
    min-width: 130px;
    box-shadow: 0px 0px 5px gray;
    z-index: 1;
    font-size: 0.8rem;
}
.profile-submenu span {
    padding: 3px 10px;
    width: 85%;
    display: block;
}
.profile-submenu span:hover {
    background-color: rgb(235, 234, 234);
}

.login-seller-link {
    display: block; /* Make it a block element for spacing */
    text-align: center; /* Align to the right */
    margin-top: 5px; /* Adjust to place it closer to the input */
    font-size: 0.9rem;
    color: #ff0000; /* Indigo color for the link */ 
    text-decoration: none; /* No underline by default */
    transition: color 0.2s ease;
}

    .login-seller-link:hover {
        color: #818181; /* Darker indigo on hover */
        text-decoration: underline; /* Underline on hover */
    }


.Logo{
    height: 25px;
    width: 25px;
    margin-top: 4px;
    border-radius: 50%;
    /* object-fit: cover; */
}