/* ============= GLOBAL FIX (NO SIDE SCROLL) ============= */
html {
  box-sizing: border-box;
  max-width: 100vw;
  overflow-x: hidden;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* ============= GLOBAL ============= */
body {
  margin: 0;
  font-family: Segoe UI, Roboto, Arial, sans-serif;
  background: #f1f3f6;
  color: #111827;
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ============= SLIDER ============= */
.slider {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  width: 100%;              /* ✅ screen-এর ভেতরে */
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, .2);
  background: #000;
}

.slides {
  display: flex;
  transition: transform .6s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
  color: #fff;
  text-align: center;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, .4);
  padding: 20px;
  border-radius: 10px;
}

.slide-content h2 {
  margin: 0;
  font-size: 28px;
}

.slide-content p {
  margin: 10px 0;
  font-size: 16px;
}

.slide-content a {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffcd38;
  color: #111;
  font-weight: 600;
  border-radius: 6px;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: none;
  padding: 10px;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
}

.nav-btn.left {
  left: 15px;
}

.nav-btn.right {
  right: 15px;
}

.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
}

.dots span.active {
  background: #ffcd38;
}

/* ========== PRODUCT SECTIONS ========== */
.section {
  max-width: 1200px;
  width: 100%;              /* ✅ */
  margin: 20px auto;
  padding: 0 16px;
}

.section h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section h3 a {
  font-size: 14px;
  color: #D4A830;
}

/* ========== PRODUCT GRID ========== */
.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

/* Best Seller tag */
.card .best-seller {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #D4A830;
  color: #111;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 2;
}

/* Card body */
.body {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 2px;
}

.rating {
  color: #D4A830;
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.1;
}

/* one-line price + tight gaps */
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 5px 0 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.price-row .price {
  color: #e53935;
  font-weight: 800;
  font-size: 16px;
}

.price-row .mrp {
  text-decoration: line-through;
  font-size: 13px;
  color: #777;
}

.price-row .off {
  font-size: 12px;
  font-weight: 800;
  color: #2e7d32;
}

/* stock placed close under price */
.stock-line {
  margin-top: 5px;
  font-size: 15px;
  font-weight: 600;
}

.stock-line .in-stock {
  color: green;
}

.stock-line .out-stock {
  color: #e53935;
}

/* small gradient buttons with icons (card level) */
.cta {
  margin-top: auto;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.pp-btn {
  flex: 1;
  max-width: 330px;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: .2s;
  text-decoration: none;
}

.pp-btn i {
  margin-right: 6px;
  font-size: 10px;
}

.pp-btn.add-cart {
  background: linear-gradient(45deg, #ffd700, #d4af37);
}

.pp-btn.buy-now {
  background: linear-gradient(45deg, #ffbf00, #b8860b);
}

.pp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .25);
}

.pp-btn:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}

/* ========== BOGO / TIMER BADGES ========== */
.offer-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ff0066;
  color: #fff;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  z-index: 10;
  text-transform: uppercase;
}

/* ⏳ Timer badge (left side) */
.offer-timer {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 3px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.offer-timer i {
  font-size: 10px;
}

.offer-timer-text {
  font-variant-numeric: tabular-nums;
}

/* ========== NOTIFICATION BAR (TOP) ========== */
.notif-bar {
  width: 100%;
  background: #1f2937;
  color: #e5e7eb;
  font-size: 13px;
  border-bottom: 1px solid #374151;
}

.notif-inner {
  max-width: 1200px;
  width: 100%;            /* ✅ */
  margin: 0 auto;
  padding: 6px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notif-inner i.fa-bullhorn {
  font-size: 13px;
}

.notif-slider {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.notif-item {
  display: inline-block;
  margin-right: 24px;
  color: #e5e7eb;
  text-decoration: none;
}

.notif-item strong {
  font-weight: 700;
}

.notif-item span {
  opacity: 0.9;
}

.notif-close {
  background: transparent;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 2px;
}

.notif-close:hover {
  color: #f9fafb;
}

/* ========== FOOTER BASIC (optional, simple) ========== */
.footer {
  background: #111827;
  color: #e5e7eb;
  margin-top: 30px;
  padding: 20px 0 10px;
  font-size: 14px;
}

.footer .wrap {
  max-width: 1200px;
  width: 100%;            /* ✅ */
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.footer h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.footer a {
  color: #e5e7eb;
  font-size: 13px;
}

.footer a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #374151;
  margin-top: 12px;
  padding-top: 8px;
  font-size: 12px;
  color: #9ca3af;
}

/* ========== MOBILE (Flipkart / Meesho style) ========== */
@media (max-width: 600px) {
  /* Notification tighter */
  .notif-inner {
    padding: 6px 8px;
    gap: 6px;
  }

  .notif-bar {
    font-size: 11px;
  }

  .notif-item {
    margin-right: 16px;
  }

  /* Slider height a bit smaller on mobile */
  .slide img {
    height: 220px;
  }

  .slide-content {
    padding: 12px;
  }

  .slide-content h2 {
    font-size: 18px;
  }

  .slide-content p {
    font-size: 13px;
  }

  /* MOBILE PRODUCT GRID – Flipkart / Meesho style cards */
  .section {
    padding: 0 6px;
  }

  .section h3 {
    font-size: 13px;
  }

  .section h3 a {
    font-size: 11px;
  }

  .grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 0;           /* ✅ extra side padding off */
  }

  .card {
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
  }

  .card img {
    width: 100%;
    height: 150px; /* ছোট ইমেজ */
    object-fit: cover;
    display: block;
  }

  .body {
    padding: 6px 6px 7px;
  }

  .title {
    font-size: 11px;
    line-height: 1.3;
    max-height: 2.6em;      /* ২ লাইনের বেশি না */
    overflow: hidden;
  }

  .rating {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .price-row .price {
    font-size: 12px;
  }

  .price-row .mrp,
  .price-row .off {
    font-size: 10px;
  }

  .stock-line {
    font-size: 10px;
    margin: 2px 0;
  }

  .cta {
    display: flex;
    gap: 4px;
    margin-top: 4px;
  }

  .cta .pp-btn {
    padding: 3px 5px;
    font-size: 10px;
    box-shadow: none;
  }
/* Mobile: hide View button */
.card .cta .add-cart {
    display: none !important;
}
.card .cta .buy-now:not([disabled]) {
    display: none !important;
  }
  .card .cta .buy-now[disabled] {
    display: none !important;
  }
  .offer-badge,
  .offer-timer {
    font-size: 9px;
    padding: 2px 5px;
  }

  .offer-timer i {
    font-size: 9px;
  }

  .footer .wrap {
    padding: 0 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    font-size: 12px;
  }
}
