﻿/*
 * =============================================================================
 * WOOD SHOP — Responsive (media.css)
 * =============================================================================
 * Direction-safe: prefer logical properties so dir="rtl" and dir="ltr" both work.
 * Breakpoints align with Bootstrap 5.
 * =============================================================================
 */

/* ---------- min-width: 768px ---------- */
@media (min-width: 768px) {
  body{
text-align: justify;
  }
  .featured-next {
    inset-inline-end: -18px;
  }
}

/* ---------- min-width: 1200px ---------- */
@media (min-width: 1200px) {
  .featured-slider-wrap {
    padding-inline: 1rem;
  }

  .featured-next {
    inset-inline-end: -6px;
  }
}

/* ---------- max-width: 1199.98px ---------- */
@media (max-width: 1199.98px) {
  .header-search {
    width: 160px;
  }

  .navbar .desktop-nav .nav-link {
    padding: 8px 10px !important;
    font-size: 0.88rem;
  }

  .btn-lang-nav {
    padding: 9px 16px !important;
  }

  .category-card-media {
    height: 200px;
  }

  .featured-product-img {
    height: 380px;
  }
}

/* ---------- max-width: 991.98px (tablet / mobile nav) ---------- */
@media (max-width: 991.98px) {
  .navbar .desktop-nav,
  .navbar .desktop-nav .dropdown-menu {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .header .navbar {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  }

  .header.fixed .navbar {
    background: rgba(59, 42, 24, 0.97) !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  }


  .header-col-start,
  .header-col-end {
    flex: 0 0 auto;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-self: auto;
  }

  .header-col-start {
    justify-content: flex-start;
    order: 1;
  }

  .header-logo {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    order: 2;
  }

  .header-col-end {
    justify-content: flex-end;
    order: 3;
  }

  .header-logo img,
  .header.fixed .header-logo img {
    width: 110px;
    max-width: 38vw;
    filter: none !important;
    background: transparent !important;
    border-radius: 0;
    padding: 0;
  }

  .navbar-toggler {
    width: 44px;
    height: 44px;
    padding: 0;
    line-height: 1;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14) !important;
    border-radius: 10px;
    color: #fff !important;
  }

  .navbar-toggler i,
  .fixed-top .navbar-toggler i,
  .header.fixed .navbar-toggler i {
    font-size: 1.35rem !important;
    color: #fff !important;
    line-height: 1;
  }

  .btn-lang-nav {
    padding: 8px 14px !important;
    font-size: 12px !important;
    min-width: 44px;
  }

  .offcanvas {
    max-width: min(100%, 360px);
  }

  .hero .swiper,
  .hero .swiper .swiper-slide {
    height: 85vh;
    min-height: 520px;
  }

  .hero .hero-content {
    padding-top: 100px;
    align-items: flex-end;
    padding-bottom: 3rem;
  }

  .hero .hero-pagination {
    inset-inline-end: 20px !important;
    inset-inline-start: auto !important;
  }

  .featured-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .categories-nav-btn {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .categories-prev {
    inset-inline-start: 4px;
  }

  .categories-next {
    inset-inline-end: 4px;
  }

  .featured-prev {
    inset-inline-start: 4px;
  }

  .featured-next {
    inset-inline-end: 4px;
  }

  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-header__watermark {
    font-size: clamp(2.5rem, 16vw, 4.5rem);
  }

  .section-header__lead {
    font-size: 0.92rem;
  }

  .featured-product-img {
    height: 340px;
  }


  .about-content::before {
    display: none;
  }

  .about-image-wrap {
    border-radius: var(--radius-lg);
  }

  .about-image {
    height: 280px;
  }

  .cta-banner {
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .cta-banner .text-lg-end {
    text-align: center !important;
  }

  .partnersSwiper .swiper-slide {
    border-inline-end: none;
  }

  .ws-nav-btn {
    width: 42px;
    height: 42px;
  }

  .scroll-top-btn {
    bottom: 24px;
    inset-inline-end: 1rem;
    width: 44px;
    height: 44px;
  }

  .social-icon {
    margin-inline-end: 12px;
    margin-bottom: 44px;
  }
}

/* ---------- max-width: 767.98px ---------- */
@media (max-width: 767.98px) {
  .header-logo img,
  .header.fixed .header-logo img {
    width: 98px;
  }

  .hero .hero-actions {
    gap: 8px;
  }

  .hero .hero-actions .theme-btn {
    justify-content: center;
  }

  .section-header__title {
    font-size: clamp(1.45rem, 6vw, 2rem);
  }

  .application-img {
    width: 300px !important;
  }

  .social-icon {
    margin-inline-end: 10px;
    margin-bottom: 40px;
  }

  .social-icon a {
    width: 44px;
    height: 44px;
    font-size: 20px;
    padding: 0.55rem;
    margin: 0.3rem;
  }

  .footer-hotline {
    flex-direction: column;

    margin-bottom: 2rem;
    gap: 0.85rem;
    padding-inline: 1rem;
  }

  .footer-hotline__phones {
    gap: 0.5rem;
    justify-content: center;
  }

  .footer-hotline__phones a {
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
  }

  .footer-heading:not(.footer-heading--spacer) {
    /* text-align: center; */
  }

  .footer-heading:not(.footer-heading--spacer)::after {
    inset-inline-start: 0;
    /* transform: translate(-50%, 0); */
  }

  .footer-desc {
    /* text-align: center; */
    /* margin-inline: auto; */
  }

  .footer-brand {
    display: flex !important;
    /* justify-content: center; */
    width: 100%;
  }

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

  .footer-branch__addr,
  .footer-branch__name {
    justify-content: flex-start;
  }

  .col-md-6 .footer-branch {
 
  }

  .footer-bottom {
    /* border-radius: 0; */
    padding-inline: 1rem;
  }

  .featured-product-img {
    height: 400px;
  }

  .featured-product-name {
    padding: 20px 14px;
    font-size: 0.95rem;
  }

  .why-card {
    padding: 1.5rem 1rem;
  }

  .category-card-body {
    padding: 14px 16px 56px;
  }
}

/* ---------- max-width: 575.98px ---------- */
@media (max-width: 575.98px) {
  .header-logo img,
  .header.fixed .header-logo img {
    width: 250px;

  }

  .hero-mobile .swiper .swiper-slide {
    height: 62vh;
    min-height: 400px;
  }

  .hero-mobile .hero-content {
    padding-top: 76px;
    padding-bottom: 2.5rem;
  }

  .hero-mobile .hero-content h1 {
    font-size: 1.45rem;
  }

  .hero-mobile .hero-content .lead {
    font-size: 0.86rem;
  }

  .hero .hero-content h1 {
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .category-card-media {
    height: 220px;
  }

  .category-card-body {
    padding-inline: 14px;
    padding-block: 14px 56px;
  }

  .category-card-btn {
    width: 40px;
    height: 40px;
    inset-inline-end: 4px;
    bottom: 6px;
  }

  .about-image {
    height: 240px;
  }

  .about-image-wrap {
    border-radius: var(--radius-md);
  }

  .cta-title {
    font-size: 1.35rem;
  }

  .cta-desc {
    font-size: 0.92rem;
  }

  .partnersSwiper {
    padding: 1rem 0;
  }

  .partnersSwiper .swiper-slide {
    height: 72px;
  }

  .partner-logo {
    max-width: 110px;
    max-height: 52px;
  }

  .ws-slider-footer {
    flex-wrap: wrap;
    justify-content: center;
  }

  .scroll-top-btn {
    bottom: 18px;
    inset-inline-end: 0.75rem;
    width: 42px;
    height: 42px;
    font-size: 1.25rem;
  }

  .social-icon {
    margin-inline-end: 8px;
    margin-bottom: 36px;
  }

  .social-icon a {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ---------- LTR icon / chevron mirror (English) ---------- */
[dir="ltr"] .featured-prev i,
[dir="ltr"] .featured-next i,
[dir="ltr"] .applications-prev i,
[dir="ltr"] .applications-next i,
[dir="ltr"] .ws-nav-btn i {
  display: inline-block;
  transform: scaleX(-1);
}

/* ---------- Inner pages ---------- */
@media (max-width: 767.98px) {
  .page-hero {
    min-height: 220px;
    height: 32vh;
    padding-bottom: 24px;
    .page-title {
      font-size: 1.5rem;
    }
  }

  .product-detail-main-img {
    height: 280px;
  }

  .ws-product-card {
    .ws-product-card__media {
      height: 190px;
    }
  }
}

@media (max-width: 767.98px) {
  .ws-gallery-item {
    height: 280px;
  }
}

@media (max-width: 991.98px) {
  .branch-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    padding-inline-start: 0;
  }

  .branch-rail::before {
    display: none;
  }

  .contact-map-card .contact-map-card__media {
    height: 480px !important;
    /* min-height: 320px; */
  }
}

@media (max-width: 575.98px) {
  .branch-rail {
    grid-template-columns: 1fr;
  }

  .contact-map-card .contact-map-card__media {
    height: 340px;
    min-height: 280px;
  }

  .contact-form {
    padding: 1.15rem 1rem 1.35rem;
  }
}

@media (max-width: 991.98px) {
  .contact-compose {
    border-radius: 22px;
  }

  .contact-visual .contact-visual__img {
    min-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .contact-form--modern {
    padding: 1.25rem 1.1rem 1.5rem;
  }

  .contact-visual .contact-visual__img {
    min-height: 320px;
  }

  .contact-visual .contact-visual__content {
    padding: 1.4rem 1.15rem 1.5rem;
  }
}
