/* My Account area (new design): shared sidebar + profile / change-password pages. Scoped to .hvac / .hvac-nav; variables come from css/home-v2.css and css/store-v2.css. */
.hvac { padding: 26px 0 56px; }
.hvac-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }

/* ---------- sidebar ---------- */
.hvac-nav { background: #fff; border: 1px solid var(--hv-line, #e7e2d6); border-radius: 18px; padding: 10px !important; box-shadow: 0 8px 26px rgba(20, 35, 27, .06); }
.hvac-nav-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--hv-line, #e7e2d6); }
.hvac-nav-avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; overflow: hidden; background: #e7f4ec; color: #1f7a45; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; }
.hvac-nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hvac-nav-who { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.hvac-nav-who b { font-size: 15px; color: var(--hv-ink, #14231b); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvac-nav-who small { font-size: 12.5px; color: var(--hv-muted, #6b776f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hvac-nav-list { list-style: none; margin: 0; padding: 0; }
.hvac-nav-list li { display: block !important; width: 100% !important; margin: 0; padding: 0; float: none !important; }
.hvac-nav-list a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--hv-ink, #14231b); font-size: 14.5px; font-weight: 600; text-decoration: none; transition: background .15s, color .15s; }
.hvac-nav-list a i { flex: none; width: 20px; text-align: center; font-size: 16px; color: var(--hv-muted, #6b776f); }
.hvac-nav-list a:hover { background: #f4f1e8; color: var(--hv-ink, #14231b); }
.hvac-nav-list a.active { background: #e7f4ec; color: #14573f; }
.hvac-nav-list a.active i { color: #1f7a45; }
.hvac-nav-out { margin-top: 6px !important; padding-top: 6px !important; border-top: 1px solid var(--hv-line, #e7e2d6); }
.hvac-nav-out a, .hvac-nav-out a i { color: #b3261e; }
.hvac-nav-out a:hover { background: #fdecea; color: #b3261e; }

/* the old pages put the sidebar inside their own column; hide their "My Account" mobile toggle (the new nav is always visible) */
.hv2-body .account-sidebar, .hv2-body .dashboard-left .collection-mobile-back { display: none !important; }
.hv2-body .dashboard-left { display: block !important; }

/* ---------- main column ---------- */
.hvac-main { min-width: 0; }
.hvac-flash { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.hvac-flash.ok { background: #e7f4ec; color: #1f7a45; }
.hvac-flash.err { background: #fdecea; color: #b3261e; }
.hvac-flash ul { margin: 0; padding-left: 18px; }

.hvac-hero { display: flex; align-items: center; gap: 18px; padding: 24px !important; margin-bottom: 18px; border-radius: 18px; color: #fff; background: linear-gradient(150deg, #0a3829 0%, #14573f 100%); position: relative; overflow: hidden; isolation: isolate; }
.hvac-hero::after { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%; background: rgba(255, 255, 255, .06); z-index: -1; }
.hvac-avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; overflow: hidden; border: 3px solid rgba(255, 255, 255, .85); background: #fff; }
.hvac-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hvac-hero-txt { min-width: 0; flex: 1 1 auto; }
.hvac-hero-txt h1 { margin: 0 0 4px; font-family: var(--hv-serif, Georgia, serif); font-size: 28px; line-height: 1.15; color: #fff; text-transform: none !important; overflow: hidden; text-overflow: ellipsis; }
.hvac-hero-txt p { margin: 0 !important; font-size: 14px; color: rgba(255, 255, 255, .78); overflow: hidden; text-overflow: ellipsis; }
.hvac-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; margin-right: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .14); color: #d9f5e3; text-decoration: none; }
.hvac-chip.warn { background: #ffe9c7; color: #8a5200; }
.hvac-chip:hover { color: inherit; }
.hvac-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 12px; background: var(--hv-btn, #2d9e5a); color: #fff; font-size: 14.5px; font-weight: 800; cursor: pointer; text-decoration: none; transition: background .15s; }
.hvac-btn:hover { background: #258a4d; color: #fff; }
.hvac-hero .hvac-btn { flex: none; background: #fff; color: #14573f; }
.hvac-hero .hvac-btn:hover { background: #e7f4ec; color: #14573f; }
.hvac-btn.ghost { background: #fff; color: var(--hv-ink, #14231b); border: 1.5px solid var(--hv-line, #e7e2d6); }
.hvac-btn.ghost:hover { background: #f4f1e8; color: var(--hv-ink, #14231b); }

.hvac-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.hvac-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: #fff; border: 1px solid var(--hv-line, #e7e2d6); border-radius: 16px; color: var(--hv-ink, #14231b); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hvac-stat:hover { border-color: #cfd8d1; box-shadow: 0 8px 22px rgba(20, 35, 27, .07); color: var(--hv-ink, #14231b); }
.hvac-stat i { flex: none; width: 42px; height: 42px; border-radius: 12px; background: #e7f4ec; color: #1f7a45; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; }
.hvac-stat b { display: block; font-size: 22px; line-height: 1.1; }
.hvac-stat span { font-size: 13px; color: var(--hv-muted, #6b776f); }

.hvac-card { margin: 0 0 18px; padding: 22px 24px !important; background: #fff; border: 1px solid var(--hv-line, #e7e2d6); border-radius: 18px; }
.hvac-card h2 { margin: 0 0 16px !important; font-size: 16px; font-weight: 800; color: var(--hv-ink, #14231b); text-transform: none !important; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.hvac-card h2 a { font-size: 13px; font-weight: 700; color: var(--hv-green-2, #1f7a45); }
.hvac-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin: 0; }
.hvac-dl div { min-width: 0; }
.hvac-dl dt { margin: 0 0 3px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--hv-muted, #6b776f); }
.hvac-dl dd { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--hv-ink, #14231b); overflow-wrap: anywhere; }
.hvac-dl dd small { font-weight: 700; margin-left: 6px; }
.hvac-dl dd small.ok { color: #1f7a45; }
.hvac-dl dd small.warn { color: #b26a00; }
.hvac-about { margin: 0; font-size: 15px; line-height: 1.6; color: var(--hv-ink, #14231b); white-space: pre-line; }
.hvac-empty { margin: 0; font-size: 14px; color: var(--hv-muted, #6b776f); }

.hvac select, .hvac .form-control, .hvac-modal select, .hvac-modal .form-control, .hvac-modal textarea { width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--hv-line, #e7e2d6); border-radius: 12px; background-color: #fff; font-size: 14.5px; color: var(--hv-ink, #14231b); box-shadow: none; }
.hvac-modal textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.hvac select:focus, .hvac-modal select:focus, .hvac-modal .form-control:focus { outline: 0; border-color: var(--hv-btn, #2d9e5a); box-shadow: 0 0 0 4px rgba(45, 158, 90, .14); }

.hvac-ref { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #f6f2e6; border-color: #eadfbd; }
.hvac-ref-txt { min-width: 0; }
.hvac-ref-txt small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7a6a2f; }
.hvac-ref-txt b { font-size: 22px; letter-spacing: .08em; color: var(--hv-ink, #14231b); }
.hvac-ref .hvac-btn { height: 40px; }

/* ---------- edit profile modal ---------- */
.hvac-modal .modal-content { border: 0; border-radius: 20px; overflow: hidden; }
.hvac-modal .modal-header { padding: 18px 24px; border-bottom: 1px solid var(--hv-line, #e7e2d6); }
.hvac-modal .modal-title { font-family: var(--hv-serif, Georgia, serif); font-size: 22px; text-transform: none !important; }
.hvac-modal .modal-body { padding: 22px 24px 6px; }
.hvac-modal .modal-footer { padding: 14px 24px 22px; border: 0; }
.hvac-modal .modal-footer .hvac-btn { width: 100%; height: 50px; }
.hvac-modal label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: var(--hv-ink, #14231b); }
.hvac-modal .hvac-fg { margin: 0 0 16px; }
.hvac-modal .iti { width: 100%; display: block; }
.hvac-photo { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.hvac-photo img { flex: none; width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hv-line, #e7e2d6); }
.hvac-photo input[type=file] { display: none; }
.hvac-photo label { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 9px 16px; border: 1.5px solid var(--hv-line, #e7e2d6); border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.hvac-photo label:hover { background: #f4f1e8; }
.hvac-photo small { display: block; margin-top: 6px; font-size: 12px; color: var(--hv-muted, #6b776f); }

/* ---------- change password ---------- */
.hvac-pass { max-width: 520px; }
.hvac-group { margin: 0 0 16px; }
.hvac-group label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 700; color: var(--hv-ink, #14231b); }
.hvac-field { position: relative; }
.hvac-input { width: 100%; height: 52px; padding: 0 46px 0 16px; border: 1.5px solid var(--hv-line, #e7e2d6); border-radius: 12px; background: #fff; font-size: 15px; color: var(--hv-ink, #14231b); box-shadow: none; }
.hvac-input:focus { outline: 0; border-color: var(--hv-btn, #2d9e5a); box-shadow: 0 0 0 4px rgba(45, 158, 90, .14); }
.hvac-input.is-invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1); }
.hvac-field .toggle-password { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--hv-muted, #6b776f); cursor: pointer; }
.hvac-field .toggle-password:hover { background: #f3f0e7; color: var(--hv-ink, #14231b); }
.hvac-field .toggle-password.eye::before { content: "\f06e"; }
.hvac-error { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: #b3261e; }
.hvac-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--hv-muted, #6b776f); }
.hvac-pass .hvac-btn { width: 100%; height: 52px; margin-top: 6px; }

/* ---------- tablet / phone ---------- */
@media (max-width: 991px) {
  .hvac { padding: 14px 0 28px; }
  .hvac-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* the sidebar becomes a row of scrollable pills */
  .hvac-nav { padding: 8px !important; border-radius: 16px; }
  .hvac-nav-head { display: none; }
  .hvac-nav-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hvac-nav-list::-webkit-scrollbar { display: none; }
  .hvac-nav-list li { flex: none; width: auto !important; }
  .hvac-nav-list a { white-space: nowrap; padding: 9px 14px; gap: 8px; }
  .hvac-nav-out { margin: 0 !important; padding: 0 !important; border: 0; }
}
@media (max-width: 600px) {
  .hvac-hero { flex-wrap: wrap; padding: 20px !important; gap: 14px; }
  .hvac-avatar { width: 68px; height: 68px; }
  .hvac-hero-txt h1 { font-size: 22px; }
  .hvac-hero .hvac-btn { width: 100%; }
  .hvac-dl { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hvac-card { padding: 18px !important; }
  .hvac-modal .modal-body { padding: 18px 18px 4px; }
}

/* ---------- pages not rebuilt yet (orders, address book, wishlist, wallet, loyalty, subscriptions) ----------
   They keep their own content but sit in the same frame as the new pages: centred container, spaced columns, card look. */
.container-fluid:has(.hvac-nav) { max-width: 1360px; margin: 0 auto; padding: 26px 24px 56px; }
.container-fluid:has(.hvac-nav) > .row > [class*="col-lg-3"] { padding-right: 12px; }
.container-fluid:has(.hvac-nav) > .row > [class*="col-lg-9"] { padding-left: 12px; }
.container-fluid:has(.hvac-nav) .dashboard-right { padding: 0; }
.container-fluid:has(.hvac-nav) .page-title { margin: 0 0 16px; padding: 0; }
.container-fluid:has(.hvac-nav) .page-title h2 { margin: 0 !important; font-family: var(--hv-serif, Georgia, serif); font-size: 28px; line-height: 1.15; text-transform: none !important; color: var(--hv-ink, #14231b); }
.container-fluid:has(.hvac-nav) .card-box { background: #fff; border: 1px solid var(--hv-line, #e7e2d6); border-radius: 18px; box-shadow: none; padding: 20px 22px; }
@media (max-width: 991px) {
  .container-fluid:has(.hvac-nav) { padding: 14px 14px 28px; }
  .container-fluid:has(.hvac-nav) > .row > [class*="col-lg-3"] { margin-bottom: 14px; padding: 0 15px; }
  .container-fluid:has(.hvac-nav) > .row > [class*="col-lg-9"] { padding: 0 15px; }
}

/* phone: the bottom tab bar (z-index 9000) would otherwise sit on top of every dialog and hide its buttons */
@media (max-width: 991px) {
  body .modal { z-index: 9500; }
  body .modal-backdrop { z-index: 9400; }
}

/* wallet balance in the sidebar header (always shown, even at zero) */
.hvac-nav-wallet { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #f1eee4; color: var(--hv-muted, #6b776f); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hvac-nav-wallet b { color: var(--hv-ink, #14231b); font-weight: 800; }
.hvac-nav-wallet.has { background: #e7f4ec; color: #1f7a45; }
.hvac-nav-wallet.has b { color: #14573f; }
.hvac-nav-wallet:hover { color: inherit; filter: brightness(.97); }
.hvac-nav-who { overflow: hidden; }
/* on a phone the header is hidden: show the balance on the My Wallet tab instead */
.hvac-nav-bal { display: none; font-style: normal; font-size: 12px; font-weight: 800; color: #1f7a45; }
@media (max-width: 991px) {
  .hvac-nav-bal { display: inline; margin-left: 2px; padding: 1px 7px; border-radius: 999px; background: #e7f4ec; }
}
