/**
 * Frontend Styles
 *
 * @package TS_Product_Importer
 */

/* Variables */
:root {
    --ts-primary: #2c5aa0;
    --ts-secondary: #f8f9fa;
    --ts-accent: #28a745;
    --ts-text: #333333;
    --ts-border: #dee2e6;
    --ts-transition: all 0.3s ease;
}

/* Container */
.ts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
/* Hero Section */
.ts-hero-section {
    position: relative;
    min-height: 450px;
    height: 450px;
    display: flex;
    align-items: flex-end; /* Bottom alignment */
    justify-content: flex-start; /* Left alignment */
    background-size: cover;
    background-position: center;
    margin-bottom: 40px;
    padding: 40px 200px; /* 200px left padding */
}

.ts-hero-content {
    text-align: left;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
    max-width: 700px;
    margin-bottom: 20px;
}

.ts-hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
    line-height: 1.2;
}

.ts-hero-content p {
    font-size: 18px;
    line-height: 1.6;
    color: white;
    margin-bottom: 0;
}

.ts-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9) 0%, rgba(58, 110, 197, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-hero-section .ts-container {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
}

.ts-hero-title {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.ts-hero-description {
    font-size: 18px;
    margin: 0 0 20px 0;
    opacity: 0.95;
}

/* Breadcrumbs */
.ts-breadcrumbs {
    font-size: 14px;
    margin-top: 20px;
}

.ts-breadcrumbs a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: var(--ts-transition);
}

.ts-breadcrumbs a:hover {
    color: white;
    text-decoration: underline;
}

.ts-breadcrumbs .current {
    color: rgba(255,255,255,0.7);
}

/* Main Content */
.ts-main-content {
    margin-bottom: 60px;
}

.ts-content-wrapper {
    display: flex;
    gap: 30px;
}

/* Sidebar */
.ts-sidebar {
    flex: 0 0 250px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ts-sidebar-inner {
    background: white;
    border: 1px solid var(--ts-border);
    border-radius: 8px;
    padding: 20px;
}

.ts-sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ts-primary);
}

.ts-category-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-category-menu-item {
    margin-bottom: 5px;
}

.ts-category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    color: var(--ts-text);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--ts-transition);
}

.ts-category-link:hover {
    background: var(--ts-secondary);
    color: var(--ts-primary);
}

.ts-category-count {
    font-size: 12px;
    color: #6c757d;
}

.ts-category-submenu {
    list-style: none;
    margin: 5px 0 10px 0;
    padding-left: 20px;
}

.ts-category-submenu li {
    margin-bottom: 3px;
}

.ts-category-submenu a {
    display: flex;
    justify-content: space-between;
    padding: 6px 10px;
    font-size: 14px;
    color: #6c757d;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--ts-transition);
}

.ts-category-submenu a:hover {
    background: var(--ts-secondary);
    color: var(--ts-primary);
}

/* Product Grid Wrapper */
.ts-product-grid-wrapper {
    flex: 1;
    min-width: 0;
}

/* Product Grid */
.ts-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}




/* Product Card */
.ts-product-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.ts-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.ts-product-image {
    position: relative;
    width: 100%;
    height: 275px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-product-image img {
    max-width: 275px;
    max-height: 275px;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: var(--ts-transition);
}

.ts-product-card:hover .ts-product-image img {
    transform: scale(1.05);
}

.ts-product-content {
    padding: 15px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    background: white;
}

.ts-product-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ts-product-title a {
    color: var(--ts-text);
    text-decoration: none;
    transition: var(--ts-transition);
}

.ts-product-title a:hover {
    color: var(--ts-primary);
}

.ts-product-full-name,
.ts-product-excerpt {
    font-size: 14px;
    color: #6c757d;
    margin: 0 0 12px 0;
    line-height: 1.4;
    min-height: 60px;
}

.ts-product-footer {
    padding: 0 20px 20px 20px;
    background: white;
}

.ts-product-button {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ts-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--ts-transition);
    height: 45px;
}

.ts-product-button:hover {
    background: #1e4278;
    transform: translateX(3px);
}








.ts-product-image-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 275px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: white !important;
    border: none !important;
    overflow: hidden !important;
}

.ts-product-image-link:hover {
    opacity: 1;
}






/* Pagination */
.ts-pagination {
    margin-top: 40px;
    text-align: center;
}

.ts-pagination .page-numbers {
    display: inline-block;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ts-pagination .page-numbers li {
    display: inline-block;
    margin: 0 3px;
}

.ts-pagination a,
.ts-pagination span {
    display: inline-block;
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--ts-border);
    color: var(--ts-text);
    text-decoration: none;
    border-radius: 4px;
    transition: var(--ts-transition);
}

.ts-pagination a:hover {
    background: var(--ts-primary);
    color: white;
    border-color: var(--ts-primary);
}

.ts-pagination .current {
    background: var(--ts-primary);
    color: white;
    border-color: var(--ts-primary);
}

/* No Products */
.ts-no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--ts-secondary);
    border-radius: 8px;
}

.ts-no-products p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* Single Product */
.ts-single-product {
    margin: 40px 0;
}

.ts-single-product .ts-breadcrumbs {
    margin-bottom: 30px;
}

.ts-single-product .ts-breadcrumbs a {
    color: var(--ts-primary);
}

.ts-single-product .ts-breadcrumbs a:hover {
    text-decoration: underline;
}

.ts-product-single-content {
    background: white;
    border: 1px solid var(--ts-border);
    border-radius: 8px;
    padding: 40px;
}

.ts-product-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--ts-border);
}

.ts-product-header .ts-product-title {
    font-size: 36px;
    margin-bottom: 10px;
}

.ts-product-image-large {
    margin-bottom: 30px;
    text-align: center;
}

.ts-product-image-large img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ts-product-link {
    margin: 30px 0;
    text-align: center;
}

.ts-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: var(--ts-transition);
}

.ts-button-primary {
    background: var(--ts-primary);
    color: white;
}

.ts-button-primary:hover {
    background: #1e4278;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.ts-product-categories {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--ts-border);
}

.ts-product-categories h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.ts-product-categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ts-product-categories a {
    display: inline-block;
    padding: 8px 15px;
    background: var(--ts-secondary);
    color: var(--ts-text);
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: var(--ts-transition);
}

.ts-product-categories a:hover {
    background: var(--ts-primary);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    .ts-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .ts-hero-title {
        font-size: 32px;
    }
    
    .ts-hero-description {
        font-size: 16px;
    }
    
    .ts-content-wrapper {
        flex-direction: column;
    }
    
    .ts-sidebar {
        flex: 1;
        position: static;
        order: -1;
    }
    
    .ts-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 20px;
    }
    
    .ts-product-single-content {
        padding: 20px;
    }
    
    .ts-product-header .ts-product-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .ts-hero-title {
        font-size: 24px;
    }
    
    .ts-product-grid {
        grid-template-columns: 1fr;
    }
}




/* ==============================================
   HIDE UNWANTED ELEMENTOR MENU - NUCLEAR
   ============================================== */

/* Hide the specific Elementor text editor widget */
.elementor-element-6daf084e,
.elementor-element.elementor-element-6daf084e {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Hide all taxonomy/category widgets in text editors */
.elementor-widget-text-editor .taxonomy-product_category,
.elementor-widget-text-editor .wp-block-post-terms,
.elementor-widget-text-editor .wp-block-columns,
.elementor-widget-text-editor .wp-block-categories-list,
.elementor-widget-text-editor .wp-block-categories {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    opacity: 0 !important;
}