:root {
  --bg: #f6fbf7;
  --bg-soft: #eef7f0;
  --white: #ffffff;
  --text: #123126;
  --muted: #5d766a;
  --primary: #1f8f56;
  --primary-dark: #156d40;
  --accent: #dff4e7;
  --shadow: 0 20px 50px rgba(13, 39, 29, 0.08);
  --radius: 22px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #dff3e8 0%, #c4e6d3 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1280px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ================= PREMIUM HEADER / NAVBAR ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(24, 150, 84, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 30px rgba(18, 49, 38, 0.14);
}

.site-header .logo,
.site-header .menu-toggle {
  color: white;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1.2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  font-size: 1.08rem;
  color: white;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.95), rgba(226,245,233,0.9));
  box-shadow: 0 10px 22px rgba(13, 39, 29, 0.14);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-menu > a {
  position: relative;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  padding: 0.8rem 1.05rem;
  border-radius: 999px;
  transition: all 0.28s ease;
  letter-spacing: -0.01em;
}

.nav-menu > a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu > a.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.nav-menu > a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-btn,
.cart-icon-mobile {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: white;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  transition: all 0.28s ease;
}

.cart-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.cart-icon-mobile {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: white;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
}

#cart-count,
#cart-count-mobile {
  background: linear-gradient(135deg, #ff4d4d, #ff6b6b);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  box-shadow: 0 8px 18px rgba(255, 77, 77, 0.28);
}

.site-header .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: white;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header .btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: white;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.16);
}

/* ================= USER ACCOUNT DROPDOWN ================= */
.account-dropdown-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  color: white;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.28s ease;
}

.account-btn:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.account-caret {
  font-size: 0.78rem;
  line-height: 1;
  opacity: 0.9;
}

#userName {
  color: white;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 210px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(18, 49, 38, 0.08);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(13, 39, 29, 0.14);
  padding: 0.55rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1200;
}

.account-dropdown-menu.show {
  display: flex;
}

.account-dropdown-menu a,
.account-dropdown-menu button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.22s ease;
}

.account-dropdown-menu a:hover,
.account-dropdown-menu button:hover {
  background: rgba(31, 143, 86, 0.08);
  color: var(--primary-dark);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.35rem;
  font-weight: 700;
  transition: 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.small-btn {
  padding: 0.72rem 1.05rem;
}

.full-btn {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #1f8f56, #2fbf71);
  color: white;
  box-shadow: 0 10px 25px rgba(31, 143, 86, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 35px rgba(31, 143, 86, 0.4);
}

.btn-outline {
  border-color: rgba(31, 143, 86, 0.22);
  background: rgba(255,255,255,0.75);
  color: var(--text);
}

.btn-outline:hover {
  background: white;
}

.active-btn {
  color: var(--text) !important;
}

/* LAYOUT */
.hero,
.page-hero,
.auth-section {
  padding: 1rem 0 0.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center; /* keep hero nice */
}

.split-grid,
.auth-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

/* 🔥 Important fix */
.split-grid {
  align-items: stretch;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: start;
}

.eyebrow {
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1,
.auth-intro h1 {
  font-size: clamp(1.8rem, 3.5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: start;
}

.page-hero.compact h1 {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.hero-text,
.page-hero p,
.auth-intro p {
  color: var(--muted);
  max-width: 650px;
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1.8rem 0 2rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.hero-stats div,
.info-card,
.feature-card,
.shop-card,
.auth-card,
.contact-form,
.hero-card {
  background: rgba(240, 255, 245, 0.7);
  border: 1px solid rgba(255,255,255,0.6);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-stats div {
  padding: 1rem;
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.25rem;
}

.hero-stats span {
  color: var(--muted);
  font-size: 0.95rem;
}

/* HOMEPAGE HERO IMAGE */
.hero-card {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-image-card {
  position: relative;
  padding: 0.8rem;
  border-radius: 28px;
  min-height: auto;
  max-width: 540px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(222,244,231,0.92), rgba(255,255,255,0.96));
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(13, 39, 29, 0.12);
  border: 1px solid rgba(255,255,255,0.62);
}

.hero-image-placeholder {
  position: relative;
  width: 100%;
  border-radius: 22px;
  padding: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 42px rgba(13, 39, 29, 0.08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-image-placeholder img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  transition: transform 0.35s ease;
}

.hero-image-placeholder:hover img {
  transform: scale(1.03);
}

.mini-panel {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: rgba(255,255,255,0.86);
  border-radius: 18px;
  border: 1px solid rgba(18, 49, 38, 0.06);
}

.mini-panel strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.mini-panel p {
  color: var(--muted);
  margin: 0;
}

.section {
  padding: 2rem 0;
}

.soft-bg {
  background: var(--bg-soft);
}

.section-title {
  margin-bottom: 2rem;
}

.section-title.center {
  text-align: center;
}

.section-title h2,
.split-grid h2,
.contact-form h2,
.info-card h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 0.8rem;
}

.card-grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.feature-card,
.info-card,
.shop-card,
.contact-form,
.auth-card {
  padding: 1.5rem;
}

.feature-card h3,
.shop-card h3,
.info-card h3 {
  margin-bottom: 0.65rem;
  font-size: 1.2rem;
}

.feature-card p,
.shop-card p,
.info-card p,
.contact-form p,
.split-grid p {
  color: var(--muted);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.shop-card .product-top {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--accent);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.price-row span {
  font-weight: 800;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

label {
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 49, 38, 0.12);
  background: #fff;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(31, 143, 86, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 143, 86, 0.08);
}

.form-note {
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
}

.tab-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.tab-btn {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(18, 49, 38, 0.08);
  background: #f3f8f5;
  font-weight: 700;
  cursor: pointer;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--primary), #27a966);
  color: white;
}

.hidden-form {
  display: none;
}

.active-form {
  display: block;
}

/* GOOGLE BUTTON */
.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition: all 0.25s ease;
}

.google-btn img {
  width: 18px;
  height: 18px;
}

.google-btn:hover {
  background: #f0f7f4;
  border-color: #2e8b57;
  transform: translateY(-1px);
}

.google-btn:active {
  transform: scale(0.98);
}

#guestSection a {
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  border-radius: 999px;
}

/* FOOTER */
.site-footer {
  background: linear-gradient(135deg, #1f8f56, #27a966);
  color: white;
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.site-footer h3,
.site-footer h4 {
  margin-bottom: 0.8rem;
}

.site-footer p,
.site-footer a {
  color: rgba(255,255,255,0.85);
}

.site-footer a {
  display: block;
  margin-bottom: 0.55rem;
  transition: all 0.3s ease;
}

.site-footer a:hover {
  color: white;
  transform: translateX(6px);
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}

/* ANIMATION */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: -20px;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(31, 143, 86, 0.18), transparent 70%);
  border-radius: 50%;
  animation: floatGlow 6s ease-in-out infinite;
}

.page-hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), transparent 70%);
  border-radius: 50%;
  animation: floatGlow 8s ease-in-out infinite reverse;
}

.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: all 1s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

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

/* CART PAGE */
.cart-section {
  padding-top: 2rem;
}

.cart-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.cart-page-header h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.08;
  margin-bottom: 0.65rem;
}

.cart-page-header p {
  color: var(--muted);
  max-width: 650px;
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 1.5rem;
  align-items: start;
}

.cart-list-card,
.cart-summary-card {
  background: rgba(240, 255, 245, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 26px;
  box-shadow: 0 20px 50px rgba(13, 39, 29, 0.09);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cart-list-card {
  padding: 1.5rem;
}

.cart-summary-card {
  padding: 1.5rem;
  position: sticky;
  top: 100px;
}

.cart-card-header {
  margin-bottom: 1.2rem;
}

.cart-card-header h2,
.cart-summary-card h2,
.cart-customer-form h3 {
  margin-bottom: 0.45rem;
}

.cart-card-header p,
.checkout-help-text,
.summary-note {
  color: var(--muted);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-top: 1px dashed rgba(18, 49, 38, 0.12);
  border-bottom: 1px dashed rgba(18, 49, 38, 0.12);
  margin-bottom: 1rem;
}

.summary-row strong {
  font-size: 1.15rem;
  color: var(--primary-dark);
}

.summary-note {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.cart-customer-form {
  margin-top: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  padding: 0;
}

.cart-checkout-btn {
  width: 100%;
  margin-top: 0.5rem;
  min-height: 54px;
  font-size: 1rem;
}

.checkout-help-text {
  margin-top: 0.9rem;
  font-size: 0.93rem;
  text-align: center;
}

.empty-cart-message {
  padding: 1.4rem;
  border-radius: 18px;
  text-align: center;
  background: rgba(255,255,255,0.72);
  color: var(--muted);
  font-weight: 600;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 49, 38, 0.08);
  border-radius: 20px;
  box-shadow: 0 12px 24px rgba(18, 49, 38, 0.06);
}

.cart-item p {
  margin: 0 0 0.2rem;
  font-weight: 700;
  color: var(--text);
}

.cart-item small {
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-item strong {
  color: var(--primary-dark);
  font-size: 1rem;
}

.cart-item .btn {
  min-width: 42px;
  min-height: 42px;
  padding: 0.6rem 0.85rem;
}

.cart-item .cart-minus,
.cart-item .cart-plus {
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 800;
}

.cart-item .cart-remove {
  border-radius: 14px;
  white-space: nowrap;
}

.cart-qty-controls {
  background: rgba(240, 255, 245, 0.95);
  border: 1px solid rgba(18, 49, 38, 0.08);
  border-radius: 16px;
  padding: 0.35rem 0.45rem;
}

.cart-qty-controls span {
  min-width: 24px;
  text-align: center;
  font-weight: 700;
}

/* ADMIN DASHBOARD */
.admin-toolbar {
  margin-bottom: 1.5rem;
}

.admin-orders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.admin-order-card {
  background: rgba(240, 255, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 39, 29, 0.08);
  padding: 1.35rem;
}

.admin-order-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.admin-order-top h3 {
  margin-bottom: 0.35rem;
  font-size: 1.15rem;
}

.admin-order-top p {
  color: var(--muted);
}

.admin-order-date {
  font-size: 0.9rem;
  color: var(--muted);
  background: rgba(255,255,255,0.72);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}

.admin-order-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.admin-order-section {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 1rem;
}

.admin-order-section h4 {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.admin-order-section p {
  margin-bottom: 0.45rem;
  color: var(--text);
  word-break: break-word;
}

.admin-items-list {
  padding-left: 1.2rem;
  color: var(--text);
}

.admin-items-list li {
  margin-bottom: 0.45rem;
}

.admin-order-footer {
  margin-top: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px dashed rgba(18, 49, 38, 0.14);
  font-size: 1.02rem;
  color: var(--primary-dark);
}

.admin-empty {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 1.1rem;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.admin-status-select {
  min-width: 180px;
  padding: 0.72rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(18, 49, 38, 0.12);
  background: #fff;
  color: var(--text);
  outline: none;
}

.admin-status-select:focus {
  border-color: rgba(31, 143, 86, 0.45);
  box-shadow: 0 0 0 4px rgba(31, 143, 86, 0.08);
}

/* STATUS */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
}

.status-pending {
  background: #fff4cc;
  color: #8a6d1d;
}

.status-confirmed {
  background: #dff4e7;
  color: #156d40;
}

.status-packed {
  background: #e6f0ff;
  color: #2457a6;
}

.status-delivery {
  background: #f3e8ff;
  color: #7a3db8;
}

.status-delivered {
  background: #d9f7e8;
  color: #0f7a43;
}

.status-cancelled {
  background: #ffe0e0;
  color: #b42323;
}

/* TRACK ORDER PAGE */
.track-order-wrap {
  max-width: 1000px;
  margin: 0 auto;
}

.track-search-card,
.track-result-card {
  background: rgba(240, 255, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 39, 29, 0.08);
  padding: 1.5rem;
}

.track-search-card {
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.track-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

.track-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.track-info-box,
.track-timeline-box {
  background: rgba(255,255,255,0.72);
  border-radius: 18px;
  padding: 1rem;
}

.track-info-box h3,
.track-timeline-box h3 {
  margin-bottom: 0.8rem;
}

.track-info-box p {
  margin-bottom: 0.45rem;
  word-break: break-word;
}

.track-item-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(18, 49, 38, 0.12);
}

.track-total-row {
  display: flex;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(18, 49, 38, 0.12);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.timeline-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
}

.timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  margin-top: 5px;
  flex-shrink: 0;
}

.timeline-item p {
  color: var(--muted);
  margin-top: 0.2rem;
}

/* PROFILE PAGE */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.profile-card {
  background: rgba(240, 255, 245, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(13, 39, 29, 0.08);
  padding: 1.5rem;
}

.profile-card h2 {
  margin-bottom: 1rem;
}

.profile-card p {
  margin-bottom: 0.7rem;
  color: var(--text);
  word-break: break-word;
}

/* MOBILE */
@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-card {
    position: static;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .split-grid,
  .contact-grid,
  .auth-wrap,
  .footer-grid,
  .card-grid.three,
  .product-grid,
  .hero-stats,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    min-height: 78px;
  }

  .nav-menu {
    position: absolute;
    top: 86px;
    right: 1rem;
    left: 1rem;
    background: rgba(22, 139, 78, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    box-shadow: 0 18px 40px rgba(18, 49, 38, 0.22);
  }

  .nav-menu.show {
    display: flex;
  }

  .nav-menu > a {
    padding: 0.95rem 1rem;
    border-radius: 16px;
    color: white;
  }

  .nav-menu > a.active::after {
    display: none;
  }

  .nav-menu > a:hover,
  .nav-menu > a.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .cart-icon-mobile {
    display: inline-flex;
  }

  .nav-menu .cart-btn {
    display: none;
  }

  .site-header .btn-outline {
    width: 100%;
    justify-content: center;
  }

  #guestSection {
    width: 100%;
  }

  #guestSection a {
    width: 100%;
    justify-content: center;
  }

  .account-dropdown-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .account-btn {
    width: 100%;
    justify-content: center;
    border-radius: 16px;
  }

  #userName {
    max-width: 100%;
  }

  .account-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 0.6rem;
    border-radius: 16px;
    box-shadow: none;
    background: rgba(255,255,255,0.9);
  }

  .account-dropdown-menu a,
  .account-dropdown-menu button {
    text-align: center;
  }

  .hero-image-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .admin-order-body,
  .track-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-card {
    padding: 1.1rem;
  }

  .hero-image-placeholder img {
    height: 300px;
  }
}

@media (max-width: 720px) {
  .cart-item {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cart-item > div,
  .cart-item > button {
    width: 100%;
  }

  .cart-item > div:nth-child(2) {
    justify-content: flex-start !important;
  }

  .cart-page-header {
    align-items: flex-start;
  }

  .cart-list-card,
  .cart-summary-card {
    padding: 1.2rem;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .hero,
  .page-hero,
  .auth-section {
    padding: 1.5rem 0 3rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero h1,
  .page-hero h1,
  .auth-intro h1 {
    font-size: 2.2rem;
  }

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

  .hero-image-card {
    padding: 0.7rem;
    border-radius: 22px;
  }

  .hero-image-placeholder {
    padding: 6px;
    border-radius: 18px;
  }

  .hero-image-placeholder img {
    height: 250px;
    border-radius: 16px;
  }
}
