/*
Theme Name: Blocksy Child
Theme URI: https://creativethemes.com/blocksy/
Description: Child theme for Blocksy
Author: Rafik-dev
Author URI: https://weavdev.com
Template: blocksy
Version: 1.0.0
*/


/**/
/* Fullscreen overlay */
#preloader {
  position: fixed;
  inset: 0;
  background: #FFF3E6; /* your background */
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .4s ease, visibility .4s ease;
}

/* Image animation */
.loader-img {
  width: 80px; /* adjust size */
  height: auto;
  animation: pulse 1.2s infinite ease-in-out;
}

/* Animation effect */
@keyframes pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Hide loader */
#preloader.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* full screen */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero-slides::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35); /* 35% dark overlay */
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out, transform 8s ease; /* zoom animation */
}

/* When slide is active */
.hero-slide.active {
  opacity: 1;
  transform: scale(1.1); /* small zoom */
}

/* Optional: zoom only on hover */
.hero-slide:hover {
  transform: scale(1.08);
}

/* Content always visible */
.hero-content {
  position: relative;
  text-align: center;
  color: #fff3e6;
  z-index: 2;
  padding: 20px;
}

.hero-content h1 {
  color: #fff3e6;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.hero-btn {
    background-color: #01215000;
    border: 3px solid #fff3e6;
    color: #fff3e6;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.hero-btn:hover {
  background-color: #fff3e6;   /* gold hover */
  color: #796f64;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .hero-btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}

/* Section Title */
.section-title {
  font-size: 1.25rem;   /* h5 size ~20px */
  font-weight: 400;
  text-align: center;
  margin: 40px 0 30px;
  color: #222;
  position: relative;
  letter-spacing: 0.5px;
}

/* modern subtle underline */
.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: #0073e6; /* pick your accent color */
  margin: 8px auto 0;
  border-radius: 2px;
}

/*Benefits*/
.benefits {
  background: #fff;
  padding: 60px 20px;
}

.benefits .container {
  max-width: 1100px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  text-align: center;
}

.benefit {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.icon-circle {
  width: 100px;
  height: 100px;
  background: #796F64;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.icon-circle img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}


.benefit-text p {
  margin-top: 15px;
}

.benefit p {
  font-size: 0.85rem;
  color: #444;
  line-height: 1.4;
}

@media (max-width: 768px) {
.icon-circle {
  width: 70px;
  height: 70px;
  background: #796F64;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.icon-circle img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}


.benefit-text p {
  margin-top: 15px;
}

.benefit p {
  font-size: 0.7rem;
  color: #444;
  line-height: 1.4;
}
}



/*Categories section*/
.category-showcase {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr); /* Desktop: 8 per row */
  gap: 30px;
  justify-items: center;
  margin-top: 20px;
}

.category-card {
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-image {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 10px;
  border: 2px solid #f0f0f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-title {
  font-size: 14px;
  margin: 0;
}
/* Tablet (max-width 1024px) → 4 per row */
/* Mobile (max-width 768px) → horizontal scroll */
@media (max-width: 768px) {
  .category-grid {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 10px;
    scrollbar-width: none; /* Firefox */
  }
  .category-showcase {
  padding: 0px 20px;
  }

  .category-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .category-card {
    flex: 0 0 auto;
    width: 80px; /* smaller cards */
  }

  .category-image {
    width: 70px;
    height: 70px;
  }

  .category-title {
    font-size: 10px;
  }
}
@media (max-width: 768px) {
  .category-showcase {
    position: relative;
  }

  .category-showcase::after,
  .category-showcase::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30px;
    pointer-events: none;
    z-index: 2;
  }

  .category-showcase::before {
    left: 0;
    background: linear-gradient(to right, #fff 70%, transparent);
  }

  .category-showcase::after {
    right: 0;
    background: linear-gradient(to left, #fff 70%, transparent);
  }
}




/* Unique-product */
.cta-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  max-width: 1100px;
  margin: 60px auto;
  padding: 50px;
  background: #FFF3E6;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

/* Slides (image left) */
.slides {
  position: relative;
  min-height: 500px;
  border-radius: 16px;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1.02);
  z-index: 1;
}

/* Content (right) */
.cta-content h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #012050;
}

.cta-content p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #444;
}

.cta-btn {
  display: inline-block;
  background: #FFF3E6;
  border: 2px solid #012050;
  color: #012050;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: all 0.3s;
}

.cta-btn:hover {
  color: #FFF3E6;
  background: #012050;
  border: 2px solid #012050;
}

/* Arrows */
.slide-arrows {
  display: flex;
  gap: 10px;
  padding-left: 20px;
}

.arrow {
  background: #FFF3E6 ;
  border: 2px solid #012050;
  font-size: 23px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}

.arrow:hover {
  background: #012050;
  color: #FFF3E6 ;
}

/* Text animations */
.cta-content h2,
.cta-content p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.cta-content h2.show,
.cta-content p.show {
  opacity: 1;
  transform: translateY(0);
}
.animate-text {
  animation: slideFade 0.6s ease forwards;
}

@keyframes slideFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media(max-width: 768px) {
  .cta-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 30px 20px;
  }
  .slides {
    min-height: 300px;
  }
  .slide-arrows {
    justify-content: center;
    padding-left: 0px;
  }
}



/*New products*/
.new-products {
  padding: 60px 40px;
}
.packs {
  padding: 60px 40px;
}
.browse-more-btn {
  display: block;
  font-size: 12px;
  color: #333;
  text-decoration: underline;
  text-align: right;   /* push text to the far right */
  margin-top: 15px;    /* space above link */
}
.browse-more-btn:hover {
  color: #333;         /* no color change */
  text-decoration: underline; /* keep underline */
}


.promotion {
  padding: 60px 40px;
}


/*Products card*/
/*All website product cards adjusment*/
/* Force WooCommerce stars to display properly */
.woocommerce .star-rating::before,
.woocommerce .star-rating span::before {
  font-family: "star", "Arial Unicode MS", "DejaVu Sans", sans-serif !important;
  content: "★★★★★";
  letter-spacing: 2px;
}

/* Front page product cards adjustments */
/* Packs section only */
.packs ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; /* adjust title size */
  line-height: 1.4;
}

.packs ul.products li.product .star-rating {
  transform: scale(0.85); /* shrink rating */
  margin: 5px 0;
}

.packs ul.products li.product .price {
  font-size: 11px; /* adjust price */
}

.packs ul.products li.product .button {
  font-size: 11px;
  padding: 6px 10px;
}


/* Promotion section only */
.promotion ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; /* adjust title size */
  line-height: 1.4;
}

.promotion ul.products li.product .star-rating {
  transform: scale(0.85); /* shrink rating */
  margin: 5px 0;
}

.promotion ul.products li.product .price {
  font-size: 11px; /* adjust price */
}

.promotion ul.products li.product .button {
  font-size: 11px;
  padding: 6px 10px;
}


@media (max-width: 425px) {
.home ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; /* smaller title */
  line-height: 1.4;
  padding-bottom: 0px;
}

.home ul.products li.product .star-rating {
  transform: scale(0.65); /* shrink rating */
  margin: 5px 0;
}

.products li.product .price {
  font-size: 10px; /* smaller price */
}

.products li.product .button {
  font-size: 9px;
  padding: 6px 10px;
}

.packs ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; /* adjust title size */
  line-height: 1.4;
  padding-bottom: 0px;
}

.packs ul.products li.product .star-rating {
  transform: scale(0.65); /* shrink rating */
  margin: 5px 0;
}

.packs ul.products li.product .price {
  font-size: 10px; /* adjust price */
}

.packs ul.products li.product .button {
  font-size: 9px;
  padding: 6px 10px;
}
.promotion ul.products li.product .woocommerce-loop-product__title {
  font-size: 12px; /* adjust title size */
  line-height: 1.4;
  padding-bottom: 0px;
}

.promotion ul.products li.product .star-rating {
  transform: scale(0.65); /* shrink rating */
  margin: 5px 0;
}

.promotion ul.products li.product .price {
  font-size: 10px; /* adjust price */
}

.promotion ul.products li.product .button {
  font-size: 9px;
  padding: 6px 10px;
}
}
/**/

/* === Reviews Section === */
.reviews-section {
  margin: 60px 0;
  text-align: center;
}

.reviews-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 30px;
}


.review-text {
  font-style: italic;
  color: #333;
  margin-bottom: 8px;
}

.review-author {
  font-weight: 500;
  color: #555;
  font-size: 0.9rem;
}



.reviews-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
}

.review-card {
    background: #f2f5f7;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.review-content p {
  font-size: 14px;
  line-height: 1.4em;
  max-height: 90px; 
  overflow: hidden;
}

.review-content .read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  color: #0073aa;
  text-decoration: none;
}

.review-content .read-more:hover {
  text-decoration: underline;
}

.review-meta {
  margin-top: auto;
  font-size: 10px;
  color: #555;
  font-style: italic;
}

.swiper {
  padding: 20px 40px; /* space for arrows */
}

@media (max-width: 768px) {
    .brand-logos {
      gap:10px;
  }
  .review-card {
    height: auto;
    min-height: 180px;
  }
  .new-products {
  padding: 60px 15px;
}
.packs {
  padding: 60px 15px;
}

.promotion {
  padding: 60px 15px;
}
}
.review-stars {
  margin: 10px 0;
  text-align: center; /* centers the stars */
}

.review-stars .star-rating {
  display: inline-block; /* keeps stars grouped */
  font-size: 14px;       /* a bit bigger */
  color: #ffcc00;
}

.swiper-button-prev,
.swiper-button-next {
  width: 32px;
  height: 32px;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 14px;
  font-weight: bold;
  color: #012050;
}

.swiper-button-prev:hover::after,
.swiper-button-next:hover::after {
  color: #E2B138;
}

@media (max-width: 768px) {
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }

  
[data-products=type-2] .ct-woo-card-actions .button, [data-products=type-2] .ct-woo-card-actions .added_to_cart {
font-size: small;
}

}








/* Brands Section */
.brands {
  overflow: hidden; /* hides extra logos */
  padding: 40px 0;
  background: #fff; /* optional */
  direction: ltr !important; /* force LTR so it’s not reversed in Arabic */
}

.brand-logos {
  display: flex;
  gap: 60px; /* space between logos */
  animation: scroll 25s linear infinite; /* speed of the carousel */
  width: max-content; /* allow scrolling */
}

.brand {
  flex: 0 0 auto; /* prevent shrinking */
}

.brand img {
  width: 140px;  /* fix same width */
  height: 60px;  /* fix same height */
  object-fit: contain; /* keeps proportions */
  opacity: 1;
  filter: none;
}

/* Keyframes for infinite scroll */
@keyframes scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); } /* adjust depending on duplicated content */
}

/* Force WooCommerce prices to display left-to-right */
.woocommerce-Price-amount,
.woocommerce-Price-amount bdi {
    direction: ltr !important;
    unicode-bidi: embed !important;
}

/* If you want the currency symbol to stay after the number */
.woocommerce-Price-currencySymbol {
    margin-left: 4px;
    margin-right: 0;
}

.faq-section {
  padding: 60px 20px;
  background: #fff;
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid #eee;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 15px;
  font-size: 16px;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: "▾";
  transition: transform 0.3s;
}
.faq-question.active::after {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 15px;
}
.faq-answer p {
  margin: 15px 0;
  font-size: 14px;
}
/* FAQ responsive text size */
@media (max-width: 768px) {
  .faq-question {
    font-size: 14px; /* smaller questions */
  }
  .faq-answer p {
    font-size: 12px; /* smaller answers */
    line-height: 1.5;
  }
}



/*Contact form*/
/* === Ninja Form Custom Styling === */
#nf-form-2-cont .nf-form-title {
  display: none;
}
#nf-form-2-cont .nf-form-fields-required {
  display: none !important;
}

#nf-form-2-cont {
  max-width: 650px;
  margin: 0 auto;
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  font-family: 'Raleway', sans-serif;
}

/* Form Title */
#nf-form-2-cont .nf-form-title h3 {
  font-family: 'Sora', sans-serif;
  font-size: 28px;
  color: #012050;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Labels */
#nf-form-2-cont .nf-field-label label {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #012050;
  margin-bottom: 6px;
  display: block;
}

/* Inputs & Textareas */
#nf-form-2-cont input[type="text"],
#nf-form-2-cont input[type="email"],
#nf-form-2-cont input[type="tel"],
#nf-form-2-cont textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-family: 'Raleway', sans-serif;
  font-size: 15px;
  transition: all 0.25s ease;
  background: #f9f9f9;
}

#nf-form-2-cont input:focus,
#nf-form-2-cont textarea:focus {
  border-color: #E2B138;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(226, 177, 56, 0.2);
}

/* Submit Button */
#nf-form-2-cont input[type="submit"] {
  background: #012050;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0;
}

#nf-form-2-cont input[type="submit"]:hover {
  background: #E2B138;
  color: #012050;
}

/* Error messages */
#nf-form-2-cont .nf-error-wrap {
  font-size: 13px;
  font-family: 'Raleway', sans-serif;
  color: red;
  margin-top: 6px;
}

/* Required symbol */
#nf-form-2-cont .ninja-forms-req-symbol {
  color: #E2B138;
  font-weight: bold;
}



/*Maps style*/
.map-container {
  max-width: 900px;        /* control max width */
  margin: 40px auto;       /* center horizontally + add top/bottom spacing */
  padding: 0 20px;         /* small space from left/right edges */
  border-radius: 16px;     
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;   /* take full width of container */
  height: 400px;
  border: 0;
}

/*arabic version*/
.faq-answer .phone-number {
  direction: ltr !important;
  unicode-bidi: embed !important;
  white-space: nowrap !important;
  display: inline-block !important;
  font-weight: bold !important;
  font-size: inherit !important;
}

.contact-info .contact-text a[href^="tel:"] {
  direction: ltr !important;
  unicode-bidi: bidi-override !important;
  display: inline-block !important;
}


/* Apply Cairo font for Arabic pages */
html[lang="ar"], 
html[lang="ar"] body, 
html[lang="ar"] * {
  font-family: 'Cairo', "Segoe UI Symbol", "Noto Sans Symbols", sans-serif !important;
}
html[lang="ar"] .section-title {
  font-weight: 700 !important;
}

/* Main menu links */
html[lang="ar"] #header-menu-1 .ct-menu-link {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important;
}

/* Submenu links */
html[lang="ar"] #header-menu-1 .sub-menu .ct-menu-link {
  font-family: 'Cairo', sans-serif !important;
  font-weight: 700 !important; /* optional: lighter for submenus */
}
/* Make product card text bold for Arabic */
html[lang="ar"] ul.products li.product,
html[lang="ar"] ul.products li.product * {
  font-weight: 700 !important;
}

/* Right-align titles in RTL */
body.rtl .entry-header .page-title {
  text-align: right;
}

body.rtl .stars-block {     display: none !important; }

/* Prevent header flipping on Arabic (force LTR layout for header) */
body.rtl .ct-header,
body.rtl .ct-container,
body.rtl [data-row="middle"] {
    direction: ltr !important;
    text-align: left !important;
}

/* Keep logo always on the left */
body.rtl .site-branding {
    order: -1 !important;
}

/* Keep account, search, and cart always on the right */
body.rtl .ct-header-account,
body.rtl .ct-header-search,
body.rtl .ct-header-cart,
body.rtl .ct-header-trigger {
    order: 99 !important;
}


/*filter-price-slider*/
.wc-block-product-filter-price-slider .text input[type=text] {
  direction: ltr !important;
}


.header-wishlist-icon {
  margin-left: 15px;
  display: inline-block;
}

.header-wishlist-icon .wishlist_products_counter {
  font-size: 18px;
  color: inherit;
}

.header-wishlist-icon .wishlist_products_counter:hover {
  color: #ff4d4d;
}
