/* ============================================================
   O.J Nursery and Pots — custom styles (Bootstrap 5 utility-first)
   Palette inspired by modern plant e-commerce sites: teal-green
   primary, warm yellow accent, clean white cards, badge labels.
   ============================================================ */

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

:root {
  --brand-teal: #108474;
  --brand-teal-dark: #0b5c51;
  --brand-yellow: #F6C347;
  --brand-ink: #1d1d1d;
  --brand-bg: #f9fafb;
  --brand-border: #ededed;
  --brand-sale: #f04f36;
}

* { font-family: 'Archivo', 'Segoe UI', system-ui, sans-serif; }

body {
  background-color: var(--brand-bg);
  color: var(--brand-ink);
}

a { text-decoration: none; }

/* ---- Top announcement bar ---- */
.announce-bar {
  background: var(--brand-teal-dark);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: .3px;
  text-align: center;
  padding: 7px 10px;
}

/* ---- Navbar ---- */
.navbar { padding-top: .7rem; padding-bottom: .7rem; }
.navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--brand-teal) !important;
}
.navbar-brand span { color: var(--brand-ink); }
.nav-link {
  font-weight: 600;
  font-size: .92rem;
  color: var(--brand-ink) !important;
}
.nav-link:hover { color: var(--brand-teal) !important; }
.nav-search {
  border-radius: 30px;
  overflow: hidden;
  border: 1.5px solid var(--brand-border);
}
.nav-search input {
  border: none;
  box-shadow: none;
}
.nav-search button {
  background: var(--brand-teal);
  color: #fff;
  border: none;
  padding: 0 18px;
}

/* ---- Hero ---- */
.hero {
  background: linear-gradient(120deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
  color: #fff;
  padding: 80px 0;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  background: rgba(246,195,71,0.18);
  border-radius: 50%;
}
.hero h1 { font-weight: 800; letter-spacing: -.5px; }
.hero .lead { color: rgba(255,255,255,.9); }

/* ---- Hero with photo/video background + slow zoom (Ken Burns) effect ---- */
.hero-media {
  position: relative;
  min-height: 480px;
  border-radius: 0 0 32px 32px;
  overflow: hidden;
  display: flex;
  align-items: center;
  color: #fff;
}
.hero-media .hero-media-bg,
.hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroZoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.13); }
}
.hero-media .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,63,55,.45) 0%, rgba(11,63,55,.72) 100%);
}
.hero-media .hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-media h1 { font-weight: 800; letter-spacing: -.5px; text-shadow: 0 2px 12px rgba(0,0,0,.25); }
.hero-media .lead { color: rgba(255,255,255,.92); text-shadow: 0 1px 8px rgba(0,0,0,.2); }

@media (prefers-reduced-motion: reduce) {
  .hero-media .hero-media-bg, .hero-media video { animation: none; }
}
@media (max-width: 576px) {
  .hero-media { min-height: 360px; border-radius: 0 0 20px 20px; }
}
.btn-cta {
  background-color: var(--brand-yellow);
  border: none;
  color: var(--brand-ink);
  font-weight: 700;
}
.btn-cta:hover { background-color: #e9b52f; color: var(--brand-ink); }

/* ---- Category strip (circular icons) ---- */
.category-pill {
  text-align: center;
  display: block;
}
.category-pill .icon-circle {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: #e8f5e9;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
  color: var(--brand-teal);
  margin: 0 auto 10px;
  transition: transform .15s ease, background .15s ease;
  border: 2px solid transparent;
}
.category-pill:hover .icon-circle {
  transform: translateY(-4px);
  background: #fff;
  border-color: var(--brand-yellow);
}
.category-pill .label {
  font-weight: 600;
  font-size: .85rem;
  color: var(--brand-ink);
}

/* ---- Section headings ---- */
.section-heading {
  font-weight: 800;
  letter-spacing: -.3px;
}
.section-heading::after {
  content: "";
  display: block;
  width: 54px;
  height: 4px;
  background: var(--brand-yellow);
  border-radius: 4px;
  margin: 10px auto 0;
}
.section-heading.text-start::after { margin: 10px 0 0; }

/* ---- Product cards ---- */
.product-card {
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: transform .15s ease, box-shadow .15s ease;
  height: 100%;
  background: #fff;
  position: relative;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(16,132,116,0.15);
}
.product-card .img-wrap {
  position: relative;
  background: #f4faf4;
}
.product-card img {
  height: 190px;
  object-fit: cover;
  width: 100%;
}
.badge-sale {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--brand-sale);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
}
.badge-cat {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(255,255,255,.92);
  color: var(--brand-teal-dark);
  font-size: .68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  z-index: 2;
}
.product-card .card-title {
  font-weight: 700;
  font-size: .95rem;
  min-height: 2.4em;
}
.product-card .price {
  font-weight: 800;
  color: var(--brand-ink);
  font-size: 1.05rem;
}
.product-card .price-strike {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: .82rem;
  font-weight: 500;
}
.rating-stars { color: var(--brand-yellow); font-size: .78rem; }

.btn-buy-now {
  background-color: var(--brand-sale);
  border: none;
  color: #fff;
  font-weight: 700;
}
.btn-buy-now:hover { background-color: #d43f28; color: #fff; }
.btn-add-cart {
  background-color: var(--brand-teal);
  border: none;
  color: #fff;
  font-weight: 600;
}
.btn-add-cart:hover { background-color: var(--brand-teal-dark); color: #fff; }

/* ---- Trust strip ---- */
.trust-strip {
  background: #fff;
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}
.trust-strip .item {
  font-weight: 600;
  font-size: .85rem;
  color: var(--brand-ink);
}
.trust-strip .item i { color: var(--brand-teal); font-size: 1.4rem; }

/* ---- Floating WhatsApp button ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: #25D366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  z-index: 1050;
  transition: transform .15s ease;
}
.whatsapp-float:hover {
  color: #fff;
  transform: scale(1.08);
}

/* ---- Service cards ---- */
.service-card {
  border-radius: 14px;
  border: 1px solid var(--brand-border);
  background: #fff;
  border-top: 4px solid var(--brand-teal);
}

/* ---- Footer ---- */
footer.site-footer {
  background: var(--brand-ink);
}
footer.site-footer h5,
footer.site-footer h6 { color: var(--brand-yellow); }
.newsletter-box input {
  border-radius: 30px 0 0 30px;
  border: none;
}
.newsletter-box button {
  border-radius: 0 30px 30px 0;
  background: var(--brand-yellow);
  color: var(--brand-ink);
  border: none;
  font-weight: 700;
}

/* ---- Section spacing ---- */
section { padding: 56px 0; }

/* ---- Fade/slide-in animation for cards & sections ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp .5s ease both;
}

/* ---- Toast notification (e.g. "Added to cart") ---- */
.toast-notify {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  background: var(--brand-teal);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: min(420px, calc(100vw - 40px));
  transform: translateX(120%);
  transition: transform .35s ease;
}
.toast-notify.show { transform: translateX(0); }
.toast-notify span { word-break: break-word; }
.toast-notify i { flex-shrink: 0; margin-top: 2px; }

/* ---- Skeleton loading shimmer (used while images load) ---- */
.skeleton {
  background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Button micro-interaction ---- */
.btn { transition: transform .12s ease, box-shadow .12s ease; }
.btn:active { transform: scale(.97); }

/* ---- Customer Account Dashboard ---- */
.account-header-bar {
  background: #fff;
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.account-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--brand-teal), var(--brand-teal-dark));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.3rem;
  flex-shrink: 0;
}
.account-sidebar .list-group-item {
  border: none;
  border-radius: 10px !important;
  margin-bottom: 4px;
  color: var(--brand-ink);
  font-weight: 500;
  font-size: .95rem;
}
.account-sidebar .list-group-item:hover { background: #f4faf4; }
.account-sidebar .list-group-item.active {
  background: var(--brand-teal);
  color: #fff;
}
.account-content-header {
  padding-bottom: 10px;
  border-bottom: 2px solid #f0f0f0;
}
.dash-stat-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  height: 100%;
}
.dash-stat-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 10px;
}
.dash-stat-value { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.dash-stat-label { font-size: .78rem; color: #888; margin-top: 2px; }

/* Mobile: horizontal scrolling pill nav instead of a sidebar */
.account-mobile-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.account-mobile-nav::-webkit-scrollbar { display: none; }
.account-mobile-pill {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand-ink);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 1px 6px rgba(0,0,0,.06);
}
.account-mobile-pill.active {
  background: var(--brand-teal);
  color: #fff;
}
.account-mobile-pill i { margin-right: 4px; }

@media (max-width: 576px) {
  .account-header-bar { padding: 14px 16px; border-radius: 12px; }
  .account-avatar { width: 44px; height: 44px; font-size: 1.1rem; }
}

/* ---- Flipkart-style order tracker (account.php orders tab) ---- */
.order-tracker {
  display: flex;
  align-items: flex-start;
}
.order-tracker-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 70px;
}
.order-tracker-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.order-tracker-step.done .order-tracker-dot { background: var(--brand-teal); }
.order-tracker-label {
  font-size: .68rem;
  color: #888;
  text-align: center;
  margin-top: 4px;
  line-height: 1.2;
}
.order-tracker-step.done .order-tracker-label { color: var(--brand-ink); font-weight: 600; }
.order-tracker-line {
  flex-grow: 1;
  height: 3px;
  background: #e0e0e0;
  margin-top: 12px;
}
.order-tracker-line.done { background: var(--brand-teal); }

/* ---- Cart page (cart.php) ---- */
.cart-item-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cart-item-img {
  width: 80px; height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  background: #f4faf4;
}
.cart-item-info { flex-grow: 1; min-width: 0; }
.cart-item-name {
  font-weight: 600;
  color: var(--brand-ink);
  text-decoration: none;
  display: block;
}
.cart-item-name:hover { color: var(--brand-teal); }
.cart-item-subtotal {
  font-weight: 700;
  flex-shrink: 0;
  font-size: 1.05rem;
}
.qty-btn {
  width: 30px; height: 30px;
  border: 1px solid var(--brand-border);
  background: #fff;
  border-radius: 6px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--brand-ink);
  cursor: pointer;
}
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-btn:hover:not(:disabled) { background: #f4faf4; border-color: var(--brand-teal); }
.qty-display { min-width: 32px; text-align: center; font-weight: 600; }
.cart-summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  position: sticky;
  top: 90px;
}
@media (max-width: 576px) {
  .cart-item-card { gap: 10px; padding: 10px; }
  .cart-item-img { width: 60px; height: 60px; }
  .cart-item-subtotal { font-size: .9rem; }
}

/* ---- Landscaping page ---- */
.landscaping-hero {
  background: linear-gradient(120deg, #f4faf4, #e8f5e9);
  border-radius: 16px;
  padding: 24px 28px;
}
.landscaping-service-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  height: 100%;
  transition: transform .15s ease;
}
.landscaping-service-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.landscaping-service-card i { font-size: 1.8rem; color: var(--brand-teal); margin-bottom: 8px; display: block; }
.landscaping-service-name { font-size: .85rem; font-weight: 600; color: var(--brand-ink); }
@media (max-width: 576px) {
  .landscaping-hero { padding: 18px 20px; border-radius: 12px; }
}

/* ---- Catalog page (Flipkart-style layout) ---- */
.catalog-searchbar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  padding: 4px 4px 4px 16px;
  max-width: 600px;
}
.catalog-searchbar i { color: #999; margin-right: 10px; }
.catalog-searchbar input {
  border: none;
  outline: none;
  flex-grow: 1;
  padding: 10px 0;
  font-size: .95rem;
}
.catalog-searchbar button {
  background: var(--brand-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: .9rem;
}
.catalog-filter-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  position: sticky;
  top: 90px;
}
.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #999;
  letter-spacing: .03em;
  margin-bottom: 10px;
}
.filter-list-link {
  display: block;
  padding: 6px 0;
  font-size: .88rem;
  color: var(--brand-ink);
  text-decoration: none;
}
.filter-list-link:hover { color: var(--brand-teal); }
.filter-list-link.active { color: var(--brand-teal); font-weight: 700; }

.catalog-badge-featured, .catalog-badge-oos {
  position: absolute;
  top: 8px; left: 8px;
  font-size: .65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
  z-index: 2;
}
.catalog-badge-featured { background: var(--brand-yellow); color: var(--brand-ink); }
.catalog-badge-oos { background: rgba(0,0,0,.6); color: #fff; }

/* ---- Admin panel shared styles ---- */
.admin-sidebar {
  background: var(--brand-ink);
  min-height: 100vh;
}
.admin-sidebar .nav-link {
  color: rgba(255,255,255,.75) !important;
  border-radius: 8px;
  font-weight: 500;
  padding: .6rem .9rem;
}
.admin-sidebar .nav-link.active,
.admin-sidebar .nav-link:hover {
  background: var(--brand-teal);
  color: #fff !important;
}
.sidebar-group-label {
  color: rgba(255,255,255,.4);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin: 16px 4px 6px;
}
.stat-card {
  border-radius: 14px;
  border: none;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  padding: 22px;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 800; }
.stat-card .stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

/* ---- Admin: image upload dropzone ---- */
.image-dropzone {
  position: relative;
  border: 2px dashed #c7d9d6;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: #f4faf4;
  width: 100%;
  max-width: 260px;
  height: 200px;
  margin: 0 auto;
  transition: border-color .15s ease, background .15s ease;
}
.image-dropzone:hover,
.image-dropzone.dragover {
  border-color: var(--brand-teal);
  background: #e8f5e9;
}
.image-dropzone img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.image-dropzone .dropzone-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(16,132,116,0.0);
  color: #fff;
  opacity: 0;
  transition: opacity .15s ease, background .15s ease;
  text-align: center;
  padding: 10px;
}
.image-dropzone:hover .dropzone-overlay,
.image-dropzone.dragover .dropzone-overlay {
  opacity: 1;
  background: rgba(16,132,116,0.72);
}
.image-dropzone .dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}

/* ---- Admin: simple color chips for category quick-add ---- */
.color-chip {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #ddd;
  cursor: pointer;
}
.color-chip.selected { box-shadow: 0 0 0 2px var(--brand-teal); }

/* ---- Mobile sticky buy bar (product pages) ---- */
.mobile-buy-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--brand-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 10px 14px;
  z-index: 1040;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mobile-buy-bar .price { font-size: 1.05rem; }

@media (max-width: 767.98px) {
  .mobile-buy-bar { display: flex; }
  body.has-mobile-buybar { padding-bottom: 68px; } /* room for the sticky bar, only where it's shown */
}

@media (max-width: 576px) {
  .hero { padding: 44px 0; border-radius: 0 0 20px 20px; }
  .hero h1 { font-size: 1.7rem; }
  .hero .lead { font-size: .95rem; }
  .whatsapp-float { width: 50px; height: 50px; font-size: 26px; bottom: 84px; right: 16px; }
  .category-pill .icon-circle { width: 60px; height: 60px; font-size: 22px; }
  .category-pill .label { font-size: .72rem; }
  section { padding: 36px 0; }
  .section-heading { font-size: 1.4rem; }
  .product-card img { height: 130px; }
  .navbar-brand { font-size: 1.15rem; }
  .btn { font-size: .92rem; }
}

/* Prevent iOS input zoom (keeps forms feeling native, not "jumpy") */
@media (max-width: 767.98px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ============================================================
   Admin panel — mobile polish
   The sidebar already hides below md (mobile top bar takes over,
   see includes/admin_layout_header.php). These rules make the
   content itself comfortable to use on a phone: bigger touch
   targets, tighter padding, stat cards that stack cleanly, and
   tables that scroll horizontally instead of squashing.
   ============================================================ */
@media (max-width: 767.98px) {
  /* Main content area: less side padding so more fits on screen */
  .flex-grow-1.p-4 { padding: 1rem !important; }

  /* Stat cards: stack 2-up, keep numbers readable */
  .stat-card { padding: 14px !important; }
  .stat-card .stat-value { font-size: 1.3rem; }
  .stat-icon { width: 40px; height: 40px; font-size: 18px; }

  /* Buttons: comfortable tap targets */
  .btn-sm { padding: .45rem .75rem; font-size: .85rem; }
  .btn { min-height: 38px; }

  /* Cards used for mobile list views (orders, products, etc.) */
  .card.border-0.shadow-sm.p-3 { padding: 12px !important; }

  /* Tables that must stay as tables (e.g. inside a wide-screen-only block) still scroll safely */
  .table-responsive { -webkit-overflow-scrolling: touch; }

  /* Admin page headers: stack title + action buttons instead of squashing them */
  .d-flex.justify-content-between.align-items-center.mb-4 {
    flex-direction: column;
    align-items: stretch !important;
    gap: .5rem;
  }
  .d-flex.justify-content-between.align-items-center.mb-4 .btn,
  .d-flex.justify-content-between.align-items-center.mb-4 .btn-group {
    width: 100%;
  }

  /* Form cards: full-width, no wasted margin */
  .card.border-0.shadow-sm.p-4 { padding: 1rem !important; }

  /* Sidebar group labels a touch more compact on the mobile off-canvas menu */
  .sidebar-group-label { margin: 10px 4px 4px; }
}
