/* Acrylic Photo Frame hub — split banner + configurator (/acrylic-photo-frame) */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&display=swap');

:root {
    --apf-gold: #C6A972;
    --apf-gold-border: rgba(198, 169, 114, 0.35);
    --apf-warm: #F8F7F4;
    --apf-warm-muted: rgba(248, 247, 244, 0.72);
}

.single-product-hero--acrylic-photo-frame.home-self-code {
    max-width: none;
    background: #fff;
    color: #222;
    padding-bottom: 0;
    position: relative;
}

/* Two-column split: hero gallery left, pricing panel right */
.apf-hub-split {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    box-sizing: border-box;
}

.apf-hub-split__gallery {
    position: relative;
    min-width: 0;
}

.apf-hub-split__gallery .slider.new_slide {
    position: relative;
    height: clamp(430px, 44vw, 640px);
}

.apf-hub-split__gallery .category-hero-slide-img {
    object-fit: contain;
    object-position: center;
    background: #111;
}

.apf-hub-split__config {
    min-width: 0;
}

.single-product-hero--acrylic-photo-frame .apf-hub-split__config .premium-configurator-wrapper--acrylic.banner-from-table,
.single-product-hero--acrylic-photo-frame .apf-hub-split__config #cff-order-source.banner-from-table {
    position: static !important;
    right: auto !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: auto !important;
}

@media (min-width: 992px) {
    .apf-hub-split {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 400px;
        gap: 20px;
        align-items: start;
        padding: 8px 16px 0;
    }

    .apf-hub-split__gallery {
        overflow: hidden;
        border-radius: 6px;
        background: #111;
    }

    .apf-hub-split__config {
        position: sticky;
        top: 8px;
        align-self: start;
    }
}

@media (max-width: 991px) {
    .single-product-hero--acrylic-photo-frame.home-self-code {
        display: block;
    }

    .apf-hub-split {
        display: flex;
        flex-direction: column;
        gap: 12px;
        padding: 0 8px;
    }

    .apf-hub-split__gallery .slider.new_slide {
        height: clamp(210px, 52vw, 280px);
    }

    .single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic.banner-from-table,
    .single-product-hero--acrylic-photo-frame #cff-order-source.banner-from-table {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

.single-product-hero--acrylic-photo-frame .pp-category-hero-frame.apf-hub-split__gallery {
    overflow: hidden;
}

.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic.banner-from-table,
.single-product-hero--acrylic-photo-frame #cff-order-source.banner-from-table {
    overflow: visible !important;
    max-height: none !important;
    height: auto !important;
}

.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic .tbale-row,
.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic .premium-content-body,
.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic .calculate-canvas-box {
    overflow: visible !important;
}

.single-product-hero--acrylic-photo-frame .premium-header-banner--acrylic {
    display: block;
}

.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic .premium-header-banner--acrylic {
    padding: 5px 4px !important;
    border-bottom-width: 2px;
}

.single-product-hero--acrylic-photo-frame .premium-configurator-wrapper--acrylic .premium-header-banner--acrylic .premium-configurator-title {
    font-size: 15px !important;
    line-height: 1.15 !important;
}

/* Hero emotional overlay (split gallery) */
.apf-hero-overlay {
    position: absolute;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 8;
    width: min(92%, 560px);
    padding: 14px 16px;
    text-align: center;
    background: rgba(14, 17, 22, 0.82);
    border: 1px solid var(--apf-gold-border);
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.apf-hero-overlay__eyebrow {
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--apf-gold);
}

.apf-hero-overlay__title {
    margin: 0 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--apf-warm);
}

.apf-hero-overlay__sub {
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
    color: var(--apf-warm-muted);
}

.premium-header-banner--acrylic {
    padding: 5px 4px !important;
}
