.account-page * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

.account-page {
  background-color: #f5f7fa;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding: 20px;
}

.account-page .account-container {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 20px;
}

.account-page .sidebar {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  max-height: 80vh;
  overflow-y: auto;
}

.account-page .content-section {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.account-page h1, .account-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  position: relative;
}

.account-page h2::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 2px;
  background: #1a1a1a;
}

.account-page .sidebar ul {
  list-style: none;
}

.account-page .sidebar li {
  padding: 12px 20px;
  background: #e9ecef;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #555;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-page .sidebar li.active {
  background: #2d2d2d;
  color: white;
}

.account-page .sidebar li.active img {
  filter: brightness(0) invert(1);
}

.account-page .sidebar li:hover {
  background: #d3d7db;
}

.account-page .sidebar li img {
  width: 20px;
  height: 20px;
}

.account-page .content {
  display: none;
}

.account-page .content.active {
  display: block;
}

.account-page .overview-section .user-info {
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.account-page .overview-section .user-info p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.account-page .overview-section .user-info p.email {
  font-size: 14px;
  color: #666;
}

.account-page .overview-section .overview-cards {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.account-page .overview-section .overview-card {
  flex: 1;
  background: #e9ecef;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.account-page .overview-section .overview-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
}

.account-page .overview-section .overview-card p {
  font-size: 24px;
  font-weight: 700;
  color: #2d2d2d;
  margin: 0;
}

.account-page .overview-section .notification {
  background: #fff3cd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #856404;
}

.account-page .overview-section .recent-order {
  background: #e9ecef;
  border-radius: 8px;
  padding: 15px;
}

.account-page .overview-section .recent-order p {
  margin: 0;
  font-size: 14px;
}

.account-page .form-group {
  margin-bottom: 20px;
}

.account-page label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
}

.account-page input, .account-page select, .account-page textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.account-page input:focus, .account-page select:focus, .account-page textarea:focus {
  outline: none;
  border-color: #2d2d2d;
}

.account-page .error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  padding: 5px;
  background: #ffe6e6;
  border-radius: 5px;
  display: none;
}

.account-page .save-btn {
  width: 100%;
  padding: 12px;
  background: #2d2d2d;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.account-page .save-btn:hover {
  background: #555;
}

.account-page .orders-filter {
  margin-bottom: 20px;
}

.account-page .orders-filter select {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
}

.account-page .orders-table {
  width: 100%;
  border-collapse: collapse;
}

.account-page .orders-table th, .account-page .orders-table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}

.account-page .orders-table th {
  background: #e9ecef;
  font-weight: 600;
}

.account-page .orders-table td {
  background: #fafafa;
}

.account-page .orders-table .view-details {
  padding: 8px 12px;
  background: #2d2d2d;
  color: white;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
}

.account-page .orders-table .view-details:hover {
  background: #555;
}

.account-page .order-details-section .order-summary {
  background: #e9ecef;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

.account-page .order-details-section .order-summary p {
  margin: 5px 0;
  font-size: 14px;
}

.account-page .order-details-section .order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #ddd;
}

.account-page .order-details-section .order-item img {
  width: 60px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
}

.account-page .order-details-section .order-item-details {
  flex-grow: 1;
  font-size: 14px;
  color: #333;
}

.account-page .order-details-section .order-item-details p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

.account-page .order-details-section .order-item-details p.small {
  font-size: 14px;
  color: #666;
}

.account-page .order-details-section .order-item-price {
  font-weight: 600;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.account-page .order-details-section .order-item-price .old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
}

.account-page .order-details-section .order-item-price .new-price {
  color: #e74c3c;
}

.account-page .order-details-section .delivery-info, .account-page .order-details-section .payment-info {
  margin-top: 20px;
  padding: 15px;
  background: #e9ecef;
  border-radius: 8px;
}

.account-page .order-details-section .delivery-info p, .account-page .order-details-section .payment-info p {
  margin: 5px 0;
  font-size: 14px;
}

.account-page .order-details-section .summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 8px 0;
  font-weight: 500;
}

.account-page .order-details-section .summary-row.discount {
  color: #e74c3c;
}

.account-page .order-details-section .summary-row.total {
  font-weight: 700;
  font-size: 18px;
  margin-top: 15px;
}

.account-page .address-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.account-page .add-address-btn {
  padding: 8px 12px;
  background: #2d2d2d;
  color: white;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.account-page .add-address-btn img {
  width: 16px;
  height: 16px;
}

.account-page .add-address-btn:hover {
  background: #555;
}

.account-page .address-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.account-page .address-item {
  flex: 1 1 calc(50% - 15px);
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  background: #fafafa;
  transition: all 0.3s;
}

.account-page .address-item.default {
  border-color: #2d2d2d;
  background: #f0f0f0;
  font-weight: 500;
}

.account-page .address-item:hover {
  background: #e9ecef;
}

.account-page .address-item .title {
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 5px;
}

.account-page .address-item .actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-page .address-item .actions button {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 5px;
}

.account-page .address-item .actions .edit-btn {
  background: #2d2d2d;
  color: white;
}

.account-page .address-item .actions .delete-btn {
  background: #e74c3c;
  color: white;
}

.account-page .address-item .actions .default-btn {
  background: #28a745;
  color: white;
}

.account-page .modal-content {
  border-radius: 12px;
  padding: 10px;
}

.account-page .modal-header {
  border-bottom: 1px solid #ddd;
  padding-bottom: 15px;
}

.account-page .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.account-page .modal-body {
  padding: 20px;
}

.account-page .modal-footer {
  border-top: 1px solid #ddd;
  padding-top: 15px;
}

.account-page .modal-footer .btn-secondary {
  background: #e9ecef;
  color: #333;
  border: none;
}

.account-page .modal-footer .btn-primary {
  background: #2d2d2d;
  color: white;
  border: none;
}

.account-page .logout-btn {
  width: 100%;
  padding: 12px;
  background: #e74c3c;
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.account-page .logout-btn:hover {
  background: #c0392b;
}

@media (max-width: 768px) {
  .account-page .account-container {
      grid-template-columns: 1fr;
  }

  .account-page .address-item {
      flex: 1 1 100%;
  }

  .account-page .overview-section .overview-cards {
      flex-direction: column;
  }
}