body {
    font-family: "Manrope", sans-serif;
}

.discount-data .discount-item .woocommerce-loop-product__title {
    font-size: 17px;
    margin-top: 10px;
}

.discount-data .discount-item a img {
    width: 100%;
    background: white;
}

.related.products ul.products li.product .woocommerce-loop-product__title {
    font-size: 18px;
}

.hero.hero-page{
    width: 100%;
    height: 305px;
    background-size: cover;
    background-position: right;
    position: relative;
}

.hero.hero-page .hero-shadow {
    background: #fff5f95c;
    width: 100%;
    height: 100%;
    top: 0;
    position: absolute;
    right: 0;
}

.hero.hero-page .hero-shadow {
    opacity: 0.3;
}

.related.products ul.products li.product img{
    width: 100%;
    background: white;
    height: 198px;
    object-fit: contain;
    padding: 10px;
}

header.header-page::after{
    content: none;
}

/*.single_product_page form.cart {*/
/*    flex-direction: column;*/
/*}*/

button.single_add_to_cart_button.button.alt.disabled.wc-variation-selection-needed {
    height: 44px;
}

section.recommended .products .products-img img {
    width: 100%;
    background: white;
    height: 198px;
    object-fit: contain;
    padding: 10px;
}

.discount-data .discount-item a img {
    width: 100%;
    background: white;
    height: 198px;
    object-fit: contain;
    padding: 10px;
}

section.recommended.space .woocommerce-loop-product__title {
    font-size: 17px;
    margin-top: 9px;
}

section.discounts.space .discounts-data .discount-item .woocommerce-loop-product__title {
    font-size: 17px;
    margin-top: 10px;
}

.swiper-slide {
    text-align: center;
}

section.subcat-slider-main {
    padding-top: 50px;
    padding-bottom: 50px;
}

.wpcf7-form-control-wrap input {
    width: 100%;
}

.wpcf7-form-control-wrap textarea {
    width: 100%;
}

form.wpcf7-form label{
    width: 100%;
}

.contact-hero {
    padding: 60px 0;
    text-align: center;
}

.contact-title {
    font-size: 36px;
    margin: 0;
    color: #333;
}

.contact-section {
    padding: 60px 0;
    background-color: #fff;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.contact-details li {
    margin-bottom: 12px;
    font-size: 16px;
}

.contact-details a {
    color: #0073aa;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

/* Base Reset for Form Elements */
input,
optgroup,
select,
textarea {
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: none;
  background-color: #fff;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

/* Focus State */
input:focus,
select:focus,
textarea:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 115, 230, 0.2);
}

/* Select Dropdown */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23999' stroke-width='2' fill='none' fill-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px;
}

/* Optgroup Label */
optgroup {
  font-weight: bold;
  color: #444;
  padding: 5px 0;
}

/* Textarea Specific */
textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Container Example */
.form-group {
  max-width: 600px;
  margin: 0 auto;
}

.faq-section {
  padding: 3rem 1rem;
  background-color: #f9f9f9;
  font-family: Arial, sans-serif;
}


.faq-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: #333;
}

.faq-item {
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 5px;
  border: 1px solid #ddd;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item summary {
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  background-color: #eee;
  color: #222;
}

.faq-item[open] summary {
  background-color: #dceeff;
}

.faq-item p {
  padding: 1rem;
  border-top: 1px solid #ddd;
  margin: 0;
  background: #fff;
  color: #444;
}

.woocommerce-product-gallery__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 1455px) {
    .hero {
        height: 706px;
    }
    body.cat .hero {
        height: 706px;
    }
    .hero.hero-page {
        height: 706px;
    }
}

@media (max-width: 1327px) {
    .hero {
        height: 636px;
    }
    body.cat .hero {
        height: 636px;
    }
    .hero.hero-page {
        height: 636px;
    }
}

@media (max-width: 1176px) {
    .hero {
        height: 566px;
    }
    body.cat .hero {
        height: 566px;
    }
    .hero.hero-page {
        height: 566px;
    }
}

@media (max-width: 1023px) {
    .hero {
        height: 486px;
    }
    body.cat .hero {
        height: 486px;
    }
    .hero.hero-page {
        height: 486px;
    }
}

@media (max-width: 901px) {
    .hero {
        height: 438px;
    }
    body.cat .hero {
        height: 438px;
    }
    .hero.hero-page {
        height: 438px;
    }
}

@media (max-width: 828px) {
    .hero {
        height: 388px;
    }
    body.cat .hero {
        height: 388px;
    }
    .hero.hero-page {
        height: 388px;
    }
}

@media (max-width: 770px) {
    .hero {
        height: 78px;
    }
    body.cat .hero {
        height: 78px;
    }
    .hero.hero-page {
        height: 78px;
    }
    .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 50px;
    }
    .related.products ul.products {
        list-style: none;
        display: block;
        padding-left: unset;
    }
}

@media (max-width: 430px) {
    .hero {
        height: 78px;
    }
    body.cat .hero {
        height: 78px;
    }
    .hero.hero-page {
        height: 78px;
    }
    .woocommerce-tabs.wc-tabs-wrapper {
        margin-top: 50px;
    }
    .related.products ul.products {
        list-style: none;
        display: block;
        padding-left: unset;
    }
}

/* Default styles */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

/* Mobile styles */
@media (max-width: 768px) {
  nav#main-nav {
    display: none;
    flex-direction: column;
    background: #fff;
    position: absolute;
    top: 70px;
    right: 20px;
    width: 80%;
    max-width: 300px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  nav#main-nav.open {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}

/* Basic menu button */
.menu-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #333;
  z-index: 9999;
}

/* Full-screen mobile menu overlay */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  text-align: center;
}

.mobile-menu-content {
  position: relative;
  width: 100%;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-list li {
  margin: 20px 0;
}

.mobile-menu-list a {
  font-size: 24px;
  color: #000;
  text-decoration: none;
}

/* Close button */
.close-menu {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

/* Show toggle and menu on mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav#main-nav {
    display: none;
  }

  .mobile-menu-overlay.show {
    display: flex;
  }
  .desktop-menu {
        display: none;
    }
}


.wc-blocks-components-select .wc-blocks-components-select__label {
    z-index: 0;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__quantity {
    z-index: 0;
}

.desktop-menu-content ul {
    display: flex;
}

.desktop-menu-content ul li a {
    font-size: 19px;
}

.desktop-menu-content ul li {
    margin-right: 15px;
}

.desktop-menu-content ul li:last-child {
    margin-right: 0px;
}


header {
    padding: 0px 0px 0px 0px;
}

body.cat header {
    padding: 0px 0px 0px 0px;
}

#backToTop{
    position: fixed;
    right: 25px;
    bottom: 110px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    background: #319795;
    color: #fff;
    font-size: 20px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  #backToTop.show{
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #backToTop:focus { outline: 2px solid #4b9cff; outline-offset: 2px; }

  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    #backToTop { transition: none; }
  }
  
  
  /* Hide postcode on Checkout block and stretch Phone to full width */
.wc-block-components-address-form__postcode { display: none !important; }
.wc-block-components-address-form .wc-block-components-address-form__phone { grid-column: 1 / -1; }

/* Desktop hover dropdown for #menu-header-menu */
@media (hover:hover) and (min-width: 992px) {
  #menu-header-menu > li { position: relative; }

  /* hidden by default — no margin gap */
  #menu-header-menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    margin: 1px 0px;                 /* ✱ remove the gap */
    background: #fff;
    list-style: none;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    z-index: 1000;

    /* show/hide with a small delay on hide */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
    transition:
      opacity .18s ease,
      transform .18s ease,
      visibility 0s linear .18s; /* delay visibility toggle when hiding */
  }
  
     #menu-header-menu .sub-menu li {
        margin: 5px 0;
    }

  #menu-header-menu > li:hover > .sub-menu,
  #menu-header-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s, 0s, 0s; /* no delay when showing */
  }

  /* optional: third level */
  #menu-header-menu .sub-menu .sub-menu { top: 0; left: 100%; }
}


.desktop-menu-content ul.sub-menu li a {
    font-size: 17px;
}

.single_product_page .product_title {
    font-size: 25px;
}

.menu-item-has-children > a {
  position: relative;
  padding-right: 20px; /* space for icon */
}

.menu-item-has-children > a::after {
  content: "▼"; /* down arrow icon */
  font-size: 12px;
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.3s;
}

/* Rotate when open */
.menu-item-has-children > a.open::after {
  transform: translateY(-50%) rotate(180deg);
}


@media (max-width: 768px) {
    .single_product_page .product_title {
        margin-top: 20px;
        font-size: 22px;
    }
    .wp-block-woocommerce-checkout {
        padding-top: 0px;
    }
    section.page {
        padding: 50px 0;
    }
    .mobile-menu-list li ul.sub-menu {
        list-style: unset;
        display: none;
    }
    .mobile-menu-list li {
        text-align: justify;
    }
    .mobile-menu-overlay.show {
        z-index: 99999;
    }
    .close-menu {
        top: -100px;
    }
}

.single_product_page form.variations_form.cart {
    flex-direction: column;
}

.woocommerce-tabs.wc-tabs-wrapper ul.tabs li {
    margin-right: 25px;
}

td.value.woo-variation-items-wrapper ul.single-product-variable-items.wvs-style-squared.variable-items-wrapper.color-variable-items-wrapper {
    list-style: none;
    display: flex;
    padding-left: 10px;
    margin-bottom: 0;
}

td.value.woo-variation-items-wrapper ul.single-product-variable-items.wvs-style-squared.variable-items-wrapper.color-variable-items-wrapper li .variable-item-contents span.variable-item-span {
    width: 30px;
    display: block;
    height: 30px;
}

td.value.woo-variation-items-wrapper ul.single-product-variable-items.wvs-style-squared.variable-items-wrapper.color-variable-items-wrapper li {
    margin-right: 10px;
}

.single_product_page form.variations_form.cart table.variations td.value.woo-variation-items-wrapper {
    display: flex;
}

.single_product_page form.variations_form.cart .woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled {
    margin-top: 15px;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled button.single_add_to_cart_button.button.alt {
    height: 45px;
}

div#tab-additional_information td.woocommerce-product-attributes-item__value p {
    margin-bottom: 0px;
}

@media (max-width: 768px) {
    body .qib-button-wrapper {
        float: left !important;
    }
}

.faq-item[open] summary {
    background-color: #78b9b86b;
}

.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn, .xoo-wsc-container .xoo-wsc-btn {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 10px 20px;
}

.xoo-wsc-ft-buttons-cont a.xoo-wsc-ft-btn:hover, .xoo-wsc-container .xoo-wsc-btn:hover {
    background-color: #409c9bb8;
    color: #ffffff;
    border: 2px solid #409c9bb8;
}

.xoo-wsc-btn:hover .amount {
    color: #ffffff;
}

.discount-item {
	position: relative;
	text-align: center;
}

.discount-thumb {
	position: relative;
}

.discount-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	display: inline-block;
	padding: 6px 10px;
	line-height: 1;
	font-size: 13px;
	font-weight: 700;
	color: #fff;
	background: #e20000; /* أحمر خصم */
	border-radius: 6px;
	box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
@media (min-width: 768px) {
 .discount-badge { font-size: 14px; padding: 7px 12px; }
}

form#commentform p.comment-form-comment {
    display: flex;
    flex-direction: column;
}

.comment-form-rating p.stars span {
    margin-left: 10px;
    margin-top: 10px;
}

.discount-item .discount-thumb img {
    width: 100%;
    object-fit: contain;
    height: 200px;
}

/* شريط التصنيفات الفرعية تحت الهيدر */
.subcats-bar{
  background:#f7f7f9;
  position:relative;
  z-index:0;
}

.subcats-bar .subcats-scroll{
  display:flex;
  align-items:center;
  gap:10px;
  overflow:auto;
  scrollbar-width:thin;
  padding:8px 0;
}

.subcats-bar .subcats-label{
  flex:0 0 auto;
  font-weight:600;
  color:#444;
  margin-inline-end:4px;
  white-space:nowrap;
}

.subcats-bar .subcats-list{
  display:flex;
  gap:8px;
  padding:0;
  margin:0;
  list-style:none;
}

.subcats-bar .subcats-list li{
  flex:0 0 auto;
}

.subcats-bar .subcats-list a{
  display:inline-block;
  padding:8px 5px;
  border-radius:999px;
  font-size:14px;
  color:#333;
  text-decoration:none;
  white-space:nowrap;
  transition:all .2s ease;
}

.subcats-bar .subcats-list a:hover{
  color: #38a7a8;
}

.subcats-bar .subcats-list a.active{
  color:#38a7a8;
}

/* دعم RTL */
html[dir="rtl"] .subcats-bar .subcats-scroll{
  direction:rtl;
}

  :root{ --hdr-h: 0px; } /* سيتم ضبطها بالـJS حسب ارتفاع الهيدر */

  /* الهيدر ثابت */
  header{
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow .2s ease;
  }
  /* ظل خفيف عند التثبيت/التمرير */
  header.is-sticky{ box-shadow: 0 2px 12px rgba(0,0,0,.08); }

  /* شريط التصنيفات تحت الهيدر مباشرة وثابت أيضاً */
  .main_sub_cat .subcats-bar{
    position: sticky;
    top: var(--hdr-h);    /* يعتمد على ارتفاع الهيدر */
    z-index: 2;
    background: #f7f7f9; /* تأكد من لون الخلفية حتى لا يظهر شفاف */
  }

  /* تحسين تمرير أفقي للّوحة التصنيفات */
  .subcats-bar .subcats-scroll{ overflow:auto; scrollbar-width: thin; }
  
 
@media (max-width: 768px) {
      body.cat header .main-head {
        padding: 13px 0px;
    }
}

.subcat-slider .swiper-slide a span {
    font-size: 15px;
}

/* الحاوية الرئيسية للـ slider */
.subcat-slider {
  position: relative;       /* مرجع تموضع للأسهم */
  overflow: hidden;         /* يمنع ظهور الأسهم فوق العناصر العليا */
  padding: 0 44px;          /* مساحة داخلية كي لا تغطي الشرائح */
}

/* أزرار التنقّل */
.subcat-slider .swiper-button-next,
.subcat-slider .swiper-button-prev {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin-top: 0;            /* يلغي قيمة Swiper الافتراضية */
  width: 34px;
  height: 34px;
  border-radius: 999px;
  z-index: 2;               /* فوق الشرائح لكن داخل السلايدر فقط */
}

/* أماكن الزرين يمين/يسار داخل السلايدر */
.subcat-slider .swiper-button-prev { left: 8px; }
.subcat-slider .swiper-button-next { right: 8px; }

/* تصغير/إخفاء على الموبايل عند الحاجة */
@media (max-width: 767px) {
  .subcat-slider { padding: 0 24px; }
  .subcat-slider .swiper-button-next,
  .subcat-slider .swiper-button-prev { width: 28px; height: 28px; }
  /* أو:
  .subcat-slider .swiper-button-next,
  .subcat-slider .swiper-button-prev { display: none; }
  */
}

.footer-content .logo a img {
    width: 210px;
    margin-bottom: 50px;
}

.social-links ul {
    margin-left: 0;
    padding-left: 0;
}