/* ============================================================
   Tareen Farms — Custom Stylesheet
   Colors: Forest Green #1B4332 | Mango Gold #FFB703 | White
   Fonts: Playfair Display (headings) | DM Sans (body)
   ============================================================ */

:root {
  --green:      #1B4332;
  --green-mid:  #2D6A4F;
  --green-light:#40916C;
  --gold:       #FFB703;
  --gold-dark:  #e5a500;
  --cream:      #FFFBF0;
  --gray-soft:  #F8F6F0;
  --text-dark:  #1a1a1a;
  --text-muted: #6B7280;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(27,67,50,.10);
  --shadow-lg:  0 12px 40px rgba(27,67,50,.16);
}

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-dark);
  background: #fff;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

.text-gold       { color: var(--gold) !important; }
.text-green      { color: var(--green) !important; }
.bg-green        { background: var(--green) !important; }
.bg-gold         { background: var(--gold) !important; }
.bg-cream        { background: var(--cream) !important; }
.fw-600          { font-weight: 600; }

/* ── Topbar ───────────────────────────────────────────────── */
.tf-topbar {
  background: var(--green);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
}

/* ── Navbar ───────────────────────────────────────────────── */
.tf-navbar {
  background: #fff;
  border-bottom: 2px solid var(--cream);
}

.tf-logo-icon {
  font-size: 1.6rem;
  color: var(--gold);
}

.tf-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: -.5px;
  line-height: 1;
}

.tf-navbar .nav-link {
  color: var(--green);
  font-weight: 500;
  font-size: .92rem;
  padding: .45rem .75rem;
  border-radius: 6px;
  transition: background .2s, color .2s;
}
.tf-navbar .nav-link:hover { background: var(--cream); color: var(--green-light); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-gold {
  background: var(--gold);
  color: var(--green);
  font-weight: 700;
  border: none;
  border-radius: 8px;
  transition: background .2s, transform .15s;
  position: relative;
}
.btn-gold:hover { background: var(--gold-dark); color: var(--green); transform: translateY(-1px); }

.btn-green {
  background: var(--green);
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: background .2s, transform .15s;
}
.btn-green:hover { background: var(--green-mid); color: #fff; transform: translateY(-1px); }

.btn-outline-green {
  border: 2px solid var(--green);
  color: var(--green);
  font-weight: 600;
  border-radius: 8px;
  transition: all .2s;
}
.btn-outline-green:hover { background: var(--green); color: #fff; }

.cart-badge {
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  font-size: .65rem;
  padding: 1px 5px;
  margin-left: 4px;
  vertical-align: middle;
}

/* ── Hero Section ─────────────────────────────────────────── */
.tf-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-mid) 60%, #52B788 100%);
  min-height: 88vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.tf-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/hero-pattern.svg') center/cover no-repeat;
  opacity: .07;
}

.tf-hero-badge {
  display: inline-block;
  background: rgba(255,183,3,.18);
  color: var(--gold);
  border: 1px solid rgba(255,183,3,.4);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: .35rem 1rem;
  margin-bottom: 1.25rem;
}

.tf-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.12;
  text-shadow: 0 2px 20px rgba(0,0,0,.15);
}

.tf-hero p { color: rgba(255,255,255,.85); font-size: 1.1rem; line-height: 1.7; }

.tf-hero-img {
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.35));
  animation: float 4s ease-in-out infinite;
  max-width: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-18px); }
}

.tf-hero-stat { text-align: center; }
.tf-hero-stat .num { font-family:'Playfair Display',serif; font-size:1.9rem; color:var(--gold); font-weight:700; }
.tf-hero-stat .lbl { font-size:.78rem; color:rgba(255,255,255,.7); letter-spacing:.5px; text-transform:uppercase; }

/* ── Section Styles ───────────────────────────────────────── */
.tf-section-label {
  display: inline-block;
  color: var(--gold);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

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

/* ── Product Card ─────────────────────────────────────────── */
.tf-product-card {
  border: 1.5px solid #e8f0eb;
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  transition: transform .25s, box-shadow .25s;
  height: 100%;
}

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

.tf-product-card .img-wrap {
  background: var(--gray-soft);
  padding: 1.5rem;
  text-align: center;
  position: relative;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tf-product-card .img-wrap img {
  max-height: 180px;
  object-fit: contain;
  transition: transform .3s;
}

.tf-product-card:hover .img-wrap img { transform: scale(1.07); }

.tf-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 50px;
  letter-spacing: .5px;
}

.tf-badge.limited { background: #dc3545; color: #fff; }
.tf-badge.season  { background: var(--green-light); color: #fff; }

.tf-product-card .card-body { padding: 1.25rem; }
.tf-product-card .variety   { font-size: .78rem; color: var(--gold); font-weight:600; letter-spacing:.5px; text-transform:uppercase; }
.tf-product-card .card-title{ font-size: 1.15rem; margin:.2rem 0 .5rem; color:var(--green); }
.tf-product-card .price-tag { font-size: 1.35rem; font-weight: 700; color: var(--green); }

.tf-weight-select {
  border: 1.5px solid #d1e4d8;
  border-radius: 7px;
  font-size: .88rem;
  color: var(--green);
  background: #f6fbf8;
  padding: .35rem .6rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231B4332' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  padding-right: 2rem;
}

/* ── Story Section ────────────────────────────────────────── */
.tf-story { background: var(--cream); }

.tf-story-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(27,67,50,.08);
  color: var(--green);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Testimonials ─────────────────────────────────────────── */
.tf-testimonial {
  background: #fff;
  border: 1.5px solid #e4ede7;
  border-radius: var(--radius);
  padding: 1.75rem;
}

.tf-stars { color: var(--gold); font-size: .9rem; }

/* ── Track Order ──────────────────────────────────────────── */
.tf-track-hero {
  background: linear-gradient(135deg, var(--green), var(--green-mid));
  padding: 4rem 0;
}

.tf-timeline { position: relative; padding-left: 2rem; }
.tf-timeline::before {
  content: '';
  position: absolute;
  left: .6rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--green-light));
}

.tf-timeline-item { position: relative; margin-bottom: 1.5rem; }
.tf-timeline-dot {
  position: absolute;
  left: -2rem;
  top: .15rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ddd;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #ddd;
}
.tf-timeline-dot.done    { background: var(--green-light); box-shadow: 0 0 0 2px var(--green-light); }
.tf-timeline-dot.current { background: var(--gold); box-shadow: 0 0 0 3px rgba(255,183,3,.3); animation: pulse-dot 1.4s infinite; }

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,183,3,.3); }
  50%       { box-shadow: 0 0 0 6px rgba(255,183,3,.1); }
}

/* ── Admin Panel ──────────────────────────────────────────── */
.tf-admin-sidebar {
  background: var(--green);
  min-height: 100vh;
  width: 250px;
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0; left: 0;
  z-index: 1000;
}

.tf-admin-sidebar .nav-link {
  color: rgba(255,255,255,.75);
  border-radius: 8px;
  padding: .6rem 1rem;
  margin-bottom: .25rem;
  font-size: .9rem;
  transition: all .2s;
}
.tf-admin-sidebar .nav-link:hover,
.tf-admin-sidebar .nav-link.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.tf-admin-sidebar .nav-link i { margin-right: .5rem; }

.tf-admin-content { margin-left: 250px; padding: 1.5rem; }

.tf-stat-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  color: #fff;
}

/* ── Order Status Badges ──────────────────────────────────── */
.status-badge {
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.status-Pending         { background:#FFF3CD; color:#856404; }
.status-Confirmed       { background:#D1ECF1; color:#0C5460; }
.status-Packed          { background:#D4EDDA; color:#155724; }
.status-Dispatched      { background:#CCE5FF; color:#004085; }
.status-OutforDelivery  { background:#FFE5B4; color:#7a4800; }
.status-Delivered       { background:#C3E6CB; color:#155724; }
.status-Cancelled       { background:#F8D7DA; color:#721C24; }

/* ── Floating WhatsApp ────────────────────────────────────── */
.tf-wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  font-size: 1.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  z-index: 9999;
  transition: transform .2s;
  text-decoration: none;
}
.tf-wa-float:hover { transform: scale(1.12); color: #fff; }

/* ── Footer ───────────────────────────────────────────────── */
.tf-footer { background: var(--green); color: rgba(255,255,255,.8); }
.tf-footer .text-muted { color: rgba(255,255,255,.55) !important; }
.tf-footer h5, .tf-footer h6 { color: #fff; }

.tf-footer-link {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .2s;
}
.tf-footer-link:hover { color: var(--gold); }

.tf-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background .2s;
  text-decoration: none;
}
.tf-social:hover     { background: rgba(255,255,255,.22); color: #fff; }
.tf-social-wa:hover  { background: #25D366; }

/* ── Utilities ────────────────────────────────────────────── */
.alert-tf {
  border: none;
  border-left: 4px solid var(--gold);
  background: #fffbf0;
  border-radius: 8px;
  color: var(--green);
}

@media (max-width: 768px) {
  .tf-admin-sidebar { display: none; }
  .tf-admin-content { margin-left: 0; }
  .tf-hero { min-height: auto; padding: 3rem 0; }
}
