:root {
  --pink: #ff6f91;
  --blue: #4ea8de;
  --dark: #2b2b3c;
  --bg: #fff9fb;
}

body {
  font-family: 'Poppins', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--pink) !important;
}

.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  padding: 6px 0;
}

.category-pill {
  border-radius: 30px;
  padding: 8px 22px;
  margin: 0 6px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

.category-pill.boys { background: #e7f3ff; color: var(--blue); }
.category-pill.girls { background: #ffe9f0; color: var(--pink); }
.category-pill.unisex { background: #eef7ee; color: #4caf50; }
.category-pill.active, .category-pill:hover { color: #fff; }
.category-pill.boys.active, .category-pill.boys:hover { background: var(--blue); }
.category-pill.girls.active, .category-pill.girls:hover { background: var(--pink); }
.category-pill.unisex.active, .category-pill.unisex:hover { background: #4caf50; }

.product-card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform .15s ease;
  height: 100%;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f2f2f2;
}
.product-card .img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.product-card .img-wrap img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .45s ease, transform .45s ease;
}
.product-card .img-wrap img.img-2 { opacity: 0; }
.product-card:hover .img-wrap img.img-1 { opacity: 0; transform: scale(1.06); }
.product-card:hover .img-wrap img.img-2 { opacity: 1; transform: scale(1.06); }
.product-card .body { padding: 10px; }
.product-card .title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dark);
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price { font-weight: 700; color: var(--pink); font-size: 0.85rem; }
.compare-price { text-decoration: line-through; color: #999; font-size: 0.74rem; margin-left: 4px; }
.badge-off { background: var(--pink); color: #fff; font-size: 0.7rem; padding: 3px 8px; border-radius: 20px; }

.card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 10px 10px;
}
.btn-mini {
  width: 100%;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 8px 6px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
}
.btn-mini-outline {
  border: 1.5px solid var(--pink);
  color: var(--pink);
  background: #fff;
}
.btn-mini-outline:hover { background: #fff0f4; color: var(--pink); }
.btn-mini-fill {
  background: var(--pink);
  color: #fff;
  border: 1.5px solid var(--pink);
}
.btn-mini-fill:hover { background: #e85a7c; color: #fff; }

.hero {
  background: linear-gradient(120deg, #ffe9f0, #e7f3ff);
  border-radius: 18px;
  padding: 50px 30px;
  text-align: center;
  margin-bottom: 30px;
}
.hero h1 { font-weight: 800; color: var(--dark); }

.hero-banner {
  width: 100%;
  min-height: 420px;
  background-color: #ffe9f0;
  background-size: cover;
  background-position: center 20%;
  position: relative;
  margin-bottom: 30px;
}
.hero-overlay {
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(90deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.75) 45%, rgba(255,255,255,0.15) 75%, rgba(255,255,255,0) 100%);
}
.hero-text { max-width: 520px; padding: 40px 0; }
.hero-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}
.hero-text h1 {
  font-weight: 800;
  color: var(--dark);
  font-size: 2.5rem;
  margin-bottom: 14px;
}
.hero-text p {
  color: #555;
  font-size: 1.1rem;
  margin-bottom: 22px;
}
@media (max-width: 768px) {
  .hero-banner, .hero-overlay { min-height: 320px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,255,255,0.95) 55%, rgba(255,255,255,0.3) 100%); align-items: flex-end; }
  .hero-text { max-width: 100%; padding-bottom: 30px; }
  .hero-text h1 { font-size: 1.6rem; }
}

.btn-brand {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 600;
}
.btn-brand:hover { background: #e85a7c; border-color: #e85a7c; color: #fff; }

.btn-outline-brand {
  border-color: var(--pink);
  color: var(--pink);
  font-weight: 600;
}
.btn-outline-brand:hover { background: var(--pink); color: #fff; }

footer {
  background: var(--dark);
  color: #ddd;
  padding: 40px 0 20px;
  margin-top: 50px;
  font-size: 0.9rem;
}
footer a { color: #ddd; text-decoration: none; }
footer a:hover { color: var(--pink); }

.variant-option {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 6px 14px;
  margin: 3px;
  cursor: pointer;
  display: inline-block;
}
.variant-option.selected { border-color: var(--pink); background: var(--pink); color: #fff; }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--pink);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  padding: 1px 6px;
}

/* Product detail page - main image bina crop na, pura garment dekhay */
.product-gallery {
  max-width: 420px;
  margin: 0 auto;
}
.main-image-wrap {
  width: 100%;
  max-height: 420px;
  background: #f7f7f7;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.main-image-wrap img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

/* Best Selling slider - continuous auto-scroll (marquee), no jump/step */
.product-slider-wrap {
  position: relative;
  overflow: hidden;
}
.product-slider {
  display: flex;
  gap: 16px;
  width: max-content;
  animation-name: slide-continuous;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  padding-bottom: 12px;
}
.product-slider:hover { animation-play-state: paused; }
.product-slider .slide {
  flex: 0 0 auto;
  width: 220px;
}
@keyframes slide-continuous {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .product-slider .slide { width: 160px; }
}

/* Rating badge on product page */
.rating-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rating-badge .stars {
  color: #ffb400;
  font-size: 1rem;
  letter-spacing: 1px;
}
.rating-badge .stars .half {
  background: linear-gradient(90deg, #ffb400 50%, #ddd 50%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.rating-badge .rating-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
}

/* Related products - manual horizontal scroll (swipe/drag), no auto animation */
.related-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x proximity;
}
.related-slide {
  flex: 0 0 auto;
  width: 190px;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .related-slide { width: 150px; }
}

/* Sales popup (bottom-left) - real order data thi j chale che */
.sales-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
}
.sales-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.sales-popup img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.sales-popup-text { font-size: 0.82rem; color: var(--dark); }
.sales-popup-product {
  font-size: 0.78rem;
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sales-popup-time { font-size: 0.7rem; color: #999; margin-top: 2px; }
.sales-popup-close {
  position: absolute;
  top: 4px;
  right: 8px;
  border: none;
  background: none;
  font-size: 1rem;
  line-height: 1;
  color: #aaa;
  cursor: pointer;
}
.sales-popup-close:hover { color: #333; }
@media (max-width: 576px) {
  .sales-popup { left: 10px; right: 10px; max-width: none; bottom: 10px; }
}

/* Buy X Get Y promo banner */
.promo-banner {
  background: #fff5e6;
  border: 1px dashed #ffb400;
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: #7a5200;
}
.promo-banner.promo-active {
  background: #e9f9ee;
  border: 1px solid #4caf50;
  color: #1e6b2f;
}

/* Policy pages */
.policy-page {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.policy-page h5 { color: var(--dark); font-weight: 700; }
.policy-page p { color: #555; line-height: 1.7; }

/* Footer policy links */
.policy-links a {
  font-size: 0.85rem;
  color: #bbb;
}
.policy-links a:hover { color: var(--pink); }

/* Compact mini footer for non-home pages */
.footer-mini {
  background: var(--dark);
  color: #ccc;
  padding: 22px 0;
  margin-top: 50px;
  font-size: 0.85rem;
}
.footer-mini-badges {
  font-size: 0.82rem;
  color: #ddd;
}
.footer-mini-links a {
  color: #bbb;
  text-decoration: none;
  margin: 0 8px;
  font-size: 0.8rem;
}
.footer-mini-links a:hover { color: var(--pink); }
.footer-mini p { color: #999; font-size: 0.78rem; }

/* Product page perks (free shipping / prepaid discount) */
.product-perks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.perk-item {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #444;
}
.perk-item.perk-highlight {
  background: #e7f3ff;
  color: #1d5b8f;
}

/* Quantity stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 30px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: #f7f7f7;
  border: none;
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  color: var(--dark);
  cursor: pointer;
}
.qty-btn:hover { background: #eee; }
.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  height: 38px;
  font-weight: 600;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}