/* 
 * PRODUCTS PAGE STYLES
 */

.products-page-wrapper {
    background-color: #f8f8fa; /* Fallback light background */
}

/* SECTION 1: HERO CAROUSEL */
.products-hero {
    background-color: #B2B2DC; /* Light lavender per design */
    padding: 80px 0 160px; /* Room for overlapping thumbnails */
    position: relative;
    overflow: hidden;
}

.products-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: left;
}

.products-hero .hero-subtitle {
    font-size: 1.2rem;
    color: #333;
    max-width: 400px;
    margin-bottom: 40px;
    text-align: left;
    line-height: 1.4;
}

.products-carousel-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-main-display {
    position: relative;
    z-index: 2;
    margin-bottom: -100px; /* Overlap down into bottom section */
}

.carousel-main-display img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.carousel-thumbnails {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    position: absolute;
    bottom: -130px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 100%;
}

.thumbnail-track {
    display: flex;
    gap: 15px;
}

.thumbnail-item {
    width: 80px;
    height: 80px;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover, .thumbnail-item.active {
    border-color: #FF5E1E;
}

.thumbnail-item img {
    max-width: 100%;
    max-height: 100%;
}

.play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
}

/* SECTION 2: PRODUCTS OVERVIEW */
.products-overview {
    background-color: #0d2c38; /* Dark teal background */
    padding: 180px 0 80px; /* Padding top accounts for hero overlap */
    color: #fff;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.overview-subtitle {
    color: #B2B2DC;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.overview-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.6;
}

.overview-text p {
    font-size: 1rem;
    color: #cbd5d8;
    line-height: 1.6;
    margin-bottom: 30px;
}

.color-options-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #B2B2DC;
}

.color-swatches {
    display: flex;
    gap: 20px;
}

.color-swatch-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.swatch-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.swatch-label {
    font-size: 0.85rem;
    color: #fff;
}

.overview-image {
    position: relative;
}

.overview-image img {
    width: 100%;
    border-radius: 20px;
    display: block;
}


/* Add padding to tabs section since it absorbed the others */
.products-tabs-section {
    background-color: #0d2c38;
    padding-bottom: 100px;
}

.tab-nav-wrapper {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    margin-bottom: 40px;
}

.tab-nav {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tab-nav li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 15px 0;
    display: inline-block;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.tab-nav li.active a, .tab-nav li a:hover {
    opacity: 1;
    border-bottom: 3px solid #B2B2DC; /* Highlight color from design */
}

/* Tab Content Visibility */
.tab-content {
    display: none;
    animation: fadeInTab 0.4s ease forwards;
}
.tab-content.active {
    display: block;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.products-wysiwyg-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #cbd5d8;
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.feature-icon img {
    width: 32px;
    height: 32px;
}

.feature-title {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    color: #cbd5d8;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SECTION 4: ACCESSORIES CARDS */
.products-accessories-section {
    background-color: #0d2c38;
    padding: 60px 0 100px;
}

.accessories-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 80px;
}

.accessory-card {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.card-orange {
    background: linear-gradient(to bottom right, #f4ecd8, #e09f63); 
}

.card-blue {
    background: linear-gradient(to bottom right, #cfeaf8, #89c5e8);
}

/* Base text color for both */
.acc-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 5px;
}

.acc-subtitle {
    font-size: 1rem;
    color: #333;
    max-width: 80%;
}

.acc-image {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
}

.acc-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 15px 15px rgba(0,0,0,0.2));
}

.acc-content {
    position: relative;
    z-index: 2;
}

.acc-link-arrow {
    position: absolute;
    bottom: 30px;
    right: 30px;
    transition: transform 0.3s ease;
}

.acc-link-arrow:hover {
    transform: translateX(5px);
}

/* HELP CTA BOTTOM */
.help-cta-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 60px;
}

.help-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 40px;
}

.help-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.help-box {
    background-color: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
}

.help-box h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.btn-white {
    background-color: #fff;
    color: #1a1a1a;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    transition: background 0.3s;
}

.btn-white:hover {
    background-color: #f0f0f0;
}

/* RESPONSIVE DESIGN */
@media (max-width: 991px) {
    .overview-grid, .features-grid, .accessories-cards-grid, .help-boxes-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-thumbnails {
        width: 90%;
        flex-wrap: wrap;
    }
}
