/* --- Silk Therapy Mask Page Styles --- */

.silk-mask-page {
    background-color: var(--bg-cream);
}

/* Hero Section Customization */
.hero-mask {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 140px;
    overflow: hidden;
}

.hero-mask .hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('IMG_3258.jpg');
    /* Using a silky hair image */
    background-size: cover;
    background-position: center;
    animation: heroZoom 20s ease-out forwards;
}

.hero-pre-title {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

/* Product Overview */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

.overview-image {
    /* Layout handled by .img-frame — no local img styles needed */
    min-height: 400px;
}

.overview-text {
    text-align: left;
}

.benefit-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
}

.icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.benefit-item:hover .icon-circle {
    background-color: var(--accent-gold);
    color: #FFF;
    transform: translateY(-5px);
}

.benefit-item span {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hair Type Selector */
.hair-type-grid {
    margin-top: 3rem;
    background: #FFF;
    border-radius: 30px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.hair-type-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid #EEE;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.hair-type-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.hair-type-btn .type-name {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    color: var(--text-charcoal);
}

.hair-type-btn .type-code {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    color: #999;
}

.hair-type-btn.active {
    background-color: var(--bg-cream);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.15);
}

.hair-type-btn.active .type-name {
    color: var(--accent-gold);
}

.hair-panel {
    display: none;
    animation: slideInPanel 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hair-panel.active {
    display: block;
}

.panel-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.panel-text {
    text-align: left;
}

.panel-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-gold);
    font-style: italic;
}

.panel-benefits,
.panel-tip {
    margin-bottom: 2rem;
}

.panel-benefits h4,
.panel-tip h4 {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 0.8rem;
}

.panel-benefits ul {
    list-style: none;
}

.panel-benefits ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.texture-img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    height: 400px;
}

/* Ingredients Section */
.bg-cream {
    background-color: rgba(212, 175, 55, 0.05);
}

.ingredient-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.ingredient-card {
    background: #FFF;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ingredient-card:hover {
    transform: translateY(-10px);
}

.ing-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ing-percentage {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent-gold);
    line-height: 1;
}

.ing-label {
    margin-top: auto;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #CCC;
    padding-top: 1.5rem;
}

.customization-note {
    margin-top: 4rem;
    padding: 2rem;
    background: #FFF;
    border-left: 4px solid var(--accent-gold);
    font-style: italic;
    border-radius: 0 10px 10px 0;
}

/* Ritual Section */
.ritual-dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.ritual-option {
    background: #FFF;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.ritual-image {
    /* Layout handled by .img-frame — no local img styles needed */
    height: 300px;
}

.ritual-details {
    padding: 2.5rem;
    text-align: left;
}

.ritual-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.ritual-details ol {
    margin-top: 1.5rem;
    padding-left: 1.2rem;
}

.ritual-details li {
    margin-bottom: 0.8rem;
    font-weight: 300;
}

/* Purchase CTA Section */
#purchase-cta {
    background: var(--text-charcoal);
    color: var(--bg-cream);
    padding: 8rem 0;
}

#purchase-cta .section-title {
    color: var(--bg-cream);
}

.final-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 3rem;
}

.purchase-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.purchase-box .price {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--accent-gold);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.trust-badges span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {

    .overview-grid,
    .panel-content,
    .ritual-dual-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ingredient-grid {
        grid-template-columns: 1fr 1fr;
    }

    .panel-image {
        order: -1;
    }

    /* Mobile Optimization for Hair Type Selector */
    .hair-type-tabs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .hair-type-tabs::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .hair-type-btn {
        flex: 0 0 auto;
        min-width: 120px;
    }

    .texture-img {
        height: 250px;
        /* Optimized image height for mobile */
    }

    .scroll-hint-arrow {
        display: flex !important;
    }
}

/* Scroll Hint Arrow */
.scroll-hint-arrow {
    position: absolute;
    right: 1rem;
    top: 3rem;
    /* Aligns with the tabs row */
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
    animation: hintBounce 1.5s infinite;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.scroll-hint-arrow.left {
    left: 1rem;
    right: auto;
}

@media (max-width: 600px) {
    .ingredient-grid {
        grid-template-columns: 1fr;
    }

    .hair-type-btn {
        padding: 0.8rem 1rem;
    }

    .icon-circle {
        width: 36px;
        height: 36px;
    }

    .benefit-icons {
        gap: 1rem;
    }

    .hair-type-grid {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .panel-text h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@keyframes slideInPanel {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hintBounce {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}