/*
    Theme Name: Rosetta Child
    Theme URI: http://www.flatlayers.com/themes/rosetta
    Author: FlatLayers
    Author URI: http://www.flatlayers.com
    Description: Rosetta Theme Child
    Template: rosetta
    Version: 1.0
    License: GNU/GPL Version 2 or later. 
    License URI: http://www.gnu.org/licenses/gpl.html 
    Tags: custom-background, custom-colors, custom-header, custom-menu, featured-images, post-formats, theme-options
    Text Domain: rosetta-child
*/

/* Light Theme */
#rank-math-toc {
  border: 2px solid #ccc;
  padding: 15px;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

#rank-math-toc,
#rank-math-toc h3,
#rank-math-toc ol li a,
#rank-math-toc ul li a {
  color: black !important;
}

#rank-math-toc h3,
#rank-math-toc ol li,
#rank-math-toc ul li {
  font-weight: bold !important;
}

/* Dark Theme */
html[data-theme="dark"] #rank-math-toc {
  border: 2px solid #555;
  background-color: #333;
}

html[data-theme="dark"] #rank-math-toc,
html[data-theme="dark"] #rank-math-toc h3,
html[data-theme="dark"] #rank-math-toc ol li a,
html[data-theme="dark"] #rank-math-toc ul li a {
  color: white !important;
}

.fl-stories:after{
  background-color: #ed7d31!important;
}
#fl-logo span {
	display:none;
}
.woocommerce-breadcrumb {
    display: none !important;
}

.sub-menu{
	display:block!important;
}

/* For Light Theme */
#fl-header {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* For Dark Theme */
html[data-theme="dark"] #fl-header {
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.03);

}
/* For Light Theme */
.products .type-product {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s; 
	  padding:0px 0px 15px 0px!important;
}

/* For Dark Theme */
html[data-theme="dark"] .products .type-product {
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0px 4px 10px rgba(255, 255, 255, 0.02);
}
hr {
  border: none; /* Removes the default border */
  height: 2px; /* Sets the height/thickness of the line */
  background-color: #333; /* Sets the color of the line */
  width: 50%; /* Sets the width to 50% of its container */
  margin: 15px 0px; /* Adds some spacing above and below the line */
}

.product-suggestion {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f1f1f1; 
}

.product-suggestion:last-child {
  border-bottom: none; /* Removes the border from the last result */
}

.product-suggestion:hover {
  background-color: #f5f5f5;
}

.search-results-container {
  margin-top: 2px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  position: absolute;
  z-index: 1000;
  background-color: #fff; 
  border: 1px solid #ccc; 
  
}

html[data-theme="dark"] .search-results-container {
  background-color: #333; 
  border: 1px solid #ccc; 
  
}

html[data-theme="dark"] .product-suggestion:hover {
  background-color: #555;
}

html[data-theme="dark"] .product-suggestion {
  color: #f1f1f1;
  border-bottom: 1px solid #333; 
}

.searchform {
  position: relative;
}


.searchform input[type="text"][name="s"] {
  padding-right: 70px; /* Adjust this value based on the combined width of the "X" button and search icon */
}
.clear-search {
  position: absolute;
  right: calc(100% - 20%); /* Adjust as needed */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  display: none; /* Initially hidden */
  z-index: 10; /* Ensure it's above other elements */
  width: 16px; /* Width of the X icon */
  height: 16px; /* Height of the X icon */
}

.clear-search:before,
.clear-search:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px; /* Thickness of the X lines */
  background-color: #ed7d31; /* Color of the X */
  transform-origin: center;
}

.clear-search:before {
  transform: translateY(-50%) rotate(45deg);
}

.clear-search:after {
  transform: translateY(-50%) rotate(-45deg);
}

span.woocommerce-Price-amount.amount {
  color: #ed7d31;
  font-weight: bold;
}

/* Change the size of the sale price */
.woocommerce ul.products li.product .price ins .amount {
  font-size: 20px; /* Adjust size as per requirement */
}

/* Change the size of the regular price when there's no sale price */
.woocommerce ul.products li.product .price:not(:has(ins)) .amount {
  font-size: 20px; /* Adjust size as per requirement */
}

.woocommerce-additional-fields {
  display: none;
}

.overlay-search .cats a {
  font-weight: bold;
  color: #ed7d31;
}

.single-product .woocommerce-product-details__short-description {
  display: none;
}

/*
* ORDER FORM
*/

@keyframes spinner {
  to {transform: rotate(360deg);}
}

.button-loading-spinner {
  border: 2px solid transparent;
  border-radius: 50%;
  border-top: 2px solid #fff; /* or your button's text color */
  width: 14px;
  height: 14px;
  animation: spinner .6s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
}

#custom_order_form {
  padding-bottom: 20px; /* Adjust the value as per your requirement */

}

.product-purchase-container{
  border: 4px dotted #000;
  padding: 20px;
  max-width: 300px;
  margin: 0 auto;
}

.product_meta .posted_in,
.product_meta .tagged_as {
    visibility: hidden;
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

/*
* PRODUCT PAGE STYLE
*/
.custom-product-container{
  display: flex;
  flex-direction: row-reverse;
}

.text-and-form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.image-and-title-content  {
  flex: 1;
  padding: 5px;
}

.title-mobile{
  display: none;
}

.title-desktop{
      display: block;
      margin-bottom: 8px;
  }

@media only screen and (max-width: 768px) {
  .custom-product-container {
      flex-direction: column;
  }

  .image-and-title-content {
      order: 1;
  }


  .text-and-form-content {
      order:2;
  }

  .title-desktop{
      display: none;
  }
  .title-mobile{
  display: block;
}

}

.woocommerce-page div.product div.images {
  width: 95%!important;
  height: auto!important;
  margin-bottom: 8px;
}

@media only screen and (max-width: 768px) {
  .woocommerce-page div.product div.images {
      width: 100%!important;
      height: auto!important;
  }
}

.woocommerce div.product p.price, .woocommerce div.product span.price {
  margin-bottom: 25px!important;
}

.form-content .price del bdi{
  font-size: 18px; /* Adjust as per your requirement */
}

.form-content .price ins bdi{
  font-size: 20px; /* Adjust as per your requirement */
  
}
.product_meta {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.woocommerce .star-rating {
  font-size: 0.8em; /* Adjust this value as needed */
}
a.woocommerce-review-link{
  font-size: 0.6em;
  padding-top:5px;
}

#custom_order_form input {
  margin-top: 10px; /* Adjust as needed */
  width: 100%; /* Makes sure the input fields take up the full width available */
}

.cod-title {
  text-align: center;
  margin-bottom: 20px;
}

.custom-price-and-rating {
  display: flex;
  align-items: center!important; /* To vertically center align items if they have different heights */
  gap: 1rem; /* Optional spacing between price and rating */
}

.woocommerce div.product .woocommerce-product-rating{
  padding-bottom: 8px;
  display: flex; /* Enable flexbox */
  align-items: center;
}


.cod-title h6{
  margin-bottom: 0px!important;
  font-size:15px!important;
}

.woocommerce div.product form.cart{
    margin-bottom: 0px!important;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Define the keyframes for the horizontal bounce animation */
@keyframes bounceHorizontal {
  /* Start and end of the animation: element at its original position */
  0%, 20%, 50%, 80%, 100% {
      transform: translateX(0);
  }
  
  /* At 40% of the animation timeline, move the element 20px to the right */
  40% {
      transform: translateX(10px);
  }
  
  /* At 60% of the animation timeline, move the element 10px to the left */
  60% {
      transform: translateX(-10px);
  }
}

/* Apply the bounce animation to the button */
.single_add_to_cart_button {
  /* Name of animation | Duration | Repeat count */
  animation: bounceHorizontal 2s infinite;
 
}

button.single_add_to_cart_button.button.alt{
 font-size: 20px;
 font-weight: bold;
 background-color: #ed7d31!important;
 padding-left: 35px!important;
 padding-right: 35px !important;
}

.woocommerce ul.products li.product .button{
  background-color: #ed7d31;

}
.woocommerce ul.products li.product .button:hover{
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2)!important;
}
button.single_add_to_cart_button.button.alt:hover {
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2)!important;
  background-color: #ed7d31;
 }
 
.woocommerce div.product form.cart .button:hover {
  transform: scale(2);
  box-shadow: 0px 6px 8px rgba(0, 0, 0, 0.2);
}

.error-message {
  color: red;
  margin-top: 5px;
  font-size: 12px;
}

.variable-item-radio-input-wrapper img{
  display: none!important;
}

td .price{
  display: none;
}

.woocommerce div.product form.cart .variations label{
  display: flex;
  align-items: center;
  justify-content: center;
}

span.variable-item-radio-value-wrapper {
  font-size: 14px;
  font-weight: lighter;
}

th.label {
  font-size: medium;
}

button.single_add_to_cart_button.button.alt {
  font-size: 18px;
}

a.reset_variations {
  display: none!important;
}

span.woo-selected-variation-item-name {
  display: none!important;
}

.variable-item-radio-value-wrapper {
  visibility: hidden;
}

.variations label{
  justify-content: right!important;
  font-size:15px!important;
}

/**
* QUANTITY INPUT
*/
/* Hide default number input increment/decrement arrows */

.woocommerce .quantity .qty::-webkit-inner-spin-button,
.woocommerce .quantity .qty::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.woocommerce .quantity .qty {
  -moz-appearance: textfield; /* for Firefox */
  appearance: textfield;

}
/* Styling for the container */
.woocommerce .quantity .quantity-wrapper {
     display: flex;
     align-items: center; 
}

.woocommerce .quantity {
  display: flex;
  align-items: center;  
  width: 80%!important;
  margin-top: 8px!important;
  margin-bottom: 20px!important;
}


.quantity-wrapper input{
  background-color: transparent;
  font-size:19px;
  font-weight: bold;
}

/* Minus button styling */
.woocommerce .quantity .decrement {
  padding: 0 10px; /* Adjust as needed */
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  background-color: #f1f1f1;
}

/* Plus button styling */
.woocommerce .quantity .increment {
  padding: 0 10px; /* Adjust as needed */
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  background-color: #f1f1f1;

}

/* Adjustments for the input field */
.woocommerce .quantity .qty {
  text-align: center;
  border: none;
}

.quantity-title {
  font-weight: bold;
  text-align: center;
  margin-left: 20px;
}

html[data-theme="dark"] .woocommerce .quantity .decrement {
  background-color: #333;
}

html[data-theme="dark"] .woocommerce .quantity .increment {
  background-color: #333;
}


html[data-theme="dark"] .product-purchase-container{
  border: 4px dotted #f1f1f1;
}

html[data-theme="dark"] .woocommerce div.product form.cart .button {
  background-color:#ed7d31;
}

html[data-theme="dark"] .variable-items-wrapper.button-variable-items-wrapper.wvs-style-squared li:not(:has(.radio-variable-item))  {
  background-color: #333 !important;
  color: #f1f1f1 !important;
}

html[data-theme="dark"] ul.variable-items-wrapper.button-variable-items-wrapper.wvs-style-squared li.selected:not(:has(.radio-variable-item)) {
  border: 2px solid #ed7d31 !important;
}

html[data-theme="dark"] .woocommerce-Tabs-panel .single_add_to_cart_button{
  background-color:#ed7d31!important;
}

.woocommerce div.product form.cart .button{
  min-width: 90%!important;
}

ul.tabs.wc-tabs {
  display: none;
}



/*
* LEAVE REVIEW
*/

#leave-review-btn i.fa {
  font-size: 20px;
  margin-right: 5px;
  margin-left: 5px; 
}

.review-button-container {
  position: relative; 
  width: 100%; 
}

#leave-review-btn {
  display: flex;
  align-items: center; 
  cursor: pointer;
  margin-left: 20px;
  color: #ed7d31;
  font-weight: bold;
  font-size: 16px;
}

#cr_review_image {
  visibility: hidden;
}

.cr-upload-images-status::after {
  content: "إضغط للتحميل";
  color: #ed7d31; /* replace with the color you want */
  display: inline-block;
  font-weight: bold;
  padding-right: 5px;
  cursor: pointer;
}

.woocommerce-Tabs-panel {
  display: block !important;
}

#review_form_wrapper {
  display: none;
}

body.single-product div#comments {
  display: none;
}

.woocommerce div.product form.cart .variations td, .woocommerce div.product form.cart .variations th {
  padding: 0px;
}

/* CSS for mobile screens */
@media (max-width: 768px) {
    .products.columns-3 .product {
      width: calc(100% - 20px)!important;
      margin: 15px 10px!important;
  }

  .custom-price-and-rating {
    display: block;
  }
  .woocommerce div.product p.price{
    margin: 8px 0px!important;
  }
}

div#reviews{
  margin-bottom: 30px;
}
.wp-caption-text {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.comment-text .description{
  font-size: 16px;
}
.footer-nav-container .footer-nav {
  display: flex;
  justify-content: center; /* Distribute space evenly */
  list-style-type: none;
  padding: 0;
  margin:  10px; /* Reset default margin */
  border-bottom: 1px solid rgba(204, 204, 204, 0.2); /* 50% opacity */
  padding-bottom: 10px; /* Space between menu and line */

}

.footer-nav-container {
  margin-bottom: 20px; /* Space below the menu */
}

/* Style for the copyright and developer info */
#fl-footer {
  font-size: 0.7em; /* Smaller font size */
  color: #666; /* Lighter text color */
  padding-top: 10px; /* Space above the text */
}
.footer-nav-container .footer-nav li {
  padding-left: 15px; /* Space to the left of each menu item */
}

.custom-bottom-menu-class {
  display: flex;
  justify-content: center; /* Center the menu items horizontally */
  align-items: center; /* Align items vertically */
  margin-bottom: 30px;
  font-size: 14px;
}
/*
 * CUSTOM BUTTOM MENU
 * */
.custom-bottom-menu-class ul {
  list-style-type: none; /* Remove default list styling */
  padding: 0;
  margin: 0;
  display: flex; /* Display list items in a row */
}

.custom-bottom-menu-class li {
  margin-right: 20px; /* Space between menu items */
  /* Additional styling for list items */
}

.custom-bottom-menu-class a {
  text-decoration: none; /* Optional: removes underline from links */
  transition: color 0.3s ease;
}
.custom-bottom-menu-class a:hover{
    color: #ffba00!important; /* Change text color on hover and active */
}

@media screen and (max-width: 768px) {
  .custom-bottom-menu-class ul {
      flex-direction: column; /* Stack items vertically */
  }

  .custom-bottom-menu-class li {
      margin-right: 0; /* Remove the right margin */
      margin-bottom: 10px; /* Add some space between items */
      text-align: center; /* Center-align the text */

  }
  .custom-bottom-menu-class a {
    display: block; /* Make links take up the full width of li */
}
}

.fl-widget ul.menu li span.arrow{
  display: none;
}
.custom-bottom-menu-class .current-menu-item a {
  padding-left: 10px;
  padding-right: 10px;
  color: #ed7d31; /* Change to your preferred color */
}
.custom-bottom-menu-class .current-menu-item a {
  background-color: #ed7d31; /* Change to your preferred color */
  color: #ffffff; /* This is for the text color, change if needed */
}

/* ADDING THE STYLE FROM CUSTOMZE PAGE */

#fl-topsearch{
	vertical-align: baseline;
}
#fl-footer{
	 box-shadow: 1px -1px 10px -5px rgba(-2, 0, 0, 0.2);
}
.woocommerce-store-notice, p.demo_store {
    background-color:#ffba00;
	  color:#000;
    font-size:15px;  
}
.woocommerce-store-notice__dismiss-link {
display:none;
}
@media only screen and (max-width: 600px) {
  header {
      padding-top:55px;
  }
	.clear-search {
	right: calc(100% - 35%);
}
	.woocommerce-notices-wrapper{
		margin-top: 15px!important;
	}	
}
header {
    padding-top: 45px;
}

.menu-main-menu-container{
	margin-top:20px;
}
.woocommerce-ordering {
 display: none;
}
.woocommerce-result-count {
  display: none;
}
	.woocommerce-notices-wrapper{
		margin-top: 45px;
	}	
@media (min-width: 601px) and (max-width: 1024px) {
	.woocommerce-notices-wrapper{
		margin-top: 5px!important;
	}	
}
.fl-box .title{
	margin-top:45px;
}
.fl-stories {
  visibility: hidden;
  height: 50px;
}
.ht_ctc_style.ht_ctc_chat_style {
	animation: bounceHorizontal 2s infinite;
}
.woocommerce ul.products li.product .button {
    border: 1px solid #ed7d31;
    background-color: transparent;
    font-size: 13px;
	  color: #000000;
}

html[data-theme="dark"] .woocommerce ul.products li.product .button {
	color: #ffffff;
}/*
body {
    -webkit-user-select: none; 
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}*/
#fl-drawer-icon .text {
 display:none;
}
.custom-categories-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 20px;
}

.custom-categories-list a {
    margin-right: 15px;
    text-decoration: none;
    font-weight: bold;
    color: #333;
}

.custom-categories-list a:last-child {
    margin-right: 0;
}
