/*
Theme Name: Crown Mart BD
Theme URI: https://crownmartbd.com/
Author: Crown Mart BD Tech Team
Author URI: https://crownmartbd.com/
Description: Ultra-fast, mobile-first agricultural eCommerce theme for WooCommerce tailored for Bangladeshi farmers, nursery owners, and rooftop gardeners.
Version: 2.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: crown-mart-bd
Domain Path: /languages/
*/

/* ==========================================================================
   Crown Mart BD — Stylesheet (PRD v2.0 Agri E-Commerce Theme)
   Colors: Rich Agricultural Emerald (#0f5132, #10b981), Amber Gold (#f59e0b), Clean Slate (#1e293b)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #0f5132;
  --primary-hover: #0a3d24;
  --primary-light: #e8f5e9;
  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-light: #fef3c7;
  --success: #10b981;
  --danger: #ef4444;
  --info: #0284c7;
  
  --bg-main: #f8faf7;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f0;
  
  --text-main: #132a13;
  --text-muted: #4a5d4e;
  --text-light: #7c9082;
  --text-inverse: #ffffff;
  
  --border-color: #dbe4dc;
  --border-focus: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 6px rgba(15, 81, 50, 0.05);
  --shadow-md: 0 6px 18px rgba(15, 81, 50, 0.08);
  --shadow-lg: 0 14px 32px rgba(15, 81, 50, 0.12);
  --shadow-xl: 0 24px 48px rgba(15, 81, 50, 0.16);

  --font-bangla: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-latin: 'Outfit', sans-serif;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-bangla);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 80px; /* Space for mobile sticky footer */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Typography & Badges */
h1, h2, h3, h4, h5, h6 {
  color: var(--primary);
  font-weight: 700;
  line-height: 1.3;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-germination {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.badge-season {
  background: var(--accent-light);
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-origin {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.badge-stock {
  background: #f0fdf4;
  color: #166534;
}

.badge-stock.low {
  background: #fff1f2;
  color: #be123c;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
/* ==========================================================================
   Header & Navigation (Crown Mart BD v2.1)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 18px rgba(15, 81, 50, 0.06);
  transition: all 0.3s ease;
}

/* 1. Top Bar */
.top-bar {
  background: linear-gradient(90deg, #0a3d24 0%, #0f5132 50%, #166534 100%);
  color: #e2fbe8;
  font-size: 0.82rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-badge {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.top-announcement {
  font-weight: 500;
  color: #d1fae5;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-link {
  color: #ffffff !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  transition: color 0.2s ease;
}

.top-link:hover {
  color: #fde047 !important;
}

.top-phone strong {
  font-size: 0.88rem;
  color: #fef08a;
  letter-spacing: 0.5px;
}

.top-wa i {
  color: #4ade80;
}

.top-sep {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
}

/* 2. Main Header */
.header-main {
  padding: 12px 0;
}

.header-main-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

/* Mobile Hamburger Button */
.mobile-menu-toggle {
  display: none;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--primary);
  font-size: 1.25rem;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: var(--primary-light);
  color: var(--primary-hover);
}

/* Logo */
.logo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
  flex-shrink: 0;
}

.logo-icon {
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, #10b981, #0f5132);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
  transition: transform 0.2s ease;
}

.logo-brand:hover .logo-icon {
  transform: rotate(-5deg) scale(1.04);
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
  margin-top: 2px;
}

/* Header Live Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  width: 100%;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
}

.search-input-wrapper input {
  width: 100%;
  padding: 11px 40px 11px 42px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-color);
  background: #f8fafc;
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  transition: all 0.2s ease;
}

.search-input-wrapper input:focus {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Nav Actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Helpline Call Pill */
.nav-action-pill.call-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  color: var(--primary);
  transition: all 0.2s ease;
}

.nav-action-pill.call-pill:hover {
  background: #dcfce7;
  border-color: #86efac;
  transform: translateY(-1px);
}

.pill-icon {
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.pill-text {
  display: flex;
  flex-direction: column;
}

.pill-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}

.pill-text strong {
  font-size: 0.92rem;
  color: var(--primary-dark, #0a3d24);
  line-height: 1.1;
}

/* Auth & Cart Buttons */
.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.nav-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: #a7f3d0;
}

.nav-btn.cart-trigger {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #ffffff !important;
  border: none;
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.25);
}

.nav-btn.cart-trigger:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 81, 50, 0.35);
}

.cart-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.cart-count {
  background: #f59e0b;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1;
  margin-left: 2px;
}

/* 3. Navigation Bar Tabs */
.nav-tabs-bar {
  background: #fbfdfb;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.nav-tabs-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tab-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.tab-link.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 81, 50, 0.2);
}

.nav-hot-deal {
  margin-left: 12px;
}

.hot-deal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff7ed;
  border: 1px solid #ffedd5;
  border-radius: var(--radius-full);
  color: #c2410c !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.hot-deal-badge:hover {
  background: #ffedd5;
  transform: scale(1.02);
}

/* ==========================================================================
   Hero Banner & Trust Section
   ========================================================================== */
.hero-banner {
  background: linear-gradient(135deg, #0f5132 0%, #1e3a29 60%, #115e59 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  margin: 16px 0 24px;
  padding: 36px 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-banner::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.hero-content {
  max-width: 680px;
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  color: #fef08a;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-size: 2.2rem;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 1.05rem;
  color: #d1fae5;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  color: #000;
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Trust Badges Bar */
.trust-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.trust-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.trust-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Category Chips & Filters
   ========================================================================== */
.filter-section {
  margin-bottom: 24px;
}

.category-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.category-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.category-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(15, 81, 50, 0.2);
}

/* ==========================================================================
   Product Grid & Product Cards (PRD Architecture)
   ========================================================================== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.section-header h3 {
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #a7f3d0;
}

.product-thumb {
  position: relative;
  height: 200px;
  background: #e2e8f0;
  overflow: hidden;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.card-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card-fav-btn:hover, .card-fav-btn.active {
  color: var(--danger);
  background: #ffffff;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.78rem;
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.7rem;
}

/* Custom Agri Metadata Badges in Card */
.agri-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 12px;
}

.spec-pill {
  font-size: 0.78rem;
  padding: 3px 8px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Variation Weights Selector */
.weight-selector-row {
  margin: 8px 0;
}

.weight-selector-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.weight-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.weight-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 9px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  color: var(--text-main);
  transition: var(--transition);
}

.weight-btn:hover {
  border-color: var(--primary);
}

.weight-btn.selected {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Price Row */
.product-pricing {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.current-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font-latin), var(--font-bangla);
}

.old-price {
  font-size: 0.85rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.card-actions {
  display: flex;
  gap: 6px;
}

.btn-card-add {
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.btn-card-add:hover {
  background: var(--primary-hover);
}

.btn-card-view {
  background: var(--bg-subtle);
  color: var(--text-main);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-card-view:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ==========================================================================
   Product Details Modal (Rich Information)
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(19, 42, 19, 0.65);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: #e2e8f0;
  color: var(--danger);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
}

@media (min-width: 680px) {
  .modal-body {
    grid-template-columns: 1fr 1.2fr;
  }
}

.modal-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  background: #f8fafc;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-details h2 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.modal-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0;
  background: var(--bg-subtle);
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.meta-field strong {
  display: block;
  color: var(--primary);
  font-size: 0.8rem;
}

/* ==========================================================================
   Single Page Checkout Drawer / Modal (PRD P0 Requirement)
   ========================================================================== */
.checkout-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 81, 50, 0.4);
  backdrop-filter: blur(6px);
  z-index: 1100;
  display: none;
  justify-content: flex-end;
}

.checkout-modal.active {
  display: flex;
}

.checkout-drawer {
  background: #ffffff;
  width: 100%;
  max-width: 540px;
  height: 100%;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
  animation: slideLeft 0.3s ease;
}

.checkout-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-color);
  margin-bottom: 20px;
}

.checkout-header h3 {
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Payment Method Cards */
.payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.payment-card-opt {
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-surface);
}

.payment-card-opt:hover {
  border-color: var(--primary);
}

.payment-card-opt.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}

.payment-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
}

.bkash-bg { background: #e2136e; }
.nagad-bg { background: #f7941d; }
.rocket-bg { background: #8c3494; }
.cod-bg { background: #0f5132; }

/* Order Summary Box */
.order-summary-box {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  margin-bottom: 8px;
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1.5px solid var(--border-color);
  padding-top: 10px;
  margin-top: 10px;
}

/* ==========================================================================
   Order Tracking & SMS System (PRD v2.0 Section 5 & 8)
   ========================================================================== */
.tracker-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto 40px;
}

.tracker-timeline {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin-top: 24px;
  padding-left: 10px;
}

.timeline-step {
  display: flex;
  gap: 16px;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 36px;
  bottom: -20px;
  width: 2px;
  background: #e2e8f0;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e2e8f0;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  z-index: 2;
}

.timeline-step.completed .timeline-icon {
  background: var(--primary);
  color: #ffffff;
}

.timeline-step.active .timeline-icon {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
}

.timeline-step.completed::before {
  background: var(--primary);
}

.timeline-info h5 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.timeline-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-time {
  font-size: 0.75rem;
  color: var(--text-light);
}

/* SMS Alert Notification Box */
.sms-log-box {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 20px;
}

.sms-log-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e293b;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.sms-bubble {
  background: #ffffff;
  border-left: 3px solid var(--primary);
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Admin Management Section
   ========================================================================== */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}

.stat-icon.green { background: #10b981; }
.stat-icon.amber { background: #f59e0b; }
.stat-icon.blue { background: #0284c7; }
.stat-icon.purple { background: #8b5cf6; }

.stat-info h3 {
  font-size: 1.4rem;
  font-family: var(--font-latin), var(--font-bangla);
}

.stat-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-table-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.admin-table th {
  background: var(--bg-subtle);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--primary);
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
}

/* ==========================================================================
   Mobile Sticky Footer Bar (PRD UX Requirement)
   ========================================================================== */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  padding: 8px 12px;
  z-index: 99;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none;
  }
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  position: relative;
}

.mobile-nav-item i {
  font-size: 1.2rem;
}

.mobile-nav-item.active {
  color: var(--primary);
}

.mobile-nav-badge {
  position: absolute;
  top: -4px;
  right: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  padding: 1px 5px;
  border-radius: 10px;
  font-weight: 700;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 85px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 992px) {
  .toast-container {
    bottom: 24px;
  }
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease;
}

.toast.success {
  background: var(--primary);
  border-left: 4px solid #34d399;
}

.toast.info {
  background: #0369a1;
  border-left: 4px solid #38bdf8;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* ==========================================================================
   Mobile Slide-out Navigation Drawer
   ========================================================================== */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  z-index: 1099;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 82%;
  max-width: 320px;
  background: #ffffff;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: linear-gradient(135deg, #0f5132, #166534);
  color: #ffffff;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  font-size: 1rem;
  border-radius: 8px;
}

.drawer-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s;
}

.drawer-close-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.drawer-search {
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
}

.drawer-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 6px;
}

.drawer-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.drawer-menu-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-main);
  text-decoration: none !important;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s;
}

.drawer-menu-list li a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.drawer-menu-list li a i {
  color: var(--primary);
  width: 20px;
  text-align: center;
}

.drawer-contact-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-call-btn, .drawer-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
}

.drawer-call-btn {
  background: var(--primary);
  color: #ffffff !important;
}

.drawer-wa-btn {
  background: #22c55e;
  color: #ffffff !important;
}

.drawer-hours {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
}

/* ==========================================================================
   Pre-Footer Trust & Guarantee Section
   ========================================================================== */
.pre-footer-trust {
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 36px 0;
  margin-top: 40px;
}

.trust-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.trust-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #ffffff;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
}

.trust-card:hover {
  transform: translateY(-3px);
  border-color: #86efac;
  box-shadow: 0 8px 20px rgba(15, 81, 50, 0.08);
}

.trust-card-icon {
  width: 46px;
  height: 46px;
  background: #ecfdf5;
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.trust-card-text h4 {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--primary);
}

.trust-card-text p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Main 4-Column Footer (Crown Mart BD)
   ========================================================================== */
.site-footer {
  background: #092617;
  color: #e2e8f0;
  position: relative;
}

.footer-main {
  padding: 56px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
}

/* Col 1: Brand */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
}

.footer-brand-tag {
  font-size: 0.78rem;
  color: #86efac;
  display: block;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 16px;
}

.footer-gov-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.footer-socials a:hover {
  background: var(--primary);
  color: #ffffff !important;
  transform: translateY(-2px);
  border-color: #34d399;
}

/* Headings & Links */
.footer-heading {
  font-size: 1.08rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background: #10b981;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links li a {
  color: #cbd5e1 !important;
  text-decoration: none !important;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-links li a i {
  font-size: 0.75rem;
  color: #10b981;
  transition: transform 0.2s ease;
}

.footer-links li a:hover {
  color: #ffffff !important;
  transform: translateX(4px);
}

.footer-links li a:hover i {
  transform: translateX(2px);
  color: #34d399;
}

/* Contact List */
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  width: 34px;
  height: 34px;
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.contact-icon.wa-icon {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-info small {
  font-size: 0.72rem;
  color: #94a3b8;
}

.contact-highlight {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fef08a !important;
  text-decoration: none !important;
  letter-spacing: 0.5px;
}

.wa-highlight {
  color: #4ade80 !important;
  font-size: 0.98rem;
}

.contact-info a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.88rem;
}

.contact-info span {
  font-size: 0.88rem;
  color: #cbd5e1;
}

/* Payment & Courier Bar */
.footer-methods-bar {
  background: #061c11;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
}

.methods-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.method-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.method-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.method-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pay-badge, .courier-badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}

.bkash-badge { background: #e2136e; color: #ffffff; }
.nagad-badge { background: #f7941d; color: #ffffff; }
.rocket-badge { background: #8c3494; color: #ffffff; }
.cod-badge { background: #059669; color: #ffffff; }
.courier-badge { background: rgba(255, 255, 255, 0.12); color: #f1f5f9; border: 1px solid rgba(255, 255, 255, 0.1); }

/* Copyright Bottom Bar */
.footer-bottom {
  background: #04140c;
  padding: 16px 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.footer-bottom-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.copyright-text {
  margin: 0;
}

.copyright-text strong {
  color: #ffffff;
}

.credit-text {
  margin: 0;
  font-size: 0.8rem;
  color: #cbd5e1;
}

/* ==========================================================================
   Responsive Breakpoints for Header, Footer & Modals
   ========================================================================== */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* Give body bottom space for sticky nav */
  body {
    padding-bottom: 68px;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-container {
    justify-content: center;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-action-pill.call-pill {
    display: none;
  }

  .header-search {
    display: none;
  }

  .nav-tabs-bar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .methods-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

/* ==========================================================================
   Crown Mart BD — Dedicated Single Product Page Styles
   ========================================================================== */
.single-product-page-wrapper {
  padding: 24px 0 60px;
  background-color: var(--bg-main);
  min-height: 80vh;
}

/* Breadcrumb */
.cm-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 10px 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}
.cm-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cm-breadcrumb a:hover {
  color: var(--primary);
}
.cm-breadcrumb .bc-sep {
  font-size: 0.75rem;
  color: var(--text-light);
}
.cm-breadcrumb .bc-current {
  color: var(--primary);
  font-weight: 600;
}

/* 2-Column Product Grid */
.cm-product-grid {
  display: grid;
  grid-template-columns: 46% 51%;
  gap: 3%;
  align-items: start;
  margin-bottom: 48px;
}

/* Gallery Column */
.cm-gallery-col {
  position: sticky;
  top: 90px;
}
.cm-main-image-box {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cm-main-image-box:hover .cm-main-img {
  transform: scale(1.03);
}
.cm-gallery-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 3;
}
.cm-badge {
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}
.cm-badge-sale {
  background: #dc2626;
  color: #ffffff;
}
.cm-badge-germ {
  background: #0f5132;
  color: #ffffff;
}
.cm-badge-origin {
  background: #f8fafc;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.cm-zoom-trigger {
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.cm-zoom-trigger:hover {
  background: var(--primary);
  color: #ffffff;
}

/* Thumbnails */
.cm-thumb-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.cm-thumb-item {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  transition: var(--transition);
}
.cm-thumb-item.active, .cm-thumb-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(15,81,50,0.2);
}
.cm-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Quality Assurance Card */
.cm-quality-card {
  margin-top: 20px;
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cm-qc-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cm-qc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0fdf4;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cm-qc-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 2px;
}
.cm-qc-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

/* Details Column */
.cm-details-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.cm-cat-stock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.cm-category-tag {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cm-stock-badge {
  font-size: 0.82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.cm-stock-badge.in-stock {
  color: #16a34a;
}
.cm-stock-badge.out-stock {
  color: #dc2626;
}
.cm-single-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0 0 10px;
}
.cm-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.cm-stars {
  color: #f59e0b;
}
.cm-rating-score {
  font-weight: 700;
  color: var(--text-main);
}
.cm-review-count {
  color: var(--text-muted);
}

/* Price Card */
.cm-price-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 12px;
}
.cm-price-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.cm-curr-price {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
}
.cm-old-price {
  font-size: 1.25rem;
  color: #94a3b8;
  text-decoration: line-through;
}
.cm-save-badge {
  background: #fef2f2;
  color: #ef4444;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #fecaca;
}
.cm-price-subtext {
  font-size: 0.84rem;
  color: #16a34a;
  font-weight: 600;
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Short Description */
.cm-short-desc {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.65;
}

/* Highlights Grid */
.cm-agri-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.cm-highlight-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.cm-hl-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.cm-hl-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-light);
}
.cm-hl-val {
  display: block;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 700;
}

/* Variation Buttons */
.cm-variation-section {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
}
.cm-section-label {
  font-size: 0.92rem;
  color: var(--text-main);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cm-var-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cm-var-btn {
  padding: 8px 16px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: var(--transition);
}
.cm-var-btn .cm-var-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
}
.cm-var-btn .cm-var-price {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.cm-var-btn.selected {
  border-color: var(--primary);
  background: var(--primary-light);
}
.cm-var-btn.selected .cm-var-name,
.cm-var-btn.selected .cm-var-price {
  color: var(--primary);
  font-weight: 700;
}

/* Action Row */
.cm-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.cm-qty-control {
  display: flex;
  align-items: center;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  height: 48px;
}
.cm-qty-btn {
  width: 40px;
  height: 100%;
  background: #f1f5f9;
  border: none;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
}
.cm-qty-btn:hover {
  background: #e2e8f0;
}
.cm-qty-control input {
  width: 44px;
  text-align: center;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}
.cm-btn-buy-instant {
  flex: 2;
  min-width: 170px;
  height: 48px;
  background: #f59e0b;
  color: #132a13;
  border: none;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
}
.cm-btn-buy-instant:hover {
  background: #d97706;
  transform: translateY(-2px);
}
.cm-btn-add-cart {
  flex: 1;
  min-width: 150px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}
.cm-btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Direct Helpline */
.cm-direct-helpline {
  background: #f0fdf4;
  border: 1px dashed #86efac;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.88rem;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cm-hl-link, .cm-wa-link {
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cm-hl-link { color: var(--primary); }
.cm-wa-link { color: #16a34a; }

/* Inline Fast Order Card */
.cm-fast-order-card {
  background: #ffffff;
  border: 2px solid #0f5132;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 8px 30px rgba(15,81,50,0.08);
  margin-top: 10px;
}
.cm-order-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-color);
}
.cm-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #0f5132;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.cm-order-card-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0 0 4px;
}
.cm-order-card-header p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}

.cm-form-group {
  margin-bottom: 16px;
}
.cm-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.cm-form-group .req {
  color: #ef4444;
}
.cm-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text-main);
  background: #f8fafc;
  outline: none;
  transition: var(--transition);
}
.cm-input:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.12);
}
.cm-textarea {
  resize: vertical;
}

.cm-delivery-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cm-deliv-radio input {
  display: none;
}
.cm-deliv-radio .radio-box {
  display: flex;
  flex-direction: column;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.cm-deliv-radio input:checked + .radio-box {
  border-color: var(--primary);
  background: var(--primary-light);
}
.cm-deliv-radio .zone-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
}
.cm-deliv-radio .zone-fee {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.cm-order-summary-box {
  background: #f8faf7;
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed #cbd5e1;
}
.cm-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #475569;
}
.cm-total-row {
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  font-size: 1.05rem;
  color: var(--text-main);
}
.cm-grand-total {
  color: var(--primary);
  font-size: 1.2rem;
}

.cm-btn-confirm-order {
  width: 100%;
  padding: 14px 20px;
  background: #0f5132;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(15, 81, 50, 0.3);
  transition: var(--transition);
}
.cm-btn-confirm-order:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.cm-form-footer-note {
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 10px;
}

/* Success State */
.cm-success-state {
  text-align: center;
  padding: 30px 10px;
}
.cm-success-icon {
  font-size: 3.5rem;
  color: #16a34a;
  margin-bottom: 12px;
}
.cm-success-state h3 {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.cm-success-state .tracking-code {
  display: inline-block;
  background: #e2e8f0;
  padding: 4px 12px;
  border-radius: 4px;
  color: #0f172a;
  letter-spacing: 1px;
}
.cm-success-state .success-desc {
  font-size: 0.92rem;
  color: #64748b;
  margin: 12px 0 20px;
}
.cm-success-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.cm-btn-track, .cm-btn-continue {
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cm-btn-track {
  background: #0f5132;
  color: #fff;
}
.cm-btn-continue {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

/* Tabs Section */
.cm-tabs-container {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.cm-tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  background: #f8fafc;
  overflow-x: auto;
}
.cm-tab-nav-btn {
  padding: 16px 24px;
  border: none;
  background: transparent;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}
.cm-tab-nav-btn:hover {
  color: var(--primary);
}
.cm-tab-nav-btn.active {
  color: var(--primary);
  background: #ffffff;
  border-bottom-color: var(--primary);
}
.cm-tab-panel {
  display: none;
  padding: 28px;
}
.cm-tab-panel.active {
  display: block;
}
.cm-content-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}
.cm-content-block p, .cm-content-block ul {
  font-size: 0.96rem;
  color: #334155;
  line-height: 1.7;
}

/* Guide Steps */
.cm-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #f8faf7;
  padding: 16px 18px;
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}
.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.guide-step strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}
.guide-step p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* Specs Table */
.cm-specs-table {
  width: 100%;
  border-collapse: collapse;
}
.cm-specs-table th, .cm-specs-table td {
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  font-size: 0.92rem;
}
.cm-specs-table th {
  background: #f8fafc;
  color: var(--text-muted);
  width: 35%;
  text-align: left;
}
.cm-specs-table td {
  color: var(--text-main);
  font-weight: 600;
}
.badge-pill {
  background: #dcfce7;
  color: #166534;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 700;
}

/* Reviews Summary */
.cm-reviews-summary {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
}
.review-score-big {
  background: #f8faf7;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.review-score-big strong {
  font-size: 3rem;
  color: var(--text-main);
  line-height: 1;
}
.review-score-big .stars {
  color: #f59e0b;
  font-size: 1.2rem;
}
.review-score-big span {
  font-size: 0.85rem;
  color: #16a34a;
  font-weight: 700;
}
.review-user-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.user-review-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 16px;
}
.user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.verified-badge {
  font-size: 0.78rem;
  color: #16a34a;
  font-weight: 600;
}
.review-stars {
  color: #f59e0b;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.user-review-item p {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

/* Related Products Section */
.cm-related-section {
  margin-bottom: 60px;
}
.view-all-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-all-link:hover {
  text-decoration: underline;
}

/* Image Zoom Modal */
.cm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 20px;
}
.cm-modal-overlay.active {
  display: flex;
}
.cm-modal-image-box {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.cm-modal-image-box img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
.cm-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .cm-product-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cm-gallery-col {
    position: static;
  }
  .cm-reviews-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .cm-single-title {
    font-size: 1.45rem;
  }
  .cm-curr-price {
    font-size: 1.7rem;
  }
  .cm-delivery-options {
    grid-template-columns: 1fr;
  }
  .cm-action-row {
    flex-direction: column;
  }
  .cm-qty-control {
    width: 100%;
    justify-content: space-between;
  }
  .cm-btn-buy-instant, .cm-btn-add-cart {
    width: 100%;
  }
}

