/* =========================
   ADDRESSES PAGE — CLEAN MOBILE-FIRST CSS
   Scoped only to addresses.html
========================= */

.addresses-body {
    min-height: 100vh;
    background:
      radial-gradient(circle at 100% 0%, rgba(255, 161, 98, 0.10), transparent 28%),
      linear-gradient(180deg, #fffdf8 0%, #faf6ee 100%);
    color: #244c44;
  }
  
  .addresses-body .nav {
    background: rgba(36, 76, 68, 0.96);
  }
  
  .addresses-page {
    width: min(1100px, 100%);
    margin: 0 auto;
    padding: 118px 20px 56px;
  }
  
  .addresses-hero {
    max-width: 650px;
    margin-bottom: 22px;
  }
  
  .addresses-hero .eyebrow {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 161, 98, 0.14);
    color: #9b5c28;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  
  .addresses-hero h1 {
    color: #244c44;
    font-size: clamp(36px, 7vw, 62px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 12px;
  }
  
  .addresses-hero p {
    max-width: 520px;
    color: #64736d;
    font-size: 15px;
    line-height: 1.6;
  }
  
  .addresses-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
  }
  
  .addresses-card,
  .addresses-note {
    border: 1px solid rgba(36, 76, 68, 0.10);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 40px rgba(36, 76, 68, 0.07);
    backdrop-filter: blur(10px);
  }
  
  .addresses-card {
    min-height: 260px;
    padding: 20px;
  }
  
  .addresses-note {
    padding: 18px;
    position: sticky;
    top: 104px;
  }
  
  .addresses-note h2 {
    color: #244c44;
    font-size: 22px;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  
  .addresses-note p {
    color: #6c7974;
    font-size: 14px;
    line-height: 1.55;
  }
  
  /* Empty / loading state */
  .addresses-empty {
    min-height: 230px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
  }
  
  .addresses-empty-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: #fff4d7;
    font-size: 28px;
    margin: 0 auto 15px;
    box-shadow: inset 0 0 0 1px rgba(36, 76, 68, 0.07);
  }
  
  .addresses-empty h2 {
    color: #244c44;
    font-size: 23px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  
  .addresses-empty p {
    max-width: 360px;
    margin: 0 auto;
    color: #6c7974;
    font-size: 14px;
    line-height: 1.55;
  }
  
  /* Address list */
  .addresses-list {
    display: grid;
    gap: 14px;
  }
  
  .saved-address-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(36, 76, 68, 0.10);
    border-radius: 20px;
    padding: 18px;
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.98), rgba(255, 255, 255, 0.96));
  }
  
  .saved-address-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #244c44;
    opacity: 0.88;
  }
  
  .saved-address-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
  }
  
  .saved-address-top h2 {
    color: #244c44;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    word-break: break-word;
  }
  
  .default-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #fff4d7;
    color: #244c44;
    font-size: 12px;
    font-weight: 800;
  }
  
  .saved-address-phone {
    color: #244c44;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 8px;
  }
  
  .saved-address-lines {
    color: #64736d;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 14px;
  }
  
  .delete-address-btn {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 0 15px;
    background: rgba(198, 40, 40, 0.08);
    color: #9e2424;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.18s ease;
  }
  
  .delete-address-btn:hover {
    background: #9e2424;
    color: #ffffff;
  }
  
  .delete-address-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }
  
  /* Add address panel */
  .address-action-head {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
  }
  
  .address-toggle-btn,
  #saveAddressBtn {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: #244c44;
    color: #fffdf8;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: 0.18s ease;
  }
  
  .address-toggle-btn:hover,
  #saveAddressBtn:hover {
    background: #a27b5c;
  }
  
  #saveAddressBtn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }
  
  .address-form {
    display: grid;
    gap: 11px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(36, 76, 68, 0.10);
  }
  
  .address-form.is-hidden {
    display: none;
  }
  
  .address-form input {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(36, 76, 68, 0.14);
    border-radius: 13px;
    padding: 0 13px;
    background: #fffdf8;
    color: #244c44;
    font-size: 14px;
    outline: none;
  }
  
  .address-form input:focus {
    border-color: #a27b5c;
    box-shadow: 0 0 0 3px rgba(162, 123, 92, 0.12);
  }
  
  .address-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #64736d;
    font-size: 13px;
    line-height: 1.45;
  }
  
  .address-checkbox input {
    width: auto;
    min-height: auto;
    margin-top: 2px;
  }
  
  #addressFormMsg {
    min-height: 18px;
    color: #64736d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
  }
  
  /* Mobile */
  @media (max-width: 800px) {
    .addresses-page {
      padding: 96px 15px 38px;
    }
  
    .addresses-hero {
      margin-bottom: 16px;
    }
  
    .addresses-layout {
      grid-template-columns: 1fr;
      gap: 14px;
    }
  
    .addresses-note {
      order: -1;
      position: static;
      border-radius: 21px;
      padding: 17px;
    }
  
    .addresses-card {
      border-radius: 21px;
      padding: 14px;
    }
  
    .addresses-empty {
      min-height: 210px;
    }
  
    .saved-address-card {
      border-radius: 18px;
      padding: 16px 15px 16px 17px;
    }
  
    .saved-address-top h2 {
      font-size: 18px;
    }
  
    .saved-address-lines {
      font-size: 13px;
    }
  
    .delete-address-btn {
      width: 100%;
    }
  }
  
  @media (max-width: 380px) {
    .addresses-page {
      padding-left: 12px;
      padding-right: 12px;
    }
  
    .addresses-hero h1 {
      font-size: 35px;
    }
  }
  