/* =============================
   ACCOUNT PAGE LAYOUT
============================= */

.account-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  align-items: flex-start;
}

/* =============================
   SIDEBAR
============================= */

.account-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.account-tab-btn {
  padding: 12px 16px;
  border-radius: 10px;
  border: none;
  background: var(--color-navbar-bg);
  box-shadow: var(--shadow-light);
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: 0.25s ease;
  font-size: 0.95rem;
}

.account-tab-btn i {
  font-size: 1.1rem;
}

.account-tab-btn.active,
.account-tab-btn:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-medium);
}

/* =============================
   CONTENT PANELS
============================= */

.account-content {
  width: 100%;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* =============================
   CARD STYLE (Universal)
============================= */

.card-box {
  background: var(--color-navbar-bg);
  padding: 1.7rem;
  border-radius: 14px;
  box-shadow: var(--shadow-light);
  margin-bottom: 2rem;
}

.card-box h3 {
  margin-bottom: 1rem;
}

/* Header inside cards */
.tab-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* Small utility button */
.btn-small {
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  text-decoration: none;
  transition: 0.25s;
}

.btn-small:hover {
  background: var(--color-primary-dark);
}

/* =============================
   ADDRESS CARDS
============================= */

.address-card {
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.address-card:last-child {
  margin-bottom: 0;
}

.address-type-tag {
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 6px;
  display: inline-block;
  font-weight: 600;
}

.address-type-tag.home {
  background: rgba(255, 102, 0, 0.12);
  color: #ff6600;
}

.address-type-tag.office {
  background: rgba(0, 140, 255, 0.12);
  color: #008cff;
}

.address-type-tag.other {
  background: rgba(120, 120, 120, 0.12);
  color: #555;
}

.addr-text {
  font-size: 0.92rem;
  line-height: 1.4;
}

.addr-phone {
  font-size: 0.85rem;
  opacity: 0.7;
}

.address-actions {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: flex-end;
}

.mini-link {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-decoration: none;
}

.mini-link:hover {
  text-decoration: underline;
}

.mini-link.danger {
  color: #d84343;
}

.default-tag {
  font-size: 0.75rem;
  background: #2e7d32;
  color: white;
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

/* =============================
   ORDERS SECTION
============================= */

.order-card {
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 1rem;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-date {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-top: 2px;
}

.status-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 600;
}

.status-badge.placed {
  background: #ff9800;
  color: white;
}
.status-badge.pending {
  background: #ffeb3b;
}
.status-badge.paid {
  background: #4caf50;
  color: white;
}
.status-badge.delivered {
  background: #2196f3;
  color: white;
}
.status-badge.cancelled {
  background: #f44336;
  color: white;
}

.order-total {
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.payment-pill {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

/* order item details */
.order-details {
  margin-top: 0.7rem;
}

.order-item-line {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 768px) {
  .account-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .account-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .account-tab-btn {
    flex: 1;
    white-space: nowrap;
  }
}
