/* =========================
SEARCH BAR
========================= */

.search-box {
flex: 1;
max-width: 550px;
position: relative;
}

.search-box input {
border-radius: 30px;
outline: none;
text-align: center;
}

.search-box i {
position: absolute;
inset-inline-start: 18px;
top: 50%;
transform: translateY(-50%);
color: #777;
font-size: 15px;
}

.search-box i.fa-times {
inset-inline-start: auto;
inset-inline-end: 18px;
}

/* =========================
RIGHT MENU
========================= */

.header-right {
display: flex;
align-items: center;
gap: 25px;
}
/* 
.menu-item {
display: flex;
align-items: center;
gap: 6px;
color: #333;
font-size: 15px;
cursor: pointer;
position: relative;
border: 1px solid #ddd;
padding: 2px 10px;
border-radius: 10px;
}

.menu-item:hover {
border-color: #5aa3ef;
}

.menu-item i {
font-size: 18px;
} */

/* =========================
BADGE
========================= */

.badge {
position: absolute;
top: -8px;
inset-inline-end: -10px;
background: red;
color: #fff;
font-size: 10px;
width: 16px;
height: 16px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
}

.cart-badge {
background: #0066ff;
}

/* =========================
RESPONSIVE HEADER
========================= */

@media (max-width: 768px) {
.header {
flex-wrap: wrap;
gap: 15px;
padding: 0;
}

.search-box {
order: 3;
width: 100%;
max-width: 100%;
margin-block: 14px 20px;
}

.header-right {
gap: 15px;
}

.menu-item {
border: none;
}

.menu-item span {
display: none;
}
}

/* =========================
PROJECT SECTION
========================= */

.projects {
background-color: #ffffff;
color: #333;
display: flex;
justify-content: center;
align-items: center;
padding-inline: 10px;
}

.products-section {
width: 100%;
max-width: 100%;
margin-inline: auto;
}

.heading-container h2 {
font-size: 2rem;
color: #0f1e36;
font-weight: 700;
margin-bottom: 8px;
}

.heading-container p {
color: #475569;
font-size: 1rem;
}

.blue-line {
width: 40px;
height: 3px;
background-color: #2563eb;
margin: 15px auto 0;
border-radius: 2px;
}

/* =========================
SLIDER
========================= */

.slider-wrapper {
position: relative;
display: flex;
align-items: center;
padding-inline: 40px;
}

.slider-container {
width: 100%;
overflow: hidden;
}

.slider-track {
display: flex;
gap: 20px;
transition: transform 0.4s ease-in-out;
will-change: transform;
}

/* =========================
PRODUCT CARD
========================= */

.product-card {
flex: 0 0 calc(25% - 15px);
min-width: 25%;
display: flex;
flex-direction: column;
}

.image-container {
width: 100%;
aspect-ratio: 16 / 9;
border-radius: 12px;
overflow: hidden;
margin-bottom: 15px;
background-color: #f3f4f6;
}

.image-container img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}

.product-card h3 {
font-size: 1.1rem;
color: #0f1e36;
margin-bottom: 5px;
font-weight: 600;
}

.product-card p {
font-size: 0.9rem;
color: #475569;
}

/* =========================
NAVIGATION ARROWS
========================= */

.nav-btn {
position: absolute;
top: 35%;
transform: translateY(-50%);
background-color: #ffffff;
border: 1px solid #e5e7eb;
color: #333;
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
z-index: 10;
transition: all 0.2s ease;
}

.nav-btn:hover {
background-color: #2563eb;
color: #ffffff;
border-color: #2563eb;
}

.prev-btn {
inset-inline-start: 0;
}

.next-btn {
inset-inline-end: 0;
}

/* =========================
RESPONSIVE SLIDER
========================= */

@media (max-width: 1024px) {
.product-card {
flex: 0 0 calc(33.333% - 14px);
}
}

@media (max-width: 768px) {
.product-card {
flex: 0 0 calc(50% - 10px);
}

.slider-wrapper {
padding-inline: 30px;
}
}

@media (max-width: 480px) {
.product-card {
flex: 0 0 100%;
}

.slider-wrapper {
padding-inline: 20px;
}
}

/* =========================
SIDEBAR FILTER
========================= */

.tooglebody {
margin: 0;
padding: 0;
background-color: #f8f9fa;
}

.open-btn {
padding: 10px 20px;
font-size: 16px;
background-color: #004ecc;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
}

#filter-sidebar.sidebar {
position: fixed;
top: 0;
width: 340px;
height: 100vh;
background: #fbf8f4 !important;
border: 0 !important;
border-radius: 0 !important;
box-shadow: 0 18px 48px rgba(61, 52, 40, 0.14);
z-index: 1000;
display: flex;
flex-direction: column;
box-sizing: border-box;
padding: 0;
}

#filter-sidebar .sidebar-header {
display: flex;
justify-content: space-between;
align-items: center;
gap: 12px;
padding: 20px 20px 16px;
border-bottom: 1px solid #eadfce;
background: #fff;
}

#filter-sidebar .sidebar-header h2,
#filter-sidebar .widget-title1 h2 {
font-size: 18px !important;
font-weight: 600 !important;
font-family: inherit !important;
color: #3d3428 !important;
margin: 0;
}

#filter-sidebar .close-btn {
width: 36px;
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
background: #fbf8f4;
border: 1px solid #eadfce;
border-radius: 50%;
font-size: 22px;
color: #8a7560;
cursor: pointer;
padding: 0;
flex: 0 0 auto;
transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

#filter-sidebar .close-btn:hover {
background: #bd7b1b;
color: #fff;
transform: rotate(90deg);
}

#filter-sidebar .sidebar-content {
padding: 16px 16px 28px;
overflow-y: auto;
}

#filter-sidebar .filter-group,
#filter-sidebar .sidebar_tags {
background: #fff;
border: 1px solid #eadfce;
border-radius: 14px;
padding: 14px 14px 10px;
margin-bottom: 14px;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#filter-sidebar .filter-group:hover,
#filter-sidebar .sidebar_tags:hover {
border-color: #e4d0b0;
box-shadow: 0 8px 20px rgba(189, 123, 27, 0.08);
}

#filter-sidebar .category-title {
font-size: 15px;
font-weight: 600;
color: #3d3428;
margin-block: 0 10px;
display: flex;
align-items: center;
}

#filter-sidebar .category-title a.site-nav {
color: #3d3428 !important;
font-size: 15px !important;
font-weight: 600 !important;
font-family: inherit !important;
text-decoration: none;
}

#filter-sidebar .category-title::before {
content: "";
width: 8px;
height: 8px;
border-radius: 50%;
background: #bd7b1b;
margin-inline-end: 10px;
flex: 0 0 auto;
}

#filter-sidebar .filter-item {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 2px;
padding: 8px 6px;
border-radius: 8px;
cursor: pointer;
color: #3d3428 !important;
font-size: 14px !important;
font-weight: 400 !important;
font-family: inherit !important;
transition: background-color 0.2s ease;
}

#filter-sidebar .filter-item:hover {
background: #fbf8f4;
}

#filter-sidebar .filter-item input[type="checkbox"] {
float: none !important;
width: 18px;
height: 18px;
width: unset !important;
margin: 0;
accent-color: #bd7b1b;
cursor: pointer;
flex: 0 0 auto;
}

#filter-sidebar .filter-item span {
font-size: 14px;
color: #3d3428;
}

#filter-sidebar .filter-item:hover span {
color: #9f6716;
}

#filter-sidebar .widget-content {
padding: 8px 0 0;
}

#filter-sidebar input[type="text"] {
height: 44px !important;
border: 1px solid #eadfce !important;
border-radius: 10px !important;
background: #fbf8f4 !important;
color: #3d3428 !important;
transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

#filter-sidebar input[type="text"]:focus {
border-color: #bd7b1b !important;
box-shadow: 0 0 0 3px rgba(189, 123, 27, 0.16) !important;
outline: none;
}

#filter-sidebar .btn,
#filter-sidebar a.btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 42px;
padding: 0 16px;
background: #bd7b1b !important;
border: 0 !important;
color: #fff !important;
border-radius: 10px !important;
text-decoration: none;
transition: background-color 0.25s ease, transform 0.25s ease;
}

#filter-sidebar .btn:hover,
#filter-sidebar a.btn:hover {
background: #9f6716 !important;
transform: translateY(-1px);
}

/* =========================
OVERLAY
========================= */

.overlay {
position: fixed;
top: 0;
width: 100vw;
height: 100vh;
background-color: rgba(61, 52, 40, 0.28);
z-index: 999;
display: none;
opacity: 0;
transition: opacity 0.35s ease;
}

.overlay.show {
display: block;
opacity: 1;
}

/* =========================
SIDEBAR TOGGLE BUTTON
========================= */

.left-toggle-btn {
position: fixed;
top: 50%;
transform: translateY(-50%);
background-color: #fbf8f4;
color: #bd7b1b;
border: 1px solid #eadfce;
padding: 12px 14px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
z-index: 998;
display: flex;
align-items: center;
gap: 8px;
box-shadow: 0 8px 20px rgba(61, 52, 40, 0.1);
transition: background-color 0.25s ease, color 0.25s ease, padding 0.25s ease, box-shadow 0.25s ease;
}

.left-toggle-btn:hover {
background-color: #bd7b1b;
color: #fff;
box-shadow: 0 10px 22px rgba(189, 123, 27, 0.28);
}

.left-toggle-btn .toggle-icon {
font-size: 16px;
}

#filter-sidebar.open ~ .left-toggle-btn {
display: none;
}

.pagination {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 20px;
}

.pagination ul {
  display: flex;
  flex-direction: row;
  /* flex-wrap: wrap; */
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  gap: 6px;
}

.pagination li {
  display: flex;
  list-style: none;
}

.pagination li a {
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e5e7eb;
}

.pagination li:hover a {
  color: #fff;
  border-color: #004ecc;
  background: #004ecc;
}

.pagination li.active a,
.pagination li a.active {
  color: #fff;
  border-color: #2563eb;
  background: #2563eb;
}

/* =========================
   HEADER WRAP / ICONS ROW (EN + AR)
   ========================= */

.icons-col.header-icons {
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
}

html[lang="en"] .icons-col.header-icons {
  direction: ltr;
}

.page-wrapper.dir_rtl .icons-col.header-icons {
  direction: rtl;
}

.icons-col .header-user-menu {
  position: relative;
  flex: 0 0 auto;
}

.icons-col .header-user-stack {
  cursor: pointer;
}

html[lang="en"] .icons-col .header-user-menu #userLinks {
  right: 0;
  left: auto;
  top: calc(100% + 4px);
  width: 200px;
  margin: 0;
  transform: none;
}

.page-wrapper.dir_rtl .icons-col.header-icons .header-user-menu #userLinks {
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  top: calc(100% + 4px);
  width: 200px;
  margin: 0;
}

@media (max-width: 767.98px) {
  .mobile-header-lang-link {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    font-size: 12px;
    line-height: 1;
  }

  html[lang="en"] .mobile-header-lang-link {
    direction: ltr;
  }

     html[lang="ar"] .mobile-header-lang-link {
        direction: rtl;
        font-size: 16px !important;
    }

  .mobile-header-lang-link .fa-globe {
        font-size: 20px !important;
        padding: 0;
    }
}

/* Header icons-col: shared stack; labels/copy differ per locale in markup */
.icons-col .header-icon-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.icons-col .header-icon-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.icons-col .header-icon-graphic {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.icons-col .header-icon-with-badge {
  position: relative;
  display: inline-block;
  line-height: 1;
  vertical-align: middle;
}

.icons-col.header-icons .header-icon-with-badge .site-cart-count,
.icons-col.header-icons .header-icon-with-badge .wishlist-count {
  top: -8px;
  inset-inline-end: -10px;
  margin: 0;
  z-index: 2;
  pointer-events: none;
}

.icons-col .header-icon-label {
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .icons-col .header-cart .header-icon-label,
  .icons-col .wishlist-link .header-icon-label {
    display: none !important;
  }
}

.quantity.product-quantity {
  display: flex !important;
  align-items: center !important;
}

.quantity.product-quantity > .qtyBtn,
.quantity.product-quantity > .qtyBtn:hover,
.quantity.product-quantity > .qtyBtn:focus,
.quantity.product-quantity > input.qty {
  float: none !important;
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #fff !important;
  background-color: #fff !important;
  border-radius: 0 !important;
  border: 1px solid #ddd !important;
  color: #000 !important;
}

.quantity.product-quantity > .qtyBtn i,
.quantity.product-quantity > .qtyBtn:hover i,
.quantity.product-quantity > .qtyBtn:focus i {
  color: #000 !important;
}

html[lang="en"] .quantity.product-quantity > input.qty:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
html[lang="ar"] .quantity.product-quantity > input.qty:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]) {
  text-align: center !important;
  width: 80px !important;
}