﻿/* =========================================================
   Müşteri üyeliği: header giriş kutusu + Hesabım sayfaları
   ========================================================= */

/* ---- Header: Hoş geldiniz / Giriş yap kutusu ---- */
.header-account {
    position: relative;
    display: flex;
    align-items: center;
    margin-right: 14px;
}

.header-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    color: var(--primary-color, #fff);
    text-decoration: none;
    line-height: 1.15;
    cursor: pointer;
    transition: background .2s ease;
}

    .header-account-btn:hover {
        background: rgba(255,255,255,.16);
        color: var(--primary-color, #fff);
    }

    .header-account-btn .ha-icon {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff;
        color: #2b2b2b;
        font-size: 14px;
        font-weight: 700;
    }

    .header-account-btn .ha-text {
        display: flex;
        flex-direction: column;
        text-align: left;
    }

        .header-account-btn .ha-text small {
            font-size: 11px;
            opacity: .75;
        }

        .header-account-btn .ha-text strong {
            font-size: 13.5px;
            font-weight: 600;
            white-space: nowrap;
            max-width: 140px;
            overflow: hidden;
            text-overflow: ellipsis;
        }

.header-account-pop {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #fff;
    color: #2b2b2b;
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.18);
    padding: 20px;
    z-index: 1200;
    display: none;
}

    .header-account-pop::before {
        content: "";
        position: absolute;
        top: -8px;
        right: 28px;
        width: 16px;
        height: 16px;
        background: #fff;
        transform: rotate(45deg);
    }

.header-account.is-open .header-account-pop {
    display: block;
}

.header-account-pop h4 {
    font-size: 20px;
    margin: 0 0 4px;
    color: #2b2b2b;
}

.header-account-pop .hp-sub {
    font-size: 13px;
    color: #777;
    margin: 0 0 14px;
}

.header-account-pop label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

.header-account-pop .form-control {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 8px 12px;
    margin-bottom: 12px;
    width: 100%;
}

.header-account-pop .hp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -4px 0 14px;
    font-size: 13px;
}

    .header-account-pop .hp-row label {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        margin: 0;
        font-weight: 500;
    }

    .header-account-pop .hp-row a {
        color: #2b2b2b;
        text-decoration: underline;
    }

.header-account-pop .hp-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 999px;
    border: none;
    background: var(--accent-color, #C9A581);
    color: #1a1a1a;
    font-weight: 700;
    cursor: pointer;
}

    .header-account-pop .hp-btn:hover {
        filter: brightness(.95);
    }

.header-account-pop .hp-btn-outline {
    background: #fff;
    border: 1px solid #ddd;
    color: #2b2b2b;
    margin-top: 10px;
    text-decoration: none;
}

.header-account-pop .hp-divider {
    text-align: center;
    font-size: 12px;
    color: #999;
    margin: 14px 0 0;
    position: relative;
}

    .header-account-pop .hp-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: #eee;
    }

    .header-account-pop .hp-divider span {
        background: #fff;
        padding: 0 10px;
        position: relative;
    }

.header-account-pop .hp-menu a, .header-account-pop .hp-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 10px;
    border-radius: 8px;
    color: #2b2b2b;
    text-decoration: none;
    background: none;
    border: none;
    text-align: left;
    font-size: 14px;
    cursor: pointer;
}

    .header-account-pop .hp-menu a:hover, .header-account-pop .hp-menu button:hover {
        background: #faf7f2;
    }

.header-account-pop .hp-menu i {
    width: 18px;
    color: var(--accent-color, #C9A581);
}

.header-account-pop .hp-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-bottom: 8px;
}

    .header-account-pop .hp-user .ha-icon {
        width: 40px;
        height: 40px;
        background: #faf7f2;
    }

    .header-account-pop .hp-user strong {
        display: block;
        font-size: 15px;
    }

    .header-account-pop .hp-user small {
        color: #777;
    }

@media (max-width: 991px) {
    .header-account-btn .ha-text {
        display: none;
    }

    .header-account-btn {
        padding: 4px;
    }

    .header-account-pop {
        position: fixed;
        top: 70px;
        left: 12px;
        right: 12px;
        width: auto;
    }

        .header-account-pop::before {
            display: none;
        }
}

/* ---- Hesabım sayfaları ---- */
/* Tema (custom.css) gövde metnini açık gri (#CECECE), tüm başlıkları ise beyaz yapar.
   Hesabım sayfaları açık zemin üzerinde olduğundan bu değerler burada koyu renge çekilir. */
.acc-page {
    background: #f5f5f3;
    padding: 50px 0 80px;
    color: #2b2b2b;
}

    .acc-page h1,
    .acc-page h2,
    .acc-page h3,
    .acc-page h4,
    .acc-page h5,
    .acc-page h6 {
        color: #2b2b2b;
    }

    .acc-page p {
        color: inherit;
    }

    .acc-page .form-control,
    .acc-page .form-select {
        color: #2b2b2b;
    }

.acc-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 28px;
}

    .acc-card + .acc-card {
        margin-top: 20px;
    }

.acc-card-side {
    background: #faf7f2;
}

.acc-title {
    font-size: 26px;
    margin: 0 0 6px;
    color: #2b2b2b;
}

.acc-sub {
    color: #777;
    font-size: 14px;
    margin: 0 0 20px;
}

.acc-side-title {
    font-size: 20px;
    text-align: center;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 12px;
}

    .acc-side-title::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: 0;
        width: 44px;
        height: 3px;
        background: var(--accent-color, #C9A581);
        transform: translateX(-50%);
    }

.acc-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

    .acc-benefits li {
        display: flex;
        gap: 12px;
        align-items: flex-start;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        font-size: 14px;
        color: #444;
    }

        .acc-benefits li:last-child {
            border-bottom: none;
        }

    .acc-benefits i {
        color: var(--accent-color, #C9A581);
        font-size: 18px;
        margin-top: 2px;
    }

.acc-side-text {
    text-align: center;
    color: #777;
    font-size: 14px;
    margin: 0 0 10px;
}

.acc-alert {
    background: #fdecea;
    border: 1px solid #f5c6cb;
    color: #a3352b;
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 14px;
}

    .acc-alert ul {
        margin: 0;
        padding-left: 18px;
    }

.acc-form .form-control {
    height: 46px;
    border-radius: 10px;
    border: 1px solid #e3e3e3;
    background: #f7f7f7;
    padding: 10px 14px;
    font-size: 14.5px;
    width: 100%;
}

.acc-form textarea.form-control {
    height: auto;
}

.acc-form .form-control:focus {
    border-color: var(--accent-color, #C9A581);
    background: #fff;
    box-shadow: none;
    outline: none;
}

.acc-form-narrow {
    max-width: 480px;
}

.acc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 20px;
}

.acc-field {
    display: flex;
    flex-direction: column;
}

.acc-field-full {
    grid-column: 1 / -1;
}

.acc-field label {
    font-size: 13.5px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.acc-field .req {
    color: #c0392b;
}

.field-error {
    color: #c0392b;
    font-size: 12.5px;
    margin-top: 4px;
    display: block;
}

.acc-pass {
    position: relative;
}

    .acc-pass .form-control {
        padding-right: 44px;
    }

.acc-pass-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 15px;
}

.acc-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 500 !important;
    color: #444;
    cursor: pointer;
}

    .acc-check input {
        margin-top: 3px;
        width: 17px;
        height: 17px;
        flex: 0 0 auto;
    }

    .acc-check a {
        color: #2b2b2b;
        text-decoration: underline;
    }

.acc-row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 4px 0 18px;
}

.acc-link {
    color: #2b2b2b;
    text-decoration: underline;
    font-size: 14px;
}

    .acc-link:hover {
        color: var(--accent-color, #C9A581);
    }

.acc-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.acc-link-danger {
    color: #c0392b;
}

.acc-btn {
    display: inline-block;
    margin-top: 18px;
    padding: 13px 34px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
}

.acc-btn-sm {
    margin-top: 0;
    padding: 9px 18px;
    font-size: 13.5px;
}

.acc-btn-outline {
    background: #fff !important;
    color: #2b2b2b !important;
    border: 1px solid #ddd !important;
    width: 100%;
    text-align: center;
}

.acc-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 6px;
}

.acc-divider {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin: 22px 0 8px;
    position: relative;
}

    .acc-divider::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: 50%;
        height: 1px;
        background: #eee;
    }

    .acc-divider span {
        background: #fff;
        padding: 0 10px;
        position: relative;
    }

/* Sidebar */
.acc-sidebar {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
}

.acc-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid #eee;
    background: #faf7f2;
}

    .acc-user strong {
        display: block;
        font-size: 15px;
        color: #2b2b2b;
    }

    .acc-user small {
        color: #777;
        font-size: 12.5px;
        word-break: break-all;
    }

.acc-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-color, #C9A581);
    color: #1a1a1a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex: 0 0 auto;
}

.acc-nav {
    display: flex;
    flex-direction: column;
    padding: 8px;
}

.acc-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 10px;
    color: #444;
    text-decoration: none;
    font-size: 14.5px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

    .acc-nav-link i {
        width: 18px;
        color: var(--accent-color, #C9A581);
    }

    .acc-nav-link:hover {
        background: #faf7f2;
        color: #2b2b2b;
    }

    .acc-nav-link.active {
        background: #2b2b2b;
        color: #fff;
    }

        .acc-nav-link.active i {
            color: var(--accent-color, #C9A581);
        }

.acc-logout-form {
    margin: 4px 0 0;
    padding-top: 6px;
    border-top: 1px solid #eee;
}

.acc-logout {
    color: #c0392b;
}

    .acc-logout i {
        color: #c0392b;
    }

/* Dashboard */
.acc-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.acc-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #faf7f2;
    text-decoration: none;
    color: #2b2b2b;
    border: 1px solid #efe8dc;
}

    .acc-stat:hover {
        border-color: var(--accent-color, #C9A581);
        color: #2b2b2b;
    }

    .acc-stat i {
        color: var(--accent-color, #C9A581);
        font-size: 18px;
    }

    .acc-stat strong {
        font-size: 20px;
    }

    .acc-stat span {
        font-size: 12.5px;
        color: #777;
    }

.acc-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

    .acc-card-head h3 {
        font-size: 18px;
        margin: 0;
    }

.acc-empty {
    color: #777;
    font-size: 14px;
    margin: 0;
}

    .acc-empty a {
        color: #2b2b2b;
        text-decoration: underline;
    }

.acc-order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .acc-order-list li a {
        display: grid;
        grid-template-columns: 1.2fr 1.2fr 1fr auto;
        gap: 10px;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f0f0f0;
        color: #2b2b2b;
        text-decoration: none;
        font-size: 14px;
    }

    .acc-order-list li:last-child a {
        border-bottom: none;
    }

.acc-order-no {
    font-weight: 700;
}

.acc-order-date {
    color: #777;
    font-size: 13px;
}

.acc-order-total {
    font-weight: 700;
    color: var(--secondary-color, #2b2b2b);
}

.acc-address strong {
    display: block;
    margin-bottom: 4px;
}

.acc-muted {
    color: #777;
    font-size: 13.5px;
}

/* Durum rozetleri (OrderStatus enum sırası) */
.acc-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    background: #eee;
    color: #444;
    white-space: nowrap;
}

.acc-status-0 {
    background: #fff3cd;
    color: #856404;
}

.acc-status-1 {
    background: #d1ecf1;
    color: #0c5460;
}

.acc-status-2 {
    background: #e2e3ff;
    color: #3b3fa3;
}

.acc-status-3 {
    background: #d6f5e3;
    color: #1d7a46;
}

.acc-status-4 {
    background: #d4edda;
    color: #155724;
}

.acc-status-5 {
    background: #f8d7da;
    color: #721c24;
}

.acc-status-6 {
    background: #e2e3e5;
    color: #383d41;
}

/* Müşteri iptal / iade talebi */
.acc-request { border: 1px solid #ececec; border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; font-size: 14px; background: #faf7f2; }
.acc-request-1 { border-color: #f0d58c; background: #fff8e6; }
.acc-request-2 { border-color: #b7e4c7; background: #f0faf4; }
.acc-request-3 { border-color: #f3c9c9; background: #fdf1f1; }
.acc-request-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.acc-request-badge-1 { background: #fff3cd; color: #856404; }
.acc-request-badge-2 { background: #d4edda; color: #155724; }
.acc-request-badge-3 { background: #f8d7da; color: #721c24; }
.acc-request-form { border: 1px dashed #ddd; border-radius: 12px; padding: 16px 18px; margin: 0 0 18px; }
.acc-request-form h4 { font-size: 16px; margin: 0 0 6px; }

/* Sipariş listesi */
.acc-table {
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}

.acc-table-head, .acc-table-row {
    display: grid;
    grid-template-columns: 1.3fr 1.3fr 1fr 1.1fr .9fr .6fr;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
}

.acc-table-head {
    background: #faf7f2;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #666;
}

.acc-table-row {
    border-top: 1px solid #f0f0f0;
    color: #2b2b2b;
}

@media (max-width: 767px) {
    .acc-table-head {
        display: none;
    }

    .acc-table-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* Sipariş detayı */
.acc-info-box {
    background: #faf7f2;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 14px;
    height: 100%;
}

    .acc-info-box h4 {
        font-size: 15px;
        margin: 0 0 8px;
    }

.acc-section-title {
    font-size: 18px;
    margin: 26px 0 12px;
}

.acc-lines {
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
}

.acc-line {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

    .acc-line:last-child {
        border-bottom: none;
    }

.acc-line-name small {
    display: block;
    color: #6f6f6f;
    font-size: 12.5px;
}

.acc-line-qty {
    color: #777;
}

.acc-line-total {
    font-weight: 700;
}

.acc-totals {
    max-width: 360px;
    margin-left: auto;
    margin-top: 14px;
    font-size: 14.5px;
}

    .acc-totals > div {
        display: flex;
        justify-content: space-between;
        padding: 6px 0;
        color: #555;
    }

.acc-totals-grand {
    border-top: 1px solid #e5e5e5;
    margin-top: 6px;
    padding-top: 12px !important;
    font-size: 17px;
    font-weight: 700;
    color: #2b2b2b !important;
}

/* Adres defteri */
.acc-address-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.acc-address-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 14px;
    color: #444;
    background: #fff;
}

    .acc-address-card.is-default {
        border-color: var(--accent-color, #C9A581);
        background: #fffdf8;
    }

.acc-address-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.acc-badge {
    background: var(--accent-color, #C9A581);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 999px;
}

.acc-address-actions {
    display: flex;
    gap: 14px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
    font-size: 13.5px;
}

/* Favori kalbi (ürün kartı + detay) */
.shop-card-media {
    position: relative;
}

.shop-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #eee;
    background: rgba(255,255,255,.95);
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: transform .15s ease, color .15s ease;
    padding: 0;
}

    .shop-fav-btn:hover {
        color: #c0392b;
        transform: scale(1.06);
    }

    .shop-fav-btn.is-fav {
        color: #c0392b;
        border-color: #f3c9c9;
    }

    .shop-fav-btn.fav-pop {
        animation: favPop .35s ease;
    }

.shop-fav-btn-wide {
    position: static;
    width: auto;
    height: auto;
    border-radius: 999px;
    font-size: inherit;
    color: inherit;
    background: inherit;
    border: inherit;
    transform: none !important;
}

    .shop-fav-btn-wide.is-fav i {
        color: #c0392b;
    }

@keyframes favPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }

    100% {
        transform: scale(1);
    }
}

.acc-fav-grid {
    margin-top: 6px;
}

/* Checkout: kayıtlı adres seçimi */
.saved-addresses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 16px;
}

.saved-address {
    position: relative;
    display: block;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 12px 14px 12px 40px;
    font-size: 13.5px;
    cursor: pointer;
    background: #fff;
}

    .saved-address input {
        position: absolute;
        left: 14px;
        top: 15px;
    }

    .saved-address strong {
        display: block;
        margin-bottom: 2px;
    }

    .saved-address small {
        color: #777;
        display: block;
    }

    .saved-address.active {
        border-color: var(--accent-color, #C9A581);
        background: #fffdf8;
    }

.checkout-login-hint {
    background: #faf7f2;
    border: 1px solid #ece4d6;
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    color: #555;
    margin: 0 0 18px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

    .checkout-login-hint a {
        color: #2b2b2b;
        font-weight: 600;
        text-decoration: underline;
    }

@media (max-width: 767px) {
    .acc-grid {
        grid-template-columns: 1fr;
    }

    .acc-stats {
        grid-template-columns: 1fr;
    }

    .acc-card {
        padding: 20px;
    }

    .acc-order-list li a {
        grid-template-columns: 1fr 1fr;
    }
}
