body {
  direction: rtl;
  height: 100%;
  width: 100%;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --chewy-blue: #0c69c8;
  --chewy-dark: #084b8a;
  --promo-yellow: #ffd24a;
}

/* swiper */
.banner-swiper {
  width: 100%;
  max-width: 100%;
  /* يمنع تجاوز حدود الكونتينر */
}

.banner-swiper .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
}

.banner-swiper .swiper-slide img {
  width: 100%;
  aspect-ratio: 20 / 9;
  /* النسبة المطلوبة */
  object-fit: cover;
  /* يملأ الإطار بدون تشويه */
  border-radius: 8px;
  /* اختياري للتصميم */
}

/* أزرار التنقل */
.banner-swiper .swiper-button-next,
.banner-swiper .swiper-button-prev {
  color: #fff;
  /* أيقونة بيضاء */
  background: rgba(0, 0, 0, 0.25);
  /* خلفية خفيفة */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}

.banner-swiper .swiper-button-next:hover,
.banner-swiper .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.45);
  /* فقط تغميق بسيط عند الهوفر */
}

/* النقاط (pagination) */
.banner-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.7);
  /* لون محايد */
  width: 10px;
  height: 10px;
  opacity: 1;
  margin: 0 4px;
  transition: background 0.25s ease;
}

.banner-swiper .swiper-pagination-bullet-active {
  background: #007bff;
  /* لون مميز للنقطة النشطة */
}

/* الشريط الترويجي */
.promo-bar {
  direction: ltr !important;
  background: var(--chewy-blue);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.4rem 0;
}

.promo-bar .promo-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.promo-bar .fa-truck-fast {
  color: var(--promo-yellow);
}

/* النافبار الأساسي */
.chewy-navbar {
  direction: ltr !important;
  background: var(--chewy-blue);
  color: #fff;
  padding: 0.75rem 0;
}

.chewy-navbar .navbar-brand {
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.5px;
  font-size: 1.6rem;
}

.chewy-navbar .navbar-brand:hover {
  color: #fff;
  opacity: 0.9;
}

.chewy-navbar .nav-link {
  color: #fff;
  font-weight: 600;
}

.chewy-navbar .nav-link:hover,
.chewy-navbar .nav-link:focus {
  color: #eaf4ff;
}

/* البحث */
.search-wrapper {
  flex: 1 1 auto;
  max-width: 580px;
}

.search-input-group .form-control {
  border-radius: 999px 0 0 999px;
  padding-left: 1rem;
  padding-right: 1rem;
  border: none;
}

.search-input-group .btn-search {
  border-radius: 0 999px 999px 0;
  background: var(--chewy-dark);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
}

.search-input-group .btn-search:hover {
  background: #063a6a;
}

/* روابط اليمين */
.right-links .nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.cart-count {
  background: #fff;
  color: var(--chewy-blue);
  font-weight: 800;
  border-radius: 999px;
  padding: 0 0.45rem;
  margin-left: 0.2rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

/* دروبداون */
.dropdown-menu {
  border-radius: 0.5rem;
  overflow: hidden;
}

/* تحسينات للأجهزة الصغيرة */
@media (max-width: 992px) {
  .search-wrapper {
    order: 3;
    width: 100%;
    max-width: none;
    margin-top: 0.5rem;
  }

  .right-links {
    order: 2;
    margin-left: auto;
  }

  .main-links {
    order: 1;
  }
}

/* جعل الصفوف منفصلة */
.chewy-navbar .container > .d-flex {
  flex-wrap: wrap;
}

/* في الموبايل: العناصر عمودية */
@media (max-width: 768px) {
  .chewy-navbar .navbar-brand {
    margin-bottom: 0.5rem;
  }

  .main-links {
    margin-bottom: 0.5rem;
  }

  .search-wrapper {
    margin-bottom: 0.5rem;
    width: 100%;
  }

  .right-links {
    width: 100%;
    justify-content: space-around;
  }
}

/* obcddaf */
/* 

.navbar {
    padding: 0 1vh !important;
    background: white;
    position: sticky !important;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--chewy-dark);
    padding: 4px;
    border-radius: 3px;
    margin: 1px 0;
}

.navbar-name i {
    color: #ffd24a;
 }

.fa-bars{
    color: #848484 !important;
    font-size: 26px;
    margin: auto;
}

.navbar-toggler{
    border:none !important;
}

.nav-item a {
    color: rgb(0, 0, 0);
    font-style: italic;
    font-size: large;
    cursor: pointer;
    transition: 0.3s;
}

.nav-item:hover a {
    color: #426680;
    text-decoration: underline;
}

.whatsappico{
    color: green;
}

.cairo {
    font-family: "Cairo", serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
    font-variation-settings: "slnt" 0;
    color: var(--font-color);
}


.navbar .left {
    direction: ltr;
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.navbar .left .icol .conta {
    position: relative;
}

.navbar .left .icol .conta .dotted {
    position: absolute;
    top: 2px;
    right: -4px;
    color: rgb(243, 104, 104);
    font-size: 11px;
}

.navbar .left .icol {
    padding: 1vh;
    font-size: 20px;
    color: white;
    cursor: pointer;
    transition: 0.3s;
}

.navbar .left .icol:hover {
transform: scale(1.4);
    font-size: 20px;
} */

/* end navbar and alert */

.first1 {
  width: 100%;
  margin: 2vh 0;
}

.first1 .main {
  width: 57vw;
  margin-top: 1vh;
}
.row3 .company {
  position: relative;
}
.row3 .company-logo {
  flex: 0 0 calc(100% / 4.2);
  /* عرض كل مكعب */
  scroll-snap-align: start;
  width: 90px;
  aspect-ratio: 1 / 1 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f3f3;
  border-radius: 10px;
  font-weight: bold;
  color: white;
  transition: 0.3s linear;
}

.first1 .company-logo:hover {
  background-color: #dfdfdf;
}

.first1 .company-logo .image {

  max-width: 80% !important;
  aspect-ratio: 1/1;
}

.ene {
  display: flex;
  justify-content: center;
  align-items: center;
}

.section-added {
  font-size: 1.9rem;
  font-weight: bold;
  color: #2e4f4f;
  margin-top: 4vh;
}

.first1 .prob {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #314e8f;
  border-radius: 10px;
  padding: 10px 4px;
  width: 100%;
  margin-top: 1vh;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.first1 .prob:hover {
  transform: scale(1.05);
  background-color: #201a4d;
}

.first1 .prob h5 {
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  text-align: center;
  color: white;
}

/* start section2 styling */
.section2 {
  background-color: #f3f3f3;
}

/* end section2 styling */

/* start section-cards styling */
.section-cards {
  width: 100%;
  padding: 0 2vh;
  margin: 3vh 0;
}

.section-cards .row1 {
  padding: 1vh 0;
}

.row1 .fidiv {
  display: flex;
  align-items: center;
}

.section-cards .row1 .ptext {
  font-size: 20px;
  margin: 1vh 3vh !important;
  color: blue !important;
  opacity: 0.5;
}

.fa-check-square {
  font-size: 30px;
  color: rgb(24, 197, 24);
}

.h2recommended {
  color: #3e5464;
  padding: 0 2vh;
}

.section-cards h3 {
  color: #3e5464;
}

.section-cards .row {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.section-cards .row::-webkit-scrollbar {
  display: none;
}

.product-card {
  margin: 2vh 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  height: 90% !important;
}

.product-card:hover > .image-wrapper img,
.product-card:hover > img {
  transform: scale(1.1);
}

.product-card .card-body {
  padding: 1vh 2vh;
}

.image-wrapper {
  display: flex;
  justify-content: center;
  /* توسيط أفقياً */
  align-items: center;
  /* توسيط عمودياً */
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card img {
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  transition: 0.3s linear;
}
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: green;
}

.fa-arrow-left {
  font-size: 50px;
  /* حجم الأيقونة */
  font-weight: bold;
  color: gray;
  border: 1px solid gray;
  /* تصحيح الخطأ */
  border-radius: 50%;
  padding: 10px 12px;
  /* إضافة مساحة داخلية حول الأيقونة */
  display: inline-block;
  /* حتى يظهر التأثير بشكل صحيح */
}

.see-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  background-color: #dcdcdc;
  padding: 1vh 3vh !important;
}
/* end section-cards styling */

/* start section3 styling */
.highlights-section {
  background: #f9fafb;
}

.section-title {
  font-weight: 800;
  font-size: 28px;
  color: #222;
  letter-spacing: 0.5px;
}

.modern-card {
  background: #fff;
  border-radius: 16px;
  padding: 30px 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 18px;
}

.bg-gradient-green {
  background: linear-gradient(135deg, #00c853, #64dd17);
}

.bg-gradient-blue {
  background: linear-gradient(135deg, #2962ff, #448aff);
}

.bg-gradient-orange {
  background: linear-gradient(135deg, #ff6d00, #ff9100);
}

.modern-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #333;
}

.modern-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: #222;
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: none;
}

/* خط تحت العنوان */
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, #47bc66, #2962ff);
  transform: translateX(-50%);
  border-radius: 2px;
}

/* end section3 styling */

/* start section4 styling */

.section4 {
}

/* end section4 styling */

/* start section5 styling */

.section5 {
  margin: 0 0 9vh 0 !important;
  background-color: #f3f3f3;
}

/* end section5 styling */

/* footer */
.site-footer {
  background: #062749;
    color: #fff;
  padding: 30px 0;
  direction: ltr;
}

.site-footer h5 {
  margin-bottom: 15px;
  font-weight: bold;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.social-icons a {
  color: #fff;
  font-size: 18px;
  margin: 0 6px;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #f4a261;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin: 6px 0;
}

.footer-links a {
  text-decoration: none;
  color: #f1f1f1;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a:hover {
  color: #f4a261;
  text-decoration: underline;
}

.contact-whatsapp a {
  font-size: 16px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.contact-whatsapp a:hover {
  background-color: #2e4a5c;
  color: #fff;
  text-decoration: none;
}

/*media*/
/* الهواتف الصغيرة جداً (أقل من 576px) */
@media (max-width: 575px) {
}

/* الهواتف العادية (576px فأكثر) */
@media (min-width: 576px) and (max-width: 767px) {
}

/* الأجهزة اللوحية (768px فأكثر) */
@media (min-width: 768px) and (max-width: 991px) {
}

/* الشاشات المتوسطة (992px فأكثر) */
@media (min-width: 992px) and (max-width: 1199px) {
}

/* الشاشات الكبيرة (1200px فأكثر) */
@media (min-width: 1200px) {
}

.navbar-toggler:focus {
  box-shadow: none !important;
}

/* start section1 styling */

.section1 {
  margin: 6vh 0;
}

.section1 .first1 {
  width: 100%;
  margin: 2vh 0;
}

.first1 .imgcol {
  padding: 2vh;
}

.first1 .main {
  width: 100%;
  margin-top: 1vh;
}

.first1 .pagcol {
  padding: 3vh 1vh !important;
}

.first1 .sect {
  height: 20%;
  display: flex;
  align-items: center;
  margin: 2vh 0;
  background-color: #dcdcdc;
}

.first1 .filtercol {
  background-color: #dfdfdf;
  height: 45vh;
  padding: 2vh;
}

.first1 .pages {
  background-color: red;
  height: 5vh;
  margin: 5vh 0;
}

.first3::-webkit-scrollbar {
}

.first3 {
}

.first3 .catag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.first3 .catag .box {
  width: 80%;
  background-color: #dfdfdf;
  aspect-ratio: 1/1;
}

/* end section1 styling */

/* start section-cards styling */
.section-cards {
  width: 100%;
  padding: 0 2vh;
  margin: 3vh 0;
}

.section-cards .row1 {
  padding: 1vh 0;
}

.row1 .fidiv {
  display: flex;
  align-items: center;
}

.section-cards .row1 .ptext {
  font-size: 20px;
  margin: 1vh 3vh !important;
  color: blue !important;
  opacity: 0.5;
}

.fa-check-square {
  font-size: 30px;
  color: rgb(24, 197, 24);
}

.section-cards h3 {
  color: #3e5464;
}

.section-cards .row {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}

.section-cards .row::-webkit-scrollbar {
  display: none;
}

.product-card {
  margin: 2vh 0;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
}

.heart-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 20px;
  cursor: pointer;
}

.price {
  font-size: 20px;
  font-weight: bold;
  color: green;
}

.fa-arrow-left {
  font-size: 50px;
  /* حجم الأيقونة */
  font-weight: bold;
  color: gray;
  border: 1px solid gray;
  /* تصحيح الخطأ */
  border-radius: 50%;
  padding: 10px 12px;
  /* إضافة مساحة داخلية حول الأيقونة */
  display: inline-block;
  /* حتى يظهر التأثير بشكل صحيح */
}

.see-more {
  align-items: center;
  padding: 1vh 0 4vh 0;
  margin: 0;
}

/* end section-cards styling */

/* عرض الرسالة المخفية */
#overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  /* ظل خفيف */
  z-index: 1040;
  display: none;
}

#popupMessage {
  position: fixed;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
  background-color: #fff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 90%;
  z-index: 1050;
  display: none;
  text-align: center;
  transition: all 0.3s ease-in-out;
}

#popupMessage h3 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #444;
}

#popupMessage a h2 {
  font-size: 1.1rem;
  color: #28a745 !important;
  text-decoration: none;
  transition: color 0.3s;
}

#popupMessage a h2:hover {
  color: #218838 !important;
}

#popupMessage button {
  margin-top: 15px;
}

/* نهاية عرض الرسالة */

/*media*/
/* الهواتف الصغيرة جداً (أقل من 576px) */
@media (max-width: 575px) {
  .example {
    background-color: red;
  }

  .first1 .imgcol {
    padding: 0;
  }

  .first1 .pagcol {
    padding: 1vh 1vh !important;
  }

  .section1 {
    margin: 2vh 0;
  }

  .first3 .catag {
    padding: 1vh 1vh !important;
  }

  .first3 .catag .box {
    width: 100%;
  }

  .first2 .htext {
    font-size: 30px;
  }

  .first2 .ptext {
    margin-bottom: 5px;
  }

  .section6 .col {
    margin-top: 3vh !important;
  }

  .company .row3::-webkit-scrollbar {
    display: none;
  }
}

/* الهواتف العادية (576px فأكثر) */
@media (min-width: 576px) and (max-width: 767px) {
}

/* الأجهزة اللوحية (768px فأكثر) */
@media (min-width: 768px) and (max-width: 991px) {
}

/* الشاشات المتوسطة (992px فأكثر) */
@media (min-width: 992px) and (max-width: 1199px) {
}

/* الشاشات الكبيرة (1200px فأكثر) */
@media (min-width: 1200px) {
}

.color-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1px solid #ccc;
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 3px;
}

.company .row3 {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 8px;
  /* المسافة بين المكعبات */
  padding: 16px;
}
