/* ══════════════════════════════════════════════════════════
   ISIRA — Account dashboard
   ══════════════════════════════════════════════════════════ */

.acct-page {
  background: #faf8f5;
  padding: 32px 0 80px;
  color: #201c18;
  min-height: 60vh;
}

.acct-page *,
.acct-page *::before,
.acct-page *::after { box-sizing: border-box; }

.acct-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Sidebar ────────────────────────────────────────────── */
.acct-side {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  overflow: hidden;
}

.acct-side-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 18px;
  border-bottom: 1px solid #f0ebe3;
}

.acct-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f2eee5;
  color: #8a8278;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  flex-shrink: 0;
  overflow: hidden;
}

.acct-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.acct-side-name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.acct-side-email {
  font-size: 12px;
  color: #8a8278;
  margin-top: 2px;
  word-break: break-all;
}

.acct-side-edit {
  font-size: 12px;
  color: #b8873f;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.acct-nav {
  padding: 10px 0;
}

.acct-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  font-size: 14px;
  color: #5c564e;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}

.acct-nav a i {
  width: 18px;
  text-align: center;
  font-size: 15px;
  opacity: .85;
}

.acct-nav a:hover {
  background: #faf8f5;
  color: #201c18;
}

.acct-nav a.is-active {
  background: #f5f1ea;
  color: #201c18;
  border-left-color: #201c18;
  font-weight: 500;
}

.acct-nav-sep {
  height: 1px;
  background: #f0ebe3;
  margin: 8px 16px;
}

.acct-side-promo {
  margin: 8px 14px 16px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  min-height: 200px;
  background: #e8e2d6 center/cover no-repeat;
}

.acct-side-promo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32,28,24,.75), transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.acct-side-promo-overlay strong {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  display: block;
  margin-bottom: 4px;
}

.acct-side-promo-overlay span {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
}

/* ── Main ───────────────────────────────────────────────── */
.acct-main { min-width: 0; }

.acct-hero {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 200px;
  background: #e8e2d6 center/cover no-repeat;
  margin-bottom: 22px;
}

.acct-hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px 36px;
  max-width: 420px;
  color: #201c18;
}

.acct-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,248,245,.92) 0%, rgba(250,248,245,.55) 45%, transparent 75%);
  pointer-events: none;
}

.acct-hero-inner { position: relative; z-index: 1; }

.acct-hero h1 {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  margin: 0 0 8px;
  line-height: 1.15;
}

.acct-hero p {
  margin: 0;
  font-size: 15px;
  color: #5c564e;
  font-weight: 300;
}

/* Quick actions */
.acct-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.acct-quick-card {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  padding: 20px 18px;
  text-decoration: none;
  color: #201c18;
  transition: border-color .2s, box-shadow .2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 120px;
}

.acct-quick-card:hover {
  border-color: #d8cfc0;
  box-shadow: 0 4px 20px rgba(32,28,24,.06);
}

.acct-quick-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #201c18;
}

.acct-quick-card strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

.acct-quick-card span {
  font-size: 12px;
  color: #8a8278;
  line-height: 1.4;
  flex: 1;
}

.acct-quick-card em {
  font-style: normal;
  font-size: 13px;
  color: #b8873f;
  margin-top: 4px;
}

/* Section heads */
.acct-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.acct-sec-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
}

.acct-sec-head a {
  font-size: 13px;
  color: #b8873f;
  text-decoration: none;
}

.acct-sec-head a:hover { text-decoration: underline; }

/* Recent orders */
.acct-orders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.acct-order-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
}

.acct-order-row:hover { border-color: #d8cfc0; }

.acct-order-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #f2eee5;
  overflow: hidden;
}

.acct-order-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.acct-order-meta strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.acct-order-meta span {
  display: block;
  font-size: 12px;
  color: #8a8278;
  line-height: 1.45;
}

.acct-order-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
}

.acct-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c0b8a8;
  flex-shrink: 0;
}

.acct-dot--delivered,
.acct-dot--confirmed { background: #2d8a5c; }
.acct-dot--processing,
.acct-dot--shipped,
.acct-dot--pending { background: #c9a227; }
.acct-dot--cancelled { background: #c0392b; }

.acct-order-btn {
  border: 1px solid #e8e2d6;
  background: #fff;
  padding: 8px 14px;
  font-size: 12px;
  border-radius: 6px;
  color: #201c18;
  text-decoration: none;
  white-space: nowrap;
  font-family: inherit;
}

.acct-order-btn:hover {
  border-color: #201c18;
}

.acct-empty {
  text-align: center;
  padding: 40px 20px;
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  color: #8a8278;
  font-size: 14px;
}

.acct-empty a { color: #b8873f; }

/* Wishlist strip */
.acct-wl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 28px;
}

.acct-wl-card {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.acct-wl-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #f2eee5;
}

.acct-wl-card .acct-wl-body {
  padding: 12px;
}

.acct-wl-card .name {
  font-size: 13px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acct-wl-card .price {
  font-size: 13px;
  font-weight: 500;
}

.acct-wl-heart {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #201c18;
  cursor: pointer;
}

/* Bottom promo duo */
.acct-duo {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.acct-duo-card {
  border-radius: 12px;
  overflow: hidden;
  min-height: 160px;
  position: relative;
  background: #e8e2d6 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #201c18;
}

.acct-duo-card--light {
  background: #f5f1ea;
  padding: 24px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.acct-duo-card-inner {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 60%;
}

.acct-duo-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250,248,245,.88), transparent 70%);
}

.acct-duo-card--light::after { display: none; }

.acct-duo-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 24px;
  font-weight: 400;
}

.acct-duo-card p {
  margin: 0 0 12px;
  font-size: 13px;
  color: #5c564e;
}

.acct-duo-card .acct-link {
  font-size: 13px;
  color: #201c18;
  font-weight: 500;
}

/* Page title (subpages) */
.acct-page-title {
  font-family: var(--font-display, 'Cormorant Garamond', Georgia, serif);
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 20px;
}

.acct-card {
  background: #fff;
  border: 1px solid #ebe6dc;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.acct-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0ebe3;
}

/* Mobile bottom links (shown only on small screens inside main) */
.acct-mob-links {
  display: none;
}

.acct-mob-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #ebe6dc;
  text-decoration: none;
  color: #201c18;
  font-size: 15px;
}

.acct-mob-links a i.lead {
  margin-right: 12px;
  width: 20px;
  color: #8a8278;
}

.acct-quick-card-orders{
    display: none;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 991px) {
  .acct-shell {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }

  .acct-side {
    display: none; /* mobile uses stacked UI without fixed sidebar */
  }

  .acct-quick {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .acct-quick-card {
    min-height: 0;
    padding: 14px 10px;
    align-items: center;
    text-align: center;
  }

  .acct-quick-card em, .acct-quick-card .slagon { display: none; }
  .acct-quick-card-orders{display: flex;}

  .acct-quick-card strong { font-size: 11px; }

  .acct-order-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .acct-order-btn { display: none; }

  .acct-order-thumb {
    width: 56px;
    height: 56px;
  }

  .acct-order-status { font-size: 12px; }

  .acct-wl-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .acct-duo {
    grid-template-columns: 1fr;
  }

  .acct-hero {
    min-height: 160px;
  }

  .acct-hero-inner { padding: 28px 20px; }

  .acct-mob-links {
    display: block;
    margin-top: 24px;
    background: #fff;
    border: 1px solid #ebe6dc;
    border-radius: 12px;
    padding: 4px 16px;
  }

  /* Mobile: show compact user chip above hero */
  .acct-mob-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
  }
}

@media (min-width: 992px) {
  .acct-mob-user { display: none; }
}

@media (max-width: 575px) {
  .acct-quick {
    grid-template-columns: repeat(2, 1fr);
  }

  .acct-wl-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}