:root {
    --primary-color: rgb(255, 221, 0);
    --secondary-color: #111;
    --whatsapp-color: #075e54;
    --text-color: #111;
    --light-gray: #fbfbfb;
    --gray: #666;
    --border-color: #ddd;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

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

body {
    font-family: Montserrat, sans-serif;
    line-height: 1.6;
    font-optical-sizing: auto;
    color: var(--text-color);
    background: var(--white);
    overflow-x: hidden;
}
div#floating_btns {
    position: fixed;
    z-index: 99999;
    right: 10px;
    bottom: 10px;
    display: flex;
    flex-direction: column;
}
/* RTL Support */
body.rtl {
  font-family: "Tajawal", sans-serif;
  font-weight: 400;
  font-style: normal;
  direction: rtl; /* Sets the text direction to right-to-left */
}

body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  font-weight: 800;
}

.rtl, .rtl input[type="tel" i] {
    direction: rtl;
}

.rtl .header__left {
    flex-direction: row-reverse;
}

/* .rtl .header__right {
    flex-direction: row-reverse;
} */

.rtl .catalog-dropdown {
    left: auto;
    right: -500px;
}

.rtl .catalog-dropdown.active {
    left: auto;
    right: 0;
}

.rtl .category-arrow {
    transform: rotate(180deg);
}

.rtl .category.active .category-arrow {
    transform: rotate(270deg);
}

.rtl .subcategory {
    padding: 0.5rem 2.5rem 0.5rem 0;
}

.rtl .search-bar form input {
    border-radius: 0 4px 4px 0;
}

.rtl .search-bar form button {
    border-radius: 4px 0 0 4px;
}

.rtl .contact-panel {
    right: auto;
    left: -400px;
}

.rtl .contact-panel.active {
    right: auto;
    left: 0;
}

.rtl .contact-panel__close {
    right: auto;
    left: 1rem;
}

.rtl .phone-group {
    flex-direction: row-reverse;
}

.rtl .carousel-btn--prev {
    left: auto;
    right: -25px;
}

.rtl .carousel-btn--next {
    right: auto;
    left: -25px;
}

.rtl .machine-details__header {
    flex-direction: row-reverse;
}

.rtl .selected-equipment {
    flex-direction: row-reverse;
}

.rtl .contact-item {
    flex-direction: row-reverse;
    text-align: right;
}

.rtl .process-step__number {
    left: auto;
    right: -65px;
}

.rtl .owner-equipment__image h2::after {
    right: auto;
    left: -60px;
    border-left: none;
    border-right: 20px solid white;
}

.rtl .underline::after {
    left: auto;
    right: 0;
}

.rtl .equipment-card {
    flex-direction: row-reverse;
}

.rtl .thumbnail {
    order: -1;
}

.rtl .gallery-thumbnails {
    flex-direction: row-reverse;
}

.rtl .machine-details__actions {
    justify-content: flex-end;
}

.rtl .cta__buttons {
    flex-direction: row-reverse;
}

.rtl i.fa.fa-arrow-right {
    transform: scaleX(-1);
}
/* .rtl .social-icons {
    flex-direction: row-reverse;
} */

.rtl .form-note {
    flex-direction: row-reverse;
}

.rtl .checkbox-item {
    flex-direction: row-reverse;
}

.rtl .spec-item {
    flex-direction: row-reverse;
}

.rtl .feature-item {
    flex-direction: row-reverse;
}

.rtl .application-item {
    text-align: center; /* Keep centered for RTL */
}

.rtl .advantage-card {
    text-align: center; /* Keep centered for RTL */
}

.rtl .advantage-minimal {
    text-align: center; /* Keep centered for RTL */
}

.rtl .advantage-minimal:after {
    right: auto;
    left: -19px;
    transform: rotateZ(-19deg);
}

.rtl .quantity-input {
    flex-direction: row-reverse;
}


/* Style for the container to position the dropdown */
.lang-switcher-container {
    position: relative;
}

#lang-btn img, #lang-btn-mobile img {
    width: 35px;
}
a#lang-btn {
    gap: 4px;
}

body:not(.rtl) a#lang-btn, body:not(.rtl) a#lang-btn-mobile {
    font-weight: bold;
}

body.rtl a#lang-btn {
    justify-content: end;
    gap: 8px;
}

/* Style for the dropdown menu */
.lang-dropdown {
    display: none; /* Initially hide the dropdown */
    position: absolute;
    top: 100%; /* Position below the button */
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000; /* Ensure it's on top of other elements */
    min-width: 120px;
    border-radius: 5px;
    padding: 5px 0;
    margin-top: 5px;
}

/* Show the dropdown when the parent container has an 'open' class */
.lang-switcher-container.open .lang-dropdown {
    display: block;
}

/* Style for each language option link */
.lang-option {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: #e0e0e0; /* Highlight the currently active language */
    font-weight: bold;
}

.flag-icon {
    margin-right: 8px;
    font-size: 1.2em;
}

.lang-switcher-container .icon-btn i {
    font-size: 1.2rem; /* Ensure the globe icon is visible */
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.mobile-header {display: none;}
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary-color);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 0;
    height: 75px;
}

.header__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.header__left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--secondary-color);
    text-decoration: none;
}

.catalog-menu {
    position: relative;
}

.catalog-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--secondary-color);
    height: 75px;
    text-transform: uppercase;
    font-weight: 400;
}

.catalog-btn i.fas, .icon-btn i.fas, .icon-btn i.fab, .icon-btn .fa-regular {
    font-size: 1.3rem;
}

.catalog-btn:hover, .icon-btn:hover {
    background: #ffe74d;
}

.catalog-dropdown {
    display: block;
    left: -500px;
    position: fixed;
    background: var(--white);
    box-shadow: var(--shadow);
    min-width: 280px;
    z-index: 1000;
    min-height: 100vh;
    transition: right 0.3s ease-in-out, left 0.3s ease-in-out;
    overflow-y: auto;
    top: 75px;
}

.catalog-dropdown.active {
    left: 0;
}

.category {
    margin-bottom: 1px;
    cursor: pointer;
    border-bottom: 1px solid #E2E2E2;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    transition: background-color 0.3s;
}

.category-header:hover {
    background-color: var(--light-gray);
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-title {
    flex: 1;
    font-weight: 500;
}

.category-arrow {
    width: 12px;
    height: 12px;
    transition: transform 0.3s;
}

.category.active .category-arrow {
    transform: rotate(90deg);
}

.subcategory {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0 0.5rem 2.5rem;
}

.category.active .subcategory {
    display: flex;
}

.subcategory a {
    color: var(--gray);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0;
}

.subcategory a:hover {
    color: var(--secondary-color);
}

.subcategory-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.search-bar {
    width:100%;
    max-width: 400px;
}
.search-bar form {
    display: flex;
    align-items: center;
    max-width: 500px;
    width: 100%;
    height: 45px;
    margin: 0 auto;
}

.search-bar form input {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    height: 45px;
}

.search-bar form button {
    padding: 0.5rem 1rem;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    height: 45px;
}

.header__right {
    display: flex;
}

.icon-btn {
    color: var(--secondary-color);
    font-size: 0.9rem;
    padding: 0.5rem;
    transition: color 0.3s;
    cursor: pointer;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    text-decoration: none;
    text-transform: uppercase;
}

/* Contact Panel */
.contact-panel {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 2000;
    padding: 2rem;
    transition: right 0.3s ease-in-out, left 0.3s ease-in-out;
    overflow-y: auto;
}

.rtl .contact-panel {
    left: -400px;
}

.contact-panel.active {
    right: 0;
}

.contact-panel__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
}

.contact-panel__content {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.contact-panel__email {
    font-size: 1.2rem;
    color: var(--secondary-color);
    font-weight: normal;
    margin-bottom: 1rem;
    margin-top: 1rem;
    display: block;
}

.contact-panel__divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--primary-color);
}

.contact-panel__divider::before,
.contact-panel__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--primary-color);
}

.contact-panel__divider span {
    padding: 0 10px;
    background: rgba(245, 245, 245, 0.95);
    color: var(--secondary-color);
}

.contact-panel__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}
.phone-group {
    display: flex;
    gap: 1rem;
}
.phone-group>:first-child {
    max-width: 145px;
}

.phone-group>:nth-child(2) {
    flex: auto;
}




.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Categories Carousel */
.categories-carousel {
    padding: 1rem 0;
}

.categories-carousel h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

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

.carousel-track {
    display: flex;
    transition: transform 0.3s ease;
    gap: 2rem;
    justify-content: center;
}

.glide {
    max-width: 700px;
    margin: 0 auto;
}

.glide__slide {
    background: var(--white);
    overflow: hidden;
    text-align: center;
}

.glide__slide img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

.glide__slide a {
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    color: black;
    font-weight: normal;
}
.glide__slide a:visited {
    color: black;
}


.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--secondary-color);
    z-index: 10;
    transition: background-color 0.3s;
}

.carousel-btn:hover {
    background: #e6c400;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn--prev {
    left: -25px;
}

.carousel-btn--next {
    right: -25px;
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 75px;
    padding: 2rem 0 0;
}

.hero__content {
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 1.7rem;
    line-height: 1.3;
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

/* Advantages Section */
.advantages {
    padding: 4rem 0;
}

.advantages h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: white;
    padding: 2rem 1rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #0000000a;
}

.advantage-card:hover {
    transform: translateY(-5px);
}

.advantage-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage-card h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
    font-size: 0.9rem;
}
.advantage-card p {
    font-size: 0.85rem;
}

/* Minimalistic Advantages Section */
.advantages-minimal {
    background: var(--white);
    border-top: 6px solid var(--secondary-color);
    padding: 0;
}

.advantages-minimal__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.advantage-minimal {
    text-align: center;
    padding: 1rem;
    position: relative;
}

.advantage-minimal:after {
    content: "";
    display: block;
    position: absolute;
    width: 6px;
    height: 110%;
    background: var(--secondary-color);
    top: -6px;
    right: -19px;
    transform: rotateZ(19deg);
}

.advantage-minimal i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.advantage-minimal h4 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 600;
}
.advantages-minimal__content {
    display: grid;
    grid-template-columns: 1fr 3fr;
}

.advantages-minimal__brandquote {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.advantages-minimal__brandquote p {
    text-transform: uppercase;
}
/* Categories Grid */


/* Categories Grid */
.categories {
    padding:  4rem 0;
    background: var(--light-gray);
}

.categories__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    height: 600px;
}

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}
.categories__grid.services_flex {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: unset !important;
}

.categories__grid:not(.services_flex) .category-card:first-child {
    grid-column: 1;
    grid-row: 1 / span 2;
}

.categories__grid:not(.services_flex) .category-card:nth-child(2) {
    grid-column: 2 / span 2;
    grid-row: 1;
}
.services_flex {
    margin-top: 2rem;
    height: 300px;
}
.services_flex .category-card {
    height: 288px;
}
.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
}

.category-card__content>div {
    text-shadow: 0px 1px 5px black;
}

.category-card__content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.category-card__content p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.category-card__content .btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
}

/**/
/* Breadcrumb */
.breadcrumb {
    background: var(--light-gray);
    padding: 1rem 0;
    margin-top: 75px;
}

.breadcrumb__nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb__nav a {
    color: var(--secondary-color);
    text-decoration: none;
}

.breadcrumb__nav a:hover {
    text-decoration: underline;
}

.breadcrumb__separator {
    color: var(--gray);
}

.breadcrumb__current {
    color: var(--gray);
}

/* Page Header */
.page-header {
    background: var(--white);
    padding: 3rem 0;
    text-align: center;
}

.page-header__content h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-header__content p {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Equipment Listing */
.equipment-listing {
    padding: 4rem 0;
    background: var(--white);
}

.equipment-listing__results {
    margin-bottom: 2rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.equipment-listing__grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.equipment-card {
    display: flex;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.equipment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.equipment-card__image {
    flex: 0 0 300px;
    height: 250px;
    overflow: hidden;
}

.equipment-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.equipment-card__content {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.equipment-card__content h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.equipment-card__specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    flex: 1;
}

.spec-group h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.spec-group ul {
    list-style: none;
}

.spec-group li {
    padding: 0.25rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.spec-group li strong {
    color: var(--secondary-color);
}

.equipment-card .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination__btn {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s;
}

.pagination__btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pagination__btn--active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--secondary-color);
}


/* Machine Details */
.machine-details {
    padding: 3rem 0;
    background: var(--white);
}

.machine-details__header {
    display: flex;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: flex-start;
}

.machine-details__gallery {
    flex: 0 0 500px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.machine-details__info {
    flex: 1;
    padding: 1rem 0;
}

.machine-details__info h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.machine-details__description {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.machine-details__availability {
    margin-bottom: 2rem;
}

.availability-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
}

.availability-status.available {
    background: #d4edda;
    color: #155724;
}

.availability-status.unavailable {
    background: #f8d7da;
    color: #721c24;
}

.machine-details__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn--large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.machine-details__content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.machine-details__specs h2,
.machine-details__applications h2,
.machine-details__features h2 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.spec-category {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 8px;
}

.spec-category h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.spec-category ul {
    list-style: none;
}

.spec-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ddd;
    color: var(--gray);
}

.spec-category li:last-child {
    border-bottom: none;
}

.spec-category li strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.applications-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.application-item {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s;
}

.application-item:hover {
    transform: translateY(-5px);
}

.application-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.application-item h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-gray);
    border-radius: 8px;
}

.feature-item i {
    color: #28a745;
    font-size: 1.2rem;
}

/* Quote Form Section */
.quote-form-section {
    padding: 4rem 0;
    background: var(--light-gray);
}

.quote-form__header {
    text-align: center;
    margin-bottom: 3rem;
}

.quote-form__header h2 {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.quote-form__header p {
    font-size: 1.1rem;
    color: var(--gray);
}

.quote-form {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.quote-form__equipment {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--light-gray);
}

.quote-form__equipment h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.selected-equipment {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
}

.selected-equipment img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}

.equipment-info h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.equipment-info p {
    color: var(--gray);
    font-size: 0.9rem;
}

.quote-form__fields {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
}
.alert {
    background: lightgrey;
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
    border: 1px solid lightgrey;
    border-radius: 6px;
    padding: 3rem 2rem;
}
.alert.alert-success {
    background:#cfffcf;
    color:green;
}
.alert.alert-danger {
    background:#ffc6c6;
    color:red;
}
.error-field {
    color: red;
    padding: 1rem;
}

.error-field ul {
    padding-left: 4px;
}
.field-has-error {
    border-color: red !important;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}
.phone-group select {
    border-width: 1px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield; /* Ajouté pour une compatibilité future */
}
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.75rem;
    border-radius: 6px;
    transition: background-color 0.3s;
}

.checkbox-item:hover {
    background-color: var(--light-gray);
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-item input[type="checkbox"]:checked + .checkmark {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-item input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--secondary-color);
    font-weight: bold;
}

.quote-form__actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--light-gray);
}

.form-note {
    margin-top: 1rem;
    color: var(--gray);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

a:visited {
    color:none;
}
.footer__copyrights a {
    color: var(--primary-color);
}
.footer__copyrights {
    text-align: center;
    margin-top: 1rem;
}
/* Subcategories Section */
.subcategories {
    padding: 4rem 0;
}

.subcategories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(350px, 1fr));
    gap: 2rem;
}

.subcategories__grid>:only-child {
    grid-column: 2 / 3;
}

.subcategory-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #11111112;
}

.subcategory-card:hover {
    transform: translateY(-5px);
}

.subcategory-card__image {
    height: 250px;
    overflow: hidden;
}

.subcategory-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.subcategory-card__content {
    padding: 1.5rem;
    background-color: var(--light-gray);
}

.subcategory-card__content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.subcategory-card__content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.subcategory-card__specs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
    background: var(--light-gray);
    padding: 0.5rem;
    border-radius: 4px;
}

.spec-item i {
    color: var(--primary-color);
}
/**/
/* Process Section */
.process {
    padding: 4rem 0;
    background: var(--light-gray);
}

.process h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

.process__steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2rem;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1;
    overflow: hidden;
}

.process-step__number {
    width: 250px;
    height: 250px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin: 0 auto 1rem;
    position: absolute;
    font-size: 9rem;
    top: -63px;
    left: -65px;
    opacity: 0.3;
    z-index: -1;
}

.process-step i {
    font-size: 3.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    background-position: center 50%;
    background-size: cover;
    color: var(--secondary-color);
}

.cta__content {
    text-align: center;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quantity-input {
    display: flex;
    gap:1rem;
}

.quantity-input .quantity-btn {
    padding: 0 1rem;
    font-size: 1.5rem;
    background: var(--primary-color);
    min-width: 50px;
    border: 1px solid #111;
    border-radius: 5px;
    cursor: pointer;
}
.quantity-input .quantity-btn:hover {
    background: rgb(255 221 0 / 70%);
}

.owner-equipment__content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  min-height: 400px;
}
.section-title {
    margin-bottom: 3rem;
}

.section-title h2 {
    font-weight: normal;
    max-width: 80%;
    margin: 0 auto;
    text-align: center  ;
}

/* Loader */
.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #FFF #FFF transparent transparent;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent var(--primary-color) var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  box-sizing: border-box;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}
.loader::before {
  width: 32px;
  height: 32px;
  border-color: var(--secondary-color) var(--secondary-color) transparent transparent;
  animation: rotation 1.5s linear infinite;
}
    
@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
} 
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
    
/* First Column - Image with Overlay */
.owner-equipment__image {
    background-color: var(--light-gray);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: start;
  padding: 2rem;
  overflow: hidden;
}

.owner-equipment__image h2 {
  position: relative;
  z-index: 2;
  color: var(--secondary-color);
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  margin: 0;
}
.owner-equipment__image:after {
    content: "?";
    display: block;
    position: absolute;
    font-size: 20rem;
    font-weight:bold;
    line-height:1;
    opacity:0.5;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
    color:var(--primary-color);
}


/* .owner-equipment__image h2::after {
  content: '';
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
} */

/* Second Column - Contacts */
.owner-equipment__contacts {
  background-color: #1a1a1a;
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.owner-equipment__contacts h4 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 5rem 0;
  color: #ffffff;
}

.contact-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.contact-item:hover {
  padding-left: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-item i {
  font-size: 1.2rem;
  color: #ffd700;
  width: 24px;
  text-align: center;
}

.contact-item span {
  font-size: 1.1rem;
  font-weight: 500;
  color: #ffffff;
}

/* Third Column - Form */
.owner-equipment__form-section {
  background-color: #ffd700;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 1.5rem;
}

.owner-equipment__form-section h4 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  line-height: 1.3;
}

.owner-equipment__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.owner-equipment__form input {
  padding: 1rem;
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1rem;
  background-color: white;
  color: #1a1a1a;
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
}

.owner-equipment__form input:focus {
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.1);
}

.owner-equipment__form input::placeholder {
  color: #666;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn--secondary {
  background-color: #1a1a1a;
  color: white;
}

.btn--secondary:hover {
  background-color: #2a2a2a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}
.upper {
    text-transform: uppercase;
}
/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer__brand h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.footer__brand p {
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
}

.footer h3 {
    margin-bottom: 1.5rem;
}

.footer__categories ul {
    list-style: none;
}

.footer__categories a {
    color: var(--white);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer__categories a:hover {
    color: var(--primary-color);
}

.footer__contact .contact-info {
    margin-bottom: 2rem;
}
.footer__brand h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: normal;
}
.footer__contact .contact-item {
    margin-bottom: 1rem;
}

.social-icons {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 2rem;
    transition: transform 0.3s;
}

.social-icons a:hover {
    transform: translateY(-5px);
}


.underline {
    position: relative;
    padding-bottom: 1rem;
}
.underline::after {
    content: "";
    bottom: 0;
    left: 0;
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);

}

.underline_black::after {
    background-color: var(--secondary-color);
}
/* City Dropdown */
.city-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.city-option {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--light-gray);
    transition: background-color 0.3s;
}

.city-option:hover {
    background-color: var(--light-gray);
}

.city-option:last-child {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn--primary:hover {
    background: #e6c400;
}

.btn--secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn--secondary:hover {
    background: #333;
}

.btn--whatsapp {
    background: var(--whatsapp-color);
    color: var(--white);
}
.rtl .lang-dropdown {
    left: 0;
    right: unset;
}
/* Responsive Design */
@media (max-width: 1024px) {
    .header__content {
        flex-wrap: wrap;
        height: auto;
        min-height: 75px;
        padding: 0 0 0.5rem 0;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        margin-top: 1rem;
        max-width: none;
    }
    
    .contact-panel {
        width: 100%;
        right: -100%;
    }
    
    .rtl .contact-panel {
        left: -100%;
        right: auto;
    }
    
    .machine-details__header, .selected-equipment {
        flex-direction: column;
        gap: 2rem;
    }
    .phone-group {
        flex-direction: column;
    }

    .machine-details__gallery {
        flex: none;
        max-width: 100%;
    }

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

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

    .features-list {
        grid-template-columns: 1fr;
    }
    .equipment-card, .rtl .equipment-card {
        flex-direction: column;
    }

    .equipment-card__image {
        flex: none;
        height: 200px;
    }

    .equipment-card__specs {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .machine-details__header {
        flex-direction: column;
        gap: 2rem;
    }
    .equipment-card .btn {
        width: 100%;
        text-align: center;
    }

    .machine-details__gallery {
        flex: none;
        max-width: 100%;
    }

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

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

    .features-list {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap:0.75rem;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .advantages__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-minimal__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .owner-equipment__content {
        flex-direction: column;
        text-align: center;
    }

    .owner-equipment__image {
        flex: none;
        max-width: 100%;
    }

    .owner-equipment__info {
        grid-template-columns: 1fr;
    }

    .footer__content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .catalog-dropdown{top:128px;}
    .mobile-header a.logo {
        font-size: 0.85rem;
    }

    .mobile-header button.catalog-btn, .mobile-header a.icon-btn {
        font-size: 8px;
        padding: 0.5rem;
    }
}



@media (max-width: 768px) {
    .breadcrumb {
        margin-top: 128px;
    }
    .subcategories__grid  {
        grid-template-columns: 1fr;
    }
    .subcategories__grid>:only-child {
        grid-column: unset;
    }
    .advantages {
        display:none;
    }
    .glide__slide img {
        max-width: 80px;
    }
    .section-title h2 {
        max-width: unset;
    }
    .owner-equipment__content {
        display:block;
    }
    .header {
        height: auto;
    }
    
    .header__content {
        flex-direction: column;
        align-items: stretch;
        gap: 0rem;
    }
    
    .header__left {
        display: none;
    }
    
    .header__right {
       display: none;
    }
    
    .search-bar {
        order: 0;
        margin-top: 0;
    }

    .hero {
        margin-top: 120px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .advantages__grid,
    .process__steps {
        grid-template-columns: 1fr;
    }

    .advantages-minimal__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .categories__grid, .categories__grid.services_flex {
        grid-template-columns: 1fr;
        display: block;
        height: unset;
    }
    

    .category-card, .services_flex .category-card {
        height: 200px;
        margin-bottom: 15px;
        /* padding: 0.5rem; */
    }
    .category-card__content {
        padding: 1rem;
        background: linear-gradient(rgba(0, 0, 0, 0.7), transparent);
        text-align: right;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        height: 100%;
    }
    
    .rtl .category-card__content {
        text-align: left;
        align-items: flex-end;
    }

    .category-card__content h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        text-align: left;
    }
    
    .rtl .category-card__content h3 {
        text-align: right;
    }

    .category-card__content p {
        text-align: left;
        margin-bottom: .5rem;
        font-size: .9rem;
    }
    
    .rtl .category-card__content p {
        text-align: right;
    }

    .category-card__content .btn {
        font-size: 0.75rem;
        font-weight: bold;
        padding: 0.75rem;
        align-self: flex-end;
    }
    
    .rtl .category-card__content .btn {
        align-self: flex-start;
    }
    
    .categories__grid:not(.services_flex) .category-card:first-child img {
        object-position: top;
    }

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

    .carousel-btn--next {
        right: 10px;
    }
    
    .rtl .carousel-btn--prev {
        left: auto;
        right: 10px;
    }

    .rtl .carousel-btn--next {
        right: auto;
        left: 10px;
    }

    .cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta__buttons .btn {
        min-width: 280px;
        font-size: 0.9rem;
        font-weight: normal;
    }

    .owner-equipment__form {
        flex-direction: column;
    }

    .owner-equipment__form input {
        min-width: auto;
    }
    .advantage-minimal::after {
        transform: unset;
        top: 0;
        left: 0;
        right: unset;
        width: 100%;
        height: 6px;
    }
    
    .rtl .advantage-minimal::after {
        left: unset;
        right: 0;
    }
    .rtl .advantage-minimal:after {
        transform: rotateZ(0deg);
    }

    .advantages-minimal__brandquote {
        padding: 2rem;
    }

    .advantage-minimal {
        padding: 2rem 0;
    }
    .advantages-minimal__grid {
        gap:0;
    }
    .advantages-minimal__content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .advantages-minimal__grid {
        grid-template-columns: 1fr;
    }

    .hero h1,h2 {
        font-size: 1.15rem;
    }
    .hero p {
        font-size: 1rem;
    }
}