:root {
  --primary: #047857;
  --primary-hover: #065f46;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --badge-bg: #ecfdf5;
  --badge-text: #065f46;
  --img-bg: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

body.dark-mode, [data-theme="dark"] {
  --bg: #0b0f19;
  --surface: #111827;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #1f2937;
  --badge-bg: #064e3b;
  --badge-text: #a7f3d0;
  --img-bg: #1f2937;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Hind Siliguri', sans-serif;
  transition: background-color 0.25s ease, color 0.25s ease;
}

body {
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  padding-bottom: 50px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section */
.shop-hero {
  background: linear-gradient(135deg, rgba(4, 120, 87, 0.1) 0%, rgba(2, 44, 34, 0.05) 100%);
  border-bottom: 1px solid var(--border);
  padding: 60px 20px 40px;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 12px;
}

.shop-hero h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.shop-hero p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Sticky Search Bar (আপনার হেডারের উচ্চতা অনুযায়ী top ভ্যালু দিতে পারেন) */
.sticky-search-wrapper {
  position: -webkit-sticky;
  position: sticky;
  top: 60px; /* আপনার হেডারের উচ্চতা 60px হলে এটি ঠিক তার নিচেই স্টিকি থাকবে */
  z-index: 90;
  background: var(--bg);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.search-container {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  font-size: 1rem;
}

.search-container input {
  width: 100%;
  padding: 12px 42px 12px 44px;
  font-size: 1rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}

.search-container input:focus {
  border-color: var(--primary);
}

.clear-btn {
  position: absolute;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--text-muted);
  cursor: pointer;
}

/* Trust Banner */
.policy-banner {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Product Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.image-wrapper {
  width: 100%;
  height: 270px;
  background: var(--img-bg);
  position: relative;
  overflow: hidden;
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-bg);
  color: var(--badge-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.old-price {
  font-size: 0.85rem;
  text-decoration: line-through;
  color: var(--text-muted);
}

.btn-order {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-order:hover {
  background: var(--primary-hover);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.no-results i {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: 0.5;
    }
