/* =============================================================
   NAINS HERBALS — account.css
   Styles for the WooCommerce My Account page.

   HOW TO EDIT:
   - Colors       → search for #E67E22 (orange) or #1C2520 (dark green)
   - Nav links    → .na-nav-link section
   - Dashboard cards → .na-dash-card section
   - Hero banner  → .na-hero section
   - Tables (orders, addresses) → .na-content-card table section
   ============================================================= */

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

/* ── PAGE WRAPPER ───────────────────────────────────────────── */
.na-page {
  background: #F5F0E8;
  min-height: 70vh;
  padding: 48px 0 80px;
  font-family: 'Inter', sans-serif;
}
.na-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) {
  .na-inner { padding: 0 40px; }
}

/* ── HERO BANNER ────────────────────────────────────────────── */
/* Green welcome bar at the top with avatar and name */
.na-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #1C2520;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.na-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}
.na-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.25);
  object-fit: cover;
}
/* Small emoji badge on the avatar */
.na-avatar-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E67E22;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #1C2520;
}
.na-welcome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px;
}
.na-email {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

/* ── 2-COLUMN LAYOUT ────────────────────────────────────────── */
/* Left: sidebar navigation | Right: main content area */
.na-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  /* EDIT: Change 240px to make the sidebar wider or narrower */
  .na-layout { grid-template-columns: 240px 1fr; }
}

/* ── SIDEBAR NAVIGATION ─────────────────────────────────────── */
.na-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.na-nav {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

/* Each navigation link row */
.na-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 500;
  color: #1C2520;
  text-decoration: none;
  border-bottom: 1px solid #F5F0E8;
  transition: all 0.15s;
}
.na-nav-link:last-child { border-bottom: none; }
.na-nav-link:hover,
.na-active {
  background: #F5F0E8;
  color: #E67E22;
  font-weight: 600;
}
.na-nav-icon { font-size: 16px; flex-shrink: 0; }
/* Arrow icon pushed to the right */
.na-nav-arrow { margin-left: auto; color: #8B7D6B; }

/* Stats panel below the nav (order count etc.) */
.na-stats {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: center;
}
.na-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 700;
  color: #1C2520;
  display: block;
}
.na-stat-label {
  font-size: 11px;
  color: #8B7D6B;
}

/* ── MAIN CONTENT AREA ──────────────────────────────────────── */
/* White card that wraps WooCommerce content (orders list, forms etc.) */
.na-content-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 20px;
}

/* Headings inside the content card */
.na-content-card h2,
.na-content-card h3 {
  font-family: 'Cormorant Garamond', serif;
  color: #1C2520;
  margin-bottom: 16px;
}

/* Orders table styling */
.na-content-card table.shop_table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.na-content-card table.shop_table th {
  background: #F5F0E8;
  padding: 10px 14px;
  font-weight: 600;
  color: #1C2520;
  border: none;
  text-align: left;
}
.na-content-card table.shop_table td {
  padding: 12px 14px;
  border-bottom: 1px solid #F0E6D8;
  color: #5a4f45;
}

/* Buttons inside content card (View Order, etc.) */
.na-content-card .button {
  background: #1C2520 !important;
  color: #fff !important;
  border-radius: 8px !important;
  padding: 8px 18px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  border: none !important;
  display: inline-block;
  transition: background 0.2s;
}
.na-content-card .button:hover { background: #E67E22 !important; }

/* Form inputs inside content card (edit account, address) */
.na-content-card input[type=text],
.na-content-card input[type=email],
.na-content-card input[type=password],
.na-content-card input[type=tel],
.na-content-card select,
.na-content-card textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #E5D5C3;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #1C2520;
  margin-bottom: 4px;
  background: #fff;
  transition: border-color 0.2s;
}
.na-content-card input:focus,
.na-content-card select:focus,
.na-content-card textarea:focus {
  border-color: #1C2520;
  outline: none;
}
.na-content-card label {
  font-size: 13px;
  font-weight: 500;
  color: #1C2520;
  margin-bottom: 4px;
  display: block;
}

/* WooCommerce notices inside account */
.na-content-card .woocommerce-message,
.na-content-card .woocommerce-error,
.na-content-card .woocommerce-info {
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

/* ── DASHBOARD QUICK ACCESS CARDS ───────────────────────────── */
/* The 4 shortcut cards shown on the dashboard (orders, addresses etc.)
   EDIT: Add or remove cards in my-account.php under $nav_cards */
.na-dash-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 20px;
}
@media (min-width: 480px) {
  .na-dash-cards { grid-template-columns: repeat(2, 1fr); }
}

.na-dash-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
  border: 1.5px solid #EDE5D4;
  transition: all 0.2s;
}
.na-dash-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
/* Featured card (Skin Analyzer) gets an orange border */
.na-dash-featured { border-color: rgba(230,126,34,0.3); }
.na-dash-icon { font-size: 24px; flex-shrink: 0; }
.na-dash-title {
  font-size: 14px;
  font-weight: 600;
  color: #1C2520;
  margin: 0 0 2px;
}
.na-dash-sub {
  font-size: 12px;
  color: #8B7D6B;
  margin: 0;
}
.na-dash-card svg { margin-left: auto; flex-shrink: 0; }

/* ── SHOP CTA BANNER ────────────────────────────────────────── */
/* Dark green banner at the bottom of dashboard with Shop button
   EDIT: Change text in my-account.php under the na-shop-cta div */
.na-shop-cta {
  background: #1C2520;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.na-shop-cta p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin: 0;
}
.na-shop-btn {
  background: #E67E22;
  color: #fff;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}
.na-shop-btn:hover { background: #D4721E; color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .na-hero { padding: 20px; gap: 14px; }
  .na-welcome { font-size: 20px; }
  .na-content-card { padding: 18px; }
  .na-shop-cta { flex-direction: column; text-align: center; }
}
