/* Karea - Login sonrası yönetim sayfaları (Siparişlerim / Üyelik / Mesaj Gönder)
   Ortak CSS: styles.css + product.css üzerine ek katman
*/

/* ---------- Page shell ---------- */
.page--account .main{
  min-height: calc(100vh - 120px);
  background: #fff;
}

/* BG layer */
.page--account.page--with-bg .main{ background: transparent; }
.page--account.page--with-bg{ position: relative; background: none; }
.page--account.page--with-bg::before{
  content: "";
  position: fixed;
  inset: 0;
  background: url("../public/gallery-main.png") center / cover no-repeat;
  z-index: -1;
  pointer-events: none;
}
@media (max-width: 900px){
  .page--account.page--with-bg::before{ position: absolute; }
}


.acc-shell{
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 20px 44px;
}

.acc-grid{
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 26px;
  align-items: start;
}
@media (max-width: 980px){
  .acc-grid{ grid-template-columns: 1fr; gap: 16px; }
}

/* ---------- Sidebar ---------- */
.acc-nav{ background: transparent; }
.acc-nav__list{
  margin: 0;
  padding: 0;
  list-style: none;
}
.acc-nav__link{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 12px;
  text-decoration: none;

  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color:#2f2f2f;
  opacity:.92;
}
.acc-nav__link:hover{ background: rgba(0,0,0,.04); }
.acc-nav__link.is-active{ background: rgba(240,75,42,.10); }

.acc-nav__logout{
  margin-top: 26px;
  padding-left: 8px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color:#2f2f2f;
  opacity:.70;
  cursor: pointer;
  user-select:none;
}
@media (max-width: 980px){
  .acc-nav{ display:none; }
}

/* ---------- Content header ---------- */
.acc-pageTitle{
  margin: 0;
  font-family: "Momo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 28px;
  letter-spacing: -0.02em;
  color:#2a2a2a;
}
.acc-pageSub{
  margin: 6px 0 16px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color:#6f6f6f;
  max-width: 680px;
  line-height: 1.45;
}

/* ---------- Card ---------- */
.acc-card{
  background: rgba(247,245,242,.86);
  border-radius: 22px;
  padding: 16px;
}
@media (max-width: 650px){
  .acc-card{ border-radius: 18px; padding: 14px; }
}

/* ---------- Form controls (test-surusu.html hissiyatı) ---------- */
.acc-formGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  align-items:start;
}
@media (max-width: 650px){
  .acc-formGrid{ grid-template-columns: 1fr; }
}

.acc-field label{
  display:block;
  margin: 0 0 6px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #3a3a3a;
}
.acc-field input,
.acc-field select,
.acc-field textarea{
  width: 100%;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 12px;
  padding: 0 12px;
  background:#fff;
  outline: none;

  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6f6f6f;
}
.acc-field input,
.acc-field select{ height: 44px; }
.acc-field textarea{
  min-height: 130px;
  padding: 12px;
  resize: vertical;
}
.acc-field input:focus,
.acc-field select:focus,
.acc-field textarea:focus{
  border-color: rgba(0,0,0,.22);
  box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}
.acc-field input[readonly],
.acc-field select[disabled],
.acc-field input:disabled,
.acc-field textarea:disabled{
  background: rgba(0,0,0,.03);
  color: rgba(47,47,47,.70);
}

/* ---------- Actions ---------- */
.acc-actions{
  display:flex;
  justify-content:flex-end;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.acc-actions .btn{
  min-width: 170px;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}
@media (max-width: 650px){
  .acc-actions{ justify-content:center; }
  .acc-actions .btn{ width: 100%; max-width: 320px; }
}

/* ---------- Inline success message ---------- */
.acc-alert{
  display:none;
  align-items:flex-start;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(46,188,79,.22);
  background: rgba(46,188,79,.10);
  margin-bottom: 12px;
}
.acc-alert.is-show{ display:flex; }

.acc-alert__icon{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(46,188,79,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  margin-top: 1px;
}
.acc-alert__icon svg{ width: 14px; height: 14px; }
.acc-alert__title{
  margin: 0;
  font-family: "Momo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  color:#1f6f35;
}
.acc-alert__desc{
  margin: 2px 0 0;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color:#2f2f2f;
  opacity:.75;
  line-height: 1.35;
}

/* ---------- Switches (marketing izinleri) ---------- */
.acc-switchGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-top: 8px;
}
@media (max-width: 650px){
  .acc-switchGrid{ grid-template-columns: 1fr; }
}
.acc-switch{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.60);
}
.acc-switch__label{
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color:#2f2f2f;
  opacity:.88;
}
.switch{
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 auto;
}
.switch input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.switch__track{
  position:absolute;
  inset:0;
  border-radius: 999px;
  background: rgba(0,0,0,.15);
  transition: all .18s ease;
}
.switch__thumb{
  position:absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background:#fff;
  box-shadow: 0 3px 10px rgba(0,0,0,.20);
  transition: transform .18s ease;
}
.switch input:checked + .switch__track{
  background: rgba(46,188,79,.85);
}
.switch input:checked + .switch__track .switch__thumb{
  transform: translateX(18px);
}

/* ---------- Generic modal (confirm) ---------- */
.acc-modal{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  z-index: 9999;
  padding: 18px;
}
.acc-modal.is-open{ display:flex; }

.acc-modalCard{
  width: min(520px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0,0,0,.25);
  padding: 18px 18px 16px;
}
.acc-modalTop{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}
.acc-modalTitle{
  margin: 0;
  font-family: "Momo", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 18px;
  letter-spacing: -0.01em;
  color:#2a2a2a;
}
.acc-modalDesc{
  margin: 10px 0 14px;
  font-family: "Nata", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color:#6f6f6f;
  line-height: 1.45;
}
.acc-modalX{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: #fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex: 0 0 auto;
}
.acc-modalX:active{ transform: scale(.98); }
.acc-modalX svg{ width: 14px; height: 14px; opacity: .8; }

.acc-modalActions{
  display:flex;
  gap: 10px;
  justify-content:flex-start;
  flex-wrap: wrap;
}
.acc-modalActions .btn{
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 12px;
  min-width: 130px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.btn--ghost{
  background: transparent;
  border: 1px solid rgba(0,0,0,.18);
  color: #3a3a3a;
}

@media (max-width: 650px){
  .acc-modalCard{ padding: 16px 16px 14px; border-radius: 16px; }
  .acc-modalTitle{ font-size: 16px; }
  .acc-modalActions{ justify-content:center; }
  .acc-modalActions .btn{ width: 100%; max-width: 260px; }
}


/* Header safety-net (product.css yüklenmese bile ikonlar devasa olmasın) */
.frame-child5{max-width: 180px; height: auto;}
.frame-icon21{ height: auto;}
.group-1-63{max-width: 30px; height: auto;}


/* Fixed shell: arka plan sabitken header/footer da sabit kalsın (odeme-yonet, ek-hizmetler)
   Scroll sadece içerikte (main) yapılır. */
html, body{ height: 100%; }

.page--account.page--with-bg.page--fixed-shell{
  overflow: hidden; /* body scroll kapatılır; içerik main içinde akar */
}

.page--account.page--with-bg.page--fixed-shell .site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

.page--account.page--with-bg.page--fixed-shell .site-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.page--account.page--with-bg.page--fixed-shell .main{
  /* header + footer için güvenli boşluk */
  padding-top: 110px;
  padding-bottom: 320px;

  /* scroll burada */
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: transparent;
}

/* içerideki kart üstte biraz daha dursun */
.page--account.page--with-bg.page--fixed-shell .pay-wrap,
.page--account.page--with-bg.page--fixed-shell .svc-wrap{
  padding-top: 26px;
  padding-bottom: 46px;
}

@media (max-width: 900px){
  .page--account.page--with-bg.page--fixed-shell .main{
    padding-top: 86px;
    padding-bottom: 220px;
  }
}

@media (max-width: 560px){
  .page--account.page--with-bg.page--fixed-shell .main{
    padding-top: 72px;
    padding-bottom: 180px;
  }
}

.page--account.page--with-bg.page--fixed-shell .site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
}

.page--account.page--with-bg.page--fixed-shell .site-footer{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
}

.page--account.page--with-bg.page--fixed-shell .main{
  /* header + footer için güvenli boşluk */
  padding-top: 110px;
  padding-bottom: 320px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 100vh;
  background: transparent;
}

/* içerideki kart üstte biraz daha dursun */
.page--account.page--with-bg.page--fixed-shell .pay-wrap,
.page--account.page--with-bg.page--fixed-shell .svc-wrap{
  padding-top: 26px;
  padding-bottom: 46px;
}

@media (max-width: 900px){
  .page--account.page--with-bg.page--fixed-shell .main{
    padding-top: 86px;
    padding-bottom: 220px;
  }
}

@media (max-width: 560px){
  .page--account.page--with-bg.page--fixed-shell .main{
    padding-top: 72px;
    padding-bottom: 180px;
  }
}


/* Sipariş durum metni iki satıra düşebilsin (Ödeme bekliyor vs.) */
.order-status, .order__status, .status-badge{
  white-space: normal !important;
  line-height: 1.1;
}
.order__status{ max-width: 120px; }

.site-footer{ background:#ff4b1f; }


/* Background sadece ana içerik alanında olsun (odeme-yonet / ek-hizmetler) */
.acc-main--bg{
  position: relative;
  overflow: visible;
}
.acc-main--bg::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("../public/gallery-main.png");
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  z-index:0;
}
.acc-main--bg > *{ position:relative; z-index:1; }

.acc-main{ padding-bottom: 40px; }
