/* ==========================================================================
   Color Fiesta - Premium Organic & Health E-Commerce Stylesheet
   Inspired by GhorerBazar conversion design with modern medical-grade wellness aesthetics
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
  --primary: #3c5809;
  --primary-hover: #2e4406;
  --primary-light: #f1f8e8;
  --primary-dark: #223304;
  --secondary: #7ac30e;
  --secondary-hover: #6db00c;
  --secondary-light: #f7fceb;
  --secondary-dark: #588f09;
  --accent: #7ac30e;
  --accent-hover: #6db00c;
  --text-dark: #1a2408;
  --text-muted: #5e6b4e;
  --text-light: #8d9a7f;
  --bg-light: #f9fbf6;
  --bg-white: #ffffff;
  --border-color: #e2ecd0;
  --border-light: #eef5e4;
  --success: #7ac30e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgb(60 88 9 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(60 88 9 / 0.08), 0 2px 4px -2px rgb(60 88 9 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(60 88 9 / 0.1), 0 4px 6px -4px rgb(60 88 9 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(60 88 9 / 0.12), 0 8px 10px -6px rgb(60 88 9 / 0.08);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Hind Siliguri', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ================= Top Announcement Bar ================= */
.top-bar {
  background: linear-gradient(90deg, #223304 0%, #172403 100%);
  color: #fff;
  font-size: 13px;
  padding: 7px 0;
  font-weight: 500;
}
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-announcement {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-badge {
  background: var(--secondary);
  color: #fff;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.top-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 0.9;
  transition: var(--transition);
}
.top-links a:hover {
  opacity: 1;
  color: #a3e83b;
}

/* ================= Main Header ================= */
.main-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(60, 88, 9, 0.04);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 20px;
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  height: 52px;
  max-width: 250px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--transition);
}
.site-logo:hover {
  transform: scale(1.02);
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, #7ac30e 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(60, 88, 9, 0.25);
}
.logo-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}
.logo-text h1 span {
  color: var(--secondary);
}
.logo-text p {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Search Bar (GhorerBazar style) */
.header-search {
  flex: 1;
  max-width: 580px;
  position: relative;
}
.search-form {
  display: flex;
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 11px 45px 11px 18px;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  outline: none;
  font-size: 14px;
  transition: var(--transition);
  background: #fdfdfd;
}
.search-input:focus {
  background: #fff;
  box-shadow: 0 0 0 3px rgba(60, 88, 9, 0.15);
}
.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  bottom: 5px;
  width: 40px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.search-btn:hover {
  background: var(--primary-hover);
}

/* Live Search Dropdown */
.live-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  margin-top: 8px;
  border: 1px solid var(--border-color);
  max-height: 380px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}
.search-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: var(--transition);
}
.search-item:hover {
  background: var(--primary-light);
}
.search-item-img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.search-item-info {
  flex: 1;
}
.search-item-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.search-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 2px;
}
.search-item-action button {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  background: var(--secondary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
  background: none;
  border: none;
}
.action-btn:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.action-icon {
  font-size: 20px;
  position: relative;
}
.badge-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}
.action-text {
  text-align: left;
  line-height: 1.2;
}
.action-text span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
}
.action-text strong {
  font-size: 13px;
  font-weight: 600;
}

/* ================= Category Navigation Bar ================= */
.category-nav-bar {
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  font-weight: 600;
}
.cat-nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 8px 0;
  scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar {
  display: none;
}
.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--text-dark);
  transition: var(--transition);
}
.cat-nav-link:hover, .cat-nav-link.active {
  background: var(--primary);
  color: #fff;
}

/* ================= Hero Banner Carousel ================= */
.hero-section {
  padding: 16px 0 24px;
}
.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #111;
  min-height: 380px;
}
.slide-item {
  display: none;
  position: relative;
  width: 100%;
  height: 380px;
}
.slide-item.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
}
.slide-content {
  position: absolute;
  top: 50%;
  left: 6%;
  transform: translateY(-50%);
  max-width: 580px;
  color: #fff;
  z-index: 10;
}
.slide-badge {
  display: inline-block;
  background: var(--accent);
  color: #000;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}
.slide-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.slide-subtitle {
  font-size: 16px;
  color: #f1f5f9;
  margin-bottom: 20px;
  line-height: 1.4;
}
.slide-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #7ac30e 0%, #588f09 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(122, 195, 14, 0.4);
}
.slide-btn:hover {
  background: linear-gradient(135deg, #87d712 0%, #5fa009 100%);
  transform: translateY(-2px);
}
.slider-arrows {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 16px;
  transform: translateY(-50%);
  z-index: 15;
  pointer-events: none;
}
.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  transition: var(--transition);
  font-size: 18px;
}
.slider-arrow:hover {
  background: #fff;
  color: var(--primary);
  transform: scale(1.08);
}
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 15;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}
.dot.active {
  background: var(--accent);
  width: 26px;
  border-radius: var(--radius-full);
}

/* ================= Trust Features ================= */
.trust-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 18px;
}
.trust-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 16px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}
.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.trust-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}
.trust-text p {
  font-size: 12px;
  color: var(--text-muted);
}

/* ================= Featured Categories Section ================= */
.section-padding {
  padding: 28px 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
}
.section-title .title-bar {
  width: 4px;
  height: 24px;
  background: var(--primary);
  border-radius: 4px;
}
.categories-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}
.category-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}
.category-icon-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 8px;
  transition: var(--transition);
}
.category-card:hover .category-icon-wrapper {
  transform: scale(1.1);
  background: #d1fae5;
}
.category-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.3;
}
.category-count {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ================= Products Grid & Cards ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
  transform: translateY(-4px);
}
.badge-discount {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
}
.badge-cure {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 5;
}
.product-image-box {
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  cursor: pointer;
}
.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img {
  transform: scale(1.05);
}
.product-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category {
  font-size: 11px;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.product-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 6px;
  cursor: pointer;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-title:hover {
  color: var(--primary);
}
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #f59e0b;
  margin-bottom: 8px;
}
.product-rating span {
  color: var(--text-muted);
  font-size: 11px;
}

/* Weight / Variation Selector Pill */
.variation-picker {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.variation-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  background: #f8fafc;
  transition: var(--transition);
}
.variation-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.price-box {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: auto;
}
.current-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}
.original-price {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: line-through;
  font-family: 'Outfit', sans-serif;
}

/* Product Card Action Buttons (GhorerBazar Conversion Dual Action) */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-order-now {
  background: linear-gradient(135deg, #7ac30e 0%, #588f09 100%);
  color: #fff;
  border: none;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-order-now:hover {
  background: linear-gradient(135deg, #87d712 0%, #5fa009 100%);
  box-shadow: 0 4px 10px rgba(122, 195, 14, 0.35);
}
.btn-add-cart {
  background: var(--primary-light);
  color: var(--primary);
  border: 1px solid #d4e8be;
  padding: 9px 8px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.btn-add-cart:hover {
  background: var(--primary);
  color: #fff;
}

/* ================= Product Details Modal ================= */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(3px);
}
.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.2s ease-in-out;
}
.modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  padding: 24px;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 10;
}
.modal-close:hover {
  background: var(--danger);
  color: #fff;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.detail-img-box {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #f8fafc;
}
.detail-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}
.detail-info h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}
.detail-short-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
.detail-desc {
  font-size: 13px;
  color: var(--text-dark);
  margin-top: 16px;
  line-height: 1.6;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

/* ================= 1-Click Instant Order / One-Page Checkout Drawer/Modal ================= */
.checkout-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  padding: 24px;
}
.checkout-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
  margin-bottom: 16px;
}
.checkout-header h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.checkout-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.checkout-item-summary {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 16px;
}
.checkout-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.checkout-table th {
  text-align: left;
  padding: 6px;
  color: var(--text-muted);
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
}
.checkout-table td {
  padding: 8px 6px;
  vertical-align: middle;
}
.qty-ctrl-sm {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  background: #fff;
}
.qty-btn-sm {
  border: none;
  background: none;
  width: 24px;
  height: 24px;
  cursor: pointer;
  font-weight: 700;
}
.qty-val-sm {
  padding: 0 6px;
  font-size: 12px;
  font-weight: 700;
}
.form-group {
  margin-bottom: 12px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: var(--transition);
  background: #fff;
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(60, 88, 9, 0.15);
}
.delivery-zones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.delivery-radio-card {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
}
.delivery-radio-card.active {
  border-color: var(--primary);
  background: var(--primary-light);
}
.coupon-input-group {
  display: flex;
  gap: 8px;
}
.coupon-btn {
  padding: 0 16px;
  background: var(--text-dark);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.bill-breakdown {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13px;
}
.bill-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}
.bill-row.total-row {
  border-top: 1px dashed #cbd5e1;
  padding-top: 8px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 800;
  color: var(--primary);
}
.btn-confirm-order {
  width: 100%;
  background: linear-gradient(135deg, #7ac30e 0%, #588f09 100%);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(122, 195, 14, 0.35);
}
.btn-confirm-order:hover {
  background: linear-gradient(135deg, #87d712 0%, #5fa009 100%);
  transform: translateY(-2px);
}

/* ================= Sliding Cart Drawer (Offcanvas) ================= */
.cart-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 600;
  display: none;
}
.cart-drawer-overlay.active {
  display: block;
}
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100%;
  background: var(--bg-white);
  z-index: 610;
  box-shadow: var(--shadow-xl);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.active {
  right: 0;
}
.cart-drawer-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.cart-drawer-header h3 {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
}
.cart-items-list {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}
.cart-drawer-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.cart-item-weight {
  font-size: 11px;
  color: var(--text-muted);
}
.cart-item-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  margin-top: 4px;
}
.cart-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--border-color);
  background: #f8fafc;
}
.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 14px;
}
.btn-checkout-drawer {
  width: 100%;
  background: var(--secondary);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}
.btn-checkout-drawer:hover {
  background: var(--secondary-hover);
}

/* ================= Order Success Modal ================= */
.order-success-box {
  text-align: center;
  padding: 20px 10px;
}
.success-icon-anim {
  width: 70px;
  height: 70px;
  background: #d1fae5;
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
}
.order-num-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin: 12px 0 16px;
  font-family: 'Outfit', sans-serif;
}
.success-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

/* ================= Customer Testimonials ================= */
.testimonials-section {
  background: #fff;
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  position: relative;
}
.testi-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.testi-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.testi-user h4 {
  font-size: 14px;
  font-weight: 700;
}
.testi-user p {
  font-size: 11px;
  color: var(--text-muted);
}
.testi-comment {
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.5;
}

/* ================= Footer ================= */
.main-footer {
  background: #172403;
  color: #a4b396;
  padding: 48px 0 20px;
  font-size: 13px;
  margin-top: 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid #283d06;
}
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}
.footer-col p {
  line-height: 1.6;
  margin-bottom: 14px;
}
.footer-links {
  list-style: none;
}
.footer-links li {
  margin-bottom: 10px;
}
.footer-links a {
  color: #a4b396;
  transition: var(--transition);
}
.footer-links a:hover {
  color: #7ac30e;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 12px;
  color: #8d9a7f;
}
.payment-methods {
  display: flex;
  gap: 8px;
}
.payment-badge {
  background: #283d06;
  color: #fff;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
}

/* ================= Mobile Sticky Bottom Navigation ================= */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border-color);
  padding: 8px 12px;
  z-index: 99;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
}
.bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  gap: 3px;
}
.bottom-nav-item.active {
  color: var(--primary);
}
.bottom-nav-icon {
  font-size: 20px;
  position: relative;
}

/* ================= Toast Notification ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #1e293b;
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInUp 0.3s ease-out;
  border-left: 4px solid var(--primary);
}
.toast.toast-success {
  border-left-color: var(--success);
}
.toast.toast-error {
  border-left-color: var(--danger);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .trust-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 60px; /* Space for mobile bottom nav */
  }
  .top-links {
    display: none;
  }
  .header-actions .action-text {
    display: none;
  }
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    display: block;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .site-logo {
    height: 40px;
    max-width: 175px;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 10px;
  }
  .section-padding {
    padding: 14px 0 20px;
  }
  .section-header {
    margin-bottom: 10px;
  }
  .section-title h2 {
    font-size: 17px;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .product-card {
    border-radius: var(--radius-sm);
  }
  .product-image-box {
    height: 115px;
  }
  .badge-discount {
    top: 6px;
    left: 6px;
    font-size: 9.5px;
    padding: 2px 6px;
  }
  .badge-cure {
    top: 6px;
    right: 6px;
    font-size: 8.5px;
    padding: 2px 5px;
  }
  .product-content {
    padding: 8px 8px 10px;
  }
  .product-category {
    font-size: 9.5px;
    margin-bottom: 2px;
    line-height: 1.1;
  }
  .product-title {
    font-size: 12.5px;
    line-height: 1.25;
    min-height: 32px;
    max-height: 32px;
    margin-bottom: 3px;
    -webkit-line-clamp: 2;
  }
  .product-rating {
    font-size: 10px;
    margin-bottom: 4px;
    gap: 3px;
  }
  .product-rating span {
    font-size: 9.5px;
  }
  .variation-picker {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .variation-picker::-webkit-scrollbar {
    display: none;
  }
  .variation-pill {
    font-size: 9.5px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    border-radius: var(--radius-sm);
  }
  .price-box {
    margin-bottom: 6px;
    margin-top: 2px;
    gap: 5px;
  }
  .current-price {
    font-size: 15px;
  }
  .original-price {
    font-size: 11px;
  }
  .product-actions {
    gap: 4px;
  }
  .btn-order-now {
    padding: 6px 4px;
    font-size: 11px;
    height: 30px;
    border-radius: 4px;
  }
  .btn-add-cart {
    padding: 6px 4px;
    font-size: 11px;
    height: 30px;
    border-radius: 4px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    height: 34px;
    max-width: 145px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-title {
    font-size: 22px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 0 8px;
  }
  .products-grid {
    gap: 6px;
  }
  .product-image-box {
    height: 105px;
  }
  .product-content {
    padding: 6px 6px 8px;
  }
  .product-title {
    font-size: 11.5px;
    min-height: 29px;
    max-height: 29px;
  }
  .current-price {
    font-size: 14px;
  }
  .btn-order-now, .btn-add-cart {
    font-size: 10.5px;
    height: 28px;
    padding: 4px 2px;
  }
}
