﻿/**
 * ════════════════════════════════════════════════════════════════
 * CUSTOM APP CSS - Icewall için Özel Stiller
 * ════════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════════
   GUEST LOGIN BUTTONS (Header) - Compact Box Style
══════════════════════════════════════════════ */
.login-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #e5e7eb;
    border: none;
    border-radius: 0.25rem;
    color: #4b5563;
    font-size: 0.6875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    min-width: 65px;
    text-decoration: none;
}

    .login-type-btn:hover {
        /*background: #E60013;*/
        color: #ffffff;
        transform: translateY(-1px);
    }

    .login-type-btn i {
        font-size: 0.9375rem;
        width: auto;
        height: auto;
        transition: color 0.15s ease;
    }

    .login-type-btn:hover i {
        color: #ffffff;
    }

    .login-type-btn span {
        font-size: 0.6875rem;
        font-weight: 500;
        white-space: nowrap;
        line-height: 1.1;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .login-type-btn {
        min-width: 60px;
        padding: 0.375rem 0.625rem;
        gap: 0.125rem;
    }

        .login-type-btn i {
            font-size: 0.875rem;
        }

        .login-type-btn span {
            font-size: 0.625rem;
        }
}

/* ══════════════════════════════════════════════
   CARI PAGE STYLES
══════════════════════════════════════════════ */

/* Cari Detail Row Toggle */
.cari-detail-row {
    background-color: #f8fafc;
}

.cari-detail-toggle {
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

    .cari-detail-toggle:hover {
        color: #E60013 !important;
    }

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 0.375rem;
}

.badge-primary {
    background-color: #E60013;
    color: white;
}

.badge-success {
    background-color: #22c55e;
    color: white;
}

.badge-warning {
    background-color: #f59e0b;
    color: white;
}

.badge-danger {
    background-color: #ef4444;
    color: white;
}

.badge-info {
    background-color: #3b82f6;
    color: white;
}

.badge-secondary {
    background-color: #6b7280;
    color: white;
}

/* Table Button Gaps */
.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.75rem;
}

/* Form Check Spacing */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-check-input {
    margin: 0;
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
    margin: 0;
    font-size: 0.875rem;
}

/* ══════════════════════════════════════════════
   TABLE IMPROVEMENTS - No Horizontal Scroll
══════════════════════════════════════════════ */

/* Table Responsive Container */
.table-responsive {
    width: 100%;
    overflow-x: visible !important;
}

.table-report {
    width: 100%;
    table-layout: auto;
}

/* Prevent scroll on table containers */
.overflow-x-auto {
    overflow-x: visible !important;
}

/* Detail Toggle Button */
.cari-detail-toggle {
    min-width: 40px;
    padding: 0.375rem 0.5rem;
}

    .cari-detail-toggle i {
        margin: 0 !important;
    }

/* Export Buttons Compact */
.btn-sm {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   NOTIFICATION ICONS (Cart & Favorites)
══════════════════════════════════════════════ */
.notification--light {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #f9fafb;
    transition: all 0.2s ease;
    position: relative;
}

    .notification--light:hover {
        background: #fef2f2;
        border-color: #E60013;
        transform: translateY(-1px);
    }

.notification__icon {
    font-size: 15px !important;
    width: 15px !important;
    height: 15px !important;
    color: #6b7280;
}

/* ══════════════════════════════════════════════
   NOTIFICATION BADGES (Cart & Favorites)
══════════════════════════════════════════════ */
.notification__badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #E60013;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: badgePulse 2s infinite;
}

.notification__badge--cart {
    background: #E60013;
    border-color: #ffffff;
}

.notification__badge--favorite {
    background: #10B981;
    border-color: #ffffff;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }
}

/* Notification icon hover */
.notification--light:hover .notification__icon {
    color: #ffffff !important;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* ══════════════════════════════════════════════
   USER INFO CARD
══════════════════════════════════════════════ */
.user-info-card {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem 0.375rem 0.375rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.625rem;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
    height: 38px;
}

    .user-info-card:hover {
        background: #fef2f2;
        border-color: #E60013;
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

/* User Avatar */
.user-info-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

    .user-info-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.user-info-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E60013, #b8000f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.75rem;
}

/* User Details */
.user-info-details {
    flex: 1;
    min-width: 0;
}

.user-info-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.user-info-role {
    font-size: 0.6875rem;
    color: #6b7280;
    margin-top: 0.125rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    line-height: 1;
}

    .user-info-role i {
        font-size: 0.6875rem;
        flex-shrink: 0;
    }

/* Role Colors */
.role-bayi {
    color: #E60013 !important;
    font-weight: 600;
}

.role-servis {
    color: #E60013;
    font-weight: 600;
}

.role-yedekparca {
    color: #E60013;
    font-weight: 600;
}

.role-firma {
    color: #E60013;
    font-weight: 600;
}

.role-default {
    color: #6b7280;
}

/* Dropdown Arrow */
.user-info-arrow {
    font-size: 0.625rem;
    color: #6b7280;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.user-info-card:hover .user-info-arrow {
    transform: translateY(2px);
}

/* ══════════════════════════════════════════════
   RESPONSIVE - MOBILE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .user-info-card {
        min-width: auto;
        padding: 0.375rem;
    }

    .user-info-details {
        display: none;
    }

    .user-info-arrow {
        display: none;
    }

    .user-info-avatar {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 640px) {
    .notification__badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -4px;
        right: -4px;
    }
}

/* ══════════════════════════════════════════════
   SIDE MENU BADGE (Cart Count in Sidebar)
══════════════════════════════════════════════ */
.side-menu__badge {
    margin-left: auto;
    background: #E60013;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.side-menu--active .side-menu__badge {
    background: #ffffff;
    color: #E60013;
}

/* ══════════════════════════════════════════════
   MOBILE MENU IMPROVEMENTS
══════════════════════════════════════════════ */
@media (max-width: 768px) {
    .mobile-menu-bar {
        padding: 1rem;
    }

    .scrollable__content {
        padding: 1rem 0;
    }

    .menu {
        padding: 0.875rem 1.25rem;
    }
}

/* ══════════════════════════════════════════════
   USER AVATAR FALLBACK
══════════════════════════════════════════════ */
.user-avatar-fallback {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E60013, #b8000f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
}

/* ══════════════════════════════════════════════
   BREADCRUMB IMPROVEMENTS
══════════════════════════════════════════════ */
.breadcrumb-light {
    display: flex;
    align-items: center;
    height: 100%;
}

    .breadcrumb-light .breadcrumb-item {
        color: rgba(255, 255, 255, 0.7);
    }

        .breadcrumb-light .breadcrumb-item.active {
            color: #ffffff;
            font-weight: 600;
        }

        .breadcrumb-light .breadcrumb-item a {
            color: rgba(255, 255, 255, 0.7);
            transition: color 0.2s ease;
        }

            .breadcrumb-light .breadcrumb-item a:hover {
                color: #ffffff;
            }

/* ══════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
══════════════════════════════════════════════ */
@media (max-width: 640px) {
    .top-bar-boxed {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .breadcrumb-light {
        display: none;
    }

    .login-type-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }

        .login-type-btn i {
            width: 1rem;
            height: 1rem;
        }
}

/* ══════════════════════════════════════════════
   SIDE NAV HAMBURGER MENU
══════════════════════════════════════════════ */
.side-nav {
    position: relative;
    transition: width 0.3s ease;
}

.side-nav-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

    .side-nav-toggle:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: scale(1.05);
    }

    .side-nav-toggle i {
        font-size: 1.125rem;
        transition: transform 0.3s ease;
    }

/* Collapsed State */
.side-nav.collapsed {
    width: 105px !important;
}

    .side-nav.collapsed .side-nav-toggle i {
        transform: rotate(90deg);
    }

    .side-nav.collapsed .side-menu__title {
        display: none;
    }

    .side-nav.collapsed .side-menu__icon {
        margin: 0 auto;
    }

    .side-nav.collapsed .side-menu {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
    }

    .side-nav.collapsed .side-menu__badge {
        position: absolute;
        top: 8px;
        right: 8px;
        margin-left: 0;
    }

    .side-nav.collapsed .side-nav__devider {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }

/* Expanded State (default) */
.side-nav:not(.collapsed) .side-menu__title {
    display: block;
}

/* Smooth transitions */
.side-nav * {
    transition: all 0.3s ease;
}

/* ══════════════════════════════════════════════
   SIDE MENU ACTIVE STATE IMPROVEMENTS
══════════════════════════════════════════════ */
.side-menu--active {
    position: relative;
}

    .side-menu--active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 3px;
        height: 70%;
        background: #E60013;
        border-radius: 0 2px 2px 0;
    }

.side-nav.collapsed .side-menu--active::before {
    display: none;
}

.side-menu--active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: #E60013;
    border-radius: 0 2px 2px 0;
}

/* ══════════════════════════════════════════════
   DROPDOWN MENU IMPROVEMENTS
══════════════════════════════════════════════ */
.dropdown-menu {
    margin-top: 0.5rem;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   NOTIFICATION ICON HOVER
══════════════════════════════════════════════ */
.notification--light:hover .notification__icon {
    color: #E60013 !important;
}





/* ══════════════════════════════════════════════
   PRODUCTS PAGE STYLES
══════════════════════════════════════════════ */

/* Search Bar */
.products-search-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.products-search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.products-search-icon {
    position: absolute;
    left: 1rem;
    color: #94a3b8;
    font-size: 1rem;
}

.products-search-input {
    width: 100%;
    height: 3rem;
    padding-left: 3rem;
    padding-right: 1rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

    .products-search-input:focus {
        outline: none;
        border-color: #E60013;
        box-shadow: 0 0 0 3px rgba(230, 0, 19, 0.1);
    }

.products-search-btn {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #E60013;
    border: none;
    border-radius: 0.75rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
}

    .products-search-btn:hover {
        background: #b8000f;
    }

/* Horizontal Filters */
.products-filters-horizontal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 0.5rem;
}

@media (max-width: 1024px) {
    .products-filters-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .products-filters-horizontal {
        grid-template-columns: 1fr;
    }
}

.filter-accordion {
    border-right: 1px solid #e2e8f0;
}

    .filter-accordion:last-child {
        border-right: none;
    }

.filter-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
}

    .filter-accordion-header:hover {
        background: #f8fafc;
    }

    .filter-accordion-header i {
        font-size: 0.75rem;
        color: #94a3b8;
        transition: transform 0.2s;
    }

.filter-accordion-content {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem 1rem 1rem;
}

.filter-accordion.active .filter-accordion-content {
    display: block;
}

.filter-accordion-content::-webkit-scrollbar {
    width: 4px;
}

.filter-accordion-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}



.filter-list-item {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    color: #475569;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-bottom: 0.125rem;
}

    .filter-list-item:hover {
        background: #f8fafc;
        color: #E60013;
    }

    .filter-list-item.active {
        background: #f1f5f9;
        color: #E60013;
        font-weight: 600;
    }

.filter-radio-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin-bottom: 0.125rem;
}

    .filter-radio-item:hover {
        background: #f8fafc;
    }

    .filter-radio-item input {
        position: absolute;
        opacity: 0;
    }

.filter-radio-circle {
    width: 1rem;
    height: 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s;
}

.filter-radio-item input:checked + .filter-radio-circle {
    border-color: #E60013;
}

    .filter-radio-item input:checked + .filter-radio-circle::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 6px;
        background: #E60013;
        border-radius: 50%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

.filter-radio-label {
    font-size: 0.8125rem;
    color: #475569;
    flex: 1;
}

/* Active Filters Bar */
.active-filters-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.active-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #92400e;
}

.active-filter-remove {
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f59e0b;
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.625rem;
}

    .active-filter-remove:hover {
        background: #d97706;
        transform: scale(1.1);
    }

/* Products Grid Custom Responsive */
.products-grid-custom {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, 1fr); /* Mobile: 2 sütun */
}

/* Tablet: 768px - 1023px → 4 sütun */
@media (min-width: 768px) {
    .products-grid-custom {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Desktop: 1024px - 1599px → 4 sütun (1600'den küçük) */
@media (min-width: 1024px) and (max-width: 1599px) {
    .products-grid-custom {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop: 1600px+ → 6 sütun */
@media (min-width: 1600px) {
    .products-grid-custom {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* View Toggle */
.products-view-toggle {
    display: flex;
    gap: 0.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.25rem;
}

.products-view-btn {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.375rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

    .products-view-btn:hover {
        background: #e2e8f0;
        color: #1e293b;
    }

    .products-view-btn.active {
        background: #E60013;
        color: #ffffff;
    }

/* Product Card Modern */
.product-card-modern {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.2s;
    cursor: pointer;
}

    .product-card-modern:hover {
        border-color: #cbd5e1;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

.product-card-modern-image {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-card-modern-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.product-card-modern-watermark {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    opacity: 0.04;
    pointer-events: none;
}

    .product-card-modern-watermark span {
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.625rem;
        font-weight: 700;
        color: #1e293b;
        transform: rotate(-30deg);
        white-space: nowrap;
    }

.product-card-modern-icon {
    font-size: 3rem;
    z-index: 1;
}

.product-card-modern-badges {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    z-index: 2;
}

.product-badge-new,
.product-badge-balance,
.product-badge-campaign {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-badge-new {
    background: #10b981;
    color: #ffffff;
}

.product-badge-balance {
    background: #E60013;
    color: #ffffff;
}

.product-badge-campaign {
    background: #f59e0b;
    color: #ffffff;
}

.product-card-modern-actions {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    opacity: 0;
    transform: translateX(0.5rem);
    transition: all 0.2s;
    z-index: 2;
}

.product-card-modern:hover .product-card-modern-actions {
    opacity: 1;
    transform: translateX(0);
}

.product-card-modern-body {
    padding: 0.875rem;
}

.product-code {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #94a3b8;
    letter-spacing: 0.3px;
    margin-bottom: 0.25rem;
}

.product-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2rem;
}

.product-brand {
    font-size: 0.6875rem;
    color: #64748b;
    margin-bottom: 0.625rem;
}

.product-stock {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
}

    .product-stock i {
        font-size: 0.375rem;
    }

.product-stock-high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.product-stock-medium {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.product-stock-low {
    background: rgba(230, 0, 19, 0.1);
    color: #E60013;
}

.product-price-modern {
    margin-bottom: 0.625rem;
}

.product-price-label {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-bottom: 0.125rem;
}

.product-price-amount {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.product-price-retail {
    font-size: 0.65rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-top: 0.125rem;
}

.product-btn-add-modern {
    width: 100%;
    padding: 0.5rem;
    background: #E60013;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-btn-add-modern:hover {
        background: #b8000f;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(230, 0, 19, 0.3);
    }

.product-price-locked-modern {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem;
    background: #fef3c7;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #92400e;
    margin-bottom: 0.625rem;
}

.product-btn-locked-modern {
    width: 100%;
    padding: 0.5rem;
    background: #f59e0b;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-btn-locked-modern:hover {
        background: #d97706;
    }

/* ══════════════════════════════════════════════
   RESPONSIVE SIDEBAR - AUTO COLLAPSE
══════════════════════════════════════════════ */

/* 1279px altında otomatik collapse */
@media (max-width: 1279px) {
    .side-nav {
        width: 105px !important;
    }

    /* Hamburger butonunu gizle */
    .side-nav-toggle {
        display: none !important;
    }

    /* Menü başlıklarını gizle */
    .side-menu__title {
        display: none !important;
    }

    /* İkonları ortala ve boyutlandır */
    .side-menu__icon {
        margin: 0 auto;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .side-menu__icon i {
            font-size: 1.25rem !important;
        }

    /* Menüleri ortala ve padding ayarla */
    .side-menu {
        justify-content: center;
        padding: 0.875rem 0.5rem !important;
        display: flex;
        align-items: center;
    }

    /* Badge'i sağ üst köşeye taşı */
    .side-menu__badge {
        position: absolute;
        top: 6px;
        right: 6px;
        margin-left: 0;
    }

    /* Divider'ı daralt */
    .side-nav__devider {
        width: 60%;
        margin-left: auto;
        margin-right: auto;
    }

    /* Active indicator'ı gizle */
    .side-menu--active::before {
        display: none !important;
    }

    /* Menü listesini yukarı taşı (hamburger gizlendiği için) */
    .side-nav ul {
        margin-top: 1rem !important;
        padding-top: 0 !important;
    }

        /* List item'ların margin'ini kaldır */
        .side-nav ul li {
            margin: 0 !important;
        }
}

/* Tablet ve mobile için ek ayarlamalar */
@media (max-width: 768px) {
    .user-info-card {
        min-width: auto;
        padding: 0.375rem;
    }

    .user-info-details {
        display: none;
    }

    .user-info-arrow {
        display: none;
    }

    .user-info-avatar {
        width: 36px;
        height: 36px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 640px) {
    .notification__badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.5rem;
        top: -4px;
        right: -4px;
    }

    .top-bar-boxed {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .breadcrumb-light {
        display: none;
    }

    .login-type-btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.75rem;
        gap: 0.375rem;
    }

        .login-type-btn i {
            width: 1rem;
            height: 1rem;
        }
}

.side-menu.side-menu--active > .side-menu__title {
    color: white !important;
}

.side-menu.side-menu--active > .side-menu__icon > .fas {
    color: white !important;
}

/* ══════════════════════════════════════════════
   PRODUCTS PAGE IMPROVEMENTS
══════════════════════════════════════════════ */

/* Compact Filters - Always Open */
.products-filters-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 1rem;
}

.filter-section-compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-section-title {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 0.375rem;
    border-bottom: 2px solid #E60013;
}

.filter-radio-group,
.filter-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.filter-radio-item-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
}

.filter-submenu-header {
    font-size: 0.6875rem;
    color: #E60013;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* Fixed Height Product Cards */
.product-card-fixed {
    display: flex;
    flex-direction: column;
    border-radius: 0.75rem;
    overflow: hidden;
    background: white;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

    .product-card-fixed:hover {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        transform: translateY(-4px);
    }

.product-card-fixed-image {
    position: relative;
    height: 200px; /* Fixed image height */
    overflow: hidden;
    background: #ffffff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-card-fixed-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

.product-card-fixed-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
    min-height: 0; /* Important for flex */
    padding-top: 0px !important;
}

.product-card-fixed .product-name {
    /*font-size: 0.875rem;*/
    font-weight: 600;
    color: #1e293b;
    /*margin: 0.5rem 0;*/
    /* Text overflow handling */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Max 2 lines */
    -webkit-box-orient: vertical;
    line-height: 1.3;
    height: 2.6em; /* Fixed height for 2 lines */
}

.product-card-fixed-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 1;
}

/* Favorite Button - Always Visible */
/* Remove old hover actions */
.product-card-modern-actions {
    display: none !important;
}

/* Modern Pagination */
.pagination-modern {
    display: flex;
    gap: 0.375rem;
}

    .pagination-modern .page-item .page-link {
        min-width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.375rem;
        border: 1px solid #e2e8f0;
        color: #64748b;
        font-size: 0.875rem;
        font-weight: 500;
        transition: all 0.2s;
        text-decoration: none;
    }

        .pagination-modern .page-item .page-link:hover {
            background: #f8fafc;
            border-color: #E60013;
            color: #E60013;
        }

    .pagination-modern .page-item.active .page-link {
        background: #E60013;
        border-color: #E60013;
        color: white;
    }

    .pagination-modern .page-item.disabled .page-link {
        opacity: 0.5;
        cursor: not-allowed;
        pointer-events: none;
    }

@media (max-width: 768px) {
    .products-filters-compact {
        grid-template-columns: 1fr;
    }

    .product-card-fixed {
        height: auto;
        min-height: 420px;
    }
}

.product-action-buttons {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: row; /* YAN YANA! */
    gap: 0.375rem;
    z-index: 10;
}

.product-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

    .product-action-btn i {
        font-size: 0.875rem;
        transition: all 0.2s ease;
    }

/* Favori Button */
.product-favorite-btn {
    color: #64748b;
}

    .product-favorite-btn:hover {
        background: #E60013;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(230, 0, 19, 0.3);
    }

        .product-favorite-btn:hover i {
            color: white;
        }

    .product-favorite-btn.active {
        background: #E60013;
    }

        .product-favorite-btn.active i {
            color: white;
        }

/* Detay Button */
.product-detail-btn {
    color: #3b82f6;
}

    .product-detail-btn:hover {
        background: #3b82f6;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

        .product-detail-btn:hover i {
            color: white;
        }

.product-login-btn:hover {
    background: black;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

    .product-login-btn:hover i {
        color: white;
    }

.sepetbutton {
    color: #e60013;
}

    .sepetbutton:hover {
        background: #e60013;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    }

        .sepetbutton:hover i {
            color: white;
        }


/* Fiyat Grid (Yan Yana) */
.product-price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.product-price-item {
    display: flex;
    flex-direction: column;
}

.product-price-label {
    font-size: 0.6875rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.product-price-amount {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
}

/* Sepete Ekle Button (Küçültülmüş) */
.product-btn-add-icon {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

    .product-btn-add-icon i {
        font-size: 0.875rem;
    }

    .product-btn-add-icon:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .product-btn-add-icon:active {
        transform: translateY(0);
    }

/* Giriş Yap Button (Küçültülmüş) */
.product-btn-locked-icon {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

    .product-btn-locked-icon i {
        font-size: 0.875rem;
    }

    .product-btn-locked-icon:hover {
        background: linear-gradient(135deg, #d97706, #b45309);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
    }

    .product-btn-locked-icon:active {
        transform: translateY(0);
    }

/* Min. Sipariş Miktarı */
.product-min-order {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.5rem;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    color: #166534;
    margin-bottom: 0.5rem;
}

    .product-min-order i {
        color: #22c55e;
        font-size: 0.8125rem;
    }

@media (max-width: 768px) {
    .product-action-buttons {
        top: 0.375rem;
        right: 0.375rem;
        gap: 0.25rem;
    }

    .product-action-btn {
        width: 28px;
        height: 28px;
    }

        .product-action-btn i {
            font-size: 0.75rem;
        }
}
/* Favori sayfası header */
.favorites-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.favorites-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
}

    .favorites-title i {
        color: #E60013;
    }

.favorites-count {
    background: #fee2e2;
    color: #991b1b;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Empty state */
.favorites-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.favorites-empty-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

    .favorites-empty-icon i {
        font-size: 3.5rem;
        color: #E60013;
    }

.favorites-empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.favorites-empty-text {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.favorites-empty-btn {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #E60013, #b8000f);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

    .favorites-empty-btn:hover {
        background: linear-gradient(135deg, #b8000f, #8b0000);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(230, 0, 19, 0.3);
        color: white;
    }

/* Favori buton - kırmızı ve dolu */
.product-favorite-remove-btn {
    background: #E60013 !important;
}

    .product-favorite-remove-btn i {
        color: white !important;
    }

    .product-favorite-remove-btn:hover {
        background: #b8000f !important;
    }
/* SweetAlert2 özel stil */
.swal-confirm-btn,
.swal-cancel-btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    border-radius: 0.5rem !important;
    border: none !important;
    min-width: 120px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
}

.swal-confirm-btn {
    background-color: #b8000f !important;
    color: white !important;
}

.swal-cancel-btn {
    background-color: #4b5563 !important;
    color: white !important;
}

.swal2-popup {
    border-radius: 1rem !important;
}

.swal2-title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

table.dataTable.no-footer {
    border-bottom: none !important;
}

/* ══════════════════════════════════════════════
   HESABIM PAGE STYLES
══════════════════════════════════════════════ */

/* Hesap Kartı */
.hesap-kart {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.hesap-kart-baslik {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .hesap-kart-baslik i {
        color: #E60013;
    }

/* Form Group */
.hesap-form-group {
    margin-bottom: 1rem;
}

.hesap-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

/* Input Wrapper */
.hesap-input-wrap {
    display: flex;
    align-items: center;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0 0.875rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    gap: 0.5rem;
}

    .hesap-input-wrap:focus-within {
        border-color: #E60013;
        box-shadow: 0 0 0 3px rgba(230, 0, 19, 0.08);
        background: #fff;
    }

.hesap-input-icon {
    color: #9ca3af;
    font-size: 0.8125rem;
    flex-shrink: 0;
    width: 14px;
    text-align: center;
}

.hesap-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.625rem 0;
    font-size: 0.875rem;
    color: #1f2937;
    outline: none;
    min-width: 0;
}

    .hesap-input::placeholder {
        color: #c1c5cc;
    }

.hesap-textarea {
    resize: none;
    padding: 0.625rem 0;
    line-height: 1.5;
}

/* Readonly alanlar */
.hesap-input-readonly {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: #374151;
    min-height: 40px;
}

    .hesap-input-readonly.hesap-input-textarea {
        align-items: flex-start;
        line-height: 1.6;
    }

/* Şifre göster/gizle */
.hesap-pw-toggle {
    background: none;
    border: none;
    padding: 0 0.25rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    flex-shrink: 0;
}

    .hesap-pw-toggle:hover {
        color: #E60013;
    }

/* Kaydet Butonu */
.hesap-kaydet-btn {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #E60013, #b8000f);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

    .hesap-kaydet-btn:hover {
        background: linear-gradient(135deg, #b8000f, #8b0000);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(230, 0, 19, 0.25);
    }

/* ── Adres Kartları ── */
.adres-card {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.625rem;
    padding: 1rem 1.125rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 100%;
}

    .adres-card:hover {
        border-color: #d1d5db;
        box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    }

.adres-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.625rem;
}

.adres-card-isim {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

    .adres-card-isim i {
        color: #E60013;
        font-size: 0.75rem;
    }

.adres-card-actions {
    display: flex;
    gap: 0.375rem;
}

.adres-btn {
    width: 28px;
    height: 28px;
    border-radius: 0.375rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.75rem;
}

.adres-btn-sil {
    background: #fee2e2;
    color: #E60013;
}

    .adres-btn-sil:hover {
        background: #E60013;
        color: white;
        transform: scale(1.05);
    }

.adres-card-metin {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

/* Yeni Adres Ekle Kartı */
.adres-card-add {
    border: 2px dashed #d1d5db;
    border-radius: 0.625rem;
    padding: 2rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

    .adres-card-add:hover {
        border-color: #10b981;
        background: #f0fdf4;
    }

    .adres-card-add i {
        color: #10b981;
        font-size: 1.75rem;
    }

.adres-card-add-baslik {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.adres-card-add-alt {
    font-size: 0.8125rem;
    color: #9ca3af;
}

/* Yeni Adres Butonu */
.adres-yeni-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

    .adres-yeni-btn:hover {
        background: linear-gradient(135deg, #059669, #047857);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
    }

/* Adres Modal */
.adres-modal-content {
    border: none;
    border-radius: 0.875rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.adres-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.5rem;
    background: linear-gradient(135deg, #1f2937, #374151);
}

.adres-modal-baslik {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .adres-modal-baslik i {
        color: #E60013;
    }

.adres-modal-kapat {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 0.375rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

    .adres-modal-kapat:hover {
        background: rgba(230, 0, 19, 0.5);
    }

.adres-modal-body {
    padding: 1.5rem;
    background: #f9fafb;
}

.adres-modal-footer {
    padding: 1rem 1.5rem;
    background: #ffffff;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.adres-modal-iptal {
    padding: 0.5rem 1.125rem;
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

    .adres-modal-iptal:hover {
        background: #e5e7eb;
    }

.adres-modal-kaydet {
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, #E60013, #b8000f);
    color: white;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

    .adres-modal-kaydet:hover {
        background: linear-gradient(135deg, #b8000f, #8b0000);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(230, 0, 19, 0.25);
    }

@media (max-width: 768px) {
    .hesap-kart {
        padding: 1.125rem;
    }

    .adres-modal-body {
        padding: 1rem;
    }
}

/* Düzenle butonu */
.adres-btn-duzenle {
    background: #eff6ff;
    color: #3b82f6;
}

    .adres-btn-duzenle:hover {
        background: #3b82f6;
        color: white;
        transform: scale(1.05);
    }

/* Ana kutu */
.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #cdcdcd !important;
    border-radius: 0.375rem;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .select2-container--default .select2-selection--single:hover {
        border-color: #cbd5e1;
    }

/* Focus */
.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #E60013;
    box-shadow: 0 0 0 3px rgba(230, 0, 19, 0.1);
    outline: none;
}

/* Seçili değer metni */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px !important;
    padding-left: 12px;
    padding-right: 30px;
    color: #1e293b;
    font-size: 0.875rem;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #94a3b8;
}

/* Ok ikonu */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
    right: 8px;
}

    .select2-container--default .select2-selection--single .select2-selection__arrow b {
        border-color: #94a3b8 transparent transparent transparent;
    }

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: #E60013 transparent transparent transparent;
}

/* Temizle (×) butonu */
.select2-container--default .select2-selection--single .select2-selection__clear {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 36px;
    margin-right: 4px;
    transition: color 0.15s;
}

    .select2-container--default .select2-selection--single .select2-selection__clear:hover {
        color: #E60013;
    }

/* Dropdown kutusu */
.select2-dropdown {
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.select2-container--default .select2-dropdown--below {
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: -1px;
}

.select2-container--default .select2-dropdown--above {
    border-bottom: none;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: -1px;
}

/* Arama kutusu */
.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0;
    border-radius: 0.375rem;
    padding: 6px 10px;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

    .select2-container--default .select2-search--dropdown .select2-search__field:focus {
        border-color: #E60013;
        box-shadow: 0 0 0 3px rgba(230, 0, 19, 0.08);
    }

/* Liste item */
.select2-container--default .select2-results__option {
    padding: 8px 12px;
    font-size: 0.875rem;
    color: #374151;
    transition: background 0.12s;
}

/* Hover */
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: #fff1f2;
    color: #E60013;
}

/* Seçili olan */
.select2-container--default .select2-results__option[aria-selected=true] {
    background: #fef2f2;
    color: #E60013;
    font-weight: 600;
}

/* Yükleniyor / sonuç yok */
.select2-container--default .select2-results__option--disabled,
.select2-results__message {
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 8px 12px;
}

/* Scrollbar */
.select2-results__options::-webkit-scrollbar {
    width: 4px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: #f8fafc;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 4px;
}

    .select2-results__options::-webkit-scrollbar-thumb:hover {
        background: #E60013;
    }
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #e60013 !important;
}
.select2-container .select2-selection--single {
    height: 37px !important;
    line-height: 36px !important;
}
.sd-card {
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,.04),0 6px 24px rgba(0,0,0,.05);
    overflow: hidden;
    margin-bottom: 1.25rem;
}

.sd-head {
    display: flex;
    align-items: center;
    padding: 11px 18px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .7px;
    color: #6b7280;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.sd-body {
    padding: 20px;
}

.sd-lbl {
    font-size: .67rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
    display: block;
}

.sd-val {
    font-size: .875rem;
    color: #111827;
}

.sd-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

    .sd-tbl thead tr {
        background: #f8fafc;
        border-bottom: 2px solid #f1f5f9;
    }

    .sd-tbl thead th {
        padding: 10px 14px;
        font-size: .65rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .6px;
        color: #9ca3af;
        white-space: nowrap;
    }

    .sd-tbl tbody tr {
        border-bottom: 1px solid #f9fafb;
        transition: background .12s;
    }

        .sd-tbl tbody tr:last-child {
            border-bottom: none;
        }

        .sd-tbl tbody tr:hover {
            background: #fafbfc;
        }

    .sd-tbl td {
        padding: 11px 14px;
        vertical-align: middle;
    }

.sd-inp {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    padding: 5px 9px;
    font-size: .82rem;
    color: #111827;
    background: #fff;
    outline: none;
    transition: border-color .2s,box-shadow .2s;
    height: 32px;
}

    .sd-inp:focus {
        border-color: #E60013;
        box-shadow: 0 0 0 3px rgba(230,0,19,.08);
    }

.sd-ibtn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: none;
    background: #f1f5f9;
    color: #6b7280;
    cursor: pointer;
    font-size: .68rem;
    transition: all .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .sd-ibtn:hover {
        background: #e2e8f0;
        color: #374151;
    }

.sd-ibtn--ok {
    background: #d1fae5;
    color: #059669;
}

    .sd-ibtn--ok:hover {
        background: #a7f3d0;
        color: #047857;
    }

.sd-ibtn--no {
    background: #fee2e2;
    color: #dc2626;
}

    .sd-ibtn--no:hover {
        background: #fecaca;
        color: #b91c1c;
    }

.sd-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg,#E60013,#b8000f);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sd-crow {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .845rem;
    color: #374151;
    padding: 6px 0;
    border-bottom: 1px solid #f8fafc;
}

    .sd-crow:last-child {
        border-bottom: none;
    }

    .sd-crow i {
        width: 15px;
        color: #9ca3af;
        font-size: .78rem;
        flex-shrink: 0;
    }

.sd-oz-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    font-size: .875rem;
    color: #374151;
    border-bottom: 1px dashed #f1f5f9;
}

.sd-oz-sep {
    border-bottom: 2px solid #e5e7eb !important;
    padding-bottom: 10px;
    margin-bottom: 4px;
}

.sd-oz-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 4px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}

    .sd-oz-total span:last-child {
        color: #E60013;
    }

.sd-red-box {
    color: #dc2626;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 8px;
    border-left: 3px solid #dc2626;
    font-size: .85rem;
}

.sd-unsaved-badge {
    display: none;
    font-size: .65rem;
    background: #fef3c7;
    color: #92400e;
    border-radius: 20px;
    padding: 2px 8px;
    margin-left: 8px;
    font-weight: 600;
}
.user-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 1040;
    backdrop-filter: blur(2px);
}

    .user-drawer-overlay.active {
        display: block;
    }

.user-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    background: #fff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    display: flex;
    flex-direction: column;
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
}

    .user-drawer.open {
        transform: translateX(0);
    }

.ud-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 20px 20px;
    background: linear-gradient(135deg,#1e293b 0%,#334155 100%);
    color: white;
    position: relative;
}

.ud-header-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #E60013;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.ud-header-info {
    flex: 1;
    min-width: 0;
}

.ud-header-unvan {
    font-weight: 700;
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ud-header-aciklama {
    font-size: .75rem;
    opacity: .65;
    margin-top: 2px;
}

.ud-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,.1);
    border: none;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    font-size: .875rem;
    transition: background .15s;
}

    .ud-close-btn:hover {
        background: rgba(255,255,255,.2);
    }

.ud-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}

.ud-group-label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: #9ca3af;
    padding: 10px 20px 4px;
}

.ud-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: #1f2937;
    transition: background .15s;
    font-size: .9rem;
    font-weight: 500;
}

    .ud-item:hover {
        background: #f8fafc;
        color: #111827;
        text-decoration: none;
    }

.ud-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .875rem;
    color: #64748b;
    flex-shrink: 0;
}

.ud-icon-blue {
    background: #eff6ff;
    color: #3b82f6;
}

.ud-icon-orange {
    background: #fff7ed;
    color: #f97316;
}

.ud-icon-green {
    background: #f0fdf4;
    color: #10b981;
}

.ud-icon-purple {
    background: #faf5ff;
    color: #a855f7;
}

.ud-icon-red {
    background: #fef2f2;
    color: #ef4444;
}

.ud-icon-yellow {
    background: #fefce8;
    color: #eab308;
}

.ud-item-label {
    flex: 1;
}

.ud-item-arrow {
    font-size: .65rem;
    color: #d1d5db;
}

.ud-divider {
    margin: 8px 20px;
    border-top: 1px solid #f1f5f9;
}

.ud-footer {
    padding: 16px 20px;
    border-top: 1px solid #f1f5f9;
}

.ud-logout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background: #fef2f2;
    color: #dc2626;
    border-radius: 10px;
    font-weight: 600;
    font-size: .875rem;
    text-decoration: none;
    transition: background .15s;
}

    .ud-logout-btn:hover {
        background: #fee2e2;
        color: #b91c1c;
        text-decoration: none;
    }

#userDrawerTrigger {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

    #userDrawerTrigger .user-info-arrow {
        transition: transform .2s;
    }

    #userDrawerTrigger:hover .user-info-arrow {
        transform: translateX(3px);
    }

.yiben-type-selector {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    border-radius: 0.875rem;
    padding: 0.35rem;
    width: fit-content;
}

.yiben-type-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.625rem;
    cursor: pointer;
    transition: all 0.22s ease;
    font-weight: 500;
    font-size: 0.875rem;
    color: #64748b;
    user-select: none;
    white-space: nowrap;
}

    .yiben-type-option input[type="radio"] {
        display: none;
    }

    .yiben-type-option:has(input:checked) {
        background: #fff;
        color: #E60013;
        box-shadow: 0 1px 6px rgba(0,0,0,0.10);
    }
