#productModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  display: none;
  justify-content: center;
  align-items: center;

  background: rgba(0,0,0,0.5);

  z-index: 999999;
}

#productModal.active {
  display: flex;
}

#productModal .modal-box {
  position: relative;

  width: 92%;
  max-width: 420px;

  background: #fff;
  border-radius: 16px;
  padding: 24px;

  /* Fill most of the visible screen consistently */
  height: calc(var(--vh) * 90);
  min-height: calc(var(--vh) * 90);
  max-height: calc(var(--vh) * 90);

  overflow-y: auto;
  overflow-x: visible;

  box-sizing: border-box;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

@media (min-width: 768px) {
  #productModal .modal-box {
    width: 600px;
    max-width: 700px;

    height: calc(var(--vh) * 90);
    min-height: calc(var(--vh) * 90);
    max-height: calc(var(--vh) * 90);
  }
}

#p_details {
  display: block;
  width: 100%;
  min-height: 120px;   /* prevents collapse before render */
}
body.modal-open {
  overflow: hidden;
}
button svg {
  transition: transform 0.2s ease;
}

button:active svg {
  transform: scale(1.2);
}

.top-ui {
  width: 100%;
  max-width: 1200px;     /* ✅ looks good on large screens */
  margin: 0 auto;        /* ✅ center whole block */
  padding: 10px 16px;
  background: transparent;
}

/* DELIVERY ROW */
.delivery-row {
  display: flex;
  align-items: center;
  justify-content: center;   /* ✅ centers content */
  gap: 10px;
  cursor: pointer;
  margin-bottom: 12px;
  width: 100%;               /* ✅ full width */
}

.location-dot {
  width: 10px;
  height: 10px;
  background: #12CCA7;
  border-radius: 50%;
  box-shadow: 0 0 6px rgba(18,204,167,0.6);
}

.delivery-info {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.deliver-label {
  font-size: 12px;
  color: #888;
  white-space: nowrap;
}

.deliver-pin {
  font-size: 15px;
  font-weight: 600;
  color: #000;
}

.change-link {
  margin-left: 6px;
  font-size: 13px;
  color: #12CCA7;
  font-weight: 500;
}

/* SEARCH BAR */
.search-bar-modern {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 12px;
  transition: all 0.25s ease;
  width: 100%; 
}

.search-bar-modern:focus-within {
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

.search-bar-modern input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  font-size: 15px;
  padding: 5px 8px;
}

.search-icon {
  font-size: 15px;
  color: #999;
}

.clear-btn {
  font-size: 14px;
  color: #aaa;
  cursor: pointer;
  display: none;
}

.search-bar-modern input:not(:placeholder-shown) ~ .clear-btn {
  display: block;
}

.epouch-footer-area {
    opacity: 0;
    transition: opacity 0.3s ease;
}
.epouch-footer-area.loaded {
    opacity: 1;
}
/* =================== PRODUCT CARD =================== */
.card {
    width: 18rem;
    margin: 15px;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Card hover lift */
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
/* Image hover */
.card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 10px;
    transition: transform 0.4s ease;
}
.card img:hover {
    transform: scale(1.03);
}
/* =================== BUTTONS =================== */
.card .btn {
    background-color: #12CCA7; /* brand color */
    color: #000000;             /* text color */
    border: none;
    border-radius: 6px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Button hover */
.card .btn:hover {
    background-color: #12CCA7; /* slightly darker shade */
    transform: scale(1.05);
    color: #000000;
}
/* =================== MOBILE TOUCH DEVICES =================== */
@media (hover: none) and (pointer: coarse) {
    .card:hover {
        transform: none !important;
        box-shadow: 0 44px 100px rgba(0,0,0,0.1) !important;
    }
}
/* =================== BUTTON ANIMATION (ADD TO CART/WISHLIST) =================== */
.btn-animate {
    transform: scale(0.95);      
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
/* =================== PRODUCT PRICE =================== */
.card .fw-bold {
    font-size: 17px;
    color: #12CCA7; /* brand color */
}
/* =================== TOAST MESSAGES =================== */
.card {
  cursor: pointer;
}
.pagination {
  margin-top: 20px;
}
.pagination .page-item .page-link {
  color: #12CCA7;
  border: none;
  font-weight: 600;
  margin: 3px;
  border-radius: 10px;
  min-width: 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.pagination .page-item.active .page-link {
  background-color: #12CCA7;
  color: #000;
  box-shadow: 0 3px 12px rgba(0,0,0,0.2);
}
.pagination .page-item .page-link:hover {
  background-color: #0fc39c;
  color: #000;
  transform: scale(1.05);
}
.pagination .page-item.disabled .page-link {
  opacity: 0.4;
  pointer-events: none;
}
.banner-container {
    width: 100%;
    margin: 0px;
    padding: 0px;
    
}
.banner-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin: 0px;
    padding: 0px;
}
.banner-fix {
    width: 100%;
    overflow: hidden;
    padding: 0px;
}
.banner-fix img {
    width: 120%;              /* zoom in */
    margin-top: -20px;         /* center crop */
    display: block;
    background:red;
    color: red;
    padding: 0px;
}
.location-icon svg {
  fill: #12CCA7; /* your brand color */
  filter: drop-shadow(0 0 6px rgba(18,204,167,0.6)); /* same glow */
}

#productModal .modal-box {
    max-height: 90vh;
    overflow-y: auto;
}
html {
  scroll-behavior: auto !important;
}

#productModal .modal-box {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* =========================
   PRODUCT MODAL SKELETON LOADER
========================= */

#modalSkeleton {
  display: none;
}
/* Hide actual product content until AJAX finishes */
.modal-content-wrapper {
  display: none;
}

/* Base skeleton block */
.skeleton {
  position: relative;
  overflow: hidden;
  background: #e9ecef;
  border-radius: 8px;
}

/* Shimmer animation */
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0) 100%
  );
  animation: skeletonShimmer 1.2s infinite;
}

@keyframes skeletonShimmer {
  100% {
    left: 100%;
  }
}

/* Image placeholder */
.skeleton-image {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Product title */
.skeleton-title {
  width: 80%;
  height: 24px;
  margin: 0 auto 15px;
}

/* Price */
.skeleton-price {
  width: 120px;
  height: 28px;
  margin: 0 auto 20px;
}

/* Description lines */
.skeleton-line {
  width: 100%;
  height: 14px;
  margin-bottom: 12px;
}

.skeleton-line.short {
  width: 65%;
}

/* Wishlist button */
.skeleton-heart {
  width: 45px;
  height: 45px;
  border-radius: 8px;
}

/* Add to Cart button */
.skeleton-button {
  flex: 1;
  height: 45px;
  border-radius: 8px;
}

#homeCarousel {
  overflow: hidden;
  mx-height: 300px;
  opacity: 1;
  transition: max-height 0.45s ease, opacity 0.45s ease;
}

#homeCarousel.hidden {
  max-height: 0;
  opacity: 0;
  margin: 0 !important;
  padding: 0 !important;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}
.card img:hover {
  transform: scale(1.03);
  transition: transform 0.4s ease;
}
/* =========================
   MOBILE: FORCE 2 PRODUCTS PER ROW
========================= */
@media (max-width: 768px) {

  /* Product container */
  #productContainer {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 8px;
  }

  /* Product card */
  #productContainer .card {
    width: calc(50% - 4px) !important;
    margin: 0 !important;
    border-radius: 12px;
    box-sizing: border-box;
  }

  /* Product image */
  #productContainer .card img {
    height: 140px;
    object-fit: contain;
  }

  /* Product title */
  #productContainer .card .card-title {
    font-size: 14px;
    line-height: 1.3;
    min-height: 36px;
    overflow: hidden;
  }

  /* Price */
  #productContainer .card .fw-bold {
    font-size: 15px;
  }

  /* Buttons */
  #productContainer .card .btn {
    font-size: 12px;
    padding: 6px 8px;
  }
}
/* ===== PROFESSIONAL CAROUSEL DESIGN ===== */
#homeCarousel {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

#homeCarousel .carousel-item,
#homeCarousel .carousel-item img {
  background: transparent;
}

#homeCarousel .carousel-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile banner ratio */
@media (max-width: 768px) {
  #homeCarousel .carousel-item img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
  }
}

/* Desktop banner ratio */

@media (min-width: 769px) {
  #homeCarousel {
    width: 50%;
    max-width: 1200px;
    margin: 0 auto;
  }
}
/* =========================================================
   PROGRESS BAR — real DOM element (not ::after)
   ========================================================= */

/* Hide default Bootstrap dots */
#homeCarousel .carousel-indicators {
  display: none;
}

/* Background track */
.carousel-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.12);
  z-index: 20;
  pointer-events: none;
}

/* Animated fill bar */
.carousel-progress-bar {
  height: 100%;
  width: 0%;
  background: #000;
  animation: carouselProgress var(--carousel-duration, 4000ms) linear forwards;
}

@keyframes carouselProgress {
  from { width: 0%; }
  to   { width: 100%; }
}

/* Mobile thickness */
@media (max-width: 768px) {
  .carousel-progress-track {
    height: 3px;
  }
}

/* Navigation arrows */
#homeCarousel .carousel-control-prev,
#homeCarousel .carousel-control-next {
  width: 10%;
}

#homeCarousel .carousel-control-prev-icon,
#homeCarousel .carousel-control-next-icon {
  background-color: rgba(0,0,0,0.35);
  border-radius: 50%;
  padding: 18px;
}

/* Hide arrows on mobile */
@media (max-width: 768px) {
  #homeCarousel .carousel-control-prev,
  #homeCarousel .carousel-control-next {
    display: none;
  }
}
