/* ── Global ── */
:root {
  --brand: #ffc107;
  --brand-dark: #e0a800;
  --dark: #1a1a2e;
}

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Navbar brand ── */
.brand-logo {
  letter-spacing: 0.5px;
}

/* ── Hero Split Layout ── */
.hero-split {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  overflow: hidden;
}

.hero-row {
  min-height: 380px;
}

/* Left text panel */
.hero-text-panel {
  background: linear-gradient(160deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.hero-brand-title {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-slide-title {
  font-size: clamp(0.95rem, 1.8vw, 1.3rem);
  color: var(--brand);
  font-weight: 600;
  min-height: 1.8rem;
  margin-bottom: 0.4rem;
  transition: opacity 0.4s ease;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

/* Right image panel */
.hero-img-col {
  position: relative;
}

#heroCarousel,
#heroCarousel .carousel-inner {
  height: 100%;
  min-height: 380px;
}

#heroCarousel .carousel-item {
  height: 100%;
}

.carousel-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-img-fallback {
  background: linear-gradient(135deg, #0f3460 0%, #533483 100%);
  min-height: 380px;
}

#heroCarousel .carousel-indicators {
  margin-bottom: 0.5rem;
}

#heroCarousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--brand);
  opacity: 0.5;
}

#heroCarousel .carousel-indicators .active {
  opacity: 1;
}

/* Stack on mobile */
@media (max-width: 991px) {
  .hero-row {
    min-height: unset;
  }
  .hero-text-panel {
    min-height: 260px;
  }
  #heroCarousel,
  #heroCarousel .carousel-inner,
  .hero-img-fallback {
    min-height: 260px;
  }
}

/* ── Hero Banner (legacy fallback class) ── */
.hero-banner {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 340px;
  display: flex;
  align-items: center;
}

/* ── Product Card ── */
.product-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  border-radius: 1rem;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.13) !important;
}

.product-card .card-img-top {
  height: 280px;
  object-fit: contain;
  object-position: center;
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
  background-color: #f8f9fa;
}

.product-card:hover .card-img-top {
  transform: scale(1.05);
}

.product-card .img-wrapper {
  overflow: hidden;
  width: 100%;
}

/* ── Category filter active ── */
#categoryFilters .btn.active {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #000;
}

/* ── Price tag ── */
.price-tag {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ── Stock badges ── */
.badge-instock {
  background-color: #198754;
}
.badge-lowstock {
  background-color: #fd7e14;
}
.badge-outofstock {
  background-color: #dc3545;
}

/* ── Quick view overlay ── */
.quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  padding: 0.5rem;
  opacity: 0;
  transition: opacity 0.25s;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.product-card:hover .quick-view-overlay {
  opacity: 1;
}

/* ── Cart item row ── */
.cart-item-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f0f0f0;
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-item-qty button {
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  border-radius: 50%;
}

.cart-item-qty input {
  width: 44px;
  text-align: center;
  padding: 0.15rem;
  font-weight: 600;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
}

/* ── Buttons ── */
.btn-warning {
  background-color: var(--brand);
  border-color: var(--brand);
  color: #000;
}

.btn-warning:hover {
  background-color: var(--brand-dark);
  border-color: var(--brand-dark);
}

/* ── w-fit utility ── */
.w-fit {
  width: fit-content;
}

/* ── Product image thumbnails ── */
.thumb-img:hover {
  border-color: var(--brand) !important;
  border-width: 2px !important;
  transform: scale(1.06);
}

/* ── Responsive tweaks ── */
@media (max-width: 576px) {
  .hero-banner h1 {
    font-size: 2rem;
  }

  .cart-item-row {
    flex-wrap: wrap;
  }
}
