/* My Account Page Styles */
.account-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.account-title {
  font-family: var(--font-main);
  font-size: 42px;
  margin: 0 0 8px 0;
}

.account-subtitle {
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 40px;
}

/* Grid Layout */
.account-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
}

/* Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation {
  list-style: none;
  padding: 0;
  margin: 0;
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  overflow: hidden;
  float: none;
  width: auto;
}

.woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.woocommerce-MyAccount-navigation-link a {
  display: block;
  padding: 16px 20px;
  color: var(--black);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.2s;
  text-align: right;
}

.woocommerce-MyAccount-navigation-link a:hover {
  background: var(--cream);
  color: var(--pink);
}

.woocommerce-MyAccount-navigation-link.is-active a {
  background: var(--black);
  color: white;
  border-color: var(--black);
}

.woocommerce-MyAccount-navigation-link--customer-logout a {
  color: var(--red);
}

/* Content Area */
.woocommerce-account .woocommerce-MyAccount-content {
  background: white;
  border-radius: 16px;
  min-height: 400px;
  float: none;
  width: auto;
}

/* Dashboard Cards */
.account-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.dashboard-card {
  background: var(--cream);
  padding: 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.dashboard-card:hover {
  border-color: var(--pink);
  background: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.dashboard-card .icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.dashboard-card h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 8px 0;
}

.dashboard-card p {
  font-size: 12px;
  color: var(--gray);
  margin: 0;
}

/* Order Cards */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: collapse;
  display: none;
}

/* Hide default table */

.order-card {
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  transition: all 0.2s;
}

.order-card:hover {
  border-color: var(--pink);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-id {
  font-family: var(--font-main);
  font-size: 18px;
  letter-spacing: 1px;
}

.order-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.order-status.processing {
  background: #E8F9EE;
  color: #16A34A;
}

.order-status.completed {
  background: #F3F4F6;
  color: #6B7280;
}

.order-status.on-hold {
  background: #FFF7ED;
  color: #EA580C;
}

.order-meta {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 16px;
}

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

.order-actions a {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.2s;
}

.view-order-btn {
  background: var(--black);
  color: white;
}

.reorder-btn {
  background: white;
  border: 1.5px solid var(--black);
  color: var(--black);
}

/* Address Cards */
.u-columns.woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.woocommerce-Address {
  background: white;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  padding: 24px;
  position: relative;
}

.woocommerce-Address-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.woocommerce-Address-title h3 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
}

.edit-address-btn {
  font-size: 12px;
  font-weight: 800;
  color: var(--pink);
  text-decoration: none;
}

address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray);
}

/* Forms */
.edit-account-form {
  max-width: 600px;
}

.woocommerce-form-row {
  margin-bottom: 20px;
}

.woocommerce-form-row label {
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.woocommerce-Input {
  width: 100%;
  padding: 12px;
  border: 1.5px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}

.woocommerce-Button {
  padding: 14px 28px;
  background: var(--black);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.woocommerce-Button:hover {
  background: var(--pink);
}

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

  .woocommerce-MyAccount-navigation {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    border-radius: 0;
    border-left: none;
    border-right: none;
    margin: 0 -20px 30px;
  }

  .woocommerce-MyAccount-navigation-link {
    flex: 0 0 auto;
  }

  .woocommerce-MyAccount-navigation-link a {
    border-bottom: none;
    border-left: 1px solid var(--light-gray);
    padding: 12px 20px;
  }

  .u-columns.woocommerce-Addresses {
    grid-template-columns: 1fr;
  }
}

.woocommerce-account .woocommerce-form.woocommerce-form-login.login {
  max-width: 400px;
  margin: 0 auto 1rem;
  padding: 1rem;
}