/* ===== AUTH PAGES (login, register) ===== */
.auth-section {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background: #fafafa;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 520px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.auth-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}

.auth-header p {
  color: var(--text-muted);
  font-size: .9rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: .875rem;
  margin-bottom: 20px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s;
  background: #fff;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,.1);
}

.auth-switch {
  text-align: center;
  margin-top: 20px;
  font-size: .875rem;
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

/* ===== ACCOUNT PAGE ===== */
.account-section {
  padding: 40px 0 80px;
  background: #fafafa;
  min-height: calc(100vh - 68px);
}

.account-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-info h1 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 4px;
}

.account-info p {
  color: var(--text-muted);
  font-size: .9rem;
}

.account-section-title {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}

.account-section-title h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.order-count {
  font-size: .8rem;
  color: var(--text-muted);
  background: var(--gray-light);
  padding: 2px 10px;
  border-radius: 20px;
}

/* Empty state */
.empty-orders {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.empty-orders h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-orders p {
  margin-bottom: 24px;
}

/* Orders list */
.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--gray-light);
  flex-wrap: wrap;
  gap: 8px;
}

.order-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-id {
  font-size: .85rem;
  font-weight: 700;
  color: var(--dark);
  font-family: monospace;
}

.order-date {
  font-size: .8rem;
  color: var(--text-muted);
}

.order-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-status {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 20px;
}

.status-paid    { background: #dcfce7; color: #16a34a; }
.status-pending { background: #fef9c3; color: #854d0e; }
.status-failed  { background: #fef2f2; color: #dc2626; }

.order-total {
  font-weight: 800;
  font-size: 1rem;
  color: var(--dark);
}

/* Order items */
.order-items-preview {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-item-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-item-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--gray-light);
  flex-shrink: 0;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-name {
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
}

.order-item-meta {
  font-size: .8rem;
  color: var(--text-muted);
}

.order-more {
  font-size: .8rem;
  color: var(--text-muted);
  padding-left: 4px;
}

.order-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  background: #fafafa;
}

/* ===== HOT RIGHT NOW ===== */
.hot-section {
  padding: 40px 0 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.hot-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.hot-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.hot-header p {
  font-size: .85rem;
  color: var(--text-muted);
}

.hot-grid {
  display: flex;
  flex-direction: row;
  gap: 12px;
  padding-bottom: 32px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}

.hot-grid .product-card {
  flex: 0 0 180px;
  width: 180px;
  min-width: 180px;
}

.hot-card {
  border: 2px solid transparent;
  transition: border-color .15s;
}

.hot-card:hover {
  border-color: var(--accent);
}

/* btn-sm helper */
.btn-sm {
  padding: 6px 14px !important;
  font-size: .8rem !important;
}
