/**
 * Charles Francis Gallery - Light & Minimal Theme
 *
 * A sophisticated, gallery-like aesthetic with:
 * - Generous whitespace
 * - Elegant typography (Playfair Display + Inter)
 * - Artwork as the hero
 * - Museum-quality presentation
 *
 * @version 1.0.0
 */

/* ========================================================================
   Google Fonts Import
   ======================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================================================
   CSS Custom Properties (Variables)
   ======================================================================== */
:root {
    /* Colors - Light & Minimal Palette */
    --gallery-white: #ffffff;
    --gallery-cream: #faf9f7;
    --gallery-light: #f5f4f2;
    --gallery-border: #e8e6e3;
    --gallery-muted: #9a9590;

    /* Text Colors */
    --gallery-text: #2c2825;
    --gallery-text-light: #5a5652;
    --gallery-text-muted: #8a8682;

    /* Accent Colors */
    --gallery-gold: #b8860b;
    --gallery-gold-light: #d4a84b;
    --gallery-gold-dark: #8b6508;
    --gallery-blue: #3d5a80;
    --gallery-blue-light: #5c7a9e;

    /* Status Colors */
    --gallery-success: #2d6a4f;
    --gallery-warning: #bc6c25;
    --gallery-danger: #9b2226;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing Scale */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    --space-5xl: 8rem;

    /* Layout */
    --container-max: 1400px;
    --container-narrow: 900px;
    --container-wide: 1600px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.15);

    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

/* ========================================================================
   Base Styles - Gallery Theme Override
   ======================================================================== */
.gallery-theme {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gallery-text);
    background-color: var(--gallery-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.gallery-theme * {
    box-sizing: border-box;
}

/* ========================================================================
   Typography - Elegant & Refined
   ======================================================================== */
.gallery-theme h1,
.gallery-theme h2,
.gallery-theme h3,
.gallery-theme h4,
.gallery-theme h5,
.gallery-theme h6,
.gallery-heading {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.3;
    color: var(--gallery-text);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.gallery-theme h1,
.gallery-h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
}

.gallery-theme h2,
.gallery-h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 400;
}

.gallery-theme h3,
.gallery-h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.gallery-theme h4,
.gallery-h4 {
    font-size: 1.25rem;
}

.gallery-theme h5,
.gallery-h5 {
    font-size: 1.125rem;
}

.gallery-theme h6,
.gallery-h6 {
    font-size: 1rem;
    font-weight: 600;
}

/* Display headings - extra large */
.gallery-display-1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.gallery-display-2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

/* Italic accent for headings */
.gallery-heading-accent {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

/* Body text */
.gallery-lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--gallery-text-light);
}

.gallery-text-sm {
    font-size: 0.875rem;
}

.gallery-text-xs {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* ========================================================================
   Links & Buttons
   ======================================================================== */
.gallery-theme a {
    color: var(--gallery-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.gallery-theme a:hover {
    color: var(--gallery-gold);
}

/* Preserve Bootstrap button text colors inside gallery theme */
.gallery-theme a.btn-dark,
.gallery-theme a.btn-dark:hover {
    color: #fff;
}

.gallery-theme a.btn-outline-secondary:hover {
    color: #fff;
}

/* Primary Button - Gold */
.gallery-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-theme .gallery-btn-primary {
    background-color: var(--gallery-gold);
    color: var(--gallery-white);
}

.gallery-theme .gallery-btn-primary:hover {
    background-color: var(--gallery-gold-dark);
    color: var(--gallery-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Secondary Button - Outline */
.gallery-btn-secondary {
    background-color: transparent;
    color: var(--gallery-text);
    border: 2px solid var(--gallery-text);
}

.gallery-btn-secondary:hover {
    background-color: var(--gallery-text);
    color: var(--gallery-white);
}

/* Ghost Button - Minimal */
.gallery-btn-ghost {
    background-color: transparent;
    color: var(--gallery-text);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--gallery-text);
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
}

.gallery-btn-ghost:hover {
    color: var(--gallery-gold);
    border-color: var(--gallery-gold);
}

/* Large Button */
.gallery-btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1rem;
}

/* ========================================================================
   Layout Containers
   ======================================================================== */
.gallery-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.gallery-container-narrow {
    max-width: var(--container-narrow);
}

.gallery-container-wide {
    max-width: var(--container-wide);
}

/* Full-width background with contained content */
.gallery-section {
    padding: var(--space-4xl) 0;
}

.gallery-section-sm {
    padding: var(--space-2xl) 0;
}

.gallery-section-lg {
    padding: var(--space-5xl) 0;
}

/* Background variations */
.gallery-bg-white {
    background-color: var(--gallery-white);
}

.gallery-bg-cream {
    background-color: var(--gallery-cream);
}

.gallery-bg-light {
    background-color: var(--gallery-light);
}

.gallery-bg-dark {
    background-color: var(--gallery-text);
    color: var(--gallery-white);
}

.gallery-bg-dark h1,
.gallery-bg-dark h2,
.gallery-bg-dark h3,
.gallery-bg-dark h4,
.gallery-bg-dark h5,
.gallery-bg-dark h6 {
    color: var(--gallery-white);
}

/* ========================================================================
   Header — Walmart-Style: Search Bar + Category Bar
   ======================================================================== */

/* Row 1: Logo + Search + Icons — Dark header like Walmart */
.gallery-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--gallery-text);
    border-bottom: none;
    transition: box-shadow var(--transition-normal);
}

.gallery-header.scrolled {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.gallery-header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-lg);
    padding: 10px 0;
}

/* Logo — white on dark header */
.gallery-header .gallery-logo {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.01em;
    white-space: nowrap;
    flex-shrink: 0;
}

.gallery-header .gallery-logo:hover {
    color: var(--gallery-gold-light);
}

.gallery-logo-img {
    height: 66px;
    width: auto;
}

.gallery-logo-svg {
    height: 42px;
    width: auto;
}

/* Search Bar — dominant center */
.gallery-search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 640px;
    justify-self: center;
}

.gallery-search-input {
    width: 100%;
    padding: 11px 48px 11px 18px;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    border: none;
    border-radius: 5px;
    background: var(--gallery-white);
    color: var(--gallery-text);
    outline: none;
    transition: box-shadow var(--transition-fast);
}

.gallery-search-input:focus {
    box-shadow: 0 0 0 3px var(--gallery-gold-light);
}

.gallery-search-input::placeholder {
    color: var(--gallery-text-muted);
}

.gallery-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gallery-gold);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.gallery-search-btn svg {
    stroke: var(--gallery-white);
}

.gallery-search-btn:hover {
    background: var(--gallery-text);
}

/* Utility Icons — small, right */
.gallery-header-icons {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    justify-self: end;
}

/* "Sell Your Art" CTA Button in Header */
.gallery-header .gallery-sell-art-btn {
    background-color: #ac861d;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.gallery-header .gallery-sell-art-btn:hover {
    opacity: 0.85;
    color: #fff;
}

.gallery-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gallery-white);
    text-decoration: none;
    padding: 6px;
    border-radius: 50%;
    transition: color var(--transition-fast);
    position: relative;
}

.gallery-header-icon:hover {
    color: var(--gallery-gold-light);
}

.gallery-header-icon svg {
    stroke: var(--gallery-white);
    transition: stroke var(--transition-fast);
}

.gallery-header-icon:hover svg {
    stroke: var(--gallery-gold-light);
}

/* Home icon in header — gold by default */
.gallery-header-home svg {
    stroke: var(--gallery-gold-light);
}
.gallery-header-home:hover svg {
    stroke: #fff;
}

/* Cart Badge */
.gallery-cart-badge,
.gallery-nav-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: var(--gallery-gold);
    color: var(--gallery-white);
    font-size: 0.625rem;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* ========================================================================
   Category Bar — Row 2: Horizontal Department Links
   ======================================================================== */
.gallery-category-bar {
    background: #353535;
    border-bottom: 1px solid var(--gallery-border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    /* Stick the medium nav directly below the sticky header so it stays visible on
       scroll. top must equal the rendered .gallery-header height (currently 86px —
       measured; driven by the logo). If the logo size changes, update this offset. */
    position: sticky;
    top: 86px;
    z-index: 999;
}

/* Scroll arrow buttons — full-height dark rectangles with gold chevrons */
.gallery-category-bar .scroll-arrow-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    padding: 0;
    border: 0;
    background: #b2862a;
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(0,0,0,0.25);
    cursor: pointer;
    z-index: 2;
    transition: opacity 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.gallery-category-bar .scroll-arrow-btn:hover,
.gallery-category-bar .scroll-arrow-btn:focus {
    background: #8f6a1e;
    color: #fff;
    outline: none;
}
.gallery-category-bar .scroll-arrow-prev { left: 0; border-radius: 0 6px 6px 0; }
.gallery-category-bar .scroll-arrow-next { right: 0; border-radius: 6px 0 0 6px; }

/* Default state (prev hidden until user scrolls) */
.gallery-category-bar .scroll-arrow-prev { opacity: 0; pointer-events: none; }
.gallery-category-bar .scroll-arrow-next { opacity: 1; }

/* JS-toggled classes for scroll position awareness */
/* At start: next visible, prev hidden */
.gallery-category-bar.scrolled-start .scroll-arrow-prev { opacity: 0; pointer-events: none; }
.gallery-category-bar.scrolled-start .scroll-arrow-next { opacity: 1; pointer-events: auto; }
/* In middle: both visible */
.gallery-category-bar.scrolled-middle .scroll-arrow-prev,
.gallery-category-bar.scrolled-middle .scroll-arrow-next { opacity: 1; pointer-events: auto; }
/* At end: prev visible, next hidden */
.gallery-category-bar.scrolled-end .scroll-arrow-prev { opacity: 1; pointer-events: auto; }
.gallery-category-bar.scrolled-end .scroll-arrow-next { opacity: 0; pointer-events: none; }
/* No overflow: both hidden */
.gallery-category-bar.no-overflow .scroll-arrow-prev,
.gallery-category-bar.no-overflow .scroll-arrow-next { opacity: 0; pointer-events: none; }

.gallery-category-links {
    display: flex;
    align-items: center;
    /* "safe center" centers when everything fits, but falls back to start
       alignment when the row overflows — otherwise centering clips the first
       item off the left edge and it can't be scrolled back into view. */
    justify-content: safe center;
    gap: var(--space-xs);
    padding: var(--space-sm) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-category-links::-webkit-scrollbar {
    display: none;
}

.gallery-category-bar .gallery-cat-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 5px;
    border: 1px solid transparent;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

/* Force no color changes on touch — override :hover, :active, :focus */
@media (hover: none), (pointer: coarse) {
    .gallery-category-bar .gallery-cat-link,
    .gallery-category-bar .gallery-cat-link:hover,
    .gallery-category-bar .gallery-cat-link:active,
    .gallery-category-bar .gallery-cat-link:focus {
        color: #fff !important;
        background: transparent !important;
        border-color: transparent !important;
        outline: none !important;
    }
    .gallery-cat-link.gallery-cat-action,
    .gallery-cat-link.gallery-cat-action:hover,
    .gallery-cat-link.gallery-cat-action:active,
    .gallery-cat-link.gallery-cat-action:focus {
        background-color: #666664 !important;
        color: #fff !important;
    }
    /* Preserve the gold text for active page */
    .gallery-category-bar .gallery-cat-link.active,
    .gallery-category-bar .gallery-cat-link.active:hover,
    .gallery-category-bar .gallery-cat-link.active:active,
    .gallery-cat-link.gallery-cat-action.active,
    .gallery-cat-link.gallery-cat-action.active:hover,
    .gallery-cat-link.gallery-cat-action.active:active {
        color: #d4a84b !important;
        background: transparent !important;
    }
}

/* Hover effects — desktop only */
@media (hover: hover) and (pointer: fine) {
    .gallery-category-bar .gallery-cat-link {
        transition: all var(--transition-fast);
    }
    .gallery-category-bar .gallery-cat-link:hover {
        background: var(--gallery-light);
        border-color: var(--gallery-text-muted);
        color: var(--gallery-text);
    }
    .gallery-cat-link.gallery-cat-action:hover {
        opacity: 0.85;
        background-color: #555;
    }
}

/* Active page indicator — gold text (both mobile and desktop) */
.gallery-cat-link.active {
    color: #d4a84b;
    font-weight: 600;
    background: transparent;
    border-color: transparent;
}

/* Action links (Our Artists, Services) — distinct from category pills */
.gallery-cat-link.gallery-cat-action {
    background-color: #666664;
    color: #fff;
    border: none;
}
.gallery-cat-link.gallery-cat-action.active {
    color: #d4a84b;
    background: transparent;
    border: none;
}

/* "Our Artists" — gold action link (brand CTA, in line with the theme).
   3-class + !important beats the grey .gallery-cat-action !important rule that
   lives in the mobile media query, so it stays gold at every breakpoint/state. */
.gallery-cat-link.gallery-cat-action.gallery-cat-gold,
.gallery-cat-link.gallery-cat-action.gallery-cat-gold:active,
.gallery-cat-link.gallery-cat-action.gallery-cat-gold:focus,
.gallery-cat-link.gallery-cat-action.gallery-cat-gold.active {
    background-color: var(--gallery-gold) !important;
    color: #fff !important;
}
.gallery-cat-link.gallery-cat-action.gallery-cat-gold:hover {
    background-color: var(--gallery-gold-dark) !important;
    color: #fff !important;
}

/* Sticky Home Button — appears when category bar scrolls out of view */
.gallery-sticky-home {
    position: fixed;
    top: 60px;
    left: 16px;
    z-index: 999;
    background: #353535;
    color: #fff;
    padding: 6px 16px;
    border-radius: 0 0 6px 6px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.gallery-sticky-home.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    color: var(--gallery-gold-light);
}
.gallery-sticky-home:hover {
    color: #fff;
}

/* ========================================================================
   Storefront Carousel — critical containment (prevents FOUC)
   Full styles are in gallery-storefront.php inline <style>
   ======================================================================== */
.sf-carousel-row {
    height: 260px;
    overflow: hidden;
}
.sf-carousel-track {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.sf-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: translateX(100%);
}
.sf-carousel-slide.active {
    transform: translateX(0);
}
.sf-carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================================================
   Hero Section - Cinematic
   ======================================================================== */
.gallery-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--gallery-light);
}

.gallery-hero-full {
    min-height: 100vh;
}

.gallery-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.gallery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgb(26 24 23 / 47%) 0%,
        rgba(44, 40, 37, 0.85) 100%
    );
}

/* Services Page Hero */
.gallery-services-hero {
    padding: var(--space-5xl) 0;
    background: linear-gradient(135deg, rgb(26 24 23 / 47%) 0%, rgba(44, 40, 37, 0.85) 100%), url(../images/hero/hero-services-artist-studio.jpg) center / cover no-repeat;
}

.gallery-hero-overlay-dark {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.gallery-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: var(--space-2xl);
    color: #fff;
}

.gallery-hero-title {
    margin-bottom: var(--space-lg);
    color: #fff !important;
}

.gallery-hero .gallery-display-2 {
    color: #fff;
}

.gallery-hero-subtitle {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-2xl);
}

.gallery-hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Ken Burns Animation for Hero Images */
@keyframes gallery-ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }
    100% {
        transform: scale(1.1) translate(-2%, -2%);
    }
}

.gallery-hero-image.ken-burns {
    animation: gallery-ken-burns 20s ease-in-out infinite alternate;
}

/* ========================================================================
   Trust Signals Strip (Homepage)
   ======================================================================== */
.gallery-trust-strip-section {
    background-color: var(--gallery-white);
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-trust-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.gallery-trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.9375rem;
    color: var(--gallery-text);
}

.gallery-trust-badge svg {
    width: 24px;
    height: 24px;
    color: var(--gallery-gold);
    flex-shrink: 0;
}

.gallery-trust-badge strong {
    color: var(--gallery-text);
}

@media (max-width: 992px) {
    .gallery-trust-badges {
        gap: var(--space-xl);
    }
}

@media (max-width: 576px) {
    .gallery-trust-badges {
        flex-direction: column;
        gap: var(--space-md);
    }

    .gallery-trust-badge {
        justify-content: center;
    }
}

/* ========================================================================
   Product/Artwork Grid
   ======================================================================== */
.gallery-grid {
    display: grid;
    gap: var(--space-xl);
    justify-content: center;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 280px));
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 260px));
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, minmax(0, 240px));
}

/* Responsive grid */
@media (max-width: 1200px) {
    .gallery-grid-4 {
        grid-template-columns: repeat(3, minmax(0, 260px));
    }
}

@media (max-width: 992px) {
    .gallery-grid-3,
    .gallery-grid-4 {
        grid-template-columns: repeat(2, minmax(0, 280px));
    }
}

@media (max-width: 576px) {
    .gallery-grid-2,
    .gallery-grid-3,
    .gallery-grid-4 {
        grid-template-columns: minmax(0, 320px);
    }
}

/* ========================================================================
   Artwork Card - Museum Style
   ======================================================================== */
.gallery-artwork-card {
    position: relative;
    background-color: var(--gallery-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-artwork-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-artwork-image-wrapper {
    position: relative;
    overflow: hidden;
    background-color: var(--gallery-light);
    aspect-ratio: 1 / 1;
}

.gallery-artwork-image-wrapper.portrait {
    aspect-ratio: 3 / 4;
}

.gallery-artwork-image-wrapper.landscape {
    aspect-ratio: 4 / 3;
}

.gallery-artwork-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-artwork-card:hover .gallery-artwork-image {
    transform: scale(1.05);
}

/* Artwork badges */
.gallery-artwork-badge {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-sm);
    padding: 0.2rem 0.5rem;
    font-size: 0.5625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.gallery-artwork-badge-original {
    background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-dark) 100%);
    color: var(--gallery-white);
}

.gallery-artwork-badge-limited {
    background: #6e654b;
    color: #ffffff;
}

.gallery-artwork-badge-new {
    background-color: var(--gallery-success);
    color: var(--gallery-white);
}

.gallery-artwork-badge-scarcity {
    top: auto;
    bottom: var(--space-sm);
    left: var(--space-sm);
    background: #dc3545;
    color: #fff;
}

/* Status overlay */
.gallery-artwork-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 3;
}

.gallery-artwork-status-text {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-style: italic;
    color: var(--gallery-text-muted);
}

/* Artwork info — left-aligned, sans-serif, Walmart-style */
.gallery-artwork-info {
    padding: 10px 12px 14px;
    text-align: left;
}

/* Override global .gallery-theme h3 Playfair rule with higher specificity */
.gallery-theme .gallery-artwork-title,
.gallery-theme h3.gallery-artwork-title {
    font-family: var(--font-body) !important;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--gallery-text);
    line-height: 1.35;
    letter-spacing: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gallery-artwork-artist {
    font-size: 0.75rem;
    color: var(--gallery-text-muted);
    margin-bottom: 6px;
}

.gallery-artwork-price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--gallery-text);
    margin-bottom: 0;
}

.gallery-artwork-price-from {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--gallery-text-muted);
}

/* ========================================================================
   Shop Page Title — Matches homepage section title style (sf-section-title)
   ======================================================================== */
.gallery-theme .shop-page-title,
.gallery-theme h2.shop-page-title {
    font-family: var(--font-body) !important;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gallery-text);
    letter-spacing: normal;
    line-height: 1.3;
}

.gallery-theme .shop-page-title .text-muted {
    font-weight: 400;
    color: var(--gallery-muted) !important;
}

/* ========================================================================
   Product Detail Page — Override gallery serif headings to match homepage
   ======================================================================== */

/* Product title: clean sans-serif, not too large */
.gallery-theme .ecommerce-product-title,
.gallery-theme h1.ecommerce-product-title {
    font-family: var(--font-body) !important;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gallery-text);
    letter-spacing: normal;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

/* Product price */
.gallery-theme .ecommerce-product-price {
    font-family: var(--font-body) !important;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gallery-text);
}

/* Accordion headers — sans-serif to match */
.gallery-theme .accordion-button {
    font-family: var(--font-body) !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: normal;
}

/* Accordion body text */
.gallery-theme .accordion-body {
    font-family: var(--font-body);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--gallery-text);
}

/* Cross-sell section headings ("You May Also Like", "More from Artist") */
.gallery-theme.ecommerce-shop h3,
.gallery-theme.shop-product h3 {
    font-family: var(--font-body) !important;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--gallery-text);
    letter-spacing: normal;
}

/* Breadcrumb — clean sans-serif */
.gallery-theme .breadcrumb {
    font-family: var(--font-body);
    font-size: 0.8rem;
}

.gallery-theme .breadcrumb a {
    color: var(--gallery-muted);
}

.gallery-theme .breadcrumb a:hover {
    color: var(--gallery-text);
}

/* Short description lead text */
.gallery-theme .ecommerce-product-info .lead {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
}

/* Badge styling on product page */
.gallery-theme .ecommerce-product-info .badge {
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================================================
   Shop Grid — Uses gallery artwork cards in a responsive 4-column grid
   ======================================================================== */
.gallery-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 1199px) {
    .gallery-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .gallery-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 479px) {
    .gallery-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

/* ========================================================================
   Infinite Scroll — loading + end state
   ======================================================================== */
#scroll-loader { padding: 2rem 0; }
#scroll-end { padding: 1.5rem 0; font-size: 0.9rem; }
#load-more-btn { display: none; margin: 1rem auto; }

/* ========================================================================
   Back to Top Button
   ======================================================================== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1040;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gallery-dark, #1a1a2e);
    color: var(--gallery-gold-light);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background: var(--gallery-accent, #b8860b);
    color: #fff;
}
@media (max-width: 767px) {
    .back-to-top {
        bottom: 1.25rem;
        right: 1.25rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

/* ========================================================================
   Discover Artist Spotlight — inline banner on shop category pages
   ======================================================================== */
.shop-artist-spotlight {
    margin: 1.5rem 0;
    padding: 1.75rem 2rem;
    background: var(--gallery-light);
    border: 1px solid var(--gallery-border);
    border-radius: var(--radius-md);
}

.shop-artist-spotlight-inner {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.shop-artist-spotlight-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gallery-gold);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.shop-artist-spotlight-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.shop-artist-spotlight-info {
    flex: 1;
    min-width: 0;
}

.shop-artist-spotlight-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gallery-gold);
    margin-bottom: 0.25rem;
}

.shop-artist-spotlight-name {
    font-family: var(--font-body);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gallery-text);
    margin: 0 0 0.25rem 0;
    line-height: 1.3;
}

.shop-artist-spotlight-tagline {
    font-size: 0.875rem;
    font-style: italic;
    color: var(--gallery-text-light);
    margin: 0 0 0.35rem 0;
}

.shop-artist-spotlight-bio {
    font-size: 0.8125rem;
    color: var(--gallery-text-muted);
    line-height: 1.55;
    margin: 0 0 0.75rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-artist-spotlight-btn {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gallery-text);
    background: transparent;
    border: 1.5px solid var(--gallery-text);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease;
}

.shop-artist-spotlight-btn:hover {
    background: var(--gallery-text);
    color: var(--gallery-white);
}

@media (max-width: 767px) {
    .shop-artist-spotlight {
        padding: 1.25rem 1rem;
    }

    .shop-artist-spotlight-inner {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .shop-artist-spotlight-photo {
        width: 90px;
        height: 90px;
    }

    .shop-artist-spotlight-name {
        font-size: 1.1rem;
    }
}

/* ========================================================================
   Featured Artwork Section
   ======================================================================== */
.gallery-featured {
    position: relative;
}

.gallery-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.gallery-featured-title {
    margin-bottom: 0;
}

.gallery-featured-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gallery-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    transition: color var(--transition-fast);
}

.gallery-featured-link:hover {
    color: var(--gallery-gold);
}

.gallery-featured-link svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.gallery-featured-link:hover svg {
    transform: translateX(4px);
}

/* ========================================================================
   Why Choose Us / Features Section
   ======================================================================== */
.gallery-features {
    text-align: center;
}

.gallery-features-header {
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.gallery-feature-card {
    padding: var(--space-2xl);
    text-align: center;
}

.gallery-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--gallery-gold);
}

.gallery-feature-icon svg {
    width: 100%;
    height: 100%;
}

.gallery-feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-md);
}

.gallery-feature-text {
    color: var(--gallery-text-light);
    font-size: 0.9375rem;
    line-height: 1.8;
}

/* ========================================================================
   Featured Artists
   ======================================================================== */
.gallery-featured-artists-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.gallery-featured-artist-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-xl);
    background: var(--gallery-white);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-featured-artist-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.gallery-featured-artist-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-lg);
    border: 3px solid var(--gallery-gold);
}

.gallery-featured-artist-initials {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gallery-gold), #DAA520);
    color: var(--gallery-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.gallery-featured-artist-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gallery-text);
    margin: 0 0 var(--space-sm) 0;
}

.gallery-featured-artist-bio {
    font-size: 0.875rem;
    color: var(--gallery-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Featured Artists Placeholder (no artists yet) */
.gallery-featured-artists-placeholder {
    text-align: center;
    padding: var(--space-2xl);
}

.gallery-featured-artists-placeholder-icon {
    color: var(--gallery-gold);
    margin-bottom: var(--space-lg);
    opacity: 0.7;
}

.gallery-featured-artists-placeholder-text {
    font-size: 1.125rem;
    color: var(--gallery-text-muted);
    max-width: 500px;
    margin: 0 auto var(--space-xl);
    line-height: 1.7;
}

/* Responsive: Featured Artists Grid */
@media (max-width: 992px) {
    .gallery-featured-artists-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-featured-artists-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .gallery-featured-artist-photo,
    .gallery-featured-artist-initials {
        width: 100px;
        height: 100px;
    }

    .gallery-featured-artist-initials {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-featured-artists-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================
   Partners / Brand Logos
   ======================================================================== */
.gallery-partners {
    padding: var(--space-2xl) 0;
    border-top: 1px solid var(--gallery-border);
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-partners-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gallery-text-muted);
    margin-bottom: var(--space-lg);
    text-align: center;
}

.gallery-partners-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.gallery-partner-logo {
    height: 32px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all var(--transition-normal);
}

.gallery-partner-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* ========================================================================
   Services Overview
   ======================================================================== */
.gallery-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .gallery-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-services-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-service-card {
    position: relative;
    background-color: var(--gallery-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.gallery-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.gallery-service-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.gallery-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-service-card:hover .gallery-service-image img {
    transform: scale(1.05);
}

.gallery-service-content {
    padding: var(--space-xl);
}

.gallery-service-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.gallery-service-text {
    color: var(--gallery-text-light);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.gallery-service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gallery-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.gallery-service-link:hover {
    color: var(--gallery-gold-dark);
}

/* ========================================================================
   Product Detail Page
   ======================================================================== */
.gallery-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

@media (max-width: 992px) {
    .gallery-product-detail {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
}

/* Image Gallery */
.gallery-product-images {
    position: sticky;
    top: 100px;
}

.gallery-product-main-image {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--gallery-light);
    margin-bottom: var(--space-md);
    cursor: zoom-in;
}

.gallery-product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-product-thumbnails {
    display: flex;
    gap: var(--space-sm);
}

.gallery-product-thumbnail {
    width: 80px;
    height: 80px;
    overflow: hidden;
    background-color: var(--gallery-light);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-fast);
    border: 2px solid transparent;
}

.gallery-product-thumbnail:hover,
.gallery-product-thumbnail.active {
    opacity: 1;
    border-color: var(--gallery-gold);
}

.gallery-product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info */
.gallery-product-info {
    padding: var(--space-xl) 0;
}

.gallery-product-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.gallery-product-artist {
    font-size: 1rem;
    color: var(--gallery-text-muted);
    margin-bottom: var(--space-lg);
}

.gallery-product-price {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--gallery-text);
    margin-bottom: var(--space-lg);
}

.gallery-product-edition {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background-color: var(--gallery-light);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
}

.gallery-product-edition-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--gallery-success);
}

/* Size/Option Selector */
.gallery-product-options {
    margin-bottom: var(--space-xl);
}

.gallery-product-option-label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.gallery-product-sizes {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.gallery-size-btn {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gallery-border);
    background-color: var(--gallery-white);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.gallery-size-btn:hover {
    border-color: var(--gallery-text);
}

.gallery-size-btn.active {
    border-color: var(--gallery-gold);
    background-color: var(--gallery-gold);
    color: var(--gallery-white);
}

/* Add to Cart */
.gallery-add-to-cart {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.gallery-add-to-cart .gallery-btn {
    flex: 1;
}

/* Product Description Accordion */
.gallery-product-accordion {
    border-top: 1px solid var(--gallery-border);
}

.gallery-accordion-item {
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: var(--gallery-text);
}

.gallery-accordion-header svg {
    width: 16px;
    height: 16px;
    transition: transform var(--transition-fast);
}

.gallery-accordion-item.open .gallery-accordion-header svg {
    transform: rotate(180deg);
}

.gallery-accordion-content {
    padding-bottom: var(--space-lg);
    color: var(--gallery-text-light);
    line-height: 1.8;
    display: none;
}

.gallery-accordion-item.open .gallery-accordion-content {
    display: block;
}

/* ========================================================================
   About Page Sections
   ======================================================================== */
.gallery-about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 992px) {
    .gallery-about-hero {
        grid-template-columns: 1fr;
    }
}

.gallery-about-image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.gallery-about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-about-content {
    max-width: 500px;
}

.gallery-about-subtitle {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gallery-gold);
    margin-bottom: var(--space-md);
}

/* Process Steps */
.gallery-process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    counter-reset: step;
}

@media (max-width: 992px) {
    .gallery-process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-process-steps {
        grid-template-columns: 1fr;
    }
}

.gallery-process-step {
    text-align: center;
    counter-increment: step;
}

.gallery-process-step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--gallery-gold);
    margin-bottom: var(--space-md);
}

.gallery-process-step-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.gallery-process-step-text {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    line-height: 1.7;
}

/* ========================================================================
   Contact Page
   ======================================================================== */
.gallery-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
}

@media (max-width: 992px) {
    .gallery-contact-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-contact-info {
    padding: var(--space-2xl);
    background-color: var(--gallery-white);
    border-radius: var(--radius-md);
}

.gallery-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.gallery-contact-item:last-child {
    margin-bottom: 0;
}

.gallery-contact-icon {
    width: 24px;
    height: 24px;
    color: var(--gallery-gold);
    flex-shrink: 0;
    margin-top: 2px;
}

.gallery-contact-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gallery-text-muted);
    margin-bottom: var(--space-xs);
}

.gallery-contact-value {
    font-size: 1rem;
    color: var(--gallery-text);
}

.gallery-contact-value a {
    color: var(--gallery-text);
}

.gallery-contact-value a:hover {
    color: var(--gallery-gold);
}

/* Contact Form */
.gallery-contact-form {
    padding: var(--space-2xl);
    background-color: var(--gallery-white);
    border-radius: var(--radius-md);
}

.gallery-form-group {
    margin-bottom: var(--space-lg);
}

.gallery-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: #a38628;
}

.gallery-form-input,
.gallery-form-textarea,
.gallery-form-select {
    width: 100%;
    padding: var(--space-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gallery-text);
    background-color: var(--gallery-white);
    border: 1px solid var(--gallery-border);
    border-radius: var(--radius-sm);
    transition: border-color var(--transition-fast);
}

.gallery-form-input:focus,
.gallery-form-textarea:focus,
.gallery-form-select:focus {
    outline: none;
    border-color: var(--gallery-gold);
}

.gallery-form-textarea {
    min-height: 150px;
    resize: vertical;
}

/* Map */
.gallery-map {
    height: 400px;
    background-color: var(--gallery-light);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================================================
   Footer - Refined
   ======================================================================== */
.gallery-footer {
    background-color: var(--gallery-text);
    color: var(--gallery-white);
    padding: var(--space-2xl) 0 var(--space-lg);
}

.gallery-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 992px) {
    .gallery-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: left;
    }

    .gallery-footer-brand {
        max-width: none;
        text-align: center;
        margin-bottom: var(--space-md);
    }

    /* Accordion footer sections on mobile */
    .gallery-footer-accordion {
        border-top: 1px solid rgba(255,255,255,0.1);
        padding: 0;
    }

    .gallery-footer-accordion .gallery-footer-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: var(--space-md) var(--space-sm);
        margin-bottom: 0;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
        font-size: 1.05rem;
        letter-spacing: 0.02em;
        color: #fff;
    }

    .gallery-footer-chevron {
        display: inline-flex !important;
        font-size: 0.625rem;
        color: rgba(255,255,255,0.6);
        transition: transform 0.25s ease;
        width: 24px;
        height: 24px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .gallery-footer-accordion.open .gallery-footer-chevron {
        transform: rotate(180deg);
    }

    .gallery-footer-collapse {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .gallery-footer-accordion.open .gallery-footer-collapse {
        max-height: 300px;
    }

    .gallery-footer-links li {
        margin-bottom: 0.375rem;
    }

    .gallery-footer-links {
        padding-bottom: var(--space-md);
    }

    .gallery-footer-collapse .gallery-footer-contact {
        padding-bottom: var(--space-md);
    }

    .gallery-footer {
        padding: var(--space-xl) 0 var(--space-md);
    }

    .gallery-footer-contact {
        font-size: 0.9rem;
        line-height: 1.8;
    }
}

.gallery-footer-brand {
    max-width: 300px;
}

.gallery-footer-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--gallery-white);
    margin-bottom: var(--space-md);
}

.gallery-footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.gallery-footer-contact {
    margin: 0;
}

.gallery-footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.gallery-footer-contact a:hover {
    color: var(--gallery-gold-light);
}

.gallery-footer-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--gallery-white);
    margin-bottom: var(--space-lg);
}

/* Footer chevron — hidden on desktop (mobile override is inside @media max-width:576px above) */
.gallery-footer-chevron {
    display: none !important;
}
@media (max-width: 576px) {
    .gallery-footer-chevron {
        display: inline-flex !important;
    }
}

.gallery-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-footer-links li {
    margin-bottom: var(--space-sm);
}

.gallery-footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.gallery-footer-links a:hover {
    color: var(--gallery-gold-light);
}

.gallery-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 576px) {
    .gallery-footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

.gallery-footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.gallery-footer-social-row {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.gallery-footer-follow-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    white-space: nowrap;
}

/* ========================================================================
   Lightbox / Image Zoom
   ======================================================================== */
.gallery-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox-close {
    position: absolute;
    top: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: var(--gallery-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox-close svg {
    width: 32px;
    height: 32px;
}

.gallery-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

/* ========================================================================
   Follow Us Section
   ======================================================================== */
.gallery-follow-us-section {
    text-align: center;
    padding: var(--space-4xl) 0;
    background-color: var(--gallery-light);
}

.gallery-follow-us-content {
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================================================
   Utility Classes
   ======================================================================== */
.gallery-text-center { text-align: center; }
.gallery-text-left { text-align: left; }
.gallery-text-right { text-align: right; }

.gallery-text-gold { color: var(--gallery-gold); }
.gallery-text-muted { color: var(--gallery-text-muted); }

.gallery-mb-0 { margin-bottom: 0; }
.gallery-mb-sm { margin-bottom: var(--space-sm); }
.gallery-mb-md { margin-bottom: var(--space-md); }
.gallery-mb-lg { margin-bottom: var(--space-lg); }
.gallery-mb-xl { margin-bottom: var(--space-xl); }
.gallery-mb-2xl { margin-bottom: var(--space-2xl); }

.gallery-mt-0 { margin-top: 0; }
.gallery-mt-sm { margin-top: var(--space-sm); }
.gallery-mt-md { margin-top: var(--space-md); }
.gallery-mt-lg { margin-top: var(--space-lg); }
.gallery-mt-xl { margin-top: var(--space-xl); }
.gallery-mt-2xl { margin-top: var(--space-2xl); }

.gallery-pt-0 { padding-top: 0; }
.gallery-pb-0 { padding-bottom: 0; }

/* Divider */
.gallery-divider {
    width: 60px;
    height: 2px;
    background-color: var(--gallery-gold);
    margin: var(--space-xl) 0;
}

.gallery-divider-center {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================================================
   Mobile Header & Category Bar
   ======================================================================== */

/* Mobile: stack search below logo+icons on small screens */
@media (max-width: 768px) {
    .gallery-header-main {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-sm);
        padding: var(--space-sm) 0;
    }

    .gallery-logo {
        font-size: 1rem;
    }

    .gallery-logo-img {
        height: 26px;
    }

    .gallery-logo-svg {
        height: 30px;
    }

    .gallery-header-icons {
        gap: 2px;
        margin-left: auto;
    }

    .gallery-header .gallery-sell-art-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .gallery-search-form {
        order: 3;
        flex-basis: 100%;
        max-width: 100%;
    }

    .gallery-search-input {
        padding: 8px 40px 8px 14px;
        font-size: 0.875rem;
    }

    .gallery-search-btn {
        width: 32px;
        height: 32px;
    }

    .gallery-search-btn svg {
        width: 16px;
        height: 16px;
    }

    .gallery-header-icon svg {
        width: 20px;
        height: 20px;
    }

    .gallery-header-icon {
        padding: 4px;
    }

    /* Category bar scrolls horizontally on mobile */
    .gallery-category-links {
        justify-content: flex-start;
        gap: 2px;
        padding: 6px 0;
        padding-right: 40px; /* space for the fade indicator */
    }

    .gallery-cat-link {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

/* Extra-small screens (iPhone SE etc.) */
@media (max-width: 400px) {
    .gallery-logo-img {
        height: 22px;
    }

    .gallery-header .gallery-sell-art-btn {
        font-size: 0.6875rem;
        padding: 0.25rem 0.625rem;
    }

    .gallery-header-icon {
        padding: 3px;
    }

    .gallery-header-icon svg {
        width: 18px;
        height: 18px;
    }

    .gallery-search-input {
        padding: 7px 36px 7px 12px;
        font-size: 0.8125rem;
    }

    .gallery-search-btn {
        width: 28px;
        height: 28px;
    }

    .gallery-search-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Hide legacy mobile toggle (no longer needed — category bar is the nav) */
.gallery-mobile-toggle {
    display: none !important;
}

/* ========================================================================
   Responsive Adjustments
   ======================================================================== */
@media (max-width: 768px) {
    .gallery-container {
        padding: 0 var(--space-md);
    }

    .gallery-section {
        padding: var(--space-2xl) 0;
    }

    .gallery-section-lg {
        padding: var(--space-3xl) 0;
    }

    .gallery-hero {
        min-height: 60vh;
    }

    .gallery-hero-content {
        padding: var(--space-lg);
    }
}

/* ========================================================================
   Print Styles
   ======================================================================== */
@media print {
    .gallery-header,
    .gallery-footer,
    .gallery-lightbox {
        display: none;
    }

    .gallery-container {
        max-width: 100%;
        padding: 0;
    }

    .gallery-artwork-card {
        break-inside: avoid;
    }
}

/* ========================================================================
   Placeholder Styles for Missing Images
   ======================================================================== */

/* Hero placeholder background - elegant gradient */
.gallery-hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
        var(--gallery-cream) 0%,
        var(--gallery-light) 25%,
        var(--gallery-cream) 50%,
        var(--gallery-light) 75%,
        var(--gallery-cream) 100%
    );
    background-size: 400% 400%;
    animation: gallery-gradient-shift 15s ease infinite;
}

.gallery-hero-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border: 2px solid var(--gallery-border);
    border-radius: 50%;
    opacity: 0.3;
}

.gallery-hero-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px solid var(--gallery-border);
    border-radius: 50%;
    opacity: 0.2;
}

@keyframes gallery-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Service image placeholder */
.gallery-service-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--gallery-light) 0%, var(--gallery-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-service-image-placeholder svg {
    width: 48px;
    height: 48px;
    color: var(--gallery-border);
}

/* Partner logo placeholder */
.gallery-partner-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 var(--space-md);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gallery-muted);
    border: 1px solid var(--gallery-border);
    border-radius: var(--radius-sm);
    opacity: 0.6;
}

/* Artwork card image placeholder */
.gallery-artwork-image-placeholder,
.gallery-artwork-placeholder {
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: linear-gradient(145deg, var(--gallery-light) 0%, var(--gallery-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-artwork-image-placeholder svg,
.gallery-artwork-placeholder svg {
    width: 64px;
    height: 64px;
    color: var(--gallery-border);
}

/* Empty state for sections with no content */
.gallery-empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--gallery-text-muted);
}

.gallery-empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    color: var(--gallery-border);
}

.gallery-empty-state p {
    font-style: italic;
}


/* ========================================================================
   Service Card Images (Enhanced)
   ======================================================================== */
.gallery-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-service-card:hover .gallery-service-image img {
    transform: scale(1.05);
}

/* ========================================================================
   Partner Logos (Enhanced)
   ======================================================================== */
.gallery-partner-logo {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--transition-fast);
}

.gallery-partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* ========================================================================
   Trust Badges (Product Pages)
   ======================================================================== */
.gallery-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--gallery-border);
    border-bottom: 1px solid var(--gallery-border);
    margin: var(--space-lg) 0;
}

.gallery-trust-strip span {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.8125rem;
    color: var(--gallery-text-light);
}

.gallery-trust-strip svg {
    width: 16px;
    height: 16px;
    color: var(--gallery-gold);
}

/* Scarcity Banner */
.gallery-scarcity-banner {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
    font-size: 0.9375rem;
}

.gallery-scarcity-banner strong {
    color: var(--gallery-danger);
}

/* COA Badge */
.gallery-coa-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: linear-gradient(135deg, var(--gallery-gold) 0%, var(--gallery-gold-dark) 100%);
    color: var(--gallery-white);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.gallery-coa-badge svg {
    width: 16px;
    height: 16px;
}

/* Guarantee Badge */
.gallery-guarantee-badge {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gallery-light);
    border: 1px solid var(--gallery-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    font-size: 0.875rem;
}

.gallery-guarantee-badge svg {
    width: 24px;
    height: 24px;
    color: var(--gallery-success);
    flex-shrink: 0;
}

/* Product Badges Layout */
.gallery-product-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    align-items: center;
    margin-bottom: var(--space-sm);
}

/* ========================================================================
   Team Section
   ======================================================================== */
.gallery-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
}

@media (max-width: 992px) {
    .gallery-team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-team-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-team-member {
    text-align: center;
}

.gallery-team-photo {
    width: 180px;
    height: 180px;
    margin: 0 auto var(--space-lg);
    border-radius: 50%;
    overflow: hidden;
    background-color: var(--gallery-light);
}

.gallery-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-team-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, var(--gallery-light) 0%, var(--gallery-cream) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-team-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
}

.gallery-team-role {
    font-size: 0.875rem;
    color: var(--gallery-gold);
    font-weight: 500;
    margin-bottom: var(--space-md);
}

.gallery-team-bio {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    line-height: 1.7;
}

/* ========================================================================
   The Craft Section
   ======================================================================== */
.gallery-craft {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-craft-header {
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.gallery-craft-card {
    background: var(--gallery-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.gallery-craft-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: var(--space-lg);
    color: var(--gallery-text);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--gallery-gold);
}

.gallery-craft-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.gallery-craft-list li {
    padding: var(--space-sm) 0;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--gallery-text-light);
    border-bottom: 1px solid var(--gallery-border);
}

.gallery-craft-list li:last-child {
    border-bottom: none;
}

.gallery-craft-list li strong {
    color: var(--gallery-text);
    font-weight: 600;
}

.gallery-craft-note {
    font-size: 0.8125rem;
    font-style: italic;
    color: var(--gallery-gold-dark);
    padding: var(--space-md);
    background: var(--gallery-cream);
    border-radius: var(--radius-sm);
    margin: 0;
}

/* ========================================================================
   Workshops Section
   ======================================================================== */
.gallery-workshops {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-workshops-content {
    text-align: center;
}

.gallery-workshops .gallery-grid {
    text-align: left;
}

.gallery-workshop-item {
    background: var(--gallery-cream);
    padding: var(--space-xl);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--gallery-gold);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-workshop-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.gallery-workshop-item h4 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--gallery-text);
}

.gallery-workshop-item p {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    line-height: 1.7;
    margin: 0;
}

/* ========================================================================
   Simplified Services Section
   ======================================================================== */
.gallery-services-simple {
    max-width: 900px;
    margin: 0 auto;
}

.gallery-service-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: var(--space-xl) 0;
    border-bottom: 1px solid var(--gallery-border);
    gap: var(--space-xl);
}

.gallery-service-row:last-child {
    border-bottom: none;
}

.gallery-service-name {
    flex: 1;
}

.gallery-service-name h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--gallery-text);
}

.gallery-service-name p {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    margin: 0;
    max-width: 500px;
}

.gallery-service-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-sm);
    white-space: nowrap;
}

.gallery-service-details span {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gallery-gold-dark);
}

.gallery-service-details a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gallery-text);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.gallery-service-details a:hover {
    color: var(--gallery-gold);
}

@media (max-width: 768px) {
    .gallery-service-row {
        flex-direction: column;
        gap: var(--space-md);
    }

    .gallery-service-details {
        align-items: flex-start;
        flex-direction: row;
        gap: var(--space-lg);
    }
}

/* ========================================================================
   Pacific Northwest Artists Section
   ======================================================================== */
.gallery-pnw {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gallery-pnw-content p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gallery-text-light);
}

.gallery-pnw-content a {
    color: var(--gallery-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gallery-pnw-content a:hover {
    color: var(--gallery-gold-dark);
}

/* ========================================================================
   Payment Methods Section (Footer)
   ======================================================================== */
.gallery-footer-payments {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: var(--space-md);
}

.gallery-footer-payments-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: var(--space-sm);
}

.gallery-footer-payments-icons {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-footer-payments-icons svg {
    opacity: 0.9;
    transition: opacity var(--transition-fast);
}

.gallery-footer-payments-icons svg:hover {
    opacity: 1;
}

/* ========================================================================
   Why Choose Us Section
   ======================================================================== */
.gallery-why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .gallery-why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-why-choose-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-why-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--gallery-white);
    border-radius: var(--radius-md);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.gallery-why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gallery-cream);
    border-radius: 50%;
    color: var(--gallery-gold);
}

.gallery-why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
    color: var(--gallery-text);
}

.gallery-why-card p {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    line-height: 1.7;
    margin: 0;
}

/* Review Invitation */
.gallery-review-invite {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--gallery-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gallery-border);
}

.gallery-review-invite-text {
    font-size: 1.0625rem;
    margin-bottom: var(--space-lg);
    color: var(--gallery-text);
}

.gallery-review-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.gallery-review-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    background: var(--gallery-text);
    color: var(--gallery-white);
}

.gallery-review-btn:hover {
    background: var(--gallery-gold);
    color: var(--gallery-white);
}

.gallery-review-btn-secondary {
    background: transparent;
    color: var(--gallery-text);
    border: 1px solid var(--gallery-border);
}

.gallery-review-btn-secondary:hover {
    background: var(--gallery-text);
    color: var(--gallery-white);
    border-color: var(--gallery-text);
}

/* ========================================================================
   Footer Social Links (Bootstrap Icons override)
   ======================================================================== */
.gallery-footer-social-links {
    gap: var(--space-sm);
}

.gallery-footer-social-link {
    width: 2rem;
    height: 2rem;
    font-size: 0.95rem;
    background-color: rgba(255, 255, 255, 0.15);
}

.gallery-footer-social-link:hover {
    background-color: var(--gallery-gold);
}


/* ========================================================================
   Product Page Trust Elements
   ======================================================================== */
.gallery-product-payments {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--gallery-border);
    margin-bottom: var(--space-md);
}

.gallery-product-payments-label {
    font-size: 0.75rem;
    color: var(--gallery-text-muted);
    white-space: nowrap;
}

.gallery-product-payments-icons {
    display: flex;
    gap: var(--space-xs);
    align-items: center;
    flex-wrap: wrap;
}

.gallery-product-payments-icons svg {
    opacity: 0.8;
}

.gallery-guarantee-badge {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-top: var(--space-md);
}

.gallery-guarantee-badge svg {
    flex-shrink: 0;
    color: var(--gallery-success);
}

.gallery-guarantee-badge strong {
    display: block;
    color: var(--gallery-success);
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

/* ========================================================================
   Homepage - Compact Hero
   ======================================================================== */
.gallery-hero-compact {
    min-height: 60vh;
}

.gallery-hero-compact .gallery-hero-content {
    padding: var(--space-xl);
}

.gallery-hero-compact .gallery-hero-subtitle {
    margin-bottom: var(--space-lg);
}

/* Scroll Indicator */
.gallery-hero-scroll {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #fff;
    opacity: 0.6;
    animation: gallery-scroll-bounce 2s ease-in-out infinite;
}

@keyframes gallery-scroll-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(8px);
    }
}

/* Wide Button Variant */
.gallery-btn-wide {
    min-width: 280px;
    justify-content: center;
}

@media (max-width: 576px) {
    .gallery-hero-compact {
        min-height: 50vh;
    }

    .gallery-btn-wide {
        width: 100%;
        min-width: auto;
    }
}

/* ========================================================================
   Artist CTA Section
   ======================================================================== */
.gallery-artist-cta {
    background: linear-gradient(135deg, var(--gallery-gold-dark) 0%, var(--gallery-gold) 50%, var(--gallery-gold-light) 100%);
    color: var(--gallery-white);
}

.gallery-artist-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.gallery-artist-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: var(--space-lg);
}

.gallery-artist-cta-icon svg {
    stroke: var(--gallery-white);
}

.gallery-artist-cta .gallery-h2 {
    color: var(--gallery-white);
    margin-bottom: var(--space-md);
}

.gallery-artist-cta .gallery-lead {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
}

.gallery-artist-cta .gallery-btn-primary {
    background-color: var(--gallery-white);
    color: var(--gallery-gold-dark);
    border-color: var(--gallery-white);
}

.gallery-artist-cta .gallery-btn-primary:hover {
    background-color: var(--gallery-cream);
    border-color: var(--gallery-cream);
}

/* ========================================================================
   Empty State
   ======================================================================== */
.gallery-empty-state {
    text-align: center;
    padding: var(--space-4xl) var(--space-xl);
    color: var(--gallery-text-muted);
}

.gallery-empty-state svg {
    opacity: 0.3;
    margin-bottom: var(--space-lg);
}

.gallery-empty-state p {
    font-size: 1.125rem;
    max-width: 400px;
    margin: 0 auto;
}

/* ========================================================================
   Artist Signup Page
   ======================================================================== */

/* Hero */
.gallery-artist-signup-hero {
    background: linear-gradient(135deg, var(--gallery-gold-dark) 0%, var(--gallery-gold) 100%);
    color: var(--gallery-white);
    padding: var(--space-5xl) 0;
    text-align: center;
}

.gallery-artist-signup-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.gallery-artist-signup-label {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
    color: var(--gallery-white);
}

.gallery-artist-signup-hero .gallery-display-2 {
    color: var(--gallery-white);
    margin-bottom: var(--space-lg);
}

.gallery-artist-signup-hero .gallery-lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Benefits Grid */
.gallery-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 992px) {
    .gallery-benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .gallery-benefits-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-benefit-card {
    text-align: center;
    padding: var(--space-xl);
}

.gallery-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: var(--gallery-cream);
    border-radius: 50%;
    margin-bottom: var(--space-md);
    color: var(--gallery-gold);
}

.gallery-benefit-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.gallery-benefit-card p {
    color: var(--gallery-text-light);
    font-size: 0.9375rem;
}

/* Steps / How It Works */
.gallery-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.gallery-step {
    flex: 1;
    min-width: 180px;
    max-width: 220px;
    text-align: center;
    padding: var(--space-md);
}

.gallery-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--gallery-gold);
    color: var(--gallery-white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: var(--space-md);
}

.gallery-step h3 {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    margin-bottom: var(--space-xs);
}

.gallery-step p {
    font-size: 0.875rem;
    color: var(--gallery-text-light);
}

.gallery-step-arrow {
    display: flex;
    align-items: center;
    padding-top: var(--space-xl);
    color: var(--gallery-gold);
    opacity: 0.5;
}

@media (max-width: 992px) {
    .gallery-step-arrow {
        display: none;
    }

    .gallery-steps {
        flex-direction: column;
        align-items: center;
    }

    .gallery-step {
        max-width: 300px;
    }
}

/* Regional Focus */
.gallery-regional-focus {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media (max-width: 768px) {
    .gallery-regional-focus {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

.gallery-regional-content .gallery-h2 {
    margin-bottom: var(--space-md);
}

.gallery-regional-content .gallery-lead {
    margin-bottom: var(--space-lg);
}

.gallery-regional-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gallery-regional-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    font-size: 1.0625rem;
    color: var(--gallery-text);
}

.gallery-regional-list svg {
    color: var(--gallery-success);
}

.gallery-regional-map {
    background: var(--gallery-cream);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
}

.gallery-regional-map svg {
    width: 100%;
    height: auto;
}

/* Signup Form */
.gallery-signup-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.gallery-artist-form {
    background: var(--gallery-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gallery-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

@media (max-width: 576px) {
    .gallery-form-row {
        grid-template-columns: 1fr;
    }
}

.gallery-form-group {
    margin-bottom: var(--space-lg);
}

.gallery-form-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: #a38628;
}

.gallery-form-label .required {
    color: var(--gallery-danger);
}

.gallery-form-input,
.gallery-form-select,
.gallery-form-textarea {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--gallery-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gallery-text);
    background: var(--gallery-white);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-form-input:focus,
.gallery-form-select:focus,
.gallery-form-textarea:focus {
    outline: none;
    border-color: var(--gallery-gold);
    box-shadow: 0 0 0 3px rgba(184, 134, 11, 0.1);
}

.gallery-form-input-error {
    border-color: var(--gallery-danger) !important;
}

.gallery-form-input-valid {
    border-color: var(--gallery-success) !important;
}

.gallery-form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gallery-text-muted);
    margin-top: var(--space-xs);
}

.gallery-form-error {
    display: block;
    font-size: 0.8125rem;
    color: var(--gallery-danger);
    margin-top: var(--space-xs);
}

.gallery-form-textarea {
    resize: vertical;
    min-height: 100px;
}

.gallery-form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.gallery-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--gallery-gold);
}

.gallery-form-checkbox label {
    font-size: 0.9375rem;
    color: var(--gallery-text-light);
    line-height: 1.5;
}

.gallery-form-submit {
    text-align: center;
    margin-top: var(--space-xl);
}

.gallery-form-disclaimer {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--gallery-text-muted);
    margin-top: var(--space-lg);
}

/* ========================================================================
   Mobile Polish — Extra-small screen refinements
   ======================================================================== */

/* Product card text sizing on mobile */
@media (max-width: 576px) {
    .gallery-artwork-info {
        padding: var(--space-sm);
    }

    .gallery-artwork-title {
        font-size: 0.9375rem;
    }

    .gallery-artwork-artist {
        font-size: 0.8125rem;
    }

    .gallery-artwork-price {
        font-size: 1rem;
    }

    /* Tighter section spacing on mobile */
    .gallery-section {
        padding: var(--space-xl) 0;
    }

    .gallery-section-lg {
        padding: var(--space-2xl) 0;
    }

    /* Better container padding on small screens */
    .gallery-container {
        padding: 0 12px;
    }
}

@media (max-width: 400px) {
    .gallery-container {
        padding: 0 10px;
    }

    /* Smaller product card text on iPhone SE */
    .gallery-artwork-title {
        font-size: 0.875rem;
    }

    .gallery-artwork-price {
        font-size: 0.9375rem;
    }

    /* Tighter grid gaps on very small screens */
    .gallery-grid {
        gap: var(--space-md);
    }
}

/* Footer social links mobile centering */
@media (max-width: 576px) {
    .gallery-footer-social-row {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-footer-payments {
        padding: var(--space-md) 0;
    }

    .gallery-footer-payments-icons {
        gap: var(--space-xs);
    }
}

/* Cart page mobile tweaks */
@media (max-width: 576px) {
    .ecommerce-cart-items td {
        font-size: 0.875rem;
    }

    .ecommerce-cart-item-image {
        width: 60px;
        height: 60px;
    }
}

/* Pagination mobile — ensure buttons don't overflow */
@media (max-width: 400px) {
    .gallery-pagination-btn {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.8125rem;
    }
}
