/* ============================================
   ARTWORK PAGE STYLES
   Aligned with t9-base.css Perrotin aesthetic

   NOTE: t9-base.css excludes artwork page sections
   using :not() selectors, so no !important needed
   ============================================ */

/* ----------------------------------------
   HERO SPLIT LAYOUT
   ---------------------------------------- */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.hero-gallery {
    position: sticky;
    top: 100px;
    align-self: start;
}

.hero-main-image {
    width: 100%;
}

.artwork-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero-thumbnails {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.hero-thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.15s ease;
}

.hero-thumbnails img:hover,
.hero-thumbnails img.active {
    opacity: 1;
}

.hero-purchase {
    padding-top: 1rem;
}

/* Artwork Title (H1) */
.hero-purchase h1 {
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111;
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
}

.hero-medium {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.25rem;
}

.hero-artist {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.emotional-pitch {
    font-size: 1.1rem;
    font-style: italic;
    color: #333;
    margin: 1rem 0 1.5rem;
    line-height: 1.5;
}

.hero-price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 400;
    color: #111;
}

.status-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.6rem;
    border: 1px solid #ccc;
    color: #666;
}

.status-badge.available {
    background: #f5f5f5;
    border-color: #111;
    color: #111;
}

.status-badge.sold {
    background: #e8e8e8;
    border-color: #ccc;
    color: #888;
}

/* ----------------------------------------
   PRICE BREAKDOWN
   ---------------------------------------- */
.price-breakdown {
    background: #f7f7f5;
    border-left: 2px solid #111;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.8rem;
    color: #333;
}

.breakdown-item span {
    font-weight: 500;
    color: #111;
}

.breakdown-item.addon {
    color: #666;
}

.breakdown-item.addon span {
    color: #666;
    font-weight: 400;
}

.breakdown-item.note {
    font-size: 0.7rem;
    color: #888;
    font-style: italic;
    padding-left: 0.75rem;
}

/* ----------------------------------------
   FRAME CARD SELECTION UI
   ---------------------------------------- */
.framing-options {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.framing-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.75rem;
}

.frame-cards {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.frame-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    background: #fff;
    flex: 1;
    min-width: 0;
}

.frame-card:hover {
    border-color: #666;
}

.frame-card.selected {
    border-color: #111;
    background: #fff;
}

.frame-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 0.5rem;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: opacity 0.15s ease;
}

.frame-card:hover .frame-icon,
.frame-card.selected .frame-icon {
    opacity: 1;
}

.frame-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.frame-name {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #333;
}

.frame-price {
    font-size: 0.65rem;
    color: #888;
}

.frame-card.selected .frame-name {
    color: #111;
}

/* Glass option checkbox */
.glass-option {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #333;
    cursor: pointer;
}

.option-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #111;
}

.option-label {
    flex: 1;
}

.option-price {
    color: #666;
    font-size: 0.75rem;
}

/* ----------------------------------------
   TRUST BULLETS
   ---------------------------------------- */
.trust-bullets {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.trust-bullets li {
    font-size: 0.8rem;
    color: #666;
    padding: 0.4rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.trust-bullets li:last-child {
    border-bottom: none;
}

/* ----------------------------------------
   PURCHASE ACTIONS
   ---------------------------------------- */
.purchase-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.btn-primary {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: 1rem 2rem;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.btn-primary:hover {
    background: #fff;
    color: #111;
}

.btn-primary:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #888;
    cursor: not-allowed;
}

.btn-secondary {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: #111;
    border: 1px solid #ccc;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.15s ease;
}

.btn-secondary:hover {
    border-color: #111;
}

/* ----------------------------------------
   TRUST BADGES
   ---------------------------------------- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e8e8;
}

.trust-badges .badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    padding: 0.4rem 0.6rem;
    background: #f7f7f5;
}

/* ----------------------------------------
   CONTENT COLUMNS (Curatorial + Details)
   ---------------------------------------- */
.content-columns {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-top: 1px solid #e8e8e8;
}

body.artwork-page .col-curatorial h2,
body.artwork-page .col-details h2 {
    font-size: 1.5rem !important;
    font-weight: 400 !important;
    color: #111 !important;
    margin: 0 0 1.5rem 0 !important;
    padding-bottom: 0.75rem !important;
    border-bottom: 1px solid #e8e8e8 !important;
}

body.artwork-page .col-curatorial p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: #333 !important;
    margin-bottom: 1.25rem !important;
}

body.artwork-page .col-curatorial p strong {
    color: #111 !important;
    font-weight: 500 !important;
}

/* Details Section */
.details-section {
    margin-bottom: 2rem;
}

.details-section h3 {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin: 0 0 1rem 0;
}

.specs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.specs-list li {
    font-size: 0.85rem;
    color: #333;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e8e8e8;
}

.specs-list li:last-child {
    border-bottom: none;
}

.specs-list li strong {
    color: #666;
    font-weight: 400;
}

/* Provenance Accordion */
.provenance-accordion {
    border-bottom: 1px solid #e8e8e8;
}

.provenance-accordion summary {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
    padding: 1rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.provenance-accordion summary::-webkit-details-marker {
    display: none;
}

.provenance-accordion summary::after {
    content: '+';
    font-size: 1rem;
    color: #888;
    transition: transform 0.15s ease;
}

.provenance-accordion[open] summary::after {
    content: '−';
}

.provenance-content {
    padding: 0 0 1.5rem 0;
}

.provenance-content p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 0.75rem;
}

.provenance-content ul {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #333;
    padding-left: 1.25rem;
    margin: 0.75rem 0;
    list-style: disc;
}

/* Gallery Label */
.gallery-label pre {
    font-size: 0.75rem;
    line-height: 1.8;
    letter-spacing: 0.02em;
    background: #f7f7f5;
    padding: 1rem 1.25rem;
    white-space: pre-wrap;
    margin-bottom: 1rem;
    border: none;
    border-left: 2px solid #ccc;
}

.copy-label-btn {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.copy-label-btn:hover {
    background: #fff;
    color: #111;
}

/* ----------------------------------------
   ARTIST BLOCK
   ---------------------------------------- */
.artist-block {
    background: #f7f7f5;
    padding: 2rem;
}

.artist-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.artist-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
}

.artist-info strong {
    font-size: 1.1rem;
    font-weight: 500;
    color: #111;
    display: block;
    margin-bottom: 0.25rem;
}

.artist-info p {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* ----------------------------------------
   SERIES BAR
   ---------------------------------------- */
.series-bar {
    background: #111;
    padding: 1.25rem 2rem;
}

.series-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.series-label {
    font-size: 0.8rem;
    color: #fff;
}

.series-link {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    transition: border-color 0.15s ease;
}

.series-link:hover {
    border-color: #fff;
}

/* ----------------------------------------
   KEYWORDS SECTION
   ---------------------------------------- */
.keywords-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.keywords-section h2 {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin: 0 0 1.25rem 0;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.keyword-tag {
    font-size: 0.75rem;
    color: #333;
    padding: 0.4rem 0.8rem;
    background: #f7f7f5;
    border: 1px solid #e8e8e8;
    transition: border-color 0.15s ease;
}

.keyword-tag:hover {
    border-color: #888;
}

/* ----------------------------------------
   RELATED WORKS
   ---------------------------------------- */
.related-works {
    background: #f7f7f5;
    padding: 4rem 2rem;
}

.related-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.related-works h2 {
    font-size: 1.5rem;
    font-weight: 400;
    color: #111;
    margin: 0 0 2rem 0;
}

.collection-link {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #111;
    text-decoration: none;
    display: inline-block;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid #ccc;
    transition: border-color 0.15s ease;
}

.collection-link:hover {
    border-color: #111;
}

/* ----------------------------------------
   TESTIMONIALS CAROUSEL
   ---------------------------------------- */
.testimonials-section {
    padding: 4rem 2rem;
    background: #f7f7f5;
    overflow: hidden;
}

.testimonials-section h2 {
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 0.5rem;
    color: #111;
}

.testimonials-subtitle {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    color: #666;
    margin-bottom: 2.5rem;
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    animation: scroll-testimonials 30s linear infinite;
}

.testimonial-card {
    flex: 0 0 320px;
    background: #fff;
    padding: 2rem;
    border: 1px solid #e8e8e8;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #333;
    margin-bottom: 1.25rem;
    line-height: 1.7;
}

.testimonial-author {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
}

@keyframes scroll-testimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.testimonials-section:hover .testimonials-track {
    animation-play-state: paused;
}

/* ----------------------------------------
   RESPONSIVE
   ---------------------------------------- */
@media (max-width: 860px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-gallery {
        position: relative;
        top: 0;
    }

    .content-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-split {
        padding: 2rem 1.5rem;
    }

    .hero-purchase h1 {
        font-size: 1.2rem;
    }

    .content-columns {
        padding: 3rem 1.5rem;
    }

    .frame-cards {
        gap: 0.4rem;
    }

    .frame-icon {
        width: 50px;
        height: 50px;
    }

    .testimonial-card {
        flex: 0 0 280px;
        padding: 1.5rem;
    }

    .hero-price-block {
        flex-direction: column;
        gap: 0.5rem;
    }

    .artist-inner {
        flex-direction: column;
        text-align: center;
    }

    .series-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .frame-cards {
        gap: 0.25rem;
    }

    .frame-icon {
        width: 40px;
        height: 40px;
    }

    .frame-text {
        display: none;
    }

    .frame-card {
        padding: 0.5rem 0.25rem;
    }

    .purchase-actions {
        gap: 0.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.9rem 1.5rem;
    }

    .trust-badges {
        gap: 0.35rem;
    }

    .trust-badges .badge {
        font-size: 0.6rem;
        padding: 0.3rem 0.5rem;
    }
}
