/* =====================================
   WooCommerce Hesabım - Final
   ===================================== */

/* Breadcrumb kaldır */
body.woocommerce-account .grocery-supermarket-chain-breadcrumb{ display:none !important; }

/* Sidebar kapat */
body.woocommerce-account #secondary,
body.woocommerce-account .widget-area,
body.woocommerce-account .sidebar,
body.woocommerce-account [id*="sidebar"],
body.woocommerce-account [class*="sidebar"]{ display:none !important; }

/* Bootstrap container daraltmasını kaldır (Hesabım) */
body.woocommerce-account #content > .container,
body.woocommerce-account #content .site-content > .container,
body.woocommerce-account .site-content > .container,
body.woocommerce-account .wrap-detail-page{
  max-width: 100% !important;
  width: 100% !important;
}

/* Bootstrap grid: sağ kolonu kaldır, içeriği %100 yap */
body.woocommerce-account .wrap-detail-page .col-lg-4{ display:none !important; }
body.woocommerce-account .wrap-detail-page .col-lg-8{
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Başlık boşlukları */
body.woocommerce-account .entry-title{
  margin: 0 0 12px !important;
}

/* PC'de "Hesabım" başlığını içerikle aynı hizada ortala */
body.woocommerce-account h1.page-title.entry-title{
  max-width: 1400px !important;
  margin: 0 auto 16px !important;
  padding: 0 16px !important; /* içerikle aynı iç boşluk */
}

/* Woo layout (PC) */
body.woocommerce-account .woocommerce{
  display:flex !important;
  gap: 18px !important;
  align-items: flex-start !important;
  width:100% !important;
  max-width: 1400px !important;
  margin: 12px auto 40px !important;
  padding: 0 !important;
}

/* Kartlar */
body.woocommerce-account .woocommerce-MyAccount-navigation{
  flex: 0 0 300px !important;
  background:#fff !important;
  border:1px solid #eee !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(0,0,0,.08) !important;
  padding:16px !important;
}

body.woocommerce-account .woocommerce-MyAccount-content{
  flex: 1 1 auto !important;
  min-width: 0 !important;
  background:#fff !important;
  border:1px solid #eee !important;
  border-radius:16px !important;
  box-shadow:0 10px 30px rgba(0,0,0,.08) !important;
  padding:20px !important;
}

/* Menü */
body.woocommerce-account .woocommerce-MyAccount-navigation ul{ list-style:none !important; padding:0 !important; margin:0 !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li{ margin:0 0 6px !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:block !important;
  padding:10px 12px !important;
  border-radius:12px !important;
  text-decoration:none !important;
  font-weight:600 !important;
  color:#111 !important;
}
body.woocommerce-account .woocommerce-MyAccount-navigation a:hover{ background:#f3f4f6 !important; }
body.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a{
  background:linear-gradient(135deg,#5b2bff 0%, #2b6bff 100%) !important;
  color:#fff !important;
}

/* =====================================
   My Account Menü ikonları (Font Awesome)
   ===================================== */

body.woocommerce-account .woocommerce-MyAccount-navigation a{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
}

/* icon temel */
body.woocommerce-account .woocommerce-MyAccount-navigation a::before{
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display:inline-block;
  width: 18px;
  text-align:center;
  opacity:.95;
  content:"\f0ca"; /* default: list */
}

/* Pano */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--dashboard a::before{
  content:"\f0e4"; /* tachometer-alt */
}

/* Siparişler */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--orders a::before{
  content:"\f07a"; /* shopping-cart */
}

/* İndirmeler */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--downloads a::before{
  content:"\f019"; /* download */
}

/* Adresler */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-address a::before{
  content:"\f3c5"; /* map-marker-alt */
}

/* Hesap detayları */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--edit-account a::before{
  content:"\f007"; /* user */
}

/* Oturumu kapat */
body.woocommerce-account .woocommerce-MyAccount-navigation-link--customer-logout a::before{
  content:"\f2f5"; /* sign-out-alt */
}


/* Formlar */
body.woocommerce-account input,
body.woocommerce-account select,
body.woocommerce-account textarea{
  width:100% !important;
  border-radius:12px !important;
  border:1px solid #e5e7eb !important;
  padding:12px 14px !important;
}

/* Adresler */
body.woocommerce-account .woocommerce-Addresses{
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 16px !important;
}
body.woocommerce-account .woocommerce-Address{ width:100% !important; margin:0 !important; }

/* PC: Header altındaki gereksiz üst boşluğu kaldır */
@media (min-width: 992px){

  body.woocommerce-account #content.site-content{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.woocommerce-account .wrap-detail-page{
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  body.woocommerce-account .wrap-detail-page .row,
  body.woocommerce-account .wrap-detail-page .col-lg-8{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* Başlığın üst boşluğunu da tamamen temizle */
  body.woocommerce-account .page-title.entry-title{
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
}


/* MOBİL */
@media (max-width: 991px){

  /* Üst/alt + sağ/sol boşlukları kır */
  body.woocommerce-account #content,
  body.woocommerce-account .site-content,
  body.woocommerce-account .wrap-detail-page,
  body.woocommerce-account .entry-content,
  body.woocommerce-account .site-main,
  body.woocommerce-account #primary{
    margin:0 !important;
    padding:0 !important;
  }

  /* kontrollü yan boşluk */
  body.woocommerce-account .wrap-detail-page{
    padding-left:0px !important;
    padding-right:0px !important;
  }

  body.woocommerce-account .woocommerce{
    display:block !important;
    max-width:100% !important;
    margin: 10px 0 20px !important;
  }

  body.woocommerce-account .woocommerce-MyAccount-navigation,
  body.woocommerce-account .woocommerce-MyAccount-content{
    margin: 0 0 12px !important;
  }

  body.woocommerce-account .woocommerce-Addresses{
    grid-template-columns: 1fr !important;
  }
}
