/* ==================== ����� ����� ==================== */
body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;


    line-height: 1.6;
}



.Zapchast_container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

h1, h2, h3 {
    color: #333;
    font-weight: 700;
}


/* ==================== ����� ==================== */
header {
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    margin: 0;
    font-size: 28px;
}

.search-bar {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    max-width: 500px;
}

.search-bar input {
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-bar button {
    padding: 10px 20px;
    background-color: #ffc107;
    color: #333;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.search-bar button:hover {
    background-color: #e0a800;
    transform: translateY(-2px);
}


/* ==================== ������� ==================== */
.sidebar {
    padding: 5px;
    width: 280px;
    background-color: #222222;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* ����� ��� ����������� ������� ������ */
    height: auto; /* �������� ��������� */
}

/* ���� ����� "���������" ������� */
.sidebar.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    transition:
            max-height 0.5s ease-in-out,
            padding 0.3s ease-in-out;
}
.sidebar h2 {
    font-size: 20px;
    color: #e4e4e4;
    margin-bottom: 15px;
}

.nav-item {
    margin-bottom: 10px;
}

.nav-item h3 {

    font-size: 16px;
    font-weight: 600;
    margin: 0;
    padding: 10px;
    background-color: #929292;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-item h3:hover {
    background-color: #ffc107;
    color: #333;
}

.nav-item ul {
    list-style: none;
    padding: 0;
    margin: 5px 0 0 10px;
    display: none;
}

.nav-item ul.show {
    display: block;
}

.nav-item ul li {
    margin: 5px 0;
}

.nav-item ul li a {
    color: #b8b8b8;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
    display: block;
    padding: 5px;
}

.nav-item ul li a:hover {
    color: #ffc107;
}

.nav-item ul li ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0 0 10px;
    max-height: 100px;
    overflow-x: auto;
}

.nav-item ul li ul li {
    flex: 0 0 auto;
}

.nav-item ul li ul li a {
    font-size: 14px;
    color: #555;
    padding: 5px 10px;
    background-color: #c1c1c1;
    border-radius: 4px;
}

.nav-item ul li ul li a:hover {
    background-color: #ffc107;
    color: #333;
}


/* ==================== �������� ������� ==================== */
.content {
    flex: 1;
}

.view-toggle {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.view-toggle button {
    padding: 10px 20px;
    border: none;
    background-color: #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-toggle button.active, .view-toggle button:hover {
    background-color: #ffc107;
    color: #333;
    transform: translateY(-2px);
}

.models-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.models-tags a {
    padding: 8px 15px;
    background-color: #dfdfdf;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s;
}

.models-tags a:hover {
    background-color: #ffc107;
}


/* ==================== ��������� ��� ==================== */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.product-card h3 {
    font-size: 16px;
    margin: 10px 0;
    color: #333;
}

.product-card p {
    margin: 6px 0;
    font-size: 14px;
    color: #555;
}

.cart-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cart-controls button {
    padding: 8px;
    background-color: #04b0dd;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cart-controls button:hover {
    background-color: #04b0dd;
    transform: translateY(-2px);
}

.cart-controls input {
    width: 50px;
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}


/* ==================== ��������� ��� ==================== */
.table-view {
    display: block;
}

.table-view .product-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-view .product-table thead {
    background-color: #222;
    color: #fff;
}

.table-view .product-table th {
    padding: 12px;
    font-size: 15px;
    text-align: left;
}

.table-view .product-table tbody tr {
    border-bottom: 1px solid #454545;
}

.table-view .product-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.table-view .product-table td {

    background: #333;
    padding: 12px 12px 0 12px;
    font-size: 14px;
}

.zapchast1E3{
    display: flex;
}

.table-view .product-table img {
    max-width: 70px;
    border-radius: 6px;
}


/* ==================== ������ "��������� ���" ==================== */
.load-more {
    text-align: center;
    margin-top: 30px;
}

.load-more button {
    padding: 12px 30px;
    background-color: #000000;
    color: #FFF;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.2s;
}

.load-more button:hover {
    background-color: #292929;
    transform: translateY(-2px);
}

.load-more button:disabled {
    background-color: #535353;
    color: #6a6a6a;
    cursor: not-allowed;
}


/* ==================== �������� ������ ==================== */


.product-gallery {
    max-width: 600px;
    margin-bottom: 20px;
}

.main-gallery img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
}

.thumbnail-gallery {
    margin-top: 10px;
    width: 100%;
}

.thumbnail-gallery .swiper-slide {
    opacity: 0.4;
    cursor: pointer;
}

.thumbnail-gallery .swiper-slide-thumb-active {
    opacity: 1;
}

.thumbnail-gallery img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.product-info h2 {
    font-size: 24px;
    margin: 10px 0;
}

.in-stock {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-info .cart-controls button {
    padding: 10px;
}

.product-info .cart-controls .add-to-cart {
    padding: 10px 25px;
    font-size: 15px;
}



.product-description, .additional-info, .recommended {
    margin-top: 30px;
}

.product-description h3, .additional-info h3, .recommended h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.recommended-slider .swiper-container {
    padding: 20px 0;
}

.recommended-slider .product-card {
    width: 260px;
}

.recommended-slider .swiper-button-prev, .recommended-slider .swiper-button-next {
    color: #ffc107;
}

.product-details {
    display: flex;
    font-size: 15px;

}

.product-details p {
    margin-right: 15px;
    color: #8f8f8f;
}



.product-table a {
    text-decoration: none;
    color: #dddddd;
    font-size: 18px;
    transition: color 0.2s ease-in-out; /* ������� ��������� ����� �� 0.3 ������� */

}

.product-table a:hover{
    color: #12a9d1;


}
.product-details .priceZapchast {
    font-weight: bold;
    color: #9f9f9f; /* ����� �������� ���� ��� ��������� */
}


.product-table td {
    vertical-align: middle;
    padding: 10px;
}
.product-table img {
    max-width: 100px;
    height: auto;
}
/* ==================== ��������� ���� ==================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}


/* ==================== ������������ ==================== */
@media (max-width: 1200px) {
    .Zapchast_container {
        padding: 15px;
    }

    .sidebar {
        width: 260px;
    }

    .grid-view {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }
}

@media (max-width: 992px) {
    .Zapchast_container {
        flex-direction: column;
    }

    .sidebar {
        display: none
    }

    .content {
        margin-left: 0;
    }

    .table-view .product-table th, .table-view .product-table td {
        font-size: 18px;
        padding: 10px;
    }

    .table-view .product-table img {
        max-width: 60px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 22px;
    }

    .search-bar {
        flex-direction: column;
        gap: 8px;
    }

    .search-bar input, .search-bar button {
        width: 100%;
    }

    .grid-view {
        grid-template-columns: 1fr;
    }

    .table-view .product-table {
        display: block;
    }

    .table-view .product-table thead {
        display: none;
    }

    .table-view .product-table tbody tr {
        display: block;
        margin-bottom: 15px;
        padding: 10px;
        border-radius: 6px;
        background-color: #fff;
    }

    .table-view .product-table td {
        display: block;
        text-align: center;
        padding: 6px;
    }

    .table-view .product-table td img {
        margin: 0 auto;
    }

    .product-gallery {
        max-width: 100%;
    }
}


/* ==================== �������������� �������� ==================== */
.count {
    font-size: 12px;
    color: #666;
    font-weight: 400;
    margin-left: 5px;
}

.category-count {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}



/* catalogZap.css */

/* ��������� ��� */
.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); /* 2-3 ������ � ��� */
    gap: 15px;
}

.product-card {

    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 350px; /* ������������� ������ ��� ������������ */
}

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

.product-card-link {
    display: flex;
    flex-direction: column;

    text-decoration: none;
    color: inherit;
}

.product-image-container {
    width: 100%;
    height: 120px; /* ������������� ������ ��� ����������� */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* ��������� ���������, �� ����������� */
    border-radius: 6px;
}

.product-card h3 {
    font-size: 14px;
    margin: 8px 0;
    color: #dadada;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.Jie3{
    font-size: 22px;
}

.Oel3A{
    background: #ffffff;
    border-radius: 10px;

}

div#models-tags{
    padding: 10px;
}
div#breadcrumbs{
    padding: 10px
}

.product-card p {
    margin: 0px 0;
    font-size: 15px;
    color: #9f9f9f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


.cart-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: auto; /* ��������� ������ � ���� �������� */
    padding-top: 8px;
}

.cart-controls button {
    padding: 6px;
    background-color: #c2c2c2;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.cart-controls button:hover {
    background-color: #04b0dd;
    transform: translateY(-2px);
}

.cart-controls input {
    background-color: #47b0c6;
    width: 40px;
    padding: 6px;
    text-align: center;
    border: 1px solid #47b0c6;
    border-radius: 6px;
    font-size: 12px;
}

/* ��������� ��� */
.table-view .product-table img {
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
}
.cart-controls{
    flex-direction: column;
}

.zapchast_flex > * {
    margin-left: 5px;
}

.zapchast_flex{
    display: flex;
    flex-direction: row;
}

/* ������������ */
@media (max-width: 768px) {



    .product-card {
        height: 250px; /* ������� ������ ��� ������� ������� */
    }

    .product-image-container {
        height: 100px;
    }

    .product-card h3 {
        font-size: 13px;
    }

    .product-card p {
        font-size: 11px;
    }

    .cart-controls button {
        padding: 5px;
    }

    .cart-controls input {
        width: 35px;
        padding: 5px;
        font-size: 11px;
    }
}

.add-to-cart-btn p {
    font-size: 17px; /* ��� ����� ������ �������� */
    padding-right: 5px;
    padding-left: 5px;
}

.zapchast1E3 input[type="number"]{
    text-align: center;
    margin-right: 5px;
    margin-left: 5px;
    background-color: #04b0dd;
}

.models-tags .tag {
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    transition: background-color 0.3s, color 0.3s;
}


@media (max-width: 480px) {
    .models-tags .tag{
        font-size: 13px;
        padding: 4px 7px;
    }


    .product-card {
        height: 245px;
    }

    .product-image-container {
        height: 90px;
    }
}



/* ���� � models-tags */
.models-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}


.models-tags .tag:hover {
    background-color: #07cbff;
    color: #333;
}

.models-tags .tag.active {
    background-color: #04b0dd;
    color: #ffffff;
    border-color: #04b0dd;
    font-weight: bold;
}


















/* ����� ��� ������� ������ */
.breadcrumbs {
    font-size: 14px;
    color: #555;
    /*  margin-bottom: 20px; */
      padding: 10px 0;
  }

  .breadcrumbs a {
      color: #c0c0c0; /* ����� ���� ������ ������ */
    text-decoration: none; /* ������� ������������� */
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #0d89aa; /* ������ ���� ��� ��������� (��� � ������ ���������) */
    text-decoration: underline; /* ������������� ������ ��� ��������� */
}

.breadcrumbs > span {
    margin: 0 5px;
    color: #999;
}


.product-card{

        background: linear-gradient(145deg, #333, #111);
}




















