/*
  Theme Name:   Woodmart Child
  Description:  Woodmart Child Theme
  Author:       XTemos
  Author URI:   http://xtemos.com
  Template:     woodmart
  Version:      1.0.0
  Text Domain:  woodmart
 */


/* Products Table Styles */

.products-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.products-table thead th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 15px 10px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    text-transform: math-auto;
}

.products-table tbody td {
    padding: 15px 10px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.products-table tbody tr:hover {
    background: #f8f9fa;
}


/* Product Name Column Styles */

.product-name {
    min-width: 250px;
    max-width: 380px;
}

.product-name .product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.product-name .product-link:hover {
    color: #005a87;
    text-decoration: none;
}

.product-thumb-wrap {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    transition: transform 0.2s ease;
    display: block;
}


/* Стили для заглушки товара */

.product-thumb-wrap img[alt="Placeholder"] {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    opacity: 0.7;
}

.product-thumb-zoom {
    position: absolute;
    top: 00px;
    left: 90px;
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #007cba !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    pointer-events: none;
}

.product-thumb-wrap:hover .product-thumb-zoom {
    opacity: 1;
    visibility: visible;
    transform: scale(2.5);
}

.product-title-text {
    flex: 1;
    line-height: 1.4;
}


/* Other column styles */

.product-code,
.product-sku {
    font-size: 12px;
    min-width: 60px;
    max-width: 70px;
}

.product-stock {
    min-width: 70px;
    max-width: 80px;
}

.product-price {
    min-width: 120px;
    font-weight: 600;
    color: #28a745;
}

.product-actions {
    min-width: 100px;
}

.product-buttons {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.product-buttons .button,
.product-buttons .view-product-btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    margin: 0;
}

.product-buttons .add_to_cart_button {
    background: #007cba;
    color: #fff;
    border: 1px solid #007cba;
}

.product-buttons .add_to_cart_button:hover {
    background: #005a87;
    border-color: #005a87;
}

.product-buttons .view-product-btn {
    background: #6c757d;
    color: #fff;
    border: 1px solid #6c757d;
}

.product-buttons .view-product-btn:hover {
    background: #545b62;
    border-color: #545b62;
}

.stock-status.in-stock {
    color: #28a745;
    font-weight: 500;
}

.stock-status.out-of-stock {
    color: #dc3545;
    font-weight: 500;
}

.out-of-stock-text {
    color: #dc3545;
    font-size: 12px;
    font-style: italic;
}


/* Responsive Design */

@media (max-width: 768px) {
    .products-table {
        font-size: 12px;
    }
    .products-table thead th,
    .products-table tbody td {
        padding: 10px 5px;
    }
    .product-name {
        min-width: 200px;
    }
    .product-name .product-link {
        gap: 8px;
    }
    .product-thumb {
        width: 50px;
        height: 50px;
    }
    .product-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .product-buttons .button,
    .product-buttons .view-product-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
}

.product-name-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-table-container .wd-entities-title a {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.1em;
}


/* Categories with Icons Widget Styles */

.category-item {
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.category-icon {
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
}

.category-icon i {
    font-size: inherit;
    line-height: 1;
}

.category-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.category-icon svg {
    width: 100%;
    height: 100%;
    max-width: 60px;
    max-height: 60px;
}

.category-item:hover .category-icon {
    transform: scale(1.1);
}

.category-content {
    text-align: center;
}

.category-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.category-count {
    font-size: 14px;
    opacity: 0.8;
}


/* Carousel Layout Styles */

.woodmart-child-categories-with-icons.carousel-layout {
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
}

.carousel-track .category-item {
    padding: 0 10px;
}


/* Slick Carousel overrides */

.woodmart-child-categories-with-icons.carousel-layout .slick-slide {
    padding: 0 10px;
}

.woodmart-child-categories-with-icons.carousel-layout .slick-slide>div {
    height: 100%;
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
}


/* Скрываем стрелки когда они отключены */

.woodmart-child-categories-with-icons.carousel-layout:not(.has-arrows) .carousel-arrows {
    display: none;
}

.carousel-arrow {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.carousel-arrow-prev {
    left: 10px;
}

.carousel-arrow-next {
    right: 10px;
}

.carousel-dots {
    text-align: center;
    margin-top: 20px;
}


/* Скрываем точки когда они отключены */