/* ==========================================================================
   Honeyvia Account & Profile Pages (Dedicated Hub)
   ========================================================================== */

.account-page-view {
  background-color: var(--bg-cream, #fbf9f4);
  padding: 36px 0 80px;
  min-height: 80vh;
}

.account-hub-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 20px;
}

/* Sidebar */
.account-sidebar {
  background: #ffffff;
  border-radius: var(--radius-xl, 18px);
  border: 1px solid var(--honey-border, #fde68a);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account-user-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.account-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #522ea8;
  color: #ffffff;
  font-family: var(--font-sans, 'Poppins', sans-serif);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-user-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-user-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-user-email {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.account-nav-link:hover {
  background: #fff8eb;
  color: #ea580c;
  padding-left: 18px;
}

.account-nav-link.active {
  background: #fff8eb;
  color: #ea580c;
  font-weight: 700;
  border: 1px solid #fed7aa;
}

.account-nav-icon {
  font-size: 1.15rem;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-nav-text {
  flex: 1;
}

.account-nav-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
}

.account-nav-tag {
  background: #fef3c7;
  color: #b45309;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.account-nav-arrow {
  color: #cbd5e1;
  transition: transform 0.2s ease;
}

.account-nav-link:hover .account-nav-arrow,
.account-nav-link.active .account-nav-arrow {
  color: #ea580c;
  transform: translateX(3px);
}

.account-sidebar-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  color: #e11d48;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 8px;
}

.account-sidebar-logout-btn:hover {
  background: #ffe4e6;
  transform: translateY(-1px);
}

/* Main Content Card */
.account-card {
  background: #ffffff;
  border-radius: var(--radius-xl, 18px);
  border: 1px solid var(--honey-border, #fde68a);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.04));
  padding: 32px 36px;
}

.account-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 20px;
  margin-bottom: 28px;
}

.account-card-header h2 {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.8rem;
  color: var(--forest-dark, #1c1917);
  margin: 0 0 4px;
}

.account-card-header p {
  color: var(--text-muted, #64748b);
  font-size: 0.92rem;
  margin: 0;
}

/* Empty State */
.account-empty-state {
  text-align: center;
  padding: 56px 20px;
}

.empty-state-icon {
  font-size: 3.2rem;
  margin-bottom: 12px;
}

.account-empty-state h3 {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.5rem;
  color: var(--forest-dark, #1c1917);
  margin: 0 0 8px;
}

.account-empty-state p {
  color: var(--text-muted, #64748b);
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 0.94rem;
}

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

.account-order-item {
  border: 1.5px solid #f1f5f9;
  border-radius: 16px;
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: all 0.2s ease;
}

.account-order-item:hover {
  border-color: #fde68a;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}

.order-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f8fafc;
  margin-bottom: 16px;
}

.order-number {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
  display: block;
}

.order-date {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.order-status-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.order-status-badge.delivered {
  background: #ecfdf5;
  color: #047857;
}

.order-status-badge.processing,
.order-status-badge.pending {
  background: #fef3c7;
  color: #b45309;
}

.order-items-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.order-product-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.order-item-img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #f1f5f9;
}

.order-product-info {
  flex: 1;
}

.order-product-info h4 {
  font-size: 0.96rem;
  color: var(--forest-dark, #1c1917);
  margin: 0 0 2px;
}

.order-item-meta {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
}

.order-item-price {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
}

.order-item-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  background: #f8fafc;
  padding: 14px 18px;
  border-radius: 12px;
}

.order-total-label {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  font-weight: 700;
}

.order-total-value {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
}

.order-delivery-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: #047857;
}

.order-track-no {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted, #64748b);
}

.order-actions-row {
  display: flex;
  gap: 8px;
}

/* Addresses Grid */
.account-addresses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.account-address-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
}

.account-address-card.selected {
  border-color: #ea580c;
  background: #fffdfa;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.08);
}

.address-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-recipient-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
}

.address-default-badge {
  font-size: 0.72rem;
  font-weight: 800;
  background: #ecfdf5;
  color: #047857;
  padding: 3px 8px;
  border-radius: 6px;
}

.address-text-body {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
  margin: 4px 0 6px;
}

.address-phone-line {
  font-size: 0.82rem;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.address-actions-line {
  margin-top: 10px;
}

/* Wishlist Grid */
.account-wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.wishlist-product-card {
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.wishlist-prod-img {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  object-fit: cover;
}

.wishlist-prod-cat {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ea580c;
  text-transform: uppercase;
}

.wishlist-prod-title {
  font-size: 1rem;
  color: var(--forest-dark, #1c1917);
  margin: 2px 0 6px;
}

.wishlist-prod-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.wishlist-price-curr {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--forest-dark, #1c1917);
}

.wishlist-price-weight {
  font-size: 0.8rem;
  color: var(--text-muted, #64748b);
}

.wishlist-prod-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.wishlist-remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
  background: #ffffff;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wishlist-remove-btn:hover {
  color: #ef4444;
  border-color: #fee2e2;
  background: #fef2f2;
}

/* Offers Grid */
.account-offers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 18px;
}

.account-offer-card {
  border: 1.5px dashed #f59e0b;
  background: #fffbeb;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.account-offer-card.active-applied {
  border-color: #10b981;
  background: #ecfdf5;
}

.offer-card-tagline {
  font-size: 0.76rem;
  font-weight: 800;
  color: #b45309;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.offer-card-headline {
  font-family: var(--font-serif, 'Fraunces', serif);
  font-size: 1.35rem;
  color: var(--forest-dark, #1c1917);
  margin: 0;
}

.offer-card-desc {
  font-size: 0.86rem;
  color: #524233;
  line-height: 1.45;
  margin: 0 0 12px;
}

.offer-code-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  margin-top: auto;
}

.offer-code-copy-box code {
  font-family: monospace;
  font-size: 0.95rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.06em;
}

/* Responsive */
@media (max-width: 900px) {
  .account-hub-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .account-card {
    padding: 24px 20px;
  }
}
