/* Import Fonts from main stylesheet */
@font-face {
    font-family: 'Kiona-Regular';
    src: url('../fonts/Kiona-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'guester';
    src: url('../fonts/guester.otf') format('opentype');
}

body {
    background-color: var(--cine-bg);
    color: var(--cine-text);
    overflow-x: hidden;
    font-family: var(--body-font);
}

h2 {
    font-family: 'guester', sans-serif;
    font-size: 3rem;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 2px;
}



/* --- Hero Section --- */
.product-hero-section {
    position: relative;  /* damit z-index wirkt */
    z-index: 2;          /* über dem Video */
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--cine-bg); /* optional, falls Video durchscheint */
}

.product-hero-section h1 {
    font-family: 'guester', sans-serif;
    font-size: 5rem;
    margin-bottom: 1rem;
}

.product-hero-section p {
    font-size: 1.2rem;
    color: var(--cine-text-dim);
}

.scroll-button {
    margin-top: 2rem;
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--brand-amazon);
    color: var(--cine-bg);
    cursor: pointer;
    transition: background-color 0.3s;
}
.scroll-button:hover {
    background-color: var(--brand-amazon-alt);
}


/* --- Main Scrolling Video Section --- */

.product-container {
    display: flex;
    flex-direction: column;
    position: relative;
    /* This container should have a defined height for the sticky element to work within */
    height: 500vh; /* 100vh for each of the 4 text sections + extra space */
}

.product-sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-wrapper {
    position: fixed;        /* immer im Viewport */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* zentriert */
    /* Performance optimizations for Safari */
    will-change: transform;
    width: 100%;
    height: 100%;
    object-fit: cover;      /* füllt den Hintergrund */
    transition: transform 1s ease-in-out;
    z-index: 1;             /* unter den Texten */
}


video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.product-container.step-1 .video-wrapper { transform: translate(-50%, -50%); }
.product-container.step-2 .video-wrapper { transform: translate(-70%, -50%); }
.product-container.step-3 .video-wrapper { transform: translate(-30%, -50%); }
.product-container.step-4 .video-wrapper { transform: translate(-50%, -50%); }


.product-scroll-sections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.text-section {
    height: 100vh;
    display: flex;
    align-items: center;
    width: 45%;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
    position: relative;
    z-index: 2; /* über dem Video */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform; /* improves Safari animations */
}

.text-section.center {
    margin: 0 auto;
    text-align: center;
    justify-content: center;
    transform: translateY(30px);
}

.text-section {
    height: 100vh;
    display: flex;
    align-items: center;
    width: 45%;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.7s ease-in-out, transform 0.7s ease-in-out;
}

/* Standard = links */
.text-section {
    justify-content: flex-start;
    margin-right: auto;
    transform: translateX(-100%);
}

/* Jeder zweite Text rechts */
.text-section:nth-child(even) {
    justify-content: flex-end;
    margin-left: auto;
    margin-right: 0;
    transform: translateX(100%);
}

/* Sichtbar = in Position */
.text-section.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.text-section.is-visible {
    opacity: 1;
    transform: translateX(0);
}
.text-section.center.is-visible {
    transform: translateY(0);
}

.text-section {
    opacity: 0;
    transition: opacity 0.8s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.text-section.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* --- Shop Preview Section --- */

.shop-preview-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--cine-bg);
}

.shop-item-wrapper {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap; /* allow wrapping on small screens */
    max-width: 1200px;
    margin: 2rem 0;
}

.shop-details {
    max-width: 400px;
    text-align: center; /* centered on mobile */
    width: 100%;
}


.shop-image-container {
    position: relative; /* make container relative */
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1/1; /* keeps square ratio */
    overflow: hidden;  /* optional, ensures no overflow */
}

.shop-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* important to fill container */
    object-fit: contain; /* or cover, depending on your images */
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.55s var(--ease-out),
                transform 0.7s var(--ease-out);
}

.shop-image.is-active {
    opacity: 1;
    transform: scale(1);
}

.color-selector {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

.color-circle {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--cine-border);
    transition: border-color 0.3s var(--ease-out),
                transform 0.25s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
}
.color-circle:hover {
    transform: scale(1.12);
}
.color-circle.is-selected {
    border-color: var(--cine-text);
    box-shadow: 0 0 0 3px hsla(var(--accent-h), var(--accent-s), var(--accent-l), 0.25);
}
.color-circle[data-color="black"] { background-color: #333; }
.color-circle[data-color="silver"] { background-color: #d0d0d0; }

.amazon-button {
    color: var(--cine-bg);
    background-color: var(--brand-amazon);
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 1rem;
    transition: background-color 0.3s;
}
.amazon-button:hover {
    background-color: var(--brand-amazon-alt);
}

@media (max-width: 768px) {
    .shop-image-container {
        width: 100%;
    }
    .shop-details {
        text-align: center;
    }
}


@media (max-width: 768px) {
    .shop-item-wrapper {
        flex-direction: column;
        gap: 2rem;
    }
}

.scroll-button {
    margin-top: 2rem;
    padding: 15px 30px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    background-color: var(--brand-amazon); /* accent color */
    color: var(--cine-bg);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}
.scroll-button:hover {
    background-color: var(--brand-amazon-alt); /* darker on hover */
    transform: scale(1.05); /* subtle hover effect */
}

.hidden-video .video-wrapper {
    display: none !important; /* completely hide video */
}

@media (max-width: 768px) {
    .product-container.step-1 .video-wrapper,
    .product-container.step-2 .video-wrapper,
    .product-container.step-3 .video-wrapper,
    .product-container.step-4 .video-wrapper {
        transform: translate(-50%, -50%) !important; /* keep it centered */
    }

    .text-section {
        width: 90%; /* full width on mobile */
        padding: 1rem;
    }
}
/* --- Product Eyebrow --- */
.product-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 1rem;
    text-align: center;
}
.product-eyebrow i {
    margin-right: 0.4rem;
    vertical-align: -2px;
}

/* --- Features Bar --- */
.product-features-bar {
    background: var(--cine-glass-soft);
    border-top: 1px solid var(--cine-glass-soft);
    border-bottom: 1px solid var(--cine-glass-soft);
    padding: 2rem 0;
}
.features-bar-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
}
.feature-bar-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cine-text-dim);
    font-size: 0.9rem;
    transition: transform 0.3s var(--ease-out), color 0.3s var(--ease-out);
}
.feature-bar-item:hover {
    transform: translateY(-3px);
    color: var(--cine-text);
}
.feature-bar-item i {
    font-size: 1.2rem;
    color: var(--c-blue);
    transition: transform 0.3s var(--ease-out);
}
.feature-bar-item:hover i {
    transform: scale(1.12);
}

/* --- Shop Improvements --- */
.shop-subtitle {
    text-align: center;
    color: rgba(255,255,255,0.5);
    margin: -0.5rem 0 2.5rem;
    font-size: 0.95rem;
}
.shop-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(var(--c-blue-rgb), 0.1);
    border: 1px solid rgba(var(--c-blue-rgb), 0.3);
    color: var(--c-blue);
    padding: 0.3rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}
.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}
.color-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}
.shop-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.35);
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* --- FAQ Section --- */
.product-faq-section {
    padding: 5rem 0;
    background: var(--media-scrim-soft);
}
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.faq-item {
    background: var(--cine-glass-soft);
    border: 1px solid var(--cine-border-soft);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color 0.3s var(--ease-out),
                transform 0.3s var(--ease-out),
                box-shadow 0.3s var(--ease-out);
}
.faq-item:hover {
    border-color: var(--cine-border);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.faq-icon {
    font-size: 1.4rem;
    color: var(--c-blue);
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.faq-item h4 {
    font-size: 0.95rem;
    color: var(--cine-text);
    margin-bottom: 0.4rem;
}
.faq-item p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
}

/* --- Product CTA Section --- */
.product-cta-section {
    padding: 5rem 0;
}
.product-cta-card {
    background: var(--cine-glass-soft);
    border: 1px solid var(--cine-border-soft);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.product-cta-card h2 {
    font-family: 'Kiona', sans-serif;
    font-size: 2rem;
    color: var(--cine-text);
    margin-bottom: 0.75rem;
}
.product-cta-card p {
    color: rgba(255,255,255,0.55);
    margin-bottom: 2rem;
}
.product-cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.amazon-button--silver {
    background: var(--metal-grad);
    color: var(--cine-surface-2);
}
.amazon-button--silver:hover {
    background: var(--metal-grad-hover);
}
.cta-contact-hint {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.35);
    margin: 0;
}
.cta-contact-hint a {
    color: var(--c-blue);
    text-decoration: none;
}
