
.page-wrapper {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 769px) {
    .page-wrapper {
        padding-left: 153px;
        padding-right: 153px;
    }
}

[id] {
    scroll-margin-top: 100px;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #212122;
    color: #fff;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.carousel-container,
.brands-carousel {
    direction: ltr !important;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 84px;
    background: #151912;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
}

@media (min-width:769px) {
    .navbar {
        padding: 0 153px;
    }
}

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

.logo img {
    height: 48px;
    width: auto;
}

.logo h1 {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 600;
}

.desktop-nav {
    display: none;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: clamp(1.2rem, 3vw, 2.5rem);
    list-style: none;
}

.nav-links a {
    color: #f5f7fa;
    text-decoration: none;
    font-size: clamp(.9rem, 1.8vw, 1rem);
    transition: color .3s;
}

.nav-links a:hover {
    color: #FBC02D;
}

.lang-btn {
    background: #fbc02d;
    color: #000;
    padding: .1rem .75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
    cursor: pointer;
    transition: background .3s;
}

.lang-btn:hover {
    background: #e0a91f;
}

.lang-btn i {
    font-size: 1.2rem;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 2rem;
    color: #fff;
    transition: color .2s;
}

.menu-toggle:hover {
    color: #fbc02d;
}

.menu-toggle i {
    transition: transform .2s;
}


.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #151912;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 1.5rem 20px;
    transform: translateY(-120%);
    transition: transform .35s ease;
    z-index: 999;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.mobile-menu.open {
    transform: translateY(0);
}

.mobile-menu a {
    color: #f5f7fa;
    text-decoration: none;
    font-size: 1.1rem;
    padding: .4rem 0;
    transition: color .2s;
}

.mobile-menu a:hover {
    color: #fbc02d;
}

.mobile-menu .lang-btn {
    background: #fbc02d;
    color: #000 !important;
    padding: .4rem 1rem .4rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: fit-content;
    align-self: flex-start;
}

.mobile-menu .lang-btn i {
    color: #000 !important;
    font-size: 1.2rem;
}


.carousel-container {
    width: 100%;
    margin-top: 120px;
}

.carousel {
    width: 100%;
    max-width: 1620px;
    height: 0;
    padding-bottom: 29.94%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin: 0 auto;
}

.carousel__activator {
    display: none;
}

.carousel__track {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform .5s ease;
    z-index: 1;
}

.carousel__slide {
    flex-basis: 100%;
    flex-shrink: 0;
    flex-grow: 1;
    height: 100%;
    position: relative;
}

.carousel__slide img {
    width: 100%;
    height: 100%;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.carousel__indicators {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    z-index: 99;
}

.carousel__indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 5px;
    border-radius: 50%;
    background: #FBC02D;
    opacity: .35;
    cursor: pointer;
    transition: opacity .3s;
}

.carousel__indicator:hover {
    opacity: .75;
}

#F:checked~.carousel__track {
    transform: translateX(0%);
}

#G:checked~.carousel__track {
    transform: translateX(-100%);
}

#H:checked~.carousel__track {
    transform: translateX(-200%);
}

#I:checked~.carousel__track {
    transform: translateX(-300%);
}

#F:checked~.carousel__indicators label[for="F"],
#G:checked~.carousel__indicators label[for="G"],
#H:checked~.carousel__indicators label[for="H"],
#I:checked~.carousel__indicators label[for="I"] {
    opacity: 1;
}


.title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    text-align: center;
    margin: 2.5rem 0 .5rem;
}

.underline {
    width: 240px;
    height: 3px;
    background: #f0a500;
    margin: 0 auto 2rem;
    border-radius: 5px;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(100, 100, 100, .1));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform .3s, box-shadow .3s;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, .1);
}

.service-card img {
    height: 40px;
    margin-bottom: 1rem;
}

.service-text {
    font-size: 1rem;
}

.brands-section {
    margin: 3rem 0;
}

.brands-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(100, 100, 100, .1));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.brands-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.underline-brands-bar {
    width: 80px;
    height: 3px;
    background: #f0a500;
    border-radius: 5px;
    margin-top: .25rem;
}

.brands-arrow {
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: transform .3s;
}

.brands-arrow:hover {
    transform: translateX(4px);
}

.brands-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    overflow: visible;
}

.carousel-track-container {
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform .5s ease;
    align-items: center;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 1.5rem;
    padding: 0 1rem;
    overflow: visible;
}

.brand-card {
    flex: 0 0 calc((100% - 5*1.5rem)/6);
    max-width: calc((100% - 5*1.5rem)/6);
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(100, 100, 100, .1));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 10px;
    transition: transform .3s, box-shadow .3s;
}

.brand-card img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: brightness(.95);
    transition: transform .3s;
}

.carousel-dots {
    text-align: center;
    margin-top: 1rem;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background: rgba(255, 255, 255, .3);
    border-radius: 50%;
    cursor: pointer;
    transition: background .3s;
}

.carousel-dot.active {
    background: #fbc02d;
}

.description-card {
    max-width: 1200px;
    margin: 2rem auto 12rem auto;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(100, 100, 100, .1));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
}


.product-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(100, 100, 100, .1));
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    padding: 2rem 1rem;
    overflow: visible;
    margin: 5.5rem auto 3rem;
    max-width: 1200px;
}

.product-content {
    z-index: 2;
    width: 100%;
    text-align: left;
    padding-right: 2rem;
    padding-bottom: 2.5rem;
}

.product-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
}

.product-description {
    font-size: clamp(.95rem, 2.5vw, 1.05rem);
    line-height: 1.7;
}

.product-image {
    position: absolute;
    right: 0;
    bottom: -30px;
    width: 300px;
    max-width: 50%;
    z-index: 1;
    padding-left: 1rem;
}

.product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform .3s;
}

.product-image img:hover {
    transform: scale(1.05);
}

.product-card.reverse .product-content {
    padding-right: 0;
    padding-left: 2rem;
}

.product-card.reverse .product-image {
    left: 0;
    right: auto;
    padding-left: 0;
    padding-right: 1rem;
}

.footer {
    background: #FFAB19;
    color: #000;
    padding: 3rem 1.5rem;
    margin-top: 6rem;
    font-family: 'Inter', sans-serif;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1.2fr 1fr .6fr;
    gap: 2rem;
    align-items: start;
}

.footer-logo-desc {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.footer-logo img {
    height: 48px;
    width: auto;
}

.footer-logo h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.footer-logo-desc p {
    font-size: .95rem;
    line-height: 1.6;
    color: #333;
    max-width: 380px;
}

.footer-contact h4,
.footer-services h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

.footer-contact ul,
.footer-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    font-size: .95rem;
}

.footer-contact ul li,
.footer-services ul li {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #000;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #FFAB19;
    color: #3a3014;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all .3s;
}

.social-icon:hover {
    background: #fbc02d;
    transform: translateY(-3px);
}


@media (min-width:481px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width:769px) {
    .desktop-nav {
        display: flex;
    }

    .desktop-lang {
        display: flex;
    }

    .menu-toggle,
    .mobile-menu {
        display: none !important;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    .product-card {
        flex-direction: row;
        align-items: stretch;
        height: auto;
        min-height: 380px;
        padding: 2.5rem 3.75rem;
        margin: 5.5rem auto;
    }

    .product-content {
        max-width: 50%;
        text-align: left;
        padding-right: 3rem;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .product-image {
        right: 0;
        bottom: -50px;
        width: 600px;
        max-width: 50%;
        padding-left: 2rem;
    }

    .product-card.reverse {
        flex-direction: row-reverse;
    }

    .product-card.reverse .product-content {
        margin-left: auto;
        margin-right: 3.75rem;
        padding-left: 3rem;
        padding-right: 0;
    }

    .product-card.reverse .product-image {
        left: 0;
        right: auto;
        bottom: -50px;
        padding-right: 2rem;
        padding-left: 0;
    }
}


@media (max-width:768px) {

    .desktop-nav,
    .desktop-lang {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .mobile-menu {
        display: flex;
    }


    .product-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        margin: 5.5rem auto 3rem;
    }

    .product-content {
        width: 100%;
        padding: 0 0 2rem 0;
        text-align: left;
        /* Default (English) */
    }

    .product-image {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
    }

    .product-image img {
        width: 100%;
        height: auto;
    }

    .product-card.reverse .product-content {
        padding-left: 0;
        padding-right: 0;
    }

    .product-card.reverse .product-image {
        left: auto;
        right: auto;
    }


    html[dir="rtl"] .product-content {
        text-align: right;
    }

    .carousel-slide {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
        gap: 1rem;
        justify-items: center;
        align-items: center;
        padding: 0 1rem;
    }

    .brand-card {
        flex: unset;
        width: 100%;
        max-width: 140px;
        height: 120px;
    }
}

@media (max-width:992px) {
    .carousel-slide {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width:768px) {
    .carousel-slide {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
}

@media (max-width:480px) {
    .knitr-slide {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-card {
        max-width: 120px;
    }
}

@media (max-width:1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-social {
        grid-column: 1/-1;
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width:768px) {
    .footer {
        padding: 2.5rem 1rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-logo-desc p {
        max-width: 100%;
    }

    .footer-contact ul,
    .footer-services ul {
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}


html[lang="fa"] {
    font-family: 'Yekan Bakh', sans-serif;
}

html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .navbar {
    flex-direction: row-reverse;
    justify-content: space-between;
}

html[dir="rtl"] .logo {
    order: 2;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: .5rem;
}

html[dir="rtl"] .logo img {
    order: 2;
}

html[dir="rtl"] .logo h1 {
    order: 1;
}

html[dir="rtl"] .desktop-nav {
    order: 1;
    flex: 1;
    justify-content: center;
}

html[dir="rtl"] .nav-links {
    flex-direction: row;
    gap: clamp(1.2rem, 3vw, 2.5rem);
}

html[dir="rtl"] .desktop-lang {
    order: 0;
}

html[dir="rtl"] .mobile-menu {
    align-items: flex-start;
}

html[dir="rtl"] .mobile-menu a,
html[dir="rtl"] .mobile-menu .lang-btn {
    text-align: right;
}

html[dir="rtl"] .mobile-menu .lang-btn {
    align-self: flex-start;
}

html[dir="rtl"] .menu-toggle i {
    transform: scaleX(-1);
}

html[dir="rtl"] .product-card {
    text-align: right;
}

html[dir="rtl"] .product-content {
    text-align: right;
    padding-right: 0;
    padding-left: 2rem;
}

html[dir="rtl"] .product-image {
    right: auto;
    left: 0;
    padding-left: 0;
    padding-right: 1rem;
}

@media (min-width: 769px) {
    html[dir="rtl"] .product-content {
        padding-left: 3rem;
        padding-right: 0;
    }

    html[dir="rtl"] .product-image {
        padding-right: 2rem;
        padding-left: 0;
    }
}

html[dir="rtl"] .product-card.reverse {
    flex-direction: row-reverse;
}

html[dir="rtl"] .product-card.reverse .product-content {
    padding-right: 3rem;
    padding-left: 0;
}

html[dir="rtl"] .product-card.reverse .product-image {
    right: 0;
    left: auto;
    padding-right: 0;
    padding-left: 2rem;
}

@media (min-width: 769px) {
    html[dir="rtl"] .product-card.reverse .product-content {
        margin-left: 0;
        margin-right: auto;
        padding-right: 3rem;
        padding-left: 0;
    }

    html[dir="rtl"] .product-card.reverse .product-image {
        bottom: -50px;
        right: 0;
        left: auto;
        padding-right: 0;
        padding-left: 2rem;
    }
}

html[dir="rtl"] .brands-arrow img {
    transform: scaleX(-1);
}

@media (max-width: 768px) {

    html[dir="rtl"] .product-card,
    html[dir="rtl"] .product-card.reverse {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
        margin: 5.5rem auto 3rem;
    }

    html[dir="rtl"] .product-card .product-content {
        width: 100%;
        padding: 0 0 2rem 0;
        text-align: right;
    }

    html[dir="rtl"] .product-card .product-image {
        position: static;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 0;
    }

    html[dir="rtl"] .product-card.reverse .product-content {
        order: 2;
        padding: 2rem 0 0 0;
    }

    html[dir="rtl"] .product-card.reverse .product-image {
        order: 1;
        margin-bottom: 1rem;
    }

    html[dir="rtl"] .product-title,
    html[dir="rtl"] .product-description {
        text-align: right;
    }
}