/**
 * My Account — Modern Design
 */

/* ===========================
   Layout
   =========================== */
.woocommerce-account .woocommerce {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
  width: 240px;
  flex-shrink: 0;
}

.woocommerce-account .woocommerce-MyAccount-content {
  flex: 1;
  min-width: 0;
}

/* ===========================
   Navigation
   =========================== */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-radius: 10px;
  transition: background 0.2s ease;
  background: transparent !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover {
  background: #f3f3f3 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active {
  background: #1a1a1a !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border-radius: 10px;
  transition: color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a br {
  display: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
  color: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:hover a {
  color: #1a1a1a;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active:hover a {
  color: #fff;
}

/* Nav icons via ::before */
.woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.7;
}

/* Dashboard */
.woocommerce-MyAccount-navigation-link--dashboard a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7'/%3E%3Crect x='14' y='3' width='7' height='7'/%3E%3Crect x='14' y='14' width='7' height='7'/%3E%3Crect x='3' y='14' width='7' height='7'/%3E%3C/svg%3E");
}

/* Orders */
.woocommerce-MyAccount-navigation-link--orders a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

/* Edit Address */
.woocommerce-MyAccount-navigation-link--edit-address a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* Payment Methods */
.woocommerce-MyAccount-navigation-link--payment-methods a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='1' y='4' width='22' height='16' rx='2' ry='2'/%3E%3Cline x1='1' y1='10' x2='23' y2='10'/%3E%3C/svg%3E");
}

/* Edit Account */
.woocommerce-MyAccount-navigation-link--edit-account a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}

/* Logout */
.woocommerce-MyAccount-navigation-link--customer-logout a::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E");
}

/* Active state: invert icons to white */
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a::before {
  filter: invert(1);
  opacity: 1;
}

/* ===========================
   Content Area
   =========================== */
.woocommerce-account .woocommerce-MyAccount-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.woocommerce-account p.order-again {
  text-align: start;
}

.woocommerce-account .woocommerce-EditAccountForm input[type="submit"] {
  margin-top: 30px;
}

/* ===========================
   Orders Table
   =========================== */
.woocommerce-orders-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
}

.woocommerce-orders-table th {
  background: #f7f7f7;
  color: #555;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  text-align: start;
  border-bottom: 1px solid #e8e8e8;
}

.woocommerce-orders-table tbody tr {
  transition: background 0.15s ease;
}

.woocommerce-orders-table tbody tr:hover {
  background: #fafafa;
}

.woocommerce-orders-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  color: #333;
}

.woocommerce-orders-table tbody tr:last-child td {
  border-bottom: none;
}

.woocommerce-orders-table td a {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
}

.woocommerce-orders-table td a:hover {
  text-decoration: underline;
}

/* Order action buttons */
td.woocommerce-orders-table__cell-order-actions a {
  display: inline-block;
  margin: 2px 4px;
  padding: 6px 14px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff !important;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none !important;
  transition: background 0.2s ease;
}

td.woocommerce-orders-table__cell-order-actions a:hover {
  background: #333;
  text-decoration: none !important;
}

/* ===========================
   Order Details
   =========================== */
.woocommerce-order-details {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  margin: 20px 0;
  padding: 20px;
  background: #fff;
}

.woocommerce-order-details table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.woocommerce-order-details table th {
  background: #f7f7f7;
  font-weight: 600;
  padding: 12px;
  text-align: start;
  border-bottom: 1px solid #e8e8e8;
}

.woocommerce-order-details table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-order-details table tbody tr:last-child {
  border-bottom: none;
}

.woocommerce-order-details table td {
  padding: 12px;
  vertical-align: middle;
}

.woocommerce-order-details .woocommerce-table__product-name {
  font-weight: 600;
  color: #1a1a1a;
}

.woocommerce-order-details .woocommerce-table__footer td {
  padding: 14px 12px;
  background: #f7f7f7;
  font-weight: 700;
  color: #1a1a1a;
}

.woocommerce-order-details table td a {
  text-decoration: none;
  color: #1a1a1a;
}

.woocommerce-order-details table td a:hover {
  text-decoration: underline;
}

/* ===========================
   Buttons (general)
   =========================== */
.woocommerce-MyAccount-content .button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.woocommerce-MyAccount-content .button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
  background: #333;
  color: #fff !important;
  transform: translateY(-1px);
}

/* ===========================
   Form Inputs (Edit Account, Addresses)
   =========================== */
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.08);
}

/* ===========================
   Addresses
   =========================== */
.woocommerce-Addresses {
  display: flex;
  gap: 20px;
}

.woocommerce-Addresses .woocommerce-Address {
  flex: 1;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
}

.woocommerce-Addresses .woocommerce-Address header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0f0f0;
}

.woocommerce-Addresses .woocommerce-Address header h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.woocommerce-Addresses .woocommerce-Address address {
  font-style: normal;
  line-height: 1.7;
  color: #555;
  font-size: 14px;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    padding: 10px 14px;
    font-size: 13px;
    gap: 6px;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul li a::before {
    width: 16px;
    height: 16px;
  }

  .woocommerce-account .woocommerce-MyAccount-content {
    width: 100%;
  }

  .woocommerce-Addresses {
    flex-direction: column;
  }

  .woocommerce-orders-table {
    font-size: 13px;
  }

  .woocommerce-orders-table th,
  .woocommerce-orders-table td {
    padding: 10px 12px;
  }
}

/* ===========================
   Login / Register
   =========================== */
#customer_login {
  display: flex;
  gap: 40px;
  width: 1100px;
  max-width: 100%;
  margin: 10px auto;
  padding: 20px;
  box-sizing: border-box;
}

#customer_login .u-column1,
#customer_login .u-column2 {
  background: #ffffff;
  padding: 35px 30px;
  border-radius: 18px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

#customer_login h2 {
  text-align: center;
  font-size: 26px;
  margin-bottom: 25px;
  font-weight: 700;
}

#customer_login .form-row {
  margin-bottom: 18px;
}

#customer_login label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

#customer_login input[type="text"],
#customer_login input[type="email"],
#customer_login input[type="password"] {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fafafa;
  font-size: 15px;
  transition: 0.3s ease;
}

#customer_login input:focus {
  outline: none;
  border-color: #111;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.password-input {
  position: relative;
}

.password-input button {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  opacity: 0.6;
}

.woocommerce-button,
.woocommerce-Button {
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.woocommerce-button:hover {
  background: #222;
  transform: translateY(-2px);
}

.woocommerce-form__label-for-checkbox {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.woocommerce-LostPassword {
  text-align: center;
  margin-top: 15px;
}

.woocommerce-LostPassword a {
  font-size: 14px;
  color: #666;
  text-decoration: none;
}

.woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

.woocommerce-privacy-policy-text {
  font-size: 13px;
  color: #777;
  margin-top: 10px;
}

@media (max-width: 768px) {
  #customer_login {
    flex-direction: column;
    gap: 25px;
    margin: 0;
    padding: 0;
  }

  #customer_login .u-column1,
  #customer_login .u-column2 {
    padding: 25px 20px;
  }

  #customer_login h2 {
    font-size: 22px;
  }
}

html[dir="rtl"] #customer_login {
  direction: rtl;
}

html[dir="rtl"] .password-input button {
  right: auto;
  left: 10px;
}
