/* Products Page Specific Styles */

/* Products Grid Section */
.products-grid-section {
    padding: 80px 20px;
    background: #f8f9fa;
}

.products-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

/* Carousel styles for AiO-D */
.carousel-container {
    position: relative;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.know-more {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 15px 30px;
    border: 2px solid white;
    border-radius: 50px;
    background: transparent;
    transition: all 0.3s ease;
}

.product-card:hover .know-more {
    background: white;
    color: var(--primary-color);
    transform: scale(1.05);
}

.product-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
    text-align: center;

}

.product-tagline {
    font-size: 1rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: 500;
    font-style: italic;
    text-align: center;

}

.product-excerpt {
    font-size: 1rem;
    line-height: 1.6;
    text-align: center;
    color: var(--text-color);
    flex: 1;
}

.product-card-link {
    display: none;
    margin-top: 20px;
    padding: 12px 30px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
}

.product-card-link:hover {
    background: var(--secondary-color);
    transform: scale(1.05);
}

/* Product Series Section (for individual product pages) */
.product-series {
    padding: 80px 0;
    display: flex;
    align-items: flex-start;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.product-series.reverse {
    flex-direction: row-reverse;
}

.product-series-vertical {
    flex-direction: column;
    align-items: center;
}

.product-series-vertical .product-image-single {
    max-width: 600px;
    margin-bottom: 40px;
}

.product-series-vertical .product-info {
    max-width: 100%;
}

.product-info {
    flex: 1;
}

.product-info > .gallery-image:first-child {
    margin-bottom: 30px;
}

.product-info h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.tagline {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: 500;
}

.description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
}

/* Product Gallery Section */
.product-gallery {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.product-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.gallery-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.02);
}

.placeholder-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    background: linear-gradient(45deg, #f0f0f0, #e0e0e0);
    border: 2px dashed #ccc;
}

/* Single Product Image */
.product-image-single {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-image {
    width: 100%;
    max-width: 500px;
    height: 500px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.single-image:hover {
    transform: scale(1.05);
}


/* Features List */
.features-list {
    margin: 30px 0;
}

.features-list h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.features-list ul {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 8px 0;
    position: relative;
    padding-left: 25px;
    color: var(--text-color);
}

.features-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Products Hero */
.products-hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    padding: 100px 0;
}

.products-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
}

.products-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: white;
}

/* Accessories Preview */
.accessories-preview {
    background: var(--light-color);
    padding: 80px 0;
    text-align: center;
}

.accessories-preview h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.accessories-preview p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color);
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 40px;
}

.accessory {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid var(--light-gray);
}

.accessory:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.accessory-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-accent);
    color: white;
    transition: all 0.3s ease;
}

.accessory-icon svg {
    width: 40px;
    height: 40px;
}

.accessory:hover .accessory-icon {
    background: var(--gradient-primary);
    transform: scale(1.1);
}

.accessory h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.accessory p {
    color: var(--gray-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    /* Show button on tablets and smaller devices */
    .product-card .product-card-link {
        display: block !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Hide overlay on touch devices */
    .product-overlay {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .products-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .product-card-image {
        height: 250px;
    }

    /* Hide hover overlay on mobile since hover doesn't work well on touch */
    .product-overlay {
        display: none !important;
    }

    /* Show the card link button on mobile */
    .product-card .product-card-link {
        display: block !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .know-more {
        font-size: 1.2rem;
        padding: 12px 25px;
    }
    
    .product-series {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .product-series.reverse {
        flex-direction: column;
    }
    
    .specs {
        grid-template-columns: 1fr;
    }
    
    .product-info h2 {
        font-size: 2rem;
    }
    
    .placeholder-image {
        height: 280px;
    }
    
    .single-image {
        height: 350px;
        max-width: 350px;
    }
    
    .product-gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .products-hero h1 {
        font-size: 2.5rem;
    }
    
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .products-grid-section {
        padding: 60px 15px;
    }

    .product-card-content h2 {
        font-size: 1.5rem;
    }

    .product-excerpt {
        font-size: 0.95rem;
    }

    /* Ensure button shows on smaller mobile devices */
    .product-card .product-card-link {
        display: block !important;
        width: 100%;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .product-series {
        padding: 40px 15px;
    }
    
    .products-hero {
        padding: 60px 0;
    }
    
    .products-hero h1 {
        font-size: 2rem;
    }
    
    .placeholder-image {
        height: 250px;
    }
    
    .single-image {
        height: 300px;
        max-width: 300px;
    }
    
    .accessories-preview {
        padding: 60px 0;
    }
    
    .accessories-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(6, 1fr);
        gap: 15px;
    }
}
