:root {
            --primary-bg: #0f1016;
            --card-bg: rgba(30, 30, 45, 0.7);
            --glass-bg: rgba(26, 26, 36, 0.85);
            --text-main: #b5b5c3;
            --text-light: #ffffff;
            --accent: #1bc5bd;
            --accent-hover: #15a39d;
            --danger: #f64e60;
            --border: rgba(255, 255, 255, 0.1);
            --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            background: radial-gradient(circle at top right, #1e1e2d, #0f1016);
            color: var(--text-main);
            margin: 0;
            min-height: 100vh;
            line-height: 1.5;
        }

        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: clamp(10px, 3vw, 30px);
        }

        .card {
            background: var(--card-bg);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: clamp(15px, 4vw, 30px);
            box-shadow: var(--card-shadow);
        }

        h2 {
            margin-top: 0;
            color: var(--text-light);
            text-align: center;
            font-weight: 700;
            letter-spacing: -0.02em;
        }

        .form-group {
            margin-bottom: clamp(15px, 3vw, 25px);
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-size: 0.85rem;
            font-weight: 500;
            color: var(--text-main);
        }

        input[type="text"],
        input[type="password"],
        input[type="number"] {
            width: 100%;
            padding: 12px 16px;
            background: rgba(0, 0, 0, 0.2);
            border: 1px solid var(--border);
            color: #fff;
            border-radius: 8px;
            outline: none;
            transition: all 0.2s ease;
            font-size: 1rem;
        }

        input:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(27, 197, 189, 0.2);
            background: rgba(0, 0, 0, 0.3);
        }

        /* Number input ok tuşlarını (spinner) gizle */
        input[type="number"]::-webkit-outer-spin-button,
        input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }
        input[type="number"] {
            -moz-appearance: textfield;
        }

        button {
            padding: 12px 24px;
            background-color: var(--accent);
            color: #fff;
            border: none;
            border-radius: 8px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        button:hover {
            background-color: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(27, 197, 189, 0.3);
        }

        button:active {
            transform: translateY(0);
        }

        .btn-danger {
            background-color: var(--danger);
        }

        .btn-danger:hover {
            background-color: #f43f5e;
            box-shadow: 0 4px 12px rgba(246, 78, 96, 0.3);
        }

        .mobile-logout-btn {
            display: none !important;
        }

        /* Portal Layout: Akışkan Esnek Yapı */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: clamp(15px, 3vw, 30px);
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border);
        }

        .portal-layout {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            align-items: flex-start;
        }

        .products-section {
            flex: 2 1 600px;
            min-width: 0;
        }

        .sticky-search {
            position: sticky;
            top: 20px;
            z-index: 100;
            background: var(--glass-bg);
            backdrop-filter: blur(8px);
            padding: 15px;
            margin: -15px -15px 20px -15px;
            border-radius: 12px;
            border-bottom: 1px solid var(--border);
            box-shadow: 0 4px 12px rgba(0,0,0,0.1);
        }

        .product-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            gap: 16px;
        }

        .product-card {
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            display: flex;
            flex-direction: column;
            min-height: 250px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(5px);
        }

        .product-info-col {
            flex: 1;
            padding-bottom: 12px;
            position: relative;
        }

        .product-code-text {
            font-weight: 900;
            font-size: 1.45rem;
            font-family: 'Outfit', sans-serif;
            letter-spacing: -0.2px;
            margin-bottom: 6px;
            line-height: 1.1;
        }

        .product-name-text {
            font-size: 1rem;
            color: rgba(255,255,255,0.8);
            font-weight: 500;
            line-height: 1.4;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            letter-spacing: -0.1px;
        }

        .product-action-col {
            margin-top: auto;
        }

        .product-action-row {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .qty-control-wrapper {
            display: flex;
            align-items: center;
            width: 100%;
            height: 40px;
            background: #1a1a24;
            border: 1.5px solid #333;
            border-radius: 10px;
            overflow: hidden;
        }

        .qty-btn {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border: none;
            width: 32px;
            height: 100%;
            font-size: 1.2rem;
            font-weight: bold;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background 0.2s;
            flex-shrink: 0;
        }

        .qty-btn:active {
            background: rgba(255, 255, 255, 0.15);
        }

        .product-qty-input {
            flex: 1;
            min-width: 0;
            height: 100%;
            text-align: center;
            border: none;
            background: transparent;
            color: #1bc5bd;
            font-weight: 800;
            font-size: 0.9rem;
            padding: 0;
            outline: none;
        }

        .product-add-btn {
            width: 100%;
            height: 42px;
            border-radius: 10px;
            font-weight: 800;
            font-size: 0.8rem;
            text-transform: uppercase;
            letter-spacing: 0.8px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .mobile-text {
            display: none;
        }

        .product-card:hover {
            background: rgba(255, 255, 255, 0.06);
            border-color: var(--accent);
            transform: translateY(-6px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
        }

        .product-card.custom-proposal {
            border: 1px solid rgba(246, 78, 96, 0.3) !important;
            box-shadow: 0 4px 15px rgba(246, 78, 96, 0.05);
        }

        .product-card.special-product-card {
            background: linear-gradient(145deg, rgba(30, 30, 45, 0.4), rgba(40, 40, 60, 0.4));
            border: 1px dashed rgba(245, 158, 11, 0.3);
            box-shadow: 0 4px 20px rgba(245, 158, 11, 0.05);
        }

        .product-card.special-product-card:hover {
            border-color: #f59e0b;
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.15);
            background: linear-gradient(145deg, rgba(30, 30, 45, 0.6), rgba(45, 45, 65, 0.6));
        }

        .product-card h4 {
            margin: 0 0 12px 0;
            color: var(--text-light);
            font-size: 1rem;
            line-height: 1.4;
        }

        .product-card .price {
            color: var(--accent);
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 16px;
        }

        .sepet-container {
            flex: 1 1 320px;
            max-width: 450px;
            background: var(--glass-bg);
            backdrop-filter: blur(12px);
            border: 1px solid var(--border);
            border-radius: 16px;
            padding: 20px;
            position: sticky;
            top: 20px; /* PC'de sayfanın en üstünde kalsın */
            max-height: calc(100vh - 40px);
            overflow-y: auto;
            box-shadow: var(--card-shadow);
            transition: all 0.3s ease;
            z-index: 10;
        }

        #sepet-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 10px;
        }

        #sepet-table th {
            text-align: left;
            font-size: 0.75rem;
            color: var(--text-main);
            padding: 8px 0;
            border-bottom: 1px solid var(--border);
        }

        #sepet-table td {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            vertical-align: middle;
        }

        #sepet-table tr:last-child td {
            border-bottom: none;
        }

        /* Order Card Styling (Fluid Table Alternative) */
        .order-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 25px;
            padding: clamp(15px, 3vw, 25px);
            transition: border-color 0.3s ease;
        }

        .order-card:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }

        .order-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid var(--border);
            margin-bottom: 20px;
        }

        .order-meta-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .order-meta-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--text-main);
        }

        .order-meta-value {
            font-size: 0.95rem;
            font-weight: 600;
            color: var(--text-light);
        }

        /* Responsive Mobile CSS */
        @media screen and (max-width: 991.98px) {
            .header {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
                gap: 15px;
            }

            .header div {
                width: 100%;
                display: flex;
                flex-direction: column;
                gap: 10px;
            }

            .header button.desktop-nav-btn, .header button.desktop-logout-btn {
                display: none !important;
            }

            .mobile-logout-btn {
                display: inline-flex !important;
            }

            .header button {
                width: 100% !important;
                margin-right: 0 !important;
            }

            .portal-layout {
                flex-direction: column;
            }

            .products-section, .sepet-container {
                flex: 1 1 100%;
                max-width: 100%;
                width: 100%;
            }

            .sepet-container {
                position: relative;
                top: 0;
                order: 2;
                display: none !important;
            }

            .sticky-search {
                top: 0;
                margin: -20px -20px 20px -20px;
                border-radius: 0;
                padding: 10px 15px; /* Squeeze a bit more on mobile */
            }

            .product-grid {
                grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
                gap: 8px;
            }

            .product-card {
                min-height: unset;
                padding: 10px;
                border-radius: 10px;
            }

            .product-info-col {
                padding-bottom: 8px;
            }

            .product-code-text {
                font-size: clamp(0.8rem, 3.5vw, 1rem);
                margin-bottom: 4px;
            }

            .product-name-text {
                font-size: clamp(0.65rem, 2.5vw, 0.85rem);
                -webkit-line-clamp: 2; /* Allow 2 lines */
            }

            .product-action-row {
                flex-direction: column;
                gap: 6px;
                align-items: stretch;
            }

            .qty-control-wrapper {
                height: clamp(28px, 8vw, 36px);
            }
            .qty-btn {
                width: 24px;
                font-size: 1rem;
            }
            .product-qty-input {
                font-size: clamp(0.7rem, 3vw, 0.9rem);
            }

            .product-add-btn {
                width: 100%;
                height: clamp(28px, 8vw, 36px);
                font-size: clamp(0.6rem, 2.5vw, 0.8rem);
                letter-spacing: 0;
            }

            .desktop-text { display: none; }
            .mobile-text { display: inline; }

            .mobile-bottom-nav {
                display: flex !important;
            }
            body {
                padding-bottom: 70px; /* Space for bottom nav */
            }

            /* Mobilde tabloyu gizle veya esnek yapıya geçir */
            .order-details-table thead { display: none; }
            .order-details-table td { 
                display: block; 
                text-align: right !important; 
                padding: 10px 15px !important;
                border-bottom: 1px solid rgba(255,255,255,0.05);
            }
            .order-details-table td:last-child { border-bottom: none; }
            .order-details-table td::before {
                content: attr(data-label);
                float: left;
                font-weight: 600;
                color: var(--text-main);
                font-size: 0.8rem;
            }
        }

        /* Mobile Bottom Nav Styles */
        .mobile-bottom-nav {
            display: none; /* Hidden by default, shown in media query */
            position: fixed;
            bottom: 0;
            left: 0;
            width: 100%;
            background: rgba(30, 30, 45, 0.95);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--border);
            z-index: 1000;
            padding-bottom: env(safe-area-inset-bottom);
        }

        .mob-nav-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 10px 0;
            background: transparent;
            border: none;
            color: var(--text-main);
            position: relative;
        }

        .mob-nav-item.active {
            color: var(--accent);
        }

        .mob-nav-icon {
            font-size: 1.4rem;
            margin-bottom: 4px;
        }

        .mob-nav-label {
            font-size: 0.65rem;
            font-weight: 600;
        }

        .mob-cart-badge {
            position: absolute;
            top: 4px;
            right: 50%;
            margin-right: -15px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            padding: 2px 6px;
            font-size: 0.6rem;
            font-weight: 800;
            border: 2px solid #1e1e2d;
        }

        .order-details-table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 15px;
        }

        .order-details-table th {
            background: rgba(255, 255, 255, 0.05);
            color: var(--text-main);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            padding: 12px 15px;
            text-align: left;
        }

        .order-details-table td {
            padding: 15px;
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        .order-details-table tr:hover {
            background: rgba(255, 255, 255, 0.02);
        }

        .header .btn, .header .btn-danger {
            min-width: 120px;
            max-width: 200px; /* PC'de sonsuz büyümesin */
        }

        /* Floating Action Button (FAB) for Mobile Cart */
        #mobile-cart-fab {
            position: fixed;
            bottom: 25px;
            right: 25px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--accent), var(--accent-hover));
            color: white;
            border-radius: 50%;
            display: none; /* JS will change to flex if visible class is added */
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
            z-index: 1001;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
            border: none;
            visibility: hidden;
            opacity: 0;
        }

        #mobile-cart-fab.visible {
            display: flex;
            visibility: visible;
            opacity: 1;
        }

        #mobile-cart-fab:active {
            transform: scale(0.85);
        }

        #mobile-cart-fab.pulse {
            animation: fabPulse 0.5s ease;
        }

        @keyframes fabPulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.2) rotate(10deg); box-shadow: 0 0 25px var(--accent); }
            100% { transform: scale(1); }
        }

        #mobile-cart-count {
            position: absolute;
            top: -2px;
            right: -2px;
            background: var(--danger);
            color: white;
            border-radius: 50%;
            width: 22px;
            height: 22px;
            font-size: 0.7rem;
            font-weight: 800;
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--primary-bg);
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        /* Notification Styling */
        .notification {
            position: fixed;
            bottom: clamp(20px, 5vw, 40px);
            left: 50%;
            transform: translateX(-50%);
            padding: 12px 24px;
            background: var(--accent);
            color: white;
            border-radius: 30px;
            font-weight: 600;
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
            z-index: 2000;
            display: none;
        }
        
        @media screen and (max-width: 991.98px) {
            .notification {
                bottom: 85px; /* Above the bottom nav bar */
            }
        }

        /* Özel Onay Modalı CSS */
        #customConfirmModal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        #customConfirmModal.active {
            display: flex;
        }

        #customConfirmBox {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            padding: 30px;
            border-radius: 20px;
            max-width: 420px;
            width: 90%;
            text-align: center;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
        }

        #customConfirmBox h4 {
            margin-top: 0;
            color: var(--text-light);
            font-size: 1.25rem;
            margin-bottom: 12px;
        }

        #customConfirmBox p {
            color: var(--text-main);
            margin-bottom: 25px;
            line-height: 1.6;
        }

        .modal-btns {
            display: flex;
            gap: 10px;
            justify-content: center;
            flex-wrap: wrap;
        }

        .btn-cancel-modal, .btn-ok-modal, .btn-new-modal {
            padding: 12px 20px;
            border-radius: 10px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.9rem;
        }

        .btn-cancel-modal {
            background: rgba(255, 255, 255, 0.05);
            color: #fff;
            border: 1px solid var(--border);
        }

        .btn-new-modal {
            background: #3b82f6;
            color: #fff;
            border: none;
        }

        .btn-ok-modal {
            background: var(--accent);
            color: #fff;
            border: none;
        }

        .btn-cancel-modal:hover { background: rgba(255, 255, 255, 0.1); }
        .btn-new-modal:hover { background: #2563eb; }
        .btn-ok-modal:hover { background: var(--accent-hover); }

        /* Sub Tabs */
        .sub-tabs {
            display: flex;
            overflow-x: auto;
            gap: 8px;
            padding-bottom: 10px;
            margin-bottom: 25px;
            scrollbar-width: none; /* Firefox */
        }
        .sub-tabs::-webkit-scrollbar { display: none; } /* Chrome/Safari */

        .sub-tab-btn {
            background: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border);
            border-radius: 20px;
            white-space: nowrap;
            padding: 8px 18px;
            font-size: 0.85rem;
            color: var(--text-main);
        }

        .sub-tab-btn.active {
            background: var(--accent);
            color: #fff;
            border-color: var(--accent);
        }

        /* ===== CART DRAWER (Mobil Alt Çekmece) ===== */
        .cart-drawer-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            z-index: 1500;
            opacity: 0;
            visibility: hidden;
            transition: opacity 0.3s ease, visibility 0.3s ease;
        }
        .cart-drawer-overlay.open {
            opacity: 1;
            visibility: visible;
        }

        .cart-drawer {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            max-height: 75vh;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-top: 1px solid var(--border);
            border-radius: 20px 20px 0 0;
            z-index: 1600;
            transform: translateY(100%);
            transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            flex-direction: column;
            box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
        }
        .cart-drawer.open {
            transform: translateY(0);
        }

        .cart-drawer-handle {
            display: flex;
            justify-content: center;
            padding: 10px 0 6px 0;
            cursor: grab;
        }
        .cart-drawer-handle span {
            width: 40px;
            height: 5px;
            background: rgba(255, 255, 255, 0.25);
            border-radius: 10px;
        }

        .cart-drawer-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 20px 12px 20px;
            border-bottom: 1px solid var(--border);
        }
        .cart-drawer-header h3 {
            margin: 0;
            color: var(--text-light);
            font-size: 1.1rem;
        }
        .cart-drawer-close {
            background: rgba(255, 255, 255, 0.08);
            border: none;
            color: var(--text-main);
            font-size: 1.3rem;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s;
            padding: 0;
        }
        .cart-drawer-close:hover {
            background: rgba(255, 255, 255, 0.15);
            transform: none;
            box-shadow: none;
        }

        .cart-drawer-body {
            overflow-y: auto;
            padding: 15px 20px;
            flex: 1;
        }

        .cart-drawer-body table {
            width: 100%;
            border-collapse: collapse;
        }
        .cart-drawer-body th {
            text-align: left;
            font-size: 0.85rem;
            color: var(--text-main);
            padding: 8px 0;
            border-bottom: 1px solid var(--border);
        }
        .cart-drawer-body td {
            padding: 12px 0;
            border-bottom: 1px solid rgba(255,255,255,0.05);
            vertical-align: middle;
        }
        .cart-drawer-body tr:last-child td {
            border-bottom: none;
        }

        .cart-drawer-footer {
            padding: 15px 20px;
            border-top: 1px solid var(--border);
        }
        .cart-drawer-footer button {
            width: 100%;
            padding: 14px;
            font-size: 1rem;
            border-radius: 12px;
        }

        /* FAB'ı drawer açıkken gizle */
        #mobile-cart-fab.drawer-open {
            opacity: 0 !important;
            visibility: hidden !important;
            pointer-events: none;
        }

        /* ===== KOMPAKT PAKETLEME PLANLAYICI ===== */
        .ambalaj-row {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 10px 14px;
            background: rgba(0,0,0,0.2);
            border: 1px solid rgba(255,255,255,0.07);
            border-radius: 10px;
            margin-top: 10px;
            flex-wrap: wrap;
        }
        .ambalaj-label {
            font-size: 0.75rem;
            color: var(--text-main);
            white-space: nowrap;
            font-weight: 600;
        }
        .ambalaj-kg-input {
            width: 90px;
            padding: 6px 10px;
            background: rgba(0,0,0,0.3);
            border: 1px solid var(--border);
            border-radius: 8px;
            color: #fff;
            font-size: 0.9rem;
            text-align: center;
            outline: none;
        }
        .ambalaj-kg-input:focus { border-color: var(--accent); }
        .ambalaj-sifirla {
            background: transparent;
            border: 1px solid rgba(255,255,255,0.15);
            color: var(--text-main);
            padding: 6px 12px;
            border-radius: 8px;
            font-size: 0.78rem;
            cursor: pointer;
            white-space: nowrap;
        }
        .ambalaj-sifirla:hover { background: rgba(255,255,255,0.06); transform: none; box-shadow: none; }
        .bottle-grid-compact {
            display: flex;
            gap: 6px;
            flex-wrap: wrap;
            align-items: flex-end;
            flex: 1;
        }
        .bottle-btn-compact {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
            cursor: pointer;
            border: 1.5px solid rgba(255,255,255,0.1);
            border-radius: 8px;
            padding: 6px 5px 4px;
            background: rgba(255,255,255,0.03);
            transition: all 0.15s;
            min-width: 40px;
            position: relative;
        }
        .bottle-btn-compact:hover { border-color: rgba(27,197,189,0.5); background: rgba(27,197,189,0.05); }
        .bottle-btn-compact.active { border-color: #1bc5bd; background: rgba(27,197,189,0.1); }
        .bottle-badge-compact {
            position: absolute;
            top: -7px; right: -7px;
            background: #1bc5bd;
            color: #000;
            border-radius: 50%;
            width: 17px; height: 17px;
            font-size: 0.58rem;
            font-weight: 800;
            display: none;
            align-items: center;
            justify-content: center;
            border: 1.5px solid var(--primary-bg);
        }
        .bottle-lbl-compact {
            font-size: 0.58rem;
            font-weight: 700;
            color: var(--text-main);
        }
        .ambalaj-total {
            font-size: 0.78rem;
            font-weight: 700;
            white-space: nowrap;
            margin-left: 4px;
        }
        /* Popup */
        .ap-overlay { position:fixed; inset:0; z-index:3000; display:none; }
        .ap-overlay.open { display:block; }
        .ap-popup {
            position: fixed;
            background: rgba(26,26,36,0.98);
            border: 1px solid rgba(255,255,255,0.12);
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 12px 32px rgba(0,0,0,0.6);
            z-index: 3001;
            width: 180px;
        }
        .ap-popup-title {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-main);
            margin-bottom: 8px;
        }
        .ap-popup-row { display:flex; align-items:center; gap:5px; }
        .ap-pm {
            width: 28px; height: 28px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.12);
            background: rgba(255,255,255,0.05);
            color: #fff; font-size: 16px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            padding: 0; flex-shrink: 0;
        }
        .ap-pm:hover { background: rgba(255,255,255,0.1); transform: none; box-shadow: none; }
        .ap-inp {
            flex: 1; text-align: center; font-size: 20px; font-weight: 800;
            border: 1px solid rgba(255,255,255,0.12); border-radius: 6px;
            padding: 2px 0; background: rgba(0,0,0,0.3); color: #fff;
            font-family: 'Courier New', monospace;
            -moz-appearance: textfield;
        }
        .ap-inp::-webkit-outer-spin-button, .ap-inp::-webkit-inner-spin-button { -webkit-appearance: none; }
        .ap-inp:focus { outline: none; border-color: var(--accent); }
        .ap-ok {
            margin-top: 7px; width: 100%; padding: 6px;
            border-radius: 7px; border: none;
            background: var(--accent); color: #000;
            font-size: 12px; font-weight: 700; cursor: pointer;
        }
        .ap-ok:hover { opacity: .88; transform: none; box-shadow: none; }
        .ap-del {
            margin-top: 3px; width: 100%; padding: 4px;
            border-radius: 6px;
            border: 1px solid rgba(255,255,255,0.1);
            background: transparent;
            color: rgba(255,255,255,0.35); font-size: 11px; cursor: pointer;
        }
        .ap-del:hover { background: rgba(255,255,255,0.05); transform: none; box-shadow: none; }
        /* ===== KOMPAKT PAKETLEME SON ===== */

        /* Sepetteki not textarea */
        .cart-note-textarea {
            margin-top: 6px;
            width: 100%;
            background: rgba(0,0,0,0.25);
            border: 1px solid var(--border);
            border-radius: 6px;
            color: #ccc;
            font-size: 0.78rem;
            padding: 6px 8px;
            resize: none;
            min-height: 48px;
            outline: none;
            transition: border-color 0.2s;
            font-family: inherit;
        }
        .cart-note-textarea:focus { border-color: var(--accent); color: #fff; }
        .cart-note-textarea::placeholder { color: rgba(255,255,255,0.3); }
/* =============================================
   SİPARİŞ YÖNETİM MERKEZİ (PREMIUM UI)
   ============================================= */

/* Filtreleme Çubuğu */
.order-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--glass-bg);
    padding: 18px;
    border-radius: 16px;
    border: 1px solid var(--border);
    margin-bottom: 25px;
    align-items: flex-end;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1 1 180px;
}

.filter-group label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-main);
    letter-spacing: 0.5px;
    margin-left: 2px;
}

.filter-input {
    background: rgba(0,0,0,0.3) !important;
    border: 1px solid var(--border) !important;
    border-radius: 10px !important;
    height: 40px !important;
    font-size: 0.88rem !important;
    padding: 0 12px !important;
    color: #fff !important;
    transition: all 0.2s;
}

.filter-input:focus {
    border-color: var(--accent) !important;
    background: rgba(0,0,0,0.4) !important;
}

/* Akordiyon Sipariş Kartları */
.order-accordion-item {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.order-accordion-item.open {
    border-color: rgba(27, 197, 189, 0.3);
    background: rgba(255,255,255,0.04);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.order-summary-row {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    gap: 15px;
    user-select: none;
}

.order-summary-row:hover {
    background: rgba(255,255,255,0.03);
}

.order-id-badge {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    min-width: 60px;
}

.order-date-text {
    font-size: 0.85rem;
    color: var(--text-main);
    flex: 1;
}

.order-volume-summary {
    font-weight: 700;
    color: var(--accent);
    background: rgba(27, 197, 189, 0.1);
    padding: 4px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Statü Hapları (Pills) */
.pill-badge {
    padding: 5px 14px;
    border-radius: 64px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
}

.pill-pending { background: rgba(255, 193, 7, 0.15); color: #ffc107; border-color: rgba(255, 193, 7, 0.2); }
.pill-supply { background: rgba(168, 85, 247, 0.15); color: #a855f7; border-color: rgba(168, 85, 247, 0.2); }
.pill-arrive { background: rgba(253, 126, 20, 0.15); color: #fd7e14; border-color: rgba(253, 126, 20, 0.2); }
.pill-success { background: rgba(27, 197, 189, 0.15); color: #1bc5bd; border-color: rgba(27, 197, 189, 0.2); }
.pill-danger { background: rgba(246, 78, 96, 0.15); color: #f64e60; border-color: rgba(246, 78, 96, 0.2); }

/* Açılır Detaylar */
.order-details-expanded {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(0,0,0,0.1);
}

.order-accordion-item.open .order-details-expanded {
    display: block;
}

.order-action-bar {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255,255,255,0.1);
    justify-content: flex-end;
}

.btn-order-action {
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 8px;
    gap: 6px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
}

.btn-reorder { background: rgba(27, 197, 189, 0.1); color: var(--accent); border: 1px solid var(--accent); }
.btn-reorder:hover { background: var(--accent); color: #000; }

.btn-print { background: rgba(255,255,255,0.05); color: #fff; border: 1px solid var(--border); }
.btn-print:hover { background: rgba(255,255,255,0.15); }

/* Filtre Özeti */
.filter-results-summary {
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 15px;
    padding: 0 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* =============================================
   MOBILE 2 COLUMN OVERRIDE
   ============================================= */
@media screen and (max-width: 500px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* =============================================
   YAZDIRMA (PROFESSIONAL PDF)
   ============================================= */
@media print {
    body * { visibility: hidden !important; }
    .order-accordion-item.printing, .order-accordion-item.printing * { visibility: visible !important; }
    .order-accordion-item.printing {
        position: absolute;
        left: 0; top: 0;
        width: 100%;
        background: #fff !important;
        color: #000 !important;
        border: none !important;
        box-shadow: none !important;
        padding: 40px !important;
    }
    .order-accordion-item.printing .order-summary-row,
    .order-accordion-item.printing .order-action-bar,
    .order-accordion-item.printing .btn-order-action { display: none !important; }
    
    .order-accordion-item.printing .order-details-expanded { display: block !important; background: none !important; padding: 0 !important; border: none !important; }
    .order-accordion-item.printing .order-id-badge { color: #000 !important; font-size: 2rem !important; margin-bottom: 20px; display: block; }
    .order-accordion-item.printing table { border: 1px solid #ddd !important; border-collapse: collapse !important; width: 100%; }
    .order-accordion-item.printing th { background: #f0f0f0 !important; color: #000 !important; border: 1px solid #ddd !important; padding: 10px; }
    .order-accordion-item.printing td { border: 1px solid #ddd !important; color: #000 !important; padding: 10px; }
    .order-accordion-item.printing .order-volume-summary { color: #000 !important; border: 1px solid #000 !important; background: none !important; margin-bottom: 20px; display: inline-block; }
}
