/*
Theme Name: Mustafa Batibeniz Portfolio
Theme URI: https://mustafabatibeniz.com
Author: Mustafa Batibeniz
Description: A dark, surrealist portfolio theme for artist Mustafa Batibeniz. Features masonry gallery, WooCommerce integration, GSAP animations, and custom visual effects.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mustafa-portfolio
Tags: portfolio, dark, art, gallery, woocommerce, custom-colors
*/

/* ===========================
   CSS CUSTOM PROPERTIES
   =========================== */

:root {
    --bg-primary: #050510;
    --bg-secondary: #0d0d22;
    --accent-gold: #e8d44d;
    --accent-magenta: #e84b8a;
    --accent-teal: #7ecfb0;
    --accent-blue: #a8d8ea;
    --accent-salmon: #f4a4a4;
    --accent-lime: #c8e84b;
    --accent-ochre: #c8a050;
    --accent-lavender: #b8a0c8;
    --accent-crimson: #c82020;
    --text-light: #f0ece6;
    --text-muted: #a8a08a;
    --text-secondary: #a8a08a;
    --border-color: #2a2a3e;
    --font-primary: 'Unbounded', sans-serif;
    --font-secondary: 'Caveat', cursive;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ===========================
   RESET & BASE STYLES
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-light);
    font-family: 'Caveat', cursive;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   PAGE LOADER
   =========================== */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.page-loader.hidden {
    pointer-events: none;
    opacity: 0;
    transition: opacity 1s ease-out;
}

.eye-loader {
    width: 200px;
    height: 200px;
    position: relative;
}

.eye-loader svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px var(--accent-gold));
}

.eye-loader-compat::before,
.eye-loader-compat::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: var(--accent-gold);
    animation: blink 2s infinite;
}

.eye-loader::before {
    left: 0;
    top: 25px;
}

.eye-loader::after {
    right: 0;
    top: 25px;
    animation-delay: 0.1s;
}

@keyframes blink {
    0%, 49%, 100% {
        opacity: 1;
    }
    50%, 99% {
        opacity: 0.3;
    }
}

/* ===========================
   CURSOR TRAIL
   =========================== */

.cursor-trail {
    position: fixed;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-gold), var(--accent-magenta));
    pointer-events: none;
    opacity: 0.8;
    z-index: 1;
}

/* ===========================
   HEADER & NAVIGATION
   =========================== */

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--accent-gold);
    font-family: 'Unbounded', sans-serif;
    text-decoration: none;
    letter-spacing: 2px;
}

nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.cart-icon {
    position: relative;
    cursor: pointer;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--accent-gold);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-magenta);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
}

.backdrop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: fadeInOut 20s infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 0.2;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.hero-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 120px;
    font-weight: 900;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 30px rgba(232, 184, 75, 0.5),
                0 0 60px rgba(255, 45, 123, 0.3);
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 0 0 30px rgba(232, 184, 75, 0.5),
                     0 0 60px rgba(255, 45, 123, 0.3);
    }
    50% {
        text-shadow: -2px -2px 0 var(--accent-magenta),
                     2px 2px 0 var(--accent-teal),
                     0 0 30px rgba(232, 184, 75, 0.5);
    }
}

.hero-subtitle {
    font-family: 'Caveat', cursive;
    font-size: 32px;
    color: var(--accent-teal);
    margin-bottom: 40px;
    font-weight: 700;
}

.hero-cta {
    display: inline-block;
    padding: 18px 50px;
    background: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 10px 40px rgba(232, 184, 75, 0.3);
}

.hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent-magenta);
    transition: left 0.3s ease;
    z-index: -1;
}

.hero-cta:hover::before {
    left: 0;
}

.hero-cta:hover {
    letter-spacing: 3px;
    transform: scale(1.05);
    color: var(--text-light);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   MARQUEE SECTION
   =========================== */

.marquee-section {
    position: relative;
    background: var(--bg-primary);
    overflow: hidden;
    padding: 40px 0;
    border-top: 3px solid var(--accent-gold);
    border-bottom: 3px solid var(--accent-magenta);
}

.marquee-text {
    font-family: 'Unbounded', sans-serif;
    font-size: 180px;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-gold);
    text-stroke: 2px var(--accent-gold);
    white-space: nowrap;
    display: flex;
    animation: scroll-left 30s linear infinite;
    letter-spacing: 20px;
}

.marquee-text:nth-child(2) {
    animation: scroll-left-reverse 30s linear infinite;
    -webkit-text-stroke: 2px var(--accent-magenta);
    text-stroke: 2px var(--accent-magenta);
}

@keyframes scroll-left {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes scroll-left-reverse {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ===========================
   FEATURED CAROUSEL
   =========================== */

.featured-section {
    padding: 100px 50px;
    background: var(--bg-primary);
}

.section-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: var(--accent-magenta);
    text-transform: uppercase;
    margin-bottom: 60px;
    text-align: center;
    letter-spacing: 1px;
}

.featured-carousel {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scroll-snap-type: x mandatory;
}

.featured-carousel::-webkit-scrollbar {
    height: 8px;
}

.featured-carousel::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 10px;
}

.featured-carousel::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 10px;
}

.featured-carousel::-webkit-scrollbar-thumb:hover {
    background: var(--accent-magenta);
}

.carousel-item {
    flex: 0 0 350px;
    aspect-ratio: 3 / 4;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.carousel-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.3);
}

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

/* ===========================
   GALLERY MASONRY
   =========================== */

.gallery-section {
    padding: 100px 50px;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* Gallery "View All" toggle */
.masonry-item.gallery-hidden {
    display: none;
}

.masonry-item.gallery-reveal {
    display: block;
    animation: galleryFadeIn 0.6s ease forwards;
}

@keyframes galleryFadeIn {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.gallery-view-all-wrapper {
    text-align: center;
    margin: -20px 0 40px;
}

.gallery-view-all-btn {
    display: inline-block;
    padding: 16px 48px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-gold);
    background: transparent;
    border: 2px solid var(--accent-gold);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
}

.gallery-view-all-btn:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
    box-shadow: 0 0 30px rgba(232, 184, 75, 0.4);
}

.gallery-view-all-btn .gallery-count {
    opacity: 0.7;
    font-weight: 400;
}

.masonry-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.masonry-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item:nth-child(3) {
    grid-column: span 2;
}

.masonry-item:nth-child(5) {
    grid-column: span 2;
    grid-row: span 2;
}

.masonry-item:nth-child(8) {
    grid-column: span 2;
}

.masonry-item:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 40px rgba(232, 184, 75, 0.3),
               0 20px 60px rgba(232, 184, 75, 0.2);
}

.masonry-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.masonry-img-wrapper::before,
.masonry-img-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-img-wrapper::before,
.masonry-img-wrapper::after {
    background-size: cover;
    background-position: center;
}

.masonry-item:hover .masonry-img-wrapper::before {
    opacity: 1;
    transform: translateX(-2px);
    mix-blend-mode: screen;
    filter: hue-rotate(180deg) brightness(0.8);
}

.masonry-item:hover .masonry-img-wrapper::after {
    opacity: 1;
    transform: translateX(2px);
    mix-blend-mode: multiply;
    filter: hue-rotate(120deg) brightness(0.8);
}

.masonry-img,
.masonry-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.masonry-item:hover .masonry-img,
.masonry-item:hover .masonry-img-wrapper img {
    transform: scale(1.05);
}

.masonry-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 5, 16, 0.95) 0%, transparent 100%);
    padding: 40px 20px 20px;
    z-index: 5;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s;
}

.masonry-item:hover .masonry-item-content {
    transform: translateY(0);
    opacity: 1;
}

.artwork-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-gold);
}

.artwork-price {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-teal);
    margin-bottom: 15px;
}

.artwork-buttons {
    display: flex;
    gap: 0.5rem;
}

.buy-btn,
.inquire-btn {
    flex: 1;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.buy-btn {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.buy-btn:hover {
    background: var(--accent-magenta);
    transform: scale(1.05);
}

.inquire-btn {
    background: var(--border-color);
    color: var(--accent-teal);
}

.inquire-btn:hover {
    background: var(--accent-teal);
    color: var(--bg-primary);
}

.sold-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-magenta);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 5px 20px rgba(255, 45, 123, 0.5);
}

/* ===========================
   ABOUT SECTION
   =========================== */

.about-section {
    padding: 100px 50px;
    background: var(--bg-primary);
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    font-weight: 900;
    color: var(--accent-teal);
    margin-bottom: 30px;
    text-transform: uppercase;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.about-image {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    border: 3px solid var(--accent-gold);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(232, 184, 75, 0.2);
}

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

.influences {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.influence-tag {
    padding: 10px 20px;
    background: var(--border-color);
    border: 2px solid var(--accent-magenta);
    border-radius: 4px;
    font-size: 14px;
    color: var(--accent-magenta);
    transition: all 0.3s;
}

.influence-tag:hover {
    background: var(--accent-magenta);
    color: var(--bg-primary);
}

/* ===========================
   EXHIBITIONS SECTION
   =========================== */

.exhibitions-section {
    padding: 100px 50px;
    background: var(--bg-primary);
    position: relative;
    z-index: 10;
}

.exhibitions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.exhibition-card {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: all 0.3s;
}

.exhibition-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px rgba(232, 184, 75, 0.2);
    transform: translateY(-5px);
}

.exhibition-period {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-teal);
    margin-bottom: 10px;
}

.exhibition-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    color: var(--accent-teal);
    margin-bottom: 10px;
}

.exhibition-title {
    font-size: 1.5rem;
    font-family: 'Unbounded', sans-serif;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.exhibition-location {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.exhibition-link {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.exhibition-link:hover {
    color: var(--accent-gold);
}

/* ===========================
   CONTACT SECTION
   =========================== */

.contact-section {
    padding: 100px 50px;
    background: var(--bg-primary);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
}

.contact-content h3 {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contact-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-links {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-block;
    padding: 15px 30px;
    background: var(--border-color);
    color: var(--accent-gold);
    text-decoration: none;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    border: 2px solid var(--accent-gold);
}

.contact-link:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: var(--bg-primary);
    border-top: 3px solid var(--border-color);
    padding: 40px 50px;
    text-align: center;
    color: var(--text-muted);
    position: relative;
    z-index: 10;
}

footer p {
    font-size: 14px;
}

/* ===========================
   MODAL
   =========================== */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 16, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(5px);
}

.modal.open {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: var(--bg-secondary);
    border: 3px solid var(--accent-gold);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--accent-magenta);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
}

.modal-image {
    width: 100%;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image img {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
}

.modal-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modal-title {
    font-size: 2rem;
    font-family: 'Unbounded', sans-serif;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.modal-details {
    margin-bottom: 1rem;
}

.modal-detail-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-detail-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-teal);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.modal-detail-value {
    color: var(--text-light);
    font-size: 1rem;
}

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

.modal-btn {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-add-cart {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    font-weight: bold;
}

.modal-add-cart:hover {
    background: var(--accent-magenta);
    transform: scale(1.05);
}

.modal-contact {
    background: transparent;
    border: 2px solid var(--accent-teal);
    color: var(--accent-teal);
}

.modal-contact:hover {
    background-color: var(--accent-teal);
    color: var(--bg-primary);
}

/* ===========================
   CART PANEL
   =========================== */

.cart-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    z-index: 500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-panel.open {
    right: 0;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.cart-panel-title {
    font-size: 1.5rem;
    font-family: 'Unbounded', sans-serif;
    color: var(--accent-gold);
}

.cart-panel-close {
    background: none;
    border: none;
    color: var(--accent-gold);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-panel-close:hover {
    color: var(--accent-magenta);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

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

.cart-item-title {
    color: var(--accent-gold);
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.cart-item-price {
    color: var(--accent-teal);
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--accent-crimson);
    cursor: pointer;
    transition: color 0.3s ease;
}

.cart-item-remove:hover {
    color: var(--accent-salmon);
}

.cart-total {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.cart-total-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.cart-total-value {
    color: var(--accent-gold);
    font-size: 1.5rem;
    font-weight: bold;
}

.cart-checkout-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Caveat', cursive;
    font-size: 1rem;
    font-weight: bold;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.cart-checkout-btn:hover {
    background-color: var(--accent-magenta);
    color: var(--text-light);
}

.cart-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    padding: 2rem;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0);
    z-index: 400;
    transition: background-color 0.3s ease;
    pointer-events: none;
}

.cart-overlay.open {
    background-color: rgba(0, 0, 0, 0.5);
    pointer-events: all;
}

/* ===========================
   TOAST NOTIFICATION
   =========================== */

.toast-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    border-radius: 10px;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2100;
    animation: slideInRight 0.3s ease-out;
    max-width: 300px;
}

.toast-crown {
    font-size: 1.5rem;
}

.toast-text {
    color: var(--accent-gold);
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ===========================
   DIVIDERS
   =========================== */

.stripe-accent {
    height: 8px;
    background: linear-gradient(90deg,
        var(--accent-gold) 0%,
        var(--accent-magenta) 25%,
        var(--accent-teal) 50%,
        var(--accent-blue) 75%,
        var(--accent-gold) 100%);
    margin: 2rem 0;
}

.crown-divider {
    text-align: center;
    padding: 30px 0;
    position: relative;
    z-index: 10;
    color: var(--accent-gold);
}

.crown-divider svg {
    filter: drop-shadow(0 0 15px rgba(232, 212, 77, 0.3));
}

.crown-divider--magenta {
    color: var(--accent-magenta);
}

.crown-divider--magenta svg {
    filter: drop-shadow(0 0 15px rgba(232, 75, 138, 0.3));
}

/* ===========================
   FLOATING ARTWORK MOTIFS
   =========================== */

.artwork-motifs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.motif {
    position: absolute;
    opacity: 0;
    animation: floatMotif 20s ease-in-out infinite;
}

.motif-crown { top: 15%; right: 8%; animation-delay: 0s; }
.motif-house { bottom: 20%; left: 5%; animation-delay: 3s; }
.motif-eye { top: 60%; right: 12%; animation-delay: 7s; }
.motif-halo { top: 30%; left: 15%; animation-delay: 5s; }
.motif-mustache { bottom: 35%; right: 20%; animation-delay: 10s; }
.motif-birds { top: 10%; left: 40%; animation-delay: 2s; }
.motif-cloud { top: 20%; left: 70%; animation-delay: 8s; }

@keyframes floatMotif {
    0%, 100% { opacity: 0; transform: translateY(0) rotate(0deg); }
    15% { opacity: 0.12; }
    50% { opacity: 0.08; transform: translateY(-30px) rotate(5deg); }
    85% { opacity: 0.12; }
}

.drip-divider {
    position: relative;
    height: 60px;
    margin: 2rem 0;
}

.drip {
    position: absolute;
    width: 10px;
    height: 30px;
    background-color: var(--accent-gold);
    border-radius: 50% 50% 0 0;
    animation: drip 2s infinite;
    left: 25%;
}

.drip:nth-child(2) {
    left: 50%;
    animation-delay: 0.3s;
    background-color: var(--accent-magenta);
}

.drip:nth-child(3) {
    left: 75%;
    animation-delay: 0.6s;
    background-color: var(--accent-teal);
}

@keyframes drip {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(40px);
        opacity: 0;
    }
}

/* ===========================
   HAMBURGER MENU
   =========================== */

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-gold);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===========================
   MOBILE NAVIGATION
   =========================== */

.mobile-nav {
    position: fixed;
    left: -100%;
    top: 60px;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    width: 100%;
    height: calc(100vh - 60px);
    text-align: center;
    transition: left 0.3s ease;
    z-index: 101;
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-nav.open {
    left: 0;
}

.mobile-nav a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.mobile-nav a:hover {
    background-color: var(--bg-primary);
    color: var(--accent-gold);
}

/* ===========================
   WooCommerce OVERRIDES
   =========================== */

/* =============================================================================
   WOOCOMMERCE SHOP & PRODUCT STYLES
   ============================================================================= */

/* --- Shop page wrapper --- */
.woocommerce {
    background-color: var(--bg-primary);
    color: var(--text-light);
    padding: 120px 60px 60px;
    min-height: 100vh;
}

.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
}

.woocommerce .woocommerce-ordering select {
    background: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 5px;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Shop page title --- */
.woocommerce-products-header__title,
.woocommerce .page-title,
.woocommerce-loop-product__title {
    font-family: 'Unbounded', sans-serif;
}

.woocommerce-products-header__title,
.woocommerce .page-title {
    color: var(--accent-gold);
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -1px;
}

/* --- Product grid --- */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
    clear: both;
    width: 100%;
}

.woocommerce ul.products li.product {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    padding: 0;
    margin: 0;
    width: 100% !important;
    float: none !important;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 0 25px rgba(232, 184, 75, 0.2);
    transform: translateY(-5px);
}

/* --- Product images --- */
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.05);
}

/* --- Product title --- */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--text-light);
    font-size: 16px;
    font-weight: 700;
    padding: 15px 20px 5px;
    margin: 0;
}

/* --- Product price --- */
.woocommerce ul.products li.product .price,
.woocommerce .price {
    color: var(--accent-gold) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    padding: 0 20px 10px;
}

.woocommerce .price del {
    color: var(--text-muted);
    opacity: 0.5;
}

.woocommerce .price ins {
    text-decoration: none;
    color: var(--accent-gold);
}

/* --- Add to cart button --- */
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product a.add_to_cart_button {
    display: block;
    margin: 0 20px 20px;
    text-align: center;
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 10px 20px;
    border-radius: 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product a.add_to_cart_button:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* --- Sale / Out of stock badges --- */
.woocommerce span.onsale {
    background: var(--accent-magenta);
    color: white;
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 5;
}

.woocommerce .outofstock .price::after {
    content: 'SOLD';
    display: inline-block;
    margin-left: 10px;
    background: var(--accent-magenta);
    color: white;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 3px;
    vertical-align: middle;
}

/* --- Star ratings --- */
.woocommerce .star-rating {
    color: var(--accent-gold);
}

/* --- Breadcrumbs --- */
.woocommerce .woocommerce-breadcrumb {
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    margin-bottom: 30px;
}

.woocommerce .woocommerce-breadcrumb a {
    color: var(--accent-teal);
    text-decoration: none;
}

.woocommerce .woocommerce-breadcrumb a:hover {
    color: var(--accent-gold);
}

/* --- Pagination --- */
.woocommerce nav.woocommerce-pagination {
    margin-top: 40px;
    text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
    display: inline-flex;
    gap: 8px;
    border: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
    border: none;
    list-style: none;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all 0.3s;
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--accent-gold);
    color: var(--bg-primary);
    border-color: var(--accent-gold);
}

/* --- General buttons --- */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce button.btn,
.woocommerce a.btn,
.woocommerce input.button {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
    border: none;
    border-radius: 6px;
    padding: 12px 24px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce button.btn:hover,
.woocommerce a.btn:hover,
.woocommerce input.button:hover {
    background-color: var(--accent-magenta);
    color: var(--text-light);
}

.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce input.button.alt {
    background-color: var(--accent-magenta);
    color: white;
}

.woocommerce button.button.alt:hover,
.woocommerce a.button.alt:hover,
.woocommerce input.button.alt:hover {
    background-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* --- Messages --- */
.woocommerce-message,
.woocommerce-info {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-gold);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'Caveat', cursive;
    font-size: 18px;
}

.woocommerce-message::before {
    color: var(--accent-gold);
}

.woocommerce-info {
    border-color: var(--accent-teal);
}

.woocommerce-info::before {
    color: var(--accent-teal);
}

.woocommerce-error {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-magenta);
    color: var(--text-light);
    padding: 15px 20px;
    border-radius: 8px;
    list-style: none;
}

/* --- Tables (cart, order) --- */
.woocommerce table {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border-color: var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.woocommerce table thead th {
    background-color: var(--bg-primary);
    color: var(--accent-gold);
    border-color: var(--border-color);
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 15px;
}

.woocommerce table tbody td {
    padding: 15px;
    border-color: var(--border-color);
}

.woocommerce table tbody tr {
    border-bottom: 1px solid var(--border-color);
}

.woocommerce table tbody tr:hover {
    background-color: rgba(232, 184, 75, 0.05);
}

/* --- Cart & Checkout pages --- */
.woocommerce-cart,
.woocommerce-checkout {
    background-color: var(--bg-primary);
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review {
    background: var(--bg-secondary);
    border: 2px solid var(--accent-gold);
    border-radius: 12px;
    padding: 30px;
}

.woocommerce-cart .cart_totals h2,
.woocommerce-checkout h3 {
    color: var(--accent-gold);
    font-family: 'Unbounded', sans-serif;
}

/* --- Form fields --- */
.woocommerce form input[type="text"],
.woocommerce form input[type="email"],
.woocommerce form input[type="tel"],
.woocommerce form input[type="number"],
.woocommerce form input[type="password"],
.woocommerce form textarea,
.woocommerce form select {
    background-color: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 6px;
    font-family: 'Caveat', cursive;
    font-size: 18px;
    width: 100%;
}

.woocommerce form input:focus,
.woocommerce form textarea:focus,
.woocommerce form select:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(232, 212, 77, 0.2);
}

.woocommerce form label {
    color: var(--text-light);
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Single product page --- */
.woocommerce div.product {
    background: var(--bg-primary);
}

.woocommerce div.product .product_title {
    color: var(--accent-gold);
    font-family: 'Unbounded', sans-serif;
    font-size: 36px;
    font-weight: 900;
}

.woocommerce div.product .woocommerce-product-details__short-description {
    color: var(--text-muted);
    font-family: 'Caveat', cursive;
    font-size: 20px;
    line-height: 1.6;
}

.woocommerce div.product div.images img {
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

/* --- Product list widget --- */
.woocommerce .product {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.woocommerce .product:hover {
    border-color: var(--accent-gold);
}

.woocommerce .product_list_widget li {
    border-bottom-color: var(--border-color);
    color: var(--text-light);
}

.woocommerce .product_list_widget li a {
    color: var(--accent-gold);
    text-decoration: none;
}

.woocommerce .product_list_widget li a:hover {
    color: var(--accent-magenta);
}

/* --- Site main inner wrapper --- */
.site-main-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Nothing found --- */
.nothing-found {
    text-align: center;
    padding: 100px 0;
}

.nothing-found p {
    color: var(--text-muted);
    font-size: 20px;
}

/* =============================================================================
   SINGLE ARTWORK PAGE
   ============================================================================= */

.single-artwork-page {
    background: var(--bg-primary);
    padding: 120px 50px 60px;
    min-height: 80vh;
}

.single-artwork-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.single-artwork-layout {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.single-artwork-image {
    flex: 1;
    min-width: 300px;
}

.single-artwork-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.single-artwork-details {
    flex: 1;
    min-width: 300px;
}

.single-artwork-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 48px;
    font-weight: 900;
    color: var(--accent-gold);
    margin-bottom: 30px;
    line-height: 1.2;
}

.single-artwork-sold-badge {
    position: static;
    display: inline-block;
    margin-bottom: 20px;
}

.single-artwork-meta {
    margin-bottom: 30px;
}

.single-artwork-description {
    color: var(--text-light);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.single-artwork-back {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent-gold);
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s;
}

.single-artwork-back:hover {
    color: var(--accent-magenta);
}

.modal-btn {
    text-decoration: none;
    text-align: center;
}

/* --- No products found --- */
.woocommerce-no-products-found .woocommerce-info {
    text-align: center;
    font-size: 20px;
}

/* --- Quantity input --- */
.woocommerce .quantity .qty {
    background: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px;
    width: 60px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
}

/* --- Remove link --- */
.woocommerce a.remove {
    color: var(--accent-magenta) !important;
    font-size: 20px;
}

.woocommerce a.remove:hover {
    background: var(--accent-magenta);
    color: white !important;
}

/* --- Coupon form --- */
.woocommerce .coupon input {
    background: var(--bg-secondary);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

/* --- Shop header layout (result count + ordering) --- */
.woocommerce .woocommerce-result-count {
    float: left;
    margin: 0 0 20px;
}

.woocommerce .woocommerce-ordering {
    float: right;
    margin: 0 0 20px;
}

.woocommerce .woocommerce-ordering::after {
    content: '';
    display: table;
    clear: both;
}

/* Clearfix for shop header area */
.woocommerce ul.products::before {
    content: '';
    display: table;
    clear: both;
}

/* --- Breadcrumb separator fix --- */
.woocommerce .woocommerce-breadcrumb {
    padding-top: 0;
    margin-bottom: 20px;
}

/* --- Shop page layout improvements --- */
.woocommerce .woocommerce-products-header {
    position: static;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: none;
    backdrop-filter: none;
}

/* --- Hide artwork motifs on WooCommerce pages --- */
body.woocommerce-page .artwork-motifs,
body.woocommerce-page .drip-divider {
    display: none !important;
}

/* --- Shop header clearfix (result-count + ordering floats) --- */
.woocommerce .site-main::after {
    content: '';
    display: table;
    clear: both;
}

.woocommerce .woocommerce-result-count {
    margin-bottom: 20px;
}

.woocommerce .woocommerce-ordering {
    margin-bottom: 20px;
}

/* --- Fix default list styling bleed --- */
.woocommerce ul,
.woocommerce ol {
    list-style: none;
    padding-left: 0;
}

/* Re-apply list styles where needed (e.g. product descriptions) */
.woocommerce div.product .woocommerce-product-details__short-description ul,
.woocommerce div.product .woocommerce-product-details__short-description ol,
.woocommerce .woocommerce-Tabs-panel ul,
.woocommerce .woocommerce-Tabs-panel ol {
    list-style: disc;
    padding-left: 20px;
}

/* --- Kill any remaining sidebar/widget default styles --- */
.woocommerce .widget,
.woocommerce aside,
.woocommerce #secondary {
    display: none;
}

/* --- WooCommerce notices (empty cart, login, etc) --- */
.woocommerce .woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* --- My Account page --- */
.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 30px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin-bottom: 5px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(232, 184, 75, 0.1);
    color: var(--accent-gold);
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

/* --- WooCommerce tabs (single product) --- */
.woocommerce div.product .woocommerce-tabs {
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    list-style: none;
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0 0 30px;
    border-bottom: 2px solid var(--border-color);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    display: block;
    padding: 12px 24px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
.woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.woocommerce div.product .woocommerce-tabs .woocommerce-Tabs-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    color: var(--text-light);
}

/* --- WooCommerce Related Products --- */
.woocommerce div.product .related h2,
.woocommerce div.product .upsells h2 {
    font-family: 'Unbounded', sans-serif;
    color: var(--accent-gold);
    font-size: 28px;
    margin-bottom: 20px;
}

/* --- WooCommerce single product image gallery --- */
.woocommerce div.product div.images {
    margin-bottom: 30px;
}

.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    list-style: none;
    flex: 0 0 70px;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.3s;
}

.woocommerce div.product div.images .flex-control-thumbs li img:hover,
.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border-color: var(--accent-gold);
}

/* --- WooCommerce empty cart --- */
.woocommerce .cart-empty {
    text-align: center;
    padding: 60px 20px;
    font-size: 20px;
    color: var(--text-muted);
}

.woocommerce .return-to-shop {
    text-align: center;
    margin-top: 20px;
}

/* --- WooCommerce login/register forms --- */
.woocommerce form.login,
.woocommerce form.register {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

/* --- Admin bar spacing fix --- */
.admin-bar .main-header {
    top: 32px;
}

.admin-bar .mobile-nav {
    top: 92px;
}

.admin-bar .hero {
    margin-top: 112px;
}

.admin-bar .main-content {
    margin-top: 112px;
}

.admin-bar .woocommerce {
    padding-top: 150px;
}

.admin-bar .single-artwork-page {
    padding-top: 150px;
}

@media (max-width: 782px) {
    .admin-bar .main-header {
        top: 46px;
    }
    .admin-bar .mobile-nav {
        top: 106px;
    }
    .admin-bar .hero {
        margin-top: 106px;
    }
    .admin-bar .main-content {
        margin-top: 106px;
    }
    .admin-bar .woocommerce {
        padding-top: 126px;
    }
    .admin-bar .single-artwork-page {
        padding-top: 126px;
    }
}

/* --- WooCommerce link colors --- */
.woocommerce a {
    color: var(--accent-teal);
    transition: color 0.3s;
}

.woocommerce a:hover {
    color: var(--accent-gold);
}

.woocommerce ul.products li.product a {
    color: var(--text-light);
    text-decoration: none;
}

/* Missing class definitions */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 5, 16, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    list-style: none;
}

.nav-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--accent-gold);
}

.main-content {
    margin-top: 80px;
}

.mobile-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu li {
    margin-bottom: 10px;
}

.mobile-menu li a {
    color: var(--text-light);
    text-decoration: none;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    transition: color 0.3s;
}

.mobile-menu li a:hover {
    color: var(--accent-gold);
}

.influence-tags {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.contact-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 4px;
    opacity: 0.7;
}

.contact-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.exhibition-venue {
    color: var(--accent-teal);
    margin-bottom: 1rem;
}

.cart-emoji {
    font-size: 1.2rem;
}

/* ===========================
   RESPONSIVE MEDIA QUERIES
   =========================== */

/* =============================================================================
   ULTRA-LARGE SCREENS & TV (2560px+ / 40"+ monitors, 4K)
   ============================================================================= */
@media (min-width: 2560px) {
    html {
        font-size: 20px;
    }

    .main-header {
        padding: 0 80px;
        height: 100px;
    }

    .logo {
        font-size: 2.4rem;
    }

    .nav-menu li a {
        font-size: 18px;
    }

    .hero {
        margin-top: 100px;
    }

    .hero-content {
        max-width: 2000px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 160px;
    }

    .hero-subtitle {
        font-size: 42px;
    }

    .hero-cta {
        padding: 24px 70px;
        font-size: 20px;
    }

    .marquee-text {
        font-size: 240px;
    }

    .section-title {
        font-size: 80px;
        margin-bottom: 80px;
    }

    .featured-section,
    .gallery-section,
    .exhibitions-section {
        padding: 140px 100px;
    }

    .featured-carousel {
        max-width: 2200px;
        margin: 0 auto;
    }

    .carousel-item {
        flex: 0 0 450px;
    }

    .masonry-grid {
        max-width: 2200px;
        margin: 0 auto 60px;
        grid-template-columns: repeat(5, 1fr);
        gap: 40px;
    }

    .gallery-view-all-btn {
        font-size: 1.2rem;
        padding: 20px 60px;
    }

    .artwork-title {
        font-size: 24px;
    }

    .artwork-price {
        font-size: 22px;
    }

    .about-section {
        max-width: 2000px;
        padding: 140px 100px;
    }

    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 100px;
    }

    .about-text h3 {
        font-size: 42px;
    }

    .about-text p {
        font-size: 20px;
    }

    .about-image {
        height: 800px;
    }

    .exhibitions-grid {
        max-width: 2000px;
        margin: 0 auto;
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }

    .exhibition-card {
        padding: 40px;
    }

    .exhibition-title {
        font-size: 2rem;
    }

    .contact-section {
        max-width: 1200px;
        padding: 140px 100px;
    }

    .contact-content h3 {
        font-size: 60px;
    }

    .contact-content p {
        font-size: 22px;
    }

    .contact-link {
        padding: 20px 40px;
        font-size: 16px;
    }

    footer {
        padding: 60px 100px;
    }

    footer p {
        font-size: 18px;
    }

    .modal-content {
        max-width: 1200px;
    }

    .modal-title {
        font-size: 2.8rem;
    }

    .modal-detail-label {
        font-size: 14px;
    }

    .modal-detail-value {
        font-size: 1.2rem;
    }

    /* WooCommerce on ultra-large */
    .woocommerce {
        padding: 140px 100px 100px;
        max-width: 2400px;
        margin: 0 auto;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)) !important;
        gap: 40px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 400px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 60px;
    }
}

/* =============================================================================
   LARGE SCREENS (1920px - 2559px / Large desktop, QHD)
   ============================================================================= */
@media (min-width: 1920px) and (max-width: 2559px) {
    html {
        font-size: 18px;
    }

    .main-header {
        padding: 0 60px;
        height: 90px;
    }

    .hero {
        margin-top: 90px;
    }

    .hero-content {
        max-width: 1600px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 130px;
    }

    .hero-subtitle {
        font-size: 36px;
    }

    .marquee-text {
        font-size: 200px;
    }

    .section-title {
        font-size: 72px;
    }

    .featured-section,
    .gallery-section,
    .exhibitions-section {
        padding: 120px 80px;
    }

    .featured-carousel {
        max-width: 1800px;
        margin: 0 auto;
    }

    .carousel-item {
        flex: 0 0 400px;
    }

    .masonry-grid {
        max-width: 1800px;
        margin: 0 auto 60px;
        grid-template-columns: repeat(4, 1fr);
        gap: 35px;
    }

    .about-section {
        max-width: 1800px;
        padding: 120px 80px;
    }

    .about-content {
        max-width: 1600px;
        margin: 0 auto;
    }

    .about-text h3 {
        font-size: 38px;
    }

    .about-text p {
        font-size: 18px;
    }

    .about-image {
        height: 700px;
    }

    .exhibitions-grid {
        max-width: 1600px;
        margin: 0 auto;
    }

    .contact-section {
        max-width: 1000px;
    }

    .contact-content h3 {
        font-size: 54px;
    }

    footer {
        padding: 50px 80px;
    }

    /* WooCommerce on large screens */
    .woocommerce {
        padding: 120px 80px 80px;
        max-width: 2000px;
        margin: 0 auto;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 350px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 54px;
    }
}

/* =============================================================================
   STANDARD DESKTOP (1200px - 1919px) — base styles already cover this
   ============================================================================= */

/* =============================================================================
   SMALL DESKTOP / LARGE TABLET LANDSCAPE (1024px - 1199px)
   ============================================================================= */
@media (max-width: 1199px) {
    .hero-title {
        font-size: 80px;
    }

    .hero-subtitle {
        font-size: 28px;
    }

    .marquee-text {
        font-size: 140px;
    }

    .section-title {
        font-size: 48px;
    }

    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .masonry-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }

    .about-content {
        gap: 40px;
    }

    .about-image {
        height: 450px;
    }

    .exhibitions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .featured-section,
    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 80px 40px;
    }

    .carousel-item {
        flex: 0 0 300px;
    }

    /* WooCommerce */
    .woocommerce {
        padding: 100px 40px 60px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 40px;
    }
}

/* =============================================================================
   TABLET PORTRAIT & SMALL LAPTOP (768px - 1023px)
   ============================================================================= */
@media (max-width: 1023px) {
    .main-header {
        padding: 0 30px;
        height: 70px;
    }

    .hero {
        margin-top: 70px;
    }

    .main-content {
        margin-top: 70px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-subtitle {
        font-size: 24px;
    }

    .hero-cta {
        padding: 16px 40px;
        font-size: 14px;
    }

    .marquee-text {
        font-size: 100px;
    }

    .section-title {
        font-size: 40px;
        margin-bottom: 40px;
    }

    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .masonry-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        height: 400px;
    }

    .about-text h3 {
        font-size: 28px;
    }

    .exhibitions-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        max-width: 700px;
        width: 92%;
    }

    .cart-panel {
        width: 350px;
        right: -350px;
    }

    /* Single artwork */
    .single-artwork-page {
        padding: 90px 30px 50px;
    }

    .single-artwork-layout {
        gap: 40px;
    }

    .single-artwork-title {
        font-size: 36px;
    }

    /* WooCommerce */
    .woocommerce {
        padding: 90px 30px 50px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
        gap: 20px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 260px;
    }

    .woocommerce-cart .cart_totals,
    .woocommerce-checkout #order_review {
        padding: 20px;
    }
}

/* =============================================================================
   MOBILE LANDSCAPE & SMALL TABLET (768px breakpoint — hamburger activates)
   ============================================================================= */
@media (max-width: 767px) {
    /* Header */
    .main-header {
        padding: 0 20px;
        height: 60px;
    }

    .logo {
        font-size: 1.3rem;
    }

    .main-nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .cart-icon {
        margin-left: auto;
        margin-right: 15px;
    }

    .hero {
        margin-top: 60px;
    }

    .main-content {
        margin-top: 60px;
    }

    .mobile-nav {
        top: 60px;
    }

    /* Hero */
    .hero-title {
        font-size: 48px;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 22px;
    }

    .hero-cta {
        padding: 14px 36px;
        font-size: 13px;
    }

    /* Marquee */
    .marquee-text {
        font-size: 70px;
    }

    /* Sections */
    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .featured-section,
    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 60px 20px;
    }

    /* Featured carousel */
    .carousel-item {
        flex: 0 0 260px;
    }

    /* Gallery */
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .masonry-item:nth-child(1),
    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }

    .artwork-title {
        font-size: 16px;
    }

    .artwork-price {
        font-size: 15px;
    }

    .buy-btn, .inquire-btn {
        font-size: 10px;
        padding: 8px 10px;
    }

    .gallery-view-all-btn {
        padding: 14px 36px;
        font-size: 0.85rem;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-image {
        height: 350px;
    }

    .about-text h3 {
        font-size: 26px;
    }

    .about-text p {
        font-size: 15px;
    }

    /* Exhibitions */
    .exhibitions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .exhibition-card {
        padding: 24px;
    }

    .exhibition-title {
        font-size: 1.3rem;
    }

    /* Contact */
    .contact-content h3 {
        font-size: 32px;
    }

    .contact-content p {
        font-size: 16px;
    }

    .contact-links {
        gap: 15px;
    }

    .contact-link {
        padding: 12px 24px;
        font-size: 13px;
    }

    /* Modal */
    .modal-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px;
        width: 95%;
        max-height: 90vh;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .modal-image img {
        max-height: 50vh;
    }

    .modal-title {
        font-size: 1.6rem;
    }

    /* Cart */
    .cart-panel {
        width: 100%;
        right: -100%;
    }

    /* Footer */
    footer {
        padding: 30px 20px;
    }

    footer p {
        font-size: 13px;
    }

    /* Toast */
    .toast-notification {
        right: 15px;
        left: 15px;
        width: auto;
        max-width: none;
    }

    /* Single artwork */
    .single-artwork-page {
        padding: 80px 20px 40px;
    }

    .single-artwork-layout {
        flex-direction: column;
        gap: 30px;
    }

    .single-artwork-image {
        min-width: 100%;
    }

    .single-artwork-details {
        min-width: 100%;
    }

    .single-artwork-title {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .single-artwork-description {
        font-size: 16px;
    }

    .single-artwork-back {
        font-size: 12px;
        margin-top: 25px;
    }

    /* WooCommerce */
    .woocommerce {
        padding: 80px 20px 40px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 30px;
        margin-bottom: 25px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 220px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        padding: 12px 15px 4px;
    }

    .woocommerce ul.products li.product .price,
    .woocommerce .price {
        font-size: 15px;
        padding: 0 15px 8px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button {
        margin: 0 15px 15px;
        padding: 8px 15px;
        font-size: 10px;
    }

    .woocommerce table thead th {
        font-size: 11px;
        padding: 10px;
    }

    .woocommerce table tbody td {
        padding: 10px;
        font-size: 14px;
    }

    .woocommerce-cart .cart_totals,
    .woocommerce-checkout #order_review {
        padding: 15px;
        border-radius: 8px;
    }

    .woocommerce div.product .product_title {
        font-size: 28px;
    }

    /* WooCommerce single product */
    .woocommerce div.product div.images,
    .woocommerce div.product div.summary {
        float: none !important;
        width: 100% !important;
    }
}

/* =============================================================================
   MOBILE PORTRAIT (max-width: 479px)
   ============================================================================= */
@media (max-width: 479px) {
    html {
        font-size: 14px;
    }

    /* Header */
    .main-header {
        padding: 0 15px;
        height: 56px;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

    .cart-badge {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }

    .cart-emoji {
        font-size: 1.1rem;
    }

    .mobile-nav {
        top: 56px;
    }

    .mobile-nav a,
    .mobile-menu li a {
        padding: 1.2rem;
        font-size: 16px;
    }

    /* Hero */
    .hero {
        margin-top: 56px;
        height: 85vh;
    }

    .main-content {
        margin-top: 56px;
    }

    .hero-title {
        font-size: 36px;
        letter-spacing: 0;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
        padding: 0 15px;
    }

    .hero-cta {
        padding: 12px 28px;
        font-size: 12px;
        letter-spacing: 1px;
    }

    /* Marquee */
    .marquee-text {
        font-size: 44px;
        letter-spacing: 10px;
    }

    .marquee-section {
        padding: 25px 0;
    }

    /* Sections */
    .section-title {
        font-size: 26px;
        margin-bottom: 25px;
    }

    .featured-section,
    .gallery-section,
    .about-section,
    .exhibitions-section,
    .contact-section {
        padding: 40px 15px;
    }

    /* Featured carousel */
    .featured-carousel {
        gap: 12px;
    }

    .carousel-item {
        flex: 0 0 200px;
        aspect-ratio: 3 / 4;
    }

    /* Gallery */
    .masonry-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .masonry-item:nth-child(1),
    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }

    .masonry-item-content {
        position: relative;
        transform: none;
        opacity: 1;
        background: var(--bg-secondary);
        padding: 15px;
    }

    .masonry-item:hover .masonry-item-content {
        transform: none;
    }

    .artwork-title {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .artwork-price {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .artwork-buttons {
        gap: 8px;
    }

    .buy-btn, .inquire-btn {
        font-size: 10px;
        padding: 8px;
    }

    .sold-badge {
        top: 10px;
        right: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }

    .gallery-view-all-btn {
        padding: 12px 30px;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    /* About */
    .about-content {
        gap: 20px;
    }

    .about-text h3 {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .about-image {
        height: 280px;
        border-radius: 8px;
    }

    .influences,
    .influence-tags {
        gap: 8px;
    }

    .influence-tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    /* Exhibitions */
    .exhibitions-grid {
        gap: 15px;
    }

    .exhibition-card {
        padding: 20px;
        border-radius: 8px;
    }

    .exhibition-title {
        font-size: 1.1rem;
    }

    .exhibition-period,
    .exhibition-date {
        font-size: 12px;
    }

    /* Contact */
    .contact-content h3 {
        font-size: 26px;
    }

    .contact-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .contact-links {
        gap: 10px;
        flex-direction: column;
    }

    .contact-link {
        padding: 12px 20px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    /* Modal */
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding: 15px;
        padding-top: 50px;
    }

    .modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 18px;
        z-index: 10;
    }

    .modal-image img {
        max-height: 40vh;
    }

    .modal-title {
        font-size: 1.3rem;
    }

    .modal-detail-label {
        font-size: 11px;
    }

    .modal-detail-value {
        font-size: 0.9rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-btn {
        padding: 12px;
        font-size: 12px;
    }

    /* Cart */
    .cart-panel-header {
        padding: 15px;
    }

    .cart-panel-title {
        font-size: 1.2rem;
    }

    .cart-item {
        gap: 10px;
    }

    .cart-item img {
        width: 60px;
        height: 60px;
    }

    .cart-item-title {
        font-size: 0.85rem;
    }

    .cart-item-price {
        font-size: 0.8rem;
    }

    .cart-total-value {
        font-size: 1.3rem;
    }

    /* Footer */
    footer {
        padding: 25px 15px;
    }

    footer p {
        font-size: 12px;
    }

    /* Drip divider */
    .drip-divider {
        height: 40px;
        margin: 1rem 0;
    }

    /* Cookie consent */
    .cookie-consent {
        flex-direction: column;
        padding: 15px;
        text-align: center;
    }

    .cookie-consent p {
        font-size: 0.8rem;
    }

    /* Single artwork */
    .single-artwork-page {
        padding: 70px 15px 30px;
    }

    .single-artwork-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .single-artwork-description {
        font-size: 15px;
        line-height: 1.7;
    }

    /* WooCommerce */
    .woocommerce {
        padding: 70px 15px 30px;
    }

    .woocommerce-products-header__title,
    .woocommerce .page-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }

    .woocommerce ul.products li.product a img,
    .woocommerce ul.products li.product img {
        height: 250px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 14px;
        padding: 12px 15px 4px;
    }

    .woocommerce ul.products li.product .price,
    .woocommerce .price {
        font-size: 16px;
        padding: 0 15px 8px;
    }

    .woocommerce ul.products li.product .button,
    .woocommerce ul.products li.product a.add_to_cart_button {
        margin: 0 15px 15px;
        padding: 10px;
        font-size: 11px;
    }

    .woocommerce .woocommerce-result-count,
    .woocommerce .woocommerce-ordering {
        font-size: 12px;
        width: 100%;
        text-align: center;
        margin-bottom: 10px;
    }

    .woocommerce .woocommerce-ordering select {
        width: 100%;
    }

    .woocommerce table thead th {
        font-size: 10px;
        padding: 8px;
        letter-spacing: 0;
    }

    .woocommerce table tbody td {
        padding: 8px;
        font-size: 13px;
    }

    .woocommerce-cart .cart_totals,
    .woocommerce-checkout #order_review {
        padding: 15px;
        border-radius: 8px;
    }

    .woocommerce-cart .cart_totals h2,
    .woocommerce-checkout h3 {
        font-size: 20px;
    }

    .woocommerce div.product .product_title {
        font-size: 24px;
    }

    .woocommerce div.product .woocommerce-product-details__short-description {
        font-size: 16px;
    }

    .woocommerce form input[type="text"],
    .woocommerce form input[type="email"],
    .woocommerce form input[type="tel"],
    .woocommerce form input[type="number"],
    .woocommerce form input[type="password"],
    .woocommerce form textarea,
    .woocommerce form select {
        padding: 10px 12px;
        font-size: 16px; /* Prevents iOS zoom on focus */
    }

    .woocommerce form label {
        font-size: 11px;
    }

    .woocommerce button.button,
    .woocommerce a.button,
    .woocommerce input.button {
        padding: 10px 20px;
        font-size: 12px;
        width: 100%;
        text-align: center;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* WooCommerce messages */
    .woocommerce-message,
    .woocommerce-info,
    .woocommerce-error {
        padding: 12px 15px;
        font-size: 15px;
    }
}

/* =============================================================================
   VERY SMALL SCREENS (max-width: 359px — iPhone SE, small Android)
   ============================================================================= */
@media (max-width: 359px) {
    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-cta {
        padding: 10px 22px;
        font-size: 11px;
    }

    .section-title {
        font-size: 22px;
    }

    .marquee-text {
        font-size: 36px;
    }

    .masonry-grid {
        gap: 10px;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .contact-content h3 {
        font-size: 22px;
    }
}

/* =============================================================================
   LANDSCAPE ORIENTATION FIXES (phones held sideways)
   ============================================================================= */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 30px 30px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .hero-cta {
        padding: 10px 24px;
        font-size: 12px;
    }

    .modal-content {
        grid-template-columns: 1fr 1fr;
        max-height: 100vh;
        padding: 15px;
    }

    .modal-image img {
        max-height: 60vh;
    }

    .modal-close {
        top: 8px;
        right: 8px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
}

/* =============================================================================
   iPAD SPECIFIC (810px x 1080px / 820px x 1180px typical)
   ============================================================================= */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .masonry-item:nth-child(1) {
        grid-column: span 2;
    }

    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .exhibitions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    /* iPad Pro landscape */
    .masonry-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .masonry-item:nth-child(1) {
        grid-column: span 2;
        grid-row: span 2;
    }

    .masonry-item:nth-child(3),
    .masonry-item:nth-child(5),
    .masonry-item:nth-child(8) {
        grid-column: span 1;
        grid-row: auto;
    }
}

/* =============================================================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================================================= */
@media (hover: none) and (pointer: coarse) {
    /* Show artwork info always on touch (no hover) */
    .masonry-item-content {
        position: relative;
        transform: none;
        opacity: 1;
        background: var(--bg-secondary);
        padding: 15px 20px;
    }

    .masonry-item:hover .masonry-item-content {
        transform: none;
    }

    /* Disable hover-only effects on touch */
    .masonry-item:hover .masonry-img-wrapper::before,
    .masonry-item:hover .masonry-img-wrapper::after {
        opacity: 0;
    }

    .masonry-item:hover .masonry-img {
        transform: none;
    }

    .masonry-item:hover {
        transform: none;
    }

    .woocommerce ul.products li.product:hover {
        transform: none;
    }

    .exhibition-card:hover {
        transform: none;
    }

    /* Larger tap targets */
    .buy-btn, .inquire-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal-btn {
        min-height: 48px;
    }

    .contact-link {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-view-all-btn {
        min-height: 48px;
    }

    /* Disable cursor trail on touch */
    .cursor-trail {
        display: none !important;
    }
}

/* =============================================================================
   ACCESSIBILITY
   ============================================================================= */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent-gold);
    color: var(--bg-primary);
    padding: 0.5rem 1rem;
    z-index: 99999;
    font-size: 1rem;
    text-decoration: none;
    font-weight: 700;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    clip: auto;
    display: block;
    height: auto;
    width: auto;
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 100000;
}

/* =============================================================================
   COOKIE CONSENT BANNER (GDPR)
   ============================================================================= */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 30, 0.95);
    border-top: 1px solid var(--accent-gold);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 99999;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
}

.cookie-consent p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
    min-width: 200px;
}

.cookie-accept,
.cookie-decline {
    padding: 0.5rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cookie-accept {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.cookie-accept:hover {
    background: #d4c044;
}

.cookie-decline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--text-secondary);
}

.cookie-decline:hover {
    border-color: var(--accent-magenta);
    color: var(--accent-magenta);
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .hero-canvas { display: none; }
    .cursor-trail { display: none; }
    .artwork-motifs { display: none; }
    .marquee-text { animation: none !important; }
}

/* Print Styles */
@media print {
    .main-header, .mobile-nav, .page-loader, .cookie-consent,
    .artwork-motifs, .drip-divider, .stripe-accent, .crown-divider,
    .cart-panel, .cart-overlay, .modal, .hero-canvas, .cursor-trail,
    .toast-notification, .hamburger, .cart-icon {
        display: none !important;
    }
    body { background: white; color: black; }
    .hero { height: auto; margin-top: 0; }
    .hero-title { font-size: 36px; color: black; text-shadow: none; }
    .masonry-grid { grid-template-columns: repeat(3, 1fr); }
    .about-content { grid-template-columns: 1fr; }
    a { color: black; }
    a::after { content: " (" attr(href) ")"; font-size: 10px; }
}
