/* ============================================
   GARNER STATIONERY - NATIVE HOMEPAGE
   মার্কআপ আসে inc/garner-home-render.php থেকে, ক্লাস প্রিফিক্স `gh-`
============================================ */

.garner-home {
  --gh-blue: #0B5DA4;
  --gh-blue-dark: #08467B;
  --gh-red: #C81824;
  --gh-red-dark: #A0121B;
  --gh-green: #2E7D32;
  --gh-green-dark: #1B5E20;
  --gh-yellow: #FFC847;
  --gh-ink: #1A1A1A;
  --gh-ink-soft: #5B6871;
  --gh-cream: #F4F8FB;
  --gh-cream-2: #E8EEF5;
  --gh-radius-lg: 22px;
  --gh-radius-md: 14px;
  --gh-shadow: 0 10px 30px rgba(11, 93, 164, 0.08);

  display: block;
  background: var(--gh-cream);
  color: var(--gh-ink);
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
.garner-home *, .garner-home *::before, .garner-home *::after { box-sizing: border-box; }
.garner-home img { max-width: 100%; height: auto; display: block; }
.garner-home a { text-decoration: none; color: inherit; }
.garner-home h2, .garner-home h3 { font-family: 'Baloo 2', sans-serif; font-weight: 700; color: var(--gh-ink); margin: 0; line-height: 1.2; }
.garner-home p { margin: 0; }

.gh-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.gh-section { padding: 48px 0; }
.gh-bg-white { background: #fff; }
.gh-bg-alt { background: var(--gh-cream-2); }
.gh-slider { padding: 0; }

/* ---------- শিরোনাম ---------- */
.gh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.gh-head h2 { font-size: 28px; color: var(--gh-blue); }
.gh-head-center { justify-content: center; text-align: center; }
.gh-head-center > div { display: flex; flex-direction: column; align-items: center; }
.gh-eyebrow {
  display: inline-block; font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px;
  margin-bottom: 10px; background: var(--gh-ink); color: #fff;
}
.gh-eyebrow-green { background: var(--gh-green); }
.gh-eyebrow-yellow { background: var(--gh-yellow); color: #4A3400; }
.gh-see-all { font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15px; color: var(--gh-red); white-space: nowrap; }
.garner-home a.gh-see-all:hover { color: var(--gh-red-dark); }

.gh-btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: 'Baloo 2', sans-serif; font-weight: 600;
  font-size: 15px; padding: 12px 26px; border-radius: 999px; transition: transform .15s ease, background .2s ease;
}
.gh-btn:hover { transform: translateY(-2px); }
.garner-home .gh-btn-red { background: var(--gh-red); color: #fff; }
.garner-home .gh-btn-red:hover { background: var(--gh-red-dark); color: #fff; }
.garner-home .gh-btn-white { background: #fff; color: var(--gh-blue); width: fit-content; }

/* ---------- প্রোডাক্ট grid ---------- */
.gh-grid { display: grid; gap: 18px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.gh-grid.gh-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gh-grid.gh-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.gh-card {
  background: #fff; border: 1px solid var(--gh-cream-2); border-radius: var(--gh-radius-md);
  box-shadow: var(--gh-shadow); overflow: hidden; display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease; min-width: 0;
}
.gh-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(11, 93, 164, 0.14); }
.gh-thumb { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--gh-cream-2); overflow: hidden; }
.garner-home .gh-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s ease; }
.gh-card:hover .gh-thumb img { transform: scale(1.04); }
.gh-badge {
  position: absolute; top: 10px; left: 10px; background: var(--gh-red); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
}
.gh-badge-out { background: #6B7280; }

.gh-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.garner-home .gh-card-title {
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(1.4em * 2);
}
.gh-card-title a:hover { color: var(--gh-blue); }
.gh-price { font-weight: 700; color: var(--gh-red); font-size: 16px; margin-top: auto; }
.gh-price del { color: #9CA3AF; font-weight: 500; font-size: 13px; margin-right: 4px; }
.gh-price ins { text-decoration: none; }

.garner-home .gh-add {
  display: block; text-align: center; font-size: 13px; font-weight: 600; line-height: 1.2;
  padding: 10px 12px; border-radius: 999px; background: var(--gh-blue); color: #fff; border: 0;
  transition: background .2s ease;
}
.garner-home .gh-add:hover { background: var(--gh-red); color: #fff; }
.garner-home .gh-add-alt { background: #fff; color: var(--gh-blue); box-shadow: inset 0 0 0 1.5px var(--gh-blue); }
.garner-home .gh-add-alt:hover { background: var(--gh-blue); color: #fff; }
.garner-home .gh-add-out { background: var(--gh-cream-2); color: var(--gh-ink-soft); }
.garner-home .gh-add-out:hover { background: var(--gh-cream-2); color: var(--gh-ink); }
.garner-home .gh-add.loading { opacity: .6; pointer-events: none; }
.garner-home .gh-add.added::after { content: " ✓"; }
/* সাইড কার্ট খুলে যায়, তাই WooCommerce এর "View cart" লিংক দরকার নেই */
.gh-card .added_to_cart { display: none !important; }

/* ---------- Shop by ---------- */
.gh-shopby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.gh-shopby-card {
  display: block; background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 20px 22px;
  transition: box-shadow .2s ease, transform .2s ease;
}
a.gh-shopby-card:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, .08); transform: translateY(-2px); }
.gh-shopby-icon { display: block; line-height: 0; margin-bottom: 10px; }
.garner-home .gh-shopby-card h3 { font-family: 'Inter', sans-serif; font-size: 16px; color: #111; margin-bottom: 6px; }
.gh-shopby-card p { font-size: 13px; color: #888; }
.gh-type-shopby { padding: 32px 0 24px; }

/* ---------- প্রোমো ব্যানার ---------- */
.gh-promo {
  background: linear-gradient(120deg, var(--gh-blue-dark), var(--gh-blue)); color: #fff;
  border-radius: var(--gh-radius-lg); padding: 40px 44px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; overflow: hidden;
}
.gh-promo-red { background: linear-gradient(120deg, var(--gh-red-dark), var(--gh-red)); }
.gh-promo-green { background: linear-gradient(120deg, var(--gh-green-dark), var(--gh-green)); }
.gh-promo-text { flex: 1; min-width: 0; }
.gh-promo .gh-eyebrow { background: var(--gh-red); }
.gh-promo-red .gh-eyebrow { background: var(--gh-yellow); color: #4A3400; }
.garner-home .gh-promo h2 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.gh-promo p { opacity: .88; font-size: 15px; max-width: 460px; margin-bottom: 20px; }
.gh-promo-image { flex: 0 0 auto; width: 280px; max-width: 40%; }
.garner-home .gh-promo-image img { width: 100%; height: auto; max-height: 260px; object-fit: contain; }

/* ---------- ব্র্যান্ড ---------- */
.gh-brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.gh-brand {
  background: #fff; border: 1.5px solid var(--gh-cream-2); border-radius: 999px; padding: 10px 22px;
  font-family: 'Baloo 2', sans-serif; font-weight: 600; font-size: 15px; transition: all .2s ease;
}
.garner-home a.gh-brand:hover { border-color: var(--gh-blue); color: var(--gh-blue); }

/* ---------- ব্লগ + ঠিকানা ---------- */
.gh-two-col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.gh-blog-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--gh-cream-2);
  border-radius: var(--gh-radius-lg); box-shadow: var(--gh-shadow); overflow: hidden;
}
.garner-home .gh-blog-card img { width: 100%; height: 210px; object-fit: cover; }
.gh-blog-body { padding: 22px 24px; }
.garner-home .gh-blog-card h3 { font-size: 20px; margin-bottom: 8px; }
.gh-blog-card p { font-size: 14px; color: var(--gh-ink-soft); margin-bottom: 10px; }
.gh-blog-card:hover h3 { color: var(--gh-blue); }

.gh-visit-card { background: var(--gh-blue); color: #fff; border-radius: var(--gh-radius-lg); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.gh-visit-card .gh-eyebrow { width: fit-content; margin-bottom: 0; }
.garner-home .gh-visit-card h3 { color: #fff; font-size: 20px; }
.gh-visit-row { display: flex; gap: 12px; font-size: 14px; align-items: flex-start; }
.gh-visit-ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .18); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gh-visit-row strong { display: block; margin-bottom: 2px; }
.gh-visit-row span { opacity: .88; }

/* ---------- কাস্টম কনটেন্ট ---------- */
.gh-content { font-size: 15px; color: var(--gh-ink-soft); }
.gh-content p { margin-bottom: 1em; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .gh-grid.gh-cols-5, .gh-grid.gh-cols-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .gh-grid, .gh-grid.gh-cols-4, .gh-grid.gh-cols-5, .gh-grid.gh-cols-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gh-two-col { grid-template-columns: 1fr; }
  .gh-promo { padding: 32px 28px; }
}
@media (max-width: 640px) {
  .gh-wrap { padding: 0 16px; }
  .gh-section { padding: 32px 0; }
  .gh-type-shopby { padding: 24px 0 16px; }
  .gh-head { margin-bottom: 16px; }
  .gh-head h2 { font-size: 22px; }
  .gh-see-all { font-size: 14px; }

  .gh-grid, .gh-grid.gh-cols-4, .gh-grid.gh-cols-5, .gh-grid.gh-cols-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  /* মোবাইলে পাশে স্ক্রল */
  .gh-grid.gh-m-scroll {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin: 0 -16px; padding: 4px 16px 14px; scrollbar-width: none;
  }
  .gh-grid.gh-m-scroll::-webkit-scrollbar { display: none; }
  .gh-grid.gh-m-scroll .gh-card { flex: 0 0 44%; scroll-snap-align: start; }

  .gh-card-body { padding: 10px 10px 12px; gap: 6px; }
  .garner-home .gh-card-title { font-size: 13px; }
  .gh-price { font-size: 15px; }
  .garner-home .gh-add { font-size: 12px; padding: 9px 8px; }
  .gh-card:hover { transform: none; }

  .gh-shopby-grid { grid-template-columns: 1fr; gap: 10px; }
  .gh-shopby-card { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; align-items: center; padding: 14px 16px; }
  .gh-shopby-icon { grid-row: span 2; margin: 0; }

  .gh-promo { flex-direction: column-reverse; align-items: flex-start; padding: 26px 22px; text-align: left; }
  .gh-promo-image { width: 60%; max-width: 220px; align-self: center; }
  .garner-home .gh-promo h2 { font-size: 23px; }

  .gh-brands { gap: 8px; }
  .gh-brand { padding: 8px 16px; font-size: 14px; }
  .gh-visit-card { padding: 24px 20px; }
}
