:root {
    --ecotekk-primary: #1279b4;
    --ecotekk-secondary: #4CAF50;
    --ecotekk-light: #f8f9fa;
    --ecotekk-dark: #343a40;
    --ecotekk-border: #dee2e6;
    --ecotekk-success: #28a745;
    --ecotekk-warning: #ffc107;
    --ecotekk-danger: #dc3545;
    --ecotekk-info: #17a2b8;
}

/* ========== COMMON STYLES ========== */
.ecotekk-product-archive,
.ecotekk-category-archive,
.ecotekk-manufacturer-single,
.ecotekk-manufacturer-category,
.ecotekk-product-single {
    padding: 30px 20px;
    max-width: 1400px;
    margin: 155px auto;
}

.section-title {
    font-size: 24px !important;
    margin: 40px 0 20px;
    color: #1279b4 !important;
    border-bottom: 2px solid #1279b4 !important;
    padding-bottom: 10px;
}

.no-products {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

/* ========== MAIN PRODUCTS ARCHIVE PAGE ========== */
/* Category Grid */
.category-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.category-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: white;
    border: 2px solid var(--ecotekk-border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--ecotekk-dark);
    transition: all 0.3s ease;
    min-height: 150px;
}

.category-item:hover {
    transform: translateY(-5px);
}

.category-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    font-size: 40px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.default-icon {
    color: var(--ecotekk-primary);
}

.category-name {
    font-size: 16px !important;
    font-weight: 600;
    margin: 0 0 5px;
    text-align: center;
    line-height: 1.3;
}

.category-count {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}

/* Manufacturer Grid */
.manufacturer-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.manufacturer-grid.columns-8 {
    grid-template-columns: repeat(8, 1fr);
}

.manufacturer-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
}

.manufacturer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding: 15px;*/
    background: white;
    /*border: 1px solid var(--ecotekk-border);*/
    border-radius: 8px;
    text-decoration: none;
    color: var(--ecotekk-dark);
    transition: all 0.3s ease;
    /*min-height: 140px;*/
}

.manufacturer-item:hover {
    border-color: var(--ecotekk-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.manufacturer-logo {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.manufacturer-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manufacturer-name {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
    word-break: break-word;
}


.manufacturer-count {
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
    margin-top: 4px;
}



/* ========== MANUFACTURER SINGLE PAGE ========== */
.manufacturer-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px;
    background: white;
}

.manufacturer-logo-large {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
}

.manufacturer-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.manufacturer-title {
    font-size: 32px !important;
    margin: 0 0 10px !important;
    color: var(--ecotekk-primary) !important;
}

.manufacturer-country {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: #666;
    font-size: 16px;
}

.flag {
    font-size: 18px;
}

.manufacturer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #666;
}

.manufacturer-website {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ecotekk-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.manufacturer-website:hover {
    background: #2a3879;
}

.manufacturer-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--ecotekk-primary);
}

/* ========== CATEGORY ARCHIVE PAGE ========== */
.category-header {
    background: linear-gradient(135deg, var(--ecotekk-primary) 0%, #2a3879 100%);
    color: white;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 40px;
}

.category-title {
    font-size: 32px;
    margin: 0 0 10px;
}

.category-description {
    font-size: 16px;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    gap: 30px;
}

.category-filter {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.manufacturer-filter {
    padding: 10px 15px;
    border: 1px solid var(--ecotekk-border);
    border-radius: 4px;
    min-width: 200px;
}

.filter-button {
    padding: 10px 20px;
    background: var(--ecotekk-primary);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.reset-filter {
    padding: 10px 15px;
    color: #666;
    text-decoration: none;
}

.manufacturers-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* ========== PRODUCT GRID LAYOUT (Updated to match your image) ========== */
.products-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0;
}

.products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* PRODUCT ITEM STYLES (MATCHING YOUR IMAGE) */
.product-item {
    display: grid;
    grid-template-columns: 120px 1fr 200px 180px;
    gap: 20px;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid var(--ecotekk-border);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--ecotekk-primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}












.entry-content h2 {
     color: var(--ecotekk-primary) !important;
    font-size: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid var(--ecotekk-border) !important;
    padding-bottom: 8px !important;
}

.item_description h2 {
    color: var(--ecotekk-primary) !important;
    font-size: 15px !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    border-bottom: 1px solid var(--ecotekk-border) !important;
    padding-bottom: 8px !important;
}

.woocommerce-Tabs-panel--description h3 {
    color: var(--ecotekk-dark);
    font-size: 20px;
    margin-top: 18px;
    margin-bottom: 12px;
}

.woocommerce-Tabs-panel--description ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.woocommerce-Tabs-panel--description ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    line-height: 1.6;
    font-size:13px !important;
}

.woocommerce-Tabs-panel--description ul li:before {
    content: "•";
    color: var(--ecotekk-primary);
    font-weight: bold;
    position: absolute;
    left: 5px;
    font-size: 12px;
}

.woocommerce-Tabs-panel--description p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #444;
    font-size:13px !important;
}


































/* Product Image */
.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
    padding: 10px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e9ecef;
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Product Details */
.product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-title {
    font-size: 16px;
    margin: 0 0 8px;
    line-height: 1.3;
    font-weight: 600;
}

.product-title a {
    color: var(--ecotekk-dark);
    text-decoration: none;
}

.product-title a:hover {
    color: var(--ecotekk-primary);
}

/* Manufacturer and Category Tags (As shown in your image) */
.product-manufacturer,
.product-category,
.product-code {
    display: inline-flex;
    align-items: center;
    gap: 6px!important;
    padding: 4px 10px;
    margin-right: 8px;
    margin-bottom: 6px;
    font-size: 12px !important;
    line-height: 1;
}

.product-manufacturer .label,
.product-category .label,
.product-code .label {
    color: #666;
    font-weight: 500;
}

.product-manufacturer .value,
.product-category .value,
.product-code .value {
    color: var(--ecotekk-primary);
    font-weight: 600;
}

.product-manufacturer a,
.product-category a {
    color: var(--ecotekk-primary) !important;
    text-decoration: none;
    font-weight: 600 !important;
    font-size:12px !important;
}

.product-manufacturer a:hover,
.product-category a:hover {
    text-decoration: underline;
}

.product-short-desc {
    font-size: 13px;
    color: #666;
    margin: 5px 0 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Stock Information (Large numbers like your image) */
.product-stock {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.stock-quantity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stock-quantity .qty {
    font-size: 28px;
    font-weight: 800;
    color: var(--ecotekk-success);
    font-family: 'Arial', sans-serif;
}

.stock-quantity .label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Stock Status */
.stock-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stock-status .label {
    color: #666;
}

.stock-status .status {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-in_stock {
    background: rgba(40, 167, 69, 0.1);
    color: var(--ecotekk-success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.status-out_of_stock {
    background: rgba(220, 53, 69, 0.1);
    color: var(--ecotekk-danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Stock Locations */
.stock-locations {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed #eee;
}

.location-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    padding: 3px 5px;
}

.location-name {
    font-weight: 500;
}

.location-qty {
    font-weight: 700;
    color: var(--ecotekk-primary);
}

/* Price and Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.product-price {
    font-size: 22px;
    font-weight: 800;
    color: var(--ecotekk-primary);
    margin-bottom: 5px;
    font-family: 'Arial', sans-serif;
}

.product-price::before {
    content: "£";
    font-size: 16px;
    font-weight: 600;
    margin-right: 2px;
}

.product-actions .button {
    width: 100%;
    padding: 10px 15px;
    background:#f5941f;
    color:#ffff;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.view-details {
    background: var(--ecotekk-primary);
    color: white;
    border: 2px solid var(--ecotekk-primary);
}

.view-details:hover {
    background: white;
    color: var(--ecotekk-primary);
}

 

/* ========== SINGLE PRODUCT PAGE ========== */
.ecotekk-product-single {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.product-container {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    gap: 40px;
}

/* Product Images Column */
.product-images-column {
    background: white;
    border: 1px solid var(--ecotekk-border);
    border-radius: 8px;
    padding: 20px;
}

.main-product-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 1px solid var(--ecotekk-border);
    border-radius: 6px;
    overflow: hidden;
    background: #f8f9fa;
}

.main-product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    background: white;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--ecotekk-primary);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product Info Column */
.product-header {
    margin-bottom: 30px;
}

.product-title {
    font-size: 28px;
    margin: 0 0 15px;
    color: var(--ecotekk-dark);
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ecotekk-border);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    font-weight: 600;
    color: #666;
}

.meta-value {
    color: var(--ecotekk-primary);
}

.product-short-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.ecotekk-product-single .product-short-desc {
    font-size: 16px;
    line-height: 1.6;
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}

.product-content {
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Specifications Table */
.product-specifications {
    margin-bottom: 30px;
}

.product-specifications h3 {
    font-size: 20px;
    margin: 0 0 15px;
    color: var(--ecotekk-primary);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table th,
.specs-table td {
    padding: 12px 15px;
    border: 1px solid var(--ecotekk-border);
    text-align: left;
}

.specs-table th {
    background: #f8f9fa;
    width: 40%;
    font-weight: 600;
}

/* Product Sidebar */
.product-sidebar {
    background: white;
    border: 1px solid var(--ecotekk-border);
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 200px;
    height: fit-content;
}

.price-box {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ecotekk-primary);
}

.current-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--ecotekk-primary);
    margin-bottom: 10px;
}

.availability-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.availability-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.status-label {
    color: #666;
    font-weight: 600;
}

.total-stock {
    font-size: 18px;
    font-weight: 600;
    color: var(--ecotekk-primary);
    text-align: center;
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1200px) {
    .category-grid.columns-6,
    .manufacturer-grid.columns-8 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .products-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-container {
        grid-template-columns: 300px 1fr;
    }
    
    .product-sidebar {
        grid-column: 1 / -1;
        order: 3;
    }
    
    .product-item {
        grid-template-columns: 100px 1fr 180px;
        grid-template-rows: auto auto;
    }
    
    .product-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        justify-content: center;
    }
    
    .product-actions .button {
        width: auto;
        min-width: 150px;
    }
}

@media (max-width: 992px) {
    .manufacturer-header {
        grid-template-columns: 150px 1fr;
        gap: 20px;
        padding: 20px;
    }
    
    .manufacturer-logo-large {
        width: 150px;
        height: 150px;
    }
    
    .product-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .product-details {
        align-items: center;
    }
    
    .product-manufacturer,
    .product-category,
    .product-code {
        justify-content: center;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .category-grid.columns-6,
    .manufacturer-grid.columns-8,
    .manufacturer-grid.columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .products-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-container {
        grid-template-columns: 1fr;
    }
    
    .manufacturer-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .manufacturer-logo-large {
        margin: 0 auto;
    }
    
    .category-stats,
    .manufacturer-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .manufacturers-filter {
        justify-content: center;
    }
    
    .product-item {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .category-grid.columns-6,
    .manufacturer-grid.columns-8,
    .manufacturer-grid.columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .category-item,
    .manufacturer-item {
        padding: 15px 10px;
    }
}









/* ========== FIX FOR PRODUCT GRID LAYOUT ========== */
.products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 20px 0 !important;
}

.products-grid .product-item {
    display: grid !important;
    grid-template-columns: 120px 1fr 200px 180px !important;
    gap: 15px !important;
    align-items: center !important;
    padding: 15px !important;
    background: white !important;
    border: 1px solid var(--ecotekk-border) !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Force grid layout for product items */
.products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Ensure product items don't wrap */
.products-grid .product-item {
    display: grid !important;
    grid-template-columns: 120px 1fr 200px 180px !important;
    grid-template-rows: auto !important;
    grid-auto-flow: row !important;
}

/* Make sure all children display properly */
.products-grid .product-image,
.products-grid .product-details,
.products-grid .product-stock,
.products-grid .product-actions {
    display: block !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .products-grid .product-item {
        grid-template-columns: 100px 1fr 180px !important;
        grid-template-rows: auto auto !important;
    }
    
    .products-grid .product-actions {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .products-grid .product-item {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Override any theme styles that might be interfering */
body .products-grid,
body .products-grid.columns-4,
body .ecotekk-category-archive .products-grid,
body .ecotekk-manufacturer-single .products-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
}

/* Remove any float styles that might break grid */
.products-grid .product-item {
    float: none !important;
    clear: none !important;
    margin: 0 !important;
}


















/* ========== WOOCOMMERCE STYLE PRODUCT GRID ========== */
.ecotekk-manufacturer-single.woocommerce {
    max-width: 1200px;
    margin: 155px auto;
    padding: 30px 20px;
}

/* Manufacturer Header */
.manufacturer-header {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
}

.manufacturer-logo-large {
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 20px;
}

.manufacturer-logo-large img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


.manufacturer-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.manufacturer-website {
    display: inline-block;
    padding: 10px 20px;
    background: var(--ecotekk-primary);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
}

.manufacturer-website:hover {
    background: #2a3879;
}

/* WooCommerce Products Header */
.woocommerce-products-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--ecotekk-border);
}

.woocommerce-products-header__title {
    font-size: 24px !important;
    color: #333 !important;
    margin: 0;
}

.product-count {
    color: #666;
    font-weight: normal;
    font-size: 18px;
}

/* WooCommerce Style Products Grid */
.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.products.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.products .product {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    position: relative !important;
}

.products .product .product-inner {
    background: white;
    border: 1px solid var(--ecotekk-border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/*.products .product:hover .product-inner {*/
/*    border-color: var(--ecotekk-primary);*/
/*    box-shadow: 0 5px 20px rgba(0,0,0,0.1);*/
/*    transform: translateY(-5px);*/
/*}*/

/* Product Image */
.products .product-image {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
}

.products .product-image a {
    display: block;
    text-decoration: none;
}

.products .product-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.products .product:hover .product-image img {
    transform: scale(1.05);
}

/* Product Content */
.products .product-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.product-sku {
    display: none;
}

.woocommerce-loop-product__title {
    font-size: 16px !important;
    line-height: 1.3 !important;
    margin: 0 0 10px !important;
    font-weight: 600 !important;
}

.woocommerce-loop-product__title a {
    color: #333;
    text-decoration: none;
}

.woocommerce-loop-product__title a:hover {
    color: var(--ecotekk-primary);
}

.product-sku,
.product-category {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.product-sku .sku,
.product-category .category {
    font-weight: 500;
}

.product-short-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 15px;
    flex: 1;
}

/* Price */
.products .price {
    display: block;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--ecotekk-primary);
}

.woocommerce-Price-amount {
    color: var(--ecotekk-primary);
}

.woocommerce-Price-currencySymbol {
    font-size: 16px;
}

/* Product Actions */
.product-actions {
    margin-top: auto;
}

.product_view_button {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: var(--ecotekk-primary);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product_view_button:hover {
    background: #1279b4 !important;
    color: #ffff !important;
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .products,
    .products.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .manufacturer-header {
        grid-template-columns: 150px 1fr;
        gap: 20px;
    }
    
    .manufacturer-logo-large {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .products,
    .products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .manufacturer-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .manufacturer-logo-large {
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .products,
    .products.columns-4 {
        grid-template-columns: 1fr !important;
    }
    
    .ecotekk-manufacturer-single.woocommerce {
        padding: 15px;
    }
}

/* Ensure WooCommerce compatibility */
.ecotekk-manufacturer-single .products {
    clear: both !important;
}

.ecotekk-manufacturer-single .product {
    float: none !important;
}




/* ========== SINGLE PRODUCT PAGE (Like Screenshot) ========== */
.ecotekk-product-single.woocommerce {
    max-width: 1400px;
    margin: 160px auto;
    padding: 20px;
}

/* Breadcrumb */
.woocommerce-breadcrumb {
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.woocommerce-breadcrumb a {
    color: var(--ecotekk-primary);
    text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}

/* Product Summary Section */
.product-summary-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Product Images */
.product-images {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
}

.main-image {
    width: 100%;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 6px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Product Info */
.product-info {
    padding-right: 20px;
}

.product-title {
    font-size: 28px !important;
    margin: 0 0 15px !important;
    color: #333 !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.product-code,
.product-category {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-code .label,
.product-category .label {
    color: #666;
    font-weight: 600;
    min-width: 100px;
}

.product-code .value,
.product-category .value {
    color: var(--ecotekk-primary);
    font-weight: 600;
}

.product-short-desc {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    line-height: 1.6;
    padding: 15px;
    /*background: #f8f9fa;*/
    /*border-radius: 6px;*/
    /*border-left: 4px solid var(--ecotekk-primary);*/
    height: -webkit-fill-available;
}

/* Manufacturer Highlight Section */
.manufacturer-highlight {
    
}

.manufacturer-heading {
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.manufacturers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.manufacturer-item {
    display: flex;
    align-items: center;
}

.manufacturer-logo-link {
    display: inline-block;
    padding: 10px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    transition: all 0.3s ease;
    max-width: 200px;
    max-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}



.manufacturer-logo-link img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    display: block;
}

.manufacturer-text-link {
    display: inline-block;
    padding: 10px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 6px;
    color: var(--ecotekk-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.manufacturer-text-link:hover {
    background: var(--ecotekk-primary);
    color: white;
    border-color: var(--ecotekk-primary);
}

.product-description {
    margin-top: 30px;
    line-height: 1.6;
    color: #333;
}

/* Product Sidebar (Right Column) */
.product-sidebar {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Price Box */
.price-box {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ecotekk-primary);
}

.current-price {
    font-size: 36px;
    font-weight: 800;
    color: var(--ecotekk-primary);
    margin-bottom: 5px;
}

.price-per-item {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.original-price {
    display: flex;
    align-items: center;
    gap: 15px;
}

.strikethrough {
    font-size: 18px;
    color: #666;
    text-decoration: line-through;
}

.discount {
    background: #dc3545;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Availability Box */
.availability-box {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 25px;
}

.stock-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stock-status .label {
    color: #666;
    font-weight: 600;
}

.stock-status .value {
    padding: 6px 12px;
    font-weight: 600;
    font-size: 14px;
}

.status-in_stock {
    background: #d4edda;
    color: #155724;
}

.status-out_of_stock {
    background: #f8d7da;
    color: #721c24;
}

.status-low_stock {
    background: #fff3cd;
    color: #856404;
}

.total-stock {
    font-size: 20px;
    font-weight: 700;
    color: var(--ecotekk-primary);
    text-align: center;
}

/* Product Actions */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.product-actions .button {
    width: 100%;
    padding: 15px;
    text-align: center;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-basket {
    background: var(--ecotekk-primary);
    color: white;
}

.add-to-basket:hover {
    background: #2a3879;
}

 

.buy-now {
    background: #28a745;
    color: white;
}

.buy-now:hover {
    background: #218838;
}

/* Sidebar Details */
.sidebar-details {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.detail-item .label {
    color: #666;
    font-size: 14px;
}

.detail-item .value {
    font-weight: 600;
    color: #333;
}

/* Tabbed Content Section */
.product-tabs-section {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* Tabs Navigation */
.woocommerce-tabs {
    width: 100%;
}

.tabs.wc-tabs {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}

.tabs.wc-tabs li {
    margin: 0;
}

.tabs.wc-tabs li a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tabs.wc-tabs li.active a,
.tabs.wc-tabs li:hover a {
    color: var(--ecotekk-primary);
    border-bottom: 3px solid var(--ecotekk-primary);
    background: white;
}

/* Tab Content */
.woocommerce-Tabs-panel {
    padding: 30px;
    display: none;
}

.woocommerce-Tabs-panel.active {
    display: block;
}

/* Specifications Table */
.specifications-table {
    width: 100%;
    border-collapse: collapse;
}

.specifications-table th,
.specifications-table td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: left;
}

.specifications-table th {
    background: #f8f9fa;
    font-weight: 600;
    width: 40%;
    color: #333;
}

/* Other Parts */
.other-parts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.part-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--ecotekk-primary);
}

.part-item h4 {
    margin: 0 0 8px;
    color: #333;
    font-size: 18px !important;
    font-weight: 500 !important;
    line-height: 1.4em;
}

/* Product Variants */
.product-variants pre {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #eee;
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Documents List */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.document-item {
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.download-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    text-decoration: none;
    color: #333;
    background: white;
    transition: all 0.3s ease;
}

.download-link:hover {
    background: #f8f9fa;
    color: var(--ecotekk-primary);
}

.document-icon {
    font-size: 20px;
    margin-right: 15px;
}

.document-name {
    flex: 1;
    font-weight: 500;
}

.document-type {
    color: #666;
    font-size: 12px;
    background: #f8f9fa;
    padding: 4px 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
}

/* Stock Locations */
.stock-locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.location-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.location-name {
    font-weight: 600;
    color: #333;
}

.location-quantity {
    background: var(--ecotekk-primary);
    color: white;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
}

/* Product Contact */
.product-contact {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    border: 1px solid #eee;
}

.product-contact a {
    color: var(--ecotekk-primary);
    font-weight: 600;
    text-decoration: none;
}

.product-contact a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .product-summary-section {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .product-sidebar {
        grid-column: 1 / -1;
        order: 3;
    }
}

@media (max-width: 768px) {
    .product-summary-section {
        grid-template-columns: 1fr;
    }
    
    .tabs.wc-tabs {
        flex-wrap: wrap;
    }
    
    .tabs.wc-tabs li {
        flex: 1 0 50%;
    }
    
    .tabs.wc-tabs li a {
        padding: 12px 15px;
        font-size: 14px;
        text-align: center;
    }
    
    .stock-locations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ecotekk-product-single.woocommerce {
        padding: 15px;
    }
    
    .product-title {
        font-size: 24px;
    }
    
    .tabs.wc-tabs li {
        flex: 1 0 100%;
    }
    
    .woocommerce-Tabs-panel {
        padding: 20px;
    }
}



/* ========== NEW FEATURES STYLES ========== */

/* 1. Product Image Gallery */
.product-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.product-thumbnails .thumbnail {
    width: 70px;
    height: 70px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.product-thumbnails .thumbnail:hover {
    opacity: 1;
    border-color: #ddd;
}

.product-thumbnails .thumbnail.active {
    border-color: var(--ecotekk-primary);
    opacity: 1;
    transform: scale(1.05);
}

.product-thumbnails .thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 2. Quantity Selector */
.quantity-selector {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #eee;
}

.quantity-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    width: 40px !important;
    height: 40px !important;
    background: white !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    font-size: 18px !important;
    color: var(--ecotekk-primary) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important; 
}

.quantity-btn:hover {
    background: var(--ecotekk-primary);
    color: white;
}

.quantity-input {
    width: 80px;
    height: 40px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
}

.quantity-input:focus {
    border-color: var(--ecotekk-primary);
    outline: none;
}

/* 3. Availability Tab Updates */
.stock-summary {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
}

.total-stock-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.total-stock-display .label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.total-stock-display .value {
    font-size: 24px;
    font-weight: 800;
    color:#f5941f !important;
}

.stock-breakdown h4 {
    margin: 0 0 15px;
    color: #333 !important;
    font-size: 16px !important;
}

.stock-locations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stock-location-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    background: white;
    border-radius: 4px;
    border: 1px solid #eee;
}

.stock-location-item .location {
    font-weight: 500;
    color: #333;
}

.stock-location-item .quantity {
    font-weight: 600;
    color: var(--ecotekk-primary);
}

.no-stock-message {
    text-align: center;
    padding: 20px;
    color: #666;
}

.backorder-notice {
    color: var(--ecotekk-warning, #ffc107);
    font-weight: 600;
    margin-top: 10px;
}

/* 4. Quote Modal removed */

/* Responsive */
@media (max-width: 768px) {
    .product-thumbnails {
        gap: 8px;
    }
    
    .product-thumbnails .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .quantity-controls {
        gap: 8px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
    }
    
    .quantity-input {
        width: 70px;
        height: 35px;
    }
    
    .quote-modal {
        width: 95%;
        height: 95vh;
    }
    
    .modal-body {
        padding: 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    
    .modal-product-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}




/* ========== CATEGORY ICON STYLES ========== */

/* Category Grid Icons */
.category-icon {
    width: 130px;
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    padding: 10px;
  
}


.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.default-icon {
    font-size: 30px;
    color: white;
}

/* Category Admin Styles */
.category-icon-preview img {
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 5px;
    background: white;
}

/* Responsive Category Icons */
@media (max-width: 768px) {
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .default-icon {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .category-icon {
        width: 40px;
        height: 40px;
    }
    
    .default-icon {
        font-size: 20px;
    }
}
