/* ═══════════════════════════════════════════════════════
   NEW ADDITIONS — condition badges, discount, gallery
   ═══════════════════════════════════════════════════════ */
.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--cream-base);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: .15rem .2rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--brown-rich);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: .95rem;
  transition: background var(--transition), color var(--transition);
}

.qty-btn:hover {
  background: var(--brown-rich);
  color: var(--cream-light);
}

.qty-value {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-size: .9rem;
  color: var(--text-primary);
}
/* ── CONDITION BADGES (on cards) ── */
.badge-condition {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 50px;
  padding: .22rem .6rem;
  line-height: 1;
}

.badge-condition-new {
  background: rgba(45,106,79,.12);
  color: #1a6641;
  border: 1px solid rgba(45,106,79,.25);
}

.badge-condition-used {
  background: rgba(160,98,42,.13);
  color: var(--brown-rich);
  border: 1px solid rgba(160,98,42,.28);
}

/* ── DISCOUNT BADGE (on cards) ── */
.badge-discount {
  background: #dc2626;
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .05em;
  border-radius: 50px;
  padding: .22rem .65rem;
  line-height: 1;
}

/* ── PRICE BLOCK (card) ── */
.product-price-block {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  flex-wrap: wrap;
}

.product-price-original {
  font-size: .82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

/* ── DETAIL PAGE PRICE BLOCK ── */
.detail-price-block {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-price-original {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.detail-discount-badge {
  background: #dc2626;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .7rem;
  border-radius: 50px;
  letter-spacing: .04em;
}

/* ── CONDITION BADGE (detail page) ── */
.condition-detail-badge {
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .85rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
}

.condition-detail-new {
  background: rgba(45,106,79,.1);
  color: #1a6641;
  border: 1px solid rgba(45,106,79,.22);
}

.condition-detail-used {
  background: rgba(160,98,42,.1);
  color: var(--brown-rich);
  border: 1px solid rgba(160,98,42,.22);
}

/* ── PRODUCT IMAGE GALLERY ── */
.product-gallery-carousel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--cream-base);
}

.gallery-main-img {
  width: 100%;
  height: 460px;
  object-fit: contain;  
  display: block;
  background: var(--cream-base);
}

.gallery-placeholder {
  height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  background: var(--cream-base);
}

.gallery-ctrl {
  width: 38px !important;
  height: 38px !important;
  background: rgba(255,255,255,.85) !important;
  backdrop-filter: blur(6px);
  border-radius: 50% !important;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  color: var(--brown-rich) !important;
  font-size: .95rem !important;
  opacity: 0 !important;
  transition: opacity var(--transition) !important;
}

.product-gallery-carousel:hover .gallery-ctrl { opacity: 1 !important; }

/* Thumbnail strip */
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: .25rem;
  scrollbar-width: none;
}

.gallery-thumbs::-webkit-scrollbar { display: none; }

.gallery-thumb {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-light);
  cursor: pointer;
  background: var(--cream-base);
  padding: 0;
  transition: border-color var(--transition), transform var(--transition);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  border-color: var(--brown-warm);
  transform: translateY(-2px);
}

.gallery-thumb.active {
  border-color: var(--brown-rich);
  box-shadow: 0 0 0 2px rgba(92,51,23,.2);
}

/* sticky bar with original price */
.sticky-original-price {
  font-size: .78rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: .4rem;
}

/* ── BOUTIQUE BIGGER DESKTOP CARDS ── */
@media (min-width: 768px) {
  /* Boutique page: make grid images taller */
  #product-list .card-img-wrapper img,
  #product-list .card-img-wrapper > div {
    height: 220px !important;
  }

  /* Slightly more padding on card body */
  #product-list .card-body {
    padding: 1.1rem 1.2rem .7rem;
  }

  #product-list .card-title {
    font-size: .92rem;
  }

  #product-list .product-price {
    font-size: 1.15rem;
  }
}

/* ── MOBILE gallery ── */
@media (max-width: 767px) {
  .gallery-main-img,
  .gallery-placeholder {
    height: 260px !important;
  }

  .gallery-thumb {
    width: 54px;
    height: 54px;
  }
}

/* ── GALLERY MOBILE FIX (override) ── */
@media (max-width: 767px) {
  .gallery-main-img {
    height: 280px !important;
    object-fit: contain !important;
    background: var(--cream-base) !important;
  }
  .gallery-placeholder {
    height: 280px !important;
  }
}

/* ── HOME HERO CAROUSEL — fix stretched images ── */
#heroCarousel .carousel-item {
  position: relative;
  overflow: hidden;
  background: var(--brown-deep);
}

/* Blurred bg — set via JS */
#heroCarousel .carousel-item .carousel-blur-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  filter: blur(22px) brightness(.45) saturate(.7);
  transform: scale(1.15);
  z-index: 0;
}

#heroCarousel .carousel-item img {
  height: clamp(400px, 60vw, 620px) !important;
  width: 100% !important;
  object-fit: contain !important;
  position: relative;
  z-index: 1;
  background: transparent !important;
}

/* Keep overlay and caption above blur */
#heroCarousel .carousel-item::after { z-index: 2 !important; }
#heroCarousel .carousel-caption    { z-index: 3 !important; }

/* Mobile: cover is fine since images fill width better */
@media (max-width: 767px) {
  #heroCarousel .carousel-item img {
    height: clamp(260px, 58vw, 380px) !important;
    object-fit: cover !important;
  }
  #heroCarousel .carousel-item .carousel-blur-bg {
    display: none;
  }
}