/* ============================================================
   Harvest Stall — extension styles
   Everything here reuses the design tokens from css/styles.css
   (--bg, --ink, --leaf, --gold, --tomato, --card, --radius, --shadow...)
   Nothing in the original stylesheet is overridden — only added to.
   ============================================================ */

/* ---------- dark mode tokens ---------- */
[data-theme="dark"]{
  --bg: #1E2419;
  --bg-soft: #262E1F;
  --card: #2A331F;
  --ink: #EDEADB;
  --ink-soft: #B9C2A6;
  --leaf: #7FA968;
  --leaf-dark: #A7C98E;
  --olive: #C7CF9E;
  --line: #3B4530;
}
[data-theme="dark"] body{
  background: radial-gradient(1200px 500px at 10% -10%, #29331F 0%, transparent 60%), var(--bg);
}
[data-theme="dark"] header{ background: rgba(30,36,25,0.9); }
[data-theme="dark"] input[type=text], [data-theme="dark"] input[type=number],
[data-theme="dark"] input[type=password], [data-theme="dark"] select.form-select{
  background:#222B1B; color:var(--ink);
}
[data-theme="dark"] .btn-google{ background:#2A331F; color:var(--ink); }

/* ---------- navbar additions: language + theme + wishlist ---------- */
.nav-utility{ display:flex; align-items:center; gap:8px; }
.lang-select, .icon-btn{
  border:1px solid var(--line);
  background:var(--card);
  color:var(--ink-soft);
  border-radius:999px;
  cursor:pointer;
  font-family:'Karla'; font-weight:600; font-size:0.85rem;
}
.lang-select{ padding:8px 12px; }
.icon-btn{
  width:38px; height:38px; display:grid; place-items:center; font-size:1.05rem; position:relative;
}
.icon-btn .wishlist-badge{
  position:absolute; top:-5px; right:-5px;
  background:var(--tomato); color:#fff; font-size:0.62rem; font-weight:700;
  width:17px; height:17px; border-radius:50%; display:grid; place-items:center;
  border:2px solid var(--bg);
}
.role-link{
  display:flex; align-items:center; gap:6px;
  background:var(--bg-soft); color:var(--leaf-dark);
  border:1px solid var(--line); border-radius:999px;
  padding:8px 14px; font-weight:700; font-size:0.84rem;
  white-space:nowrap; text-decoration:none;
}

/* ---------- hero: background image + animated gradient overlay ---------- */
.hero.hero-photo{
  border-radius:24px;
  overflow:hidden;
  padding:72px 32px 56px;
  position:relative;
  background-image:
    linear-gradient(120deg, rgba(43,58,34,0.82), rgba(184,133,15,0.55) 55%, rgba(193,67,42,0.4)),
    url('https://images.unsplash.com/photo-1500937386664-56d1dfef3854?q=80&w=1600&auto=format&fit=crop');
  background-size: 220% 220%, cover;
  background-position: 0% 50%, center;
  animation: heroGradient 14s ease infinite;
  box-shadow: var(--shadow);
}
@keyframes heroGradient{
  0%{ background-position: 0% 50%, center; }
  50%{ background-position: 100% 50%, center; }
  100%{ background-position: 0% 50%, center; }
}
.hero.hero-photo::before{ display:none; }
.hero.hero-photo .eyebrow{ color:#F3E8B8; }
.hero.hero-photo h1, .hero.hero-photo h1 em{ color:#fff; }
.hero.hero-photo p{ color:#F3F1E4; }
.hero.hero-photo .hero-stats b{ color:#fff; }
.hero.hero-photo .hero-stats span{ color:#F3E8B8; }
.hero-cta{ display:flex; gap:12px; margin-top:26px; flex-wrap:wrap; }
.hero-cta .btn-solid, .hero-cta .btn-ghost-light{
  border-radius:999px; padding:12px 22px; font-weight:700; font-size:0.92rem; cursor:pointer; border:none;
}
.hero-cta .btn-ghost-light{
  background:rgba(255,255,255,0.14); color:#fff; border:1.5px solid rgba(255,255,255,0.6);
}
.hero-cta .btn-ghost-light:hover{ background:rgba(255,255,255,0.24); }

/* ---------- wishlist heart on cards ---------- */
.wish-btn{
  position:absolute; top:16px; right:16px;
  width:34px; height:34px; border-radius:50%;
  background:rgba(253,252,245,0.9); border:1px solid var(--line);
  display:grid; place-items:center; cursor:pointer; font-size:1rem;
  transition:transform .15s ease;
}
.wish-btn:hover{ transform:scale(1.08); }
.wish-btn.active{ color:var(--tomato); }
.card-actions-row{ display:flex; gap:8px; }
.contact-seller-btn{
  border:1px solid var(--line); background:transparent; color:var(--ink-soft);
  border-radius:12px; padding:9px 12px; font-weight:700; font-size:0.78rem; cursor:pointer; white-space:nowrap;
}
.contact-seller-btn:hover{ border-color:var(--olive); }

/* ---------- pricing section ---------- */
.pricing-section{ padding: 12px 0 20px; }
.pricing-grid{
  display:grid; grid-template-columns:repeat(auto-fit, minmax(260px,1fr)); gap:20px;
}
.pricing-card{
  background:var(--card); border:1px solid #EFEADA; border-radius:var(--radius);
  padding:24px 20px; box-shadow:var(--shadow); position:relative;
}
.pricing-card .p-icon{ font-size:1.8rem; }
.pricing-card h3{ font-size:1.1rem; margin-top:8px; }
.pricing-card .p-origin{ font-size:0.78rem; color:var(--ink-soft); margin-top:2px; }
.pricing-rows{ margin-top:14px; display:flex; flex-direction:column; gap:8px; }
.pricing-row{
  display:flex; align-items:center; justify-content:space-between;
  font-size:0.86rem; padding:8px 10px; border-radius:10px; background:var(--bg-soft);
}
.pricing-row b{ font-family:'Fraunces'; color:var(--leaf-dark); }
.pricing-row .p-strike{ text-decoration:line-through; color:#B3ABA0; font-size:0.76rem; margin-right:6px; }
.pricing-badges{ display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.badge{
  font-size:0.65rem; font-weight:700; text-transform:uppercase; letter-spacing:.05em;
  padding:4px 9px; border-radius:999px;
}
.badge-organic{ background:#E4EDDD; color:var(--leaf); }
.badge-sale{ background:#FBE7E2; color:var(--tomato); }
.badge-instock{ background:#E4EDDD; color:var(--leaf); }
.badge-lowstock{ background:#FDF0D6; color:var(--gold-dark); }
.badge-outofstock{ background:#F3E3E0; color:var(--tomato); }
.badge-season{ background:#EFE6C8; color:var(--gold-dark); }

/* ---------- contact section ---------- */
.contact-section{ padding: 20px 0 10px; }
.contact-grid{
  display:grid; grid-template-columns: 1.1fr 0.9fr; gap:26px; margin-top:20px;
}
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-card{
  background:var(--card); border:1px solid #EFEADA; border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow);
}
.contact-info-list{ display:flex; flex-direction:column; gap:14px; margin-top:16px; }
.contact-info-item{ display:flex; align-items:flex-start; gap:12px; font-size:0.92rem; }
.contact-info-item .ci-icon{
  width:40px; height:40px; border-radius:50%; background:var(--bg-soft);
  display:grid; place-items:center; font-size:1.1rem; flex-shrink:0;
}
.contact-info-item b{ display:block; color:var(--leaf-dark); font-family:'Fraunces'; }
.whatsapp-btn{
  display:inline-flex; align-items:center; gap:8px; margin-top:16px;
  background:#25D366; color:#fff; border:none; border-radius:999px;
  padding:11px 18px; font-weight:700; font-size:0.86rem; cursor:pointer; text-decoration:none;
}
.social-row{ display:flex; gap:10px; margin-top:18px; }
.social-row a{
  width:36px; height:36px; border-radius:50%; background:var(--bg-soft);
  display:grid; place-items:center; text-decoration:none; color:var(--leaf-dark); font-size:0.95rem;
}
.map-embed{
  border-radius:14px; overflow:hidden; margin-top:18px; border:1px solid var(--line);
}
.map-embed iframe{ width:100%; height:220px; border:0; display:block; }
.contact-form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:4px; }
.contact-form-grid .full{ grid-column:1/-1; }
textarea.form-textarea{
  width:100%; border:1px solid var(--line); border-radius:10px;
  padding:10px 12px; font-family:'Karla'; font-size:0.92rem; color:var(--ink);
  background:#fff; resize:vertical; min-height:100px;
}
[data-theme="dark"] textarea.form-textarea{ background:#222B1B; }

.form-label{ display:block; font-size:0.78rem; font-weight:700; color:var(--ink-soft); margin-bottom:6px; }

/* ---------- footer ---------- */
.site-footer{
  border-top:1px solid var(--line); margin-top:50px; padding:40px 0 24px;
}
.footer-grid{
  display:grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap:26px;
}
@media (max-width:800px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
.footer-col h4{
  font-family:'Fraunces'; font-size:0.95rem; color:var(--leaf-dark); margin-bottom:12px;
}
.footer-col ul{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:9px; }
.footer-col a{ color:var(--ink-soft); text-decoration:none; font-size:0.86rem; }
.footer-col a:hover{ color:var(--leaf-dark); }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:'Fraunces'; font-weight:700; font-size:1.1rem; color:var(--leaf-dark); }
.footer-bottom{
  display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px;
  margin-top:34px; padding-top:20px; border-top:1px dashed var(--line);
  font-size:0.78rem; color:var(--ink-soft);
}

/* ---------- generic modal reuse (cart drawer, profile, orders, contact-seller) ---------- */
.side-drawer{
  position:fixed; top:0; right:0; height:100%; width:100%; max-width:420px;
  background:var(--card); box-shadow:-20px 0 50px -20px rgba(0,0,0,0.35);
  z-index:70; transform:translateX(100%); transition:transform .28s ease;
  display:flex; flex-direction:column;
}
.side-drawer.open{ transform:translateX(0); }
.drawer-head{ display:flex; align-items:center; justify-content:space-between; padding:22px 22px 14px; border-bottom:1px solid var(--line); }
.drawer-body{ padding:18px 22px; overflow-y:auto; flex:1; }
.drawer-foot{ padding:18px 22px; border-top:1px solid var(--line); }
.drawer-item{ display:flex; gap:12px; align-items:center; padding:12px 0; border-bottom:1px dashed var(--line); }
.drawer-item .di-icon{ width:44px; height:44px; border-radius:12px; background:var(--bg-soft); display:grid; place-items:center; font-size:1.3rem; flex-shrink:0; }
.drawer-item .di-info{ flex:1; }
.drawer-item .di-info small{ color:var(--ink-soft); }
.qty-stepper{ display:flex; align-items:center; gap:8px; }
.qty-stepper button{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line); background:var(--bg-soft); cursor:pointer; font-weight:700; }
.drawer-total-row{ display:flex; justify-content:space-between; font-family:'Fraunces'; font-weight:700; font-size:1.15rem; color:var(--leaf-dark); margin-bottom:14px; }

.tabs-row{ display:flex; gap:6px; background:var(--bg-soft); border-radius:999px; padding:4px; margin:16px 0; overflow-x:auto; }
.tabs-row button{ flex-shrink:0; border:none; background:transparent; border-radius:999px; padding:8px 14px; font-family:'Karla'; font-weight:700; font-size:0.8rem; color:var(--ink-soft); cursor:pointer; }
.tabs-row button.active{ background:var(--leaf-dark); color:#fff; }

.addr-card, .order-card{
  border:1px solid var(--line); border-radius:14px; padding:14px 16px; margin-bottom:12px; font-size:0.86rem;
}
.addr-card b, .order-card b{ font-family:'Fraunces'; color:var(--leaf-dark); }
.order-status{ font-size:0.68rem; font-weight:700; text-transform:uppercase; padding:3px 9px; border-radius:999px; letter-spacing:.04em; }
.status-pending{ background:#FDF0D6; color:var(--gold-dark); }
.status-accepted, .status-preparing, .status-out_for_delivery{ background:#E4EDDD; color:var(--leaf); }
.status-delivered{ background:#DCEBDD; color:var(--leaf-dark); }
.status-rejected, .status-cancelled{ background:#F3E3E0; color:var(--tomato); }
.mini-btn{ border:1px solid var(--line); background:transparent; border-radius:8px; padding:5px 10px; font-size:0.72rem; font-weight:700; cursor:pointer; color:var(--ink-soft); }

/* ---------- dashboards (farmer / admin) shared layout ---------- */
.dash-shell{ display:grid; grid-template-columns:230px 1fr; min-height:100vh; }
@media (max-width:860px){ .dash-shell{ grid-template-columns:1fr; } .dash-sidebar{ position:sticky; top:0; z-index:30; } }
.dash-sidebar{
  background:var(--card); border-right:1px solid var(--line);
  padding:22px 16px; display:flex; flex-direction:column; gap:4px;
}
.dash-sidebar .brand{ padding:6px 8px 20px; }
.dash-nav-link{
  display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:12px;
  color:var(--ink-soft); text-decoration:none; font-weight:600; font-size:0.9rem; cursor:pointer; border:none; background:transparent; text-align:left; width:100%;
}
.dash-nav-link:hover{ background:var(--bg-soft); }
.dash-nav-link.active{ background:var(--leaf); color:#fff; }
.dash-main{ padding:26px 30px 60px; }
.dash-topbar{ display:flex; align-items:center; justify-content:space-between; margin-bottom:22px; flex-wrap:wrap; gap:12px; }
.dash-topbar h1{ font-size:1.5rem; }
.stat-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:16px; margin-bottom:28px; }
.stat-card{
  background:var(--card); border:1px solid #EFEADA; border-radius:16px; padding:18px 20px; box-shadow:var(--shadow);
}
.stat-card .st-label{ font-size:0.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--olive); font-weight:700; }
.stat-card .st-value{ font-family:'Fraunces'; font-size:1.7rem; color:var(--leaf-dark); margin-top:6px; }
.panel-card{
  background:var(--card); border:1px solid #EFEADA; border-radius:18px; padding:22px; box-shadow:var(--shadow); margin-bottom:22px;
}
.panel-card h2{ font-size:1.15rem; margin-bottom:14px; }
.data-table{ width:100%; border-collapse:collapse; font-size:0.86rem; }
.data-table th{ text-align:left; padding:10px 8px; color:var(--ink-soft); font-size:0.72rem; text-transform:uppercase; letter-spacing:.05em; border-bottom:1px solid var(--line); }
.data-table td{ padding:11px 8px; border-bottom:1px solid var(--line); vertical-align:middle; }
.data-table tr:last-child td{ border-bottom:none; }
.table-wrap{ overflow-x:auto; }
.pill-toggle{ display:inline-flex; gap:6px; }
.simple-bar-chart{ display:flex; align-items:flex-end; gap:6px; height:140px; margin-top:8px; }
.simple-bar-chart .bar-col{ flex:1; background:linear-gradient(180deg, var(--gold), var(--leaf)); border-radius:6px 6px 0 0; min-height:4px; }
.approval-badge{ font-size:0.68rem; font-weight:700; text-transform:uppercase; padding:3px 9px; border-radius:999px; }
.approval-pending{ background:#FDF0D6; color:var(--gold-dark); }
.approval-approved{ background:#E4EDDD; color:var(--leaf); }
.approval-rejected{ background:#F3E3E0; color:var(--tomato); }
.form-stack{ display:flex; flex-direction:column; gap:14px; max-width:520px; }
.login-guard{ padding:80px 20px; text-align:center; color:var(--ink-soft); }
.login-guard .btn-solid{ margin-top:16px; }
/* ============================================================
   UI/UX ANIMATION POLISH
   Smooth, subtle animations — no JavaScript required
   ============================================================ */

/* ---------- general interactive transitions ---------- */

button,
a,
input,
select,
textarea {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

/* ---------- product cards ---------- */

.card {
  will-change: transform;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px -16px rgba(43, 58, 34, 0.5);
}

/* Product icon gently reacts to card hover */
.card:hover .icon-plate {
  transform: scale(1.06) rotate(-2deg);
}

.icon-plate {
  transition: transform 0.25s ease;
}

/* ---------- buttons ---------- */

.add-btn:hover,
.buy-btn:hover,
.cart-btn:hover,
.btn-solid:hover {
  transform: translateY(-2px);
}

.add-btn:active,
.buy-btn:active,
.cart-btn:active,
.btn-solid:active {
  transform: translateY(0) scale(0.97);
}

/* ---------- wishlist animation ---------- */

.wish-btn:hover {
  transform: scale(1.12);
}

.wish-btn:active {
  transform: scale(0.9);
}

.wish-btn.active {
  animation: heartPop 0.3s ease;
}

@keyframes heartPop {
  0% {
    transform: scale(0.8);
  }

  55% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- weight selector ---------- */

.w-chip:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
}

.w-chip.active {
  animation: chipSelect 0.2s ease;
}

@keyframes chipSelect {
  0% {
    transform: scale(0.95);
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- navigation ---------- */

.brand .mark {
  transition: transform 0.3s ease;
}

.brand:hover .mark {
  transform: rotate(12deg) scale(1.08);
}

.nav-utility .icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
}

.role-link:hover,
.account-btn:hover,
.user-chip:hover {
  transform: translateY(-2px);
}

/* ---------- section headings ---------- */

.section-head h2 {
  animation: headingReveal 0.6s ease both;
}

@keyframes headingReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ---------- pricing cards ---------- */

.pricing-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px -16px rgba(43, 58, 34, 0.4);
}

/* ---------- contact cards ---------- */

.contact-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -18px rgba(43, 58, 34, 0.4);
}

/* ---------- dashboard cards ---------- */

.stat-card,
.panel-card {
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -16px rgba(43, 58, 34, 0.35);
}

/* ---------- dashboard navigation ---------- */

.dash-nav-link {
  transition:
    transform 0.18s ease,
    background-color 0.18s ease,
    color 0.18s ease;
}

.dash-nav-link:hover {
  transform: translateX(3px);
}

/* ---------- form focus ---------- */

input:focus,
select:focus,
textarea:focus {
  transform: translateY(-1px);
  box-shadow: 0 5px 14px -10px rgba(43, 58, 34, 0.5);
}

/* ---------- toast ---------- */

.toast.show {
  animation: toastBounce 0.35s ease;
}

@keyframes toastBounce {
  0% {
    transform: translateX(-50%) translateY(15px);
    opacity: 0;
  }

  60% {
    transform: translateX(-50%) translateY(-2px);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ---------- drawer ---------- */

.side-drawer {
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- modal ---------- */

.panel,
.auth-panel {
  animation: smoothModal 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes smoothModal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------- respect reduced-motion accessibility ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
/* ============================================================
   HOMEPAGE HERO UI/UX POLISH
   ============================================================ */

/* Improve hero readability */
.hero.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(35, 48, 27, 0.38) 0%,
      rgba(35, 48, 27, 0.16) 55%,
      rgba(35, 48, 27, 0.04) 100%
    );
  pointer-events: none;
  z-index: 0;
}

.hero.hero-photo > * {
  position: relative;
  z-index: 1;
}

/* Give the hero text a cleaner reading width */
.hero.hero-photo h1 {
  max-width: 12ch;
  text-wrap: balance;
}

.hero.hero-photo p {
  max-width: 48ch;
}

/* Make the main CTA slightly stronger */
.hero.hero-photo .btn-solid {
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.45);
}

.hero.hero-photo .btn-solid:hover {
  box-shadow: 0 14px 26px -10px rgba(0, 0, 0, 0.5);
}

/* Improve hero statistics */
.hero.hero-photo .hero-stats {
  gap: 34px;
  margin-top: 32px;
}

.hero.hero-photo .hero-stats div {
  min-width: 78px;
}

.hero.hero-photo .hero-stats b {
  font-size: 1.65rem;
  line-height: 1;
}

.hero.hero-photo .hero-stats span {
  margin-top: 4px;
  font-size: 0.72rem;
}

/* Small visual divider between statistics */
.hero.hero-photo .hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 28px;
}

/* Better spacing for the hero buttons */
.hero.hero-photo .hero-cta {
  margin-top: 28px;
  gap: 14px;
}

/* Keep the hero comfortable on smaller screens */
@media (max-width: 700px) {
  .hero.hero-photo {
    padding: 52px 24px 42px;
  }

  .hero.hero-photo h1 {
    max-width: 11ch;
  }

  .hero.hero-photo .hero-stats {
    gap: 18px;
  }

  .hero.hero-photo .hero-stats div + div {
    padding-left: 18px;
  }
}
/* ============================================================
   HOMEPAGE PRODUCT SECTION UI/UX POLISH
   ============================================================ */

/* Cleaner product section spacing */
.section-head {
  margin-top: 54px;
  margin-bottom: 24px;
  align-items: center;
}

.section-head h2 {
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

/* Make the sorting control feel more polished */
.sort {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px 5px 12px;
  box-shadow: 0 5px 16px -12px rgba(43, 58, 34, 0.35);
}

.sort select {
  border: none;
  outline: none;
  background: transparent;
  padding: 6px 8px;
  cursor: pointer;
}

/* Give the product grid a little more breathing room */
.grid {
  gap: 26px;
  padding-bottom: 48px;
}

/* Refined product cards */
.card {
  border: 1px solid rgba(218, 213, 190, 0.75);
  overflow: visible;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(138, 145, 99, 0.55);
  box-shadow: 0 22px 42px -18px rgba(43, 58, 34, 0.5);
}

/* Make the product icon/image area feel more intentional */
.card-top {
  margin-bottom: 12px;
}

.icon-plate {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .icon-plate {
  transform: scale(1.07);
  box-shadow: 0 8px 18px -12px rgba(43, 58, 34, 0.45);
}

/* Product name readability */
.card h3 {
  line-height: 1.25;
  margin-bottom: 3px;
}

.card .meta {
  line-height: 1.4;
}

/* Nutrition information gets clearer separation */
.nutri {
  margin-top: 14px;
  margin-bottom: 14px;
}

/* Weight choices are easier to scan */
.weights {
  margin-top: 8px;
}

.w-chip {
  min-height: 34px;
}

/* Keep price and action visually balanced */
.buy-row {
  margin-top: 10px;
  gap: 12px;
}

.buy-btn {
  min-width: 88px;
}

/* Better responsive product layout */
@media (max-width: 700px) {
  .section-head {
    margin-top: 40px;
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: 1.4rem;
  }

  .sort {
    width: 100%;
    justify-content: space-between;
  }

  .sort select {
    flex: 1;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .card {
    padding: 18px 14px 16px;
  }

  .buy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .buy-btn {
    width: 100%;
  }
}

@media (max-width: 460px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================================
   PRODUCT CARD INFORMATION HIERARCHY
   ============================================================ */

/* Keep the product identity visually strong */
.card h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-top: 4px;
  margin-bottom: 4px;
}

.card .meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}

/* Give the nutrition block a clearer visual boundary */
.nutri {
  padding: 13px 0;
  margin: 14px 0;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
}

.nutri b {
  font-size: 0.95rem;
}

.nutri span {
  font-size: 0.72rem;
}

/* Make weight selection feel like an important shopping step */
.weights {
  margin-top: 12px;
}

.w-chip {
  font-weight: 700;
  cursor: pointer;
}

.w-chip:not(.active):hover {
  background: var(--bg-soft);
}

/* Price should be the strongest information near the action */
.buy-row {
  margin-top: 14px;
  align-items: center;
}

.buy-row .price {
  font-family: 'Fraunces';
  font-weight: 700;
}

.buy-row .price small {
  display: block;
  margin-top: 2px;
  font-family: 'Karla';
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Make Add button clearly actionable */
.add-btn,
.buy-btn {
  font-weight: 700;
  min-height: 40px;
}

/* Keep the product card comfortable on smaller screens */
@media (max-width: 700px) {
  .card h3 {
    font-size: 1rem;
  }

  .nutri {
    padding: 11px 0;
    margin: 12px 0;
  }

  .w-chip {
    padding-left: 8px;
    padding-right: 8px;
  }
}
/* ============================================================
   WEIGHT & PRICING SECTION UI/UX POLISH
   ============================================================ */

.pricing-card {
  border: 1px solid rgba(218, 213, 190, 0.8);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(138, 145, 99, 0.6);
  box-shadow: 0 18px 36px -16px rgba(43, 58, 34, 0.4);
}

/* Make the weight/price rows easier to scan */
.pricing-card .price-row {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.pricing-card .price-row:hover {
  transform: translateX(3px);
  background: var(--bg-soft);
}

/* Highlight the main pricing information */
.pricing-card strong,
.pricing-card b {
  font-weight: 700;
}

/* Keep pricing section comfortable on smaller screens */
@media (max-width: 700px) {
  .pricing-card {
    padding: 18px;
  }

  .pricing-card .price-row {
    padding: 9px 10px;
  }
}
/* ============================================================
   HOMEPAGE CONTACT SECTION UI/UX POLISH
   ============================================================ */

.contact-section {
  padding-top: 34px;
  padding-bottom: 28px;
}

.contact-section .section-head {
  margin-bottom: 6px;
}

.contact-card {
  border: 1px solid rgba(218, 213, 190, 0.8);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 145, 99, 0.55);
  box-shadow: 0 18px 38px -18px rgba(43, 58, 34, 0.4);
}

/* Make form fields easier to use */
.contact-form-grid {
  gap: 16px;
}

.contact-form-grid .form-input,
.contact-form-grid .form-textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.contact-form-grid .form-input:focus,
.contact-form-grid .form-textarea:focus {
  border-color: var(--leaf);
  box-shadow: 0 5px 16px -12px rgba(43, 58, 34, 0.5);
}

/* Improve contact information readability */
.contact-info-list {
  gap: 16px;
}

.contact-info-item {
  padding: 8px 0;
}

.contact-info-item .ci-icon {
  transition: transform 0.22s ease, background-color 0.22s ease;
}

.contact-info-item:hover .ci-icon {
  transform: scale(1.08);
  background: var(--bg);
}

/* Make WhatsApp CTA feel more clickable */
.whatsapp-btn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -12px rgba(37, 211, 102, 0.7);
}

.whatsapp-btn:active {
  transform: scale(0.97);
}

/* Social buttons */
.social-row a {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.social-row a:hover {
  transform: translateY(-3px);
  background: var(--bg);
}

/* Better mobile form layout */
@media (max-width: 700px) {
  .contact-section {
    padding-top: 26px;
  }

  .contact-card {
    padding: 20px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid .full {
    grid-column: auto;
  }
}
/* ============================================================
   HOMEPAGE FOOTER UI/UX POLISH
   ============================================================ */

.site-footer {
  padding-top: 48px;
  padding-bottom: 28px;
  margin-top: 58px;
}

.footer-grid {
  gap: 34px;
}

/* Footer brand */
.footer-brand {
  transition: transform 0.22s ease;
}

.footer-brand:hover {
  transform: translateX(3px);
}

/* Footer headings */
.footer-col h4 {
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}

/* Footer links */
.footer-col ul {
  gap: 10px;
}

.footer-col a {
  display: inline-block;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.footer-col a:hover {
  transform: translateX(3px);
}

/* Footer bottom area */
.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
}

.footer-bottom a {
  transition: color 0.2s ease;
}

.footer-bottom a:hover {
  color: var(--leaf-dark);
}

/* Language selector in footer */
.site-footer .lang-select {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.site-footer .lang-select:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
}

/* Better mobile footer */
@media (max-width: 700px) {
  .site-footer {
    margin-top: 42px;
    padding-top: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}/* ============================================================
   WHOLE-SITE MOBILE RESPONSIVENESS
   Better spacing, buttons, grids and navigation on small screens
   ============================================================ */

@media (max-width: 860px) {

  /* Main page spacing */
  .container {
    width: min(100% - 28px, 1180px);
  }

  /* Hero */
  .hero.hero-photo {
    padding: 54px 24px 42px;
    border-radius: 20px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 8vw, 4rem);
    line-height: 1.02;
  }

  .hero p {
    max-width: 650px;
  }

  .hero-cta {
    flex-wrap: wrap;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 18px;
  }

  /* Product section */
  .section-head {
    gap: 16px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}


/* ============================================================
   PHONE
   ============================================================ */

@media (max-width: 600px) {

  /* Global */
  body {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 20px, 1180px);
  }

  /* Header / navigation */
  .site-header {
    padding-left: 0;
    padding-right: 0;
  }

  .nav {
    gap: 10px;
  }

  .brand {
    min-width: 0;
  }

  .brand .name {
    font-size: 0.95rem;
  }

  .nav-utility {
    gap: 6px;
  }

  .nav-utility .icon-btn {
    width: 38px;
    height: 38px;
  }

  .role-link,
  .account-btn {
    padding-left: 8px;
    padding-right: 8px;
  }

  /* Hero */
  .hero.hero-photo {
    padding: 42px 18px 32px;
    border-radius: 18px;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-cta button {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 28px;
  }

  .hero-stats > div {
    min-width: 0;
    padding: 0 6px;
  }

  .hero-stats b {
    font-size: 1.35rem;
  }

  .hero-stats span {
    font-size: 0.72rem;
  }

  /* Section headings */
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .section-head h2 {
    font-size: 1.7rem;
  }

  .sort {
    width: 100%;
  }

  .sort select {
    width: 100%;
  }

  /* Product grid */
  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card:hover {
    transform: translateY(-3px);
  }

  /* Product cards */
  .card {
    width: 100%;
  }

  .weight-row {
    flex-wrap: wrap;
  }

  .w-chip {
    flex: 1 1 30%;
    min-width: 72px;
  }

  .card-actions {
    gap: 8px;
  }

  .card-actions button {
    min-height: 42px;
  }

  /* Pricing */
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pricing-card {
    padding: 20px 18px;
  }

  /* Contact */
  .contact-card {
    padding: 20px 18px;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-grid .full {
    grid-column: auto;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* ============================================================
   VERY SMALL PHONES
   ============================================================ */

@media (max-width: 400px) {

  .container {
    width: min(100% - 16px, 1180px);
  }

  .hero.hero-photo {
    padding: 36px 15px 28px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }

  .hero-stats {
    gap: 4px;
  }

  .hero-stats b {
    font-size: 1.15rem;
  }

  .hero-stats span {
    font-size: 0.65rem;
  }

  .w-chip {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
  }

  .card-actions {
    flex-direction: column;
  }

  .card-actions button {
    width: 100%;
  }
}
/* ============================================================
   CART + CHECKOUT UI/UX POLISH
   ============================================================ */

.cart-item,
.checkout-item {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.cart-item:hover,
.checkout-item:hover {
  transform: translateY(-2px);
}

/* Quantity controls */
.qty-btn {
  transition:
    transform 0.15s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.qty-btn:hover {
  transform: scale(1.08);
  border-color: var(--leaf);
}

.qty-btn:active {
  transform: scale(0.94);
}

/* Remove buttons */
.remove-btn {
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    background-color 0.2s ease;
}

.remove-btn:hover {
  transform: scale(1.06);
}

/* Cart / checkout totals */
.cart-total,
.checkout-total,
.order-total {
  transition: box-shadow 0.2s ease;
}

.cart-total:hover,
.checkout-total:hover {
  box-shadow: 0 12px 28px -18px rgba(43, 58, 34, 0.45);
}

/* Checkout primary action */
.checkout-btn,
.place-order-btn,
#checkoutBtn {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.checkout-btn:hover,
.place-order-btn:hover,
#checkoutBtn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -12px rgba(43, 58, 34, 0.6);
}

.checkout-btn:active,
.place-order-btn:active,
#checkoutBtn:active {
  transform: scale(0.97);
}

/* Address / checkout options */
.address-card,
.payment-option {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.address-card:hover,
.payment-option:hover {
  transform: translateY(-2px);
  border-color: var(--leaf);
}

/* Forms */
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.checkout-form input:focus,
.checkout-form select:focus,
.checkout-form textarea:focus {
  transform: translateY(-1px);
  border-color: var(--leaf);
  box-shadow: 0 6px 16px -12px rgba(43, 58, 34, 0.55);
}

/* Mobile */
@media (max-width: 600px) {

  .cart-item,
  .checkout-item {
    padding: 14px;
  }

  .cart-item:hover,
  .checkout-item:hover {
    transform: none;
  }

  .cart-total,
  .checkout-total {
    padding: 18px;
  }

  .checkout-btn,
  .place-order-btn,
  #checkoutBtn {
    width: 100%;
    min-height: 46px;
  }
}/* ============================================================
   LOADING + EMPTY + ERROR STATE UI/UX POLISH
   ============================================================ */

/* Loading text / messages */
.loading,
.loading-state {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  padding: 24px;
}

/* Subtle loading animation when these elements exist */
.loading::after,
.loading-state::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--leaf);
  border-radius: 50%;
  animation: loadingSpin 0.75s linear infinite;
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Empty states */
.empty-state,
.empty-message {
  text-align: center;
  padding: 42px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--muted);
  animation: emptyReveal 0.35s ease both;
}

.empty-state h3,
.empty-message h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.empty-state p,
.empty-message p {
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

@keyframes emptyReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Error messages */
.error-message,
.error-state {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(193, 67, 42, 0.25);
  background: rgba(193, 67, 42, 0.07);
  color: var(--ink);
  line-height: 1.5;
  animation: errorReveal 0.3s ease both;
}

@keyframes errorReveal {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Success messages */
.success-message,
.success-state {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(43, 58, 34, 0.22);
  background: rgba(43, 58, 34, 0.07);
  color: var(--ink);
  line-height: 1.5;
  animation: successReveal 0.3s ease both;
}

@keyframes successReveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent awkward overflow on small screens */
@media (max-width: 600px) {

  .loading,
  .loading-state {
    min-height: 110px;
    padding: 20px 14px;
  }

  .empty-state,
  .empty-message {
    padding: 32px 16px;
  }

  .error-message,
  .error-state,
  .success-message,
  .success-state {
    padding: 14px 15px;
  }
}/* ============================================================
   DASHBOARD UI/UX POLISH
   Consistent cards, navigation, tables and actions
   ============================================================ */

/* Dashboard page spacing */
.dashboard-page {
  padding-bottom: 40px;
}

/* Dashboard header */
.dash-header {
  transition: box-shadow 0.25s ease;
}

/* Navigation links */
.dash-nav-link {
  border-radius: 10px;
  transition:
    transform 0.18s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.dash-nav-link:hover {
  transform: translateX(3px);
}

.dash-nav-link.active {
  box-shadow: 0 6px 16px -12px rgba(43, 58, 34, 0.5);
}

/* Dashboard statistic cards */
.stat-card {
  border-radius: var(--radius);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(43, 58, 34, 0.45);
}

/* Dashboard panels */
.panel-card {
  border-radius: var(--radius);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.panel-card:hover {
  box-shadow: 0 16px 32px -18px rgba(43, 58, 34, 0.4);
}

/* Dashboard action buttons */
.dashboard-page button {
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.dashboard-page button:hover {
  transform: translateY(-1px);
}

.dashboard-page button:active {
  transform: scale(0.97);
}

/* Tables */
.dashboard-page table {
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-page tbody tr {
  transition: background-color 0.18s ease;
}

.dashboard-page tbody tr:hover {
  background-color: rgba(43, 58, 34, 0.035);
}

/* Forms */
.dashboard-page input,
.dashboard-page select,
.dashboard-page textarea {
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.dashboard-page input:focus,
.dashboard-page select:focus,
.dashboard-page textarea:focus {
  transform: translateY(-1px);
  border-color: var(--leaf);
  box-shadow: 0 6px 16px -12px rgba(43, 58, 34, 0.55);
}

/* Product / order rows */
.product-row,
.order-row,
.user-row {
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.product-row:hover,
.order-row:hover,
.user-row:hover {
  transform: translateX(2px);
}

/* Status badges */
.status-badge,
.badge {
  transition: transform 0.18s ease;
}

.status-badge:hover,
.badge:hover {
  transform: scale(1.04);
}

/* Dashboard mobile */
@media (max-width: 700px) {

  .dashboard-page {
    padding-bottom: 28px;
  }

  .stat-card:hover,
  .panel-card:hover {
    transform: none;
  }

  .dashboard-page table {
    min-width: 620px;
  }

  .dashboard-table-wrap,
  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .product-row:hover,
  .order-row:hover,
  .user-row:hover {
    transform: none;
  }
}
/* ============================================================
   ACCESSIBILITY + USER-FRIENDLY POLISH
   ============================================================ */

/* Clear keyboard focus */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(43, 58, 34, 0.35);
  outline-offset: 3px;
}

/* Make interactive elements easier to tap */
button,
a,
select,
input[type="checkbox"],
input[type="radio"] {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent accidental text selection on buttons */
button {
  user-select: none;
}

/* Disabled controls should clearly look disabled */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  transform: none !important;
  box-shadow: none !important;
}

/* Better form labels */
label {
  line-height: 1.4;
}

/* Better readability for helper text */
.help-text,
.form-hint,
.muted,
.text-muted {
  line-height: 1.5;
}

/* Improve clickable icons */
.icon-btn,
.wish-btn,
.qty-btn {
  min-width: 40px;
  min-height: 40px;
}

/* Don't let images create awkward gaps */
img {
  max-width: 100%;
}

/* Smooth anchor navigation */
html {
  scroll-behavior: smooth;
}

/* Better touch behavior on cards/buttons */
button,
a,
.card,
.w-chip {
  touch-action: manipulation;
}

/* Mobile touch targets */
@media (max-width: 600px) {

  button,
  .icon-btn,
  .wish-btn,
  .qty-btn {
    min-height: 42px;
  }

  input,
  select,
  textarea {
    min-height: 42px;
  }
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}