/* استيراد الخطوط */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700&display=swap");

/* المتغيرات الأساسية */
:root {
  --primary-color: #b91c1c;
  --secondary-color: #7f1d1d;
  --white-color: #ffffff;
  --light-gray: #bdc4cb33;
  --medium-gray: #6c757d;
  --dark-gray: #343a40;
  --border-radius: 8px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* إعدادات عامة */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #000000;
  background-color: var(--white-color);
}

ol,
ul {
  padding-left: 0rem;
}

body[dir="rtl"] {
  font-family: "Cairo", sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-color);
}

.bg-section {
  background-color: var(--light-gray);
}

.btn-action {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 12px 24px;
  font-weight: 500;
  transition: var(--transition);
  color: var(--white-color);
}

.btn-action:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-radius: var(--border-radius);
  padding: 5px 24px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: #b91c1c;
  border-color: #b91c1c;
  transform: translateY(-2px);
}

/*navbar*/

.navbar {
  position: fixed;
  top: 59px;
  right: 0;
  left: 0;
  z-index: 1030;
  margin-top: 0;
  background-color: var(--white-color);
  box-shadow: var(--box-shadow);
  padding: 0.2rem 0;
}

.header-top {
  background-color: #d32f2f;
  color: white;
  font-size: 14px;
  font-weight: 500;
}

.header-top .icon {
  font-size: 18px;
  color: white;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.header-top .icon:hover {
  transform: scale(1.1);
  color: black;
  /* jaune au hover */
}

.header-social-container li,
.header-social-container a {
  list-style: none;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  text-decoration: none;
}

.header-alert-news p {
  margin: 0;
  color: #fff;
  font-style: italic;
  font-size: 13px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 10px;
  transition: var(--transition);
}

.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

.shopping-cart-btn-mobile {
  display: none;
}
.shopping-cart-btn {
  margin-inline-start: 20px;
}

/* Hero Section  */

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-section h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-slide {
  width: 100%;
  height: 500px;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* slider categories */

.category-slider {
  max-width: 600px;
  margin: auto;
}

.category-slider .swiper-slide {
  width: auto;
}

.category-slider .swiper-button-next,
.category-slider .swiper-button-prev {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -20px;
  background-color: rgba(0, 0, 0, 0.3);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.category-slider .swiper-button-prev {
  left: 3px;
}

.category-slider .swiper-button-next {
  right: 3px;
}

.category-slider .swiper-button-next:hover,
.category-slider .swiper-button-prev:hover {
  background-color: var(--primary-color);
  color: black;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.6);
}
.category-slider .swiper-button-next:after,
.category-slider .swiper-button-prev:after {
  font-size: 18px;
}

.category-circle {
  width: 100px;
  height: 100px;
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid #ddd;
  transition: 0.3s;
}

.category-circle:hover {
  border-color: #007bff;
  transform: scale(1.05);
}

/* بطاقات المنتجات */
.product-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 200px;
  transition: var(--transition);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card .card-body {
  padding: 1rem;
}
.product-card .card-body .rating i,
.product-card .card-body .rating small {
  font-size: 12px;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}
.service-item i {
  color: var(--secondary-color);
}

/* page about */

.about-page .value-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
}

.about-page .value-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

.about-page .value-card i {
  color: var(--primary-color);
  font-size: 3rem;
  margin-bottom: 20px;
  display: inline-block;
}

.about-page .value-card h5 {
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.about-page .value-card p {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

.about-page .cta-section {
  background: linear-gradient(135deg, #7f1d1d 0%, #764ba2 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.about-page .cta-section h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 30px;
}

.about-page .cta-btn {
  background-color: white;
  color: var(--secondary-color);
  font-weight: 700;
  padding: 15px 40px;
  border-radius: 50px;
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
}

.about-page .cta-btn:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
  color: var(--primary-color);
}

.about-page .contact-card {
  background: white;
  border: none;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.about-page .contact-card:hover {
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.15);
}

.about-page .contact-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.about-page .contact-card h5 {
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.about-page .contact-card p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.about-page section {
  padding: 80px 0;
}

.about-page .bg-light-custom {
  background-color: #f8f9fa;
}

.about-page .text-content {
  color: #555;
  line-height: 1.8;
  font-size: 1.05rem;
}

.about-page .img-shadow {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
}
/* page contact */
.contact-page .contact-info-item .icon-circle {
  background: var(--secondary-color);
}
.detail-page .main-image img {
  height: 500px;
}

.detail-page .thumbnail-img {
  height: 80px;
  cursor: pointer;
  border: 2px solid transparent;
}

.detail-page .thumbnail-img.active {
  border-color: #0d6efd;
}

.detail-page .swiper-button-next,
.detail-page .swiper-button-prev,
.cart-page .swiper-button-next,
.cart-page .swiper-button-prev {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  line-height: 40px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.detail-page .swiper-button-prev,
.cart-page .swiper-button-prev {
  left: 0;
}

.detail-page .swiper-button-next,
.cart-page .swiper-button-next {
  right: 0;
}

.detail-page .swiper-button-next:hover,
.detail-page .swiper-button-prev:hover,
.cart-page .swiper-button-next:hover,
.cart-page .swiper-button-prev:hover {
  background-color: red;
  color: black;
  box-shadow: 0 4px 12px rgba(255, 0, 0, 0.6);
}

.detail-page .swiper-button-next:after,
.detail-page .swiper-button-prev:after,
.cart-page .swiper-button-next:after,
.cart-page .swiper-button-prev:after {
  font-size: 18px;
}
/*  order page slect vill */
.select2-container .select2-selection--single {
  height: 40px !important;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

/* footer*/
.footer {
  background-color: #000000;
  color: var(--white-color);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer a {
  color: var(--medium-gray);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--white-color);
}

/* language*/
.language-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-switcher .lang-btn {
  background: white;
  color: #d32f2f;
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 3px 10px;
  margin-left: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.language-switcher .lang-btn.active,
.language-switcher .lang-btn:hover {
  background: #fef2f2;
  color: #7f1d1d;
  font-weight: bold;
}

/* btn user dashboard  */
.action-btn {
  background: none;
  border: none;
  color: white;
  margin-left: 10px;
}

/* PAGE CART*/
.cart-page ul li i {
  color: var(--primary-color);
}
.cart-item {
  border-bottom: 1px solid var(--light-gray);
  padding: 1rem 0;
}

.cart-item:last-child {
  border-bottom: none;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--medium-gray);
  background: var(--white-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.quantity-controls button:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
}

/* نماذج الاتصال */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  padding: 6px 15px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
}

/* تأثيرات الحركة */
.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 991px) {
  .shopping-cart-btn {
    display: none;
  }

  .shopping-cart-btn-mobile {
    display: inline-block;
  }
  .navbar-nav {
    text-align: center;
  }
  .hero-slide {
    height: 400px !important;
  }
  .hero-slide img {
    height: 100% !important;
  }
  .hero-section h3 {
    text-align: center;
  }
  .fst-italic {
    display: none;
  }
  .hero-section p {
    text-align: center;
  }
  .shopping-btn {
    width: fit-content;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 1.5rem;
    text-align: center;
  }
  .fst-italic {
    display: none;
  }
  .hero-section p {
    font-size: 1rem;
    text-align: center;
  }
  .shopping-btn {
    width: fit-content;
    display: block;
    margin: 0 auto;
  }
  .product-card img {
    height: 200px;
  }
  .special_offers {
    margin-top: 10px;
  }
  .discover_offers-btn {
    width: fit-content;
    display: block;
    margin: 0 auto;
  }
  .hero-slide {
    height: 300px !important;
  }
  .about-page .hero-section h1 {
    font-size: 2.5rem;
  }

  .about-page .section-title {
    font-size: 2rem;
  }

  .about-page .cta-section h2 {
    font-size: 1.8rem;
  }

  .about-page section {
    padding: 50px 0;
  }
  .detail-page .main-image img {
    height: 300px;
  }

  .detail-page .thumbnail-img {
    height: 60px;
  }
  .sort-select-filter {
    display: none;
  }
  .size-options label,
  .color-options label {
    font-size: 12px;
  }
}
@media (min-width: 768px) {
  .navbar-collapse {
    display: flex;
    justify-content: end;
  }
}
