/* --- DODCHmellow Pro-V Specific Styles --- */

/* Hero Section */
.pro-v-hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    padding-left: 8%;
    overflow: hidden;
    background-color: #000;
    /* Fallback */
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
}

/* Canvas sits on top of video and takes over during reverse playback */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.8;
    display: none;
    /* Hidden until reverse mode activates */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    padding: 0 1.5rem;
    color: #fff;
}

.pro-v-hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.pro-v-hero .sub-headline {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .pro-v-hero h1 {
        font-size: 2rem;
    }

    .pro-v-hero .sub-headline {
        font-size: 1rem;
    }

    .pro-v-hero {
        justify-content: center;
        text-align: center;
        padding-left: 0;
    }
}

/* Section Titles */
.accent-line-title {
    text-align: left;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.accent-line-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-gold);
    transition: width 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.accent-line-title.active::after {
    width: 100px;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 992px) {
    .highlight-grid {
        grid-template-columns: 0.9fr 1.1fr;
        gap: 6rem;
    }
}

.product-image-container {
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background-color: #f5f5f5;
    /* Shop Grid Background */
    aspect-ratio: 4 / 5;
    /* Shop Grid Aspect Ratio */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
}

.product-image-container:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Shop Grid Hover Shadow */
}

.product-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Exact Shop Behavior */
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 0;
}

/* Image Reveal - Standard Sync */
.product-image-container.reveal.active .product-hero-img {
    animation: imageBlurZoomOut 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) backwards;
    animation-delay: 0.1s;
}

/* Image Hover - Exact Shop behavior */
.product-image-container:hover .product-hero-img {
    transform: scale(1.08);
    /* Exact Shop scale */
    filter: brightness(0.85);
    /* Exact Shop brightness */
}

/* Ensure image starts hidden if reveal is present */
.product-image-container.reveal {
    opacity: 0;
}

.product-image-container.reveal.active {
    opacity: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.03);
    padding: 1.5rem;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Feature Cards Hover - Refined */
.feature-card:hover {
    transform: translateY(-5px);
    /* Match shop card lift */
    background: #fff;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    /* Match shop grid shadow */
    border-color: var(--accent-gold);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.feature-icon-wrapper {
    width: 40px;
    height: 40px;
    background: var(--bg-cream);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-gold);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrapper {
    background: var(--accent-gold);
    color: #fff;
    transform: scale(1.1);
}

.feature-icon-wrapper svg {
    width: 20px;
    height: 20px;
}

.feature-card .feature-title {
    font-family: var(--font-serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-charcoal);
    margin: 0;
    transition: color 0.3s ease;
}

.feature-description {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    line-height: 1.5;
    opacity: 0.8;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-description {
    opacity: 1;
    color: var(--text-charcoal);
}

/* Micro-animations for features on reveal - Exact Shop Sync */
.feature-card.reveal.active {
    animation: cardFadeZoom 0.9s cubic-bezier(0.215, 0.61, 0.355, 1) backwards;
    animation-delay: var(--anim-delay, 0s);
    opacity: 1;
}

/* Sequential text animation within cards - Improved Stacking */
.feature-card.reveal.active .feature-title {
    animation: textStackRevealPremium 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: calc(var(--anim-delay, 0s) + 0.3s);
}

.feature-card.reveal.active .feature-description {
    animation: textStackRevealPremium 1s cubic-bezier(0.22, 1, 0.36, 1) backwards;
    animation-delay: calc(var(--anim-delay, 0s) + 0.45s);
}

@keyframes textStackRevealPremium {
    0% {
        opacity: 0;
        transform: translateY(25px);
        filter: blur(8px);
        letter-spacing: 2px;
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
        letter-spacing: normal;
    }
}

.feature-card.reveal {
    opacity: 0;
}

/* Comparison Slider */
.comparison-wrapper {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.comparison-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%;
    /* 3:2 aspect ratio */
    background: #f0f0f0;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.comparison-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.comparison-image.before {
    z-index: 2;
}

.comparison-image .label {
    position: absolute;
    top: 20px;
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 0.8rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

.comparison-image.before .label {
    left: 20px;
}

.comparison-image.after .label {
    right: 20px;
}

.comparison-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #fff;
    z-index: 5;
    pointer-events: none;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.slider-button {
    position: absolute;
    top: 50%;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 6;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-charcoal);
}

/* INCI Table */
.inci-table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.inci-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    min-width: 600px;
}

.inci-table th,
.inci-table td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inci-table th {
    background-color: #f9f9f9;
    font-family: var(--font-serif);
    font-weight: 600;
    color: var(--text-charcoal);
}

.inci-table tr:hover {
    background-color: #fcfcfc;
}

.inci-table tr[data-tooltip] {
    cursor: help;
    position: relative;
}

.inci-table tr[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background-color: var(--text-charcoal);
    color: var(--card-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: var(--font-sans);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.inci-table tr[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Ritual Steps */
.ritual-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.ritual-card {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ritual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.ritual-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gold);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.ritual-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ritual-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Purchase Section Button Fix */
#purchase .add-to-cart-btn {
    width: auto;
    display: inline-block;
    margin-top: 0;
    padding: 1rem 3rem;
}

/* Sticky CTA Fix - Override global add-to-cart-btn width */
#sticky-cta {
    width: auto;
    max-width: calc(100vw - 60px);
}

/* Fragrance Section Styles */
.fragrance-blob {
    animation: blobFloat 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.fragrance-blob::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    right: -10%;
    bottom: -10%;
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    animation: blobPulse 8s linear infinite;
    z-index: -1;
}

@keyframes blobFloat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.02);
    }
}

@keyframes blobPulse {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.3;
    }
}

@media (max-width: 992px) {
    .highlight-grid[style*="grid-template-columns: 1.1fr 0.9fr;"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }

    .fragrance-blob {
        max-width: 300px;
        margin: 2rem auto;
    }
}