/* ===== Carousel ===== */
.carousel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 18px;
  margin: 12px 0 5px;
}

.product-card p {
  font-size: 14px;
  color: #555;
  margin: 0 10px 10px;
}

.product-card button {
  background: var(--primaryColor);
  color: #fff;
  border: none;
  padding: 10px;
  margin: 15px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.product-card button:hover {
  background: #9a6f50;
  transform: scale(1.05);
}


/* ********************** */
.cart-icon {
  position: fixed;         
  bottom: 20px;             
  right: 20px;             
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--primaryColor);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  z-index: 9999;            
  transition: transform 0.3s ease;
  overflow: hidden;
}

.cart-icon:hover {
  transform: scale(1.1);
}

.cart-count {
  position: absolute;
  top: 5px;
  right: 20px;
  background: #e74c3c;   
  color: #fff;
  font-size: 12px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;         
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  pointer-events: none;  
    z-index: 9999;
}


.cart-icon::after {
  content: "عربة التسوق";
  position: absolute;
  bottom: 70px;  
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: 0.3s;
  white-space: nowrap;
  pointer-events: none;
}

.cart-icon:hover::after {
  opacity: 1;
}



.cart-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  width: 90%;
  max-width: 450px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9999;
}

.cart-container.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.cart-container ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.cart-container li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.remove-item {
  background: #9a6f50;
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
}
.remove-item::before {
  content: "\f00d";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}


#send-whatsapp {
  width: 100%;
  margin-top: 15px;
  padding: 12px;
  background: #9a6f50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
#send-whatsapp::before {
  content: "\f232";
  font-family: "Font Awesome 6 Brands";
  margin-left: 6px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 9998;
}
.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* ===== Swipe Hint (Brand Color) ===== */
.swipe-hint {
  display: none;
  align-items: center;
  gap: 10px;
  margin:5px auto 0;
  padding: 10px 18px;
  width: fit-content;

  border-radius: 30px;
  background: var(--primaryColor);
  color: #fff;

  font-size: 18px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);

  animation: swipePulse 1.5s infinite;
  pointer-events: none;
  z-index: 5;
}

.swipe-hint i:first-child {
  animation: handMove 1.5s infinite;
}

.swipe-hint i:last-child {
  opacity: 0.9;
}

/* يظهر على الموبايل فقط */
@media (max-width: 1014px) {
  .swipe-hint {
    display: flex;
  }
}

@keyframes swipePulse {
  0%   { transform: scale(0.95); opacity: 0.7; }
  50%  { transform: scale(1);    opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes handMove {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(8px); }
  100% { transform: translateX(0); }
}

