/**
 * XPEL Korea - Color PPF Product Page
 * Styles for the COLOR Paint Protection Film page
 */

/* ==========================================================================
   Color PPF - Hero with Gallery (XPEL.com Reference Style)
   ========================================================================== */
.product-hero--gallery {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
    background-color: #171717;
}

@media (min-width: 992px) {
    .product-hero--gallery {
        grid-template-columns: 60% 40%;
        min-height: calc(100vh - 80px);
        max-height: 900px;
    }
}

@media (min-width: 1400px) {
    .product-hero--gallery {
        grid-template-columns: 62% 38%;
    }
}

/* Gallery Container */
.product-hero__gallery {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .product-hero__gallery {
        min-height: 100%;
    }
}

/* Main Image - Full Bleed */
.product-hero__main-image {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-hero__main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Floating Thumbnail Strip - Vertically Centered */
.product-hero__thumbs {
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(255, 255, 255, 0.97);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    max-height: calc(100% - 60px);
}

@media (min-width: 992px) {
    .product-hero__thumbs {
        left: 28px;
        gap: 10px;
        padding: 12px;
    }
}

@media (min-width: 1200px) {
    .product-hero__thumbs {
        left: 32px;
    }
}

/* Individual Thumbnail */
.product-hero__thumb {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
    padding: 0;
    background: none;
}

@media (min-width: 992px) {
    .product-hero__thumb {
        width: 58px;
        height: 58px;
    }
}

@media (min-width: 1200px) {
    .product-hero__thumb {
        width: 64px;
        height: 64px;
    }
}

.product-hero__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.product-hero__thumb:hover {
    border-color: #FDB521;
}

.product-hero__thumb.active {
    border-color: #FDB521;
}

/* Expand Button - Top Right of Image */
.product-hero__expand {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.product-hero__expand:hover {
    background: #FFFFFF;
    transform: scale(1.05);
}

.product-hero__expand svg {
    width: 18px;
    height: 18px;
    stroke: #333;
}

/* Content Panel - Right Side */
.product-hero--gallery .product-hero__content {
    background: #171717;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

@media (min-width: 992px) {
    .product-hero--gallery .product-hero__content {
        padding: 3rem 3rem;
        text-align: left;
    }
}

@media (min-width: 1200px) {
    .product-hero--gallery .product-hero__content {
        padding: 4rem 4rem;
    }
}

.product-hero--gallery .product-hero__label {
    justify-content: center;
}

@media (min-width: 992px) {
    .product-hero--gallery .product-hero__label {
        justify-content: flex-start;
    }
}

.product-hero--gallery .product-hero__title {
    font-size: clamp(2.25rem, 4.5vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.product-hero--gallery .product-hero__tagline {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 992px) {
    .product-hero--gallery .product-hero__tagline {
        font-size: 1.25rem;
    }
}

.product-hero--gallery .product-hero__desc {
    max-width: 100%;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    line-height: 1.7;
}

@media (min-width: 992px) {
    .product-hero--gallery .product-hero__desc {
        margin-left: 0;
        margin-right: 0;
    }
}

/* CTA Button */
.product-hero__cta--outline {
    display: block;
    width: 100%;
    max-width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    background-color: #FDB521;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.product-hero__cta--outline:hover {
    background-color: #e5a31e;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .product-hero__thumbs {
        left: 12px;
        padding: 8px;
        gap: 6px;
    }
    
    .product-hero__thumb {
        width: 44px;
        height: 44px;
    }
    
    .product-hero__expand {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    
    .product-hero__expand svg {
        width: 16px;
        height: 16px;
    }
}

/* ==========================================================================
   Color PPF - Hero Overrides
   ========================================================================== */
.product-detail--color-ppf .product-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
}

.product-detail--color-ppf .product-hero__content {
    background: linear-gradient(135deg, #171717 0%, #0f0f0f 100%);
}

/* ==========================================================================
   Color Features Section
   ========================================================================== */
.color-features {
    background-color: #FFFFFF;
    padding: 5rem 1.5rem;
}

.color-features__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .color-features__inner {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.color-features__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #171717;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.color-features__desc {
    font-size: 1.0625rem;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.color-features__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.color-features__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.color-features__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FDB521;
    border-radius: 8px;
}

.color-features__icon svg {
    width: 20px;
    height: 20px;
    stroke: #000000;
}

.color-features__text h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #171717;
    margin-bottom: 0.25rem;
}

.color-features__text p {
    font-size: 0.9375rem;
    color: #737373;
    line-height: 1.5;
    margin: 0;
}

.color-features__image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.color-features__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Color Picker Section
   ========================================================================== */
.color-picker {
    background-color: #F5F5F5;
    padding: 5rem 1.5rem;
}

.color-picker__inner {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .color-picker__inner {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

.color-picker__preview {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .color-picker__preview {
        min-height: 450px;
        padding-bottom: 3rem;
    }
}

.color-picker__car {
    max-width: 100%;
    max-height: 400px;
    height: auto;
    transition: opacity 0.3s ease;
    margin-bottom: 2rem;
}

@media (min-width: 992px) {
    .color-picker__car {
        max-height: 500px;
    }
}

/* Vehicle Tabs - Below Car Image */
.color-picker__vehicle-tabs {
    display: inline-flex;
    gap: 0;
    background: #e5e5e5;
    border-radius: 100px;
    padding: 4px;
}

.color-picker__tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #525252;
    background: transparent;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-picker__tab:hover {
    color: #171717;
}

.color-picker__tab.active {
    background: #171717;
    color: #FFFFFF;
}

.color-picker__content {
    text-align: center;
}

.color-picker__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #171717;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-style: italic;
}

.color-picker__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.color-picker__selected {
    margin-bottom: 1rem;
}

.color-picker__selected span {
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
}

.color-picker__swatches {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 480px) {
    .color-picker__swatches {
        grid-template-columns: repeat(5, 1fr);
        max-width: 300px;
    }
}

.color-swatch {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

@media (min-width: 992px) {
    .color-swatch {
        width: 52px;
        height: 52px;
    }
}

.color-swatch:hover {
    transform: scale(1.08);
}

.color-swatch.active {
    border-color: #171717;
    box-shadow: 0 0 0 2px #FFFFFF, 0 0 0 4px #171717;
}

.color-swatch.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.color-swatch {
    position: relative;
}

.color-picker__note {
    font-size: 0.8125rem;
    color: #737373;
    font-style: italic;
}

/* ==========================================================================
   Gallery + Change Combined Section (Reference Style)
   ========================================================================== */
.color-gallery-change {
    background-color: #FFFFFF;
    padding: 5rem 1.5rem;
}

.color-gallery-change__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 992px) {
    .color-gallery-change__inner {
        grid-template-columns: 1.3fr 1fr;
        gap: 4rem;
    }
}

/* Images Grid - Left Side */
.color-gallery-change__images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.color-gallery-change__top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.color-gallery-change__img {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.color-gallery-change__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.color-gallery-change__img:hover img {
    transform: scale(1.03);
}

.color-gallery-change__bottom {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.color-gallery-change__bottom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.color-gallery-change__bottom:hover img {
    transform: scale(1.03);
}

/* Content - Right Side */
.color-gallery-change__content {
    padding: 2rem 0;
}

@media (min-width: 992px) {
    .color-gallery-change__content {
        padding: 2rem;
    }
}

.color-gallery-change__label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #737373;
    margin-bottom: 1.25rem;
}

.color-gallery-change__title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #171717;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.color-gallery-change__desc {
    font-size: 1rem;
    color: #525252;
    line-height: 1.8;
}

/* ==========================================================================
   New Protection Banner
   ========================================================================== */
.color-banner {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.color-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.color-banner__bg img,
.color-banner__bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.color-banner__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
}

.color-banner__content {
    position: relative;
    z-index: 2;
    padding: 4rem 1.5rem;
    max-width: 600px;
}

@media (min-width: 992px) {
    .color-banner__content {
        padding: 5rem 4rem;
    }
}

.color-banner__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.color-banner__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.color-faq {
    background-color: #FFFFFF;
    padding: 5rem 1.5rem;
}

.color-faq__inner {
    max-width: 900px;
    margin: 0 auto;
}

.color-faq__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.color-faq__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #171717;
}

.color-faq__all {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #525252;
    background: transparent;
    border: 1px solid #E5E5E5;
    border-radius: 100px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.color-faq__all:hover {
    border-color: #171717;
    color: #171717;
}

.color-faq__list {
    display: flex;
    flex-direction: column;
}

.color-faq__item {
    border-bottom: 1px solid #E5E5E5;
}

.color-faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #171717;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}

.color-faq__question:hover {
    color: #FDB521;
}

.color-faq__question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: #737373;
    transition: transform 0.3s ease;
}

.color-faq__item.active .color-faq__question svg {
    transform: rotate(45deg);
}

.color-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.color-faq__item.active .color-faq__answer {
    max-height: 500px;
    padding-bottom: 1.5rem;
}

.color-faq__answer p {
    font-size: 0.9375rem;
    color: #525252;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.color-cta {
    background: linear-gradient(135deg, #171717 0%, #0a0a0a 100%);
    padding: 5rem 1.5rem;
    text-align: center;
}

.color-cta__inner {
    max-width: 700px;
    margin: 0 auto;
}

.color-cta__title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.color-cta__desc {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 2rem;
}

.color-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    background-color: #FDB521;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.color-cta__btn:hover {
    background-color: #e5a31e;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 768px) {
    .color-features,
    .color-picker,
    .color-change,
    .color-faq,
    .color-cta {
        padding: 3.5rem 1rem;
    }
    
    .color-picker__swatches {
        gap: 0.5rem;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }
    
    .color-banner {
        min-height: 400px;
    }
    
    .color-faq__question {
        font-size: 0.9375rem;
        padding: 1.25rem 0;
    }
}
