/* ==========================================
   PRODUCTS PAGE - Category Cards with Product Lists
   ========================================== */

.product-category-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.product-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.product-category-card .category-header {
    background: #20282D;
    padding: 18px 24px;
}

.product-category-card .category-header a {
    text-decoration: none;
}

.product-category-card .category-title {
    color: #fff;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.product-category-card .category-products-list {
    padding: 8px 0;
}

.product-list-item a {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f5f5f5;
}

.product-list-item:last-child a {
    border-bottom: none;
}

.product-list-item a:hover {
    background: #f8f9fa;
    color: var(--color-primary, #0d6efd);
    padding-left: 30px;
}

.product-list-item .bullet {
    margin-right: 12px;
    font-size: 18px;
    color: var(--color-primary, #0d6efd);
}

.product-list-item .product-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.product-list-item .arrow {
    font-size: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-list-item a:hover .arrow {
    opacity: 1;
}

/* ==========================================
   CATEGORY PAGE - Product Cards Grid
   ========================================== */

.category-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.category-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.category-product-card .thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: #f8f9fa;
}

.category-product-card .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-product-card:hover .thumbnail img {
    transform: scale(1.08);
}

.category-product-card .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    background: #f0f2f5;
}

.category-product-card .inner-content {
    padding: 20px;
}

.category-product-card .inner-content .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #20282D;
}

.category-product-card .inner-content .title:hover {
    color: var(--color-primary, #0d6efd);
}

.category-product-card .inner-content a {
    text-decoration: none;
}

.category-product-card .inner-content .desc {
    font-size: 13px;
    color: #6c757d;
    margin: 0;
    line-height: 1.5;
}

.category-description-area {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.category-desc-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.category-desc-content h2,
.category-desc-content h3 {
    color: #20282D;
    margin-bottom: 15px;
}

/* ==========================================
   PRODUCT DETAIL PAGE
   ========================================== */

/* Hero Image */
.product-hero-image {
    margin-top: -20px;
    margin-bottom: 0;
}

.product-main-image {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    max-height: 500px;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tabs */
.product-tabs-wrapper {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.product-nav-tabs {
    background: #f8f9fa;
    padding: 15px 20px 0;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.product-nav-tabs .nav-item .nav-link {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s;
}

.product-nav-tabs .nav-item .nav-link:hover {
    color: #20282D;
    border-bottom-color: #dee2e6;
}

.product-nav-tabs .nav-item .nav-link.active {
    color: var(--color-primary, #0d6efd);
    border-bottom-color: var(--color-primary, #0d6efd);
    background: #fff;
}

.tab-content {
    padding: 30px;
}

/* Overview */
.product-overview-content {
    /* Inside tabs */
}

.product-overview-text h2 {
    font-size: 26px;
    font-weight: 700;
    color: #20282D;
    margin-bottom: 20px;
}

.overview-content {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
}

.overview-content h2,
.overview-content h3 {
    color: #20282D;
    margin: 20px 0 10px;
}

.overview-content ul {
    padding-left: 20px;
}

.overview-content ul li {
    margin-bottom: 6px;
}

/* Image Gallery */
.product-gallery {
    position: sticky;
    top: 100px;
}

.main-gallery-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.main-gallery-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.gallery-thumb:hover {
    border-color: var(--color-primary, #0d6efd);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PDF Viewer */
.pdf-viewer-wrapper {
    border-radius: 8px;
    overflow: hidden;
}

.pdf-download-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.pdf-download-bar span {
    font-weight: 600;
    color: #333;
}

.pdf-viewer-wrapper object {
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Video */
.video-wrapper {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    border-radius: 12px;
}

/* ==========================================
   SIDEBAR
   ========================================== */

.product-sidebar {
    position: sticky;
    top: 80px;
}

.sidebar-widget {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    margin-bottom: 20px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: #20282D;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f2f5;
}

/* Download List */
.download-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: background 0.3s;
    margin-bottom: 8px;
    border: 1px solid #f0f2f5;
}

.download-item:hover {
    background: #f8f9fa;
    color: var(--color-primary, #0d6efd);
}

.download-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #fff5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc3545;
    font-size: 18px;
}

.download-info {
    flex: 1;
}

.download-name {
    display: block;
    font-weight: 600;
    font-size: 13px;
}

.download-type {
    display: block;
    font-size: 11px;
    color: #999;
}

/* Related Products */
.related-product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    transition: color 0.3s;
}

.related-product-item:last-child {
    border-bottom: none;
}

.related-product-item:hover {
    color: var(--color-primary, #0d6efd);
}

.related-product-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 8px;
}

.related-product-item .no-img-small {
    width: 50px;
    height: 50px;
    background: #f0f2f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

.related-product-item span {
    font-size: 13px;
    font-weight: 500;
    flex: 1;
}

/* CTA Sidebar */
.sidebar-cta {
    background: #20282D;
    color: #fff;
    text-align: center;
}

.sidebar-cta i {
    color: var(--color-primary, #0d6efd);
}

.sidebar-cta h5 {
    color: #fff;
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 13px;
    color: #a0aec0;
    margin-bottom: 15px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 991px) {
    .product-nav-tabs {
        gap: 4px;
    }
    .product-nav-tabs .nav-item .nav-link {
        font-size: 12px;
        padding: 10px 12px;
    }
    .product-sidebar {
        position: static;
        margin-top: 30px;
    }
    .product-gallery {
        position: static;
    }
}

@media (max-width: 575px) {
    .product-nav-tabs .nav-item .nav-link {
        width: 100%;
        text-align: left;
    }
    .tab-content {
        padding: 20px 15px;
    }
    .gallery-thumb {
        width: 55px;
        height: 55px;
    }
}
