/* ==========================================================
   Hesabim (My Account) sayfasi
   ========================================================== */

/* WooCommerce'in kendi native parola-goster butonu (.show-password-input) bazi
   sayfalarda (orn. checkout ici giris formu) Astra'nin konumlandirma CSS'i
   yuklenmedigi icin duz/bos bir kutu olarak gorunuyor. Kendi tutarli goz ikonu
   butonumuz (.pk-pass-toggle, asagida) ayni isi gordugu icin native olani
   her yerde gizliyoruz. */
.woocommerce form .show-password-input,
.woocommerce-page form .show-password-input {
    display: none !important;
}

/* Parola goster/gizle butonu (site geneli: giris, kayit, sifremi unuttum,
   checkout ici giris, hesabim/sifre degistir - tum type="password" alanlari) */
.pk-pass-wrap {
    position: relative;
    display: block;
}
.pk-pass-wrap input[type="password"],
.pk-pass-wrap input[type="text"] {
    padding-right: 42px !important;
    box-sizing: border-box;
}
.pk-pass-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 4px;
    margin: 0;
    cursor: pointer;
    color: #9a8fa0;
    line-height: 0;
}
.pk-pass-toggle:hover {
    color: #93436B;
}
.pk-pass-toggle--active {
    color: #93436B;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.woocommerce-MyAccount-navigation ul li {
    border-bottom: 1px solid #f0eaee;
}
.woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: none;
}
.woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    transition: all 0.2s ease;
}
.woocommerce-MyAccount-navigation ul li a::before {
    font-family: dashicons;
    font-size: 20px;
    line-height: 1;
    color: #b06a8f;
    transition: color 0.2s ease;
}
.woocommerce-MyAccount-navigation ul li a:hover {
    background: #faf5f8;
    color: #7a3b5e;
    padding-left: 26px;
}

/* ---- Mobil: kenar boslukları ve ayraç ---- */
@media (max-width: 781px) {
    .woocommerce-MyAccount-navigation ul {
        margin: 20px 16px 0;
    }
    .woocommerce-MyAccount-content {
        margin: 0 16px !important;
        padding-top: 28px;
        border-top: 1px solid #e2dade;
    }
}

/* ---- PC/tablet: sabit genislik, ortalanmis grid ---- */
@media (min-width: 782px) {

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        max-width: 1100px !important;
        width: 100% !important;
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 32px !important;
        padding-top: 32px;
        border-top: 1px solid #e2dade;
    }

    .woocommerce-MyAccount-navigation ul {
        display: grid;
        grid-template-columns: repeat(3, 220px);
        justify-content: center;
        gap: 20px;
        background: transparent;
        box-shadow: none;
        width: 100%;
    }
    .woocommerce-MyAccount-navigation ul li {
        border: none;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
        transition: all 0.2s ease;
    }
    .woocommerce-MyAccount-navigation ul li:hover {
        box-shadow: 0 6px 18px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }
    .woocommerce-MyAccount-navigation ul li a {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 10px;
        padding: 28px 12px;
        text-align: center;
        height: 100%;
    }
    .woocommerce-MyAccount-navigation ul li a::before {
        font-size: 32px;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a {
        background: #7a3b5e;
        border-radius: 14px;
        color: #fff;
    }
    .woocommerce-MyAccount-navigation ul li.is-active a::before {
        color: #fff;
    }
}

/* Her menu ogesi icin ozel ikon */
.woocommerce-MyAccount-navigation-link--dashboard a::before { content: "\f226"; }
.woocommerce-MyAccount-navigation-link--orders a::before { content: "\f174"; }
.woocommerce-MyAccount-navigation-link--edit-address a::before { content: "\f102"; }
.woocommerce-MyAccount-navigation-link--edit-account a::before { content: "\f110"; }
.woocommerce-MyAccount-navigation-link--customer-logout a::before { content: "\f158"; }
.woocommerce-MyAccount-navigation-link--subscriptions a::before { content: "\f312"; }
.woocommerce-MyAccount-navigation-link--pk-abonelik a::before { content: "\f463"; }

/* Mobilde form tasmasini engelle */
@media (max-width: 781px) {
    .woocommerce-MyAccount-content {
        overflow-x: hidden;
    }

    .woocommerce-MyAccount-content,
    .woocommerce-MyAccount-content * {
        box-sizing: border-box !important;
    }

    .woocommerce-EditAccountForm .form-row,
    .woocommerce-EditAccountForm .form-row-first,
    .woocommerce-EditAccountForm .form-row-last,
    .woocommerce-EditAccountForm p {
        width: 100% !important;
        max-width: 92% !important;
        float: none !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        clear: both !important;
    }

    .woocommerce-MyAccount-content input[type="text"],
    .woocommerce-MyAccount-content input[type="email"],
    .woocommerce-MyAccount-content input[type="password"] {
        width: 100% !important;
        max-width: 100% !important;
    }
}

.woocommerce-account .entry-content pre,
.woocommerce-account .entry-content code {
    background: transparent !important;
    font-family: inherit !important;
    padding: 0 !important;
    color: inherit !important;
}
