body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--base-bg);
  color: var(--text-color);
}

.product-section {
  padding: 10px;
  background-color: var(--base-bg);
}

.product-strip-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.product-strip-box {
  position: relative;
  background-color: var(--bg-color);
  border-radius: 12px;
  padding: 6px 4px;
  box-shadow: 0 0 12px var(--border-color);
  overflow: hidden;
  max-width: 1200px;
  width: 100%;
}

.product-strip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
 }

.product-strip-title {
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  margin: 8px 0;
  color: var(--header-bg-text);
  flex: 1;
}

.view-all-link {
  color: var(--link-color);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
  padding-left:10px;
  padding-right:10px;
}

.view-all-link:hover {
  color: var(--footer-hover);
  text-decoration: none;
}

.fake-space {
  width: 70px;
}

.product-strip {
  display: flex;
  gap: 12px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 8px 0;
}
.circular-card {
  display: grid;
  grid-template-rows: 130px 40px 25px 30px;
  grid-template-areas:
    "image"
    "name"
    "price"
    "button";
  height: 235px;
  flex: 0 0 calc(((100% - (3 * 12px)) / 4));
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 0 5px var(--border-color);
  padding: 5px;
  text-align: center;
  scroll-snap-align: start;
  box-sizing: border-box;
}
.product-card {
  display: grid;
  grid-template-rows: 130px 40px 25px 30px;
  grid-template-areas:
    "image"
    "name"
    "price"
    "button";
  height: 235px;
  flex: 0 0 calc(((100% - (4 * 12px)) / 5));
  background: var(--bg-color);
  border-radius: 8px;
  box-shadow: 0 0 5px var(--border-color);
  padding: 5px;
  text-align: center;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.circular-card img{
  grid-area: image;
  width: 130px;
  height: 130px;
  object-fit: contain;
  object-position: center;
  background-color: var(--base-bg);
  border-radius: 6px;
  display: block;
  cursor: pointer; 
  border-radius: 50%;  
  margin: 0 auto; /* يجعل الصورة في المنتصف أفقيًا */  
  object-fit: cover;
}
.product-card img {
  grid-area: image;
  width: 100%;
  height: 140px;
  object-fit: contain;
  object-position: center;
  background-color: var(--bg-color);
  border-radius: 6px;
  display: block;
  cursor: pointer;
}

.product-card img:hover, 
.circular-card img:hover {
  transform: scale(0.95);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.product-info {
  grid-area: name;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
}

.product-name {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  grid-area: price;
  font-size: 16px;
  font-weight: bold;
  color: red;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 25px;
  margin: 0;
  white-space: nowrap;
}


.scroll-btn {
  position: absolute;
  top: 50%;

  background-color: var(--base-bg);
  color: var(--text-color);
  border: none;
  padding: 10px 12px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
}

.scroll-btn:hover {
  background-color: var(--footer-hover);
}

.scroll-btn:first-of-type {
  left: 0;
}

.scroll-btn:last-of-type {
  right: 0;
}
.product-strip-box:hover .scroll-btn {
  background-color: var(--footer-hover);
  color: white;
}

@media (max-width: 768px) {
  .product-strip-box {
    padding: 10px;
  }

  .product-strip {
    gap: 0;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-card {
    flex: 0 0 30%;
    max-width: 30%;
    box-sizing: border-box;
    padding: 6px;
  }
.product-price {
  font-size: 11px;
}

.product-name {
  font-size: 13px;

}

  .scroll-btn {
    display: none;
  }
}
