/* ==========================================================================
   NJ CRAFTS — STOREFRONT PAGES DESIGN SYSTEM & HEADER CLEARANCE
   Palette: Sage Green (#788A70), Soft Sage (#EAF0E7), Pure White (#FFFFFF), Charcoal (#292D2A)
   ========================================================================== */

:root {
  --warm-ivory: #FFFFFF;
  --primary: #788A70;
  --primary-hover: #65755E;
  --ink-black: #292D2A;
  --warm-grey: #686D68;
  --color-border-subtle: #E5E8E3;
}

/* ================= 1. Global Header & Content Clearance ================= */
.site-main-storefront {
  min-height: 75vh;
}

/* Ensure no page content ever sticks directly to the sticky header */
.cms-page,
.contact-page,
.tracking-page,
.faq-page,
.auth-page {
  background-color: #FFFFFF;
  min-height: 80vh;
  padding: 36px 0 72px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .cms-page,
  .contact-page,
  .tracking-page,
  .faq-page,
  .auth-page {
    padding: 24px 0 56px;
  }
}

/* ================= 2. Universal Utility Fallbacks ================= */
.py-16 { padding-top: 40px !important; padding-bottom: 64px !important; }
.py-12 { padding-top: 36px !important; padding-bottom: 56px !important; }
.py-8  { padding-top: 24px !important; padding-bottom: 36px !important; }

.max-w-5xl { max-width: 1100px !important; width: 100%; }
.max-w-4xl { max-width: 960px !important; width: 100%; }
.max-w-3xl { max-width: 820px !important; width: 100%; }
.max-w-xl  { max-width: 600px !important; width: 100%; }
.max-w-lg  { max-width: 520px !important; width: 100%; }
.mx-auto   { margin-left: auto !important; margin-right: auto !important; }

.mb-12 { margin-bottom: 36px !important; }
.mb-8  { margin-bottom: 28px !important; }
.mb-6  { margin-bottom: 20px !important; }
.mb-4  { margin-bottom: 16px !important; }
.mb-3  { margin-bottom: 12px !important; }
.mb-2  { margin-bottom: 8px !important; }
.mb-1  { margin-bottom: 4px !important; }

.mt-3  { margin-top: 12px !important; }
.mt-2  { margin-top: 8px !important; }
.mt-1  { margin-top: 4px !important; }

.p-12 { padding: 48px !important; }
.p-8  { padding: 32px !important; }
.p-6  { padding: 24px !important; }
.p-4  { padding: 16px !important; }

.px-8 { padding-left: 28px !important; padding-right: 28px !important; }
.px-4 { padding-left: 16px !important; padding-right: 16px !important; }
.px-3 { padding-left: 12px !important; padding-right: 12px !important; }
.py-1 { padding-top: 4px !important; padding-bottom: 4px !important; }
.py-2 { padding-top: 8px !important; padding-bottom: 8px !important; }
.py-3 { padding-top: 12px !important; padding-bottom: 12px !important; }

.rounded-xl { border-radius: 12px !important; }
.rounded-lg { border-radius: 8px !important; }
.rounded-full { border-radius: 9999px !important; }

.bg-white { background-color: #FFFFFF !important; }
.bg-amber-50 { background-color: #FFFBEB !important; }
.bg-emerald-100 { background-color: #D1FAE5 !important; }
.text-emerald-600 { color: #059669 !important; }
.text-emerald-700 { color: #047857 !important; }
.bg-gray-100 { background-color: #F3F4F6 !important; }
.border-gray-100 { border-color: #E5E8E3 !important; }
.border-gray-200 { border-color: #E5E8E3 !important; }

.text-primary { color: #788A70 !important; }
.text-ink-black { color: #292D2A !important; }
.text-warm-grey { color: #686D68 !important; }
.font-editorial { font-family: 'Playfair Display', Georgia, serif !important; }

.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }

/* Layout & Flex Helpers */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.justify-between { justify-content: space-between !important; }
.justify-center { justify-content: center !important; }
.justify-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-col { flex-direction: column !important; }

.gap-1 { gap: 4px !important; }
.gap-2 { gap: 8px !important; }
.gap-3 { gap: 12px !important; }
.gap-4 { gap: 16px !important; }
.gap-6 { gap: 24px !important; }
.gap-8 { gap: 32px !important; }

.space-y-2 > * + * { margin-top: 8px !important; }
.space-y-3 > * + * { margin-top: 12px !important; }
.space-y-4 > * + * { margin-top: 16px !important; }
.space-y-6 > * + * { margin-top: 24px !important; }
.space-y-8 > * + * { margin-top: 32px !important; }

.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.uppercase { text-transform: uppercase !important; }
.tracking-wider { letter-spacing: 0.6px !important; }
.tracking-widest { letter-spacing: 1.5px !important; }

.text-xs { font-size: 0.75rem !important; }
.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }
.text-3xl { font-size: 1.875rem !important; }
.text-4xl { font-size: 2.25rem !important; }
.text-5xl { font-size: 3rem !important; }

.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 12px rgba(41, 45, 42, 0.08) !important; }
.border { border-width: 1px !important; border-style: solid !important; border-color: #E5E8E3 !important; }
.border-b { border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: #E5E8E3 !important; }
.border-t { border-top-width: 1px !important; border-top-style: solid !important; border-top-color: #E5E8E3 !important; }
.overflow-hidden { overflow: hidden !important; }
.relative { position: relative !important; }

/* Breadcrumbs */
.breadcrumb, .nj-page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #686D68;
  margin-bottom: 22px;
}

.breadcrumb a, .nj-page-breadcrumb a {
  color: #686D68;
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb a:hover, .nj-page-breadcrumb a:hover {
  color: #788A70;
}

.breadcrumb-current {
  color: #292D2A;
  font-weight: 700;
}

/* Universal Page Card */
.nj-page-card, .nj-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
}

/* ================= 3. Contact Page Styles ================= */
.contact-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .contact-layout-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-channel-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(41, 45, 42, 0.07);
}

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.contact-channel-icon.whatsapp {
  background-color: #DCFCE7;
  color: #15803D;
}

.contact-channel-icon.email {
  background-color: #EAF0E7;
  color: #788A70;
}

.contact-channel-icon.studio {
  background-color: #EAF0E7;
  color: #788A70;
}

.contact-channel-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 4px 0;
}

.contact-channel-desc {
  font-size: 0.82rem;
  color: #686D68;
  line-height: 1.5;
  margin: 0 0 12px 0;
}

.contact-action-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: #788A70;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.contact-action-link:hover {
  color: #292D2A;
  text-decoration: underline;
}

/* Contact Form Card */
.contact-form-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
}

.contact-form-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E5E8E3;
}

.contact-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 6px 0;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.contact-col-1 { grid-column: span 1; }
.contact-col-2 { grid-column: span 2; }

@media (max-width: 600px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-col-1, .contact-col-2 {
    grid-column: span 1;
  }
  .contact-form-card {
    padding: 24px 18px;
  }
}

.contact-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #292D2A;
}

.contact-input, .contact-select, .contact-textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid #E5E8E3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: #292D2A;
  background-color: #FFFFFF;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus, .contact-select:focus, .contact-textarea:focus {
  border-color: #788A70;
  box-shadow: 0 0 0 3px rgba(120, 138, 112, 0.15);
}

.contact-textarea {
  height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.btn-contact-submit {
  background-color: #788A70;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 9999px;
  padding: 13px 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(120, 138, 112, 0.25);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-contact-submit:hover {
  background-color: #65755E;
  box-shadow: 0 6px 16px rgba(101, 117, 94, 0.25);
  transform: translateY(-1px);
}

/* ================= 4. Tracking Page Styles ================= */
.track-search-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 16px rgba(41, 45, 42, 0.04);
}

.track-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .track-form-grid {
    grid-template-columns: 1fr;
  }
}

.btn-track-submit {
  background-color: #788A70;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 12px 30px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(120, 138, 112, 0.2);
}

.btn-track-submit:hover {
  background-color: #65755E;
  box-shadow: 0 6px 16px rgba(101, 117, 94, 0.3);
  transform: translateY(-1px);
}

/* Tracking Result Card */
.track-result-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
}

.track-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E5E8E3;
}

.track-badge-status {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background-color: #E0F2FE;
  color: #0369A1;
}

.track-badge-status.confirmed { background: #DCFCE7; color: #15803D; }
.track-badge-status.shipped   { background: #FEF3C7; color: #92400E; }
.track-badge-status.delivered { background: #D1FAE5; color: #047857; }
.track-badge-status.cancelled { background: #FEE2E2; color: #991B1B; }

/* Visual Stepper */
.tracking-stepper-box {
  margin: 32px 0 36px;
  position: relative;
}

.stepper-progress-bar {
  position: absolute;
  top: 18px;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #E5E8E3;
  z-index: 1;
}

.stepper-progress-fill {
  height: 100%;
  background: #788A70;
  transition: width 0.5s ease;
}

.stepper-steps-row {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 20%;
}

.stepper-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #E5E8E3;
  color: #686D68;
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
}

.stepper-step.active .stepper-circle {
  background: #788A70;
  color: #FFFFFF;
}

.stepper-step.completed .stepper-circle {
  background: #15803D;
  color: #FFFFFF;
}

.stepper-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #686D68;
  margin-top: 8px;
  white-space: nowrap;
}

.stepper-step.active .stepper-label,
.stepper-step.completed .stepper-label {
  color: #292D2A;
}

@media (max-width: 600px) {
  .stepper-label {
    font-size: 0.68rem;
  }
  .stepper-circle {
    width: 30px;
    height: 30px;
    font-size: 0.75rem;
  }
}

/* Courier AWB Box */
.courier-info-box {
  background: #EAF0E7;
  border: 1px solid #E5E8E3;
  border-radius: 10px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* Ordered Item Row */
.track-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid #E5E8E3;
}

.track-item-row:last-child {
  border-bottom: none;
}

.track-item-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.track-item-thumb {
  width: 58px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #E5E8E3;
}

/* ================= 5. CMS Editorial Policy Pages ================= */
.cms-content-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 44px 48px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
}

@media (max-width: 768px) {
  .cms-content-card {
    padding: 28px 20px;
  }
}

.cms-header {
  padding-bottom: 20px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E5E8E3;
}

.cms-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

.cms-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #686D68;
}

.cms-article-body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #292D2A;
}

.cms-article-body h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #292D2A;
  margin: 28px 0 10px;
}

.cms-article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #292D2A;
  margin: 20px 0 8px;
}

.cms-article-body p {
  margin-bottom: 16px;
}

.cms-article-body ul, .cms-article-body ol {
  padding-left: 24px;
  margin-bottom: 18px;
}

.cms-article-body li {
  margin-bottom: 6px;
}

.cms-footer-nav {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #E5E8E3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: #686D68;
}

.cms-footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.cms-footer-links a {
  color: #686D68;
  text-decoration: underline;
  transition: color 0.2s;
}

.cms-footer-links a:hover {
  color: #788A70;
}

/* ================= 6. My Account Section Design System ================= */
.account-page {
  background-color: #FAF7F2 !important;
  min-height: 82vh;
  padding: 32px 0 72px;
  box-sizing: border-box;
}

.account-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.80rem;
  color: #7B8079;
  margin-bottom: 24px;
}

.account-breadcrumb a {
  color: #7B8079;
  text-decoration: none;
  transition: color 0.2s;
}

.account-breadcrumb a:hover {
  color: #788A70;
}

.account-breadcrumb-current {
  color: #292D2A;
  font-weight: 700;
}

/* Responsive 2-column Account Grid */
.account-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

@media (max-width: 991px) {
  .account-layout {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
}

/* Account Sidebar */
.account-sidebar {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
  position: sticky;
  top: 110px;
  z-index: 10;
  box-sizing: border-box;
}

@media (max-width: 991px) {
  .account-sidebar {
    position: static;
    top: auto;
  }
}

.account-user-brief {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EAECE7;
}

.account-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #788A70 0%, #596B51 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(120, 138, 112, 0.28);
  flex-shrink: 0;
  text-transform: uppercase;
}

.account-user-meta {
  min-width: 0;
  flex: 1;
}

.account-user-name {
  font-size: 1.02rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-user-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #EAF0E7;
  color: #556B4E;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.account-user-email {
  font-size: 0.78rem;
  color: #7B8079;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Navigation List */
.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #555A54;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.account-nav-item:hover {
  background-color: #F4F6F2;
  color: #292D2A;
  transform: translateX(3px);
}

.account-nav-item.is-active {
  background-color: #EAF0E7;
  color: #4F6149;
  font-weight: 700;
  box-shadow: inset 3px 0 0 #788A70;
}

.account-nav-item.is-active svg {
  color: #788A70;
}

.account-nav-label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-nav-label svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: inherit;
}

.account-nav-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #EAECE7;
  color: #555A54;
  min-width: 20px;
  text-align: center;
}

.account-nav-item.is-active .account-nav-badge {
  background: #788A70;
  color: #FFFFFF;
}

.account-nav-divider {
  border-top: 1px solid #ECEEE9;
  margin: 12px 0;
  padding-top: 6px;
}

/* Bulletproof Logout Button Reset */
.account-logout-btn {
  all: unset !important;
  box-sizing: border-box !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 14px !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #C2410C !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  border: none !important;
  background: transparent !important;
  outline: none !important;
}

.account-logout-btn:hover {
  background-color: #FEF2F2 !important;
  color: #991B1B !important;
}

.account-logout-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
  color: inherit !important;
}

/* Main Content Area & Cards */
.account-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.account-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .account-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #EAECE7;
  flex-wrap: wrap;
  gap: 12px;
}

.account-card-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0;
}

.account-card-subtitle {
  font-size: 0.82rem;
  color: #686D68;
  margin: 4px 0 0;
}

.account-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #788A70;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s ease, gap 0.2s ease;
}

.account-link:hover {
  color: #556B4E;
  gap: 9px;
}

/* Welcome Banner */
.account-welcome-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAF7 100%);
  border: 1px solid #DFE5DC;
  border-radius: 16px;
  padding: 28px 32px;
  box-shadow: 0 4px 18px rgba(41, 45, 42, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .account-welcome-card {
    padding: 22px 18px;
    flex-direction: column;
    align-items: flex-start;
  }
}

.account-welcome-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #788A70;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.account-welcome-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 6px 0;
  line-height: 1.25;
}

.account-welcome-desc {
  font-size: 0.88rem;
  color: #686D68;
  max-width: 580px;
  margin: 0;
  line-height: 1.55;
}

/* Luxury Pill Buttons (Explicitly Override .nj-btn width:100%) */
.account-btn-pill-primary {
  width: auto !important;
  max-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 24px !important;
  background-color: #788A70 !important;
  color: #FFFFFF !important;
  border: 1.5px solid #788A70 !important;
  border-radius: 9999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 3px 10px rgba(120, 138, 112, 0.25) !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.account-btn-pill-primary:hover {
  background-color: #65755E !important;
  border-color: #65755E !important;
  color: #FFFFFF !important;
  box-shadow: 0 5px 16px rgba(101, 117, 94, 0.35) !important;
  transform: translateY(-1px) !important;
}

.account-btn-pill-outline {
  width: auto !important;
  max-width: max-content !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 22px !important;
  background-color: #FFFFFF !important;
  color: #292D2A !important;
  border: 1.5px solid #D6D0C7 !important;
  border-radius: 9999px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
}

.account-btn-pill-outline:hover {
  background-color: #F8FAF7 !important;
  border-color: #788A70 !important;
  color: #788A70 !important;
  transform: translateY(-1px) !important;
}

.account-btn-pill-sm {
  padding: 7px 16px !important;
  font-size: 0.78rem !important;
}

/* 3-Column Responsive Stats Grid */
.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .account-stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.account-stat-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.account-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(41, 45, 42, 0.07);
  border-color: #D3DAD0;
}

.account-stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.account-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #EAF0E7;
  color: #788A70;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-stat-icon svg {
  width: 20px;
  height: 20px;
}

.account-stat-label {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7B8079;
}

.account-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.3rem;
  font-weight: 700;
  color: #292D2A;
  line-height: 1.1;
  margin: 4px 0 14px;
}

.account-stat-link {
  font-size: 0.80rem;
  font-weight: 700;
  color: #788A70;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.account-stat-link:hover {
  color: #556B4E;
  gap: 9px;
}

/* Elegant Boutique Empty State */
.account-empty-state {
  text-align: center;
  padding: 44px 20px;
}

.account-empty-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #EAF0E7;
  color: #788A70;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 4px 14px rgba(120, 138, 112, 0.15);
}

.account-empty-icon svg {
  width: 32px;
  height: 32px;
}

.account-empty-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 8px 0;
}

.account-empty-desc {
  font-size: 0.88rem;
  color: #686D68;
  max-width: 440px;
  margin: 0 auto 20px;
  line-height: 1.55;
}

/* Status Badges */
.account-badge-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.account-badge-status.confirmed { background: #DCFCE7; color: #15803D; }
.account-badge-status.shipped   { background: #FEF3C7; color: #92400E; }
.account-badge-status.delivered { background: #D1FAE5; color: #047857; }
.account-badge-status.cancelled { background: #FEE2E2; color: #991B1B; }
.account-badge-status.pending   { background: #E0F2FE; color: #0369A1; }
.account-badge-status.paid      { background: #EAF0E7; color: #4F6149; }
.account-badge-status.cod       { background: #F3F4F6; color: #4B5563; }

/* Modern Account Table */
.account-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.account-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.account-table th {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7B8079;
  padding: 12px 14px;
  border-bottom: 1.5px solid #E5E8E3;
}

.account-table td {
  padding: 14px;
  border-bottom: 1px solid #ECEEE9;
  vertical-align: middle;
}

.account-table tr:last-child td {
  border-bottom: none;
}

.account-table tr:hover td {
  background-color: #FAFBF9;
}

/* Orders Cards on Orders Page */
.account-order-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  transition: all 0.22s ease;
  margin-bottom: 16px;
}

.account-order-card:hover {
  box-shadow: 0 8px 24px rgba(41, 45, 42, 0.07);
  border-color: #D3DAD0;
}

.account-order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ECEEE9;
}

.account-order-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #F4F6F2;
  gap: 14px;
}

.account-order-item-row:last-child {
  border-bottom: none;
}

.account-order-item-thumb {
  width: 54px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #E5E8E3;
  flex-shrink: 0;
}

.account-order-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #ECEEE9;
  font-size: 0.82rem;
}

/* 2-Column Responsive Addresses Grid */
.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 768px) {
  .account-addresses-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.account-address-card {
  background: #FFFFFF;
  border: 1.5px solid #E5E8E3;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.22s ease;
  position: relative;
  box-sizing: border-box;
}

.account-address-card.is-default {
  border-color: #788A70;
  box-shadow: 0 4px 18px rgba(120, 138, 112, 0.12);
}

.account-address-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(41, 45, 42, 0.06);
}

.account-badge-default {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #EAF0E7;
  color: #556B4E;
  font-size: 0.70rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Order Details 3-Column Info Grid */
.account-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 991px) {
  .account-info-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.account-info-box {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  box-sizing: border-box;
}

/* Form Styles for Account Views */
.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .account-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

.account-form-col-full {
  grid-column: 1 / -1;
}

.account-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.account-form-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #292D2A;
}

.account-form-input,
.account-form-select,
.account-form-textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid #E5E8E3;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 0.92rem;
  color: #292D2A;
  background-color: #FFFFFF;
  box-sizing: border-box;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.account-form-input:focus,
.account-form-select:focus,
.account-form-textarea:focus {
  border-color: #788A70;
  box-shadow: 0 0 0 3px rgba(120, 138, 112, 0.15);
}

.account-form-textarea {
  height: 90px;
  padding: 10px 14px;
  resize: vertical;
}

/* ================= 7. Order Confirmation & Success Animation ================= */
.confirmation-page {
  background-color: #FAF7F2 !important;
  min-height: 82vh;
  padding: 36px 0 80px;
  box-sizing: border-box;
}

/* Success Checkmark & Celebration Animation */
.order-success-animation-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 20px;
  position: relative;
  width: 90px;
  height: 90px;
}

.order-checkmark-circle {
  width: 80px;
  height: 80px;
  position: relative;
  display: inline-block;
  vertical-align: top;
  border-radius: 50%;
  animation: orderCirclePulse 2.2s infinite ease-in-out;
}

@keyframes orderCirclePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(120, 138, 112, 0.45);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(120, 138, 112, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(120, 138, 112, 0);
  }
}

.order-checkmark-svg {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #788A70;
  stroke-miterlimit: 10;
  box-shadow: inset 0px 0px 0px #788A70;
  animation: scaleUp 0.35s ease-in-out 0.8s both;
}

.order-checkmark-svg-circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #788A70;
  fill: #EAF0E7;
  animation: strokeCircle 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.order-checkmark-svg-check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  stroke-width: 3.5;
  stroke: #4A5B44;
  animation: strokeCheck 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.55s forwards;
}

@keyframes strokeCircle {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes strokeCheck {
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes scaleUp {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.08, 1.08, 1);
  }
}

/* Subtle Confetti Particles */
.order-confetti-particle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  animation: confettiBurst 1.2s ease-out 0.4s forwards;
}

.order-confetti-1 { background: #788A70; top: 10%; left: 15%; --tx: -24px; --ty: -20px; }
.order-confetti-2 { background: #C76B4A; top: 15%; right: 15%; --tx: 26px; --ty: -18px; }
.order-confetti-3 { background: #E5A84B; bottom: 15%; left: 12%; --tx: -26px; --ty: 18px; }
.order-confetti-4 { background: #556B4E; bottom: 10%; right: 12%; --tx: 24px; --ty: 20px; }
.order-confetti-5 { background: #788A70; top: 2%; left: 50%; --tx: 0px; --ty: -28px; }
.order-confetti-6 { background: #C76B4A; bottom: 2%; left: 50%; --tx: 0px; --ty: 28px; }

@keyframes confettiBurst {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(1.2);
  }
}

/* Confirmation Layout */
.confirmation-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(41, 45, 42, 0.04);
  padding: 36px 32px;
  margin-bottom: 24px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .confirmation-card {
    padding: 24px 18px;
  }
}

.confirmation-hero-card {
  text-align: center;
  border-top: 4px solid #788A70;
  position: relative;
  overflow: hidden;
}

.confirmation-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background-color: #EAF0E7;
  color: #4F6149;
  margin-bottom: 12px;
}

.confirmation-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: #292D2A;
  margin: 0 0 10px 0;
  line-height: 1.25;
}

@media (max-width: 640px) {
  .confirmation-title {
    font-size: 1.65rem;
  }
}

.confirmation-desc {
  font-size: 0.95rem;
  color: #686D68;
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

.confirmation-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* 3-Column Info Grid */
.confirmation-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 840px) {
  .confirmation-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.confirmation-info-card {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
  box-sizing: border-box;
}

.confirmation-info-card-title {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #7B8079;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Ordered Items in Confirmation */
.confirmation-item-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #ECEEE9;
}

.confirmation-item-row:last-child {
  border-bottom: none;
}

.confirmation-item-thumb {
  width: 68px;
  height: 84px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #FAF7F2;
  border: 1px solid #E5E8E3;
  flex-shrink: 0;
}

.confirmation-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirmation-support-box {
  background: #FFFFFF;
  border: 1px solid #E5E8E3;
  border-radius: 14px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(41, 45, 42, 0.03);
}

@media (max-width: 768px) {
  .confirmation-support-box {
    flex-direction: column;
    text-align: center;
  }
}

