/**
 * Product Styles
 * Styles for product series pages and category landing pages
 *
 * @package Remko_Theme
 * @since 1.0.0
 */

/* ============================================
   Category Hero
   ============================================ */

.product-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero description text */
#product-hero p,
#hero p {
    font-weight: 300;
}

/* ============================================
   Product Slider
   ============================================ */

.product-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.product-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.product-slider__main {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-slider__image {
    max-width: 84%;
    max-height: 84%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: opacity 0.3s ease;
}

.product-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
}

.product-slider-container:hover .product-slider__arrow {
    color: #fff;
}

.product-slider__arrow--left {
    left: 0;
}

.product-slider__arrow--right {
    right: 0;
}

.product-slider__thumbnails-wrapper {
    width: 100%;
    max-width: 460px;
    padding: 20px 0;
    display: flex;
    justify-content: center;
    margin: 0 auto;
}

.product-slider__thumbnails {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 0 15px;
}

.product-slider__thumb {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    padding: 4px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-slider__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-slider__thumb:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.product-slider__thumb.active {
    border-color: var(--accent, #C1D82F);
    background: rgba(193, 216, 47, 0.1);
}


/* ============================================
   Series Navigation
   ============================================ */

.product-filter-btn {
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.product-filter-btn:hover {
    background: var(--accent, #f7c948) !important;
    color: var(--dark, #1a1a2e) !important;
    transform: translateY(-1px);
}


/* ============================================
   Product Card
   ============================================ */

.product-card {
    transition: transform 0.2s ease;
}

.product-card__image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
}


/* ============================================
   Product Tabs
   ============================================ */

.product-tabs {
    border-top: 1px solid var(--gray-200, #e2e8f0);
    padding-top: 1.5rem;
}

.tab-btn {
    padding: 0.625rem 1.25rem;
    border: 1px solid var(--gray-300, #cbd5e0);
    border-radius: 0.375rem;
    background: var(--white, #fff);
    color: var(--dark, #1a1a2e);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    background: var(--gray-100, #f7fafc);
    border-color: var(--accent, #f7c948);
}

.tab-btn.active {
    background: var(--accent, #f7c948);
    color: var(--dark, #1a1a2e);
    border-color: var(--accent, #f7c948);
    font-weight: 600;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============================================
   Quick Specs Table
   ============================================ */

.specs-table {
    border-collapse: collapse;
    width: 100%;
}

.specs-table td {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-200, #e2e8f0);
}

.specs-table tr:last-child td {
    border-bottom: none;
}


/* ============================================
   Series Card
   ============================================ */

.series-card__inner {
    height: 100%;
}

.series-card__inner:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}


/* ============================================
   FAQ Accordion
   ============================================ */

.product-faq .faq-question {
    border: none;
    background-color: var(--accent);
}

.product-faq .faq-question:hover {
    background-color: var(--accent-hover, var(--accent));
}

.product-faq .faq-question:focus {
    outline: none;
}


/* ============================================
   Download Button
   ============================================ */

.download-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    border-color: var(--accent, #f7c948) !important;
    transform: translateY(-1px);
}


/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .product-slider-container {
        min-height: 300px;
    }

    .product-slider__thumbnails-wrapper {
        max-width: 370px;
    }

    .product-slider__arrow {
        font-size: 1.25rem;
    }

    .product-slider__thumb {
        width: 70px;
        height: 70px;
    }

    .product-slider__image {
        max-width: 90%;
        max-height: 90%;
    }

    .tab-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .product-slider-container {
        min-height: 250px;
    }

    .product-slider__thumbnails-wrapper {
        max-width: 280px;
    }

    .product-slider__arrow {
        font-size: 1rem;
    }

    .product-slider__thumb {
        width: 60px;
        height: 60px;
    }

    .product-slider__thumbnails {
        gap: 8px;
        padding: 0 10px;
    }
}

/* ============================================
   Download Cards (Product Pages)
   ============================================ */

/* Disabled download card styling */
.download-card.download-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.download-card.download-disabled h3 {
    color: var(--gray-600);
}

.download-card.download-disabled .btn[disabled] {
    cursor: not-allowed;
    opacity: 0.8;
}

/* Ensure disabled buttons don't have hover effects */
.download-card.download-disabled .btn[disabled]:hover {
    background-color: #d1d5db !important;
    color: #6b7280 !important;
}

/* ============================================
   Typical Applications List
   ============================================ */

.applications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.application-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.application-item .bullet {
    color: #C8DC28; /* Remko green */
    font-size: 1.5rem;
    line-height: 1;
}

.application-item span:last-child {
    color: #1A1A1A;
    font-size: 1.125rem;
    line-height: 1.6;
}
