/* ==========================================================================
   STORE EXHIBITION - SWEET ABSTRACTS
   Museum-Grade Gallery Wall & Studio Lighting Experience (Refined UX)
   ========================================================================== */

:root {
    --gallery-wall-bg: #0d0d10;
    --gallery-wall-light: #16161c;
    --frame-molding: #09090b;
    --frame-bevel: rgba(255, 255, 255, 0.12);
    --frame-shadow: rgba(0, 0, 0, 0.85);
    --mat-board: #f4f2ec;
    --mat-shadow: rgba(0, 0, 0, 0.35);
    --brass-fillet: rgba(212, 175, 55, 0.4);
    --spotlight-color: rgba(255, 240, 220, 0.07);
    --spotlight-core: rgba(255, 230, 200, 0.13);
    --accent-pink: #ff2e93;
    --accent-gold: #c5a880;
    --font-serif: 'Cinzel', serif;
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Oswald', sans-serif;
}

/* Base Exhibition Atmosphere */
body.store-page {
    background-color: var(--gallery-wall-bg);
    color: #e2e2e8;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Ambient Studio Light Wall */
.studio-gallery-wall {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: var(--gallery-wall-bg);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(255, 230, 210, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 20% 40%, rgba(255, 46, 147, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%);
    background-attachment: fixed;
}

/* Dynamic Interactive Spotlight Beam */
.dynamic-studio-light {
    position: fixed;
    top: 0;
    left: 0;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 2;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--spotlight-core) 0%, var(--spotlight-color) 40%, transparent 70%);
    transition: opacity 0.5s ease, transform 0.08s cubic-bezier(0.1, 0.9, 0.2, 1);
    opacity: 0.85;
    mix-blend-mode: screen;
}

/* Header & Curatorial Manifesto */
.store-hero {
    position: relative;
    z-index: 5;
    padding: 8.5rem 5vw 3.5rem;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

/* Curatorial Manifesto Box (Photographer's Note) */
.curatorial-manifesto {
    position: relative;
    max-width: 840px;
    margin: 0 auto;
    padding: 3.2rem 3rem;
    background: rgba(18, 18, 23, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(14px);
    text-align: left;
}

.curatorial-manifesto::before {
    content: "PHOTOGRAPHER'S NOTE";
    position: absolute;
    top: -10px;
    left: 40px;
    background: #0d0d10;
    padding: 0 1rem;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #707080;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.manifesto-lead {
    font-family: var(--font-serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.6;
    color: #ffffff;
    margin-bottom: 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.6rem;
}

.manifesto-lead strong {
    color: var(--accent-pink);
    font-weight: 400;
}

.manifesto-body {
    font-family: var(--font-sans);
    font-size: 1.02rem;
    line-height: 1.9;
    color: #b5b5c5;
    font-weight: 300;
}

.manifesto-body p {
    margin-bottom: 1.3rem;
}

.manifesto-body p:last-child {
    margin-bottom: 0;
    font-style: italic;
    color: #ffffff;
}

/* Gallery Wall Section & Grid */
.exhibition-wall-section {
    position: relative;
    z-index: 5;
    padding: 3rem 4vw 12rem;
    max-width: 1750px;
    margin: 0 auto;
}

/* Wall Spotlight Ambient Fixtures */
.wall-lighting-fixtures {
    display: flex;
    justify-content: space-around;
    padding: 0 10vw 3rem;
    opacity: 0.4;
}

.light-fixture {
    width: 60px;
    height: 4px;
    background: #444450;
    border-radius: 2px;
    position: relative;
    box-shadow: 0 0 25px 8px rgba(255, 235, 200, 0.25);
}

/* Responsive Art Wall Grid */
.art-wall-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5rem 3.5rem;
    align-items: stretch;
}

@media (max-width: 1300px) {
    .art-wall-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 4.5rem 3rem;
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding: 6.5rem 4vw 2rem;
    }
    .curatorial-manifesto {
        padding: 2.2rem 1.4rem 1.8rem;
        margin: 0 auto;
    }
    .curatorial-manifesto::before {
        left: 16px;
        font-size: 0.55rem;
        letter-spacing: 0.2em;
        padding: 0 0.5rem;
    }
    .manifesto-lead {
        font-size: 1.12rem;
        line-height: 1.55;
        margin-bottom: 1.4rem;
        padding-bottom: 1.2rem;
    }
    .manifesto-body {
        font-size: 0.94rem;
        line-height: 1.8;
    }
    .exhibition-wall-section {
        padding: 2rem 3vw 6rem;
    }
    .art-wall-grid {
        grid-template-columns: 1fr;
        gap: 3.2rem 1.5rem;
        padding: 0;
    }
    .artwork-card {
        min-height: 420px;
    }
    .frame-flipper {
        min-height: 420px;
    }
    .mat-board {
        padding: 16px;
    }
    .frame-back {
        padding: 1.3rem 1.1rem;
    }
    .back-title {
        font-size: 1.35rem;
    }
    .spec-value.dimensions-highlight {
        font-size: 1.18rem;
    }
    .btn-enquire, .btn-inspect {
        padding: 0.65rem 0.6rem;
        font-size: 0.75rem;
    }
    .enquiry-dialog {
        padding: 2.2rem 1.5rem;
        max-width: 92vw;
    }
    .lightbox-close-btn {
        top: 1rem;
        right: 1.2rem;
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   PHYSICAL ART FRAMEWORK (Realistic Museum Frame with Flawless 3D Flip Back)
   ========================================================================== */

.artwork-card {
    position: relative;
    perspective: 1600px;
    width: 100%;
    margin: 0 auto;
    min-height: 470px;
    display: flex;
    flex-direction: column;
}

/* Proportional Frame Width Caps */
.artwork-card.portrait { max-width: 440px; }
.artwork-card.square { max-width: 450px; }
.artwork-card.landscape { max-width: 510px; }
.artwork-card.portrait-tall { max-width: 400px; }
.artwork-card.landscape-wide { max-width: 530px; }

/* 3D Flipper Structure */
.frame-flipper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 470px;
    transition: transform 0.85s cubic-bezier(0.2, 0.85, 0.3, 1);
    transform-style: preserve-3d;
    display: flex;
}

/* Trigger flip on hover or active class */
.artwork-card:hover .frame-flipper,
.artwork-card.is-flipped .frame-flipper {
    transform: rotateY(180deg);
}

/* Front & Back Faces */
.frame-face {
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 4px;
    box-sizing: border-box;
}

/* FRONT: Museum Framed Photograph */
.frame-front {
    position: relative;
    background: #09090b;
    padding: 14px; /* Frame molding width */
    border-radius: 4px;
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.4),
        0 15px 35px -5px rgba(0, 0, 0, 0.75),
        0 30px 65px -15px rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: box-shadow 0.4s ease;
}

.artwork-card:hover .frame-front {
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.5),
        0 25px 50px -5px rgba(0, 0, 0, 0.85),
        0 45px 85px -10px rgba(0, 0, 0, 0.98),
        0 0 35px rgba(255, 235, 205, 0.08);
}

/* Archival Mat Board (Passe-Partout) */
.mat-board {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: var(--mat-board);
    padding: 24px; /* Museum mat border */
    box-sizing: border-box;
    box-shadow: 
        inset 0 0 0 1px rgba(0, 0, 0, 0.15),
        inset 0 2px 5px rgba(0, 0, 0, 0.3);
    border-radius: 1px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Photo Bevel Cut Window (Exact Aspect Ratio Framing - Zero Crop) */
.photo-mount {
    position: relative;
    width: 100%;
    max-height: 100%;
    overflow: hidden;
    background: #000000;
    box-shadow: 
        inset 2px 2px 6px rgba(0, 0, 0, 0.45),
        0 1px 3px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The High-Resolution Photograph */
.art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    filter: contrast(102%) brightness(98%);
}

.artwork-card:hover .art-image {
    transform: scale(1.025);
}

/* Museum Anti-Reflective Glass Glare Sheen */
.glass-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.12) 0%, 
        rgba(255, 255, 255, 0.03) 30%, 
        transparent 55%, 
        rgba(255, 255, 255, 0.05) 100%
    );
    mix-blend-mode: overlay;
    z-index: 2;
}

/* Mat Bottom Embossed Inscription */
.mat-caption {
    margin-top: 14px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #66645e;
}

.mat-caption .edition-stamp {
    font-style: italic;
    letter-spacing: 0.15em;
    color: #888680;
}

/* BACK: Archival Collector's Certificate Plate (Optimized UX Layout) */
.frame-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #141418;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%),
        repeating-linear-gradient(45deg, rgba(255,255,255,0.01) 0, rgba(255,255,255,0.01) 1px, transparent 0, transparent 8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 15px 35px -5px rgba(0, 0, 0, 0.8),
        0 30px 65px -15px rgba(0, 0, 0, 0.95),
        inset 0 0 30px rgba(0, 0, 0, 0.6);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.6rem 1.6rem;
    z-index: 2;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

/* Clean Custom Scrollbar for extreme screens */
.frame-back::-webkit-scrollbar {
    width: 4px;
}
.frame-back::-webkit-scrollbar-track {
    background: transparent;
}
.frame-back::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

/* Subtle archival seal background watermark */
.frame-back::before {
    content: 'DK';
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.025);
    pointer-events: none;
    z-index: 0;
}

.back-header {
    position: relative;
    z-index: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.85rem;
}

.back-series {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-pink);
    margin-bottom: 0.35rem;
    font-family: var(--font-display);
}

.back-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2vw, 1.75rem);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.2;
}

/* 2-Column Balanced Specs Grid (Fits Flawlessly Without Overflow) */
.back-specs {
    position: relative;
    z-index: 1;
    margin: 1rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 1.1rem;
    align-items: start;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-label {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #78788a;
    font-family: var(--font-display);
}

.spec-value {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: #ffffff;
    font-weight: 400;
    line-height: 1.3;
}

.spec-value.dimensions-highlight {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.spec-value.archival-badge {
    font-size: 0.88rem;
    color: #c5a880;
}

/* Compact Side-by-Side Action Bar */
.back-actions {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 0.65rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Primary Enquiry Button */
.btn-enquire {
    flex: 2;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.9rem;
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
}

.btn-enquire:hover {
    background: var(--accent-pink);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(255, 46, 147, 0.5);
    transform: translateY(-2px);
}

/* Secondary Inspect Button */
.btn-inspect {
    flex: 1;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 0.75rem;
    background: transparent;
    color: #a0a0b0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-inspect:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 400px) {
    .back-actions {
        flex-direction: column;
    }
}

/* Frame Flip Indicator on Front (Mobile & Subtle Cue) */
.flip-hint {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.75rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    z-index: 3;
    pointer-events: none;
}

.artwork-card:hover .flip-hint {
    opacity: 0;
}

/* ==========================================================================
   DIRECT COLLECTOR ACQUISITIONS BOX & ACTION STYLES
   ========================================================================== */

.collector-inquiry-box {
    margin-top: 2.2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.collector-inquiry-label {
    font-family: var(--font-display);
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-pink);
    font-weight: 500;
}

.collector-inquiry-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: #cfcfe0;
    margin: 0;
}

.collector-email-link {
    color: #ffffff;
    text-decoration: none;
    border-bottom: 1px solid var(--accent-pink);
    padding-bottom: 2px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.collector-email-link:hover {
    color: var(--accent-pink);
    border-bottom-color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 46, 147, 0.3);
}

/* Ensure .btn-enquire link acts as a button */
a.btn-enquire {
    text-decoration: none;
    box-sizing: border-box;
}

/* ==========================================================================
   FULL-SCREEN CONTEMPLATION LIGHTBOX
   ========================================================================== */

.artwork-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 5, 7, 0.96);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.artwork-lightbox.is-active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content-box {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #a0a0b0;
}

.lightbox-caption strong {
    color: #ffffff;
    font-size: 1rem;
}

.lightbox-close-btn {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.2rem;
    cursor: pointer !important;
    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 100010;
    padding: 0.5rem;
    line-height: 1;
}

.lightbox-close-btn:hover {
    opacity: 1;
    color: var(--accent-pink);
    transform: scale(1.1);
}

/* Ensure Custom Cursor Sits Above Lightbox & Modals */
.cursor {
    z-index: 100050 !important;
    pointer-events: none;
}

.artwork-lightbox {
    cursor: default;
}

