html, body { width: 100%; max-width: 100vw; overflow-x: hidden !important; margin: 0; padding: 0; }
section { overflow-x: hidden; width: 100%; }
.row { margin-right: 0; margin-left: 0; }

/* ========================================== */
/* === HEADER ICONS & STYLES === */
/* ========================================== */
.user-dropdown.active .dropdown-content { display: block; animation: fadeIn 0.2s ease-out; }
.notification-wrapper { position: relative; margin-left: 0; display: inline-block; }

.notif-dropdown { display: none; position: absolute; right: -50px; top: 160%; width: 300px; background: white; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15); border: 1px solid #eee; z-index: 1100; overflow: hidden; transform-origin: top right; animation: fadeIn 0.2s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
.notif-dropdown.active { display: block; }
.notif-header { padding: 15px; border-bottom: 1px solid #f0f0f0; display: flex; justify-content: space-between; align-items: center; font-weight: 800; background: #fafafa; font-size: 0.95rem; color: var(--primary); }
.small-btn { border: none; background: none; font-size: 0.8rem; cursor: pointer; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.5px; }
.small-btn:hover { color: var(--accent-hover); }

.notif-list { max-height: 350px; overflow-y: auto; list-style: none; margin: 0; padding: 0; }

.notif-item { padding: 15px 35px 15px 15px; border-bottom: 1px solid #f9f9f9; font-size: 0.9rem; transition: 0.2s; cursor: pointer; display: flex; flex-direction: column; gap: 5px; position: relative; }
.notif-item:hover { background: #fdfbf7; }
.notif-item.unread { background: #fff8f0; border-left: 4px solid var(--accent); }
.btn-notif-close { position: absolute; top: 10px; right: 10px; background: none; border: none; color: #aaa; font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0; transition: color 0.2s; }
.btn-notif-close:hover { color: #ff4d4d; }
.notif-msg { color: #444; line-height: 1.4; }
.notif-time { font-size: 0.75rem; color: #999; font-weight: 600; }
.no-notif { padding: 30px; text-align: center; color: #999; font-style: italic; }

/* Icons Styling */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.header-icon-btn { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.1rem; cursor: pointer; transition: all 0.3s ease; position: relative; }
.header-icon-btn:hover { background: rgba(255, 255, 255, 0.2); color: var(--accent); transform: translateY(-2px); }
.navbar.scrolled .header-icon-btn, .navbar.subpage .header-icon-btn { background: #f8f8f8; border-color: #eee; color: var(--primary); }
.navbar.scrolled .header-icon-btn:hover, .navbar.subpage .header-icon-btn:hover { background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); color: var(--accent); }
.notif-badge { position: absolute; top: -2px; right: -2px; background: var(--brand-red); color: white; font-size: 0.65rem; font-weight: bold; padding: 2px 5px; border-radius: 50%; min-width: 18px; text-align: center; border: 2px solid rgba(255,255,255,0.2); }
.navbar.scrolled .notif-badge, .navbar.subpage .notif-badge { border-color: #fff; }

/* Profile Pill */
.profile-pill { display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, 0.1); padding: 4px 15px 4px 4px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.2); cursor: pointer; transition: all 0.3s ease; }
.profile-pill:hover { background: rgba(255, 255, 255, 0.2); }
.navbar.scrolled .profile-pill, .navbar.subpage .profile-pill { background: #f8f8f8; border-color: #eee; }
.navbar.scrolled .profile-pill:hover, .navbar.subpage .profile-pill:hover { background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.profile-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.profile-name { font-weight: 700; font-size: 0.9rem; color: white; padding-right: 5px; }
.navbar.scrolled .profile-name, .navbar.subpage .profile-name { color: var(--primary); }

/* === ANIMATIONS & CARD === */
@keyframes heartPump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes popBtn { 0% { transform: scale(1); } 50% { transform: scale(0.9); } 100% { transform: scale(1); } }
.btn-heart.animating i { animation: heartPump 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-heart.active i { color: #ff4d4d; font-weight: 900; }
.btn-cart.animating { animation: popBtn 0.3s ease; }

/* UPDATED: Wave Wrapper for Artist Section */
.wave-wrapper { 
    display: flex; align-items: center; justify-content: center; 
    height: 600px; margin-bottom: 30px; width: 100%; 
    overflow-x: hidden;
    padding: 20px 0;
    position: relative; 
}

/* Ensure section doesn't cause horizontal scroll */
#artists { overflow: visible; } 

:root { --accent-orange: #f36c21; --transition: cubic-bezier(0.1, 0.7, 0, 1); }

#collection { overflow: visible; } 

:root { --accent-orange: #f36c21; --transition: cubic-bezier(0.1, 0.7, 0, 1); }

/* === NEW MARQUEE STYLES (UPDATED FOR JS CONTROL) === */
.marquee-wrapper {
    overflow: hidden;
    width: 100%;
    padding: 20px 0 60px 0;
    position: relative;
    /* Updated mask for smoother fade edges */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    cursor: grab; /* Indicates draggable */
}
.marquee-wrapper:active { cursor: grabbing; }

.marquee-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    padding: 20px 50px; /* Extra padding for side visibility */
    scrollbar-width: none;
}
.marquee-track::-webkit-scrollbar { display: none; }

/* CARD STYLES */
.art-card-new { 
    background: transparent; 
    border: none; 
    box-shadow: none; 
    transition: transform 0.3s ease; 
    flex: 0 0 300px; /* Fixed width for scroll items */
    width: 300px;
    /* Prevent image drag interfering with scroll drag */
    user-select: none;
    -webkit-user-drag: none;
}
.art-card-new img { pointer-events: none; } /* Disable default image drag */

.art-card-new:hover { transform: translateY(-5px); }
.art-img-wrapper-new { position: relative; width: 100%; aspect-ratio: 4/5; overflow: hidden; background: #f4f4f4; margin-bottom: 15px; border-radius: 4px; }
.art-link-wrapper { position: relative; width: 100%; height: 100%; display: block; overflow: hidden; }
.art-img-wrapper-new img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.art-card-new:hover .art-img-wrapper-new img { transform: scale(1.05); }
.explore-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.4s ease; z-index: 3; }
.art-card-new:hover .explore-overlay { opacity: 1; }
.explore-icon { width: 60px; height: 60px; border: 2px solid rgba(255, 255, 255, 0.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.9); font-size: 24px; animation: pulseRing 2s ease-in-out infinite; margin-bottom: 15px; position: relative; z-index: 5; overflow: hidden; }
.explore-icon::before { content: ''; position: absolute; width: 100%; height: 100%; border-radius: 50%; backdrop-filter: blur(8px); top: 0; left: 0; z-index: -1; pointer-events: none; }
.explore-text { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
@keyframes pulseRing { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); } 50% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); } }
.badge-new { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; color: #fff; z-index: 2; }
.available { background: rgba(39, 174, 96, 0.9); }
.reserved { background: rgba(243, 156, 18, 0.9); }
.sold { background: rgba(192, 57, 43, 0.9); }
.art-content-new { text-align: left; padding: 0; }
.art-title-new { font-size: 1.1rem; font-weight: 800; color: var(--accent-orange); text-transform: uppercase; margin-bottom: 4px; line-height: 1.2; }
.art-meta-new { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-size: 0.9rem; }
.artist-name-new { color: #333; font-style: italic; font-weight: 600; }
.art-year-new { color: #999; }
.art-footer-new { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #eee; padding-top: 10px; }
.price-new { font-family: var(--font-main); font-weight: 600; color: #666; font-size: 1.1rem; }
.action-btns-new { display: flex; gap: 8px; }
.btn-circle { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--accent-orange); background: transparent; color: var(--accent-orange); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; font-size: 0.85rem; }
.btn-circle:hover { background: var(--accent-orange); color: #fff; }
.btn-circle.disabled { border-color: #ccc; color: #ccc; cursor: not-allowed; }
.btn-circle.disabled:hover { background: transparent; color: #ccc; }

/* Modal Fixes */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.3s; z-index: 2000; padding: 20px; }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal-card { background: #fff; padding: 30px; border-radius: 12px; width: 550px; max-width: 100%; max-height: 90vh; overflow-y: auto; position: relative; transform: translateY(20px); transition: 0.3s; box-shadow: 0 15px 50px rgba(0,0,0,0.4); display: flex; flex-direction: column; }
.modal-overlay.active .modal-card { transform: translateY(0); }
.modal-card::-webkit-scrollbar { width: 6px; }
.modal-card::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }
.modal-card::-webkit-scrollbar-track { background: #f9f9f9; }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.8rem; cursor: pointer; color: #999; transition: 0.2s; z-index: 10; }
.modal-close:hover { color: #333; transform: rotate(90deg); }
.btn-full { width: 100%; background: var(--primary); color: var(--white); padding: 16px; border-radius: 10px; border: none; font-weight: 800; cursor: pointer; font-size: 1.1rem; transition: 0.3s; }
.modal-footer-link { text-align: center; margin-top: 15px; font-size: 0.95rem; }
.modal-footer-link a { color: var(--accent); font-weight: 700; }

.testimonial-box { background: #f9f9f9; border-radius: 12px; padding: 40px; border: 1px solid #e0e0e0; height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* Small Auth Modal */
.modal-card.small { width: 420px; max-width: 95%; padding: 45px 35px; align-items: center; text-align: center; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); }
.modal-header-icon { font-size: 3rem; color: var(--accent-orange); margin-bottom: 20px; background: rgba(243, 108, 33, 0.1); width: 80px; height: 80px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.modal-card.small h3 { font-family: var(--font-head); font-size: 1.8rem; margin-bottom: 10px; color: var(--primary); }
.modal-card.small p { color: #666; margin-bottom: 30px; font-size: 0.95rem; }
.friendly-input-group { position: relative; margin-bottom: 20px; text-align: left; }
.friendly-input-group i { position: absolute; top: 50%; left: 20px; transform: translateY(-50%); color: #bbb; font-size: 1.1rem; pointer-events: none; transition: 0.3s; }
.friendly-input-group input { width: 100%; padding: 14px 14px 14px 55px; border-radius: 50px; background: #f8f9fa; border: 1px solid #e9ecef; font-size: 0.95rem; transition: all 0.3s ease; outline: none; }
.friendly-input-group input:focus { background: #fff; border-color: var(--accent-orange); box-shadow: 0 4px 15px rgba(243, 108, 33, 0.15); }
.friendly-input-group input:focus + i { color: var(--accent-orange); }
.btn-friendly { width: 100%; padding: 15px; border-radius: 50px; border: none; background: linear-gradient(135deg, var(--accent-orange), #ff8c42); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; transition: 0.3s; margin-top: 10px; box-shadow: 0 4px 15px rgba(243, 108, 33, 0.3); }
.btn-friendly:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(243, 108, 33, 0.4); }
.alert-error { background: #ffe6e6; color: #d63031; padding: 12px; border-radius: 12px; font-size: 0.9rem; margin-bottom: 20px; border: 1px solid #fab1a0; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.9rem; color: #555; }
.form-group input:not(.friendly-input-group input), .form-group textarea { width: 100%; padding: 12px 15px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; }
.forgot-pass-link { text-decoration: none; color: #888; font-size: 0.85rem; font-weight: 600; transition: color 0.3s ease; }
.forgot-pass-link:hover { color: var(--accent-orange); }
.star-rating { display: flex; flex-direction: row-reverse; justify-content: center; gap: 5px; margin-bottom: 20px; }
.star-rating input { display: none; }
.star-rating label { font-size: 2rem; color: #ddd; cursor: pointer; transition: color 0.2s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f39c12; }

/* === BURGER MENU & RESPONSIVE === */
.mobile-menu-icon { display: none; font-size: 1.6rem; cursor: pointer; color: var(--white); margin-left: 15px; }
.navbar.scrolled .mobile-menu-icon { color: var(--primary); }

/* === NEWSFEED CARD STYLE (UPDATED WITH IMAGE SUPPORT) === */
.news-card-home {
    background: #fff;
    padding: 0; /* Remove padding for image to touch edges */
    border-radius: 12px;
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Contain the image */
}
.news-card-home:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.news-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f4f4f4;
    position: relative;
}
.news-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.news-card-home:hover .news-img-container img {
    transform: scale(1.1);
}
.news-content-wrapper {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.news-date {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.news-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 15px;
    line-height: 1.3;
}
.news-preview {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

@media (max-width: 768px) {
    .navbar { background: var(--white); padding: 12px 0; border-bottom: 1px solid #eee; }
    .nav-container { padding: 0 15px; position: relative; justify-content: space-between; }
    
    .logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
    .logo-main { font-size: 1.4rem !important; transform: rotate(0deg) !important; margin: 2px 0 !important; }
    .logo-top { font-size: 0.7rem; }
    .logo-bottom { font-size: 0.6rem; }
    .logo-text { color: var(--primary); } 
    .logo-top, .logo-bottom { color: var(--primary); }
    
    .navbar.scrolled .logo { flex-direction: column; align-items: center; gap: 0; }
    .navbar.scrolled .logo-main { font-size: 1.4rem; transform: rotate(0deg); padding: 0; }
    .navbar.scrolled .logo-top { font-size: 0.7rem; }
    .navbar.scrolled .logo-bottom { font-size: 0.6rem; }

    .nav-links { 
        display: none; 
        position: absolute; 
        top: 100%; left: 0; width: 100%; 
        background: white; 
        flex-direction: column; 
        gap: 0; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 0;
        animation: fadeIn 0.3s ease;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; border-bottom: 1px solid #f5f5f5; }
    .nav-links a { display: block; padding: 15px 20px; color: var(--primary); text-align: center; }
    
    .nav-actions { gap: 8px; align-items: center; }
    .header-icon-btn { background: #f8f8f8; border-color: #eee; color: var(--primary); width: 35px; height: 35px; font-size: 1rem; }
    .notif-badge { border-color: #fff; }

    .profile-pill { 
        padding: 0; border: none; background: transparent; 
        width: 35px; height: 35px; 
        justify-content: center; 
    }
    .profile-pill:hover { background: transparent; }
    .profile-name, .profile-pill .fa-chevron-down { display: none; } 
    .profile-img { 
        width: 35px; height: 35px; 
        border: 2px solid var(--accent-orange); 
    }

    .mobile-menu-icon { display: block; color: var(--primary); }

    .hero { height: auto; min-height: 100vh; }
    .row { display: flex; flex-wrap: wrap; }
    .col-6 { width: 100%; max-width: 100%; padding: 0; margin-bottom: 30px; }
    .image-stack { height: 300px; }
    .img-back { height: 300px; }
    .img-front { height: 200px; bottom: 0; right: 0; }
    
    .events-wrapper { flex-direction: column; }
    .events-image { width: 100%; margin-top: 40px; }
    
    .grid-3 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-about p { margin: 0 auto 20px auto; }
    .footer-logo { justify-content: center; margin-bottom: 15px; }
    .socials { justify-content: center; display: flex; }
    .footer-links h4, .footer-contact h4 { margin-bottom: 15px; }
    .footer-contact p { justify-content: center; }
    
    .modal-card { width: 95%; padding: 30px; }
    .modal-card h3 { font-size: 1.5rem; }
}

/* ========================================== */
/* === DARK MODE OVERRIDES (MOBILE SAFE) === */
/* ========================================== */

/* 1. Desktop Scrolled State */
[data-theme="dark"] .navbar.scrolled .header-icon-btn,
[data-theme="dark"] .navbar.subpage .header-icon-btn,
[data-theme="dark"] .navbar.scrolled .profile-pill,
[data-theme="dark"] .navbar.subpage .profile-pill {
    background: #2a2a2a !important;
    border-color: #444 !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .navbar.scrolled .header-icon-btn:hover,
[data-theme="dark"] .navbar.subpage .header-icon-btn:hover,
[data-theme="dark"] .navbar.scrolled .profile-pill:hover,
[data-theme="dark"] .navbar.subpage .profile-pill:hover {
    background: #333 !important;
}

[data-theme="dark"] .navbar.scrolled .mobile-menu-icon,
[data-theme="dark"] .navbar.subpage .mobile-menu-icon {
    color: var(--primary) !important;
}

/* 2. Mobile Default State (Unscrolled & Scrolled) */
@media (max-width: 768px) {
    [data-theme="dark"] .header-icon-btn,
    [data-theme="dark"] .profile-pill {
        background: #2a2a2a !important;
        border-color: #444 !important;
        color: var(--primary) !important;
    }
    
    [data-theme="dark"] .header-icon-btn:hover,
    [data-theme="dark"] .profile-pill:hover {
        background: #333 !important;
    }
    
    [data-theme="dark"] .mobile-menu-icon {
        color: var(--primary) !important;
    }
}