/* ============================================
   Pastel Marzia - Stacked Art Gallery
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Patrick+Hand&family=Playfair+Display:wght@400;500;600&display=swap');

@font-face {
    font-family: 'Mamabear';
    src: url('fonts/Mamabear_rs-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    /* Peachy color scheme */
    --bg: #FFD6C8;
    --bg-soft: #FCCCD6;
    --bg-card: #ffffff;
    --header: #2d2424;
    --coral: #E44947;
    --coral-soft: #FCCCD6;
    --coral-deep: #c93b39;
    --sage: #7c9a82;
    --sage-deep: #4f6f58;
    --text: #2d2424;
    --text-soft: #5a4a4a;
    --text-light: #8a7a7a;
    --white: #ffffff;
    --border: #f5ddd5;
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Mamabear', 'Patrick Hand', 'Playfair Display', serif;
    --font-numbers: 'Patrick Hand', cursive;
    --content-width: 1100px;
    --section-space: 4rem;
    --page-gutter: 3rem;
    --section-heading: 2rem;
    --control-size: 44px;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    overflow-x: hidden;
    /* iOS Safari safe areas */
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: 0;
}

button, input, select, textarea {
    font-family: var(--font-body);
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--coral-deep);
    outline-offset: 4px;
}

::selection {
    background: var(--coral);
    color: var(--white);
}

/* ============================================
   Custom Cursor & Global Interactions
   ============================================ */

/* Cute hand cursor - pointing */
.art-card {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%233d2c2c"><path d="M17 8c0-1.1.9-2 2-2s2 .9 2 2v7h1V9c0-1.1.9-2 2-2s2 .9 2 2v10c0 5-4 8-8 8h-2c-4 0-7-3-7-7v-3c0-1.1.9-2 2-2s2 .9 2 2v1h1v-7c0-1.1.9-2 2-2s2 .9 2 2v5h1V8z"/><circle cx="18" cy="6" r="1.5" fill="%23e76f5a"/></g></svg>') 8 0, grab;
}

/* Grabbing hand */
.art-card:active,
.art-card.dragging {
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><g fill="%233d2c2c"><path d="M26 12v8c0 5-4 8-8 8h-2c-4 0-7-3-7-7v-3c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v1h1v-4c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v2h1v-3c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2v2h1v-2c0-1.1.9-2 2-2h0c1.1 0 2 .9 2 2z"/><circle cx="24" cy="10" r="1.5" fill="%23e76f5a"/></g></svg>') 8 0, grabbing;
}

a, button, .nav-links a {
    cursor: pointer;
}

/* Smooth transitions on interactive elements */
a, button, .nav-links a, .art-card, .blob-frame, .drop-zone {
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, background 0.2s ease;
}


/* ============================================
   Hero Section
   ============================================ */

/* Slow, calm fade-in animation */
@keyframes fadeInSoft {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 92vh;
    min-height: 92svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem var(--page-gutter);
    background: var(--bg);
    scroll-snap-align: start;
    overflow: hidden;
}

.site-title {
    text-align: center;
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInSoft 1.8s ease-out 1s forwards;
}

.site-title img {
    max-width: min(320px, 85vw);
    height: auto;
}

.hero-content {
    display: grid;
    grid-template-columns: repeat(2, auto);
    grid-template-areas:
        "photo photo"
        "left right";
    column-gap: 3rem;
    row-gap: 1.25rem;
    max-width: min(900px, 92vw);
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.hero-nav {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
}

.hero-left {
    grid-area: left;
    text-align: center;
    justify-self: end;
    animation: fadeInSoft 1.8s ease-out 1.6s forwards;
}

.hero-right {
    grid-area: right;
    text-align: center;
    justify-self: start;
    animation: fadeInSoft 1.8s ease-out 1.8s forwards;
}

.nav-link-main {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    transition: all 0.3s ease;
}

.nav-shop {
    color: var(--coral);
}

.nav-past {
    color: #5f9db0;
}

.nav-about {
    color: var(--coral-deep);
}

.nav-prints {
    color: #b87591;
}

.nav-portfolio {
    color: var(--text-soft);
}

.nav-link-main:hover {
    color: var(--coral);
    transform: translateX(5px);
}

.hero-left .nav-link-main:hover {
    transform: translateX(-5px);
}

.nav-link-sub {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-soft);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link-sub:hover {
    color: var(--coral);
}

.hero-photo {
    grid-area: photo;
    position: relative;
    opacity: 0;
    animation: fadeInSoft 2.2s ease-out 0.2s forwards;
}

.photo-frame {
    width: min(760px, 82vw, 71svh);
    aspect-ratio: 2616 / 1402;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(60, 30, 30, 0.12);
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   Art Thumbnails Row
   ============================================ */

.art-preview {
    padding: 1rem 0;
    background: var(--bg);
    overflow: hidden;
    position: relative;
    width: 600px;
    max-width: 90%;
    margin: 0.5rem auto 0;
    opacity: 0;
    animation: fadeInSoft 1.8s ease-out 2.2s forwards;
}


.thumbnail-row {
    display: flex;
    gap: 20px;
    padding: 1rem 0;
    cursor: grab;
    user-select: none;
}

.thumbnail-row.dragging {
    cursor: grabbing;
}

.art-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 7/9;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 4px;
}

.art-thumbnail.sold img {
    filter: grayscale(0.45);
    opacity: 0.62;
}

.thumbnail-sold-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-9deg);
    border: 2px solid #b91c1c;
    border-radius: 4px;
    background: #d62828;
    color: #fff;
    font: 800 0.72rem/1 'DM Sans', sans-serif;
    letter-spacing: 0;
    padding: 0.28rem 0.42rem;
    pointer-events: none;
    box-shadow: 0 5px 14px rgba(60, 30, 30, 0.14);
}

.thumbnail-row:not(.dragging) .art-thumbnail:hover {
    transform: rotate(-3deg) scale(1.1) translateY(-5px);
    box-shadow: 0 10px 30px rgba(60, 30, 30, 0.2);
    z-index: 10;
}

.thumbnail-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.art-preview:hover .thumbnail-dots {
    opacity: 1;
}

.thumb-dot {
    width: 20px;
    height: 20px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.4;
}

.thumb-dot img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumb-dot:hover {
    transform: scale(1.3);
    opacity: 0.7;
}

.thumb-dot.active {
    opacity: 1;
}

.art-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* ============================================
   Gallery - Stacked Cards
   ============================================ */

.gallery {
    padding: var(--section-space) var(--page-gutter);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
}

/* Sold Out Banner */
.sold-out-banner {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem 2rem;
    background: rgba(228, 73, 71, 0.1);
    border: 2px dashed var(--coral);
    border-radius: 12px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.sold-out-banner p {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--coral-deep);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.banner-icon {
    width: 30px;
    height: auto;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .sold-out-banner {
        padding: 0.75rem 1rem;
        margin-bottom: 1.5rem;
    }
    .sold-out-banner p {
        font-size: 1rem;
    }
    .banner-icon {
        width: 22px;
    }
}

/* Past Works Section */
.past-works {
    padding: var(--section-space) var(--page-gutter);
    background: #E8F4F8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.past-works-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--white);
    border: 2px solid var(--coral);
    color: var(--coral);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.past-works-back:hover {
    background: var(--coral);
    color: var(--white);
}

.past-works-title {
    font-size: var(--section-heading);
    color: var(--text);
    margin-bottom: 0.5rem;
    text-align: center;
}

.past-works-subtitle {
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.donation-counter {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(228, 73, 71, 0.08);
    border-radius: 12px;
    border: 1px dashed var(--coral);
}

.donation-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.donation-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.donation-label {
    font-family: var(--font-display);
    font-size: 0.82rem;
    color: var(--text-soft);
    text-transform: lowercase;
    letter-spacing: 0;
}

.donation-amount {
    font-family: var(--font-numbers);
    font-size: 1.35rem;
    color: var(--coral);
    font-weight: 400;
    line-height: 1.3;
}

/* Past Works Grid */
.past-works-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
}

.past-work-card {
    position: relative;
    width: 160px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

/* Random rotation for scattered look */
.past-work-card:nth-child(odd) {
    transform: rotate(-2deg);
}

.past-work-card:nth-child(even) {
    transform: rotate(2deg);
}

.past-work-card:nth-child(3n) {
    transform: rotate(-3deg);
}

.past-work-card:nth-child(4n) {
    transform: rotate(1deg);
}

.past-work-card:hover {
    transform: rotate(0deg) scale(1.08) translateY(-5px);
    z-index: 10;
}

.past-work-card img {
    width: 100%;
    aspect-ratio: 7/9;
    object-fit: contain;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Landscape paintings: same size, transparent bg instead of white */
.past-work-card.wide-image img {
    background: transparent;
    box-shadow: none;
}

/* Landscape paintings: move sold tag down onto the artwork */
.past-work-card.wide-image .sold-tag {
    top: 20%;
}

.past-work-card .sold-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--coral);
    color: white;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.past-work-card .past-work-title {
    font-family: 'Mamabear', serif;
    font-size: 0.95rem;
    color: var(--text);
    text-align: center;
    margin-top: 0.75rem;
}

/* Gallery Navigation Indicator */
.gallery-nav-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.gallery:hover .gallery-nav-indicator,
.gallery-nav-indicator:hover {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav-indicator .nav-dot {
    width: 20px;
    height: 20px;
    background: url('images/icons_animations/star.png') center/contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    padding: 0;
    opacity: 0.4;
}

.gallery-nav-indicator .nav-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.gallery-nav-indicator .nav-dot:hover {
    opacity: 1;
    transform: scale(1.6) rotate(20deg);
}

.past-works-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-soft);
    font-size: 1.1rem;
    padding: 3rem;
}

/* Coming Soon / Sales Disabled State */
.coming-soon-text {
    color: var(--coral);
    font-weight: 500;
}

.art-info.sales-disabled .drop-overlay {
    background: var(--bg-soft);
    opacity: 0.8;
}

/* Floating decorative elements */
.floater {
    position: absolute;
    font-size: 2rem;
    color: var(--coral-soft);
    opacity: 0.6;
    pointer-events: none;
    animation: float 6s ease-in-out infinite;
}

.floater-1 { top: 15%; left: 8%; animation-delay: 0s; }
.floater-2 { top: 70%; left: 5%; animation-delay: 1s; font-size: 1.5rem; }
.floater-3 { top: 20%; right: 10%; animation-delay: 2s; font-size: 1.2rem; }
.floater-4 { top: 75%; right: 8%; animation-delay: 3s; }
.floater-5 { top: 45%; right: 5%; animation-delay: 4s; font-size: 1.8rem; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
}

.gallery-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6rem;
    width: 100%;
    max-width: var(--content-width);
    align-items: center;
}

/* Card Stack */
.card-stack {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 7/9;
    margin: 0 auto;
}

.art-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0 10px 40px rgba(60, 30, 30, 0.15);
    cursor: grab;
    user-select: none;
    will-change: transform;
    transform-origin: center center;
    transition: box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 8px;
}

/* Top card hover wiggle */
.art-card:first-child:hover:not(.dragging) {
    animation: wiggle 0.5s ease-in-out;
}

@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-2deg) scale(1.02); }
    75% { transform: rotate(2deg) scale(1.02); }
}

.art-card:active {
    cursor: grabbing;
}

.art-card.dragging {
    cursor: grabbing;
    box-shadow:
        0 30px 60px rgba(60, 30, 30, 0.3),
        0 0 0 3px var(--coral);
    z-index: 100 !important;
}

.art-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

/* Landscape paintings: show full image without cropping */
.art-card.wide-image {
    width: 125%;
    height: 125%;
    left: -12.5%;
    top: -12.5%;
    background: transparent;
    box-shadow: none;
}

.art-card.wide-image img {
    object-fit: contain;
}

/* Landscape artwork cards - flip animation to display properly */
.art-card.landscape-card {
    transform-origin: center center;
}

/* When landscape card is on top and active, rotate to show properly */
.art-card.landscape-card.landscape-flipped {
    animation: landscape-flip-down 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.art-card.landscape-card .card-title {
    opacity: 0 !important;
}

@keyframes landscape-flip-down {
    0% {
        transform: var(--card-base-transform, translate(0, 0) rotate(0deg) scale(1));
    }
    100% {
        transform: rotate(90deg) scale(0.78);
    }
}

/* When swiping away, flip back first */
.art-card.landscape-card.landscape-flipping-back {
    animation: landscape-flip-back 0.3s ease-in forwards;
}

@keyframes landscape-flip-back {
    0% {
        transform: rotate(90deg) scale(0.78);
    }
    100% {
        transform: var(--card-exit-transform, translate(0, 0) rotate(0deg) scale(1));
    }
}

.art-card .card-title {
    display: none;
}

/* Card Stack Wrapper */
.card-stack-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 0;
}

/* Art Gallery Carousel */
.art-gallery-carousel {
    margin-top: 3.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.art-gallery-carousel.visible {
    opacity: 1;
    pointer-events: auto;
}

.art-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.art-gallery-thumb {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.3s ease;
    border: 2px solid transparent;
}

.art-gallery-thumb.loaded {
    opacity: 0.6;
}

.art-gallery-thumb.loaded:hover {
    opacity: 1;
    transform: scale(1.1);
}

.art-gallery-thumb.loaded.active {
    opacity: 1;
    border-color: var(--coral);
}

.art-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 214, 200, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(60, 30, 30, 0.2);
    transition: opacity 0.4s ease;
}

.lightbox-image.loading {
    opacity: 0;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: var(--coral);
    font-size: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease;
    line-height: 1;
}

.lightbox-close:hover {
    transform: scale(1.2);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--coral);
    font-size: 2.8rem;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    box-shadow: 0 8px 24px rgba(60, 30, 30, 0.16);
    transition: transform 0.2s ease, background 0.2s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.96);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: max(18px, 4vw);
}

.lightbox-next {
    right: max(18px, 4vw);
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 2.4rem;
    }
}


/* Art Info */
.art-info {
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
    border: 3px dashed transparent;
    border-radius: 16px;
    width: 100%;
    max-width: 420px;
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.art-info-content {
    transition: opacity 0.3s ease;
}

.drop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drop-overlay span {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--coral);
    letter-spacing: 0;
}

.drop-overlay .drop-hint {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-soft);
}

/* When dragging is active */
.art-info.drag-active {
    border-color: var(--coral);
    background: rgba(228, 73, 71, 0.05);
}

.art-info.drag-active .art-info-content {
    opacity: 0;
}

.art-info.drag-active .drop-overlay {
    opacity: 1;
}

/* When hovering over drop zone */
.art-info.drag-over {
    background: rgba(228, 73, 71, 0.15);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(228, 73, 71, 0.3);
}

.art-info h1 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    transition: all 0.3s ease;
    cursor: default;
}

.art-info h1:hover {
    color: var(--coral);
}

.art-info p {
    color: var(--text-soft);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Price bar with prints link */
.price-bar {
    padding: 1rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    text-align: center;
}

.art-info .price {
    font-size: 1rem;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.price-bar .prints-link {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 0;
}

.price-bar .charity-note {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin: 0.3rem 0;
    text-align: center;
    font-style: italic;
}

.price-bar .charity-note a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
}

.price-bar .charity-note a:hover {
    text-decoration: underline;
}

.prints-link a {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
}

.prints-link a:hover {
    text-decoration: underline;
}

.prints-link .prints-icon {
    width: 18px;
    height: auto;
    vertical-align: middle;
    margin-left: 4px;
}

.stack-hint {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hint-hand {
    display: inline-block;
    font-size: 1.2rem;
    animation: drag-hint 2s ease-in-out infinite;
}

@keyframes drag-hint {
    0%, 100% {
        transform: translateX(0) rotate(-10deg);
    }
    25% {
        transform: translateX(15px) rotate(0deg);
    }
    50% {
        transform: translateX(15px) rotate(5deg);
    }
    75% {
        transform: translateX(-5px) rotate(-5deg);
    }
}

/* Purchase hint */
.art-info .drag-hint-text {
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    text-align: center;
    letter-spacing: 0;
    animation: drag-hint-dance 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes drag-hint-dance {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(-1.5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(-3px) rotate(1.5deg);
    }
}

.card-counter {
    display: inline-block;
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
    margin-left: 0.5rem;
}

/* Drag indicator - floating hand */
.drag-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 200;
    animation: fade-out 4s ease-out forwards;
    animation-delay: 2s;
}

.drag-hand {
    font-size: 3rem;
    display: block;
    animation: hand-drag 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

@keyframes hand-drag {
    0%, 100% {
        transform: translate(0, 0) rotate(-5deg);
    }
    30% {
        transform: translate(40px, -10px) rotate(5deg);
    }
    60% {
        transform: translate(60px, 20px) rotate(10deg);
    }
}

@keyframes fade-out {
    0% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; visibility: hidden; }
}

.btn-purchase {
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.btn-purchase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-purchase:hover {
    background: var(--coral-deep);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(228, 73, 71, 0.4);
}

.btn-purchase:hover::before {
    width: 300px;
    height: 300px;
}

.btn-purchase:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 5px 15px rgba(228, 73, 71, 0.3);
}

/* ============================================
   About Section
   ============================================ */

.about {
    padding: var(--section-space) var(--page-gutter);
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.blob-frame {
    width: 280px;
    aspect-ratio: 1;
    background: url('images/marzia.png') center/cover, linear-gradient(135deg, var(--coral-soft), var(--bg-soft), var(--white));
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: blob 10s ease-in-out infinite;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blob-frame img {
    display: none;
}

.blob-frame:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(231, 111, 90, 0.2);
    animation-play-state: paused;
}

.profile-link {
    display: block;
    cursor: pointer;
}

.marzia-link {
    color: var(--coral);
    text-decoration: none;
    font-weight: 500;
}

.marzia-link:hover {
    text-decoration: underline;
}

@keyframes blob {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

.about-text h2 {
    font-size: var(--section-heading);
    color: var(--text);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-text h2:hover {
    color: var(--coral);
}

.about-text p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-text .signature {
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--coral);
    margin-top: 1.5rem;
    transition: all 0.3s ease;
    cursor: default;
}

.about-text .signature:hover {
    transform: translateX(10px);
    letter-spacing: 0;
}

.hello-sun {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-left: 8px;
}

/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding: var(--section-space) var(--page-gutter);
    text-align: center;
    background: #FDF8F6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    transition: min-height 0.3s ease;
}

.contact.footer-peek {
    min-height: calc(100vh - 50px);
}

.contact h2 {
    font-size: var(--section-heading);
    color: var(--text);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.chat-icon {
    width: 50px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.contact h2:hover {
    color: var(--coral);
    transform: scale(1.05);
}

.contact p {
    color: var(--text-soft);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.btn-contact {
    display: inline-block;
    background: transparent;
    border: none;
    padding: 0;
    text-decoration: none;
    position: relative;
    animation: contact-float 3s ease-in-out infinite;
}

@keyframes contact-float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.contact-btn-icon {
    width: 120px;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.btn-contact:hover {
    animation-play-state: paused;
}

.btn-contact:hover .contact-btn-icon {
    transform: scale(1.1);
}

.btn-contact:active .contact-btn-icon {
    transform: scale(0.95);
}

/* ============================================
   Contact Carousel
   ============================================ */

.contact-carousel {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
}

.carousel-slide h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 1rem;
}

.carousel-slide p {
    color: var(--text-soft);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.carousel-slide .btn-contact {
    margin-top: 1rem;
}

/* Contact slide */
.contact-slide {
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text);
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.contact-note {
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Carousel navigation dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.carousel-dot {
    width: 20px;
    height: 20px;
    background: url('images/icons_animations/star.png') center/contain no-repeat;
    border: none;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    padding: 0;
    opacity: 0.4;
}

.carousel-dot:hover {
    opacity: 1;
    transform: scale(1.6) rotate(20deg);
}

.carousel-dot.active {
    opacity: 1;
    transform: scale(1.3);
}

.carousel-dot.active:hover {
    transform: scale(1.6) rotate(20deg);
}

/* Carousel arrow buttons */
.carousel-arrows {
    position: absolute;
    top: 50%;
    left: -40px;
    right: -40px;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none;
}

.carousel-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--coral-soft);
    color: var(--coral);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: var(--coral);
    color: white;
    border-color: var(--coral);
    transform: scale(1.1);
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Slide-specific styles */
.faq-item {
    text-align: left;
    margin-bottom: 1rem;
}

.faq-item summary {
    min-height: var(--control-size);
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem 0;
    transition: color 0.3s;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('images/icons_animations/star.png') center/contain no-repeat;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::before {
    transform: rotate(72deg) scale(1.2);
}

.faq-item summary:hover {
    color: var(--coral);
}

.faq-item summary:hover::before {
    transform: scale(1.3);
}

.faq-item p {
    margin: 0.5rem 0 0 1.5rem;
    font-size: 0.9rem;
}

.faq-item a {
    color: var(--coral);
    text-decoration: none;
}

.faq-item a:hover {
    text-decoration: underline;
}

.shipping-list {
    text-align: left;
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 1.5rem;
}

.shipping-list li {
    padding: 0.3rem 0;
    border-bottom: 1px dashed var(--coral-soft);
    color: var(--text-soft);
    font-size: 0.8rem;
}

.shipping-list li:last-child {
    border-bottom: none;
}

.shipping-list strong {
    color: var(--text);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 36, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    perspective: 1500px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Flipping Card Container */
.card-flip-container {
    width: 420px;
    max-width: 90vw;
    aspect-ratio: 7/9;
    max-height: calc(100vh - 4rem);
    max-height: calc(100dvh - 4rem);
    position: relative;
}

@media (max-width: 600px) {
    .card-flip-container {
        width: 85vw;
        max-width: 360px;
        aspect-ratio: 7/10;
        max-height: calc(85vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        max-height: calc(85dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    }
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.modal-overlay.active .card-front {
    animation: front-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-overlay.active .card-back {
    animation: back-flip 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes front-flip {
    0% {
        transform: translateY(100px) rotateY(0deg) scale(0.5);
    }
    40% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
    100% {
        transform: translateY(0) rotateY(180deg) scale(1);
    }
}

@keyframes back-flip {
    0% {
        transform: translateY(100px) rotateY(-180deg) scale(0.5);
    }
    40% {
        transform: translateY(0) rotateY(-180deg) scale(1);
    }
    100% {
        transform: translateY(0) rotateY(0deg) scale(1);
    }
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.card-front {
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.card-back {
    background: var(--bg-card);
    padding: 1.2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    transform: rotateY(-180deg);
    position: relative;
}

.card-back-banner {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.3;
    pointer-events: none;
}

.card-back .payment-section,
.card-back .split-section {
    flex-shrink: 0;
}

.card-back .btn-checkout {
    margin-top: auto;
    flex-shrink: 0;
}

.support-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    margin-bottom: 0.3rem;
}

.btn-star {
    width: 32px;
    height: auto;
    vertical-align: middle;
    margin-left: 6px;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--bg);
    border: none;
    font-size: 1.2rem;
    color: var(--text-soft);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    width: var(--control-size);
    height: var(--control-size);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.modal-close:hover {
    background: var(--coral);
    color: var(--white);
    transform: rotate(90deg);
}

.sold-out-modal-content {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    background: #fffaf6;
    border: 2px solid var(--coral-soft);
    border-radius: 8px;
    padding: 4rem 2rem 2rem;
    text-align: center;
    box-shadow: 0 18px 60px rgba(60, 30, 30, 0.22);
}

.sold-out-star {
    width: 34px;
    height: 34px;
    object-fit: contain;
    margin-bottom: 0.85rem;
}

.sold-out-modal-content h2 {
    font-size: 1.75rem;
    line-height: 1.25;
    color: var(--coral);
    margin-bottom: 1rem;
}

.sold-out-modal-content p {
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.55;
}

.sold-out-instagram {
    display: inline-flex;
    margin: 1rem 0 0.85rem;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: var(--coral);
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
}

.sold-out-instagram:hover {
    background: var(--coral-deep);
    transform: translateY(-1px);
}

.sold-out-modal-content .sold-out-note {
    font-size: 0.9rem;
}

.notify-next-form {
    margin: 1.35rem 0 0.4rem;
    text-align: left;
}

.notify-next-form label {
    display: block;
    font-family: var(--font-body);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.notify-next-row {
    display: flex;
    gap: 0.5rem;
}

.notify-next-row input {
    flex: 1;
    min-width: 0;
    height: var(--control-size);
    border: 1px solid var(--coral-soft);
    border-radius: 8px;
    background: var(--white);
    color: var(--text);
    font: 0.95rem 'DM Sans', sans-serif;
    padding: 0 0.75rem;
}

.notify-next-row input:focus {
    outline: 2px solid rgba(238, 119, 119, 0.22);
    border-color: var(--coral);
}

.notify-next-row button {
    height: var(--control-size);
    border: 0;
    border-radius: 8px;
    background: var(--sage-deep);
    color: var(--white);
    cursor: pointer;
    font: 700 0.9rem 'DM Sans', sans-serif;
    padding: 0 0.85rem;
    white-space: nowrap;
}

.notify-next-row button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.notify-next-row button:disabled {
    cursor: wait;
    opacity: 0.72;
}

.sold-out-modal-content .notify-next-status {
    min-height: 1.15rem;
    color: var(--sage-deep);
    font-size: 0.8rem;
    line-height: 1.35;
    margin-top: 0.45rem;
}

.sold-out-modal-content .notify-next-status.error {
    color: var(--coral-deep);
}

.sold-out-modal-content .sold-out-signature {
    margin-top: 1rem;
    font-family: var(--font-display);
    color: var(--text);
    font-size: 1.3rem;
}

.card-back h2.card-back-title {
    font-family: var(--font-display);
    font-weight: 500;
    color: #E44947;
    margin-bottom: 0.8rem;
    font-size: 1.4rem;
    text-align: center;
    margin-top: 0.3rem;
}

/* Payment Sliders */
.payment-section,
.split-section {
    margin-bottom: 0.8rem;
}

.payment-section label,
.split-section label {
    display: block;
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0;
}

.price-display {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.4rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 1rem;
}

.price-display .currency {
    font-size: 1.5rem;
}

/* Custom Slider */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    outline: none;
    margin: 0.75rem 0;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    cursor: pointer;
    transition: transform 0.2s;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--coral);
    cursor: pointer;
    border: none;
}

.price-range-labels,
.split-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Price note */
.price-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* Split Bar Slider */
.split-bar-container {
    margin: 0.6rem 0;
}

.split-bar {
    display: flex;
    align-items: center;
    height: 24px;
    border-radius: 12px;
    margin-bottom: 0.75rem;
    background: var(--border);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.artist-portion {
    background: var(--coral);
    height: 100%;
    transition: width 0.1s ease;
    border-radius: 12px 0 0 12px;
}

.charity-portion {
    background: var(--coral-soft);
    height: 100%;
    flex: 1;
    transition: width 0.1s ease;
    border-radius: 0 12px 12px 0;
}

.split-handle {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: grab;
    z-index: 2;
    transition: box-shadow 0.2s ease;
}

.split-handle:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.3);
}

.split-handle:active {
    cursor: grabbing;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.split-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.split-icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 6px;
}

.artist-label {
    color: var(--coral-deep);
    font-weight: 600;
}

.charity-label {
    color: var(--text-soft);
    font-weight: 600;
}

.charity-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    margin-top: 0.5rem;
}

/* Shipping Section */
.shipping-section {
    margin-bottom: 0.8rem;
}

.shipping-section label {
    display: block;
    text-align: center;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    text-transform: lowercase;
    letter-spacing: 0;
}

.shipping-select {
    width: 100%;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    cursor: pointer;
    margin-bottom: 0.6rem;
}

.shipping-select:focus {
    outline: none;
    border-color: var(--coral);
}

.shipping-note {
    font-size: 0.85rem;
    color: var(--text-soft);
    text-align: center;
    margin: 0.5rem 0;
    font-style: italic;
}

.shipping-options {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.shipping-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.shipping-option:hover {
    border-color: var(--coral-soft);
    background: rgba(252, 204, 214, 0.2);
}

.shipping-option input[type="radio"] {
    accent-color: var(--coral);
}

.shipping-option input[type="radio"]:checked + .option-details {
    color: var(--coral-deep);
}

.option-details {
    display: flex;
    justify-content: space-between;
    flex: 1;
    font-size: 0.8rem;
}

.option-name {
    font-weight: 500;
}

.option-info {
    color: var(--text-soft);
}

.charity-link {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.checkout-warning {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin: 1rem 0 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 6px;
    line-height: 1.4;
}

.charity-link a {
    color: var(--coral);
    text-decoration: none;
}

.charity-link a:hover {
    text-decoration: underline;
}

.btn-checkout {
    width: 100%;
    background: var(--coral);
    color: var(--white);
    border: none;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: lowercase;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1.5rem;
}

.btn-checkout:hover {
    background: var(--coral-deep);
}

.demo-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 1rem;
}

/* Success Modal - Thank You Panel */
.card-thankyou {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: url('images/icons_animations/pattern_bg.jpg') center/cover no-repeat;
    padding: 2rem 1.5rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transform: rotateY(90deg);
    transition: none;
}

.card-thankyou.active {
    opacity: 1;
    pointer-events: auto;
    animation: thankyou-flip-in 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.25s;
}

@keyframes thankyou-flip-in {
    0% {
        transform: rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: rotateY(0deg);
        opacity: 1;
    }
}

.card-back.flipped {
    animation: back-flip-out 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes back-flip-out {
    0% {
        transform: rotateY(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateY(-90deg);
        opacity: 0;
    }
}

.success-image {
    max-width: 220px;
    height: auto;
    margin-bottom: 1rem;
}

.card-thankyou p {
    color: var(--text);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ============================================
   Footer
   ============================================ */

footer {
    text-align: center;
    padding: 3rem var(--page-gutter);
    background: var(--bg-soft);
    scroll-snap-align: end;
}

footer p {
    color: var(--text-soft);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.footer-links {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--coral);
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-light);
}

.back-to-top {
    display: inline-block;
    margin-bottom: 1.5rem;
    padding: 0.6rem 1.5rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--coral);
    text-decoration: none;
    border: 2px solid var(--coral);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: var(--coral);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   Success Overlay
   ============================================ */

.success-overlay {
    position: fixed;
    inset: 0;
    background: rgba(45, 36, 36, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.success-content {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.success-content h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--coral);
    margin-bottom: 1rem;
}

.success-content p {
    color: var(--text-soft);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.success-content .success-image {
    max-width: 180px;
    margin-bottom: 1rem;
}

/* Sold Badge */
.art-card.sold::after {
    content: 'SOLD';
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--coral);
    color: white;
    padding: 0.5rem 2rem;
    font-family: var(--font-display);
    font-size: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 10;
}

.art-card.sold {
    opacity: 0.7;
}

/* Landscape paintings: move SOLD tag down to sit on the artwork */
.art-card.sold.wide-image::after {
    top: 22%;
}

/* Sold Out text in price area */
.sold-out-text {
    color: var(--coral);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 500;
}

/* ============================================
   Auction System Styles
   ============================================ */

/* LIVE Badge on auction cards */
.auction-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e53935;
    color: white;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(229, 57, 53, 0.4);
    z-index: 10;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Auction info in art-info panel */
.auction-info {
    background: rgba(229, 57, 53, 0.08);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.auction-info .current-bid {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
}

.auction-info .countdown {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-top: 0.5rem;
}

.btn-bid {
    background: #e53935;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
}

.btn-bid:hover {
    background: #c62828;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 57, 53, 0.3);
}

/* Bidder Registration Modal */
.bidder-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 2rem;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.bidder-modal-content h2 {
    font-family: var(--font-display);
    color: var(--coral);
    margin-bottom: 0.5rem;
    text-align: center;
}

.bidder-intro {
    text-align: center;
    color: var(--text-soft);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--coral);
}

#card-container {
    min-height: 50px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
}

.card-note {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    text-align: center;
}

.btn-register {
    width: 100%;
    background: var(--coral);
    color: white;
    border: none;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.btn-register:hover {
    background: var(--coral-deep);
}

.btn-register:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.registration-error {
    color: #e53935;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 1rem;
    min-height: 1.2em;
}

/* Auction Bid Modal */
.auction-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.auction-artwork {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.auction-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #e53935;
    color: white;
    padding: 0.4rem 1rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0;
    border-radius: 4px;
    animation: pulse-live 2s ease-in-out infinite;
}

.auction-details {
    padding: 1.5rem;
}

.auction-details h2 {
    font-family: var(--font-display);
    color: var(--text);
    margin-bottom: 1rem;
}

.auction-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.timer-label {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.timer-value {
    font-family: var(--font-body);
    font-size: 1.2rem;
    font-weight: 600;
    color: #e53935;
    background: rgba(229, 57, 53, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
}

.current-bid-display {
    background: var(--bg);
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bid-label {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.bid-amount {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--text);
}

.bidder-status {
    margin-bottom: 1rem;
}

.bidder-logged-in {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 8px;
}

.bidder-logged-in .bidder-name {
    font-weight: 500;
    color: var(--text);
}

.bidder-logged-in .card-info {
    font-size: 0.85rem;
    color: var(--text-soft);
}

.btn-register-prompt {
    width: 100%;
    background: var(--coral);
    color: white;
    border: none;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-register-prompt:hover {
    background: var(--coral-deep);
}

.place-bid-form label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.bid-input-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.bid-input-row .currency {
    font-size: 1.2rem;
    color: var(--text);
}

.bid-input-row input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.bid-input-row input:focus {
    outline: none;
    border-color: var(--coral);
}

.btn-place-bid {
    background: #e53935;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.btn-place-bid:hover {
    background: #c62828;
}

.btn-place-bid:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.bid-error {
    color: #e53935;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    min-height: 1.2em;
}

.bid-success {
    color: #4caf50;
}

.bid-history {
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.bid-history h4 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-soft);
    margin-bottom: 0.75rem;
}

.bid-history ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 150px;
    overflow-y: auto;
}

.bid-history li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--border);
    font-size: 0.85rem;
}

.bid-history li:last-child {
    border-bottom: none;
}

.bid-history .bid-name {
    color: var(--text);
}

.bid-history .bid-time {
    color: var(--text-light);
    font-size: 0.75rem;
}

.bid-history .bid-value {
    font-weight: 600;
    color: var(--coral);
}

/* Highest bidder indicator */
.bid-history li.highest {
    background: rgba(76, 175, 80, 0.1);
    border-radius: 4px;
    padding: 0.5rem;
    margin: -0.25rem;
}

/* Auction ended state */
.auction-ended .live-badge {
    background: var(--text-soft);
    animation: none;
}

.auction-ended .timer-value {
    background: var(--text-light);
    color: white;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    :root {
        --page-gutter: 2rem;
    }
    .hero-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "photo"
            "left"
            "right";
        gap: 0.75rem;
        text-align: center;
    }

    .hero-left, .hero-right {
        text-align: center;
        justify-self: center;
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .photo-frame {
        width: min(420px, 80vw);
        margin: 0 auto;
    }

    .thumbnail-row {
        gap: 1rem;
    }

    .art-thumbnail {
        width: 80px;
    }

    .gallery-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .card-stack {
        max-width: 320px;
    }

    .art-info {
        max-width: 480px;
        margin: 0 auto;
    }

    .art-info h1 {
        font-size: 2.2rem;
    }

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

    .blob-frame {
        max-width: 200px;
        margin: 0 auto;
    }

    /* Past works responsive */
    .gallery-panel {
        padding: 4rem 1.5rem;
    }

    .past-works-grid {
        gap: 1.5rem;
    }

    .past-work-card {
        width: 130px;
    }

    .past-work-card .sold-tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.5rem;
    }

    .past-works-title {
        font-size: var(--section-heading);
    }
}

@media (max-width: 600px) {
    :root {
        --page-gutter: 1.5rem;
        --section-space: 3rem;
    }
    .navbar {
        padding: 1rem 1.5rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* Hero mobile layout - reorder elements */
    .hero {
        padding: 2rem 1.5rem 2rem;
        min-height: 92svh;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .site-title {
        order: 1;
        margin-bottom: 0;
    }

    .hero-content {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-photo {
        order: 1;
    }

    /* All nav links in a row */
    .hero-left, .hero-right {
        order: 2;
        flex-direction: row;
        gap: 1.5rem;
    }

    /* Combine navs into single row */
    .hero-content {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-left {
        flex-direction: row;
        order: 3;
    }

    .hero-right {
        flex-direction: row;
        order: 3;
    }

    .nav-link-main {
        font-size: 1.15rem;
    }

    .nav-link-sub {
        font-size: 0.75rem;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .photo-frame {
        width: min(320px, 86vw);
    }

    .art-preview {
        order: 3;
        padding: 1rem;
    }

    .art-thumbnail {
        width: 50px;
    }

    /* Gallery mobile - thumbnails above artwork */
    .gallery {
        padding: 3rem 1.5rem;
    }

    .card-stack-wrapper {
        flex-direction: column-reverse;
    }

    .art-gallery-carousel {
        margin-top: 0;
        margin-bottom: 1rem;
    }

    .card-stack {
        max-width: min(280px, 80%);
    }

    .art-info {
        max-width: 400px;
        aspect-ratio: auto;
        padding: 1rem 0;
    }

    .art-info h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .art-info p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    .drop-overlay {
        justify-content: flex-start;
        padding-top: 1rem;
    }

    .modal {
        padding: 2rem 1.5rem;
    }

    .price-display {
        font-size: 2.5rem;
    }

    .carousel-dots {
        margin-top: 0.75rem;
    }

    .donation-counter {
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .donation-icon {
        width: 18px;
        height: 18px;
    }

    .donation-label {
        font-size: 0.7rem;
    }

    .donation-amount {
        font-size: 1.2rem;
    }

    .past-works-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem 1.25rem;
        padding: 1rem 0;
    }

    .past-work-card {
        width: 100%;
        max-width: 160px;
        justify-self: center;
    }

    .sold-out-modal-content {
        padding: 4rem 1.25rem 1.5rem;
    }

    .notify-next-row {
        flex-direction: column;
    }

    .notify-next-row input {
        flex: none;
    }

    .contact-link {
        max-width: 100%;
        padding: 0.75rem;
        overflow-wrap: anywhere;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
