* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Outfit", sans-serif;
}

.preloader-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #111111; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999; 
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader {
  position: relative;
  width: 120px;
  height: 90px;
  margin: 0 auto;
}

.loader:before {
  content: "";
  position: absolute;
  bottom: 30px;
  left: 50px;
  height: 30px;
  width: 30px;
  border-radius: 50%;
  background: #ed6902; 
  animation: loading-bounce 0.5s ease-in-out infinite alternate;
}

.loader:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  height: 7px;
  width: 45px;
  border-radius: 4px;
  box-shadow: 0 5px 0 #ffffff, -35px 50px 0 #ffffff, -70px 95px 0 #ffffff;
  animation: loading-step 1s ease-in-out infinite;
}

@keyframes loading-bounce {
  0% { transform: scale(1, 0.7); }
  40% { transform: scale(0.8, 1.2); }
  60% { transform: scale(1, 1); }
  100% { bottom: 140px; }
}

@keyframes loading-step {
  0% { box-shadow: 0 10px 0 rgba(0, 0, 0, 0), 0 10px 0 #ffffff, -35px 50px 0 #ffffff, -70px 95px 0 #ffffff; }
  100% { box-shadow: 0 10px 0 #ffffff, -35px 50px 0 #ffffff, -70px 95px 0 #ffffff, -70px 95px 0 rgba(0, 0, 0, 0); }
}

.preloader-wrapper.fade-out {
  opacity: 0;
  visibility: hidden;
}

body {
  overflow-x: hidden;
  background-color: #f8f9f8; 
}

body.category-page-body {
  padding-top: 120px;
}

.header-logo-img {
  height: 40px; 
  width: auto;
  object-fit: contain;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 15px; 
}

.lang-btn {
  background: transparent;
  color: #eeeeee;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 5px 14px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14.5px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-family: 'Zain', sans-serif; 
}

.lang-btn:hover {
  background: #ed6902;
  border-color: #ed6902;
}

.mobile-lang-btn {
  display: none;
}

.desktop-lang-btn {
  margin-right: 10px;
  margin-left: 10px;
}

html[dir="rtl"] body {
  font-family: 'Zain', sans-serif;
  text-align: right;
}

html[dir="rtl"] .second {
  text-align: right;
}

.title {
  text-decoration: none;
  font-size: 21.5px;
  color: #eeeeee;
  font-weight: 600;
}

.tabs a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.nav-box a {
  color: #2f4329; 
  font-weight: 600;
  text-decoration: none;
  padding: 7px 16px;
  font-size: 14.5px;
  transition: all 0.3s ease-in-out;
}

.nav-box a:hover {
  color: #ed6902; 
  transform: scale(1.1); 
  display: inline-block; 
}

.explore {
  background-color: #ed6902;
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 14.5px;
  transition: all 0.3s ease-in-out;
  display: inline-block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.079);
  color: #eeeeee;
}

.explore:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  color: #2f4329;
}

.category-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
}

.category-header h1 {
  color: #2f4329;
  font-size: 42px;
  margin-bottom: 10px;
  font-weight: 700;
}

.category-header p {
  color: #ed6902;
  font-size: 18px;
  font-weight: 500;
}

.products-two-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); 
  gap: 40px; 
  justify-content: center;
  width: 100%;
}

.item-card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f2f0;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.products-two-columns-grid .item-card:last-child:nth-child(odd) {
  grid-column: 1 / -1; 
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.item-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.1);
}

.item-image {
  width: 100%;
  height: 280px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.item-card:hover .item-image img {
  transform: scale(1.05);
}

.item-details {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.item-badge {
  background-color: rgba(237, 105, 2, 0.1);
  color: #ed6902;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  width: fit-content;
  margin-bottom: 12px;
}

.item-title {
  color: #2f4329;
  font-size: 26px;
  margin-bottom: 12px;
  font-weight: 600;
}

.item-desc {
  color: #666;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1; 
  text-align: justify;
}

.item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f0f2f0;
  padding-top: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #555;
}

.item-meta i {
  color: #d7b08c;
}

.status-in-stock {
  color: #25D366;
  font-weight: 600;
}

.item-order-btn {
  background-color: #25D366;
  color: white;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
}

.item-order-btn:hover {
  background-color: #1ebd5a;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

footer {
  background-color: #111;
  color: #eee;
  padding: 40px 20px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  box-shadow: 30px 0px 0 rgba(255, 255, 255, 0.1);
  margin-top: auto; 
}

footer .made-by {
  font-size: 14px;
  color: #bbbbbb;
  margin-top: 10px;
}

.developer-link {
  color: #ed6902; 
  text-decoration: none; 
  font-weight: 600;
  transition: all 0.3s ease;
}

.developer-link:hover {
  color: #d7b08c; 
  text-decoration: underline; 
}

body.menu-open {
  overflow: hidden;
}

.menu-toggle, .menu-social {
  display: none;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  height: 38px;
  border-radius: 25px;
  padding: 0 13.5px;
  width: 198px; 
  border: 1px solid #e2e8f0;
  margin: 0 !important; 
}

.search-form:focus-within {
  border-color: #ed6902;
  box-shadow: 0 4px 12px rgba(237, 105, 2, 0.1);
}

.search-form input {
  flex: 1;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  height: 100%;
  font-size: 12.5px;
  color: #2f4329;
  padding: 0 !important;
  min-width: 0; 
}

.search-form input::placeholder {
  color: #a0aec0;
}

.search-form button {
  all: unset !important; 
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #a0aec0 !important;
  cursor: pointer !important;
  font-size: 16px !important;
  padding-left: 8px !important;
  transition: color 0.3s ease !important;
}

.search-form button:hover {
  color: #ed6902 !important;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  max-height: 350px;
  overflow-y: auto;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
}

.suggestion-item {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.2s;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f9fbf9;
}

.suggestion-img {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid #eee;
}

.suggestion-text {
  display: flex;
  flex-direction: column;
  text-align: start;
}

.suggestion-title {
  font-size: 14px;
  font-weight: 600;
  color: #2f4329;
}

.suggestion-cat {
  font-size: 11px;
  color: #888;
  text-transform: capitalize;
  margin-top: 2px;
}

.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px; 
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  text-align: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

.floating-whatsapp i {
  margin-top: 2px; 
}

.floating-whatsapp:hover {
  background-color: #1ebd5a;
  transform: scale(1.1) translateY(-5px);
  color: #fff;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  animation: none; 
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

html[dir="rtl"] .floating-whatsapp {
  right: auto;
  left: 30px;
}

.scroll-to-top {
  position: fixed;
  bottom: 100px; 
  right: 35px;
  width: 45px;
  height: 45px;
  background-color: #2f4329; 
  color: #eeeeee;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 999998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: #ed6902; 
  transform: translateY(-3px);
  color: #ffffff;
}

html[dir="rtl"] .scroll-to-top {
  right: auto;
  left: 35px;
}

.subcategory-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
  margin-top: -20px;
}

.sub-tab-btn {
  padding: 8px 25px;
  border: 2px solid #2f4329 !important;
  border-radius: 30px !important;
  background-color: white !important;
  color: #2f4329 !important;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease !important;
}

.sub-tab-btn:hover {
  background-color: #e8eee6 !important;
  transform: translateY(-2px);
}

.sub-tab-btn.active {
  background-color: #ed6902 !important; 
  border-color: #ed6902 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(237, 105, 2, 0.3) !important;
}

.hidden-card { 
  transform: scale(0.5); 
  opacity: 0; 
  z-index: 1; 
  pointer-events: none; 
}


@media (min-width: 992px) {
  header { position: fixed; display: flex; justify-content: space-between; align-items: center; background-color: rgba(17, 17, 17, 0.4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 9px 36px; top: 0; left: 0; width: 100%; z-index: 999; border-bottom: 1px solid rgba(255, 255, 255, 0.099); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); }
  .tabs { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 13.5px !important; flex-wrap: wrap; }
  .tabs .nav-box { position: absolute !important; left: 50% !important; transform: translateX(-50%) !important; display: flex; align-items: center; background-color: #ffffff; border-radius: 50px; padding: 4.5px 18px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); white-space: nowrap !important; flex-wrap: wrap; }
}

@media (min-width: 769px) and (max-width: 1150px) {
  header { padding: 10px 15px; }
  .header-logo-img { height: 28px; }
  .title { font-size: 16px; gap: 5px; }
  .tabs .nav-box { padding: 3px 8px; }
  .nav-box a { padding: 4px 6px; font-size: 13px; }
  .tabs { gap: 8px; }
  .search-form { width: 130px; height: 32px; }
  .search-form input { font-size: 11px; }
  .lang-btn, .explore { padding: 5px 12px; font-size: 13px; }
  .desktop-lang-btn { margin: 0; }
}

@media (max-width: 991px) {
  .search-form { width: 100%; margin: 15px 0 !important; }
}

@media (max-width: 768px) {
  .header-logo-img { height: 28px !important; }
  .title { gap: 4px !important; }
  .title div { font-size: 16px !important; line-height: 1.2 !important; white-space: nowrap !important; }
  .header-controls { display: flex !important; flex-direction: row !important; align-items: center !important; gap: 10px !important; }
  .desktop-lang-btn { display: none; }
  .mobile-lang-btn { display: block; padding: 4px 10px; font-size: 14px; margin: 0; }
  body.category-page-body { padding-top: 110px; }
  header { display: flex !important; flex-direction: row !important; justify-content: space-between !important; align-items: center !important; position: fixed; top: 15px; left: 5%; width: 90%; height: 60px; padding: 0 20px; background-color: rgba(17, 17, 17, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 100px; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); z-index: 999; }
  header .title { font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
  .menu-toggle { display: block; background: none; border: none; color: #eeeeee; font-size: 22px; cursor: pointer; z-index: 999; transition: color 0.3s ease; }
  .menu-toggle:hover { color: #ed6902; }
  .tabs { display: flex; flex-direction: column; justify-content: center; align-items: center; position: fixed; top: -15px; left: calc(-5% - 1px); width: 100vw; height: 100vh; background-color: rgba(17, 17, 17, 0.98); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); padding: 40px; gap: 30px; z-index: 998; transform: translateY(100%); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); border-radius: 0; }
  .tabs.active { transform: translateY(0); }
  .tabs .nav-box a, .tabs .explore, .menu-social a { opacity: 0; transform: translateY(25px); transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
  .tabs.active .nav-box a:nth-child(1) { transition-delay: 0.2s; }
  .tabs.active .nav-box a:nth-child(2) { transition-delay: 0.3s; }
  .tabs.active .nav-box a:nth-child(3) { transition-delay: 0.4s; }
  .tabs.active .nav-box a:nth-child(4) { transition-delay: 0.5s; }
  .tabs.active .explore { transition-delay: 0.6s; }
  .tabs.active .menu-social a { transition-delay: 0.7s; }
  .tabs.active .nav-box a, .tabs.active .explore, .tabs.active .menu-social a { opacity: 1; transform: translateY(0); }
  
  .nav-box { display: flex; align-items: center; justify-content: center; position: static !important; transform: none !important; white-space: normal !important; flex-direction: column; background-color: transparent !important; box-shadow: none !important; padding: 0; width: 100%; gap: 20px; }
  .nav-box a { display: block; color: #eeeeee; width: auto; text-align: center; padding: 10px 20px; font-size: 20px; font-weight: 500; text-decoration: none; }
  
  .nav-box a:hover { color: #ed6902; }
  .explore { width: auto; min-width: 200px; text-align: center; padding: 14px 28px; font-size: 18px; }
  .menu-social { display: flex !important; gap: 25px; margin-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 30px; width: 80%; justify-content: center; }
  .menu-social a { color: #bbbbbb; font-size: 22px; transition: color 0.3s ease, transform 0.3s ease !important; }
  .menu-social a:hover { color: #ed6902; transform: scale(1.1); }
  .category-header h1 { font-size: 32px; }
  .products-two-columns-grid { grid-template-columns: 1fr !important; gap: 20px; }
  .item-card { max-width: 100% !important; }
  .products-two-columns-grid .item-card:last-child:nth-child(odd) { grid-column: auto !important; max-width: 100% !important; margin: 0 !important; }
  .item-image { height: 220px; }
  .item-details { padding: 20px !important; }
  .item-title { font-size: 22px !important; margin-bottom: 8px !important; }
  .item-desc { font-size: 14px !important; margin-bottom: 15px !important; text-align: left !important; }
  .item-meta { padding-top: 10px !important; margin-bottom: 15px !important; }
  .item-order-btn { padding: 10px 20px !important; font-size: 15px !important; }
  .floating-whatsapp { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 30px; }
  html[dir="rtl"] .floating-whatsapp { left: 20px; right: auto; }
  .scroll-to-top { bottom: 85px; right: 25px; width: 40px; height: 40px; font-size: 18px; }
  html[dir="rtl"] .scroll-to-top { left: 25px; right: auto; }
}