/* --- Profile Page Styles --- */
.profile-page-container {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: flex-start;
}

.profile-sidebar {
  width: 280px;
  flex-shrink: 0;
  background: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.profile-user-info {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(90deg, #ff512f, #dd2476);
  color: white;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}
#profile-sidebar-name {
  font-weight: bold;
  margin-top: 10px;
}
#profile-sidebar-email {
  font-size: 0.8rem;
  opacity: 0.9;
}

.profile-nav {
  list-style: none;
  padding: 10px 0;
}
.profile-nav li {
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
  gap: 15px;
}
.profile-nav li:hover {
  background-color: #f5f5f5;
}
.profile-nav li.active {
  background-color: #f1f3f6;
  border-right: 3px solid #dd2476;
  color: #dd2476;
}

.profile-content {
  flex-grow: 1;
}

.profile-panel {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.profile-panel.active {
  display: block;
}
.profile-panel h2 {
  margin-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 10px;
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  font-size: 1.1rem;
}

/* Address Styles */
#cancel-address-edit {
  display: none;
}
.address-card {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}
.address-card h4 {
  margin-bottom: 5px;
}
.address-card p {
  color: #555;
  margin-bottom: 10px;
}
.address-actions {
  display: flex;
  gap: 10px;
}

/* Order History Styles */
.order-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}
.order-item-header {
  background-color: #f8f9fa;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 500;
}
.order-item-body {
  padding: 15px;
}
.order-product {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 10px;
}
.order-product img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}
.order-status {
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 4px;
  color: white;
}
.status-processing {
  background-color: #ff9f00;
}
.status-accepted {
  background-color: #28a745;
}
.status-shipped {
  background-color: #2874f0;
}
.status-delivered {
  background-color: #388e3c;
}
.status-completed {
  background-color: #388e3c;
}
.status-cancelled {
  background-color: #dc3545;
}

@media (max-width: 768px) {
  .profile-page-container {
    flex-direction: column;
  }
  .profile-sidebar {
    width: 100%;
  }
  .order-item-header {
    flex-direction: column;
    gap: 5px;
  }
}
