/*
Theme Name: Twenty Twenty-Four Child
Theme URI: https://wordpress.org/themes/twentytwentyfour/
Description: A child theme of Twenty Twenty-Four with Webflow integration for LEVELSEVEN
Author: Your Name
Author URI: https://example.com
Template: twentytwentyfour
Version: 2.2.0
Text Domain: twentytwentyfour-child
*/

/* Import the parent theme's style.css */
@import url("../twentytwentyfour/style.css");

/* Custom styles for the child theme */

body {
  background: #f8f6f4 !important;
  font-family: "IBM Plex Sans Arabic", "Helvetica Neue", "Helvetica", "Arial",
    sans-serif !important;
  /* 1 */
}

.product-title {
  text-decoration: none !important;
  transition: 350ms ease-in-out;
}

.product-title:hover {
  color: #777;
}

.wc-block-mini-cart__badge {
  background-color: red;
  color: #fff;
  font-size: 12px;
  padding: 0 5px;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  right: -5px;
  line-height: 1;
}

.w-nav-brand img,
.footer1_logo {
  max-width: 100%;
  height: auto;
}

/* Override any conflicting parent theme styles */
body.webflow-enabled {
  font-family: inherit;
  direction: rtl; /* For Arabic content */
}

/* Fix any jQuery UI conflicts */
.ui-widget-overlay {
  z-index: 10000;
}

/* Default page template styles */
.section_default-page {
  padding: 80px 0;
}

.page-content-component {
  max-width: 1200px;
  margin: 0 auto;
}

/* WooCommerce specific styling */
.woocommerce-cart .page-content-component,
.woocommerce-checkout .page-content-component,
.woocommerce-account .page-content-component {
  max-width: 1000px;
}

/* Cart page */
.woocommerce-cart table.cart td.actions .coupon .input-text {
  width: 150px;
  margin-right: 5px;
  padding: 8px 12px;
}

/* Checkout page */
.woocommerce-checkout .woocommerce-billing-fields h3,
.woocommerce-checkout .woocommerce-additional-fields h3,
#order_review_heading {
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Account page */
.woocommerce-account .woocommerce-MyAccount-navigation {
  float: right;
  width: 25%;
}

.woocommerce-account .woocommerce-MyAccount-content {
  float: left;
  width: 70%;
}

/* RTL adjustments for Arabic */
html[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-navigation {
  float: left;
}

html[dir="rtl"] .woocommerce-account .woocommerce-MyAccount-content {
  float: right;
}

/* Footer Styling */

footer .product-categories {
  list-style-type: none;
  padding: 0px;
}

/* Shop Layout Styles */
.shop_layout-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media screen and (max-width: 991px) {
  .shop_layout-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Results Count Styles */
.shop_results-count {
  margin-bottom: 1.5rem;
}

.shop_results-count .woocommerce-result-count {
  margin: 0 !important;
  font-size: 0.9rem;
  color: #666;
}

/* Filter Component Styles */
.filter_component {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 1.5rem;
  top: 100px;
}

.filter_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 1rem;
}

.filter_reset-link {
  font-size: 14px;
  color: #777;
  text-decoration: underline;
}

.filter_section {
  margin-bottom: 1.5rem;
}

.filter_section-header {
  margin-bottom: 0.75rem;
}

.filter_categories-list,
.filter_tags-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.filter_checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.filter_checkbox {
  margin-left: 0.5rem;
}

.filter_checkbox-count {
  margin-right: 0.5rem;
  color: #777;
  font-size: 14px;
}

/* Scrollbar styles for filter lists */
.filter_categories-list::-webkit-scrollbar,
.filter_tags-list::-webkit-scrollbar {
  width: 4px;
}

.filter_categories-list::-webkit-scrollbar-thumb,
.filter_tags-list::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

.filter_categories-list::-webkit-scrollbar-track,
.filter_tags-list::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

.filter_price-range {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.filter_price-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter_price-input-wrap {
  flex: 1;
}

.filter_price-label {
  display: block;
  font-size: 14px;
  margin-bottom: 0.25rem;
}

.filter_price-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.filter_price-divider {
  font-weight: bold;
}

.filter_price-slider-wrap {
  padding: 0 0.5rem;
  margin-top: 0.5rem;
}

.filter_price-slider {
  height: 4px;
  background-color: #ddd;
  border-radius: 2px;
  position: relative;
}

.ui-slider-range {
  height: 100%;
  background-color: #666;
  position: absolute;
}

.ui-slider-handle {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 2px solid #666;
  border-radius: 50%;
  position: absolute;
  top: -6px;
  margin-left: -8px;
  cursor: pointer;
}

.filter_sort-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
}

.filter_footer {
  margin-top: 2rem;
}

.filter_submit-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.filter_submit-button:hover {
  background-color: #333;
}

/* Mobile Toggle */
.filter_mobile-toggle {
  display: none;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

@media screen and (max-width: 991px) {
  .filter_mobile-toggle {
    display: flex;
  }

  .shop_filter-column {
    display: none;
  }

  .shop_filter-column.is-visible {
    display: block;
    margin-bottom: 2rem;
  }
}

/* Hide default WooCommerce ordering */
.woocommerce-ordering {
  display: none;
}

/* RTL support */
html[dir="rtl"] .filter_checkbox {
  margin-right: 0;
  margin-left: 0.5rem;
}

html[dir="rtl"] .filter_checkbox-count {
  margin-right: 0;
  margin-left: 0.5rem;
}

/* Ensure pagination is centered */
.woocommerce-pagination {
  text-align: center;
  margin-top: 2rem;
}

/* Customize WooCommerce result count */
.woocommerce-result-count {
  margin: 0 0 1rem !important;
}

/* Product Gallery Slider Styles */
.product-gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

.product_image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-gallery-slider:hover .gallery-nav {
  opacity: 1;
}

.next-slide {
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.507) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #ffffff;
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.prev-slide {
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.507) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  color: #ffffff;
  width: 20%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

/* Make sure the first slide is visible by default */
.gallery-slide:first-child {
  opacity: 1;
  visibility: visible;
}

/* Hide navigation on products with only one image */
.product-gallery-slider.single-image .gallery-nav {
  display: none;
}

/* Product Gallery Slider Styles - Minimal Fix */
.product-gallery-slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.gallery-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.gallery-slide.active {
  opacity: 1;
  visibility: visible;
}

/* Make sure images stay within their containers */
.product_image {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Simple navigation placement */
.gallery-nav {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.3s ease;
  height: 100% !important;
}

.product_image-wrapper:hover .gallery-nav {
  opacity: 1;
}

/* Simple navigation buttons */
/* .prev-slide,
.next-slide {
    background-color: rgba(255, 255, 255, 0.7);
    color: #000;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
} */

/* Fix for RTL navigation arrows */
html[dir="rtl"] .prev-slide {
  transform: rotate(180deg);
}

html[dir="rtl"] .next-slide {
  transform: rotate(180deg);
}

/* Override previous RTL transformations */
html[dir="rtl"] .prev-slide,
html[dir="rtl"] .next-slide {
  transform: none !important;
}

/* Use the correct characters for each direction */
html[dir="rtl"] .prev-slide:after {
  content: "‹";
}

html[dir="rtl"] .next-slide:after {
  content: "›";
}

html:not([dir="rtl"]) .prev-slide:after {
  content: "›";
}

html:not([dir="rtl"]) .next-slide:after {
  content: "‹";
}

.prev-slide,
.next-slide {
  font-size: 0; /* Hide the default character */
}

.prev-slide:after,
.next-slide:after {
  font-size: 24px; /* Set the size for the new character */
  line-height: 1;
}

/*  Product Card styling  */

.product-card-content.top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
}

.category_tag {
  width: 100%;
}

.price-tag {
  width: 100%;
  display: flex;
  justify-content: left;
  gap: 6px;
  font-size: 1rem !important;
}

ins {
  text-decoration: none !important;
}

/* del {

text-decoration: none !important;
    
} */

del .woocommerce-Price-amount {
  color: white;
  background: #771a1a;
  padding: 0px 10px 0px 10px;
  border-radius: 9px;
  text-decoration: line-through rgba(255, 0, 0, 0.568) solid 3px;
}

/* del .woocommerce-Price-amount::after {

    content:'عرض خاص';
    color:  #771a1a;
    background-color: white;
    padding: 0px 10px;
    margin:0px 10px 0px 0px;
    border-radius: 7px;
    text-decoration: none !important;



} */

/* WooCommerce gallery styling */
.woocommerce-product-gallery {
  width: 100%;
  margin-bottom: 30px;
}

.woocommerce-product-gallery__wrapper {
  margin: 0;
  padding: 0;
}

.woocommerce-product-gallery__image {
  margin-bottom: 10px;
}

/* Thumbnails styling */
.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 0;
  list-style: none;
}

.flex-control-thumbs li {
  width: 70px;
  cursor: pointer;
}

.flex-control-thumbs img {
  width: 100%;
  opacity: 0.6;
  transition: all 0.2s;
}

.flex-control-thumbs img:hover,
.flex-control-thumbs img.flex-active {
  opacity: 1;
  border: 2px solid #333;
}

/* Styling Single Product Page  */
.woocommerce-product-gallery__trigger {
  display: none !important;
}

/* Container styling */
.woocommerce-variation-add-to-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
}

/* Quantity input styling */
.quantity {
  position: relative;
  width: 80px;
}

.quantity input[type="number"] {
  height: 42px;
  width: 100%;
  padding: 0 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  font-size: 14px;
  -moz-appearance: textfield; /* Remove Firefox arrows */
}

/* Add to cart button styling */
.single_add_to_cart_button {
  flex: 1;
  background-color: #000 !important;
  color: #fff !important;
  border: none !important;
  padding: 12px 20px !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px !important;
  transition: background-color 0.3s;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.single_add_to_cart_button:hover {
  background-color: #333 !important;
}

.single_add_to_cart_button.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Buy Now button (if you want to add one like in the image) */
.buy-now-button {
  width: 100%;
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 2px !important;
  margin-top: 10px;
  transition: background-color 0.3s;
}

.buy-now-button:hover {
  background-color: #f9f9f9 !important;
}

/* For RTL support (since your site appears to be in Arabic) */
.rtl .woocommerce-variation-add-to-cart {
  flex-direction: row-reverse;
}

.bottom-menu {
  background-color: #f5f5f5;
  max-height: 30rem;
  position: fixed;
  inset: auto 0% 0%;
  padding: 0px;
  z-index: 1000;
  box-shadow: 0 4px 2.9rem -1px #000000d7;
}
.bottom-menu a {
  text-decoration: none !important;
}

.wrapper_bottom-menu {
  flex-flow: row;
  height: 100%;
  justify-content: space-between;
  align-items: center;
  display: flex;
  height: 100%;
}

.bottom-menu-item {
  flex-flow: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  padding: 10px;
  height: 100%;
  display: flex;
}

.bottom-menu-item:hover {
  background-color: #ececec;
}

.bottom-menu .wc-block-mini-cart__button {
  padding: 0px !important;
}

@media screen and (min-width: 990px) {
  .bottom-menu {
    display: none;
  }
}

.footer1_component ul {
  padding: 0px !important;
  list-style-type: none;
}

/* WooCommerce Sidebar Filter Styles */

/* Sidebar Header */
.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid #eaeaea;
  border-radius: 8px 8px 0 0;
}

.filter-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.close-filter-btn {
  background: none;
  border: none;
  font-size: 24px;
  color: #777;
  cursor: pointer;
  padding: 0 5px;
  line-height: 1;
}

.close-filter-btn:hover {
  color: #333;
}

/* Widget Container */
.woocommerce-sidebar-widgets {
  padding: 20px;
  overflow-y: auto;
}

/* All Widgets */
.woocommerce-sidebar-widgets .widget {
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eaeaea;
}

.woocommerce-sidebar-widgets .widget:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Widget Title */
.woocommerce-sidebar-widgets .widget h4.widget-title {
  font-size: 16px;
  margin-top: 0;
  margin-bottom: 15px;
  padding-bottom: 10px;
  position: relative;
  font-weight: 600;
  color: #333;
}

.woocommerce-sidebar-widgets .widget h4.widget-title:after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50px;
  height: 2px;
  background-color: #333;
}

/* Category and Tag Lists */
.woocommerce-sidebar-widgets ul.product-categories,
.woocommerce-sidebar-widgets .tagcloud,
.woocommerce-sidebar-widgets ul.woocommerce-widget-layered-nav-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.woocommerce-sidebar-widgets ul.product-categories li,
.woocommerce-sidebar-widgets ul.woocommerce-widget-layered-nav-list li {
  padding: 8px 0;
  transition: all 0.3s ease;
}

.woocommerce-sidebar-widgets ul.product-categories li:last-child,
.woocommerce-sidebar-widgets
  ul.woocommerce-widget-layered-nav-list
  li:last-child {
  border-bottom: none;
}

.woocommerce-sidebar-widgets ul.product-categories li a,
.woocommerce-sidebar-widgets ul.woocommerce-widget-layered-nav-list li a {
  color: #666;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.woocommerce-sidebar-widgets ul.product-categories li a:hover,
.woocommerce-sidebar-widgets ul.woocommerce-widget-layered-nav-list li a:hover {
  color: #000;
}

.woocommerce-sidebar-widgets .count {
  float: left;
  background-color: #f5f5f5;
  color: #777;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 15px;
}

/* Price Filter */
.woocommerce-sidebar-widgets .price_slider_wrapper {
  padding-top: 10px;
}

.woocommerce-sidebar-widgets .ui-slider-horizontal {
  height: 4px;
  background-color: #e6e6e6;
  border: none;
  margin-bottom: 20px;
}

.woocommerce-sidebar-widgets .ui-slider .ui-slider-range {
  background-color: #333;
}

.woocommerce-sidebar-widgets .ui-slider .ui-slider-handle {
  width: 16px;
  height: 16px;
  top: -6px;
  background-color: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  cursor: pointer;
}

.woocommerce-sidebar-widgets .price_slider_amount {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.woocommerce-sidebar-widgets .price_slider_amount .price_label {
  width: 100%;
  order: 1;
  margin-bottom: 15px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.woocommerce-sidebar-widgets .price_slider_amount button {
  order: 2;
  flex: 1;
  background-color: #333;
  color: #fff;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.woocommerce-sidebar-widgets .price_slider_amount button:hover {
  background-color: #000;
}

/* Tag Cloud */
.woocommerce-sidebar-widgets .tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.woocommerce-sidebar-widgets .tagcloud a {
  display: inline-block;
  padding: 6px 12px;
  background-color: #f5f5f5;
  color: #666;
  border-radius: 4px;
  font-size: 12px !important;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-sidebar-widgets .tagcloud a:hover {
  background-color: #333;
  color: #fff;
}

/* Swatch Filters */
.cfvsw-swatches-container {
  display: flex;
  align-items: center;
}

.cfvsw-swatches-option {
  border: 1px solid #ddd;
  transition: all 0.3s ease;
  cursor: pointer;
}

.cfvsw-swatches-option:hover {
  border-color: #333;
  transform: scale(1.05);
}

.cfvsw-label-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 12px;
  font-size: 12px;
  background-color: #f5f5f5;
}

/* Color swatches */
.cfvsw-swatches-option[data-slug="000000"] {
  background-color: #000 !important;
}

.cfvsw-swatches-option[data-slug="0000ff"] {
  background-color: #00f !important;
}

.cfvsw-swatches-option[data-slug="aa4a44"] {
  background-color: #aa4a44 !important;
}

/* RTL Support for Arabic */
.shop-filter-sidebar {
  direction: rtl;
  text-align: right;
}

/* Filter button styles */
#filter-toggle-button {
  display: none;
  margin: 0 15px 15px;
  width: auto;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

#filter-toggle-button:hover {
  background-color: #000;
}

.filter-icon {
  margin-left: 8px;
}

@media (max-width: 991px) {
  #filter-toggle-button {
    display: flex;
  }
}

/* Shop Layout */
.shop-layout-container {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
}

@media (max-width: 991px) {
  .shop-layout-container {
    grid-template-columns: 1fr;
  }
}

/* Product Grid */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.woocommerce-result-count-wrapper {
  color: #666;
}

.woocommerce-ordering {
  position: relative;
}

.woocommerce-ordering select {
  padding: 8px 30px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  appearance: none;
  cursor: pointer;
}

.woocommerce-ordering:after {
  content: "↓";
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
