/* FreshMart BD - Duyare.com Inspired E-Commerce Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --primary: #059669;
  --primary-hover: #047857;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}

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

html, body {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: 'Hind Siliguri', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header & Navigation */
.header-top {
  background-color: var(--primary-light);
  border-bottom: 1px solid var(--primary-border);
  padding: 8px 0;
  font-size: 13px;
  color: var(--primary-hover);
  text-align: center;
  font-weight: 500;
}

.main-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 20px;
}

.brand-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.header-contacts {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-phone {
  background: #f1f5f9;
  color: var(--text-dark);
}

.btn-phone:hover {
  background: #e2e8f0;
}

.btn-whatsapp {
  background: #25D366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1eb857;
}

/* Trust Bar */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-text h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.trust-text p {
  font-size: 11px;
  color: var(--text-muted);
}

/* Hero Section */
.hero-banner {
  background: linear-gradient(rgba(6, 78, 59, 0.8), rgba(6, 95, 70, 0.8)), url('../images/banner.jpg') center/cover no-repeat;
  color: white;
  padding: 40px 0;
  border-radius: var(--radius-lg);
  margin: 24px auto;
  position: relative;
  overflow: hidden;
}

.hero-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-desc {
  font-size: 15px;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 20px;
}

/* Section Titles */
.section-header {
  text-align: center;
  margin: 36px 0 24px 0;
}

.section-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: var(--radius-full);
  margin: 8px auto 0;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.product-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-border);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-orange);
  color: white;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.product-badge.combo {
  background: #dc2626;
}

.product-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f1f5f9;
  overflow: hidden;
}

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

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

.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-decoration: none;
}

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

.product-short-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 16px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.product-old-price {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Product Card Action Bar (Details on Left, Price on Right) */
.product-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px 0;
}

/* Left Button: Product Details */
.btn-product-details {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0fdf4;
  color: #065f46;
  border: 1.5px solid #86efac;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-product-details:hover {
  background: #dcfce7;
  border-color: #34d399;
  color: #047857;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.15);
}

.pdetail-icon {
  font-size: 13px;
}

/* Right Side: Dual-Color Interactive Bouncing Price Badge */
.product-price-badge {
  margin-left: auto;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(135deg, #059669 0%, #0d9488 48%, #f59e0b 100%);
  background-size: 200% 200%;
  padding: 5px 12px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.22);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.product-price-badge:hover,
.product-price-badge:active,
.product-price-badge.bouncing-active {
  animation: priceBounce 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  background-position: right center;
  box-shadow: 0 6px 16px rgba(245, 158, 11, 0.4);
}

@keyframes priceBounce {
  0% { transform: translateY(0) scale(1); }
  25% { transform: translateY(-8px) scale(1.09); }
  50% { transform: translateY(3px) scale(0.96); }
  75% { transform: translateY(-4px) scale(1.03); }
  100% { transform: translateY(0) scale(1); }
}

.ppb-inner {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.ppb-current {
  font-size: 15.5px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
  letter-spacing: 0.3px;
}

.ppb-old {
  font-size: 11px;
  color: #fef08a;
  text-decoration: line-through;
  opacity: 0.88;
}

/* Order Now Button with Attention-Grabbing Beeping Radar Pulse */
.btn-order-card {
  width: 100%;
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-order-card:hover {
  background: var(--primary-hover);
}

.btn-order-beeping {
  position: relative;
  overflow: visible;
  animation: orderBeepPulse 2.4s infinite ease-in-out;
}

@keyframes orderBeepPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    transform: scale(1);
  }
  35% {
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    transform: scale(1.02);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    transform: scale(1);
  }
}

.order-beacon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #f59e0b;
  margin-right: 4px;
  animation: orderBeaconFlash 0.9s infinite alternate;
}

@keyframes orderBeaconFlash {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.35); }
}

/* Single Product Landing Page Layout */
.product-landing {
  padding: 24px 0 60px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 28px;
}

.product-gallery-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.main-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f8fafc;
  margin-bottom: 14px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: opacity 0.2s ease;
}

.detail-discount {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: #ef4444;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
  letter-spacing: 0.3px;
}

.img-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #cbd5e1;
  color: #1e293b;
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  transition: all 0.2s ease;
}

.img-nav-btn:hover {
  background: #ffffff;
  color: #059669;
  transform: translateY(-50%) scale(1.08);
}

.img-nav-prev {
  left: 12px;
}

.img-nav-next {
  right: 12px;
}

.mobile-gallery-counter {
  position: absolute;
  bottom: 12px;
  right: 14px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-badges-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.badge-available {
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rating-stars {
  color: #f59e0b;
  font-size: 13px;
  font-weight: 600;
}

.landing-offer-banner {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px dashed #059669;
  color: #065f46;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
  text-align: center;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.product-trust-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.trust-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
}

.package-selector-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 16px;
}

.selector-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.selector-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.selector-title strong {
  font-size: 14px;
  color: #0f172a;
  display: block;
}

.selector-title small {
  font-size: 11.5px;
  color: #64748b;
  display: block;
}

.package-option-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border: 2px solid #059669;
  background: #ffffff;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.08);
}

.poc-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}

.poc-details {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.poc-name {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
}

.poc-old {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
}

.poc-price {
  font-size: 18px;
  font-weight: 800;
  color: #059669;
}

.landing-benefits-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0 10px;
}

.benefit-strip-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 12px 14px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bsi-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.bsi-content strong {
  display: block;
  font-size: 13px;
  color: #0f172a;
}

.bsi-content small {
  display: block;
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

.product-info-box {
  margin-top: 16px;
}

.product-page-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 12px;
}

.trust-bullet-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.trust-bullet-item {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #065f46;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.product-page-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.product-page-old-price {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-stock-tag {
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.product-desc-content {
  font-size: 15px;
  color: #334155;
  line-height: 1.7;
  white-space: pre-line;
  margin-top: 16px;
  background: #f8fafc;
  padding: 16px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.product-accordion-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.accordion-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-header {
  width: 100%;
  text-align: left;
  background: #f8fafc;
  border: none;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.accordion-header:hover, .accordion-header.active {
  background: #ecfdf5;
  color: var(--primary);
}

.accordion-body {
  border-top: 1px solid var(--border-color);
  padding: 16px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #334155;
  background: #ffffff;
}

.acc-title {
  flex-grow: 1;
}

.acc-icon {
  font-size: 20px;
  font-weight: 400;
  color: var(--primary);
}

/* Integrated One-Page Checkout Card */
.checkout-box {
  background: white;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 90px;
}

.checkout-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.checkout-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-hover);
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkout-header p {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Order Summary Box */
.order-summary-box {
  background: var(--primary-light);
  border: 1px dashed var(--primary-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 20px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-row.total-row {
  border-top: 1px solid var(--primary-border);
  padding-top: 10px;
  margin-top: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary-hover);
}

/* Quantity Stepper */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: white;
}

.qty-btn {
  background: #f8fafc;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.qty-btn:hover {
  background: #e2e8f0;
}

.qty-input {
  width: 48px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Form Styles */
.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-label .required {
  color: var(--accent-red);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-dark);
  background: white;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.15);
}

.admin-loading-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  background: rgba(15, 23, 42, 0.34);
  opacity: 0;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.admin-loading-overlay.is-visible {
  visibility: visible;
  opacity: 1;
}

.admin-loading-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.admin-loading-spinner,
.button-loading-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: admin-loading-spin 0.7s linear infinite;
}

.button-loading-spinner {
  width: 12px;
  height: 12px;
  margin-right: 5px;
  vertical-align: -2px;
}

@keyframes admin-loading-spin {
  to { transform: rotate(360deg); }
}

.payment-method-badge {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.btn-place-order {
  width: 100%;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: white;
  border: none;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-place-order:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.45);
}

.btn-place-order:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.order-guarantee-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.guarantee-item {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.guarantee-item svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* Mobile Sticky Order Bar */
.mobile-sticky-order-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  padding: 10px 16px;
  z-index: 50;
  border-top: 1px solid var(--border-color);
}

.mobile-sticky-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-sticky-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.mobile-sticky-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.btn-mobile-order {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Success Page */
.success-wrapper {
  max-width: 640px;
  margin: 40px auto;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.success-icon-badge {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.success-order-id {
  display: inline-block;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--text-dark);
  font-size: 16px;
  margin: 16px 0;
}

.redirect-countdown-badge {
  background: #fef3c7;
  color: #92400e;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  margin: 20px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Admin Styling */
.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 260px;
  background: #0f172a;
  color: white;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.admin-sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-nav {
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.admin-nav-item:hover, .admin-nav-item.active {
  background: #1e293b;
  color: white;
  border-left: 4px solid var(--primary);
}

.admin-main {
  flex-grow: 1;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: white;
  height: 64px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}

.admin-content {
  padding: 24px;
  flex-grow: 1;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.stat-card-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-card-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Admin Table */
.admin-table-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

/* Responsive Table */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.data-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-dark);
}

.data-table tr:hover td {
  background: #f8fafc;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-pending { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #dbeafe; color: #1e40af; }
.status-sent_to_courier { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* Action Buttons strictly limited to [ Call ] [ WhatsApp ] [ View ] [ Confirm ] */
.action-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 300px;
}

.btn-action {
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-action-call { background: #f1f5f9; color: #334155; border-color: #cbd5e1; }
.btn-action-call:hover { background: #e2e8f0; }

.btn-action-wa { background: #dcfce7; color: #166534; border-color: #86efac; }
.btn-action-wa:hover { background: #bbf7d0; }

.btn-action-view { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.btn-action-view:hover { background: #bae6fd; }

.btn-action-confirm { background: #059669; color: white; }
.btn-action-confirm:hover { background: #047857; }

.btn-action-delete {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fca5a5;
  font-weight: 700;
}

.btn-action-delete:hover {
  background: #fecaca;
  color: #991b1b;
}

.admin-product-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
  .admin-product-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .admin-layout {
    flex-direction: column;
  }
  .admin-sidebar {
    width: 100%;
    min-height: auto;
  }
  .admin-sidebar-header {
    padding: 12px 16px;
  }
  .admin-nav {
    flex-direction: row;
    overflow-x: auto;
    padding: 8px 12px;
    gap: 6px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .admin-nav-item {
    padding: 8px 12px;
    font-size: 13px;
    border-left: none;
    border-radius: var(--radius-sm);
  }
  .admin-nav-item.active {
    border-left: none;
    background: #1e293b;
    color: #4ade80;
  }
  .admin-sidebar > div:last-child {
    display: none; /* Hide redundant user footer on mobile topbar */
  }
}

/* ==========================================================================
   Brand Logo & Header Actions
   ========================================================================== */
.brand-custom-logo {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .brand-custom-logo {
    max-height: 38px;
  }
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.header-btn.icon-only {
  padding: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-facebook {
  background: #1877F2;
  color: white;
}

.btn-facebook:hover {
  background: #166fe5;
}

.btn-products {
  background: #0f172a;
  color: white;
}

.btn-products:hover {
  background: #1e293b;
}

@media (max-width: 640px) {
  .btn-products {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* ==========================================================================
   Multiple Product Images Gallery & Carousel
   ========================================================================== */
.product-gallery-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  position: relative;
}

.product-thumbnails-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  flex: 1;
  min-width: 0;
}

.product-thumbnails-scroll::-webkit-scrollbar {
  height: 5px;
}

.product-thumbnails-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.thumb-item {
  flex: 0 0 74px;
  width: 74px;
  height: 74px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8fafc;
}

.thumb-item:hover,
.thumb-item.active {
  border-color: #059669;
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.35);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-nav-btn {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0,0,0,0.08);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gallery-nav-btn:hover {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.gallery-scroll-hint {
  font-size: 11.5px;
  color: #64748b;
  text-align: center;
  margin-top: 6px;
  font-weight: 500;
}

/* ==========================================================================
   Product Details Section (#product_details)
   ========================================================================== */
.product-details-container {
  margin-top: 24px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 14px;
}

.detail-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.detail-block h4 {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.detail-block p, .detail-block ul {
  font-size: 13.5px;
  color: #475569;
  line-height: 1.65;
}

.detail-block ul {
  padding-left: 20px;
}

.detail-block li {
  margin-bottom: 5px;
}

/* ==========================================================================
   Modern 3-Column Organic Footer
   ========================================================================== */
.site-footer {
  background: linear-gradient(180deg, #052a1d 0%, #031710 100%);
  color: #94a3b8;
  padding: 50px 0 24px;
  margin-top: 60px;
  border-top: 3px solid #10b981;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-logo-badge {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.footer-custom-logo {
  max-height: 52px;
  width: auto;
  object-fit: contain;
  border-radius: 6px;
  background: white;
  padding: 4px 8px;
  transition: all 0.3s ease;
}

@media (max-width: 640px) {
  .footer-custom-logo {
    max-height: 42px;
  }
}

.footer-brand-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.footer-brand-tagline {
  font-size: 12px;
  color: #a7f3d0;
  display: block;
}

.footer-pledge-text {
  margin-bottom: 16px;
}

.footer-pledge-title {
  font-size: 16px;
  font-weight: 700;
  color: #f59e0b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-pledge-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: #cbd5e1;
}

.footer-trust-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ft-tag-row {
  background: rgba(16, 185, 129, 0.15);
  color: #a7f3d0;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.footer-heading {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
}

.fh-icon {
  font-size: 16px;
}

.footer-sub-info {
  font-size: 12.5px;
  color: #94a3b8;
  margin-bottom: 14px;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.fcl-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #cbd5e1;
  flex-shrink: 0;
}

.fcl-wa {
  background: #25D366;
  color: white;
}

.fcl-fb {
  background: #1877F2;
  color: white;
}

.fcl-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fcl-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.phone-highlight {
  color: #38bdf8;
}

.phone-highlight:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.wa-highlight {
  color: #4ade80;
}

.wa-highlight:hover {
  color: #86efac;
  text-decoration: underline;
}

.fb-highlight {
  color: #60a5fa;
}

.fb-highlight:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.fcl-text {
  font-size: 13px;
  color: #cbd5e1;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fn-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.2s ease;
}

.fn-link:hover {
  background: rgba(16, 185, 129, 0.15);
  transform: translateX(4px);
}

.fn-link:not(.phone-highlight):not(.wa-highlight):not(.fb-highlight):hover {
  color: #34d399;
}

.fn-bullet {
  font-size: 14px;
}

.footer-cod-box {
  background: rgba(245, 158, 11, 0.1);
  border: 1px dashed rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px;
}

.fcb-title {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 4px;
}

.fcb-desc {
  font-size: 11.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.fbb-center {
  width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .container {
    padding: 0 12px;
  }
  .header-inner {
    height: 60px;
  }
  .brand-logo-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
  .brand-name {
    font-size: 19px;
  }
  .brand-sub {
    font-size: 10px;
  }
  .header-contacts {
    display: flex;
    gap: 8px;
  }
  .header-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  .btn-phone span {
    display: none;
  }
  .trust-bar {
    padding: 10px 0;
  }
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .trust-item {
    gap: 6px;
  }
  .trust-icon {
    font-size: 18px;
  }
  .trust-text h4 {
    font-size: 12px;
  }
  .trust-text p {
    font-size: 10px;
  }
  .hero-banner {
    padding: 24px 0;
  }
  .hero-banner-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }
  .hero-title {
    font-size: 22px;
    line-height: 1.25;
  }
  .hero-desc {
    font-size: 13px;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .checkout-box {
    padding: 16px 14px;
    border-radius: var(--radius-md);
  }
  .checkout-header h3 {
    font-size: 16px;
  }
  .checkout-header p {
    font-size: 12px;
  }
  .form-control {
    font-size: 16px; /* Prevents auto-zoom on iOS */
    padding: 10px 12px;
  }
  .btn-place-order {
    font-size: 17px;
    padding: 14px 16px;
  }
  .mobile-sticky-order-bar {
    display: block;
  }
  body {
    padding-bottom: 74px; /* Space for mobile sticky CTA bar */
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .admin-content {
    padding: 14px 10px;
  }
  .action-btn-group {
    flex-wrap: wrap;
    gap: 4px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .product-action-bar {
    flex-wrap: nowrap;
  }
  .product-price-badge {
    padding: 4px 10px;
  }
  .ppb-current {
    font-size: 14.5px;
  }
  .btn-product-details {
    padding: 5px 8px;
    font-size: 11.5px;
  }
  .product-page-title {
    font-size: 20px;
  }
  .product-gallery-card {
    padding: 12px;
  }
  .main-product-image {
    aspect-ratio: 1 / 1;
    height: auto;
  }
  .order-summary-box .summary-row span {
    font-size: 13px;
  }
  .checkout-header h3 {
    font-size: 15px;
  }
  .landing-benefits-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .trust-bullet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .trust-bullet-item {
    font-size: 12px;
    padding: 10px;
  }
}

/* Admin Gallery Upload CSS */
.gallery-upload-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
}
.gallery-upload-thumb {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
}
.gallery-upload-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-upload-thumb span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 10px;
  text-align: center;
  padding: 2px 0;
}
.gallery-upload-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  padding: 0;
}
.product-upload-picker {
  display: flex;
  gap: 10px;
  align-items: center;
}
.product-upload-picker input[type="file"] {
  display: none;
}
.btn-gallery-add {
  background: #f1f5f9;
  border: 1px dashed #94a3b8;
  color: #475569;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
