/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background-color: #FFFFFF;
    color: #000000;
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

.container {
    max-width: 1730px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header styles */
.header {
    position: relative;
    padding: 25px 0;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.header__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: block;
}

.logo img {
    max-height: 42px;
    width: auto;
    vertical-align: middle;
}

.main-nav {
    display: flex;
    margin-left: 30px;
}

.main-nav__list {
    display: flex;
    gap: 40px;
    align-items: center;
}

.main-nav__item {
    position: relative;
}

.main-nav__link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 154%;
    color: #000000;
    padding: 5px 0;
    transition: all 0.3s ease;
    position: relative;
}

.main-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #000;
    transition: width 0.3s ease;
}

.main-nav__link:hover {
    color: #000;
}

.main-nav__link:hover::after {
    width: 100%;
}

.header__tools {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 7px;
    cursor: pointer;
    width: 30px;
    height: 24px;
    justify-content: space-between;
    z-index: 200;
}

.menu-toggle__line {
    width: 100%;
    height: 3px;
    background-color: #000;
    transition: all 0.3s ease;
}

.menu-toggle__line--short {
    width: 70%;
    align-self: flex-end;
}

.menu-toggle.active .menu-toggle__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 7px);
}

.menu-toggle.active .menu-toggle__line:nth-child(2) {
    transform: rotate(-45deg);
    width: 100%;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        flex-direction: column;
        padding: 100px 40px 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 100;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav__list {
        flex-direction: column;
        gap: 25px;
        align-items: flex-start;
    }
    
    .main-nav__link {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 20px 0;
    }
    
    .logo {
        font-size: 28px;
    }
}

/* Hero section styles */
.hero {
    position: relative;
    padding: 100px 0;
    display: flex;
}

.hero__content {
    width: 50%;
    padding-right: 40px;
}

.hero__title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 98px;
    line-height: 112%;
    color: #000000;
    margin-bottom: 40px;
}

.hero__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: rgba(0, 0, 0, 0.75);
    margin-bottom: 100px;
}

.btn {
    background: #000000;
    padding: 20px 40px;
    color: #FFFFFF;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 154%;
    text-transform: capitalize;
    box-shadow: 0px 100px 85px rgba(0, 0, 0, 0.09),
                0px 46.233px 39.298px rgba(0, 0, 0, 0.0668),
                0px 26.454px 22.486px rgba(0, 0, 0, 0.0564),
                0px 16.057px 13.649px rgba(0, 0, 0, 0.0486),
                0px 9.675px 8.224px rgba(0, 0, 0, 0.0414),
                0px 5.388px 4.580px rgba(0, 0, 0, 0.0336),
                0px 2.317px 1.970px rgba(0, 0, 0, 0.0232);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    z-index: 1;
}

.btn:hover {
    background: #333;
}

.hero__image {
    width: 50%;
    position: relative;
}

.hero__bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 870px;
    height: 1123px;
    background: linear-gradient(90deg, #E4E4E4 0%, #FAFAFA 100%);
    z-index: -1;
}

.hero__product {
    position: relative;
    max-width: 100%;
    height: auto;
}

.product-highlight {
    position: absolute;
    width: 197px;
    height: 316px;
    border: 21px solid #90D5E4;
    filter: blur(7.6px);
    border-radius: 50%;
    transform: matrix(-0.87, -0.5, -0.5, 0.87, 0, 0);
}

/* Popular products section */
.popular-products {
    padding: 100px 0;
}

.section-title {
    position: relative;
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    color: #000000;
    margin-bottom: 60px;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 47px;
    height: 2px;
    background: #000000;
    bottom: -10px;
    left: -47px;
}

.product-feature {
    display: flex;
    margin-bottom: 60px;
}

.product-feature__content {
    width: 50%;
}

.product-feature__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 110%;
    color: #000000;
    margin-bottom: 28px;
}

.product-feature__specs {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    color: #000000;
    margin-bottom: 40px;
}

.product-feature__image {
    width: 50%;
}

.product-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.product-card {
    width: calc(25% - 30px);
    background: #FFFFFF;
    border-radius: 5px;
    overflow: visible;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.product-card__image {
    height: 200px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.product-card__image img {
    max-height: 100%;
    object-fit: contain;
}

.product-card__content {
    padding: 20px;
}

.product-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 138.11%;
    color: #000000;
    margin-bottom: 5px;
}

.product-card__subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 138.11%;
    color: #000000;
    margin-bottom: 10px;
}

.product-card__price {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
}

.product-card__btn {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #000000;
    border-radius: 0px 0px 5px 5px;
    padding: 15px 0;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card__btn:hover {
    background: #333;
}

/* Marketplace section */
.marketplace {
    color: white;
    padding: 60px 0;
    overflow: visible;
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Добавляем отдельный элемент для красного фона */
.marketplace__background {
    background: #DA1010;
    position: absolute;
    left: 5%;
    right: 5%;
    top: 0;
    bottom: 0;
    border-radius: 20px;
    z-index: -1;
}

.marketplace__container {
    position: relative;
}

.marketplace__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Стили для правильного отображения устройства */
.marketplace__product-display {
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-top: -80px;
}

/* Убираем белый фон */
.marketplace__product-display:after {
    display: none;
}

.marketplace__product-image {
    max-width: 100%;
    max-height: 400px;
    display: block;
    transform: translateY(-125px); /* Небольшая коррекция положения устройства */
    z-index: 3;
    position: relative;
    transition: transform 0.3s ease; /* Добавляем плавный переход для возможных изменений */
}

.marketplace__yogikai-logo {
    position: absolute;
    bottom: -305px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    max-width: 10000px;
    opacity: 0.9;
    z-index: 1;
    transition: all 0.3s ease; /* Добавляем плавный переход для возможных изменений */
}

.marketplace__left {
    width: 50%;
}

.marketplace__right {
    width: 45%;
}

.marketplace__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    text-transform: uppercase;
    margin-bottom: 20px;
    position: relative;
}

.marketplace__title::after {
    content: '';
    position: absolute;
    width: 47px;
    height: 2px;
    background: #FFFFFF;
    bottom: -10px;
    left: 0;
}

.marketplace__heading {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 34px;
    line-height: 110%;
    text-transform: capitalize;
    margin: 30px 0;
}

.marketplace__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.marketplace__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.marketplace__logo-item {
    height: 50px;
    display: flex;
    align-items: center;
}

.marketplace__logo-item img {
    max-height: 100%;
}

/* Catalog section */
.catalog {
    padding: 60px 0;
}

.catalog__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 62px;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.catalog__title::before,
.catalog__title::after {
    content: '';
    position: absolute;
    width: 41px;
    height: 3px;
    background: #000000;
    top: 50%;
}

.catalog__title::before {
    left: calc(50% - 130px);
}

.catalog__title::after {
    right: calc(50% - 130px);
}

.catalog__tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.catalog__tab {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 28px;
    line-height: 138.11%;
    text-transform: capitalize;
    padding: 20px 40px;
    cursor: pointer;
    border: 2px solid transparent;
}

.catalog__tab.active {
    background: #000000;
    color: #FFFFFF;
}

.catalog__tab:not(.active) {
    border: 2px solid rgba(0, 0, 0, 0.75);
    color: rgba(0, 0, 0, 0.75);
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.catalog__item {
    background: #FFFFFF;
    border-radius: 6px;
    overflow: visible;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.catalog__item-image {
    height: 250px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.catalog__item-image img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.catalog__item-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #000000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.catalog__item-btn {
    position: relative;
    z-index: 1;
    width: 100%;
    background: #000000;
    border-radius: 0px 0px 5px 5px;
    padding: 15px 0;
    color: #FFFFFF;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
}

.catalog__item-content {
    padding: 20px 15px;
}

.catalog__item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 138.11%;
    color: #000000;
    margin-bottom: 5px;
}

.catalog__item-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 138.11%;
    color: #000000;
    margin-bottom: 15px;
}

.catalog__item-price {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 29px;
    color: #000000;
}

/* Testimonials section */
.testimonials {
    padding: 60px 0;
}

.testimonials__title {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 45px;
    line-height: 138.11%;
    text-transform: uppercase;
    color: #000000;
    text-align: center;
    position: relative;
    margin-bottom: 60px;
}

.testimonials__title::before,
.testimonials__title::after {
    content: '';
    position: absolute;
    width: 41px;
    height: 3px;
    background: #000000;
    top: 50%;
}

.testimonials__title::before {
    left: calc(50% - 120px);
}

.testimonials__title::after {
    right: calc(50% - 120px);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #F3F3F3;
    border: 1.5px solid #DEDEDE;
    border-radius: 18px;
    padding: 30px;
    display: flex;
}

.testimonial-card__image {
    width: 100px;
    height: 130px;
    border-radius: 7px;
    overflow: hidden;
    margin-right: 40px;
}

.testimonial-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-card__content {
    flex: 1;
}

.testimonial-card__name {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 138.11%;
    text-transform: capitalize;
    color: #000000;
    margin-bottom: 5px;
}

.testimonial-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 15px;
}

.testimonial-card__star {
    width: 14px;
    height: 14px;
    background: #FFB800;
}

.testimonial-card__text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 10px;
    line-height: 138.11%;
    color: rgba(0, 0, 0, 0.75);
}

/* Footer */
.footer {
    background-color: #000;
    color: #fff;
    padding: 60px 0 30px;
}

.footer__content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.yogikai-section {
    flex: 1;
    max-width: 60%;
}

.yogikai-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.yogikai-description {
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 80%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #fff;
    color: #000;
}

.footer-nav {
    margin-top: 10px;
}

.footer-nav__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-nav__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav__item {
    margin-bottom: 15px;
}

.footer-nav__link {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-nav__link:hover {
    opacity: 1;
}

.footer-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.footer-copyright {
    text-align: center;
    font-size: 14px;
    color: #fff;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
    }
    
    .yogikai-section {
        max-width: 100%;
        margin-bottom: 40px;
    }
    
    .yogikai-description {
        max-width: 100%;
    }
}

/* Product detail page */
.product-detail {
    padding: 80px 0;
}

.product-detail__container {
    display: flex;
    gap: 50px;
}

.product-detail__gallery {
    width: 50%;
}

.product-detail__main-image {
    width: 100%;
    height: 500px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
}

.product-detail__main-image img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.product-detail__thumbs {
    display: flex;
    gap: 10px;
}

.product-detail__thumb {
    width: 100px;
    height: 100px;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 5px;
    overflow: hidden;
}

.product-detail__thumb.active {
    border-color: #000;
}

.product-detail__thumb img {
    max-height: 80%;
    max-width: 80%;
    object-fit: contain;
}

.product-detail__content {
    width: 50%;
}

.product-detail__title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 36px;
    line-height: 110%;
    color: #000000;
    margin-bottom: 20px;
}

.product-detail__subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    color: #333333;
    margin-bottom: 20px;
}

.product-detail__price {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 28px;
    line-height: 110%;
    color: #000000;
    margin-bottom: 30px;
}

.product-detail__specs {
    margin-bottom: 30px;
}

.product-detail__spec {
    display: flex;
    margin-bottom: 10px;
}

.product-detail__spec-title {
    width: 150px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
}

.product-detail__spec-value {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
}

.product-detail__description {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 30px;
}

.product-detail__buy {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.product-detail__color-options {
    margin-bottom: 30px;
}

.product-detail__color-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 10px;
}

.product-detail__colors {
    display: flex;
    gap: 15px;
}

.product-detail__color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
}

.product-detail__color.active {
    border-color: #000;
}

.product-detail__color--silver {
    background: linear-gradient(145deg, #e6e6e6, #c2c2c2);
}

.product-detail__color--gray {
    background: linear-gradient(145deg, #828282, #5a5a5a);
}

.product-detail__button {
    padding: 15px 40px;
    background: #000000;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.product-detail__button:hover {
    background: #333;
}

.product-detail__tabs {
    margin-top: 80px;
}

.product-detail__tab-links {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #E5E5E5;
    margin-bottom: 30px;
}

.product-detail__tab-link {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 150%;
    color: #000000;
    padding: 10px 0;
    cursor: pointer;
    position: relative;
}

.product-detail__tab-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #000;
}

.product-detail__tab-content {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000000;
}

.product-detail__feature {
    display: flex;
    margin-bottom: 30px;
    align-items: center;
}

.product-detail__feature-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
}

.product-detail__feature-icon i {
    font-size: 24px;
    color: #000;
}

.product-detail__feature-text {
    flex: 1;
}

.product-detail__feature-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 5px;
}

.product-detail__feature-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 150%;
    color: #555555;
}

/* Related products */
.related-products {
    padding: 60px 0;
}

.related-products__title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 28px;
    line-height: 150%;
    color: #000000;
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .hero__title {
        font-size: 80px;
    }
    
    .product-row {
        gap: 20px;
    }
    
    .product-card {
        width: calc(33.33% - 15px);
    }
    
    .catalog__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .nav__menu {
        display: none;
    }
    
    .hero {
        flex-direction: column;
    }
    
    .hero__content, .hero__image {
        width: 100%;
    }
    
    .hero__content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero__bg {
        width: 100%;
    }
    
    .product-feature {
        flex-direction: column;
    }
    
    .product-feature__content, .product-feature__image {
        width: 100%;
    }
    
    .product-feature__content {
        margin-bottom: 30px;
    }
    
    .marketplace__content {
        flex-direction: column;
    }
    
    .marketplace__left, .marketplace__right {
        width: 100%;
    }
    
    .marketplace__left {
        margin-bottom: 30px;
    }
    
    .catalog__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__container {
        flex-direction: column;
    }
    
    .footer__left, .footer__right, .footer__middle {
        width: 100%;
        margin-bottom: 40px;
    }
    
    .product-detail__container {
        flex-direction: column;
    }
    
    .product-detail__gallery, .product-detail__content {
        width: 100%;
    }
    
    /* Корректируем отступы красного фона на мобильных устройствах */
    .marketplace__background {
        left: 5%;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .product-card {
        width: calc(50% - 10px);
    }
    
    .hero__title {
        font-size: 60px;
    }
    
    .catalog__tabs {
        flex-wrap: wrap;
    }
    
    .catalog__tab {
        font-size: 24px;
        padding: 15px 30px;
    }
    
    .testimonial-card {
        flex-direction: column;
    }
    
    .testimonial-card__image {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    /* Еще более узкий красный фон на маленьких экранах */
    .marketplace__background {
        left: 2%;
        right: 2%;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero__title {
        font-size: 40px;
    }
    
    .hero__text {
        font-size: 16px;
    }
    
    .btn {
        font-size: 20px;
        padding: 15px 30px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .product-card {
        width: 100%;
    }
    
    .catalog__grid {
        grid-template-columns: 1fr;
    }
    
    .catalog__title, .testimonials__title {
        font-size: 32px;
    }
    
    .catalog__title::before,
    .catalog__title::after,
    .testimonials__title::before,
    .testimonials__title::after {
        display: none;
    }
}

/* Active states and additional styles */
.nav__menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding: 20px;
    z-index: 100;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.burger-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger-icon.active span:nth-child(2) {
    opacity: 0;
}

.burger-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
    width: 28px;
}

.catalog__item-favorite.active svg path {
    fill: #DA1010;
    stroke: #DA1010;
}

.btn:active, .product-card__btn:active, .catalog__item-btn:active {
    transform: scale(0.98);
}

/* For mobile devices, hide the nav menu by default */
@media (max-width: 992px) {
    .nav__menu {
        display: none;
    }
    
    .nav__menu.active {
        display: flex;
    }
}

/* ================ Слайдеры ================ */
/* Обрезаем слайды, чтобы они не вылезали за пределы */
.product-feature__image,
.catalog-slider {
  position: relative;
  overflow: hidden !important;
}
/* Контейнер слайдов должен быть flex, без переносов */
.products-slider__container,
.products-grid {
  display: flex;
  flex-wrap: nowrap;
  position: relative;
  width: 100%;
  overflow: visible;
  padding-bottom: 15px;
}

/* Элементы слайдера не должны сжиматься */
.product-card {
  flex-shrink: 0;
}

/* Стрелки всегда поверх слайдов */
.product-feature__nav,
.catalog-nav,
.reviews-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px !important;
    height: 50px !important;
    background: rgba(0, 0, 0, 0.8) !important;
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 1000 !important;
    opacity: 1 !important;
    color: white !important;
    font-size: 20px !important;
    pointer-events: auto !important;
    border: 2px solid white !important;
}

.product-feature__nav--prev,
.catalog-nav--prev,
.reviews-nav--prev {
    left: 10px !important;
}

.product-feature__nav--next,
.catalog-nav--next,
.reviews-nav--next {
    right: 10px !important;
}

.product-feature__nav i,
.catalog-nav i,
.reviews-nav i {
    color: white !important;
    font-size: 24px !important;
}

/* Дополнительные исправления для слайдеров */
.popular-products .product-feature__image,
.catalog .catalog-slider {
  overflow: hidden !important;
}

.popular-products .products-slider__container,
.catalog .products-grid {
  overflow: visible;
}

/* Предотвращаем наложение карточек */
.catalog__item {
  transform: scale(1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Навигационные стрелки над всем остальным */
.product-feature__nav--prev,
.product-feature__nav--next,
.catalog-nav--prev,
.catalog-nav--next {
  z-index: 30;
  cursor: pointer;
}

/* Remove shadows from buttons */
.btn-primary,
.btn,
.product-card__btn,
.product-detail__button,
.catalog__item-btn {
    box-shadow: none !important;
}

/* Remove shadows from product cards */
.product-card,
.catalog__item {
    box-shadow: none !important;
    border: 1px solid #eee;
}

/* Fix for slider containers to ensure proper stacking and visibility */
.products-slider__container,
.products-grid,
.reviews__grid,
.product-feature__image,
.catalog-slider,
.reviews-slider {
    position: relative;
    overflow: visible !important;
}

/* Обеспечиваем, чтобы контейнеры слайдеров не перекрывали стрелки */
.products-slider__container,
.products-grid,
.reviews__grid {
    position: relative;
    overflow: visible !important;
    z-index: 1;
}

/* Обеспечиваем, чтобы родительские контейнеры слайдеров тоже были с visible overflow */
.product-feature__image,
.catalog-slider,
.reviews-slider {
    position: relative !important;
    overflow: visible !important;
    padding: 0 50px !important;
} 