@import 'variables.css';
@import 'reset.css';

/* 
   🎨 PREMIUM STYLES - ANA ALEXANDRE ATELIER
   Estética: Minimalismo, Luxo, Foco na Obra.
*/

body {
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    font-family: var(--font-family-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-family-heading);
    color: var(--color-text-main);
    letter-spacing: -0.01em;
}

h2.section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xl);
    text-align: center;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--color-gold);
    margin: 20px auto 0;
}

/* Header & Nav */
#main-header {
    background: var(--color-bg-header);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 8px 0;
    transition: transform 0.3s ease-in-out;
}

#main-header.header-hidden {
    transform: translateY(-100%);
}

#main-header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--color-text-main);
    display: flex;
    align-items: baseline;
    gap: 8px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-family: var(--font-family-body);
    font-weight: 300;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Nav Links & Actions */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-main);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-gold);
}

.nav-cart-btn {
    position: relative;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    padding: 8px;
    transition: all 0.3s ease;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.03);
}

.nav-cart-btn svg {
    width: 20px;
    height: 20px;
}

.nav-cart-btn:hover {
    color: var(--color-gold);
    background: var(--color-gold-glow);
    transform: translateY(-2px);
}

.cart-count {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--color-gold);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher {
    display: flex;
    gap: 10px;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 2px 5px;
    transition: color 0.3s;
    font-family: var(--font-family-body);
}

.lang-btn.active {
    color: var(--color-gold);
    font-weight: 600;
}

.nav-separator {
    width: 1px;
    height: 15px;
    background: var(--color-border);
    margin: 0 5px;
}

/* Hero Section */
.hero-premium {
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: var(--font-size-hero);
    margin-bottom: var(--spacing-md);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeUp 1.2s ease;
}

.hero-tagline {
    font-size: var(--font-size-xl);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.05em;
    animation: fadeUp 1.4s ease;
}

/* Art Cards */
.art-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.art-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--color-gold);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.art-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--color-gold);
    transition: width 0.4s ease;
}

.art-card:hover::after {
    width: 100%;
}

.art-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #fdfdfd;
    margin-bottom: 20px;
}

/* Premium Buttons */
.btn-gold {
    background: var(--color-gold);
    color: #000;
    padding: 15px 35px;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.btn-gold:hover {
    background: var(--color-gold-hover);
    transform: scale(1.05);
    box-shadow: 0 0 20px var(--color-gold-glow);
}

.btn-outline-white {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    padding: 15px 35px;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-white:hover {
    background: #fff;
    color: #000;
}

/* Grid Layouts */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
}

/* Animations */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: 1s all ease-out;
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Magnetic & Pulse Effects */
.btn-magnetic {
    transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-block;
    will-change: transform;
}

.btn-pulse {
    position: relative;
}

.btn-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.8);
    animation: pulse-border-white 1.5s infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes pulse-border-white {
    0% {
        transform: scale(0.95);
        opacity: 1;
        border-color: rgba(255, 255, 255, 1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }

    100% {
        transform: scale(1.6);
        opacity: 0;
        border-color: rgba(255, 255, 255, 0);
        box-shadow: 0 0 20px rgba(255, 255, 255, 0);
    }
}

/* =========================================
   MOBILE & RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    #main-header {
        padding: 5px 0;
        width: 100%;
        overflow-x: hidden;
    }

    .logo {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        max-width: 60%;
    }

    .logo-subtitle {
        display: inline;
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .nav-cart-btn {
        padding: 6px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 0 20px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Toggle Button */
    .mobile-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 18px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1100;
        margin-left: 10px;
    }

    .mobile-toggle span {
        width: 100%;
        height: 2px;
        background-color: var(--color-text-main);
        transition: all 0.3s ease;
    }

    /* Mobile Toggle Active State */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    /* Hide redundant elements highlighted by user */
    .nav-separator {
        display: none !important;
    }

    /* Fixed Language Dropdown - Modern Overlay */
    .lang-dropdown-content.amazon-style {
        position: fixed !important;
        /* Fixed to viewport to stay on top of everything */
        top: 60px !important;
        right: 20px !important;
        left: auto !important;
        width: 250px !important;
        z-index: 10000 !important;
        background: #fff !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    }

    /* Hide Default Nav & Switcher on Mobile */
    .nav-links {
        display: none;
    }

    .header-actions .lang-switcher {
        display: none;
    }

    /* Gallery & Grid Overrides for Mobile */
    .gallery-layout {
        display: flex !important;
        flex-direction: column !important;
        /* FORCE VERTICAL STACK */
        gap: 20px !important;
        padding-top: 20px !important;
    }

    .gallery-sidebar,
    .filters {
        width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--color-border);
        padding-bottom: 10px !important;
        margin-bottom: 20px !important;
    }

    /* Transform Categories into an interactive horizontal scroll or clear list */
    .filters h3 {
        text-align: center;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
        font-size: 0.8rem !important;
    }

    /* Transform Categories into a scrollable horizontal menu */
    .filter-list {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        gap: 12px !important;
        padding-bottom: 15px !important;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start !important;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
    }

    .filter-list::-webkit-scrollbar {
        display: none;
    }

    /* Hide scrollbar Chrome/Safari */

    .filter-list li {
        flex: 0 0 auto;
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .filter-list a {
        background: #f0f0f0;
        padding: 10px 18px !important;
        border-radius: 25px;
        white-space: nowrap;
        font-weight: 500 !important;
        border: none !important;
    }

    .filter-list a.active-filter,
    .filter-list a.active {
        background: #000 !important;
        color: #fff !important;
        border-color: #000 !important;
        padding-left: 15px !important;
        /* Reset padding-left from desktop */
    }

    /* FORCED 2 COLUMNS ON MOBILE */
    .grid-3 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        row-gap: 30px !important;
    }

    .art-card img {
        margin-bottom: 10px !important;
    }

    .art-card h3 {
        font-size: 0.9rem !important;
    }

    .footer-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 30px;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* =========================================
   MOBILE MENU OVERLAY (Global)
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #ffffff;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 25px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered animation */
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-nav-links a {
    text-decoration: none;
    font-family: var(--font-family-heading);
    font-size: 2.2rem;
    color: var(--color-text-main);
    font-weight: 400;
    transition: color 0.3s;
    letter-spacing: -0.02em;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:active {
    color: var(--color-gold);
}

.mobile-lang-switcher {
    display: flex;
    gap: 20px;
    opacity: 0;
    transition: opacity 0.5s ease 0.6s;
    margin-top: 20px;
}

.mobile-menu-overlay.active .mobile-lang-switcher {
    opacity: 1;
}

.mobile-lang-switcher .lang-btn {
    font-size: 1.1rem;
    padding: 10px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: var(--font-family-body);
    font-weight: 500;
    color: #999;
    transition: all 0.3s;
}

.mobile-lang-switcher .lang-btn.active {
    color: var(--color-gold);
    font-weight: 700;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9em;
}

.current-price {
    color: #e74c3c;
    font-weight: 700;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #e74c3c;
    color: #fff;
    font-size: 0.75em;
    padding: 4px 8px;
    border-radius: 2px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Product Page Price Update */
.product-price-box {
    display: inline-flex;
    align-items: center;
    /* Center vertical alignment */
    flex-wrap: nowrap;
    /* Force single line */
    gap: 15px;
    margin-bottom: 20px;
}

.product-old-price {
    text-decoration: line-through;
    color: #aaa;
    font-size: 1.1rem;
    /* Reduced from 1.5rem */
    font-weight: 300;
}

.product-current-price {
    font-size: 1.8rem;
    /* Reduced from 2.5rem */
    color: #e74c3c;
    font-weight: 700;
}

/* CURRENT PRICE RED COLOR (Already added, just ensuring) */
.product-current-price {
    color: #e74c3c;
}

/* =========================================
   NEW PRODUCT PAGE STYLES
   ========================================= */

/* Typography & Layout */
.breadcrumb {
    font-size: 0.75rem;
    color: #999;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #000;
}

.artist-name {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 5px;
    letter-spacing: -0.02em;
}

.artwork-title {
    font-family: var(--font-family-body);
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 300;
}

/* Accordions */
.accordion-container {
    border-top: 1px solid #eee;
    margin: 30px 0;
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-header {
    width: 100%;
    padding: 15px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: var(--font-family-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #000;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--color-gold);
}

.accordion-content {
    display: none;
    /* Hidden by default */
    padding-bottom: 20px;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    display: block;
}

/* Buttons Stack */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
    position: relative;
    align-items: flex-start;
    /* Align left or center? usually left in split layout */
}

.btn-primary-black {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
    width: 100%;
    max-width: 350px;
    /* Reduced width */
    padding: 12px;
    /* Reduced padding */
    font-weight: 600;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    /* Slightly smaller text */
}

.btn-primary-black:hover {
    background-color: #333;
}

.btn-outline {
    background-color: transparent;
    color: #000;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 350px;
    /* Reduced width */
    padding: 12px;
    /* Reduced padding */
    font-weight: 500;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.btn-outline:hover {
    border-color: #000;
}

.btn-wishlist {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: -40px;
    /* Adjust based on layout */
    transform: translateY(-50%);
    color: #000;
    display: none;
    /* Hidden on mobile usually, distinct placement on desktop */
}

@media (min-width: 768px) {
    .btn-wishlist {
        display: inline-block;
        position: static;
        width: auto;
        border: none;
        padding: 5px;
        margin-top: 5px;
        color: #999;
    }

    .btn-wishlist:hover {
        color: #e74c3c;
    }
}

.btn-wishlist:hover {
    color: #e74c3c;
    border-color: #e74c3c;
}

/* Trust & Payment */
.trust-features {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
}

.trust-item {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-methods-row {
    font-size: 0.7rem;
    color: #999;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 20px;
}

/* Help Section */
.help-section {
    padding: 60px 0;
    background-color: #fcfcfc;
    border-top: 1px solid #eee;
    opacity: 1 !important;
    transform: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-title-center {
    text-align: center !important;
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    /* Increased size to match screenshot style */
    margin-bottom: 40px;
    width: 100%;
}

/* ... existing styles ... */

.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 1 !important;
    /* Force visible */
    transform: none !important;
}

.help-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
}

.help-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    width: 50px;
    height: 50px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #555;
    transition: all 0.3s;
}

.help-item:hover .icon-circle {
    border-color: #000;
    background-color: #000;
    color: #fff;
}

.help-text {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 5px;
}

.help-link {
    font-family: var(--font-family-heading);
    font-size: 1.1rem;
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.help-link:hover {
    border-color: #000;
}

/* Related Section */
.related-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Active Filters */
.active-filters-area {
    margin-bottom: 25px;
}

.active-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.filter-tag {
    background-color: #f1f1f1;
    color: #333;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}

.filter-tag:hover {
    background-color: #ddd;
}

.filter-tag span {
    margin-left: 6px;
    font-weight: bold;
    color: #999;
}

.reset-link {
    font-size: 0.8rem;
    color: #666;
    text-decoration: underline;
    cursor: pointer;
}

.reset-link:hover {
    color: #000;
}

/* Orientation Buttons */
.orientation-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.orient-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    flex: 1;
    min-width: 60px;
    text-align: center;
    transition: background 0.2s;
}

.orient-btn:hover {
    background-color: #000;
}

.orient-btn.active {
    background-color: #000;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #000;
}

/* Dimension Inputs */
.dim-inputs input,
.price-inputs input {
    font-family: var(--font-family-body);
    font-size: 0.9rem;
    color: #333;
}

/* Checkbox Style Override if needed */
.filter-content label {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #444;
}

.filter-content input[type="checkbox"] {
    accent-color: #000;
    width: 16px;
    height: 16px;
    margin-right: 10px;
}



.gallery-layout-container {
    display: flex;
    max-width: 1800px;
    /* Wider for 4 columns */
    margin: 60px auto;
    padding: 0 50px;
    font-family: 'Inter', sans-serif;
}

/* Sidebar */
.gallery-sidebar {
    width: 240px;
    flex-shrink: 0;
    margin-right: 60px;
    /* Airy separation */
}

.sidebar-title {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: #000;
    margin-bottom: 40px;
}

.filter-group-clean {
    margin-bottom: 30px;
}

.filter-heading {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    color: #111;
    margin-bottom: 15px;
}

.filter-list-clean {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-list-clean li {
    margin-bottom: 8px;
}

.filter-list-clean a {
    text-decoration: none;
    color: #777;
    font-size: 0.85rem;
    font-weight: 300;
    transition: color 0.2s;
}

.filter-list-clean a.active,
.filter-list-clean a:hover {
    color: #000;
    text-decoration: underline;
}

/* Main Content */
.gallery-main-area {
    flex-grow: 1;
}

.gallery-toolbar-minimal {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.page-title-elegant {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 400;
    /* Regular serif weight */
    color: #111;
    margin: 0;
}

.results-count-minimal {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: #999;
    font-weight: 300;
}

/* Grid System: 4 Columns Airy */
.products-grid.grid-view-4-airy {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 60px 40px;
    /* Large vertical gap */
}

@media (min-width: 600px) {
    .products-grid.grid-view-4-airy {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .products-grid.grid-view-4-airy {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1400px) {
    .products-grid.grid-view-4-airy {
        grid-template-columns: repeat(4, 1fr);
    }
}


/* Art Card Styling - Specific Requirements */
.art-card {
    background: transparent;
    border: none;
    box-shadow: none;
    margin: 0;
}

.art-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.art-card img {
    width: 100%;
    height: auto;
    /* Framed Look option: border: 12px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.05); */
    /* Minimalist Request: */
    display: block;
    margin-bottom: 25px;
    /* Generous margin below image */
}

/* Typography Hierarchy */
/* Artist Name: Serif, prominent */
.art-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #000;
    margin: 0 0 6px 0;
}

/* Artist Name P tag override if structure uses P */
.art-card .artist-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 500;
    color: #000;
    margin: 0 0 6px 0;
}

/* Artwork Title: Sans-serif, secondary */
.art-card .title,
.art-card h4,
.gallery-item-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #555;
    font-weight: 300;
    margin-bottom: 15px;
}

.price {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: #111;
    font-weight: 400;
    margin-top: 10px;
}

/* Badge Tweaks */
.badge {
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.7rem;
    padding: 6px 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .gallery-layout-container {
        flex-direction: column;
        margin: 30px auto;
        padding: 0 20px;
    }

    .gallery-sidebar {
        width: 100%;
        margin-right: 0;
        margin-bottom: 40px;
        /* Keep visible but stack */
    }

    .filter-list-clean {
        display: flex;
        gap: 20px;
        flex-wrap: wrap;
    }
}



/* P55 Overrides */
.art-card {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    text-align: left !important;
    overflow: visible !important;
}

.art-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: none !important;
    opacity: 0.9 !important;
}

.art-card::after {
    content: none !important;
}

.art-card img {
    aspect-ratio: 1 / 1.3 !important;
    object-fit: cover !important;
    margin-bottom: 15px !important;
    background: #fdfdfd !important;
}

.grid-3 {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    row-gap: 50px !important;
}

@media (max-width: 1200px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    .grid-3 {
        grid-template-columns: 1fr !important;
    }
}


/* P55-style Sidebar Filters */
.filters h3 {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 20px !important;
    margin-top: 35px !important;
    color: #000 !important;
    border-bottom: 1px solid #ddd !important;
    padding-bottom: 12px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    cursor: pointer !important;
}

.filters h3:after {
    content: '+';
    font-weight: 400 !important;
    font-size: 1.1rem !important;
}

.filters h3:first-of-type {
    margin-top: 0 !important;
}

.filter-list {
    display: block !important;
    margin-bottom: 10px !important;
}

.filter-list li {
    margin-bottom: 10px !important;
    transition: transform 0.2s ease !important;
}

.filter-list a {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9rem !important;
    color: #555 !important;
    text-decoration: none !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
    display: block !important;
    padding: 2px 0 !important;
}

.filter-list a:hover {
    color: #000 !important;
    padding-left: 5px !important;
}

.filter-list a.active {
    font-weight: 700 !important;
    color: #000 !important;
    padding-left: 5px !important;
    border-left: 2px solid #000 !important;
    /* Minimalist active marker */
    padding-left: 10px !important;
}

/* =========================================
   LANGUAGE FLAG DROPDOWN - Amazon Style
   ========================================= */
.lang-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

/* The capsule button — grey pill, flag + code + chevron */
.lang-dropdown-btn {
    background: rgba(240, 240, 240, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    /* Full capsule shape */
    color: #111;
    font-size: 1.2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 6px;
    transition: background 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.lang-dropdown-btn:hover {
    background: rgba(225, 225, 225, 0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.lang-dropdown-btn .current-lang-text {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    font-family: var(--font-family-body, sans-serif);
    text-transform: uppercase;
    color: #111;
}

.lang-dropdown-btn .dropdown-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    stroke: #555;
    width: 12px;
    height: 12px;
}

.lang-dropdown.open .dropdown-chevron {
    transform: rotate(180deg);
    stroke: #111;
}

/* Dropdown Panel */
.lang-dropdown-content.amazon-style {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 240px;
    background: #fff;
    color: #111;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    border: 1px solid #ddd;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    overflow: hidden;
}

/* Small arrow triangle */
.lang-dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #fff;
    position: absolute;
    top: -8px;
    right: 18px;
    filter: drop-shadow(0 -2px 2px rgba(0, 0, 0, 0.1));
}

.lang-dropdown.open .lang-dropdown-content.amazon-style {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

/* Panel header label */
.lang-dropdown-header {
    font-size: 0.78rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f0f0f0;
}

/* Radio-style option items */
.lang-option-btn {
    width: 100%;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #222;
    text-align: left;
    transition: background 0.15s ease;
    font-family: var(--font-family-body, sans-serif);
    border-bottom: 1px solid #f8f8f8;
}

.lang-option-btn:last-child {
    border-bottom: none;
}

.lang-option-btn:hover {
    background: #f6f6f6;
}

.lang-option-btn.active {
    background: #f0f6ff;
    font-weight: 600;
}

/* Radio circle indicator */
.radio-circle {
    width: 16px;
    height: 16px;
    border: 2px solid #bbb;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: border-color 0.15s;
}

.lang-option-btn.active .radio-circle {
    border-color: #0066c0;
}

.lang-option-btn.active .radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background: #0066c0;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lang-name {
    font-size: 0.9rem;
    color: #222;
    line-height: 1.2;
}

/* Mobile version */
.mobile-lang-switcher {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.mobile-lang-switcher .lang-dropdown-content.amazon-style {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
}

.mobile-lang-switcher.open .lang-dropdown-content.amazon-style {
    transform: translateX(-50%) translateY(0);
}

/* Flag images styling */
.current-flag-img {
    border-radius: 50%;
    width: 22px;
    height: 22px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.option-flag {
    border-radius: 3px;
    width: 22px;
    height: 15px;
    object-fit: cover;
    flex-shrink: 0;
}