/* البحث والقائمة باللون الأبيض */
#header .btn-toggle-formsearch,
#header .btn-toggle-formsearch i,
#header .btn-show-offcanvas,
#header .btn-show-offcanvas i,
#header .btn-toggle-formsearch:hover,
#header .btn-show-offcanvas:hover {
  color: #fff !important;
  opacity: 1 !important;
}

/* تقليل عرض القائمة */
.hc-offcanvas-nav .nav-container {
  width: 78vw !important;
  max-width: 310px !important;
}

/* تدوير خفيف لليسار فقط */
.hc-offcanvas-nav .nav-container,
.hc-offcanvas-nav .nav-wrapper {
  border-radius: 12px 0 0 12px !important;
  overflow: hidden !important;
}

.hc-offcanvas-nav .nav-wrapper {
  width: 100% !important;
}


/* بطاقة المنتج */
.block-product {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden;
}

/* مساحة الصورة */
.block-product .thumb {
  position: relative;
  margin: 0 0 12px !important;
  padding: 0 !important;
  aspect-ratio: 3 / 4;
  background: #f7f7f7 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

.block-product .thumb > a,
.block-product .thumb .content-thumb {
  width: 100%;
  height: 100%;
}

.block-product .thumb > a {
  display: flex;
  align-items: center;
  justify-content: center;
}

.block-product .thumb .content-thumb {
  background: transparent !important;
}

/* الحفاظ على أبعاد النظارة بدون تمديد */
.block-product .thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  padding: 12px;
  box-sizing: border-box;
  border-radius: 0 !important;
}

/* الاسم والسعر أسفل الصورة */
.block-product .inside-content {
  background: transparent !important;
  padding: 0 0 16px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: right !important;
}

/* إخفاء التصنيف فوق اسم المنتج */
.block-product .category {
  display: none !important;
}

.block-product .title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  text-align: right !important;
}

.block-product .title a {
  color: #252525 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.5 !important;
}

/* منتجان بكل صف على الجوال */
@media (max-width: 767px) {
  .row-scroll-product > .row > div {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
  }
}


/* محاذاة البطاقات من الأعلى */
.row-scroll-product .row > * {
  vertical-align: top !important;
  white-space: normal !important;
}

/* توحيد مساحة الصورة */
.block-product .thumb {
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 4;
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: #f7f7f7 !important;
  overflow: hidden !important;
}

/* تثبيت رابط الصورة داخل المساحة */
.block-product .thumb > a {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

/* تكبير النظارة مع الحفاظ على نسبها */
.block-product .thumb > a img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: scale(1.65) !important;
}

/* ترتيب المعلومات */
.block-product .inside-content {
  padding: 0 0 14px !important;
  margin: 0 !important;
  background: transparent !important;
  text-align: right !important;
}

.block-product .inside-content .title {
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 5px !important;
  line-height: 1.5 !important;
  text-align: right !important;
}

.block-product .title a {
  font-size: 14px !important;
  font-weight: 400 !important;
}

/* السعر مباشرة تحت الاسم */
.block-product .price {
  display: flex !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 4px 8px !important;
  margin: 0 !important;
  font-size: 14px !important;
}

.block-product .price > * {
  margin: 0 !important;
}

.block-product .price .new {
  color: #c62828 !important;
  font-weight: 500 !important;
}

.block-product .price .old {
  color: #858585 !important;
}

/* إزالة العناصر الزائدة لتقريب الشكل للمرجع */
.block-product .category,
.block-product .thumb .mu-wrap,
.block-product .inside-content .actions {
  display: none !important;
}



/* اسم المنتج */
.single--product-name {
  font-size: 23px !important;
  line-height: 1.4 !important;
  margin-bottom: 12px !important;
}

/* السعر والخصم */
.current-product-price {
  padding-top: 0 !important;
  margin-bottom: 18px !important;
}

.current-product-price .block-price,
.current-product-price .block-price > div {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 8px 12px !important;
}

.current-product-price .product-formatted-price {
  color: #615d9d !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

.current-product-price .product-formatted-price-old {
  color: #909090 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

.current-product-price .product-formatted-price-discount {
  display: inline-block !important;
  width: auto !important;
  padding: 5px 10px !important;
  background: #f0eef7 !important;
  color: #615d9d !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  white-space: nowrap !important;
}

/* عنوان وصف المنتج */
#full-product-desc-tab {
  background: transparent !important;
  color: #615d9d !important;
  border: 0 !important;
  border-bottom: 2px solid #615d9d !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
  font-size: 17px !important;
}

/* النص داخل الوصف */
#full-product-desc-tab-pane {
  color: #505050 !important;
  text-align: right !important;
  line-height: 1.9 !important;
}

#full-product-desc-tab-pane p {
  margin: 0 0 8px !important;
}

#full-product-desc-tab-pane p,
#full-product-desc-tab-pane span,
#full-product-desc-tab-pane strong {
  font-size: 15px !important;
  line-height: 1.9 !important;
}

#full-product-desc-tab-pane p strong {
  font-weight: 400 !important;
}

/* إزالة الهايلايت الأصفر */
#full-product-desc-tab-pane [style*="background-color"],
#full-product-desc-tab-pane mark {
  background: transparent !important;
}

/* عناوين التفاصيل والمحتويات */
#full-product-desc-tab-pane p:has([style*="background-color"]) {
  margin: 22px 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #e9e8ef !important;
}

#full-product-desc-tab-pane p [style*="background-color"] {
  color: #615d9d !important;
  font-size: 18px !important;
  font-weight: 700 !important;
}

/* تقليل الأسطر الفارغة في الوصف */
#full-product-desc-tab-pane p:empty,
#full-product-desc-tab-pane p:has(br):not(:has(img)) {
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  border: 0 !important;
}

#full-product-desc-tab-pane p br {
  display: none !important;
}

/* جدول المواصفات */
#full-product-desc-tab-pane table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  margin: 12px 0 20px !important;
}

#full-product-desc-tab-pane td {
  padding: 11px 12px !important;
  border: 1px solid #ececf0 !important;
  vertical-align: middle !important;
  text-align: right !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  overflow-wrap: anywhere;
}

#full-product-desc-tab-pane td:first-child {
  width: 42% !important;
  background: #f7f7f9 !important;
  color: #454352 !important;
  font-weight: 600 !important;
}

#full-product-desc-tab-pane td:last-child {
  background: #fff !important;
}

#full-product-desc-tab-pane td span,
#full-product-desc-tab-pane td strong {
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* صورة محتويات الطلب */
#full-product-desc-tab-pane img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 12px auto !important;
}


/* هيدر أصغر */
#header .inside-header {
  padding: 8px 0 !important;
}

#header .logo-img {
  width: auto !important;
  max-width: 90px !important;
  height: 60px !important;
  max-height: 60px !important;
  object-fit: contain !important;
}

/* صف واحد على الجوال */
@media (max-width: 991px) {
  #header .inside-header > .container-fluid > .row {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr;
    align-items: center !important;
    gap: 0 !important;
    margin: 0 !important;
  }

  #header .inside-header > .container-fluid > .row > div {
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    min-width: 0;
  }

  #header .inside-header .row > .col-4:first-child {
    justify-content: flex-start !important;
  }

  #header .inside-header .row > .col-12 {
    justify-content: flex-end !important;
  }

  #header .inside-header .row > .col-12 > div:first-child {
    display: none !important;
  }

  #header .inside-header .row > .col-12 > .d-flex {
    gap: 10px !important;
  }

  #header .logo-img {
    max-width: 72px !important;
    height: 54px !important;
    max-height: 54px !important;
  }

  #header .btn-show-offcanvas {
    font-size: 25px !important;
  }

  #header .btn-show-offcanvas i {
    font-size: inherit !important;
  }

  #header .block-cart {
    width: 36px !important;
    height: 36px !important;
  }
}

/* فوتر مركزي بمسافات متوازنة */
.footer {
  padding: 32px 18px 24px !important;
  text-align: center !important;
}

.footer > .container > .row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 24px !important;
}

.footer > .container > .row > div {
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 540px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* إخفاء عمود الروابط الفارغ */
.footer .row > div:has(> .footer-title:empty):has(> .footer-menu:empty) {
  display: none !important;
}

.footer .footer-title {
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 10px !important;
  text-align: center !important;
}

.footer .about-text {
  max-width: 440px;
  margin: 0 auto !important;
  color: #f2f0f7 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  text-align: center !important;
}

.footer .footer-menu {
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
  text-align: center !important;
}

.footer .footer-menu li {
  margin-bottom: 8px !important;
}

.footer .footer-menu a {
  color: #f2f0f7 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.8 !important;
  overflow-wrap: anywhere;
}

.footer .mobile-store[src=""] {
  display: none !important;
}

.copyright {
  padding: 16px 12px !important;
  border-top: 1px solid rgba(255,255,255,.15);
  font-size: 12px !important;
  text-align: center !important;
}

.copyright .row {
  justify-content: center !important;
  row-gap: 12px;
}

.copyright .row > div {
  text-align: center !important;
  justify-content: center !important;
}



/* دوائر أيقونات التواصل أسفل المتجر */
:is(.footer, .copyright) a:is(
  [href*="instagram.com"],
  [href*="tiktok.com"]
) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 5px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  text-decoration: none !important;
}

:is(.footer, .copyright) a:is(
  [href*="instagram.com"],
  [href*="tiktok.com"]
) i {
  font-size: 22px !important;
  color: #fff !important;
  margin: 0 !important;
}

:is(.footer, .copyright) a:is(
  [href*="instagram.com"],
  [href*="tiktok.com"]
) svg {
  width: 22px !important;
  height: 22px !important;
  fill: currentColor !important;
}

/* زوايا القائمة الجانبية */
.hc-offcanvas-nav .nav-container,
.hc-offcanvas-nav .nav-wrapper {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* الحفاظ على إمكانية تمرير القائمة */
.hc-offcanvas-nav .nav-content {
  padding-top: 26px !important;
  padding-bottom: 28px !important;
}

/* عنوان القائمة */
.hc-offcanvas-nav .nav-title {
  position: relative;
  padding: 20px 45px 22px !important;
  margin: 0 !important;
  text-align: center !important;
  color: #615d9d !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  border: 0 !important;
}

/* شعار سهم فوق العنوان */
.hc-offcanvas-nav .nav-title::before {
  content: "" !important;
  display: block !important;
  width: 86px !important;
  height: 86px !important;
  margin: 0 auto 18px !important;
  background: url("https://media.zid.store/c1ce3d3d-02c5-4b3e-8ef5-aaa92d68db49/e0b8d33e-c51d-4a47-ada7-5d5e9ef6ea83.jpg")
    center / contain no-repeat !important;
  border-radius: 12px !important;
}

/* توسيط الروابط */
.hc-offcanvas-nav .nav-item-wrapper,
.hc-offcanvas-nav .nav-item-link {
  text-align: center !important;
}

.hc-offcanvas-nav .nav-item-link {
  padding: 16px 38px !important;
  color: #615d9d !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.6 !important;
  border: 0 !important;
}

/* إزالة خطوط الفصل */
.hc-offcanvas-nav .nav-content > ul,
.hc-offcanvas-nav .nav-content > ul > li,
.hc-offcanvas-nav .nav-item-wrapper {
  border: 0 !important;
}

/* إلغاء تدوير الزاوية اليمنى العلوية */
.hc-offcanvas-nav,
.hc-offcanvas-nav .nav-container,
.hc-offcanvas-nav .nav-wrapper,
.hc-offcanvas-nav .nav-content,
.hc-offcanvas-nav .nav-title {
  border-top-right-radius: 0 !important;
}