/* ════════════════════════════════════════════════
   UNIQUE TASTES — Design System
   ════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Baloo+Da+2:wght@400;500;600;700;800&family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --brand:        #e8470a;
  --brand-dark:   #c73d08;
  --brand-light:  #ff6a30;
  --brand-glow:   rgba(232, 71, 10, 0.18);
  --bg-dark:      #1a0800;
  --surface:      #ffffff;
  --surface-off:  #f7f4f2;
  --text-primary: #1c1008;
  --text-muted:   #7a6a60;
  --border:       #ede8e4;
  --radius:       14px;
  --radius-sm:    8px;
  --radius-xs:    5px;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow:       0 4px 20px rgba(0,0,0,0.09);
  --shadow-md:    0 8px 32px rgba(0,0,0,0.12);
  --font-main:    'Baloo Da 2', 'Hind Siliguri', system-ui, sans-serif;
  --transition:   0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--font-main);
  background: var(--surface-off);
  color: var(--text-primary);
  margin: 0;
}

a { text-decoration: none; }

/* ── TOPBAR (Desktop) ──────────────────────────── */
.topbar {
  background: linear-gradient(135deg, #1a0800 0%, #2e1200 55%, #1a0800 100%);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}

/* Announcement marquee */
.announcement-bar {
  background: var(--brand);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}
.announcement-bar .marquee-track {
  display: flex;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.4px;
}
.announcement-bar .marquee-track span { padding: 0 40px; }
.announcement-bar .marquee-track span::before { content: "🔥"; margin-right: 8px; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Top links */
.top-links-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  padding: 6px 0 4px;
}
.top-links-row a {
  color: rgba(255,255,255,0.75);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 20px;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.top-links-row a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.top-links-row .lang-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
}
.top-links-row .lang-btn:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.top-links-row .divider { width: 1px; height: 14px; background: rgba(255,255,255,0.2); margin: 0 4px; }

/* Header main row */
.header-main-row {
  padding: 10px 0 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-logo img {
  max-height: 62px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
  transition: transform var(--transition);
}
.header-logo img:hover { transform: scale(1.04); }

/* Search */
.header-search-wrap {
  flex: 1;
  display: flex;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.header-search-wrap:focus-within {
  border-color: var(--brand-light);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
.header-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 14px;
  color: #fff;
  font-family: var(--font-main);
}
.header-search-wrap input::placeholder { color: rgba(255,255,255,0.4); }
.header-search-wrap button {
  background: var(--brand);
  border: none;
  padding: 10px 22px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background var(--transition);
  border-radius: 0 40px 40px 0;
  font-family: var(--font-main);
}
.header-search-wrap button:hover { background: var(--brand-dark); }

/* Desktop search box fallback (for pages using old .search-box class) */
.search-box {
  display: flex;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 40px;
  overflow: hidden;
}
.search-box .form-control {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  padding: 10px 18px;
  font-family: var(--font-main);
}
.search-box .form-control::placeholder { color: rgba(255,255,255,0.4); }
.search-box .form-control:focus { box-shadow: none; }
.btn-search {
  background: var(--brand);
  border: none;
  color: #fff;
  padding: 10px 20px;
  border-radius: 0 40px 40px 0;
  transition: background var(--transition);
}
.btn-search:hover { background: var(--brand-dark); color: #fff; }

/* ── HERO CAROUSEL (Desktop) ───────────────────── */
#heroCarousel .carousel-item img {
  width: 100%;
  height: 380px;
  object-fit: fill;
}
#heroCarousel .carousel-indicators [data-bs-target] {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  margin: 0 4px;
}
#heroCarousel .carousel-indicators .active { background: var(--brand); }

/* ── CATEGORIES (Desktop) ──────────────────────── */
.categories {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.categories a { text-decoration: none; color: var(--text-primary); }
.category-item {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.category-item:hover { background: #fff4f0; color: var(--brand); }
.category-item:last-child { border-bottom: none; }

/* ── PRODUCT CARDS ──────────────────────────────── */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #f4cfc1;
}
.product-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.product-card img.flashImg { height: 110px !important; }
.product-card .card-body { flex: 1; display: flex; flex-direction: column; }
.product-card .card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-weight: 700;
  color: var(--brand);
  font-size: 17px;
}
.old-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 13px;
}
.original-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 14px;
  margin-left: 6px;
}

/* Add to cart button on card */
.btn-cart {
  display: block;
  width: 100%;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  border: none;
  cursor: pointer;
  text-align: center;
  margin-top: auto;
  transition: background var(--transition);
  font-family: var(--font-main);
}
.btn-cart:hover { background: var(--brand-dark); color: #fff; }

/* ── SECTION HEADERS ────────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2, .section-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}
.section-header .accent-bar {
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--brand);
  border-radius: 4px;
}

/* ── FLASH SALE ──────────────────────────────────── */
.flash-sale-banner {
  background: linear-gradient(135deg, #ff3c00 0%, #ff7a00 100%);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #fff;
  margin-bottom: 16px;
}
.flash-sale-banner .sale-label {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.flash-sale-banner .countdown-pill {
  background: rgba(0,0,0,0.25);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 1px;
}

/* Progress bar (flash sale sold) */
.fs-progress {
  background: #ffb6bf;
  border-radius: 20px;
  font-size: 11px;
  height: 16px;
  line-height: 16px;
  margin: 8px 0 0;
  position: relative;
  width: 90px;
}
.fs-progress-val {
  background: #fe4960;
  border-radius: 20px;
  color: #fff;
  height: 100%;
  position: absolute;
  left: 0; top: 0;
  padding-left: 18px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}
.fs-progress-hot {
  background: url(//img.lazcdn.com/g/tps/imgextra/i2/O1CN01cIQWMd1TPnNYzyvZz_!!6000000002375-2-tps-50-65.png)
    center/contain no-repeat;
  bottom: 0; left: -3px;
  height: 20px; width: 20px;
  position: absolute;
  z-index: 5;
}

/* ── FOOTER INFO ─────────────────────────────────── */
.footer-info-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-info-section h6 {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.footer-info-section img {
  height: 32px;
  width: auto;
  object-fit: contain;
  background: var(--surface);
  border-radius: var(--radius-xs);
}
.footer-info-section ul { list-style: none; padding: 0; margin: 0; }
.footer-info-section ul li {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-weight: 400;
}
.footer-info-section ul li a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-info-section ul li a:hover { color: var(--brand); }

/* ── SITE FOOTER ─────────────────────────────────── */
.site-footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
  font-size: 13px;
  text-align: center;
}

/* ── BOTTOM NAV (Mobile) ─────────────────────────── */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0; left: 0;
  width: 100%;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 9999;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
.mobile-bottom-nav .nav-item {
  flex: 1;
  text-align: center;
  color: #7a6a60;
  font-size: 11px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: color var(--transition);
  font-family: var(--font-main);
}
.mobile-bottom-nav .nav-item i { font-size: 21px; display: block; }
.mobile-bottom-nav .nav-item.active,
.mobile-bottom-nav .nav-item.active i { color: var(--brand); }

/* ── MOBILE SHELL ────────────────────────────────── */
.daraz-mobile-home { display: none; }
@media (max-width: 767px) {
  .daraz-mobile-home { display: block; }
  .topbar { display: none !important; }
  #heroCarousel { display: none !important; }
  footer.site-footer { padding-bottom: 70px; }
  .footer-info-section { padding-bottom: 70px; }
  .footer-info-section img { height: 24px; }
  .fs-progress { opacity: 1; visibility: visible; }
}

.mobile-shell {
  background: linear-gradient(170deg, #1a0800 0%, #2e1200 50%, #1a0800 100%);
}

/* Mobile topbar actions */
.mob-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px 6px;
  gap: 8px;
}
.mob-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity var(--transition);
  font-family: var(--font-main);
}
.mob-action-btn:active { opacity: 0.75; }
.mob-action-btn.chat  { background: #c0392b; color: #fff; }
.mob-action-btn.acc   { background: #27ae60; color: #fff; }
.mob-action-btn.lang  {
  background: rgba(255,255,255,0.10);
  color: rgba(255,255,255,0.88);
  border: 1px solid rgba(255,255,255,0.18);
}

/* Mobile search bar */
.mob-search-row {
  display: flex;
  align-items: center;
  margin: 4px 12px 10px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}
.mob-search-row:focus-within { border-color: var(--brand-light); }
.mob-logo-wrap { padding: 6px 8px 6px 12px; }
.mob-logo-wrap img { height: 36px; display: block; }
.mob-search-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 14px;
  color: #fff;
  padding: 10px 6px;
  font-family: var(--font-main);
}
.mob-search-row input::placeholder { color: rgba(255,255,255,0.38); }
.mob-search-row button {
  background: var(--brand);
  border: none;
  padding: 10px 16px;
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  transition: background var(--transition);
  font-family: var(--font-main);
}
.mob-search-row button:hover { background: var(--brand-dark); }

/* Mobile slider */
.mob-slider { margin: 0 12px 4px; }
.mob-slider .carousel-inner { border-radius: var(--radius); overflow: hidden; }
.mob-slider img { width: 100%; display: block; }
.mob-slider .carousel-indicators [data-bs-target] {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  border: none;
}
.mob-slider .carousel-indicators .active { background: var(--brand); }

/* Mobile section title */
.mob-section-title {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 14px 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mob-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.12);
}

/* Mobile category grid */
.mob-categories {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 4px 12px 80px;
}
.mob-cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}
.mob-cat-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.07);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.10);
  transition: background var(--transition), transform var(--transition);
}
.mob-cat-item:active .mob-cat-icon {
  background: var(--brand-glow);
  transform: scale(0.9);
}
.mob-cat-icon img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.mob-cat-label {
  font-size: 10.5px;
  color: rgba(255,255,255,0.78);
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
}

/* ── PRODUCT DETAIL PAGE ─────────────────────────── */
.product-container {
  max-width: 1180px;
  margin: auto;
  padding: 24px 16px;
  background: var(--surface);
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.left-column, .right-column {
  flex: 1;
  min-width: 300px;
}
.main-image {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.thumbnails img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color var(--transition);
}
.thumbnails img.active,
.thumbnails img:hover { border-color: var(--brand); }
.color-options img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color var(--transition);
}
.color-options img.active,
.color-options img:hover { border-color: var(--brand); }
.buttons { display: flex; gap: 12px; margin-top: 24px; }
.buttons button {
  flex: 1;
  padding: 13px;
  border: none;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: opacity var(--transition);
  font-family: var(--font-main);
}
.buttons button:hover { opacity: 0.88; }
.buy-now { background: linear-gradient(135deg, #00aaff, #0078d7); }
.add-to-cart { background: linear-gradient(135deg, var(--brand-light), var(--brand)); }
h2 {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  margin-top: 12px;
  font-family: var(--font-main);
  line-height: 1.4;
}
.discount {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
}
.section { margin-top: 20px; }

/* ── BADGE / TAGS ────────────────────────────────── */
.badge-brand {
  background: #fff4f0;
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid #f4cfc1;
  display: inline-block;
}

/* ── UTILITY ─────────────────────────────────────── */
.text-brand { color: var(--brand); }
.bg-brand   { background-color: var(--brand); color: #fff; }
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

/* ── RESPONSIVE TWEAKS ───────────────────────────── */
@media (max-width: 991px) {
  .header-search-wrap { width: 100%; }
}
@media (max-width: 768px) {
  .product-container { flex-direction: column; }
}