:root {
  --green: #2E7D32;
  --green-dark: #245e27;
  --green-soft: #E8F3E9;
  --ink: #181818;
  --muted: #96a49c;
  --line: #ECECEC;
  --bg: #f7faf7;
  --white: #fff;
  --red: #e33548;
}

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

body {
  font-family: 'Outfit', 'Segoe UI', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---------- AGE GATE ---------- */
.age-gate { position: fixed; inset: 0; z-index: 9990; display: flex; align-items: center; justify-content: center; }
.age-gate.hidden { display: none; }
.age-gate-backdrop { position: absolute; inset: 0; background: rgba(12, 20, 15, .92); }
.age-gate-modal {
  position: relative; background: var(--white); border-radius: 16px; padding: 42px 48px;
  text-align: center; width: 440px; max-width: calc(100vw - 32px);
}
.age-gate-logo-text { font-size: 1.7rem; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.age-gate-logo-text span { color: var(--green); }
.age-gate-challenge { margin: 18px 0 26px; font-size: .98rem; color: var(--muted); }
.age-gate-buttons { display: flex; gap: 12px; }
.age-gate-btn { flex: 1; padding: 13px; border-radius: 10px; font-weight: 600; font-size: .9rem; text-align: center; transition: all .25s; }
.age-yes { background: var(--green); color: #fff; }
.age-yes:hover { background: var(--green-dark); }
.age-no { background: #f0f0f0; color: var(--ink); }
.age-no:hover { background: var(--red); color: #fff; }
.age-gate-remember { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; font-size: .8rem; color: var(--muted); }

/* ---------- HEADER ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.logo { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; color: var(--ink); }
.header-logo-text span { color: var(--green); }
.nav { display: flex; gap: 26px; }
.nav-link { font-size: .9rem; font-weight: 500; color: #333; transition: color .2s; }
.nav-link:hover { color: var(--green); }
.header-actions { margin-left: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%; border: none;
  background: none; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--ink); cursor: pointer; transition: all .25s;
}
.icon-btn:hover { background: var(--green-soft); color: var(--green); }
.cart-count {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--green); color: #fff; font-size: .68rem; font-weight: 700;
  border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- AUTH VIEW ---------- */
.auth-view { padding: 64px 0 84px; }
.auth-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.auth-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .18em; color: var(--green); margin-bottom: 14px; }
.auth-intro h1 { font-size: 2.3rem; line-height: 1.15; font-weight: 800; margin-bottom: 16px; }
.auth-sub { color: var(--muted); font-size: 1rem; margin-bottom: 30px; max-width: 460px; }
.auth-benefits { display: flex; flex-direction: column; gap: 18px; margin-bottom: 30px; }
.auth-benefits li { display: flex; gap: 14px; align-items: flex-start; }
.auth-benefits i { font-size: 1.15rem; color: var(--green); margin-top: 3px; }
.auth-benefits b { display: block; font-size: .95rem; }
.auth-benefits span { font-size: .84rem; color: var(--muted); }
.auth-trust { display: flex; align-items: center; gap: 10px; font-size: .82rem; color: var(--muted); background: var(--green-soft); padding: 12px 16px; border-radius: 10px; max-width: 460px; }
.auth-trust i { color: var(--green); }

.auth-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 30px; box-shadow: 0 10px 30px rgba(16, 36, 25, .06); }
.auth-tabs { display: flex; background: #f2f5f3; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.auth-tab { flex: 1; padding: 11px; border: none; background: none; border-radius: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; transition: all .2s; }
.auth-tab.active { background: #fff; color: var(--green); box-shadow: 0 2px 8px rgba(16, 36, 25, .08); }
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 7px; color: #555; }
.auth-field input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .93rem; background: #fbfcfb; transition: border-color .2s; color: var(--ink);
}
.auth-field input:focus { outline: none; border-color: var(--green); }
.auth-submit-btn {
  padding: 13px; background: var(--green); color: #fff; border: none; border-radius: 10px;
  font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .25s; margin-top: 4px;
}
.auth-submit-btn:hover { background: var(--green-dark); }
.auth-note { text-align: center; font-size: .76rem; color: var(--muted); }

/* ---------- DASHBOARD ---------- */
.dash-view { padding: 36px 0 84px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.dash-greet { display: flex; align-items: center; gap: 16px; }
.dash-avatar {
  width: 58px; height: 58px; border-radius: 50%; background: var(--green);
  color: #fff; font-weight: 800; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
}
.dash-eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--green); }
.dash-greet h1 { font-size: 1.4rem; font-weight: 800; }
.dash-sub { font-size: .84rem; color: var(--muted); }
.dash-head-actions { display: flex; gap: 12px; }
.btn-outline {
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 10px; font-size: .86rem;
  font-weight: 600; color: var(--ink); background: #fff; cursor: pointer; transition: all .25s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-logout:hover { border-color: var(--red); color: var(--red); }

.dash-layout { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 96px; }
.dash-tab {
  text-align: left; padding: 12px 16px; border: none; background: none; border-radius: 10px;
  font-size: .92rem; font-weight: 500; color: #444; cursor: pointer; transition: all .2s;
  display: flex; align-items: center; gap: 12px;
}
.dash-tab i { width: 18px; text-align: center; color: var(--muted); }
.dash-tab:hover { background: var(--green-soft); color: var(--green); }
.dash-tab:hover i { color: var(--green); }
.dash-tab.active { background: var(--green); color: #fff; }
.dash-tab.active i { color: #fff; }
.dash-count { margin-left: auto; background: #fff; color: var(--green); font-size: .72rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.dash-tab.active .dash-count { background: rgba(255, 255, 255, .18); color: #fff; }

.dash-main { min-width: 0; }
.dash-panel { display: none; }
.dash-panel.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.stat-label { font-size: .76rem; font-weight: 700; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; margin-bottom: 8px; }
.stat-value { font-size: 1.5rem; font-weight: 800; color: var(--ink); }

.dash-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 22px; }
.dash-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-card-head h3 { font-size: 1.05rem; font-weight: 700; }
.link-btn { background: none; border: none; color: var(--green); font-size: .84rem; font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick-action {
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px;
  border: 1px solid var(--line); border-radius: 12px; font-size: .84rem; font-weight: 600; text-align: center; transition: all .25s;
}
.quick-action i { font-size: 1.3rem; color: var(--green); }
.quick-action:hover { border-color: var(--green); background: var(--green-soft); color: var(--green); }

/* ---------- TABLES / LISTS ---------- */
.row-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.row-table th { text-align: left; font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.row-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.row-table tr:last-child td { border-bottom: none; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty-state i { font-size: 2rem; color: #cdd8d0; margin-bottom: 12px; display: block; }
.empty-state p { font-size: .92rem; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-sm {
  padding: 7px 13px; border-radius: 8px; font-size: .8rem; font-weight: 600; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: all .2s;
}
.btn-sm:hover { border-color: var(--green); color: var(--green); }
.btn-sm.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-sm.primary:hover { background: var(--green-dark); }
.btn-sm.danger:hover { border-color: var(--red); color: var(--red); }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: .73rem; font-weight: 600; text-transform: capitalize; }
.badge.ok { background: var(--green-soft); color: var(--green); }
.badge.warn { background: #fff3d5; color: #b47d0d; }
.badge.progress { background: #e7f0fb; color: #2f6fb3; }
.badge.neutral { background: #f0f0f0; color: #777; }
.badge.danger { background: #fde8eb; color: var(--red); }

.order-summary { cursor: pointer; transition: background .2s; }
.order-summary:hover { background: #fafcfb; }
.order-summary .chev { color: var(--muted); font-size: .8rem; }
.order-detail { display: none; background: #fafcfb; }
.order-detail.open { display: table-row; }
.order-detail td { padding: 6px 10px 18px; }

/* ---------- WISHLIST / CART CARDS ---------- */
.item-list { display: flex; flex-direction: column; gap: 14px; }
.item-card { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.item-img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #f6f8f6; padding: 4px; }
.item-info { flex: 1; }
.item-name { font-weight: 600; font-size: .92rem; }
.item-meta { font-size: .8rem; color: var(--muted); }
.item-price { font-weight: 700; color: var(--green); }

/* ---------- ORDER TRACKING ---------- */
.track-card {
  border: 1px solid var(--line); border-radius: 12px; background: #fafcfb;
  padding: 18px; margin-bottom: 14px;
}

/* ---------- FOOTER ---------- */
.site-footer { background: #0c150f; color: #e8efe9; padding: 48px 0 24px; margin-top: 20px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: .06em; }
.footer-logo-text span { color: var(--green); }
.footer-brand p { font-size: .84rem; color: #8da394; margin-top: 12px; line-height: 1.6; max-width: 280px; }
.footer-links-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .12em; color: #9fb8a6; margin-bottom: 16px; }
.footer-links-col li { margin-bottom: 10px; }
.footer-links-col a { font-size: .86rem; color: #d5e2d8; transition: color .2s; }
.footer-links-col a:hover { color: #a5d6a7; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding-top: 18px; font-size: .78rem; color: #6e8575; }

/* ---------- TOAST ---------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 5000; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #fff; padding: 13px 18px; border-radius: 10px; font-size: .86rem;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}
.toast i { color: #a5d6a7; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; gap: 40px; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .dash-head { flex-direction: column; align-items: flex-start; }
}