/* ТОВАРЫ */
.products {
    padding: 50px 0;
    background-color: #F3F3F3;
}

.products-title {
    text-align: left;
    margin-bottom: 50px;
}

.products h1 {
    margin-bottom: 20px;
	font-weight: 700;
	font-size: 48px;
	line-height: 6vw;
	text-transform: uppercase;
    color: #1D4A8E;
}

.products h2 {
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 36px;
    line-height: 6vw;
    text-transform: uppercase;
    color: #1D4A8E;
}

.products p {
    font-size: 20px;
    line-height: 2.0;
    max-width: 700px;
    color: #424146;
}

.products a {
    color: #424146;
    text-decoration: none;
    transition: color 0.3s;
}

.products a:hover {
    color: #3498db;
}

.products-title h2 {
    margin-bottom: 20px;
	font-weight: 700;
	font-size: 48px;
	line-height: 6vw;
	text-transform: uppercase;
    color: #1D4A8E;
}

.products-title p {
    color: #424146;
}

.products-slider-container {
    max-width: 1650px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 0 40px;
}

.products-slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.products-slider-title {
    color: #7f8c8d;
    max-width: 600px;
}

.products-slider-controls {
    display: flex;
    gap: 10px;
}

.products-slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-slider-btn:hover {
    background-color: #f0f0f0;
}

.products-slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.products-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
}

.products-slider-product-card {
    position: relative;
    flex: 0 0 320px;
    margin: 0 8px;
    background-color: #fff;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.products-slider-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.products-slider-product-nameplate {
    position: absolute;
    top: 0;
    right: 0;
    border-bottom-left-radius: 25px;
    background-color: #0094FF;
    color: white;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.products-slider-product-image {
    height: 200px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.products-slider-product-info {
    padding: 15px;
}

.products-slider-product-title {
    font-size: 18px;
    color: #1D4A8E;
    margin-bottom: 10px;
    text-align: left;
    min-height: 80px;
}

.products-slider-product-price {
    font-size: 14px;
    margin-bottom: 10px;
    max-height: 26px;
    min-height: 26px;
    height: 26px;
}

.products-slider-product-description {
    align-items: center;
    margin-bottom: 10px;
    max-height: 26px;
    min-height: 26px;
    height: 26px;
}

.products-slider-product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.products-slider-product-stars {
    color: #ffc107;
    margin-right: 5px;
}

.products-slider-product-rating-count {
    font-size: 14px;
    color: #777;
}

.products-slider-product-add-to-cart {
    width: 100%;
    padding: 10px;
    background-color: #424146;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.0em;
    transition: background-color 0.3s ease;
}

.products-slider-product-add-to-cart:hover {
    background-color:  #035CB0;
}

.products-slider-indicators {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 8px;
}

.products-slider-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.products-slider-indicator.active {
    background-color: #090E12;
}

.products-all {
    padding-top: 40px;
    width: 100%;
    text-align: center
}

.products-btn {
    display: inline-block;
    background-color: #424146;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    border-top-left-radius: 250px;
    border-top-right-radius: 250px;
    border-bottom-right-radius: 250px;
    border-bottom-left-radius: 250px;
}

.products-btn:hover {
    background-color:  #035CB0;
}

.container-sidebar-and-products {
    display: flex;
    gap: 30px;
}

/* sidebar */
.products-sidebar {
    min-width: 350px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.products-sidebar h2 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2em;
}

.products-sidebar-filter-section {
    margin-bottom: 25px;
}

.products-sidebar-filter-section h3 {
    font-size: 1em;
    margin-bottom: 10px;
    color: #555;
}

.products-sidebar-filter-options {
    list-style: none;
}

.products-sidebar-filter-options li {
    margin-bottom: 8px;
}

.products-sidebar-filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
}

.products-sidebar-filter-options input {
    margin-right: 8px;
}

.products-sidebar-price-range {
    width: 100%;
}

.products-sidebar-price-inputs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.products-sidebar-price-inputs input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* products */
.products-main-content {
    flex: 1;
}

.products-page-title {
    margin-bottom: 20px;
    color: #2c3e50;
}

.products-products-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.products-product-card {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    gap: 20px;
    transition: transform 0.2s ease;
}

.products-product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.products-product-nameplate {
    position: absolute;
    top: 0;
    left: 0;
    clip-path: polygon(0.00% 0.00%,100% 0%,0.00% 100.00%,0% 100%);
    background-color: #0094FF;
    color: white;
    padding-left: 10px;
    padding-right: 50px;
    padding-top: 5px;
    padding-bottom: 50px;
    overflow: visible;
}

.products-product-nameplate-text {
    text-transform: uppercase;
    transform: rotate(-30deg);
    transform-origin: top left;
    display: inline-block;
    position: relative;
    left: -5px;
    top: 35px;
}

.products-product-image {
    width: 150px;
    height: 150px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9em;
}

.products-product-info {
    flex: 1;
}

.products-product-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1D4A8E;
}

.products-product-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.products-product-price {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.products-product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.products-product-meta-discount {
    color: crimson;
}

.products-product-meta-special-offer {
    clip-path: polygon(25% 0%, 100% 1%, 100% 100%, 25% 100%, 0% 50%);
    background-color: crimson;
    color: white;
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.products-buy-button {
    background-color: #035CB0;
    color: white;
    border: none;
    padding: 10px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.0em;
    transition: background 0.3s ease;
    text-decoration: none;
}

.products-buy-button:hover {
    background-color: #333333;
}

.products-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
}

.products-pagination a {
    text-decoration: none;
}

.products-pagination .prev,
.products-pagination .next {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: white;
    color: #424146;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-pagination .page-numbers {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background-color: white;
    color: #424146;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.products-pagination .prev:hover, 
.products-pagination .next:hover, 
.products-pagination .page-numbers:hover {
    background: #f0f0f0;
}

.products-pagination .current {
    background-color: #090E12;
    color: white;
}

.products-pagination .current:hover {
    background-color: #090E12;
    color: white;
}

/* Страница товара */
.product-page {
    display: flex;
    gap: 20px;
    width: 100%;
    min-height: 400px;
}

.product-page-side-left {
    text-align: center;
    min-width: 350px;
}

.product-page-side-left img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
}

.product-page-side-right {
    flex: 1;
}

/* MOBILE */

@media (max-width: 1600px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 1440px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 1200px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }
}

@media (max-width: 1024px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }

    .products-title p {
        display: none;
    }
}

@media (max-width: 768px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }

    .products-sidebar {
        width: 100%;
        display: none;
    }
    
    .products-product-card {
        flex-direction: column;
    }
    
    .products-product-image {
        width: 100%;
        height: 200px;
        object-fit: cover;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .products-buy-button {
        display: block;
        padding: 10px 20px;
        min-width: 100%;
        text-align: center;
    }

    .products h1 {
        font-size: 5.9vw;
    }

    .products h2 {
        font-size: 4.9vw;
    }

    .product-page {
        flex-direction: column;
    }
    
    .product-page-side-left,
    .product-page-side-right {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .products-slider-product-card {
        flex: 0 0 320px;
    }

    .products-slider-container {
        padding: 0 20px;
    }

    .products-title h2 {
        margin-bottom: 20px;
        font-family: Rubik, sans-serif;
        font-weight: 700;
        font-size: 6.9vw;
        line-height: 6vw;
        text-transform: uppercase;
    }

    .products-title p {
        display: none;
    }
}

@media (max-width: 480px) {
    .products-title p {
        display: none;
    }
}