@charset "UTF-8";

body {
	font-family: 'Cairo', sans-serif;
	background-color: #f8f9fa;
}

.details{
	background-color: rgb(255, 255, 255);
}

.top-bar {
	background-color: rgb(64, 128, 128);
	color: #fff;
	padding: 6px 15px;
	font-size: 14px;
}

.navbar {
	background-color: #ffffff;
	box-shadow: 0 2px 4px rgb(64, 128, 128);
	padding: 5px 15px; /* 🔹 قللنا المسافة الجانبية */
	border-bottom: 3px solid rgb(64, 128, 128);
}

.navbar-brand img {
	height: 55px !important;  /* 🔹 كان 80px */
}

.navbar .img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.navbar .btn {
	position: relative;
	margin-left: 5px;
	padding: 4px 6px; /* 🔹 تصغير حجم الزر */
	border-radius: 6px;
}

.navbar .btn .badge {
	position: absolute;
	top: -6px;
	right: -6px;
	font-size: 11px;
	padding: 2px 4px;
}

.badge {
	background-color: rgb(64, 128, 128);
	color: #ffffff;
}


.header-search{
	border: 2px solid rgb(64, 128, 128); 	
/* 	box-shadow: 0 1px 2px; */
	border-radius: 6px;
	max-width: 600px; 
}

.search{		
	width: 600px;
}

#categorySelect {	
	background-color: rgb(64, 128, 128);
	color: #fff;
	width: auto;
	border-radius: 5px 0px 0px 5px;
}

.header-search .btn{	
	border-radius: 0px 5px 5px 0px;
	background-color:  rgb(64, 128, 128);
	color: #fff;
}

.search-result-card {
  display: flex;
  align-items: center;
  padding: 8px;
  gap: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.search-result-card:hover {
  background-color: rgb(64, 128, 128);
  color: #fff;
}

.search-result-card:hover .fw-bold{
  color: #fff;
}

.search-result-card:hover .text-muted{
  color: #fff;
}

.search-result-card img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
}

/* 🔹 تحسين الموبايل */
@media (max-width: 768px) {
    .search {
        width: 100%;
        border-radius: 5px;
    }

    #categorySelect {
        border-radius: 5px;
    }

    .header-search {
        flex-direction: column;
    }

    .header-search .btn {
        border-radius: 5px;
    }
	.navbar-brand img {
		height: 45px;
	}
	.navbar {
		padding: 5px 10px;
	}
}

/* 🔹 تنسيق عام */
.banner-section {
  height: 450px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.banner-content {
  z-index: 2;
  color: white;
  text-shadow: 0 0 5px rgba(0,0,0,0.6);
}

.banner-img {
  height: 450px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.6);
}

.banner-section .btn {
  background-color: rgb(64, 128, 128);
  color: #fff;
}

/* 🔹 تأكيد إن الكاروسيل كله ياخد نفس الارتفاع */
#bannerCarousel,
#bannerCarousel .carousel-inner,
#bannerCarousel .carousel-item,
#bannerCarousel .banner-img {
  height: 100%;
}

/* 📱 تحسين الموبايل */
@media (max-width: 768px) {
  .banner-section {
    height: 250px; /* ارتفاع أصغر */
  }

  .banner-img {
    height: 250px;
    width: 100%;
 	object-fit: cover;
  	object-position: center;
  	filter: brightness(0.6);
  }

  .banner-content h1 {
    font-size: 1.5rem; /* تصغير العنوان */
  }

  .banner-content p {
    font-size: 1rem; /* تصغير الوصف */
  }

  .banner-section .btn {
    padding: 6px 14px;
    font-size: 0.9rem;
  }
}


.sidebar {
	background-color: #fff; 
	padding: 5px;
	height: 100%;
	position: sticky;
	top: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
	background-color: rgb(233, 243, 243);
	width: 100%;
	z-index: 10;
}

.sidebar-carousel-wrapper {
	width: 100%;
	overflow: hidden;
}

#weeklyOffersCarousel .carousel-inner {
	width: 100%;
	height: 250px;
	border-bottom: 2px solid rgb(64, 128, 128);
	
}

#weeklyOffersCarousel .carousel-item {
	height: 100%;
	transition: transform 0.5s ease;
}

#weeklyOffersCarousel .small-card {
	width: 100%;
	object-position: center;
	border: 2px solid  rgb(30, 30, 30);
}

#lastCarousel .carousel-inner,
#defectedCarousel .carousel-inner {
	width: 100%;
	height: 100%;
	border-bottom: 2px solid rgb(64, 128, 128);
}

#lastCarousel .carousel-item,
#defectedCarousel .carousel-item {
	transition: transform 0.5s ease;
  	min-height: 850px;  /* انت اختار قيمة تناسب أطول كارت عندك */
}

#lastCarousel .lastPiece-card { 
	width: 100%;
	border: 2px solid rgb(202, 0, 0);
}



.accordion-header{
	background-color: rgb(64, 128, 128);
	color: #fff;
	padding: 10px 20px ;
	font-size: 14px;
	height: 45px;
	object-position: center;
}

.accordion-body ul  {
  padding-right: 0px;
  direction: rtl;
  text-align: left;
}
.accordion-body ul li {
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  margin-bottom: 5px;
  text-align: right;
}

.accordion-body ul li a {
  display: block;
  color: #333;
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s ease;
}

.accordion-body ul li:hover {
  background-color: #f1f1f1;
}

.accordion-body ul li a:hover {
  color: rgb(64, 128, 128);
}


.small-card {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	transition: 0.3s;
}

.small-card:hover {
	transform: translateY(-3px);
}

.small-card img {
	width: 100%;
	height: 130px;
	object-fit: contain;
	background-color: #f9f9f9;
	padding: 5px;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 50%;
	width: 25px;
	height: 25px;
}

.carousel.slide {
	max-width: 100%;
}



.section-with-carousel {
	overflow: hidden;
	position: relative;
}

.product-card {
	background-color: #fff;
	border-radius: 10px;
	overflow: visible;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	width: 85%;
}

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

.product-card img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	background-color: #f9f9f9;
	padding: 5px;
}

.product-info {
	padding: 10px;
}

.product-info h6 {
	font-weight: 600;
	margin-bottom: 5px;
}

.product-info .price {
	color: #28a745;
	font-weight: bold;
}

.product-card .hover-buttons {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	text-align: center;
	transition: all 0.3s ease;
	padding: 12px;
	opacity: 0;
	visibility: hidden;
	z-index: 2;
	transform: translateY(20px);
	transition: all 0.5s ease;
	margin-top: 0px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

.product-card:hover .hover-buttons {
	top: calc(100% + 1px);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.product-card .hover-info {
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 100%;
	/*       background-color: rgb(240, 240, 240); */
	text-align: center;
	transition: all 0.3s ease;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	z-index: 2;
}

.product-card:hover .hover-info {
	bottom: 20px;
	opacity: 1;
	visibility: visible;
}

.offer-card {
	background-color: #fff;
	border-radius: 10px;
	overflow: visible;
	transition: all 0.3s ease;
	position: relative;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	width: 85%;
	
}

.offer-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offer-card img {
	width: 100%;
	height: 180px;
	object-fit: contain;
	background-color: #f9f9f9;
	padding: 5px;
}

.offer-info {
	padding: 10px;
}

.offer-info h6 {
	font-weight: 600;
	margin-bottom: 5px;
}

.offer-info .price {
	color: #28a745;
	font-weight: bold;
}

.offer-card .hover-buttons {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	text-align: center;
	transition: all 0.3s ease;
	padding: 12px;
	opacity: 0;
	visibility: hidden;
	z-index: 2;
	transform: translateY(20px);
	transition: all 0.5s ease;
	margin-top: 0px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
}

.offer-card:hover .hover-buttons {
	top: calc(100% + 1px);
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.offer-card .hover-info {
	position: absolute;
	bottom: 100%;
	left: 0;
	width: 100%;
	/*       background-color: rgb(240, 240, 240); */
	text-align: center;
	transition: all 0.3s ease;
	padding: 10px;
	opacity: 0;
	visibility: hidden;
	z-index: 2;
}

.offer-card:hover .hover-info {
	bottom: 20px;
	opacity: 1;
	visibility: visible;
}

.carousel-inner {
	overflow: hidden;
	height: 490px; 
	background-color: rgb(233, 243, 243);
}

.carousel-item .row {
	margin: 0;
}

.carousel-item {
	position: relative;
	overflow: visible; 
	padding-top: 12px;
	height: 490px;
	
}

#productsCarousel .carousel-inner , .carousel-item{
	height: 450px;
}
.lastPiece-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; /* يخلي النصوص على الشمال والصورة على اليمين */
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  margin-bottom: 15px;
  position: relative;
}

.lastPiece-card img {
  max-width: 120px;
  object-fit: contain;
  background-color: #f9f9f9;
  padding: 5px;
  border-radius: 8px;
}

.lastPiece-card .info-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lastPiece-card .product-name {
  font-size: 1rem;
}

.lastPiece-card .price {
  font-size: 0.9rem;
}

.lastPiece-card .buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* الحالة فوق في النص */
.lastPiece-card .status-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
}

.section-title {
	border-bottom: 2px solid rgb(64, 128, 128);
	padding-bottom: 5px;
	margin-bottom: 20px;
	font-weight: bold;
}

.section {
	border-bottom: 2px solid rgb(64, 128, 128);
	margin-right: 2px;
	margin-top: 80px;
	position: relative;
	overflow: hidden;
	padding: 5px 0;
	height: 490px;
	
}

.footer {
	background-color: rgb(64, 128, 128);
	color: white;
	padding: 40px 20px;
}

.footer a {
	color: #adb5bd;
	text-decoration: none;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease-in-out;
    padding-left: 1px;
}



/* مودال التفاصيل */
#productDetailModal .modal-content {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

#productDetailModal .main-image img {
  height: 270px;
  object-fit: contain;
  border-radius: 10px;
}

#productDetailModal .img-thumbnail {
  border-radius: 8px;
  object-fit: contain;
  transition: 0.2s;
}

#productDetailModal .img-thumbnail:hover {
  border: 2px solid #0d6efd;
}

#productDetailModal h4 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

#productDetailModal .text-muted,
#productDetailModal .text-secondary {
  font-size: 0.9rem;
}

#productDetailModal input[type="number"] {
  max-width: 100px;
}

/* زرارين */
#productDetailModal .btn-sm {
  font-size: 0.85rem;
  padding: 6px 12px;
}

#productDetailModal .right{
	padding-top: 35px;
	border-left: 1px solid #ccc;
}

.details-main-image img {
  height: 370px;
  width: 470px;
  object-fit: contain;
  border-radius: 10px;
  padding-left: 10px;
   
}

.details-main-image {
  height: 370px;
  width: 400px;
  padding-left: 10px;
   
}

.offcanvas{
	z-index: 1055 !important;
	width: 10px;
}

.top-bar-detiles {
	background-color:  #ccc;
	color: rgb(48, 48, 48);
	padding: 0px 20px;
	font-size: 12px;
	height: 35px;
}

.buttons{
	padding-top: 20px
}

#card .main-image img {
  height: 270px;
  object-fit: contain;
  border-radius: 10px;
}

#card .img-thumbnail {
  border-radius: 8px;
  object-fit: contain;
  transition: 0.2s;
}

#card .img-thumbnail:hover {
  border: 2px solid #0d6efd;
}

.color-dot {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid #ccc;
}

.fav_home {
	width: 34px; height: 32px;
	object-fit: contain; 
	background-image: url("/static/uploads/add-to-favorite.png");
}

.favorite-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  transition: 0.3s;
  background-color: #fff;
}

.favorite-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.favorite-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}

.favorite-card .info {
  flex-grow: 1;
}

.cart-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px;
  background-color: #fff;
  transition: 0.3s;
}

.cart-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
}

.cart-tab::-webkit-scrollbar {
  width: 6px;
}

.cart-tab::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 10px;
}

#offcanvasCheckoutBtn {
  transition: all 0.3s ease;
}

#checkoutBtn {
  transition: all 0.3s ease;
}

.btn-disabled-state {
  background-color: #ccc !important;
  border-color: #aaa !important;
  color: #666 !important;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
}

.modal-header {
    flex-direction: row-reverse; /* يعكس الاتجاه */
}
.modal-header .btn-close {
    margin-left: auto; /* يدفع الزر لأقصى اليسار */
}

    .policy-links a {
        font-size: 16px;
        color: #444;
        transition: 0.2s;
    }
    .policy-links a:hover {
        color: #d9534f;
        text-decoration: underline;
    }