/* Ana Konteyner */
.ongaraj-account {
    --primary-color: #2196F3;
    --border-color: #E3E8EF;
    --text-color: #1A2B3B;
    --success-color: #22C55E;
    --error-color: #EF4444;
    --background-light: #F8FAFC;
    --hover-color: #1976D2;
    
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 16px;
}

/* Hesap Grid Yapısı */
.account-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    justify-content: start;
}

/* Masaüstü Navigasyon */
.account-nav {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 24px;
    width: 100%;
    max-width: 260px;
}

/* Kullanıcı Profil Alanı */
.account-user {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.account-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.account-user-info h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 4px 0;
}

.account-user-info p {
    font-size: 14px;
    color: #64748B;
    margin: 0;
}

/* Navigation Menü Öğeleri */
.account-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
    color: #64748B;
    transition: color 0.2s ease;
}

.nav-item span {
    font-size: 14px;
    font-weight: 500;
}

/* Aktif Menü Öğesi */
.nav-item.active {
    background: var(--primary-color);
    color: #fff;
}

.nav-item.active i {
    color: #fff;
}

/* Hover Efektleri */
.nav-item:not(.active):hover {
    background: var(--background-light);
}

.nav-item:not(.active):hover i {
    color: var(--primary-color);
}

/* Çıkış Yap Butonu */
.nav-item.logout {
    margin-top: 16px;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    color: #EF4444;
}

.nav-item.logout i {
    color: #EF4444;
}

.nav-item.logout:hover {
    background: #FEE2E2;
}

/* Mobil Tasarım */
@media (max-width: 768px) {
    .account-nav {
        position: relative;
        top: 0;
        margin-bottom: 24px;
        padding: 16px;
    }

    .account-user {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .nav-item {
        padding: 10px 14px;
    }
}

/* Mobil Menu Toggle */
.mobile-nav-toggle {
    display: none;
}

@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 16px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        margin-bottom: 16px;
        cursor: pointer;
    }

    .mobile-nav-toggle i {
        transition: transform 0.3s ease;
    }

    .mobile-nav-toggle.active i {
        transform: rotate(180deg);
    }

    .account-nav {
        display: none;
        margin-bottom: 16px;
    }

    .account-nav.active {
        display: block;
    }
}

/* Ana İçerik Alanı */
.account-content {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0;
    width: 100%;
    overflow: hidden;
}

/* Mobil Düzenlemeler */
@media (max-width: 991px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
    
    .account-nav {
        display: none !important;
        max-width: 100%;
    }
    
    .account-content {
        margin-bottom: 70px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .dashboard-welcome,
    .account-welcome {
        padding: 24px 16px;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .ongaraj-account {
        padding: 16px 12px;
    }
    
    .account-content {
        padding: 16px;
    }
}

/* Dashboard Stili */
.dashboard-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 0;
}

/* Hoşgeldin Mesajı */
.dashboard-welcome,
.account-welcome {
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    border-radius: 12px 12px 0 0 !important;
    padding: 32px 24px;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.dashboard-welcome h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: #fff !important;
}

.dashboard-welcome p {
    font-size: 14px;
    margin: 0;
    opacity: 0.9;
    color: #fff !important;
}

/* İstatistikler */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-item {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.stat-item i {
    font-size: 24px;
    color: var(--primary-color);
    background: var(--background-light);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-color);
}

.stat-label {
    font-size: 14px;
    color: #64748B;
}

/* Bölüm Başlıkları */
.dashboard-section {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.section-title h2 {
    color: var(--text-color);
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
}

.order-count {
    background: var(--background-light);
    color: var(--text-color);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: 16px;
}

.view-all i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.view-all:hover i {
    transform: translateX(4px);
}

/* Sipariş Kartları */
.orders-grid {
    display: grid;
    gap: 16px;
}

.order-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    font-weight: 600;
    color: var(--text-color);
}

.order-status {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.order-status.processing {
    background: #EFF6FF;
    color: #2563EB;
}

.order-status.completed {
    background: #F0FDF4;
    color: #16A34A;
}

.order-status.on-hold {
    background: #FEF3C7;
    color: #D97706;
}

.order-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.order-meta {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: #64748B;
}

.order-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.order-total {
    font-weight: 600;
    color: var(--text-color);
}

.order-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.order-link i {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s ease;
}

.order-link:hover i {
    transform: translateX(4px);
}

/* Ürün Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.product-image {
    position: relative !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 8px !important;
    overflow: visible !important;
    border: 1px solid var(--border-color) !important;
    background: #fff !important;
    flex-shrink: 0 !important;
}

.product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    padding: 6px !important;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: var(--text-color);
}

.product-price {
    color: var(--primary-color);
    font-weight: 600;
}

.product-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}

.product-link i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.product-link:hover i {
    transform: translateX(4px);
}

/* Boş Durumlar */
.no-orders {
    text-align: center;
    padding: 48px 24px;
}

.no-orders i {
    font-size: 48px;
    color: #94A3B8;
    margin-bottom: 16px;
}

.no-orders p {
    color: #64748B;
    margin-bottom: 24px;
}

.no-orders .button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.no-orders .button:hover {
    background: var(--hover-color);
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        padding: 24px;
    }

    .dashboard-section {
        padding: 16px;
    }

    .order-meta {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome h1 {
        font-size: 20px;
    }
}

/* Sipariş Kartı İçeriği */
.order-count {
    font-size: 14px;
    color: #64748B;
    font-weight: normal;
    margin-left: 8px;
}

.order-products {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: 8px;
    margin: 16px 0;
}

.product-preview {
    position: relative;
    flex-shrink: 0;
}

.product-preview img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
}

.additional-products {
    position: absolute;
    right: -8px;
    top: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-info h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 4px 0;
    color: var(--text-color);
}

.additional-info {
    font-size: 13px;
    color: #64748B;
}

/* Mobil Responsive Güncellemesi */
@media (max-width: 768px) {
    .order-products {
        padding: 12px;
    }

    .product-preview img {
        width: 48px;
        height: 48px;
    }

    .additional-products {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Ürün Görüntüleme Stili */
.order-products {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--background-light);
    border-radius: 8px;
    margin: 16px 0;
}

.product-preview {
    position: relative;
    flex-shrink: 0;
}

.product-image-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border-color);
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.additional-products {
    position: absolute;
    right: -8px;
    top: -8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    min-width: 24px;
    height: 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Sipariş Durumu Stilleri */
.order-status {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
}

.order-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.order-status.processing {
    background: #DBEAFE;
    color: #1E40AF;
}

.order-status.on-hold {
    background: #FEF3C7;
    color: #92400E;
}

.order-status.completed {
    background: #DCFCE7;
    color: #166534;
}

.order-status.cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

.order-status.refunded {
    background: #F3E8FF;
    color: #6B21A8;
}

.order-status.failed {
    background: #FEE2E2;
    color: #991B1B;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    .product-image-wrapper {
        width: 60px;
        height: 60px;
    }

    .additional-products {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
        right: -6px;
        top: -6px;
    }
}

/* WooCommerce mobil nav bar özelleştirmesi */
.woocommerce-mobile-nav-item.account.active {
    color: var(--primary-color);
}

.woocommerce-mobile-nav-item.account.active i {
    color: var(--primary-color);
}

/* Mobil Menü - Varsayılan olarak gizli */
.mobile-account-tabs {
    display: none;
}

/* Responsive Düzenlemeler */
@media screen and (max-width: 991px) {
    /* Ana grid tek kolon olsun */
    .account-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Masaüstü menüsünü gizle */
    .account-nav {
        display: none;
    }

    /* Mobil menüyü göster */
    .mobile-account-tabs {
        display: flex;
        overflow-x: auto;
        background: #fff;
        margin: 0 0 24px 0;
        padding: 20px;
        gap: 20px;
        border-bottom: 1px solid var(--border-color);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        position: sticky;
        top: 0;
        z-index: 99;
    }

    .mobile-account-tabs::-webkit-scrollbar {
        display: none;
    }

    .mobile-tab-item {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 20px;
        background: var(--background-light);
        border-radius: 24px;
        color: #64748B;
        font-size: 15px;
        font-weight: 500;
        white-space: nowrap;
        transition: all 0.2s ease;
        text-decoration: none;
    }

    .mobile-tab-item i {
        font-size: 18px;
    }

    .mobile-tab-item.active {
        background: var(--primary-color);
        color: #fff;
    }

    .mobile-tab-item.active i {
        color: #fff;
    }

    /* İçerik alanı düzenlemeleri */
    .account-content {
        padding: 0 16px;
        margin-bottom: 70px;
    }

    /* Sipariş kartları ve diğer içerik düzenlemeleri */
    .orders-filters {
        flex-direction: column;
        gap: 12px;
    }

    .order-meta {
        flex-direction: column;
        gap: 8px;
    }

    .product-image-wrapper {
        width: 60px;
        height: 60px;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media screen and (max-width: 480px) {
    .mobile-account-tabs {
        padding: 16px 12px;
        gap: 16px;
    }

    .mobile-tab-item {
        padding: 10px 16px;
        font-size: 14px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .dashboard-section,
    .dashboard-welcome {
        padding: 16px;
    }
}

/* Siparişler Sayfası */
.orders-page {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Header Bölümü */
.orders-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px;
    border-bottom: 1px solid #E5E7EB;
}

.orders-title h2 {
    font-size: 20px;
    font-weight: 600;
    color: #1F2937;
    margin: 0 0 4px;
}

.orders-title p {
    color: #6B7280;
    font-size: 14px;
    margin: 0;
}

.orders-count {
    background: var(--background-light);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
}

.orders-count span {
    display: block;
    font-size: 12px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.orders-count strong {
    font-size: 18px;
    color: var(--text-color);
    font-weight: 600;
}

/* Filtreler */
.orders-filters {
    display: flex;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #E5E7EB;
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #1F2937;
    background: #F9FAFB;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 14px;
}

.status-filter {
    padding: 10px 32px 10px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    color: #1F2937;
    background: #F9FAFB;
    min-width: 140px;
}

/* Sipariş Listesi */
.orders-list {
    padding: 16px 24px;
}

.order-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-main {
    padding: 16px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-number {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-number strong {
    font-size: 15px;
    color: var(--text-color);
}

.order-number time {
    font-size: 14px;
    color: var(--text-light);
}

.order-status {
    font-size: 13px;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 500;
}

.order-product {
    display: flex;
    align-items: center;
    gap: 16px;
}

.product-image {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.product-count {
    position: absolute;
    right: -15px;
    top: -15px;
    background: var(--primary-color);
    color: #fff;
    font-size: 12px;
    width: 55px;
    height: 28px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
    z-index: 2;
}

.product-info {
    flex: 1;
    min-width: 0;
}

.product-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.additional-info {
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.order-total {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-color);
    white-space: nowrap;
}

.view-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
}

.view-order i {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.view-order:hover {
    background: var(--border-color);
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .orders-header {
        flex-direction: column;
        gap: 16px;
    }

    .orders-count {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .orders-count span {
        margin: 0;
    }

    .order-info {
        flex-wrap: wrap;
        gap: 8px;
    }

    .order-product {
        flex-wrap: nowrap;
    }

    .product-info {
        flex: 1;
        min-width: 0;
    }

    .order-total {
        text-align: right;
    }
}

/* Sipariş Kartı */
.order-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.order-main {
    padding: 16px;
}

.order-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .orders-page {
        padding: 0;
    }

    .orders-list {
        padding: 16px;
        margin: 0 -16px;
    }

    .order-item {
        margin: 0 0 16px 0;
        width: 100%;
    }

    .order-main {
        padding: 12px;
    }

    .order-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-number {
        width: 100%;
        justify-content: space-between;
    }

    .order-status {
        align-self: flex-start;
    }

    .order-product {
        margin-top: 12px;
        gap: 12px;
    }

    .product-image {
        width: 70px;
        height: 70px;
    }

    .product-info {
        flex: 1;
        min-width: 0;
    }

    .product-info h3 {
        font-size: 13px;
    }

    .additional-info {
        font-size: 12px;
    }

    .order-total {
        font-size: 14px;
    }

    .view-order {
        padding: 10px;
        font-size: 13px;
    }
}

/* Daha küçük ekranlar için ek düzenlemeler */
@media (max-width: 480px) {
    .orders-list {
        padding: 12px;
    }

    .order-main {
        padding: 10px;
    }
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .product-count {
        right: -12px;
        top: -12px;
        width: 45px;
        height: 26px;
        font-size: 11px;
        border-radius: 13px;
    }
}

/* Sipariş numarası ve tarih stili */
.order-number time {
    font-size: 14px;
    color: var(--text-light);
}

@media (max-width: 768px) {
    .order-number time {
        font-size: 13px;
    }
}

/* Tüm eski badge tanımlarını temizle */
.product-count,
.additional-products,
.product-image-wrapper .additional-products,
.product-quantity-badge,
.quantity-badge,
.product-image .quantity-badge,
.product-image::before,
.product-image::after {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* Badge tanımı */
.badge-plus {
    position: absolute !important;
    right: -15px !important;
    top: -15px !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    font-size: 12px !important;
    width: 55px !important;
    height: 28px !important;
    border-radius: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    font-weight: 500 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    z-index: 999999 !important;
}

@media (max-width: 768px) {
    .product-image {
        width: 70px !important;
        height: 70px !important;
    }
    
    .badge-plus {
        right: -12px !important;
        top: -12px !important;
        width: 45px !important;
        height: 26px !important;
        font-size: 11px !important;
        border-radius: 13px !important;
    }
}

/* Edit Account Sayfası */
.edit-account-page {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

/* Sayfa Başlığı */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    padding: 32px;
    color: #fff;
    margin-bottom: 0;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #fff;
}

.header-desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

/* Form Bölümleri */
.form-sections {
    padding: 32px;
}

.form-section {
    background: var(--background-light);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-section h2 i {
    color: var(--primary-color);
    font-size: 20px;
}

/* Form Alanları */
.form-fields {
    display: grid;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-field label i {
    color: var(--primary-color);
    font-size: 14px;
}

.form-field input {
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s;
    background: #fff;
}

.form-field input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Şifre Alanları */
.password-fields {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.password-notice {
    font-size: 13px;
    color: #64748B;
    margin: -8px 0 16px 0;
    padding: 12px;
    background: #F8FAFC;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

/* Form Actions */
.form-actions {
    padding: 24px 32px;
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
}

.ongaraj-save-account {
    height: 48px;
    min-width: 180px;
    padding: 0 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ongaraj-save-account i {
    font-size: 16px;
}

.ongaraj-save-account:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

/* Hata Durumları */
.form-field.has-error input {
    border-color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message i {
    font-size: 14px;
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .page-header {
        padding: 24px;
    }

    .form-sections {
        padding: 24px;
    }

    .form-section {
        padding: 20px;
    }

    .form-fields {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-actions {
        padding: 20px;
    }

    .ongaraj-save-account {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 20px;
    }

    .form-sections {
        padding: 16px;
    }

    .form-section {
        padding: 16px;
    }

    .form-actions {
        padding: 16px;
    }
}

/* WooCommerce Bildirimleri */
.woocommerce-notices-wrapper {
    margin-bottom: 24px;
    display: none; /* Varsayılan olarak gizli */
}

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    animation: slideDown 0.3s ease-out;
}

.woocommerce-message {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.woocommerce-error {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.woocommerce-info {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
}

.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 8px;
}

.woocommerce-message::before {
    content: "\f00c";
    color: #166534;
}

.woocommerce-error::before {
    content: "\f071";
    color: #991B1B;
}

.woocommerce-info::before {
    content: "\f05a";
    color: #1E40AF;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Yükleniyor animasyonu */
.ongaraj-save-account i.fa-spin {
    margin-right: 8px;
}

/* Şifre gereksinimleri */
.password-requirements {
    margin-top: 8px;
    padding: 12px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
}

.requirement {
    font-size: 13px;
    color: #64748B;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.requirement::before {
    content: "○";
    color: #CBD5E1;
}

.requirement.met {
    color: #166534;
}

.requirement.met::before {
    content: "●";
    color: #22C55E;
}

/* Şifre bilgi kutusu */
.password-info {
    margin-top: 8px;
    font-size: 13px;
    color: #64748B;
    padding: 8px 12px;
    background: #F8FAFC;
    border-radius: 6px;
    border: 1px solid #E2E8F0;
}

/* Form alanları */
.form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    font-size: 14px;
}

/* Hata durumları */
.form-field.has-error input {
    border-color: #DC2626;
}

.error-message {
    color: #DC2626;
    font-size: 13px;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.error-message i {
    font-size: 14px;
}

/* Başarı mesajı */
.woocommerce-message {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woocommerce-message i {
    color: #16A34A;
}

/* Adresler Sayfası */
.addresses-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    width: 100%;  /* Bu satırı ekle */
}

/* Sayfa Başlığı */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 24px;
    color: var(--text-color);
    margin: 0;
}

.add-new-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.add-new-address:hover {
    background: var(--hover-color);
}

/* Adres Listesi */
.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.address-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.address-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.address-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.address-title {
    flex: 1;
}

.address-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 13px;
    margin-bottom: 8px;
}

.address-type.personal {
    background: #EFF6FF;
    color: #2563EB;
}

.address-type.corporate {
    background: #F0FDF4;
    color: #16A34A;
}

.address-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1F2937;
    margin: 0;
}

.address-actions {
    display: flex;
    gap: 8px;
}

.address-actions button {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-address {
    color: #2563EB;
}

.delete-address {
    color: #DC2626;
}

.address-content {
    display: grid;
    gap: 16px;
}

.contact-info, .location-info {
    display: grid;
    gap: 8px;
}

.address-content p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #4B5563;
    font-size: 14px;
}

.address-content i {
    width: 16px;
    color: #6B7280;
}

.address-location {
    color: #2563EB !important;
    font-weight: 500;
}

.corporate-details {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px dashed #e5e5e5;
}

.tax-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6B7280;
}

.tax-info i {
    color: #9CA3AF;
}

.account-welcome {
    background: #0095FF;
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.account-welcome h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.account-welcome p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: auto;
}

.section-title h2 {
    color: var(--text-color);
    font-size: 18px;
    margin: 0;
    white-space: nowrap;
}

.order-count {
    background: var(--background-light);
    color: var(--text-color);
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    margin-left: 8px;
    white-space: nowrap;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    margin-left: 16px;
}

/* Mobil için düzenlemeler */
@media (max-width: 768px) {
    .section-header {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .section-title h2 {
        font-size: 16px;
    }

    .order-count {
        font-size: 13px;
        padding: 3px 6px;
    }

    .view-all {
        font-size: 13px;
    }
}

/* Buton Stilleri */
.ongaraj-button.primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ongaraj-button.primary:hover {
    background: var(--hover-color);
    transform: translateY(-1px);
}

.ongaraj-button.primary i {
    font-size: 14px;
}

/* Mobil için buton düzenlemesi */
@media (max-width: 768px) {
    .ongaraj-button.primary {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Fatura Tipi Seçimi */
.billing-type-selector {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.billing-type-option {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #fff;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.billing-type-option:hover {
    border-color: var(--primary-color);
    background: #F0F9FF;
}

.billing-type-option input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary-color);
}

.billing-type-option input[type="radio"]:checked + .radio-label {
    color: var(--primary-color);
    font-weight: 500;
}

.billing-type-option.selected {
    border-color: var(--primary-color);
    background: #F0F9FF;
}

.billing-type-option .radio-label {
    font-size: 15px;
    font-weight: 500;
    color: #4B5563;
}

/* Form Butonları */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.cancel-address {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #f3f4f6;
    border: none;
    border-radius: 8px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cancel-address:hover {
    background: #e5e7eb;
}

.ongaraj-save-account {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #0095FF;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ongaraj-save-account:hover {
    background: #0077cc;
}

/* Kaydetme Efekti */
.ongaraj-save-account.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.ongaraj-save-account.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}



.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Düzenleme modunda grid yapısını koru */
.addresses-list.editing {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.address-card {
    width: 100%;
    height: 100%;
}

/* Form ve Liste Düzeni */
.addresses-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.addresses-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.address-card {
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

/* Form Wrapper */
.address-form-wrapper {
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

/* Responsive Düzenlemeler */
@media (max-width: 768px) {
    .addresses-list {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Hoş geldiniz bölümü */
.account-welcome {
    background: #0095FF;
    color: #fff;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 32px;
}

.account-welcome h2 {
    font-size: 24px;
    color: #fff;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.account-welcome p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* Mobil için düzenlemeler */
@media (max-width: 768px) {
    .account-welcome {
        padding: 24px 16px;
        margin: 0 -16px;
        border-radius: 12px 12px 0 0 !important;
        background: linear-gradient(135deg, var(--primary-color), #1976D2);
    }

    .account-welcome h2 {
        font-size: 20px;
    }

    .account-welcome p {
        font-size: 14px;
    }
}

/* Form Wrapper */
.address-form-wrapper {
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    overflow-x: hidden;
}

/* Form Grid */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
}

/* Form Elemanları */
.form-group {
    margin-bottom: 16px;
    width: 100%;
}

/* Mobil Düzenlemeler */
@media (max-width: 768px) {
    .address-form-wrapper {
        padding: 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .form-row {
        grid-template-columns: 1fr;
        margin: 0;
        padding: 0;
    }

    .form-fields {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
    }

    .form-field {
        width: 100%;
        margin: 0;
    }

    /* Input ve select elementleri için */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    select,
    textarea {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }

    /* Section başlıkları için */
    .form-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Fatura tipi seçici için */
    .billing-type-selector {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .billing-type-option {
        width: 100%;
    }
}

/* Genel düzeltmeler */
* {
    box-sizing: border-box;
}

.addresses-wrapper {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Mobil düzenlemeler */
@media (max-width: 768px) {
    /* Ana wrapper */
    .addresses-wrapper {
        width: 100%;
        padding: 16px;
        margin: 0 -16px;
        box-sizing: border-box;
    }

    /* Form container */
    .form-container {
        width: 100%;
        margin: 0;
        padding: 0;
    }
    

    /* Form Wrapper */
    .address-form-wrapper {
        width: 100%;
        background: #fff;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 16px;
        margin: 16px 0;
        box-sizing: border-box;
    }

    /* Form içeriği */
    .address-form {
        width: 100%;
    }

    /* Form alanları */
    .form-field {
        width: 100%;
        margin-bottom: 16px;
    }

    /* Input alanları */
    .form-field input,
    .form-field select,
    .form-field textarea {
        width: 100%;
        padding: 12px;
        border: 1px solid var(--border-color);
        border-radius: 4px;
        box-sizing: border-box;
        font-size: 16px; /* Mobil için ideal font boyutu */
    }

    /* Fatura tipi seçenekleri */
    .billing-type-selector {
        margin-bottom: 20px;
    }

    .billing-type-option {
        padding: 12px;
        margin-bottom: 8px;
        border-radius: 4px;
    }

    /* Form bölüm başlıkları */
    .form-section h2 {
        font-size: 18px;
        margin-bottom: 16px;
    }

    /* Form actions */
    .form-actions {
        margin-top: 24px;
        display: flex;
        gap: 10px;
    }

    .form-actions button {
        flex: 1;
        height: 44px;
    }
}

/* Form Container düzeltmesi */
.form-container {
    width: 100%;
    overflow-x: hidden; /* Yatay kaymayı engelle */
    position: relative; /* Position relative ekle */
}

/* Adres formu wrapper düzeltmesi */
.address-form-wrapper {
    max-width: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    box-sizing: border-box; /* Box sizing ekle */
    overflow: hidden; /* Overflow hidden ekle */
}

/* Ana wrapper düzeltmesi */
.addresses-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* Overflow hidden ekle */
    box-sizing: border-box; /* Box sizing ekle */
}

/* Form içindeki alanların düzeltmesi */
.form-fields {
    display: grid;
    gap: 20px;
    width: 100%;
    box-sizing: border-box; /* Box sizing ekle */
}

/* Mobil düzenlemeler */
@media (max-width: 768px) {
    .addresses-wrapper,
    .form-container,
    .address-form-wrapper {
        padding-right: 0; /* Sağ padding'i kaldır */
        padding-left: 0; /* Sol padding'i kaldır */
        margin-right: 0; /* Sağ margin'i kaldır */
        margin-left: 0; /* Sol margin'i kaldır */
    }
}

/* Sipariş Detay Sayfası */
.order-details-container {
    padding: 24px;
}

.dashboard-welcome {
    background: linear-gradient(135deg, var(--primary-color), #1976D2);
    border-radius: 12px 12px 0 0 !important;
    padding: 32px 24px;
    color: #fff;
    margin: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.dashboard-welcome h2 {
    color: #fff;
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 600;
}

.dashboard-welcome p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 16px;
}

@media (max-width: 768px) {
    .order-details-container {
        padding: 16px;
    }
    
    .dashboard-welcome {
        padding: 24px 16px;
        border-radius: 0;
    }
}

/* Tema override için ek class */
.account-content .dashboard-welcome {
    border-radius: 12px 12px 0 0 !important;
}

/* Tema specificity sorunları için */
.woocommerce-account .dashboard-welcome,
.woocommerce-MyAccount-content .dashboard-welcome,
.account-content > .dashboard-welcome {
    border-radius: 12px 12px 0 0 !important;
}

/* Mobil düzenlemeler */
@media (max-width: 768px) {
    .orders-list,
    .dashboard-welcome,
    .dashboard-stats,
    .dashboard-section,
    .orders-page,
    .order-details-page,
    .edit-account-page,
    .addresses-wrapper {
        padding: 16px;
        margin: 0 -16px;
    }

    .dashboard-welcome {
        border-radius: 0 !important;
        padding: 24px 16px;
    }
}
@media (max-width: 768px) {
    .addresses-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 16px;
        width: 100vw;  /* Sadece bu satırı ekle */

    }
}

