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

:root {
  --ss-forest: #0f3e23;
  --ss-primary: #15803d;
  --ss-primary-dark: #14532d;
  --ss-primary-light: #22c55e;
  --ss-accent-gold: #f59e0b;
  --ss-accent-amber: #d97706;
  --ss-soft-bg: #f7faf5;
  --ss-surface: #ffffff;
  --ss-surface-alt: #f1f6ef;
  --ss-border: #e1ede1;
  --ss-border-dark: #cbdccb;
  --ss-text-main: #14281c;
  --ss-text-muted: #5e7266;
  --ss-text-light: #8fa096;
  --ss-badge-deal: #e11d48;
  --ss-badge-season: #0284c7;
  --ss-badge-organic: #16a34a;
  --ss-shadow-sm: 0 2px 8px rgba(15, 62, 35, 0.05);
  --ss-shadow-md: 0 8px 24px rgba(15, 62, 35, 0.08);
  --ss-shadow-lg: 0 16px 36px rgba(15, 62, 35, 0.12);
  --ss-radius-sm: 8px;
  --ss-radius-md: 14px;
  --ss-radius-lg: 20px;
  --ss-radius-full: 9999px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ss-text-main);
  background-color: var(--ss-soft-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--ss-forest);
  letter-spacing: -0.02em;
}

a {
  color: var(--ss-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--ss-accent-amber);
}

/* Header & Navigation */
.site-top-bar {
  background: var(--ss-forest);
  color: #e2f4e8;
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-top-bar a {
  color: #d1fae5;
  margin-left: 1rem;
}
.site-top-bar a:hover {
  color: var(--ss-accent-gold);
}

.site-header {
  background: linear-gradient(135deg, var(--ss-forest) 0%, var(--ss-primary-dark) 100%);
  box-shadow: 0 4px 20px rgba(15, 62, 35, 0.25);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.navbar-brand span {
  color: var(--ss-accent-gold);
}

.deliver-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--ss-radius-md);
  padding: 0.4rem 0.85rem;
  color: #ffffff;
  font-size: 0.8rem;
  line-height: 1.2;
}
.deliver-badge small {
  color: #a7f3d0;
  font-size: 0.72rem;
}

.header-search {
  flex: 1;
  max-width: 38rem;
}
.header-search .input-group {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-radius: var(--ss-radius-full);
  overflow: hidden;
  background: #ffffff;
}
.header-search .form-select {
  max-width: 9.5rem;
  background-color: #f1f8f3;
  border: 0;
  border-right: 1px solid var(--ss-border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ss-forest);
  padding-left: 0.85rem;
}
.header-search .form-control {
  border: 0;
  padding: 0.65rem 1rem;
  font-size: 0.92rem;
}
.header-search .form-control:focus {
  box-shadow: none;
}
.header-search .btn-search {
  background: var(--ss-accent-gold);
  color: var(--ss-forest);
  border: 0;
  font-weight: 700;
  padding: 0 1.25rem;
}
.header-search .btn-search:hover {
  background: var(--ss-accent-amber);
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.header-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffffff;
  padding: 0.5rem 0.85rem;
  border-radius: var(--ss-radius-md);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}
.header-nav-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
}
.cart-badge-pill {
  background: var(--ss-accent-gold);
  color: var(--ss-forest);
  font-weight: 800;
  border-radius: var(--ss-radius-full);
  padding: 0.15rem 0.55rem;
  font-size: 0.82rem;
  margin-left: 0.25rem;
}

/* Secondary Subnav */
.sub-navbar {
  background: #0b321c;
  overflow-x: auto;
  white-space: nowrap;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sub-nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.sub-nav-link {
  color: #c7eed6;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.85rem;
  border-radius: var(--ss-radius-full);
  text-decoration: none;
  transition: all 0.15s ease;
}
.sub-nav-link:hover, .sub-nav-link.active {
  color: #ffffff;
  background: rgba(255,255,255,0.12);
}
.sub-nav-link.highlight {
  color: var(--ss-accent-gold);
  font-weight: 700;
}

/* Hero Section */
.hero-banner-section {
  background: radial-gradient(circle at 80% 20%, #dcfce7 0%, transparent 40%),
              linear-gradient(135deg, #eef9ee 0%, #fffbe8 55%, #f1f8eb 100%);
  border-bottom: 1px solid var(--ss-border);
  padding: 3.5rem 0 3rem;
  position: relative;
  overflow: hidden;
}
.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffffff;
  border: 1px solid var(--ss-border-dark);
  color: var(--ss-primary-dark);
  padding: 0.35rem 0.85rem;
  border-radius: var(--ss-radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--ss-shadow-sm);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ss-forest);
  margin-bottom: 1.2rem;
}
.hero-lead {
  font-size: 1.15rem;
  color: var(--ss-text-muted);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-features-card {
  background: var(--ss-forest);
  color: #ffffff;
  border-radius: var(--ss-radius-lg);
  padding: 2rem;
  box-shadow: var(--ss-shadow-lg);
  display: grid;
  gap: 1.25rem;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature-icon-box {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--ss-radius-md);
  background: rgba(255,255,255,0.12);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--ss-accent-gold);
  flex-shrink: 0;
}
.feature-text strong {
  display: block;
  font-size: 1rem;
  color: #ffffff;
}
.feature-text span {
  font-size: 0.82rem;
  color: #a7f3d0;
}

/* Trust Badges Bar */
.trust-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--ss-border);
  padding: 1.25rem 0;
  box-shadow: var(--ss-shadow-sm);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.5rem;
}
.trust-icon {
  font-size: 1.75rem;
}
.trust-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ss-forest);
  line-height: 1.2;
}
.trust-item small {
  font-size: 0.78rem;
  color: var(--ss-text-muted);
}

/* Category Grid & Cards */
.category-card-tile {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--ss-shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  color: var(--ss-text-main);
  text-decoration: none;
}
.category-card-tile:hover {
  transform: translateY(-4px);
  border-color: var(--ss-primary-light);
  box-shadow: var(--ss-shadow-md);
  color: var(--ss-primary);
}
.category-icon-bubble {
  width: 4rem;
  height: 4rem;
  border-radius: var(--ss-radius-full);
  background: linear-gradient(135deg, #eef9ee, #fffbe8);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 0.85rem;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.04);
}
.category-card-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}
.category-card-tile p {
  font-size: 0.78rem;
  color: var(--ss-text-muted);
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Cards */
.product-grid-card {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--ss-shadow-sm);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}
.product-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--ss-shadow-md);
  border-color: var(--ss-primary-light);
}

.product-thumb-wrap {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f9fbf8 0%, #eaf5e7 100%);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.product-grid-card:hover .product-thumb-wrap img {
  transform: scale(1.04);
}
.product-thumb-placeholder {
  font-size: 3.5rem;
}

.product-badge-stack {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  z-index: 2;
}
.badge-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: var(--ss-radius-full);
}
.badge-season { background: #0284c7; color: #ffffff; }
.badge-discount { background: var(--ss-badge-deal); color: #ffffff; }
.badge-featured { background: var(--ss-accent-gold); color: var(--ss-forest); }

.product-body {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-category-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ss-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}
.product-title {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.35rem;
  min-height: 2.7rem;
}
.product-title a {
  color: var(--ss-text-main);
  text-decoration: none;
}
.product-title a:hover {
  color: var(--ss-primary);
}
.product-unit-info {
  font-size: 0.8rem;
  color: var(--ss-text-muted);
  margin-bottom: 0.75rem;
}

.product-price-row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--ss-border);
}
.current-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ss-forest);
  line-height: 1;
}
.mrp-price {
  font-size: 0.82rem;
  color: var(--ss-text-light);
  text-decoration: line-through;
  margin-left: 0.25rem;
}

.btn-add-cart {
  background: var(--ss-primary);
  color: #ffffff;
  border: 0;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: var(--ss-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}
.btn-add-cart:hover {
  background: var(--ss-primary-dark);
  color: #ffffff;
  transform: scale(1.02);
}
.btn-add-cart:disabled {
  background: #cbd5e1;
  color: #64748b;
  cursor: not-allowed;
  transform: none;
}

/* Detail Page */
.detail-main-img {
  aspect-ratio: 1;
  background: linear-gradient(135deg, #f9fbf8 0%, #eaf5e7 100%);
  border-radius: var(--ss-radius-lg);
  border: 1px solid var(--ss-border);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 6rem;
}
.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-specs-box {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 1.5rem;
  box-shadow: var(--ss-shadow-sm);
}

/* Cart & Checkout */
.cart-items-card, .summary-sticky-card, .auth-modal-card {
  background: #ffffff;
  border: 1px solid var(--ss-border);
  border-radius: var(--ss-radius-lg);
  box-shadow: var(--ss-shadow-sm);
  padding: 1.75rem;
}
.summary-sticky-card {
  position: sticky;
  top: 6.5rem;
}
.cart-line-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem auto;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--ss-border);
}
.cart-line-row:first-child { padding-top: 0; }
.cart-line-row:last-child { border-bottom: 0; padding-bottom: 0; }

.address-select-card {
  border: 2px solid var(--ss-border);
  border-radius: var(--ss-radius-md);
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.address-select-card:hover {
  border-color: var(--ss-primary-light);
}
.address-select-card:has(input:checked) {
  border-color: var(--ss-primary);
  background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

/* Order Status Timeline */
.timeline-stepper {
  list-style: none;
  padding-left: 0;
  position: relative;
}
.timeline-stepper li {
  position: relative;
  padding-left: 2rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid var(--ss-border-dark);
}
.timeline-stepper li:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}
.timeline-stepper li::before {
  content: '';
  position: absolute;
  left: -0.45rem;
  top: 0.15rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--ss-primary);
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px var(--ss-primary);
}

/* Status Badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--ss-radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: capitalize;
}
.status-confirmed, .status-paid { background: #dcfce7; color: #14532d; }
.status-processing, .status-packed { background: #fef9c3; color: #854d0e; }
.status-shipped { background: #e0f2fe; color: #075985; }
.status-delivered { background: #bbf7d0; color: #166534; }
.status-pending_payment, .status-pending { background: #ffedd5; color: #9a3412; }
.status-cancelled, .status-failed { background: #fee2e2; color: #991b1b; }
.status-refunded { background: #ede9fe; color: #5b21b6; }

/* Footer */
.site-footer {
  background: #0b2e1a;
  color: #c7eed6;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  border-top: 4px solid var(--ss-accent-gold);
}
.site-footer h3, .site-footer h4, .site-footer h5 {
  color: #ffffff;
  margin-bottom: 1.25rem;
}
.site-footer a {
  color: #d1fae5;
  display: block;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
}
.site-footer a:hover {
  color: var(--ss-accent-gold);
  transform: translateX(3px);
}
.site-footer hr {
  border-color: rgba(255,255,255,0.12);
  margin: 2.5rem 0 1.5rem;
}

/* Floating Toast / Flash Alerts */
.toast-container-custom {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1090;
  max-width: 24rem;
}

@media (max-width: 991px) {
  .header-search { order: 3; max-width: 100%; margin-top: 0.75rem; }
  .cart-line-row { grid-template-columns: 1fr auto; }
}

@media (max-width: 576px) {
  .hero-title { font-size: 2.2rem; }
  .cart-line-row { grid-template-columns: 1fr; }
}
