/* Profile Page Styles */

/* ==========================================================================
   USER PROFILE
   ========================================================================== */
.ep-profile-shell {
  padding: 0 20px;
  max-width: 1600px;
  width: 80%;
  margin: 0 auto;
}

.ep-profile-head {
  margin-bottom: 24px;
}

.ep-profile-head h1 {
  font-size: 2rem;
  color: var(--ep-text-primary, #1a1a1a);
  font-weight: 600;
  margin: 0 0 8px 0;
}

.ep-profile-sub {
  color: #666;
  font-size: 1rem;
  margin: 0;
}

.ep-profile-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 24px;
}

.ep-profile-card {
  background: #fff;
  border: 1px solid var(--ep-border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.ep-profile-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ep-text-primary, #1a1a1a);
  padding: 20px 24px;
  border-bottom: 1px solid #e5e5e5;
}

.ep-profile-card p {
  margin: 0 0 12px;
  color: var(--ep-text-soft);
  font-size: .9rem;
}

.ep-profile-card strong {
  color: var(--ep-text);
  font-weight: 600;
}

.ep-profile-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.ep-profile-actions .ep-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: .2s ease;
  border: none;
}

.ep-profile-actions .ep-btn-primary {
  background: var(--ep-gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(var(--ep-primary-rgb), .22);
}

.ep-profile-actions .ep-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--ep-primary-rgb), .28);
}

.ep-profile-actions .ep-btn-secondary {
  background: transparent;
  color: var(--ep-primary);
  border: 1px solid rgba(var(--ep-primary-rgb), .12);
}

.ep-profile-actions .ep-btn-secondary:hover {
  background: rgba(var(--ep-primary-rgb), .06);
}

@media (max-width: 1024px) {
  .ep-profile-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ep-profile-shell {
    padding: 0 16px;
  }
  
  .ep-profile-actions {
    flex-direction: column;
  }
  
  .ep-profile-actions .ep-btn {
    width: 100%;
    text-align: center;
  }
}


/* Profile Hero Card */
.ep-profile-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  margin-bottom: 24px;
  gap: 20px;
}

.ep-profile-hero__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ep-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ep-primary, #0a84ff) 0%, #e66000 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  flex-shrink: 0;
}

.ep-profile-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ep-text-primary, #1a1a1a);
  margin: 0 0 4px 0;
}

.ep-profile-hero__meta {
  color: #666;
  font-size: 0.9rem;
}

.ep-profile-hero__right {
  display: flex;
  gap: 32px;
}

.ep-hero-stat {
  text-align: center;
}

.ep-hero-stat__value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ep-primary, #0a84ff);
  margin-bottom: 4px;
}

.ep-hero-stat__label {
  color: #666;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}


.ep-profile-body {
  padding: 24px;
}

/* Form Styles */
.ep-form-group {
  margin-bottom: 15px;
}

.ep-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: var(--ep-text, #1a1a1a);
  font-size: 0.9rem;
}

.ep-form-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.ep-form-group input:focus {
  outline: none;
  border-color: var(--ep-primary, #0a84ff);
}

.ep-form-errors {
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
}

/* Orders List */
.ep-orders-card {
  grid-column: span 1;
}

.ep-orders-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ep-order {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 16px;
  transition: box-shadow 0.2s ease;
}

.ep-order:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.ep-order-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.ep-order-head strong {
  font-size: 1rem;
  color: var(--ep-text-primary, #1a1a1a);
}

.ep-order-meta {
  font-size: 0.85rem;
  color: #666;
  margin-top: 4px;
}

.ep-order-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.ep-order-badge--new {
  background: #e3f2fd;
  color: #1976d2;
}

.ep-order-badge--processing {
  background: #fff3e0;
  color: #f57c00;
}

.ep-order-badge--completed {
  background: #e8f5e9;
  color: #388e3c;
}

.ep-order-badge--cancelled {
  background: #ffebee;
  color: #d32f2f;
}

.ep-order-total-small {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ep-primary, #0a84ff);
}

.ep-order-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ep-order-item-small {
  display: flex;
  gap: 12px;
}

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

.ep-order-item-small__left img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 4px;
  background: #f9f9f9;
  flex-shrink: 0;
}

/* Brand logo fallback styling for profile */
.ep-profile-media__brand {
  width: 48px;
  height: 48px;
  padding: 6px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-sizing: border-box;
}

.ep-profile-media__brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.85;
}

.ep-order-item-small__left a {
  color: var(--ep-text-primary, #1a1a1a);
  text-decoration: none;
  font-size: 0.9rem;
}

.ep-order-item-small__left a:hover {
  color: var(--ep-primary, #0a84ff);
}

.ep-order-item-meta {
  font-size: 0.8rem;
  color: #666;
  margin-top: 2px;
}

.ep-deleted-item {
  color: #999;
  font-style: italic;
}

.ep-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
  .ep-profile-grid {
    grid-template-columns: 1fr;
  }

  .ep-orders-card {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .ep-profile-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .ep-profile-hero__right {
    width: 100%;
    justify-content: space-around;
  }

  .ep-form-group input {
    width: 100%;
  }
}

