/* ============================================
   Eshopbd Theme — Base Style (Final)
   @author  Md Saiful Islam, Shwapno Puron IT, Satkhira
   @version 1.0
   @mobile  01794-495527
   @visit   facebook.com/shwapnopuronit
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #ff4d4d;
  --primary-hover: #e63c3c;
  --dark: #1a1a2e;
  --text: #333;
  --gray: #666;
  --light: #f8f9fa;
  --border: #e5e5e5;
  --success: #28a745;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Hind Siliguri', 'Poppins', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;
}

html[lang="en"] body { font-family: 'Poppins', 'Hind Siliguri', sans-serif; }

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

/* WordPress Alignment */
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 1em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 1em; }
.aligncenter { display: block; margin: 1em auto; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 999999; }
.skip-link:focus { left: 6px; top: 7px; padding: 10px; background: #fff; color: var(--primary); }

/* ============================================
   Top Bar
   ============================================ */
.top-bar {
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 0;
}
.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.top-bar-left .info-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.92);
}
.top-bar-left .info-item i {
  color: var(--primary);
  font-size: 12px;
}
.top-bar-left .live-clock {
  background: rgba(255,77,77,0.15);
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 600;
  color: #fff;
}
.top-bar-left .live-clock i { color: #ffcc00; }

.top-links { display: flex; align-items: center; gap: 4px; }
.top-links a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  font-size: 13px;
  padding: 2px 10px;
  border-radius: 20px;
  transition: 0.3s;
}
.top-links a:hover {
  opacity: 1;
  background: rgba(255,77,77,0.15);
  color: var(--primary);
}

/* ============================================
   Header
   ============================================ */
.header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.3s ease;
  overflow: visible; /* count-badge যেন ক্লিপড না হয় */
}
.header.hide-header { transform: translateY(-100%); }
.header.sticky-enabled { position: sticky; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  gap: 20px;
  overflow: visible;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo i,
.logo span { color: var(--primary); }
.logo img { max-height: 60px; width: auto; }

.custom-logo-link { display: flex; align-items: center; }
.custom-logo { max-height: 60px; width: auto; }

.nav ul,
.nav .main-menu {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav a:hover { color: var(--primary); }
.nav a i.fa-chevron-down { font-size: 11px; }

.nav ul ul {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 220px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px 0;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
}
.nav ul li { position: relative; }
.nav ul li:hover > ul { opacity: 1; visibility: visible; }
.nav ul ul li { padding: 0; }
.nav ul ul a { display: block; padding: 8px 20px; font-size: 14px; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-btn {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: 0.3s;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--dark);
  font-size: 14px;
}
.lang-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--dark);
  padding: 4px;
}

.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--light);
  color: var(--dark);
  text-decoration: none;
  transition: 0.3s;
  font-size: 17px;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  overflow: visible; /* ব্যাজ যেন কাটা না যায় */
}
.icon-btn:hover { background: var(--primary); color: #fff; }

.count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff; /* সাদা বর্ডার — স্ক্রলেও স্পষ্ট দেখায় */
  z-index: 5;
  pointer-events: none;
}
.cart-icon .count-badge { background: var(--primary); }

/* ============================================
   SEARCH SYSTEM
   ডেস্কটপ: হেডারে ইনলাইন
   মোবাইল: হেডারের নিচে আলাদা sticky সার্চবার
   ============================================ */

/* ---- ডেস্কটপ সার্চ বক্স ---- */
.search-box {
  position: relative;
  display: flex;
  background: var(--light);
  border-radius: 30px;
  overflow: visible;
}
.search-box input {
  border: none;
  background: transparent;
  padding: 10px 18px;
  outline: none;
  width: 200px;
  font-family: inherit;
  color: var(--text);
  border-radius: 30px 0 0 30px;
}
.search-box > button[type="button"] {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 18px;
  cursor: pointer;
  transition: 0.3s;
  border-radius: 0 30px 30px 0;
  font-family: inherit;
}
.search-box > button[type="button"]:hover {
  background: var(--primary-hover);
}
.search-box:focus-within {
  box-shadow: 0 0 0 3px rgba(255,77,77,0.15);
}

/* ডেস্কটপে দেখাবে, মোবাইলে লুকাবে */
.search-box-desktop { display: flex; }
@media (max-width: 768px) {
  .search-box-desktop { display: none !important; }
}

/* ---- মোবাইল সার্চবার (হেডারের নিচে sticky) ---- */
.mobile-search-bar {
  display: none; /* মোবাইলে দেখাবে — নিচে মিডিয়া কোয়েরিতে */
  position: sticky;
  top: var(--header-height, 65px); /* হেডারের ঠিক নিচে */
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  padding: 10px 0;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 1;
}
.mobile-search-bar.hide-search-bar {
  transform: translateY(-200%); /* হেডার লুকালে সার্চবারও উপরে উঠে যাবে */
  opacity: 0;
}
.mobile-search-inner {
  max-width: 100%;
  padding: 0 15px;
}
.search-box-mobile {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--light);
  border-radius: 30px;
  overflow: visible;
  width: 100%;
  border: 1.5px solid var(--border);
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-box-mobile:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,77,77,0.12);
}
.mobile-search-icon {
  color: var(--gray);
  font-size: 14px;
  padding: 0 0 0 16px;
  flex-shrink: 0;
  pointer-events: none;
}
.search-box-mobile input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 14px;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  width: 100%;
}
.mobile-search-clear {
  background: transparent;
  border: none;
  color: #aaa;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  transition: color 0.2s;
  flex-shrink: 0;
}
.mobile-search-clear:hover { color: var(--primary); }

/* মোবাইলে সার্চবার দেখাবে */
@media (max-width: 768px) {
  .mobile-search-bar { display: block; }
}

/* ============ Live Search Dropdown ============ */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  min-width: 380px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  z-index: 999;
  max-height: 480px;
  overflow-y: auto;
  display: none;
  padding: 8px 0;
  border: 1px solid var(--border);
  animation: searchDropIn 0.25s ease;
}
.live-search-dropdown.open { display: block; }

@keyframes searchDropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.live-search-dropdown::-webkit-scrollbar { width: 6px; }
.live-search-dropdown::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }
.live-search-dropdown::-webkit-scrollbar-track { background: transparent; }

.ls-header {
  padding: 10px 16px 8px;
  font-size: 12px;
  color: var(--gray);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ls-header .ls-count {
  background: var(--primary);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
}

.ls-item {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
  align-items: center;
}
.ls-item:hover,
.ls-item.active { background: var(--light); }
.ls-item-img {
  width: 55px;
  height: 55px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--light);
  flex-shrink: 0;
}
.ls-item-img img { width: 100%; height: 100%; object-fit: cover; }
.ls-item-info { min-width: 0; }
.ls-item-info h5 {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 4px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ls-item-info .ls-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  flex-wrap: wrap;
}
.ls-item-info .ls-price { color: var(--primary); font-weight: 700; font-size: 14px; }
.ls-item-info .ls-old { color: #999; text-decoration: line-through; font-size: 11px; }
.ls-item-info .ls-rating { color: #ffc107; font-size: 11px; }
.ls-item-arrow { color: #ccc; font-size: 12px; transition: 0.2s; }
.ls-item:hover .ls-item-arrow,
.ls-item.active .ls-item-arrow { color: var(--primary); transform: translateX(3px); }
.ls-item-info h5 mark { background: #fff3cd; color: var(--dark); padding: 0 2px; border-radius: 3px; }
.ls-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #1976d2;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: capitalize;
}

.ls-empty { padding: 40px 20px; text-align: center; color: var(--gray); }
.ls-empty i { font-size: 42px; color: #ddd; margin-bottom: 12px; display: block; }
.ls-empty p { font-size: 14px; margin: 0 0 4px; color: var(--dark); font-weight: 500; }
.ls-empty small { font-size: 12px; color: var(--gray); }

.ls-view-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  color: var(--primary);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
}
.ls-view-all:hover { background: #fff5f5; gap: 12px; }

@media (max-width: 768px) {
  .live-search-dropdown { min-width: auto; max-height: 55vh; left: 0; right: 0; border-radius: 12px; }
  .ls-item { grid-template-columns: 48px 1fr auto; gap: 10px; padding: 9px 14px; }
  .ls-item-img { width: 48px; height: 48px; }
  .ls-item-info h5 { font-size: 13px; }
  .ls-item-info .ls-price { font-size: 13px; }
  /* মোবাইল সার্চবারের dropdown — পূর্ণ প্রস্থে */
  .search-box-mobile .live-search-dropdown {
    min-width: 0;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
  }
}

@media (max-width: 992px) and (min-width: 769px) {
  .live-search-dropdown { min-width: 320px; }
  .search-box input { width: 140px; }
}

/* ============================================
   Badge
   ============================================ */
.badge {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(255,77,77,0.15);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  text-align: center;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255,77,77,0.3);
}
.btn-outline { background: transparent; color: var(--dark); border-color: var(--dark); }
.btn-outline:hover { background: var(--dark); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--dark); color: #fff; }

/* ============================================
   Features
   ============================================ */
.features { padding: 50px 0; background: #fff; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: #fff;
  transition: 0.3s;
}
.feature:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.feature > i {
  font-size: 26px;
  color: var(--primary);
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff5f5;
  border-radius: 50%;
  transition: 0.3s;
}
.feature:hover > i {
  background: var(--primary);
  color: #fff;
  transform: rotate(-8deg) scale(1.05);
}
.feature > div { flex: 1; min-width: 0; }
.feature h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
  line-height: 1.3;
}
.feature p {
  font-size: 13px;
  color: var(--gray);
  margin: 0;
  line-height: 1.4;
}
.feature.center {
  flex-direction: column;
  text-align: center;
  gap: 12px;
  padding: 30px 18px;
}
.feature.center h4 { margin: 0; }
.feature.center p { margin-top: 4px; }

/* ============================================
   Section
   ============================================ */
.section { padding: 70px 0; }
.bg-light { background: var(--light); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.25;
}
.section-head h2 i { flex-shrink: 0; color: var(--primary); }

/* ============================================
   Newsletter
   ============================================ */
.newsletter {
  padding: 60px 0;
  text-align: center;
  background: var(--dark);
  color: #fff;
}
.newsletter h2 { font-size: 32px; margin-bottom: 10px; }
.newsletter p { margin-bottom: 30px; opacity: 0.85; }
.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 0 auto;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
}
.newsletter-form input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 15px;
}
.newsletter-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0 30px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
  transition: 0.3s;
  font-size: 15px;
}
.newsletter-form button:hover { background: var(--primary-hover); }

/* ============================================
   Footer
   ============================================ */
.footer { background: #0f0f1e; color: #ccc; padding: 60px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer .logo { color: #fff; margin-bottom: 15px; }
.footer h4,
.footer .widget-title {
  color: #fff;
  margin-bottom: 20px;
  font-size: 17px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}
.footer a:hover { color: var(--primary); padding-left: 5px; }
.footer p { margin-bottom: 12px; font-size: 14px; }
.footer p i { margin-right: 8px; color: var(--primary); }

.socials { display: flex; gap: 12px; margin-top: 20px; }
.socials a {
  width: 38px;
  height: 38px;
  background: #1e1e30;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.socials a:hover {
  background: var(--primary);
  color: #fff;
  padding-left: 0;
}

.footer-credit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid #1e1e30;
  font-size: 13.5px;
}
.footer-copy {
  color: #999;
  margin: 0;
  font-size: 13.5px;
}
.footer-dev {
  color: #999;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 13.5px;
}
.footer-dev i.fa-heart {
  color: var(--primary);
  font-size: 12px;
  animation: heartBeat 1.5s infinite;
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
.footer-dev a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  padding-left: 0 !important;
}
.footer-dev a:hover {
  color: var(--primary);
  padding-left: 0 !important;
}
.footer-dev .dev-name {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}
.footer-bottom {
  border-top: 1px solid #1e1e30;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

/* ============================================
   Scroll Top
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  z-index: 99;
  box-shadow: 0 5px 20px rgba(255,77,77,0.4);
  transition: 0.3s;
}
.scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}
.scroll-top.show { display: block; }

/* ============================================
   Toast Notification
   ============================================ */
.toast-msg {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  z-index: 99999;
  font-weight: 500;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 30px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ============================================
   Mobile Bottom Navigation
   ============================================ */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 998;
  padding: 6px 4px 8px;
  border-top: 1px solid var(--border);
}
.mobile-bottom-nav ul {
  display: flex;
  list-style: none;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
}
.mobile-bottom-nav li { flex: 1; }
.mobile-bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-decoration: none;
  color: var(--gray);
  font-size: 11px;
  font-weight: 500;
  padding: 6px 2px;
  transition: 0.3s;
  position: relative;
}
.mobile-bottom-nav a i {
  font-size: 18px;
  transition: 0.3s;
  color: var(--gray);
}
.mobile-bottom-nav a.active,
.mobile-bottom-nav a:hover { color: var(--primary); }
.mobile-bottom-nav a.active i,
.mobile-bottom-nav a:hover i { color: var(--primary); }
.mobile-bottom-nav .nav-cart-badge {
  position: absolute;
  top: 0;
  right: 50%;
  margin-right: -22px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  padding: 0 4px;
  line-height: 1;
}

/* ============================================
   WordPress Default Classes
   ============================================ */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 13px; color: var(--gray); text-align: center; }
.sticky { display: block; }
.gallery-caption { font-size: 13px; }
.bypostauthor { display: block; }

.entry-content { line-height: 1.8; }
.entry-content img { max-width: 100%; height: auto; border-radius: 8px; }
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.5em; margin-bottom: 0.7em; color: var(--dark); }
.entry-content a { color: var(--primary); text-decoration: underline; }
.entry-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 15px 20px;
  background: var(--light);
  margin: 20px 0;
  font-style: italic;
}
.entry-content ul,
.entry-content ol { padding-left: 25px; margin-bottom: 1em; }
.entry-content pre {
  background: var(--dark);
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 20px 0;
}
.entry-content code {
  background: var(--light);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9em;
}
.entry-content pre code { background: transparent; padding: 0; }

.comments-area { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; }
.comment-list li { margin-bottom: 20px; }
.comment-body {
  background: var(--light);
  padding: 20px;
  border-radius: 10px;
}

.pagination,
.nav-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.pagination .page-numbers,
.nav-links a,
.nav-links span {
  padding: 10px 16px;
  background: var(--light);
  border-radius: 8px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  transition: 0.3s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover,
.nav-links a:hover,
.nav-links span.current {
  background: var(--primary);
  color: #fff;
}

/* Elementor */
.elementor-page-template .site-content { padding: 0; }
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1200px; }

/* ============================================
   Responsive
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2 { font-size: 26px; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  .top-bar { padding: 8px 0; font-size: 12px; }
  .top-bar-inner { flex-direction: column; gap: 6px; text-align: center; }
  .top-bar-left { justify-content: center; gap: 12px; font-size: 11.5px; }
  .top-bar-left .info-item.hide-mobile { display: none; }
  .top-links { justify-content: center; gap: 8px; }
  .top-links a { font-size: 12px; padding: 2px 8px; }

  .header-inner { padding: 12px 15px; gap: 10px; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    display: none;
    padding: 20px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav ul,
  .nav .main-menu { flex-direction: column; gap: 15px; }
  .nav ul ul {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding-left: 15px;
    min-width: auto;
  }
  .menu-toggle { display: block; }

  .section { padding: 45px 0; }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
  }
  .section-head h2 { font-size: 22px; }
  .section-head.center { align-items: center; }

  .newsletter h2 { font-size: 22px; }
  .newsletter { padding: 45px 0; }
  .newsletter-form { flex-direction: column; border-radius: 12px; }
  .newsletter-form input { padding: 14px 20px; border-radius: 12px; }
  .newsletter-form button {
    padding: 14px 20px;
    border-radius: 12px;
    margin-top: 6px;
    width: 100%;
  }

  .footer { padding: 45px 0 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-credit { flex-direction: column; text-align: center; gap: 8px; }

  .logo { font-size: 22px; }
  .lang-btn { padding: 6px 10px; font-size: 13px; }

  .mobile-bottom-nav { display: block; }
  body { padding-bottom: 68px !important; }
  .scroll-top { bottom: 85px !important; }
  .toast-msg { bottom: 90px !important; }

  .admin-bar .header { top: 46px; }
}

/* Small Mobile — 500px */
@media (max-width: 500px) {
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
  .container { padding: 0 15px; }
  .newsletter h2 { font-size: 20px; }
  .btn { padding: 12px 24px; font-size: 14px; }

  .header-inner { padding: 10px 12px; gap: 6px; }
  .logo { font-size: 20px; }
  .logo i { font-size: 18px; }
  .header-actions { gap: 5px; }
  .icon-btn { width: 36px; height: 36px; font-size: 14px; }
  .count-badge {
    min-width: 16px;
    height: 16px;
    font-size: 9px;
    top: -6px;
    right: -6px;
    border: 2px solid #fff;
  }
  .mobile-search-bar { top: var(--header-height-sm, 58px); padding: 8px 0; }
  .search-box-mobile input { padding: 10px 12px; font-size: 13px; }
  .lang-btn { padding: 5px 8px; font-size: 12px; }
  .lang-btn span { display: none; }
  .menu-toggle { font-size: 20px; }

  .feature { padding: 18px 16px; gap: 14px; }
  .feature > i { width: 46px; height: 46px; font-size: 22px; }
  .feature h4 { font-size: 15px; }
  .feature p { font-size: 12px; }

  .mobile-bottom-nav a { font-size: 10px; }
  .mobile-bottom-nav a i { font-size: 16px; }
}

/* Admin Bar */
.admin-bar .header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .header { top: 46px; }
}
/* Admin bar + mobile search bar offset */
@media (max-width: 768px) {
  .admin-bar .mobile-search-bar { top: calc(var(--header-height, 65px) + 46px); }
}
@media (max-width: 600px) {
  .admin-bar .mobile-search-bar { top: calc(var(--header-height, 58px) + 46px); }
}

/* RTL Support */
body.rtl { direction: rtl; }
body.rtl .top-bar-left,
body.rtl .top-links,
body.rtl .header-actions { flex-direction: row-reverse; }
body.rtl .nav ul { flex-direction: row-reverse; }

/* Print */
@media print {
  .top-bar,
  .header,
  .footer,
  .mobile-bottom-nav,
  .scroll-top,
  .quick-view-modal { display: none !important; }
}

/* ========================================================
   HEADER V2 — Desktop Two-Row (hdr-* classes)
   পুরনো .nav hide, নতুন hdr-nav-bar দেখাও
   ======================================================== */

@media (min-width: 769px) {
  .nav { display: none !important; }
}
@media (max-width: 768px) {
  .hdr-search-wrap { display: none !important; }
  .hdr-nav-bar     { display: none !important; }
}

/* ── Header top row ── */
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
}
.logo { flex-shrink: 0; }

/* ── Search Bar ── */
.hdr-search-wrap {
  flex: 1;
  max-width: 580px;
  position: relative;
  display: flex;
  align-items: stretch;
  height: 48px;
  background: #fff;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hdr-search-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,77,77,.1);
}

.hdr-search-cat {
  flex-shrink: 0;
  width: 140px;
  height: 100%;
  border: none;
  border-right: 1px solid #e8e8e8;
  background: #f8f8f8;
  padding: 0 10px 0 14px;
  font-family: inherit;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  outline: none;
  appearance: auto;
}
@media (max-width: 1100px) {
  .hdr-search-cat { display: none; }
}

.hdr-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--dark);
  outline: none;
}
.hdr-search-input::placeholder { color: #bbb; font-size: 14px; }

.hdr-search-btn {
  flex-shrink: 0;
  width: 58px;
  height: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.hdr-search-btn:hover { background: var(--primary-hover); }

/* dropdown inside new wrap */
.hdr-search-wrap .live-search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 300;
}

/* ── Icon buttons (icons only, no label) ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f5f5f5;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 17px;
  transition: background .2s, color .2s;
  border: none;
  cursor: pointer;
}
.icon-btn:hover { background: #fff0f0; color: var(--primary); }
.icon-btn .count-badge {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--primary); color: #fff;
  border-radius: 9px; font-size: 10px;
  font-weight: 700; display: flex;
  align-items: center; justify-content: center;
  padding: 0 3px; border: 2px solid #fff;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  padding: 0 12px; height: 42px;
  border-radius: 21px; background: #f5f5f5;
  border: none; cursor: pointer;
  font-family: inherit; font-size: 13px;
  font-weight: 600; color: var(--dark);
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: #fff0f0; color: var(--primary); }
.lang-btn i { font-size: 15px; }

/* ── Nav Bar (Row 2) ── */
.hdr-nav-bar {
  background: #1a1a2e;   /* customizer inline style overrides this */
  position: relative;
  z-index: 99;
}
.hdr-nav-inner {
  display: flex;
  align-items: stretch;
  padding: 0 20px;
}

/* Menu list — HORIZONTAL */
.hdr-menu {
  display: flex;          /* ← এই একটাই দরকার, flexbox horizontal করে */
  flex-direction: row;    /* পাশাপাশি */
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  width: 100%;
}
.hdr-menu > li {
  position: relative;
  flex-shrink: 0;
}
.hdr-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 18px;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  transition: background .18s, color .18s;
  /* color & font-size come from <style id="eshopbd-nav-dynamic"> */
}
.hdr-menu > li > a > i.fa-chevron-down { font-size: 10px; opacity: .6; }

/* Dropdown */
.hdr-menu > li > ul {
  position: absolute;
  top: 100%; left: 0;
  min-width: 210px;
  background: #fff;
  list-style: none;
  margin: 0; padding: 8px 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s;
  z-index: 200;
}
.hdr-menu > li:hover > ul {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.hdr-menu > li > ul li { position: relative; }
.hdr-menu > li > ul a {
  display: block;
  padding: 9px 20px;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.hdr-menu > li > ul a:hover { background: #fff5f5; color: var(--primary); }

/* Sub-sub menu */
.hdr-menu > li > ul ul {
  position: absolute;
  top: 0; left: 100%;
  min-width: 200px;
  background: #fff;
  list-style: none;
  margin: 0; padding: 8px 0;
  border-radius: 10px;
  box-shadow: 0 14px 40px rgba(0,0,0,.14);
  opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
  z-index: 201;
}
.hdr-menu > li > ul li:hover > ul { opacity: 1; visibility: visible; }
