/* ========== الهوية البصرية والمتغيرات ========== */
:root {
  --color-primary: #ebc607; 
}

body {
  background: #f6f7f7 !important;
}

/* ========== القوائم العلوية والهيدر ========== */
.main-nav-container {
  background: url(https://i.postimg.cc/T1pzf84k/1445-07-13-18-37-59-9a77154b.jpg);
}

.bg-inherit {
  background: url(https://i.postimg.cc/T1pzf84k/1445-07-13-18-37-59-9a77154b.jpg) !important;
}

.top-navbar {
  color: #f0ca05;
  background: #323232;
}

.top-navbar .s-search-input {
  background-color: rgb(0 0 0);
  border: 0.8px solid #ebc607;
}

.header-buttons button {
  border: 1.6px solid #ebc607;
}

.header-btn__icon {
  background: #323232;
  color: #fff;
  border: none;
}


.main-menu li.root-level:hover > a {
  color: #fff !important;
  background-color: transparent !important;
}

.main-menu li.root-level:hover > a:after {
  opacity: 1;
  transform: scaleY(-1);
  color: #fff !important; 
}

.main-menu .sub-menu li a:hover,
.main-menu .has-children .sub-menu li a:hover {
  color: var(--color-primary) !important;
  background-color: rgba(229, 231, 235, 0.2);
}

.sicon-menu {
  color: #333 !important;
}

/* ========== البنرات والإعلانات ========== */
.s-block--fixed-banner .container {
  padding-right: 0;
  padding-left: 0;
}

.banner--fixed img {
  border-radius: 0 !important;
}

.s-block--fixed-banner:nth-child(4) {
  margin-bottom: -64px !important;
}

@media (max-width: 768px) {
  .lazy__bg {
    background-repeat: no-repeat !important;
  }
  .banner-entry {
    height: 97px !important;
    overflow: hidden;
    border-radius: 10px;
  }
  .grid.one-row.md\:grid-cols-2.grid-flow-row.gap-3.sm\:gap-8 {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important;
    margin-top: -20px;
  }
}

/* ========== الفوتر (أسفل الموقع) ========== */
.footer-is-light .store-footer .store-footer__inner {
  background-color: #fff;
  color: #333;
}

.store-footer__inner {
  background: #fff !important;
  border: none;
}

.store-footer * {
  color: #333;
}

@media (max-width: 767px) {
  .footer-is-light .store-footer .store-footer__inner {
    margin-top: 0px !important;
  }
  .container.grid.grid-col-1.lg\:grid-cols-6.gap-8.lg\:gap-6 {
    display: flex;
    flex-direction: column;
  }
}

/* ========== بطاقات المنتجات والأزرار ========== */
.s-button-primary-outline {
  background: #ebc607;
  color: #323232;
  border: unset;
}

.s-button-primary-outline:hover {
  background: #333;
  color: #ebc607;
}

.s-button-primary:hover {
  background: #333 !important;
  color: #ebc607;
}

/* ========== وسائل الدفع (المنتج والفوتر) ========== */
.custom-payment-wrapper {
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  margin-top: 15px;
}

.custom-payment-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.custom-payment-list-item {
  flex: 0 0 auto;
  width: 55px;
  height: 45px;
}

.custom-payment-list-item img,
.custom-payment-list-item svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.custom-payment-list-item svg {
  padding: 12px 0px;
}

@media (max-width: 767px) {
  .custom-payment-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px 8px; 
    padding: 0 5px;
  }
  .custom-payment-list-item {
    width: 100%;
    height: 20px;
    padding: 3px; 
  }
  .custom-payment-list-item svg {
    padding: 0px;
  }
}

.custom-payment-list-2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  gap: 8px;
  padding-bottom: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.custom-payment-list-2::-webkit-scrollbar {
  display: none;
}

.custom-payment-list-item-2 {
  flex: 0 0 auto;
  width: 55px;
  height: 25px;
}

.custom-payment-list-item-2 img,
.custom-payment-list-item-2 svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.custom-payment-list-item-2 svg {
  padding: 3px 0px; 
}

@media (max-width: 768px) {
  .custom-payment-list-2 {
    overflow: hidden;
    gap: 5px;
  }
  .custom-payment-list-item-2 {
    width: 30px;
    height: 20px;
  }
  .custom-payment-list-item-2 svg {
    padding: 0px; 
  }
}

/* ========== مميزات المتجر وعلامات الثقة ========== */
.container-107 {
  padding: 5px 2px;
  margin: 10px auto;
  box-sizing: border-box;
}

.flex-features {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  gap: 0;
}

.flex-feature-item {
  width: 33.33%;
  padding: 0 8px;
  box-sizing: border-box;
}

.flex-feature-item > div {
  background: #fff;
  border: 1px solid #ebc607;
  border-radius: 8px;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
}

.flex-feature-item span {
  font-size: 14px;
  white-space: nowrap;
  line-height: 1.2;
  color: #000;
}

.flex-feature-item svg {
  stroke: #ebc607;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .flex-feature-item {
    width: 32.33%;
    padding: 0 4px;
  }
  .flex-feature-item > div {
    padding: 12px 16px;
  }
  .flex-feature-item span {
    font-size: 12px;
  }
  .flex-feature-item svg {
    width: 14px;
    height: 14px;
  }
}

@media (max-width: 420px) {
  .flex-feature-item {
    padding: 0 2px;
  }
  .flex-feature-item > div {
    padding: 10px 10px;
    gap: 5px;
  }
  .flex-feature-item span {
    font-size: 11px;
  }
  .flex-feature-item svg {
    width: 13px;
    height: 13px;
  }
}

/* ========== قسم الأكثر مبيعاً ========== */
.top-selling-section {
  background: url(https://i.postimg.cc/T1pzf84k/1445-07-13-18-37-59-9a77154b.jpg);
  border-radius: 12px;
  padding: 15px 10px;
  margin-bottom: 10px;
  border: 1px solid #eee;
  width: 100%;
}

.top-selling-title {
  text-align: start;
  font-size: 28px;
  font-weight: bold;
  color: #222;
  margin-bottom: 15px;
  padding-right: 10px;
}

.top-selling-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .top-selling-title {
    font-size: 25px;
  }
  .top-selling-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; 
    scrollbar-width: none; 
  }
  .top-selling-grid::-webkit-scrollbar {
    display: none;
  }
  .top-selling-grid > * {
    scroll-snap-align: start;
    flex-shrink: 0;
    width: 80%;
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .top-selling-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.s-user-menu-trigger {
     border-radius: 50%;
     padding: 0; 
}


.custom-card-quote-btn.s-button-primary-outline {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: bold !important;
  font-size: 14px !important;
  border-radius: 0.75rem !important;
  text-decoration: none !important;
  z-index: 9 !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  background: #ebc607;
  color: #323232;
  border: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.custom-card-quote-btn.s-button-primary-outline:hover {
  background: #333 !important;
  color: #ebc607 !important;
}


/* ========== القائمة والهيدر ========== */

#mainnav.main-nav-container {
    height: 120px !important;
}

.main-nav-container.fixed-pinned .inner {
    padding-top: 10px;
    padding-bottom: 10px;
}

.main-menu > li > a,
.main-menu > li > span {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin: 0 !important;
    display: inline-block !important;
}

.main-menu > li.root-level {
    position: relative !important;
}

.main-menu > li.root-level > .sub-menu {
    position: absolute !important;
    top: 100% !important;
    margin-top: 0 !important;
    transform: none !important;
}

.main-menu > li.root-level:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

[dir="rtl"] .main-menu > li.root-level > .sub-menu {
    right: 0 !important;
    left: auto !important;
}

@media only screen and (min-width: 1024px) {
    .main-menu {
        padding-top: 0rem;
    }
}