/* ==========================================================================
   GENERAL STYLES (Reusable Across Components)
   ========================================================================== */

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.font-bold {
  font-weight: bold;
  color: #6c5a6a;
}

/* ==========================================================================
       BREADCRUMB AND PAGE TITLE
       ========================================================================== */

.breadcrumb {
  color: black;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
}
.breadcrumb a {
  color: black;
}
.breadcrumb a:hover {
  color: #6c5a6a;
}

.page-title {
  color: #333;
  margin-bottom: 2rem;
  font-size: 22px;
}

/* ==========================================================================
       PROFILE PAGE STYLES
       ========================================================================== */

.profile-container {
  display: flex;
  gap: 1rem;
  flex-direction: row-reverse;
  justify-content: space-around;
}

.info-card {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.button-container {
  display: flex;
  justify-content: flex-end;
}

.profile-card {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 48%
  );
  border-radius: 40px;
  border: 1px solid #6c5a6a;
  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;
}

.profile-info {
  display: flex;
  gap: 6rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.profile-avatar img {
  width: 216px;
  height: 216px;
  border-radius: 50%;
  background-color: #f0f0f0;
}

.user-details {
  flex: 1;
}

.user-name {
  color: #333;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.info-item {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.info-item .label {
  color: black;
  margin-left: 0.5rem;
  font-size: 16px;
  font-weight: bold;
}

.info-item .value {
  color: black;
  font-size: 16px;
}

.logout-link {
  color: black;
  text-decoration: none;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.edit-button,
.btn-account,
.notification-button,
.submit-row button,
.woocommerce-Button button,
.button-container .woocommerce-Button {
  background-color: #6c5a6a;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  transition: background-color 0.2s;
  text-decoration: none;
  justify-content: center;
  font-weight: 600;
}

.edit-button:hover,
.btn-account:hover,
.notification-button:hover,
.submit-row button:hover,
.woocommerce-Button button:hover,
.button-container .woocommerce-Button:hover {
  background-color: #5a4a58;
  color: white;
}

.notification-button {
  margin: 0;
}
.edit-button:hover {
  background-color: #d2afce;
}

.edit-icon {
  font-size: 1.2rem;
}

/* ==========================================================================
       SIDEBAR STYLES
       ========================================================================== */

.sidebar {
  width: 300px;
  flex-shrink: 0;
  position: relative;
}

.nav-menu {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    352deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 100%
  );
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid #6c5a6a;
  padding: 30px;
  position: relative;
}
.nav-menu-items {
  position: relative;
  z-index: 99;
}
.nav-item {
  position: relative;
  display: block;
  padding: 1rem 1.5rem;
  color: #6c5a6a;
  text-decoration: none;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
  font-weight: 500;
}
.nav-item.is-active {
  font-weight: 800;
}
.nav-item:not(:last-child)::before,
.nav-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 100%;
  transform: translateY(-50%);
}

.nav-item:not(:last-child)::before {
  content: "";
  left: 0;
  width: 100%;
  height: 1px;
  background-color: #6c5a6a;
}

.nav-item:not(:last-child)::after {
  content: "";
  right: -4px;
  width: 6px;
  height: 6px;
  background-color: #6c5a6a;
  border-radius: 50%;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item.active {
  font-weight: bold;
}

.profile-sidebar-image {
  position: absolute;
  bottom: 0;
}
.profile-sidebar-left {
  left: 0;
  rotate: 30deg;
}
.profile-sidebar-right {
  right: 0;
  rotate: -30deg;
}

:focus {
  outline: none !important;
  box-shadow: none !important;
}

.btn:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
       RESPONSIVE STYLES (Media Queries)
       ========================================================================== */

@media (max-width: 768px) {
  .profile-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .edit-button {
    margin: 1.5rem auto;
  }
}

.user-name {
  font-size: 20px;
}

.form-group {
  width: 100%;
  margin-top: 4rem;
}
.profile-avatar img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

form.woocommerce-EditAccountForm.edit-account {
  width: 100%;
}
.profile-info-edit {
  width: 100%;
}
/* ==========================================================================
       ORDERS TABLE STYLES
       ========================================================================== */

.table-container-empty {
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  position: relative;
  border-radius: 15px;
  width: 100%;
  text-align: center;
  padding: 40px;
  border: 1px solid #6c5a6a;
  border-radius: 20px;
  background: linear-gradient(
    352deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 100%
  );
}
.table-container {
  width: 100%;
  max-width: 1200px;
  overflow-x: auto;
  position: relative;
  border-radius: 15px;
  width: 100%;
  text-align: center;
}
.orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: linear-gradient(
    352deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 100%
  );
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid #6c5a6a;
  text-align: center;
}

.orders-table th {
  background-color: #fdf4ff;
  padding: 16px 20px;
  text-align: center;
  font-weight: 500;
  color: black;
  border-bottom: 1.5px solid #e5e5e5;
  position: relative;
  font-size: 14px;
}

.orders-table td {
  padding: 14px 20px;
  border-bottom: 1.5px solid #e5e5e5;
  color: #333;
  font-size: 14px;
  vertical-align: middle;
  transition: all 0.2s ease;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: var(--gray-50, #f9fafb);
}

.order-id {
  font-weight: 600;
  color: var(--primary-dark, #3a347b);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
}

.chip-success {
  background-color: var(--success-light, #dcfce7);
  color: var(--success, #22c55e);
}

.chip-pending {
  background-color: var(--pending-light, #fef3c7);
  color: var(--pending, #f59e0b);
}

.chip-info {
  background-color: var(--info-light, #e0f2fe);
  color: var(--info, #0ea5e9);
}

.chip-danger {
  background-color: var(--danger-light, #fee2e2);
  color: var(--danger, #ef4444);
}

.delivery-method {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.delivery-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background-color: var(--primary-light, #eeecff);
  color: var(--primary, #5a55ca);
}

.price {
  font-weight: 600;
  display: inline-block;
  color: var(--gray-700, #374151);
}

.view-invoice {
  background-color: #e9d8e8;
  color: #333;
  padding: 8px 20px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 13px;
  display: inline-block;
  white-space: nowrap;
}

.tracking-code {
  font-family: "Courier New", monospace;
  display: inline-block;
  font-size: 0.875rem;
  padding: 0.25rem 0.5rem;
  background-color: var(--gray-100, #f3f4f6);
  border-radius: 0.25rem;
  color: var(--gray-700, #374151);
  font-weight: 500;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.tracking-code:hover {
  background-color: var(--gray-200, #e5e7eb);
}

.load-more-container {
  text-align: center;
  padding: 1.5rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  outline: none;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--gray-300, #d1d5db);
  color: var(--gray-700, #374151);
}

.btn-outline:hover {
  background-color: var(--gray-100, #f3f4f6);
  border-color: var(--gray-400, #9ca3af);
}

.btn-primary {
  background-color: var(--primary, #5a55ca);
  color: var(--white, #ffffff);
}

.btn-primary:hover {
  background-color: var(--primary-dark, #3a347b);
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 0.375rem;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: var(--gray-400, #9ca3af);
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-700, #374151);
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: var(--gray-500, #6b7280);
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary, #5a55ca);
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Card styles for dashboard */
.dashboard {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: var(
    --shadow-md,
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06)
  );
  overflow: hidden;
  transition: all 0.2s ease;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3a347b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #eeecff;
  color: #5a55ca;
  font-size: 0.875rem;
  font-weight: 600;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 1rem;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .tracking-code {
    max-width: 120px;
  }
}

@media (max-width: 768px) {
  .delivery-method span {
    display: none;
  }

  .delivery-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .orders-table th,
  .orders-table td {
    padding: 0.75rem;
    font-size: 0.875rem;
  }

  .tracking-code {
    max-width: 80px;
  }

  .chip {
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
  }
}

/* ==========================================================================
       INVOICE STYLES
       ========================================================================== */

.invoice-container {
  width: 100%;
  background-color: #fdf4ff;
  border-radius: 40px;
  padding: 40px;
  margin: 20px auto;
  border: 1px solid #6c5a6a;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-direction: row-reverse;
}

.invoice-date {
  font-size: 16px;
  color: #333;
}

.invoice-logo {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.invoice-title {
  font-size: 16px;
  color: #333;
}

.invoice-number {
  text-align: center;
  margin: 20px 0;
  color: #333;
  font-size: 16px;
}

.customer-details {
  border: 1px solid #333;
  border-radius: 20px;
  margin-bottom: 40px;
  overflow: auto;
}

.details-table {
  width: 100%;
  border-collapse: collapse;
}

.details-table th {
  background-color: #fdf4ff;
  padding: 15px;
  font-weight: normal;
  color: #333;
  font-size: 14px;
  text-align: center;
  border-bottom: 1px solid #333;
}

.details-table td {
  padding: 15px;
  text-align: center;
  color: #333;
  font-size: 14px;
}

.product-list {
  margin: 30px 0;
}

.product-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  position: relative;
}

.product-item img {
  width: 80px;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 16px;
  padding: 5px;
  background-color: white;
}

.product-item img:hover {
  transform: scale(1.05);
}

.product-details {
  flex-grow: 1;
  order: 1;
}

.product-name {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
}

.product-quantity {
  font-size: 14px;
  color: #666;
}

.price-info {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
}

.original-price {
  color: #666;
  text-decoration: line-through;
  font-size: 14px;
  margin-bottom: 4px;
}

.final-price {
  color: #333;
  font-size: 14px;
}

.total-section {
  margin-top: 40px;
  border-top: 1px solid #666;
  padding-top: 20px;
}

.total-amount {
  text-align: left;
  font-size: 16px;
  color: #333;
  margin: 20px 0;
}

.address {
  font-size: 14px;
  color: #333;
  margin: 30px 0;
}

.notes {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #333;
  font-size: 14px;
}

.notes-icon {
  width: 20px;
  height: 20px;
}

.download-button {
  background-color: #6c5a6a;
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px auto;
  font-size: 14px;
}

.download-button:hover {
  background-color: #5a4a58;
}

/* ==========================================================================
       PRINT STYLES (Media Queries)
       ========================================================================== */

@media print {
  body {
    background: none;
    padding: 0;
  }

  .invoice-container {
    border: none;
    padding: 0;
    max-width: none;
  }

  .download-button {
    display: none;
  }

  .nav-menu,
  .breadcrumb,
  .page-title {
    display: none;
  }
}
/* ==========================================================================
       NOTIFICATIONS STYLES
       ========================================================================== */

.notifications-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(108, 90, 106, 0.08);
  border: 1px solid #6c5a6a;
}

.notifications-header {
  text-align: center;
  margin-bottom: 3rem;
}
.accordion-button::after {
  display: none;
}
.accordion-button {
  background: linear-gradient(
    352deg,
    rgba(242, 230, 245, 1) 0%,
    rgba(255, 255, 255, 1) 100%
  ) !important;
}

.accordion-button:focus,
.accordion-button:focus-visible {
  box-shadow: none !important;
  border: none !important;
  outline: none !important;
}

.accordion-item,
.accordion-item .accordion-button {
  border-radius: 30px !important;
  border-color: #6c5a6a !important;
}
.notifications-header h2 {
  font-size: 2rem;
  color: #2d1d3a;
  margin: 0;
  font-weight: 700;
}

.notifications-subtitle {
  color: #6c5a6a;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.notification-item {
  background: white;
  border-radius: 30px;
  padding: 13px;
  align-items: center;
  justify-content: center;
  display: flex;
  gap: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3sease, box-shadow 0.3sease;
  border: 1px solid rgba(108, 90, 106, 0.1);
  border: 1px solid;
}
.notification-action{
  flex-shrink: 0;
}


.notification-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.notification-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.notification-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notification-data {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.notification-title {
  font-size: 1rem;
  color: black;
  display: flex;
  flex-direction: row;
  align-content: center;
  justify-content: center;
  align-items: center;
  font-weight: 600;
  gap: 10px;
}

.notification-text {
  color: #6c5a6a;
  line-height: 1.8;
}

.view-products {
  background-color: #6c5a6a;
  color: white;
}

.view-products:hover {
  background-color: #8a7288;
  transform: translateY(-1px);
}

.coming-soon {
  background-color: #d2afce;
  color: white;
  cursor: not-allowed;
}

.festival-ended {
  background-color: #b4b3b3;
  color: white;
  cursor: not-allowed;
}

.button-icon {
  font-size: 1.2rem;
}

.no-notifications {
  text-align: center;
  padding: 4rem 2rem;
}

.no-notifications-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #6c5a6a;
}

.no-notifications p {
  color: #6c5a6a;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.no-notifications .button {
  background: linear-gradient(135deg, #6c5a6a 0%, #8a7288 100%);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
}

.no-notifications .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 90, 106, 0.2);
}

/* ==========================================================================
       RESPONSIVE NOTIFICATIONS STYLES (Media Queries)
       ========================================================================== */

@media (max-width: 768px) {
  .notifications-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .notification-item {
    flex-direction: row;
    text-align: center;
  }

  .bell-icon{
    display: none;
  }
  .notification-title{
    text-align: right;
  }
}

/* ==========================================================================
       TRACKING CODE (Specific Orders for Table)
       ========================================================================== */

/*
      Additional Styles Specific to Track Orders
    */

.orders-table tbody tr {
  transition: var(--transition-default);
}

.orders-table tbody tr.hover {
  background-color: #f8f0ff;
}

.tracking-code {
  font-family: monospace;
  background-color: #f8f0ff;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .orders-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ==========================================================================
       MY REVIEWS STYLES
       ========================================================================== */

.my-reviews-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f0ff 100%);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(108, 90, 106, 0.08);
  border: 1px solid #6c5a6a;
}

.reviews-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.reviews-header h2 {
  font-size: 2rem;
  color: #2d1d3a;
  margin: 0;
  font-weight: 700;
}

.reviews-subtitle {
  color: #6c5a6a;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.review-item {
  background: white;
  width: fit-content;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(108, 90, 106, 0.1);
}

.review-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.review-product {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.review-product-image {
  width: 100px;
  height: 100px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid #6c5a6a;
}

.review-product-image:hover img {
  transform: scale(1.05);
}

.product-info {
  flex: 1;
}

.product-title {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  line-height: 1.4;
}

.product-title a {
  color: #2d1d3a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-title a:hover {
  color: #6c5a6a;
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #6c5a6a;
  font-size: 0.9rem;
}

.review-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.star-rating {
  display: flex;
  gap: 4px;
}

.star {
  color: #ddd;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.star.filled {
  color: #ffd700;
}

.review-content {
  color: #4a4a4a;
  line-height: 1.8;
  font-size: 1rem;
  padding: 1rem 0;
  margin: 1rem 0;
}

.review-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 1rem;
}

.delete-review {
  background-color: #fff0f0;
  color: #dc3545;
  border: 1px solid #ffcdd2;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.delete-review:hover {
  background-color: #ffe0e0;
  transform: translateY(-1px);
}

.delete-icon {
  font-size: 1.1rem;
}

.no-reviews {
  text-align: center;
  padding: 4rem 2rem;
}

.no-reviews-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  color: #6c5a6a;
}

.no-reviews p {
  color: #6c5a6a;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.no-reviews .button {
  background: linear-gradient(135deg, #6c5a6a 0%, #8a7288 100%);
  color: white;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  display: inline-block;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
}

.no-reviews .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(108, 90, 106, 0.2);
}

/* ==========================================================================
       RESPONSIVE MY REVIEWS STYLES (Media Queries)
       ========================================================================== */

@media (max-width: 768px) {
  .my-reviews-container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .review-product {
    flex-direction: column;
    text-align: center;
  }

  .product-image {
    margin: 0 auto 1rem;
  }

  .review-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  .review-content {
    text-align: center;
  }

  .review-actions {
    justify-content: center;
  }
}

/* ==========================================================================
       PROFILE EDITING STYLES
       ========================================================================== */

.profile-card {
  background: rgb(255, 255, 255);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 48%
  );
  border-radius: 40px;
  padding: 2rem;
  border: 1px solid #6c5a6a;
}

.profile-info-edit {
  display: flex;
  gap: 12rem;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10rem;
}

.avatar-image {
  width: 216px;
  height: 216px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.password-section-title {
  text-align: center;
}

.password-section-form {
  display: flex;
  flex-direction: column;
}

.upload-avatar {
  border: 1px solid #6c5a6a;
  color: #6c5a6a;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  width: max-content;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-row-group {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.form-row {
  position: relative;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 14px;
}

.form-row input,
.form-row select {
  width: 100%;
  padding: 10px;
  font-size: 14px;
  background: transparent;
  border-radius: 15px;
  border: 1px solid #6c5a6a;
}

.password-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #ddd;
  margin-left: 150px;
  margin-right: 150px;
  width: 50%;
}

.password-section h3 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 18px;
}

.show-password-toggle {
  position: absolute;
  top: 40px;
  left: 10px;
  cursor: pointer;
  color: #666;
}
.show-password-toggle i {
  font-size: 24px;
}

.submit-row {
  text-align: center;
  display: flex;
  justify-content: center;
}

.submit-row button:hover {
  background-color: #5a4a58;
}

/* ==========================================================================
       PROFILE EDIT RESPONSIVE STYLES (Media Queries)
       ========================================================================== */

@media (max-width: 768px) {
  .form-row-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
       PROFILE EDITING RESPONSIVE STYLES
       ========================================================================== */

@media (max-width: 1024px) {
  .profile-info-edit {
    gap: 6rem;
  }

  .form-row-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .password-section {
    margin-left: 50px;
    margin-right: 50px;
  }
}

@media (max-width: 768px) {
  .profile-info-edit {
    gap: 3rem;
  }

  .form-row-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .profile-avatar {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }

  .avatar-image {
    width: 180px;
    height: 180px;
  }

  .password-section {
    margin-left: 20px;
    margin-right: 20px;
    padding-top: 1.5rem;
  }

  .password-section-title {
    font-size: 16px;
  }


  .button-container {
    flex-direction: column;
    align-items: stretch;
  }

  .woocommerce-Button {
    width: 100%;
    margin: 0.5rem 0;
  }
  .password-section {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .profile-info-edit {
    gap: 2rem;
  }

  .avatar-image {
    width: 150px;
    height: 150px;
  }

  .password-section {
    margin-left: 10px;
    margin-right: 10px;
    width: 100%;
  }

  .form-row label {
    font-size: 13px;
  }


  .show-password-toggle {
    top: 34px;
  }
}

/* Improve form submission feedback */
.form-submit-success {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  text-align: center;
}

.form-submit-error {
  background-color: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1rem;
  text-align: center;
}

/* Add loading state for profile upload */
.profile-avatar.uploading {
  opacity: 0.7;
  pointer-events: none;
}

.profile-avatar.uploading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #6c5a6a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Improve upload button visibility */
.upload-avatar {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.upload-avatar:hover {
  background-color: #8a7288;
  transform: translateY(-2px);
  color: white;
}

.upload-avatar span {
  font-size: 18px;
}

/* Add visual feedback for file selection */
.upload-avatar.file-selected {
  background-color: #4caf50;
}

.upload-avatar.file-selected span {
  transform: rotate(180deg);
}

/* ==========================================================================
        END OF CSS
       ========================================================================== */

/* ==========================================================================
     RESPONSIVE STYLES - GLOBAL
     ========================================================================== */

@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }

  .form-row-group {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-info {
    gap: 4rem;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }

  .form-row-group {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-info {
    gap: 3rem;
  }

  .invoice-container {
    padding: 30px;
  }

  .password-section {
    margin-left: 100px;
    margin-right: 100px;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
    padding: 0 15px;
  }

  /* Global Layout Changes */
  .profile-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    margin-bottom: 2rem;
  }

  /* Profile Card Responsive */

  .profile-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .profile-avatar {
    height: 100%;
  }

  .avatar-image {
    width: 180px;
    height: 180px;
  }
  .woocommerce-EditAccountForm.edit-account {
    gap: 10px !important;
  
  }

  .form-group{
    margin-top: 0;
  }

  /* Form Elements Responsive */
  .form-row-group {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Tables Responsive */
  .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Notifications Responsive */
  .notification-item {
    flex-direction: row;
    text-align: center;
    padding: 1rem;
  }


  .notification-content {
    flex-direction: row;
    gap: 1rem;
  }

  /* Reviews Responsive */
  .review-item {
    width: 100%;
  }

  .review-product {
    flex-direction: column;
    text-align: center;
  }

  .review-meta {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Invoice Responsive */
  .invoice-container {
    padding: 20px;
    margin: 10px;
  }

  .invoice-header {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .product-item {
    text-align: center;
  }

  .price-info {
    position: static;
    transform: none;
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 576px) {
  /* Further refinements for mobile */
  .container {
    padding: 0 10px;
  }

  .page-title {
    font-size: 1.5rem;
  }

  .avatar-image {
    width: 150px;
    height: 150px;
  }

  .nav-item {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .form-row label {
    font-size: 13px;
  }

  .password-section {
    margin-left: 10px;
    margin-right: 10px;
  }

  .button-container {
    flex-direction: column;
  }

  .woocommerce-Button {
    width: 100%;
    margin: 0.5rem 0;
  }

  .notification-title {
    font-size: 1rem;
  }

  .notification-text {
    font-size: 0.9rem;
  }

  .review-product-image {
    width: 80px;
    height: 80px;
  }

  .product-title {
    font-size: 1rem;
  }

  .invoice-title,
  .invoice-date {
    font-size: 0.9rem;
  }
}

/* Print styles for invoices */
@media print {
  .nav-menu,
  .breadcrumb,
  .page-title,
  .sidebar,
  .button-container,
  .download-button {
    display: none !important;
  }

  .invoice-container {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
  }

  body {
    background: none;
  }

  * {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
}

/* RTL Support */
[dir="rtl"] {
  .nav-item::after {
    left: -4px;
    right: auto;
  }

  .price-info {
    right: auto;
    left: 0;
  }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

/* Loading States */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.7;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #6c5a6a;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translate(-50%, -50%);
}

/* High Contrast Mode */
@media screen and (-ms-high-contrast: active) {
  .button,
  .nav-item,
  .profile-card {
    border: 2px solid currentColor;
  }
}

form.woocommerce-EditAccountForm.edit-account {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.woocommerce-FormRow.woocommerce-FormRow--wide.form-row.form-row-wide {
  display: none;
}

/* Card styles for dashboard */
.dashboard {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background-color: #ffffff;
  border-radius: 40px;
  box-shadow: var(
    --shadow-md,
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06)
  );
  overflow: hidden;
  transition: all 0.2s ease;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #3a347b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #eeecff;
  color: #5a55ca;
  font-size: 0.875rem;
  font-weight: 600;
  height: 1.5rem;
  min-width: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 1rem;
}

.load-more-container {
  text-align: center;
  padding: 1.5rem 0;
}

/* Empty state styles */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.empty-icon {
  width: 4rem;
  height: 4rem;
  margin-bottom: 1.5rem;
  color: #9ca3af;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.empty-desc {
  color: #6b7280;
  max-width: 20rem;
  margin-bottom: 1.5rem;
}

/* Pagination Styles */
.pagination {
  margin-top: 30px;
  text-align: center;
}

.pagination ul {
  display: inline-flex;
  list-style: none;
  margin: 0;
  padding: 0;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.pagination ul li {
  display: inline-block;
  margin: 0;
}

.pagination ul li .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  background-color: #fff;
  border: 1px solid #dee2e6;
  border-right: none;
  color: #495057;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.pagination ul li:last-child .page-numbers {
  border-right: 1px solid #dee2e6;
}

.pagination ul li .page-numbers.current {
  background-color: #007bff;
  border-color: #007bff;
  color: #fff;
  font-weight: 600;
  z-index: 1;
}

.pagination ul li .page-numbers:hover:not(.current) {
  background-color: #f8f9fa;
  color: #0056b3;
  z-index: 2;
}

.pagination ul li .page-numbers.prev,
.pagination ul li .page-numbers.next {
  font-weight: 600;
}

/* RTL support for pagination */
html[dir="rtl"] .pagination ul li .page-numbers {
  border-left: none;
  border-right: 1px solid #dee2e6;
}

html[dir="rtl"] .pagination ul li:last-child .page-numbers {
  border-left: 1px solid #dee2e6;
  border-right: 1px solid #dee2e6;
}

html[dir="rtl"] .pagination ul li:first-child .page-numbers {
  border-right: 1px solid #dee2e6;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .pagination ul li .page-numbers {
    min-width: 35px;
    height: 35px;
    font-size: 13px;
  }

  .pagination ul li .page-numbers.prev,
  .pagination ul li .page-numbers.next {
    padding: 0 8px;
  }
}

.pagination ul li .page-numbers.current {
  background-color: #6c5a6a;
  color: #ffffff;
  border-color: #6c5a6a;
}

/* Ensure the billing address input is full width */
.form-row input#billing_address_1 {
  width: 100%;
  box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.profile-avatar img.avatar-image {
  width: 216px;
  height: 216px;
}

.reviews-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  gap: 20px;
  border-radius: 40px;
  width: 100%;
  text-align: center;
  padding: 40px;
  border: 1px solid #6c5a6a;
  border-radius: 40px;
  background: linear-gradient(
    352deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(242, 230, 245, 1) 100%
  );
}

.review-card {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
}

.review-content {
  display: flex;
  gap: 25px;
  width: 100%;
  text-align: right;
}

.review-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.review-text {
  font-size: 14px;
  color: #000000;
  margin-bottom: 10px;
  max-width: 250px;
}

.delete-btn {
  background-color: #6c5a6a;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 15px;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  gap: 5px;
}

.delete-icon {
  display: inline-block;
}

.no-reviews {
  width: 100%;
  text-align: center;
  padding: 40px;
}

.no-reviews-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.no-reviews p {
  margin-bottom: 20px;
  color: #666;
}

.no-reviews .button {
  display: inline-block;
  background: #6c5a6a;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .reviews-container {
    grid-template-columns: 1fr;
  }
  .review-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .review-content-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
/* Address Cards */
.addresses-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.address-card {
  background: white;
  border-radius: 16px;
  border: 1px solid black;
  padding: 1.5rem;
  position: relative;
}

.address-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.address-type-icon {
  color: #6c5a6a;
  flex-shrink: 0;
}

.address-info {
  flex: 1;
}

.address-label {
  display: block;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.5rem;
}

.address-text {
  margin: 0;
  color: #666;
  line-height: 1.6;
}

.address-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.edit-address {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  color: #6c5a6a;
  cursor: pointer;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.delete-address {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Add Address Button */
.add-address-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #6c5a6a;
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-top: 1rem;
}

.add-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 2rem;
  text-align: center;
  position: relative;
}

.modal-title {
  font-size: 1.5rem;
  color: #333;
  margin: 0;
}

.close-modal {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
  padding: 0.5rem;
  line-height: 1;
}

.modal-body {
  padding: 0 2rem 2rem;
}

/* Map Section */
.map-container {
  position: relative;
  margin-bottom: 2rem;
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  background: #f8f0ff;
  margin-bottom: 1rem;
}

.edit-location-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #6c5a6a;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  position: absolute;
  bottom: 1rem;
  left: 1rem;
}

/* Form Styles */
.form-row {
  margin-bottom: 1.5rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  color: #333;
  font-size: 0.9rem;
}

.form-row.full-width {
  grid-column: 1 / -1;
}

.form-row-group {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

/* Address Type Selection */

.address-type-buttons {
  display: flex;
  gap: 1rem;
}

.address-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border: 1px solid #6c5a6a;
  border-radius: 12px;
  cursor: pointer;
}

.address-type-btn.active {
  border-color: #6c5a6a;
  background: #f8f0ff;
}

.address-type-btn .icon {
  color: #6c5a6a;
}

.address-type-btn .text {
  font-size: 0.9rem;
  color: #333;
}

/* Submit Button */
.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background: #6c5a6a;
  color: white;
  border: none;
  padding: 1rem 3rem;
  border-radius: 12px;
  font-size: 1rem;
  cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .form-row-group {
    grid-template-columns: 1fr;
  }

  .address-type-buttons {
    flex-direction: column;
  }
}
