/* store/css/store.css */

/* Product card */
.product-card { 
  border-radius: 12px; 
  overflow: hidden; 
  box-shadow: 0 6px 18px rgba(0,0,0,0.06); 
}

/* Product images */
.product-img { 
  object-fit: cover; 
  height: 220px; 
  width: 100%; 
}
.product-detail-img { 
  width: 100%; 
  border-radius: 8px; 
  box-shadow: 0 8px 20px rgba(0,0,0,0.06); 
}

/* Buttons */
.jugnu-btn { 
  background-color: #2f9e44; 
  color: #fff; 
  border: none; 
}
.jugnu-btn:hover { 
  background-color: #257a36; 
  color: #fff; 
}
.btn-order { 
  background: linear-gradient(90deg,#2f9e44,#1f7a32); 
  color:#fff; 
  border:none; 
}

/* Price styling */
.price { 
  font-size: 1.3rem; 
  display:inline-block; 
}
.price .original, .price.original { 
  color: #777; 
  text-decoration: line-through; 
  margin-right: 0.5rem; 
  font-weight: 500; 
}
.price .sale, .price.sale, .sale { 
  color: #d9534f; 
  font-weight: 700; 
  font-size: 1.3rem; 
}

/* Responsive adjustments */
@media (max-width:576px) {
  .product-img { height: 180px; }
  .price { font-size: 0.95rem; }
  .price .sale { font-size: 1rem; }
}

/* ---------------------------
   Carousel visibility fixes
   (overrides for Bootstrap carousel)
   --------------------------- */

/* Ensure the control buttons are visible and clickable area is decent */
.carousel-control-prev,
.carousel-control-next {
  width: 56px;
  height: 56px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.75); /* subtle white backing so arrow is visible on dark and light images */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  border: none; /* remove default outline */
}

/* Remove default white SVG icon and draw blue arrows using pseudo-elements */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-image: none; /* remove Bootstrap's default icon */
}

/* Arrow glyphs (blue) */
.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: solid #0d6efd; /* bootstrap primary blue */
  border-width: 0 3px 3px 0;
  padding: 2px;
  box-sizing: content-box;
  opacity: 1;
}

/* Left and right rotation */
.carousel-control-prev-icon::after { transform: rotate(135deg); } /* left arrow */
.carousel-control-next-icon::after { transform: rotate(-45deg); }  /* right arrow */

/* Slightly increase contrast on hover */
.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.95);
}

/* Indicators (dots) */
.carousel-indicators {
  bottom: 10px;
  gap: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 0;
  margin-left: 0;
}

/* Base dot */
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(13,110,253,0.65); /* semi-opaque blue */
  border: none;
  transition: transform .15s ease, background-color .15s ease;
  margin: 0 4px;
  opacity: 1;
}

/* Active dot */
.carousel-indicators .active,
.carousel-indicators [data-bs-target].active {
  background-color: #0b5ed7; /* darker blue for active */
  transform: scale(1.2);
}

/* Accessibility: ensure focus ring for keyboard users */
.carousel-control-prev:focus,
.carousel-control-next:focus,
.carousel-indicators [data-bs-target]:focus {
  outline: 3px solid rgba(13,110,253,0.25);
  outline-offset: 2px;
}

/* If you want the arrows to be darker on larger screens, tweak here */
@media (min-width: 992px) {
  .carousel-control-prev,
  .carousel-control-next { width: 64px; height: 64px; }
  .carousel-control-prev-icon::after,
  .carousel-control-next-icon::after { width: 16px; height: 16px; border-width: 0 4px 4px 0; padding: 3px; }
}

/* Description collapse in product.php */
#productDescription {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4; /* show only 4 lines */
  -webkit-box-orient: vertical;
}
#productDescription.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

