/* =========================================================
   DIVODRIP — ACCOUNT / ORDERS / TRACK-ORDER PAGES
   Depends on style.css (tokens, header, footer, newsletter)
   Breakpoints: laptop (base), tablet <=1024px/900px, mobile <=600px
   ========================================================= */

/* ---------- Shared: breadcrumb ---------- */
.acc-breadcrumb {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 40px 0;
  font-size: 13px;
  color: var(--muted);
}
.acc-breadcrumb a { color: var(--muted); }
.acc-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.acc-breadcrumb span { margin: 0 4px; color: #c7c7cc; }
.acc-breadcrumb .current { color: var(--ink); font-weight: 700; }

.acc-page-head {
  max-width: 1600px;
  margin: 0 auto;
  padding: 14px 40px 22px;
}
.acc-page-head h1 { font-size: 28px; font-weight: 800; }
.acc-page-head p { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* ---------- Shared: two-column account layout ---------- */
.acc-wrap {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 40px 60px;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 26px;
  align-items: start;
}

/* Left sidebar: profile card + nav */
.acc-side { display: flex; flex-direction: column; gap: 18px; }

.acc-profile-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.acc-avatar-initials {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}
.acc-profile-card strong { display: block; font-size: 15.5px; font-weight: 800; }
.acc-profile-card span { display: block; font-size: 12.5px; color: var(--muted); margin: 3px 0 10px; }
.acc-profile-card a { font-size: 12.5px; font-weight: 700; color: var(--gold); }

.acc-nav {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.acc-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.acc-nav a:last-child { border-bottom: 0; }
.acc-nav a i { width: 16px; color: var(--muted); font-size: 15px; }
.acc-nav a:hover { background: var(--surface); }
.acc-nav a.active { background: var(--gold); color: #fff; }
.acc-nav a.active i { color: #fff; }

.account-inline-button,
.link-button {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.stat-card.account-inline-button {
  width: 100%;
}

.stat-card.account-inline-button span:last-child,
.link-button {
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
}

.recent-order-item.account-inline-button {
  width: 100%;
}

.acc-help-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.acc-help-card i { font-size: 20px; color: var(--gold); margin-bottom: 8px; display: block; }
.acc-help-card strong { display: block; font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.acc-help-card span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }

.btn-dark-full, .acc-help-card .btn-solid-gold {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 42px; border-radius: 6px; border: 0;
  background: var(--gold); color: #fff; font-weight: 800; font-size: 13.5px;
  cursor: pointer;
}

/* ---------- Edit profile form ---------- */
.profile-edit-card .form-field { margin-bottom: 16px; }
.profile-edit-card .form-field label {
  display: block; font-size: 11.5px; font-weight: 700; color: var(--muted);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .3px;
}
.profile-edit-card .form-field input {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13.5px; font-family: inherit; color: var(--ink);
}
.profile-edit-card .form-field input:focus,
.profile-edit-card .form-field textarea:focus { outline: none; border-color: var(--gold); }
.profile-edit-card .form-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 6px; font-size: 13.5px; font-family: inherit; color: var(--ink); resize: vertical;
}
.profile-edit-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.profile-edit-actions .btn-dark-full { width: auto; padding: 0 22px; }
.profile-edit-success {
  display: flex; align-items: center; gap: 8px; margin-top: 14px;
  color: #1f8a4c; font-size: 13px; font-weight: 700;
}
.profile-edit-success.is-hidden { display: none; }

/* ---------- DASHBOARD: stat cards ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
.stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.stat-card .icon-circle {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.stat-card .label { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.stat-card strong { display: block; font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.stat-card a { font-size: 12.5px; font-weight: 700; color: var(--gold); }

/* ---------- DASHBOARD: overview / address / recent-orders row ---------- */
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 18px;
  margin-bottom: 26px;
  align-items: start;
}
.dash-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-card-head h3 { font-size: 13px; font-weight: 800; letter-spacing: .4px; color: var(--ink); }
.badge-default {
  font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  background: var(--surface); color: var(--muted);
  padding: 4px 9px; border-radius: 4px;
}

.info-row { display: flex; gap: 12px; margin-bottom: 16px; }
.info-row i { width: 16px; color: var(--muted); font-size: 14px; margin-top: 2px; }
.info-row .k { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.info-row .v { font-size: 14px; font-weight: 700; color: var(--ink); }

.dash-address strong { display: block; font-size: 14.5px; font-weight: 800; margin-bottom: 8px; }
.dash-address address { font-style: normal; font-size: 13.5px; color: #444; line-height: 1.6; margin-bottom: 10px; }
.dash-address .phone { font-size: 13.5px; color: #444; margin-bottom: 16px; }
.dash-address a { font-size: 12.5px; font-weight: 700; color: var(--gold); }

.recent-order-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.recent-order-item:last-child { border-bottom: 0; }
.recent-order-item img {
  width: 52px; height: 62px; object-fit: cover; border-radius: 6px; background: var(--surface); flex-shrink: 0;
}
.recent-order-item .info { flex: 1; min-width: 0; }
.recent-order-item .info strong { display: block; font-size: 13.5px; font-weight: 700; }
.recent-order-item .info span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.recent-order-item .right { text-align: right; flex-shrink: 0; }
.recent-order-item .price { font-size: 14px; font-weight: 800; margin-bottom: 6px; }
.recent-order-item .chev { color: var(--muted); font-size: 13px; margin-left: 10px; }
.recent-order-item .status {
  display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .3px;
  padding: 4px 9px; border-radius: 4px;
}
.status-delivered { background: #e5f2e7; color: var(--green); }
.status-shipped { background: #fdf0d8; color: #b3781c; }
.status-processing { background: #fdf0d8; color: #b3781c; }
.status-cancelled { background: #fbe3e3; color: #c53030; }

.dash-card-head a.view-all { font-size: 12.5px; font-weight: 700; color: var(--gold); }

/* ---------- DASHBOARD: recommended carousel ---------- */
.rec-section { margin-bottom: 30px; }
.rec-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.rec-head h3 { font-size: 13px; font-weight: 800; letter-spacing: .4px; }
.rec-head .arrows { display: flex; gap: 8px; }
.rec-head .arrows button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.rec-head .view-all { font-size: 12.5px; font-weight: 700; color: var(--gold); margin-right: auto; margin-left: 16px; }

.rec-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(16.66% - 15px);
  gap: 18px; overflow-x: auto; scrollbar-width: none;
}
.rec-row::-webkit-scrollbar { display: none; }
.rec-card { position: relative; }
.rec-card .img-wrap {
  position: relative; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; background: var(--surface); margin-bottom: 10px;
}
.rec-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.rec-card .wish {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted);
  box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.rec-card .title { font-size: 13px; color: var(--ink); line-height: 1.4; margin-bottom: 4px; }
.rec-card .price { font-size: 13.5px; font-weight: 800; }

/* ---------- ORDERS LIST PAGE ---------- */
.orders-head-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px;
}
.orders-search { position: relative; width: 280px; }
.orders-search input {
  width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--line); border-radius: 7px; font-size: 13.5px;
}
.orders-search i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; }

.order-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.order-tabs button {
  padding: 11px 20px; border-radius: 7px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
}
.order-tabs button.active { background: var(--gold); border-color: var(--gold); color: #fff; }

.order-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 22px; margin-bottom: 20px;
}
.order-card-top {
  display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; flex-wrap: wrap; gap: 10px;
}
.order-card-top .oid { font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.order-card-top .odate { font-size: 12px; color: var(--muted); }
.order-card-top .ototal { font-size: 16px; font-weight: 800; text-align: center; }
.order-card-top .oitems { font-size: 12px; color: var(--muted); text-align: center; }
.order-card-top .ostatus-wrap { text-align: right; }
.order-card-top .ostatus-note { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800;
  padding: 6px 12px; border-radius: 20px;
  background: var(--surface); color: var(--muted);
}
.status-pill.status-processing { background: #eff3fe; color: #2a4fba; }
.status-pill.status-shipped { background: #fdf3e4; color: #8a6116; }
.status-pill.status-delivered { background: #eaf6ee; color: #1e7a3b; }
.status-pill.status-cancelled { background: #fdf3ec; color: #7a1620; }

.order-card-body {
  display: grid; grid-template-columns: 1fr 260px; gap: 24px;
  padding: 14px 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px;
}
.order-items { display: flex; flex-direction: column; gap: 16px; }
.order-item-row { display: flex; gap: 14px; align-items: center; }
.order-item-row img { width: 56px; height: 66px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.order-item-row strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 3px; }
.order-item-row span { display: block; font-size: 12px; color: var(--muted); }

.order-side-info { display: flex; flex-direction: column; gap: 16px; }
.order-side-info .k { font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .3px; margin-bottom: 6px; }
.order-side-info .v { font-size: 13px; color: #333; line-height: 1.6; }

.order-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.oa-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 6px;
  font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: #fff; color: var(--ink);
}
.oa-btn.solid { background: var(--gold); border-color: var(--gold); color: #fff; }
.oa-btn.outline-gold { border-color: var(--gold); color: var(--gold); background: #fff; }

.orders-pagination { display: flex; justify-content: center; gap: 8px; margin: 10px 0 30px; }
.orders-pagination button {
  width: 34px; height: 34px; border-radius: 6px; border: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 700;
}
.orders-pagination button.active { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- TRACK ORDER PAGE ---------- */
.track-head-row { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.track-head-row .oid-line { font-size: 13.5px; color: var(--muted); }
.track-head-row .oid-line b { color: var(--ink); }
.track-head-row .oid-line .exp { color: var(--gold); font-weight: 700; }

.track-wrap {
  max-width: 1600px; margin: 24px auto 0; padding: 0 40px 50px;
  display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start;
}

.track-progress-card, .track-updates-card, .track-summary-card {
  border: 1px solid var(--line); border-radius: 10px; padding: 26px;
}
.track-progress-card { margin-bottom: 20px; }

.track-steps { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; position: relative; }
.track-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative; z-index: 2; }
.track-step .dot {
  width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; margin-bottom: 10px; background: #fff; border: 2px solid var(--line); color: var(--muted);
}
.track-step.done .dot { background: var(--gold); border-color: var(--gold); color: #fff; }
.track-step.current .dot { background: #fff; border-color: var(--gold); color: var(--gold); }
.track-step .label { font-size: 13px; font-weight: 700; color: var(--ink); }
.track-step .time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.track-step.current .time { color: var(--gold); font-weight: 700; }
.track-line {
  position: absolute; top: 21px; left: 5%; right: 5%; height: 2px; background: var(--line); z-index: 1;
}
.track-line-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--gold); }

.track-partner-row {
  display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.track-partner-row .k { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.track-partner-row .v { font-size: 15px; font-weight: 800; }
.track-partner-row .v.brand { color: var(--gold); }

.track-updates-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 20px; }
.update-item { display: flex; gap: 16px; margin-bottom: 22px; }
.update-item:last-child { margin-bottom: 0; }
.update-item .u-icon {
  width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0;
}
.update-item .u-body { flex: 1; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.update-item strong { display: block; font-size: 13.5px; font-weight: 700; }
.update-item .u-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.update-item .u-time { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

.track-summary-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 18px; }
.summary-item-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.summary-item-row img { width: 52px; height: 62px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.summary-item-row strong { display: block; font-size: 13.5px; font-weight: 700; }
.summary-item-row span { display: block; font-size: 12px; color: var(--muted); margin: 3px 0; }
.summary-item-row .qty { font-size: 12px; color: var(--muted); }
.summary-item-row .price { margin-left: auto; font-weight: 800; font-size: 13.5px; }

.summary-block { padding: 16px 0; border-top: 1px solid var(--line); }
.summary-block .k { font-size: 11.5px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.summary-block .v { font-size: 13px; color: #333; line-height: 1.6; }

.summary-total-row { display: flex; justify-content: space-between; font-size: 13px; color: #444; padding: 6px 0; }
.summary-total-row.grand { font-size: 16px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.summary-total-row .free { color: var(--green); font-weight: 700; }

.summary-btn-row { display: flex; gap: 10px; margin-top: 18px; }
.summary-btn-row .oa-btn { flex: 1; justify-content: center; }

.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.account-section-title h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
}

.account-section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.account-track-wrap {
  max-width: none;
  margin: 0;
  padding: 0;
}

.live-status-bar {
  margin-bottom: 22px;
  padding: 12px 14px;
  border-radius: 7px;
  background: var(--surface);
  color: #3d4542;
  font-size: 13px;
}

.account-empty-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.account-empty-panel p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   TABLET  (max-width: 1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .acc-breadcrumb, .acc-page-head, .acc-wrap, .track-wrap { padding-left: 24px; padding-right: 24px; }
  .dash-row { grid-template-columns: 1fr 1fr; }
  .dash-row .dash-card:last-child { grid-column: 1 / -1; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .rec-row { grid-auto-columns: calc(33.33% - 12px); }
}

@media (max-width: 900px) {
  .acc-wrap { grid-template-columns: 1fr; }
  .acc-side { flex-direction: row; flex-wrap: wrap; }
  .acc-profile-card, .acc-nav, .acc-help-card { flex: 1 1 260px; }
  .order-card-body { grid-template-columns: 1fr; }
  .track-wrap { grid-template-columns: 1fr; }
  .track-steps { flex-wrap: wrap; row-gap: 20px; }
  .track-line { display: none; }
  .orders-head-row { flex-direction: column; align-items: flex-start; }
  .orders-search { width: 100%; }
}

/* =========================================================
   MOBILE (max-width: 600px)
   ========================================================= */
@media (max-width: 600px) {
  .acc-breadcrumb, .acc-page-head, .acc-wrap, .track-wrap { padding-left: 16px; padding-right: 16px; }
  .acc-page-head h1 { font-size: 22px; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 14px; gap: 10px; }
  .stat-card strong { font-size: 18px; }
  .dash-row { grid-template-columns: 1fr; gap: 14px; }
  .rec-row { grid-auto-columns: 46%; gap: 12px; }
  .order-card { padding: 16px; }
  .order-card-top { flex-direction: column; align-items: flex-start; }
  .order-card-top .ostatus-wrap { text-align: left; }
  .order-actions { flex-direction: column; }
  .oa-btn { width: 100%; justify-content: center; }
  .track-steps { flex-direction: column; align-items: flex-start; gap: 16px; }
  .track-step { flex-direction: row; align-items: center; text-align: left; gap: 12px; }
  .track-step .dot { margin-bottom: 0; }
  .track-partner-row { flex-direction: column; gap: 14px; }
  .update-item .u-body { flex-direction: column; gap: 2px; }
  .update-item .u-time { text-align: left; }
}
