:root {
  --primary-blue: #3b82f6;
  --primary-hover: #2563eb;
  --text-heading: #0f172a;
  --text-body: #475569;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
}

.slideshow-container {
  position: relative;
  max-width: 100%;
  height: 600px;
  margin: 10px auto;
  overflow: hidden;
  border-radius: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Flex track that slides horizontally */
.slides-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.img-wrapper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease-out;
}

/* Subtle image scale effect when slide becomes active */
.slide.active img {
  transform: scale(1.05);
}

/* Overlay caption with smooth text entrance */
.caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #ffffff;
  padding: 40px 30px 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.slide.active .caption {
  opacity: 1;
  transform: translateY(0);
}

.caption h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.caption p {
  font-size: 1rem;
  margin-bottom: 16px;
  color: #e0e0e0;
}

.cta-btn {
  display: inline-block;
  padding: 10px 24px;
  background-color: #0066ff;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cta-btn:hover {
  background-color: #0052cc;
  transform: translateY(-2px);
}

/* Navigation Controls */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-size: 20px;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  user-select: none;
  z-index: 2;
}

.prev { left: 0; }
.next { right: 0; }

.prev:hover, .next:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.08);
}

/* Dots Indicator */
.dots-container {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.3s ease, width 0.3s ease;
}

/* Expanded active pill style */
.dot.active {
  background-color: #ffffff;
  width: 24px;
  border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .slideshow-container {
    height: 350px;
    margin: 20px 10px;
  }
  .caption h2 { font-size: 1.4rem; }
  .caption p { font-size: 0.85rem; }
  .cta-btn { padding: 8px 16px; font-size: 0.9rem; }
}

/* pppp */
.cart-badge {
  background-color: #111827;
  color: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Product Section & Grid */
.product-section {
  padding: 2.5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
}

/* Product Card Structure */
.product-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.1);
}

/* Image Wrapper & Overlay Buttons */
.image-wrapper {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #f3f4f6;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}

.badge.sale {
  background-color: #ef4444;
  color: #ffffff;
}

.quick-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.product-card:hover .quick-actions {
  opacity: 1;
}

.action-btn {
  background: #ffffff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: #374151;
  transition: background 0.2s, color 0.2s;
}

.action-btn:hover {
  background: #2563eb;
  color: #ffffff;
}

/* Product Content */
.product-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.category {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-title a {
  color: #1f2937;
  text-decoration: none;
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  margin-bottom: 12px;
}

.stars {
  color: #f59e0b;
}

.rating-count {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* Swatches */
.color-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid #ffffff;
  outline: 1px solid #d1d5db;
  transition: transform 0.1s, outline-color 0.1s;
}

.swatch:hover, .swatch.active {
  transform: scale(1.15);
  outline-color: #111827;
  outline-width: 2px;
}

/* Card Footer */
.product-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.current-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.original-price {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.add-to-cart-btn {
  background-color: #111827;
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.add-to-cart-btn:hover {
  background-color: #2563eb;
}

.add-to-cart-btn:active {
  transform: scale(0.97);
}

/* Quick View Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  max-width: 480px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #6b7280;
}

.close-modal:hover {
  color: #111827;
}



/*ssss*/
.service-card-vertical {
  display: flex;
  flex-direction: column;
  max-width: 380px;
  width: 100%;
  background-color: var(--bg-card);
  border-radius: 1.25rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card-vertical:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.1);
}

/* Image Section at the Top */
.card-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card-vertical:hover .card-image {
  transform: scale(1.05);
}

/* Overlay Badge on Image */
.image-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.25rem 0.85rem 1.25rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Content Area at the Bottom */
.card-content {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  margin: 0 0 0.6rem 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.25;
}

.card-description {
  margin: 0 0 1.25rem 0;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.5;
}

/* Features List Stacked Vertically for Narrow Layout */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f1f5f9;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-heading);
}

.meta-item svg {
  color: var(--primary-blue);
  flex-shrink: 0;
}

/* Call to Action Button */
.card-btn {
  margin-top: auto;
  width: 100%;
  padding: 0.85rem;
  background-color: var(--primary-blue);
  color: #ffffff;
  border: none;
  border-radius: 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.card-btn:hover {
  background-color: var(--primary-hover);
}

.card-btn:active {
  transform: scale(0.98);
}