/* =============================================================
   Dhoronee - Premium Organic Ecommerce Theme
   ============================================================= */

/* --- Variables --- */
:root {
  --primary: #2D6A2E;
  --primary-dark: #1E4F1F;
  --primary-light: #E8F5E6;
  --primary-glow: rgba(45, 106, 46, 0.15);
  --bg: #FAFAF7;
  --bg-alt: #F3F5F0;
  --heading: #1A1A1A;
  --text: #5A6A5A;
  --text-light: #8A9A8A;
  --border: #E8EBE5;
  --card: #FFFFFF;
  --card-hover: #FAFCF8;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow: 0 8px 40px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --shadow-hover: 0 16px 48px rgba(45,106,46,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 1500px;
  --header-logo-height: 55px;
  --header-logo-max-width: 220px;
  --footer-logo-height: 62px;
  --footer-logo-max-width: 220px;
  --mobile-header-logo-height: 42px;
  --mobile-header-logo-max-width: 150px;
  --mobile-footer-logo-height: 45px;
  --mobile-footer-logo-max-width: 160px;
}

/* --- Reset & Base --- */
* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 600;
  line-height: 1.3;
}

a { color: var(--primary); text-decoration:none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width:100%; height:auto; }
.container { max-width:var(--max-width); }

/* --- Logo Sizing --- */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.header-logo img,
.header-logo .logo-img {
  display: block;
  height: var(--header-logo-height);
  max-width: var(--header-logo-max-width);
  width: auto;
  object-fit: contain;
}
.footer-logo,
.footer-logo img,
.footer-logo .logo-img {
  display: block;
  height: var(--footer-logo-height);
  max-width: var(--footer-logo-max-width);
  width: auto;
  object-fit: contain;
}
.mobile-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.mobile-logo img,
.mobile-logo .logo-img {
  display: block;
  height: var(--mobile-header-logo-height);
  max-width: var(--mobile-header-logo-max-width);
  width: auto;
  object-fit: contain;
}

@media (min-width: 768px) and (max-width: 1199px) {
  :root {
    --header-logo-height: 50px;
    --header-logo-max-width: 180px;
    --footer-logo-height: 55px;
    --footer-logo-max-width: 180px;
  }
}

@media (min-width: 1200px) {
  :root {
    --header-logo-height: 55px;
    --header-logo-max-width: 220px;
    --footer-logo-height: 62px;
    --footer-logo-max-width: 220px;
  }
}

@media (max-width: 767px) {
  .header-logo img,
  .header-logo .logo-img {
    height: var(--mobile-header-logo-height);
    max-width: var(--mobile-header-logo-max-width);
  }
  .footer-logo,
  .footer-logo img,
  .footer-logo .logo-img {
    height: var(--mobile-footer-logo-height);
    max-width: var(--mobile-footer-logo-max-width);
  }
}

/* =============================================================
   PREMIUM HEADER
   ============================================================= */

/* Top Announcement Bar */
.top-announcement {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem;
  padding: 7px 0;
  text-align: center;
  letter-spacing: 0.3px;
  position: relative;
  z-index: 1001;
}
.top-announcement span { opacity: 0.85; }
.top-announcement strong { color: #fff; font-weight: 600; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

/* Header Main Row */
.header-main {
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.5px;
}
.logo-text span { color: var(--primary); }
.logo-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.6rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Search Bar */
.search-bar {
  position: relative;
}
.search-bar .form-control {
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 12px 20px 12px 48px;
  font-size: 0.9rem;
  background: var(--bg);
  transition: var(--transition);
}
.search-bar .form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: #fff;
}
.search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Search Autocomplete */
.search-wrap {
  position: relative;
}
.search-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 9999;
  max-height: 360px;
  overflow-y: auto;
  display: none;
  margin-top: 4px;
}
.search-suggestions.active {
  display: block;
}
.search-suggestions .suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.search-suggestions .suggestion-item:hover,
.search-suggestions .suggestion-item.active {
  background: var(--bg);
}
.search-suggestions .suggestion-item img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}
.search-suggestions .suggestion-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.search-suggestions .suggestion-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestions .suggestion-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
}
.search-suggestions .no-results {
  color: var(--text-light);
  font-size: 0.85rem;
  justify-content: center;
  padding: 16px;
}

/* Header Row Layout */
.header-row { display: flex; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-center { flex: 1; }
.header-right { display: flex; align-items: center; gap: 8px; margin-left: auto; }

.action-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--heading);
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
}
.action-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}
.action-btn .badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-shadow: 0 2px 8px var(--primary-glow);
}

/* =============================================================
   NAVIGATION - MEGA MENU
   ============================================================= */

.main-nav {
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 22px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--heading);
  letter-spacing: 0.2px;
  transition: var(--transition);
  position: relative;
}

.nav-list > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px 3px 0 0;
  transition: transform 0.3s;
}

.nav-list > li > a:hover { color: var(--primary); background: var(--primary-light); }
.nav-list > li > a:hover::after { transform: translateX(-50%) scaleX(1); }

/* Mega Dropdown */
.mega-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 600px;
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.nav-list > li:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-col h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 12px;
  font-weight: 600;
}

.mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.88rem;
  color: var(--text);
  transition: var(--transition);
}

.mega-col a:hover {
  color: var(--primary);
  padding-left: 6px;
}

/* Nav CTA */
.nav-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff !important;
  border-radius: 50px;
  padding: 10px 24px !important;
  font-weight: 600;
  font-size: 0.82rem;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { box-shadow: 0 8px 24px var(--primary-glow); transform: translateY(-2px) !important; }

/* Mobile Toggle */
.menu-toggle { display: none; border: none; background: none; font-size: 1.4rem; color: var(--heading); cursor: pointer; padding: 8px; }

/* =============================================================
   HERO SLIDER
   ============================================================= */

.hero-section { position: relative; }

.hero-slide {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0.05) 100%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 0;
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 24px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -1px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #8BC34A, #4CAF50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.btn-hero {
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.btn-hero-primary {
  background: #fff;
  color: var(--heading);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.2); color: var(--heading); }

.btn-hero-secondary {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255,255,255,0.25);
  color: #fff;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); color: #fff; transform: translateY(-3px); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.hero-stat h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.hero-stat p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
}

/* Hero Indicators */
.hero-indicators {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero-indicators button {
  width: 40px;
  height: 4px;
  border-radius: 4px;
  border: none;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}
.hero-indicators button.active { width: 60px; background: #fff; }

/* =============================================================
   SECTION COMMON
   ============================================================= */

.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

/* Homepage product sections - tighter premium layout */
.section.home-products-section { padding: 48px 0; }
.section.home-products-section + .section.home-products-section { padding-top: 0; }

.product-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.product-section-head .section-header {
  text-align: left;
  margin-bottom: 0;
}
.product-section-head .section-tag { margin-bottom: 8px; }
.product-section-head .section-title { font-size: 1.8rem; margin-bottom: 0; }
.product-section-head .section-subtitle { margin: 6px 0 0; text-align: left; }

.product-section-head .view-all-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}
.product-section-head .view-all-link:hover {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .home-products-section { padding: 36px 0; }
  .product-section-head { gap: 10px; }
  .product-section-head .section-title { font-size: 1.45rem; }
}

/* Homepage product Swiper slider */
.home-product-swiper {
  overflow: hidden;
}
.home-product-swiper .swiper-wrapper { align-items: stretch; }
.home-product-swiper .swiper-slide { height: auto; }
.home-product-swiper .product-card { height: 100%; }

.home-product-swiper .swiper-button-prev,
.home-product-swiper .swiper-button-next {
  top: calc(50% - 22px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}
.home-product-swiper .swiper-button-prev::after,
.home-product-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}
.home-product-swiper .swiper-button-prev:hover,
.home-product-swiper .swiper-button-next:hover {
  background: var(--primary);
  color: #fff;
}

/* Pagination sits below the slider, centered, never overlapping cards */
.home-product-swiper .swiper-pagination.swiper-pagination-bullets {
  position: static;
  margin-top: 20px;
  text-align: center;
}
.home-product-swiper .swiper-pagination-bullet-active { background: var(--primary); }

/* Homepage category Swiper slider (shares the same component styling) */
.home-category-swiper { overflow: hidden; }
.home-category-swiper .swiper-wrapper { align-items: stretch; }
.home-category-swiper .swiper-slide { height: auto; }
@media (min-width: 992px) {
  .home-category-swiper .swiper-wrapper { justify-content: center; }
}
.home-category-swiper .category-icon-card { height: 100%; }

.home-category-swiper .swiper-button-prev,
.home-category-swiper .swiper-button-next {
  top: calc(50% - 22px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  transition: all 0.2s ease;
}
.home-category-swiper .swiper-button-prev::after,
.home-category-swiper .swiper-button-next::after {
  font-size: 1rem;
  font-weight: 700;
}
.home-category-swiper .swiper-button-prev:hover,
.home-category-swiper .swiper-button-next:hover {
  background: var(--primary);
  color: #fff;
}
.home-category-swiper .swiper-pagination.swiper-pagination-bullets {
  position: static;
  margin-top: 20px;
  text-align: center;
}
.home-category-swiper .swiper-pagination-bullet-active { background: var(--primary); }

.section-header {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-title span { color: var(--primary); }

.section-subtitle {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

.section-header-left { text-align: left; }
.section-header-left .section-subtitle { margin: 0; }

/* =============================================================
   CATEGORY CARDS
   ============================================================= */

.category-card {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 280px;
  transition: var(--transition);
  cursor: pointer;
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-card:hover img { transform: scale(1.08); }

.category-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  transition: var(--transition);
}

.category-card:hover .overlay { background: linear-gradient(180deg, transparent 20%, rgba(0,0,0,0.8) 100%); }

.category-card .content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px;
  z-index: 2;
}

.category-card .content h4 {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.category-card .content span {
  color: rgba(255,255,255,0.75);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-card-sm { height: 220px; }
.category-card-lg { height: 340px; }

/* Category icon cards (home) */
.category-icon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.category-icon-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.category-icon-card .cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.category-icon-card .cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-icon-card .cat-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  margin: 0;
  line-height: 1.3;
}

/* =============================================================
   PRODUCT CARDS
   ============================================================= */

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  height: 100%;
}


.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-sale { background: #E53935; color: #fff; }
.badge-featured { background: var(--primary); color: #fff; }
.badge-new { background: #FFB300; color: #1a1a1a; }

.product-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}
.product-flags.detail {
  margin-bottom: 10px;
}
.flag-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: #1a1a1a;
  color: #fff;
}

.product-image-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background: var(--bg-alt);
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-image-wrap img { transform: scale(1.08); }

.product-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
}

.product-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  font-size: 0.9rem;
}

.product-actions button:hover { background: var(--primary); color: #fff; transform: scale(1.1); }
.product-actions button.active { color: #E53935; }
.product-actions button.active:hover { background: #E53935; color: #fff; }

.quick-view-btn {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--heading);
  opacity: 0;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.quick-view-btn:hover { background: var(--primary); color: #fff; }

.product-info {
  padding: 20px;
}

.product-category {
  font-size: 0.72rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-title a { color: var(--heading); }
.product-title a:hover { color: var(--primary); }

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: #F4B400;
  margin-bottom: 10px;
}

.product-rating .count { color: var(--text-light); margin-left: 4px; }

.product-pricing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

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

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

.discount-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: #E53935;
  background: #FFEBEE;
  padding: 2px 10px;
  border-radius: 20px;
}

.product-add-btn {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border);
  background: transparent;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--heading);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* =============================================================
   SHOP PAGE PRODUCT CARDS (Compact Premium)
   ============================================================= */

.shop-products-grid {
  --shop-gap: 16px;
}

.shop-products-grid .product-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
}

/* --- Single Top-Right Badge (priority: offer > best-seller > new > featured > pre-order) --- */
.shop-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #fff;
  line-height: 1.4;
}
.shop-badge-offer      { background: #E53935; }
.shop-badge-best-seller{ background: #1a1a1a; }
.shop-badge-new        { background: #16A34A; }
.shop-badge-featured   { background: var(--primary); }
.shop-badge-pre-order  { background: #7C3AED; }

.shop-products-grid .product-wishlist {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  font-size: 0.8rem;
}

.shop-products-grid .product-wishlist:hover,
.shop-products-grid .product-wishlist.active {
  background: var(--primary);
  color: #fff;
}

.shop-products-grid .product-image-link {
  display: block;
}

.shop-products-grid .product-image-wrap {
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.shop-products-grid .product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.shop-products-grid .product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

.shop-products-grid .product-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-products-grid .product-title {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.shop-products-grid .product-title a { color: var(--heading); }
.shop-products-grid .product-title a:hover { color: var(--primary); }

.shop-products-grid .product-pricing {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-products-grid .current-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.shop-products-grid .old-price {
  font-size: 0.78rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.shop-products-grid .discount-pct {
  font-size: 0.68rem;
  font-weight: 700;
  color: #E53935;
  background: #FFEBEE;
  padding: 2px 7px;
  border-radius: 20px;
}

.shop-products-grid .product-add-btn {
  width: 100%;
  height: 44px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.2px;
  color: var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.shop-products-grid .product-add-btn:hover {
  background: var(--primary);
  color: #fff;
}

/* Hide filter sidebar on mobile */
@media (max-width: 767px) {
  .shop-filter-col { display: none; }
}

/* =============================================================
   FEATURES STRIP
   ============================================================= */

.features-strip {
  padding: 60px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.feature-item {
  text-align: center;
  padding: 20px;
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.feature-item:hover .feature-icon-wrap {
  background: var(--primary);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.feature-item h6 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 0.82rem;
  color: var(--text-light);
  margin: 0;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */

.testimonial-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.testimonial-card .quote-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 3rem;
  color: var(--primary-light);
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card .stars {
  color: #F4B400;
  font-size: 0.9rem;
  margin-bottom: 14px;
  letter-spacing: 2px;
}

.testimonial-card p {
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 5.1em;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-author .name {
  font-weight: 600;
  color: var(--heading);
  font-size: 0.92rem;
}

.testimonial-author .role {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* =============================================================
   BLOG CARDS
   ============================================================= */

.blog-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: var(--transition);
}

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

.blog-card .img-wrap {
  height: 220px;
  overflow: hidden;
}

.blog-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .img-wrap img { transform: scale(1.06); }

.blog-card-body { padding: 24px; }

.blog-card-body .meta {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.blog-card-body h5 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-card-body h5 a { color: var(--heading); }
.blog-card-body h5 a:hover { color: var(--primary); }

.blog-card-body p {
  font-size: 0.88rem;
  color: var(--text);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =============================================================
   NEWSLETTER
   ============================================================= */

.newsletter-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #3D8B40 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="80" r="40" fill="rgba(255,255,255,0.03)"/><circle cx="80" cy="20" r="60" fill="rgba(255,255,255,0.03)"/></svg>');
  background-size: cover;
}

.newsletter-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.newsletter-content h2 {
  color: #fff;
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.newsletter-content p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}

.newsletter-form {
  display: flex;
  gap: 0;
  max-width: 480px;
  margin: 0 auto;
  background: #fff;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
}

.newsletter-form input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 0.95rem;
  outline: none;
  background: transparent;
}

.newsletter-form button {
  background: var(--primary-dark);
  color: #fff;
  border: none;
  padding: 16px 32px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover { background: #1a4a1b; }

/* =============================================================
   INSTAGRAM GALLERY
   ============================================================= */

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.insta-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.insta-item:hover img { transform: scale(1.1); }

.insta-item .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: var(--transition);
}

.insta-item:hover .overlay { opacity: 1; }

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background: #1A1A1A;
  color: rgba(255,255,255,0.7);
  padding: 70px 0 0;
}

.site-footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}
.footer-logo-text span { color: #8BC34A; }

.footer-about p { font-size: 0.88rem; line-height: 1.7; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: var(--transition);
  display: block;
}
.footer-links a:hover { color: #8BC34A; padding-left: 6px; }

.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.88rem;
}
.footer-contact li i { color: #8BC34A; margin-top: 3px; width: 16px; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  transition: var(--transition);
}
.footer-social a:hover { background: #8BC34A; color: #fff; transform: translateY(-3px); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 50px;
  padding: 24px 0;
  font-size: 0.82rem;
}

/* =============================================================
   SCROLL TO TOP
   ============================================================= */

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.scroll-top-btn:hover { background: var(--primary-dark); transform: translateY(-4px); }
.scroll-top-btn.visible { display: flex; }

/* =============================================================
   BUTTONS
   ============================================================= */

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 12px 32px;
  font-weight: 600;
}

.btn-outline-primary:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* =============================================================
   RESPONSIVE
   ============================================================= */

@media (max-width: 1199px) {
  .hero-content h1 { font-size: 2.8rem; }
  .product-image-wrap { height: 220px; }
  .category-card { height: 220px; }
  .instagram-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 991px) {
  .section { padding: 60px 0; }
  .hero-slide { min-height: 70vh; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stat h3 { font-size: 1.4rem; }
  .section-title { font-size: 1.8rem; }
  .mega-dropdown { display: none; }
  .nav-list > li:first-child { padding-left: 0; }
  .instagram-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =============================================================
   OFF-CANVAS MENU (mobile)
   ============================================================= */
.off-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
}
.off-canvas.active {
  visibility: visible;
  opacity: 1;
}
.off-canvas-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
}
.off-canvas-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 85%;
  height: 100%;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.off-canvas.active .off-canvas-panel {
  transform: translateX(0);
}
.off-canvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.off-canvas-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: var(--heading);
  transition: var(--transition);
}
.off-canvas-close:hover {
  background: var(--border);
}
.off-canvas-body {
  padding: 8px 0;
  flex: 1;
  overflow-y: auto;
}
.off-canvas-section {
  margin-bottom: 4px;
}
.off-canvas-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  padding: 16px 20px 8px;
  margin: 0;
}
.off-canvas-categories,
.off-canvas-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.off-canvas-categories li a,
.off-canvas-links li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--heading);
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid var(--border);
}
.off-canvas-categories li a:hover,
.off-canvas-links li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.submenu-arrow {
  font-size: 0.7rem;
  color: var(--text-light);
  transition: transform 0.3s;
}
.has-children.open > a .submenu-arrow {
  transform: rotate(180deg);
}
.off-canvas-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}
.has-children.open > .off-canvas-submenu {
  display: block;
}
.off-canvas-submenu li a {
  padding-left: 36px;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.off-canvas-social {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 20px 20px;
}
.off-canvas-social .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--heading);
  transition: var(--transition);
  text-decoration: none;
}
.off-canvas-social .social-link:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.off-canvas-social .social-link i {
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .menu-toggle { display: block; }

  .header-row { gap: 8px; }
  .header-left { flex: 1; gap: 8px; min-width: 0; }
  .header-left .menu-toggle { flex-shrink: 0; }
  .header-left .logo { flex: 1; justify-content: center; min-width: 0; }
  .header-right { flex-shrink: 0; }

  .section { padding: 40px 0; }
  .hero-slide { min-height: 60vh; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content p { font-size: 0.9rem; }
  .hero-badge { font-size: 0.7rem; padding: 5px 14px; }
  .hero-actions .btn-hero { padding: 12px 24px; font-size: 0.85rem; }
  .hero-stats { display: none; }
  .section-title { font-size: 1.5rem; }
  .product-image-wrap { height: 200px; }
  .category-card { height: 180px; }
  .category-card .content { padding: 16px; }
  .category-card .content h4 { font-size: 0.95rem; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); }
  .newsletter-form input { padding: 14px 20px; }
  .newsletter-form button { padding: 14px; border-radius: 0; }
  .newsletter-content h2 { font-size: 1.5rem; }
  .instagram-grid { grid-template-columns: repeat(2, 1fr); }
  .scroll-top-btn { width: 40px; height: 40px; bottom: 20px; right: 20px; }
}

/* =============================================================
   MOBILE BOTTOM NAVIGATION
   ============================================================= */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 4px;
}
.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  min-width: 56px;
  position: relative;
  text-decoration: none;
  color: #666;
  transition: color 0.2s ease;
  background: none;
  border: none;
  font-family: var(--font-body);
  cursor: pointer;
}
.bottom-nav .nav-item i {
  font-size: 22px;
  line-height: 1;
  transition: color 0.2s ease;
}
.bottom-nav .nav-item span {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item.active i {
  color: var(--primary);
}
.bottom-nav .nav-item:hover {
  color: var(--primary);
}
.bottom-nav .nav-item .badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}
.bottom-nav .nav-item .badge.wishlist-count {
  background: #e74c3c;
}

@media (max-width: 991px) {
  body {
    padding-bottom: 65px;
  }
}

/* --- Toast Container --- */
#toastContainer {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =============================================================
   CHECKOUT PAGE
   ============================================================= */
.checkout-page {
  background: var(--bg);
  min-height: 80vh;
  padding-bottom: 60px;
}

.checkout-top-bar {
  background: var(--primary-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.checkout-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.checkout-top-bar .bar-text {
  font-size: 0.88rem;
  color: var(--text);
}
.checkout-top-bar .bar-text strong {
  color: var(--heading);
}
.checkout-top-bar .bar-btns {
  display: flex;
  gap: 8px;
}
.checkout-top-bar .bar-btns .btn {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 18px;
  border-radius: 8px;
  font-family: var(--font-body);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 32px;
}
@media (min-width: 1200px) {
  .checkout-grid {
    grid-template-columns: 62% 38%;
  }
}
@media (max-width: 991px) {
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 24px;
  }
}

.checkout-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
@media (max-width: 575px) {
  .checkout-card {
    padding: 20px;
    border-radius: 12px;
  }
}

.checkout-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 3.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Order Review Items */
.checkout-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.checkout-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.checkout-item:first-child {
  padding-top: 0;
}
.checkout-item-img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.checkout-item-info {
  flex: 1;
  min-width: 0;
}
.checkout-item-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 4px;
}
.checkout-item-meta {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 2px;
}

/* Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.qty-stepper button {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg);
  color: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  font-family: var(--font-body);
  line-height: 1;
  padding: 0;
}
.qty-stepper button:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.qty-stepper button:active {
  background: var(--primary);
  color: #fff;
}
.qty-stepper input {
  width: 40px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
  outline: none;
  font-family: var(--font-body);
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.checkout-item-price {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  min-width: 70px;
  text-align: right;
}
.checkout-item-remove {
  position: absolute;
  top: 8px;
  right: 0;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  color: #EF4444;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s;
  opacity: 0.5;
}
.checkout-item-remove:hover {
  background: #FEF2F2;
  opacity: 1;
}
@media (max-width: 575px) {
  .checkout-item {
    flex-wrap: wrap;
    gap: 10px;
  }
  .checkout-item-img {
    width: 52px;
    height: 52px;
  }
  .checkout-item-price {
    min-width: auto;
    font-size: 0.88rem;
  }
}

/* --- Form Fields --- */
.checkout-field {
  margin-bottom: 18px;
}
.checkout-field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.checkout-field .required {
  color: #EF4444;
}
.checkout-field .form-control,
.checkout-field .form-select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--heading);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.checkout-field .form-control:focus,
.checkout-field .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.checkout-field .form-control.error,
.checkout-field .form-select.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.checkout-field textarea.form-control {
  height: auto;
  padding: 12px 16px;
  resize: vertical;
  min-height: 90px;
}
.checkout-field .error-text {
  font-size: 0.78rem;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}
.checkout-field .error-text.show {
  display: block;
}

/* Phone input with country code */
.phone-input-group {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}
.phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.phone-input-group.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
.phone-prefix {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  background: var(--bg);
  border-right: 1.5px solid var(--border);
  height: 48px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  flex-shrink: 0;
}
.phone-prefix .flag-icon {
  font-size: 1.1rem;
  line-height: 1;
}
.phone-input-group .form-control {
  border: none !important;
  border-radius: 0 !important;
  height: 48px;
  box-shadow: none !important;
  flex: 1;
}
.phone-input-group .form-control:focus {
  box-shadow: none !important;
}

/* --- Payment Method Compact --- */
.payment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.payment-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  cursor: pointer;
  background: #fff;
  transition: all 0.25s ease;
}
.payment-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
  transform: translateY(-2px);
}
.payment-card.active {
  border-color: #2D6A2E;
  background: #F1F8F2;
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.payment-card.disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.payment-card.disabled:hover {
  border-color: #E5E7EB;
  box-shadow: none;
  transform: none;
}
.payment-card .pay-icon {
  font-size: 20px;
  color: var(--text);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
  line-height: 1;
}
.payment-card.active .pay-icon {
  color: var(--primary);
}
.payment-card.disabled .pay-icon {
  color: var(--text-light);
}
.payment-card .pay-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.payment-card .pay-label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.2;
}
.payment-card .pay-coming {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.2;
}
.payment-card .pay-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
  background: #fff;
}
.payment-card.active .pay-check {
  border-color: #2D6A2E;
  background: #2D6A2E;
}
.payment-card.active .pay-check::after {
  content: '';
  width: 6px;
  height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* --- Coupon Collapse --- */
.coupon-collapse-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  cursor: pointer;
  user-select: none;
}
.coupon-collapse-bar .coupon-trigger {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.coupon-collapse-bar .coupon-trigger:hover {
  color: var(--primary-dark);
}
.coupon-collapse-bar .chevron-icon {
  transition: transform 0.3s;
  font-size: 0.78rem;
  color: var(--text-light);
}
.coupon-collapse-bar .chevron-icon.open {
  transform: rotate(180deg);
}
.coupon-collapse-body {
  display: none;
  padding-bottom: 14px;
}
.coupon-collapse-body.open {
  display: block;
}
.coupon-input-row {
  display: flex;
  gap: 8px;
}
.coupon-input-row input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--heading);
  outline: none;
  transition: border-color 0.2s;
}
.coupon-input-row input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.coupon-input-row button {
  height: 46px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.coupon-input-row button:hover {
  background: var(--primary-dark);
}
.coupon-input-row button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.coupon-applied {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--primary-light);
  border: 1px solid var(--primary);
  border-radius: 8px;
  margin-top: 10px;
}
.coupon-applied.show {
  display: flex;
}
.coupon-applied .code {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}
.coupon-applied .remove-coupon {
  background: none;
  border: none;
  color: #EF4444;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
}
.coupon-applied .remove-coupon:hover {
  text-decoration: underline;
}
.coupon-msg {
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}
.coupon-msg.show {
  display: block;
}
.coupon-msg.success {
  color: var(--primary);
}
.coupon-msg.error {
  color: #EF4444;
}

/* --- Order Summary --- */
.summary-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
@media (max-width: 575px) {
  .summary-card {
    padding: 20px;
    border-radius: 12px;
  }
}
.summary-card-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3.5px solid var(--primary);
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
}
.summary-line .value {
  font-weight: 600;
  color: var(--heading);
}
.summary-line.discount .value {
  color: var(--primary);
}
.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 10px 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
}
.summary-total .label {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading);
}
.summary-total .value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

/* --- Special Notes --- */
.notes-field textarea {
  min-height: 80px;
  resize: vertical;
}
.char-counter {
  text-align: right;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 4px;
}
.char-counter .count {
  font-weight: 600;
}
.char-counter .count.over {
  color: #EF4444;
}

/* --- Terms & Place Order --- */
.terms-check {
  margin: 16px 0;
}
.terms-check .form-check-input {
  border-color: var(--border);
  cursor: pointer;
  margin-top: 3px;
}
.terms-check .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.terms-check .form-check-label {
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}
.terms-check .form-check-label a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
}
.terms-check .form-check-label a:hover {
  color: var(--primary-dark);
}
.terms-check .form-check-input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.btn-place-order {
  width: 100%;
  height: 54px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, transform 0.15s, box-shadow 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.3px;
}
.btn-place-order:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 20px var(--primary-glow);
}
.btn-place-order:active {
  transform: scale(0.98);
}
.btn-place-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

/* --- Help Buttons --- */
.checkout-help {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
@media (max-width: 360px) {
  .checkout-help {
    grid-template-columns: 1fr;
  }
}
.checkout-help .help-btn {
  height: 46px;
  border-radius: 10px;
  border: none;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}
.checkout-help .help-btn:hover {
  opacity: 0.9;
  color: #fff;
  transform: translateY(-1px);
}
.help-btn-whatsapp {
  background: #25D366;
}
.help-btn-call {
  background: #1D4ED8;
}

/* --- Billing Toggle --- */
.billing-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
}
.billing-toggle .toggle-switch {
  width: 42px;
  height: 24px;
  border-radius: 12px;
  background: var(--border);
  position: relative;
  transition: background 0.25s;
  flex-shrink: 0;
}
.billing-toggle .toggle-switch.active {
  background: var(--primary);
}
.billing-toggle .toggle-switch .toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
.billing-toggle .toggle-switch.active .toggle-knob {
  transform: translateX(18px);
}
.billing-toggle .toggle-label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
}
.billing-fields {
  display: none;
  margin-top: 6px;
}
.billing-fields.open {
  display: block;
}

/* --- Right Column Sticky --- */
.checkout-right {
  position: sticky;
  top: 100px;
}
@media (max-width: 991px) {
  .checkout-right {
    position: static;
  }
}

/* --- District/Thana Select --- */
.district-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 575px) {
  .district-group {
    grid-template-columns: 1fr;
  }
}

/* --- Right column card separation --- */
.checkout-right .checkout-card,
.checkout-right .summary-card {
  margin-bottom: 20px;
}

@media (max-width: 575px) {
  .checkout-page {
    padding-bottom: 40px;
  }
}

/* =============================================================
   MOBILE SEARCH SCREEN
   ============================================================= */
.mobile-search-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: #fff;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mobile-search-screen.active {
  transform: translateX(0);
  opacity: 1;
}
.mobile-search-header {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  box-shadow: 0 1px 0 var(--border);
}
.mobile-search-back {
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--heading);
  cursor: pointer;
}
.mobile-search-header-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--heading);
}
.mobile-search-close-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--heading);
  transition: background 0.2s;
}
.mobile-search-close-btn:hover {
  background: var(--border);
}
.mobile-search-content {
  padding: 12px 16px 90px;
}
.mobile-search-bar-wrap {
  margin-bottom: 16px;
}
.mobile-search-bar {
  position: relative;
  display: flex;
  align-items: center;
}
.mobile-search-bar .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1rem;
  pointer-events: none;
}
.mobile-search-bar input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 1rem;
  background: var(--bg);
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mobile-search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-glow);
  background: #fff;
}
.mobile-search-bar input::placeholder {
  color: var(--text-light);
}
.mobile-search-initial {
  text-align: center;
  padding: 60px 20px;
}
.mobile-search-initial .initial-icon {
  font-size: 3rem;
  color: var(--border);
  margin-bottom: 16px;
}
.mobile-search-initial h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 8px;
}
.mobile-search-initial p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.mobile-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.mobile-search-tag {
  display: inline-block;
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.mobile-search-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.mobile-search-results {
  display: none;
}
.mobile-search-results.active {
  display: block;
}
.mobile-search-results .result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
  color: inherit;
}
.mobile-search-results .result-item:last-child {
  border-bottom: none;
}
.mobile-search-results .result-item:hover {
  background: var(--primary-light);
  margin: 0 -16px;
  padding: 14px 16px;
  border-radius: 12px;
}
.mobile-search-results .result-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-alt);
}
.mobile-search-results .result-info {
  flex: 1;
  min-width: 0;
}
.mobile-search-results .result-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--heading);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-search-results .result-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.mobile-search-empty {
  display: none;
  text-align: center;
  padding: 80px 20px;
}
.mobile-search-empty.active {
  display: block;
}
.mobile-search-empty .empty-icon {
  font-size: 3.5rem;
  color: var(--border);
  margin-bottom: 16px;
}
.mobile-search-empty h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.mobile-search-empty p {
  font-size: 0.88rem;
  color: var(--text-light);
}
