/* =====================================================
   Hire & Admire Blooms — Custom My Account Styles
   ===================================================== */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Jost:wght@300;400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --hab-cream:      #F5F2EC;
  --hab-white:      #FFFFFF;
  --hab-dark-green: #2D4A3E;
  --hab-mid-green:  #4A6B5B;
  --hab-sage:       #8A9E8A;
  --hab-text:       #2C2C2C;
  --hab-muted:      #6B6B6B;
  --hab-border:     #E2DDD6;
  --hab-badge-bg:   #EBEBEB;
  --hab-radius:     8px;
  --hab-radius-lg:  12px;
  --hab-shadow:     0 1px 4px rgba(0,0,0,0.06);
  --font-display:   'Cormorant Garamond', Georgia, serif;
  --font-body:      'Jost', sans-serif;
}

/* ── Page Background ── */
body.woocommerce-account {
  background-color: var(--hab-cream) !important;
  font-family: var(--font-body) !important;
}

/* ── Hide default WC my account heading ── */
.woocommerce-account .woocommerce > h2,
.woocommerce-account .page-title,
.entry-title {
  display: none !important;
}

/* =====================================================
   TWO-COLUMN LAYOUT WRAPPER
   ===================================================== */
.hab-account-wrap {
  display: flex;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: flex-start;
}

/* =====================================================
   SIDEBAR
   ===================================================== */
.hab-sidebar {
  width: 240px;
  flex-shrink: 0;
  background:#f7f3ec;
  border-radius: 24px;
  border: 1px solid #e6e1d8;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(47,58,47,0.04);
  padding: 0px 12px 12px 12px;
}

.hab-sidebar-header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--hab-border);
}

.hab-sidebar-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--hab-text);
  letter-spacing: 0.01em;
}

.hab-sidebar-sub {
  display: block;
  font-size: 0.72rem;
  color: var(--hab-muted);
  margin-top: 2px;
  letter-spacing: 0.03em;
}

/* WooCommerce nav list inside sidebar */
.hab-sidebar .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 15px;
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li {
  
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: none;
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 22px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--hab-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li a::after {
  content: '›';
  font-size: 1.1rem;
  color: var(--hab-muted);
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li a:hover {
  background: #fffdf9;
  color: var(--hab-dark-green);
  border-radius: 24px;
}

.hab-sidebar .woocommerce-MyAccount-navigation ul li.is-active a,
.hab-sidebar .woocommerce-MyAccount-navigation ul li a.is-active {
  background: #fffdf9;
  font-weight: 500;
  color: var(--hab-dark-green);
  border-radius: 24px;
  font-size: 14px;
}

/* =====================================================
   MAIN CONTENT COLUMN
   ===================================================== */
.hab-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* =====================================================
   DASHBOARD SECTIONS
   ===================================================== */
.hab-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Welcome Card ── */
.hab-welcome-card {
  background:#f7f3ec;
  border: 1px solid #e6e1d8;
  border-radius:24px;
  padding: 28px 32px;
  box-shadow: 0 10px 24px rgba(47,58,47,0.04);
}

.hab-welcome-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--hab-muted);
  font-weight: 500;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.hab-welcome-name {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--hab-text);
  margin: 0 0 10px;
  line-height: 1.2;
}

.hab-welcome-desc {
  font-size: 0.875rem;
  color: var(--hab-muted);
  margin: 0;
  line-height: 1.6;
  max-width: 520px;
}

/* ── Stats Row ── */
.hab-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.hab-stat-card {
  background: #f7f3ec;
  border: 1px solid #e6e1d8;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(47,58,47,0.04);
}

.hab-stat-card--highlight {
  background: var(--hab-cream);
}

.hab-stat-label {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--hab-muted);
  font-weight: 500;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.hab-stat-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--hab-text);
  margin: 0 0 6px;
  line-height: 1.2;
}

.hab-stat-value--lg {
  font-size: 1.3rem;
}

.hab-stat-note {
  font-size: 0.78rem;
  color: var(--hab-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Section Card ── */
.hab-section {
background: #f7f3ec;
  border: 1px solid #e6e1d8;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(47,58,47,0.04);
}

.hab-section-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--hab-text);
  margin: 0 0 18px;
  letter-spacing: 0.01em;
}

/* ── Orders List ── */
.hab-orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hab-order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--hab-border);
  gap: 16px;
  flex-wrap: wrap;
}

.hab-order-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hab-order-row:first-child {
  padding-top: 0;
}

.hab-order-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hab-order-number {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--hab-text);
}

.hab-order-items {
  font-size: 0.8rem;
  color: var(--hab-muted);
}

.hab-order-date {
  font-size: 0.78rem;
  color: var(--hab-sage);
}

.hab-order-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hab-order-total {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--hab-text);
}

/* ── Badges ── */
.hab-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 500;
  background: var(--hab-badge-bg);
  color: var(--hab-text);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.hab-badge--processing,
.hab-badge--on-hold {
  background: #EFF3EF;
  color: var(--hab-dark-green);
}

.hab-badge--completed {
  background: #E8F4E8;
  color: #2A6B2A;
}

/* ── Buttons ── */
.hab-btn-outline {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid var(--hab-border);
  border-radius: var(--hab-radius);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--hab-text);
  text-decoration: none;
  background: var(--hab-white);
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.hab-btn-outline:hover {
  border-color: var(--hab-dark-green);
  color: var(--hab-dark-green);
  text-decoration: none;
}

.hab-btn-dark {
  display: inline-block;
  padding: 10px 20px;
  background: var(--hab-dark-green);
  color: #fff !important;
  border-radius: var(--hab-radius);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s;
  white-space: nowrap;
}

.hab-btn-dark:hover {
  background: var(--hab-mid-green);
  text-decoration: none;
}

/* ── Quick Actions Grid ── */
.hab-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.hab-action-card {
  border: 1px solid var(--hab-border);
  border-radius: var(--hab-radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hab-action-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hab-text);
  margin: 0;
  line-height: 1.3;
}

.hab-action-card p {
  font-size: 0.8rem;
  color: var(--hab-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  flex: 1;
}

/* ── Bottom Row ── */
.hab-bottom-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.hab-info-card {
  background: #f7f3ec;
  border: 1px solid #e6e1d8;
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 10px 24px rgba(47,58,47,0.04);
}

.hab-info-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--hab-muted);
  font-weight: 500;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.hab-info-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--hab-text);
  margin: 0 0 10px;
}

.hab-info-card p {
  font-size: 0.83rem;
  color: var(--hab-muted);
  margin: 0 0 3px;
  line-height: 1.5;
}

/* ── Empty state ── */
.hab-empty {
  font-size: 0.875rem;
  color: var(--hab-muted);
  padding: 12px 0;
}

.hab-empty a {
  color: var(--hab-dark-green);
  text-decoration: underline;
}

/* =====================================================
   ELEMENTOR COMPATIBILITY
   ===================================================== */
/* If Elementor wraps in .elementor-widget-container */
.elementor-widget-container .woocommerce-MyAccount-content {
  width: 100%;
}

/* Force WC to not add extra wrappers */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 900px) {
  .hab-account-wrap {
    flex-direction: column;
  }
  .hab-sidebar {
    width: 100%;
  }
  .hab-stats-row,
  .hab-actions-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hab-bottom-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hab-stats-row,
  .hab-actions-grid {
    grid-template-columns: 1fr;
  }
  .hab-order-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .hab-order-meta {
    flex-wrap: wrap;
  }
  .hab-welcome-name {
    font-size: 1.9rem;
  }
}
