        /* Global Premium Design Variables */
        :root {
            --brand-primary: #ec8a41;
            --brand-primary-dark: #d4773a;
            --brand-primary-light: #f0a366;
            --gradient-primary: linear-gradient(135deg, #ec8a41 0%, #d4773a 100%);
            --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-success: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
            --gradient-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            --gradient-info: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
            --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.37);
            --shadow-elevation: 0 20px 60px rgba(0, 0, 0, 0.15);
            --shadow-brand: 0 8px 25px rgba(236, 138, 65, 0.4);
            --shadow-success: 0 8px 25px rgba(34, 197, 94, 0.4);
            --shadow-danger: 0 8px 25px rgba(239, 68, 68, 0.4);
            --border-glass: 1px solid rgba(255, 255, 255, 0.18);
            --backdrop-blur: blur(20px);
        }

        /* === MAIN WRAPPER STYLING === */
        .retail-admin-wrapper {
            margin-top: 20px;
        }

        /* === KEYFRAME ANIMATIONS === */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 30px, 0);
            }

            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translate3d(0, 20px, 0);
            }

            to {
                opacity: 1;
                transform: translate3d(0, 0, 0);
            }
        }

        @keyframes modalAppear {
            from {
                opacity: 0;
                transform: scale(0.8) translateY(-50px);
            }

            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }

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

            to {
                transform: rotate(360deg);
            }
        }

        @keyframes shimmer {

            0%,
            100% {
                opacity: 0.3;
            }

            50% {
                opacity: 1;
            }
        }

        @keyframes pulse {

            0%,
            100% {
                transform: scale(1);
            }

            50% {
                transform: scale(1.05);
            }
        }

        @keyframes titleGlow {

            0%,
            100% {
                text-shadow: 0 0 20px rgba(236, 138, 65, 0.3);
            }

            50% {
                text-shadow: 0 0 30px rgba(236, 138, 65, 0.6);
            }
        }

        @keyframes expandWidth {
            from {
                width: 0;
            }

            to {
                width: 100%;
            }
        }

        @keyframes cardsFloat {

            0%,
            100% {
                transform: translateY(0px);
            }

            50% {
                transform: translateY(-5px);
            }
        }

        @keyframes tabBarSlide {
            from {
                transform: translateX(-100%);
                opacity: 0;
            }

            to {
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes addonSelected {
            0% {
                transform: scale(1);
                background: rgba(255, 255, 255, 0.9);
            }

            50% {
                transform: scale(1.1);
                background: rgba(34, 197, 94, 0.2);
            }

            100% {
                transform: scale(1);
                background: rgba(34, 197, 94, 0.15);
            }
        }

        @keyframes addonDeselected {
            0% {
                transform: scale(1);
                background: rgba(34, 197, 94, 0.15);
            }

            50% {
                transform: scale(0.95);
                background: rgba(239, 68, 68, 0.1);
            }

            100% {
                transform: scale(1);
                background: rgba(255, 255, 255, 0.9);
            }
        }

        @keyframes highlightGreen {

            0%,
            100% {
                background: rgba(34, 197, 94, 0.1);
            }

            50% {
                background: rgba(34, 197, 94, 0.3);
            }
        }

        @keyframes highlightBlue {

            0%,
            100% {
                background: rgba(59, 130, 246, 0.1);
            }

            50% {
                background: rgba(59, 130, 246, 0.3);
            }
        }

        /* === UNIFIED TABLE DESIGN SYSTEM === */

        /* Standard Table Styles - Applied to All Tables */
        .modern-product-table,
        .retail-product-table,
        .retail-wallet-history-table,
        .retail-admin-wrapper .retail-children-table,
        .retail-orders-table,
        .retail-product-table-container table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            overflow: hidden;
            margin: 24px auto;
            animation: slideInUp 0.8s ease-out;
        }

        /* Standard Table Headers - Applied to All Tables */
        .modern-product-table thead th,
        .retail-admin-wrapper .modern-product-table th,
        .retail-admin-wrapper .retail-product-table th,
        .retail-admin-wrapper .retail-wallet-history-table th,
        .retail-admin-wrapper .retail-children-table thead th,
        .retail-admin-wrapper .retail-orders-table th,
        .retail-admin-wrapper .retail-product-table-container th {
            padding: 16px 20px;
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 13px;
            text-align: left;
            border: none;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            transition: all 0.3s ease;
        }

        /* Standard Table Cells - Applied to All Tables */
        .modern-product-table td,
        .retail-product-table td,
        .retail-wallet-history-table td,
        .retail-admin-wrapper .retail-children-table td,
        .retail-orders-table td,
        .retail-product-table-container td {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: left;
            color: #2d3748;
            font-weight: 500;
            transition: all 0.3s ease;
            vertical-align: middle;
        }

        /* Standard Table Row Hover Effects - Applied to All Tables */
        .modern-product-table tbody tr:hover,
        .retail-product-table tbody tr:hover,
        .retail-wallet-history-table tbody tr:hover,
        .retail-admin-wrapper .retail-children-table tr:hover td,
        .retail-orders-table tr:hover td,
        .retail-product-table-container tr:hover td {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.01);
        }

        /* Special case for children table - use primary gradient header with higher specificity */
        .retail-admin-wrapper .retail-children-table thead th {
            background: var(--gradient-primary);
        }

        /* Special case for children table hover - maintain its blue hover with higher specificity */
        .retail-admin-wrapper .retail-children-table tbody tr:hover td {
            background: rgba(79, 172, 254, 0.1);
        }

        /* === UNIFIED BUTTON DESIGN SYSTEM === */

        /* Standard Button Base Styles (excluding qty-btn which has special circular design) */
        .sticky-toggle-btn,
        .purchase-btn,
        .retail-topnav .nav-btn,
        .retail-create-product-btn,
        .retail-order-toggle-btn,
        .status-filter-btn,
        .refresh-orders-btn,
        .retail-action-btn,
        .retail-filter-wrapper button,
        .retail-order-status-btn,
        .retail-item-status-btn,
        .modal-close-btn,
        .category-tab {
            border-radius: 15px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* Standard Button Hover Transform (excluding qty-btn which has custom hover) */
        .sticky-toggle-btn:hover,
        .purchase-btn:hover,
        .retail-topnav .nav-btn:hover,
        .retail-create-product-btn:hover:enabled,
        .retail-order-toggle-btn:hover,
        .status-filter-btn:hover,
        .refresh-orders-btn:hover,
        .retail-action-btn:hover,
        .retail-filter-wrapper button:hover,
        .retail-order-status-btn:hover,
        .retail-item-status-btn:hover,
        .modal-close-btn:hover,
        .category-tab:hover {
            transform: translateY(-2px) scale(1.05);
        }

        /* Standard Button Shimmer Effect (excluding qty-btn which doesn't use shimmer) */
        .sticky-toggle-btn::before,
        .purchase-btn::before,
        .retail-topnav .nav-btn::before,
        .retail-create-product-btn::before,
        .retail-order-toggle-btn::before,
        .status-filter-btn::before,
        .refresh-orders-btn::before,
        .retail-action-btn::before,
        .retail-filter-wrapper button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .sticky-toggle-btn:hover::before,
        .purchase-btn:hover::before,
        .retail-topnav .nav-btn:hover::before,
        .retail-create-product-btn:hover::before,
        .retail-order-toggle-btn:hover::before,
        .status-filter-btn:hover::before,
        .refresh-orders-btn:hover::before,
        .retail-action-btn:hover::before,
        .retail-filter-wrapper button:hover::before {
            left: 100%;
        }

        /* === SPECIFIC BUTTON CONFIGURATIONS === */



        /* Primary Action Buttons */
        .retail-create-product-btn,
        .purchase-btn {
            padding: 12px 32px;
            font-size: 16px;
            border-radius: 18px;
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow-brand);
        }

        .retail-create-product-btn {
            margin-bottom: 0 !important;
        }

        .retail-create-product-btn:disabled,
        .purchase-btn:disabled {
            background: #9ca3af;
            opacity: 0.6;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .retail-create-product-btn:hover:enabled,
        .purchase-btn:hover:enabled {
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        /* Standard Buttons */
        .retail-action-btn,
        .retail-topnav .nav-btn,
        .retail-filter-wrapper button,
        .status-filter-btn,
        .refresh-orders-btn {
            padding: 12px 20px;
        }

        /* Small Buttons */
        .retail-order-toggle-btn,
        .retail-action-btn {
            padding: 10px 16px;
            font-size: 13px;
        }

        /* === STATUS BUTTONS WITH COLOR CODING === */

        .retail-admin-wrapper .status-entregado,
        .retail-admin-wrapper .retail-order-status-btn.status-entregado,
        .retail-admin-wrapper .retail-item-status-btn.status-entregado {
            background: var(--gradient-success);
            color: white;
            box-shadow: var(--shadow-success);
        }

        .status-entregado::before,
        .retail-order-status-btn.status-entregado::before,
        .retail-item-status-btn.status-entregado::before {
            content: '✓ ';
            font-weight: bold;
        }

        .status-entregado:hover,
        .retail-order-status-btn.status-entregado:hover,
        .retail-item-status-btn.status-entregado:hover {
            box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
        }

        .retail-admin-wrapper .status-pendiente,
        .retail-admin-wrapper .retail-order-status-btn.status-pendiente,
        .retail-admin-wrapper .retail-item-status-btn.status-pendiente {
            background: var(--gradient-danger);
            color: white;
            box-shadow: var(--shadow-danger);
        }

        .status-pendiente::before,
        .retail-order-status-btn.status-pendiente::before,
        .retail-item-status-btn.status-pendiente::before {
            content: '⏳ ';
            font-weight: bold;
        }

        .status-pendiente:hover,
        .retail-order-status-btn.status-pendiente:hover,
        .retail-item-status-btn.status-pendiente:hover {
            box-shadow: 0 12px 35px rgba(239, 68, 68, 0.6);
        }

        /* Shimmer effect for status buttons */
        .status-entregado::after,
        .status-pendiente::after,
        .retail-order-status-btn::after,
        .retail-item-status-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
            pointer-events: none;
        }

        .status-entregado:hover::after,
        .status-pendiente:hover::after,
        .retail-order-status-btn:hover::after,
        .retail-item-status-btn:hover::after {
            left: 100%;
        }

        /* === ENHANCED DATE FILTER === */

        .retail-date-filter {
            margin: 20px auto;
            max-width: clamp(600px, 90%, 960px);
            background: var(--gradient-glass);
            backdrop-filter: var(--backdrop-blur);
            -webkit-backdrop-filter: var(--backdrop-blur);
            padding: 24px;
            border-radius: 20px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            display: flex;
            flex-direction: column;
            gap: 12px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.6s ease-out;
        }

        .retail-date-filter::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: rotate 8s linear infinite;
            pointer-events: none;
        }

        /* === UNIFIED INPUT STYLING === */

        #retail-date-range,
        .retail-modal-input,
        .retail-filter-row input,
        .retail-filter-row select {
            padding: 14px 18px;
            border-radius: 15px;
            border: none;
            font-size: 14px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            z-index: 2;
        }

        #retail-date-range:focus,
        .retail-modal-input:focus,
        .retail-filter-row input:focus,
        .retail-filter-row select:focus {
            outline: none;
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* === CONTAINER STYLES === */

        /* Standard Container Styles */
        .retail-product-table-container,
        .retail-filter-wrapper,
        .retail-admin-wrapper .retail-children-table-wrapper {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 20px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            margin: 24px auto;
            max-width: clamp(600px, 90%, 1000px);
            animation: slideInUp 0.8s ease-out;
            position: relative;
        }

        /* Container Accent Bars - All Use Primary Color */
        .retail-product-table-container::before,
        .retail-filter-wrapper::before,
        .retail-admin-wrapper .retail-children-table-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* === REMAINING COMPONENT STYLES === */

        /* Keep all other existing component styles that don't conflict... */

        /* Premium Modal with Static Background */
        .retail-modal-content.retail-modal-lg {
            width: clamp(460px, 90%, 1000px);
            max-height: 85vh;
            height: auto;
            min-height: auto;
            overflow-y: auto;
            overflow-x: hidden;
            margin: 2.5vh auto;
            padding: 32px 28px 0 28px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 25px;
            border: 2px solid rgba(236, 138, 65, 0.3);
            box-shadow: 0 20px 60px rgba(236, 138, 65, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
            position: relative;
            z-index: 999999;
            box-sizing: border-box;
        }

        /* Specific styling for Child Purchase Modal */
        #child-purchase-modal .retail-modal-content.retail-modal-lg,
        .child-purchase-modal .retail-modal-content.retail-modal-lg {
            height: calc(100vh - 40px);
            max-height: calc(100vh - 40px);
            min-height: calc(100vh - 40px);
            margin-top: 35px;
            margin-bottom: 0;
            overflow-y: auto;
            overflow-x: hidden;
            padding: 32px 28px 0px 28px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 25px;
            border: 2px solid rgba(236, 138, 65, 0.3);
            box-shadow: 0 20px 60px rgba(236, 138, 65, 0.15), 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        /* Modal Scrollbar Styling */
        #child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar,
        .child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar {
            width: 8px;
        }

        #child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-track,
        .child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-track {
            background: rgba(236, 138, 65, 0.1);
            border-radius: 10px;
        }

        #child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb,
        .child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb {
            background: var(--brand-primary);
            border-radius: 10px;
            border: 2px solid rgba(255, 255, 255, 0.2);
        }

        #child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb:hover,
        .child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb:hover {
            background: var(--brand-primary-dark);
        }

        .retail-modal-content.retail-modal-lg::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 25px 25px 0 0;
        }


        /* Premium Modal Close Button V2 - High Specificity Design System */
        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2,
        body #child-purchase-modal .retail-modal-close-btn-v2,
        .retail-modal-close-btn-v2 {
            position: relative !important;
            float: right !important;
            margin-top: -10px !important;
            margin-right: -10px !important;
            margin-bottom: 10px !important;
            width: 40px !important;
            height: 40px !important;
            min-width: 40px !important;
            min-height: 40px !important;
            max-width: 40px !important;
            max-height: 40px !important;
            background: rgba(255, 255, 255, 0.9) !important;
            backdrop-filter: blur(15px) !important;
            -webkit-backdrop-filter: blur(15px) !important;
            border: 2px solid rgba(236, 138, 65, 0.2) !important;
            border-radius: 50% !important;
            cursor: pointer !important;
            font-size: 20px !important;
            color: #4a5568 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
            z-index: 9999 !important;
            line-height: 1 !important;
            font-weight: 500 !important;
            flex-shrink: 0 !important;
            user-select: none !important;
            overflow: hidden !important;
            text-decoration: none !important;
            outline: none !important;
            padding: 0 !important;
            font-family: inherit !important;
            text-align: center !important;
            vertical-align: middle !important;
            box-sizing: border-box !important;
        }

        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2::before,
        body #child-purchase-modal .retail-modal-close-btn-v2::before,
        .retail-modal-close-btn-v2::before {
            content: '' !important;
            position: absolute !important;
            top: 0 !important;
            left: 0 !important;
            right: 0 !important;
            bottom: 0 !important;
            background: var(--gradient-primary, linear-gradient(135deg, #f0a366 0%, #ec8a41 100%)) !important;
            opacity: 0 !important;
            transition: opacity 0.3s ease !important;
            border-radius: 50% !important;
            pointer-events: none !important;
        }

        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2:hover,
        body #child-purchase-modal .retail-modal-close-btn-v2:hover,
        .retail-modal-close-btn-v2:hover {
            background: rgba(255, 255, 255, 0.95) !important;
            color: var(--brand-primary, #ec8a41) !important;
            transform: translateY(-2px) scale(1.05) !important;
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.2) !important;
            border-color: var(--brand-primary, #ec8a41) !important;
        }

        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2:hover::before,
        body #child-purchase-modal .retail-modal-close-btn-v2:hover::before,
        .retail-modal-close-btn-v2:hover::before {
            opacity: 0.1 !important;
        }

        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2:active,
        body #child-purchase-modal .retail-modal-close-btn-v2:active,
        .retail-modal-close-btn-v2:active {
            transform: translateY(-1px) scale(0.98) !important;
            box-shadow: 0 4px 15px rgba(236, 138, 65, 0.15) !important;
        }

        body .retail-admin-wrapper #child-purchase-modal .retail-modal-close-btn-v2:focus,
        body #child-purchase-modal .retail-modal-close-btn-v2:focus,
        .retail-modal-close-btn-v2:focus {
            outline: 2px solid rgba(236, 138, 65, 0.3) !important;
            outline-offset: 2px !important;
        }

        /* Legacy support for old class name - lower priority */
        .modal-close-btn {
            position: relative;
            float: right;
            margin-top: -10px;
            margin-right: -10px;
            margin-bottom: 10px;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border: 2px solid rgba(236, 138, 65, 0.2);
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            color: #4a5568;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            z-index: 1001;
            line-height: 1;
            font-weight: 500;
            flex-shrink: 0;
            user-select: none;
            overflow: hidden;
        }


        /* Modal Header - Independent of Close Button */
        .modal-header {
            margin-bottom: 24px;
            padding-right: 30px;
            /* Space for close button */
        }

        .retail-modal-form label {
            font-weight: 600;
            margin-top: 16px;
            display: block;
            font-size: 15px;
            color: #2d3748;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
            margin-bottom: 8px;
        }

        .retail-modal-input,
        .retail-modal-select {
            width: 100%;
            padding: 16px 18px;
            margin-bottom: 18px;
            font-size: 15px;
            line-height: 1.5;
            border: none;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            vertical-align: middle;
            box-sizing: border-box;
        }

        .retail-modal-input:focus,
        .retail-modal-select:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        .retail-modal-title {
            font-size: 28px;
            font-weight: 700;
            text-align: center;
            margin-bottom: 24px;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            animation: titleGlow 3s ease-in-out infinite;
        }

        .retail-modal-section {
            margin-bottom: 24px;
            animation: fadeInUp 0.6s ease-out;
            animation-fill-mode: both;
        }

        .retail-modal-section:nth-child(2) {
            animation-delay: 0.1s;
        }

        .retail-modal-section:nth-child(3) {
            animation-delay: 0.2s;
        }

        .retail-modal-section:nth-child(4) {
            animation-delay: 0.3s;
        }



        /* Enhanced Section Titles with Gradient Effects */
        .section-title {
            font-size: 20px;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin: 0 0 20px 0;
            padding-bottom: 12px;
            border-bottom: 3px solid transparent;
            border-image: var(--gradient-primary) 1;
            position: relative;
            animation: fadeInUp 0.6s ease-out;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            width: 60px;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 2px;
            animation: expandWidth 1s ease-out 0.5s both;
        }

        /* Premium Child and Parent Summary Cards */
        .child-parent-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
            margin-bottom: 32px;
            animation: cardsFloat 0.8s ease-out;
        }

        .summary-card {
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 20px;
            padding: 24px;
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
            border: var(--border-glass);
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            transform-style: preserve-3d;
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--gradient-success);
            border-radius: 20px 20px 0 0;
        }

        .summary-card::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
            animation: rotate 6s linear infinite;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .summary-card:hover::after {
            opacity: 1;
        }

        .summary-card:hover {
            transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
            box-shadow: 0 20px 60px rgba(31, 38, 135, 0.5);
        }

        .card-label {
            font-size: 13px;
            font-weight: 700;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 1px;
            position: relative;
            z-index: 2;
        }

        .card-balance {
            font-size: 32px;
            font-weight: 800;
            background: var(--gradient-success);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 12px;
            position: relative;
            z-index: 2;
            text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .card-name {
            font-size: 16px;
            color: #2d3748;
            font-weight: 600;
            position: relative;
            z-index: 2;
        }

        @media (max-width: 600px) {
            .child-parent-cards {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .summary-card:hover {
                transform: translateY(-4px);
            }
        }

        /* Premium Category Tab Bar with Glassmorphism */
        .category-tab-bar {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
            overflow-x: auto;
            overflow-y: hidden;
            scrollbar-width: thin;
            scrollbar-color: rgba(102, 126, 234, 0.3) transparent;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            animation: tabBarSlide 0.8s ease-out;
            width: 100%;
            box-sizing: border-box;
        }

        .category-tab-bar::-webkit-scrollbar {
            height: 4px;
        }

        .category-tab-bar::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 2px;
        }

        .category-tab-bar::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.3);
            border-radius: 2px;
        }

        .category-tab-bar::-webkit-scrollbar-thumb:hover {
            background: rgba(236, 138, 65, 0.5);
        }

        .category-tab {
            padding: 10px 16px;
            border: none;
            background: rgba(255, 255, 255, 0.6);
            color: #4a5568;
            border-radius: 15px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            flex-shrink: 0;
            width: fit-content;
            min-width: fit-content;
            max-width: max-content;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
        }

        .category-tab::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .category-tab:hover::before {
            left: 100%;
        }

        .category-tab:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .category-tab.active {
            background: var(--gradient-primary);
            color: white;
            transform: translateY(-3px) scale(1.08);
            box-shadow: var(--shadow-brand);
        }

        .category-tab.active::before {
            display: none;
        }

        /* Responsive Category Tab Adjustments */
        @media (max-width: 768px) {
            .category-tab-bar {
                padding: 6px 8px;
                gap: 4px;
            }

            .category-tab {
                padding: 8px 12px;
                font-size: 13px;
                min-width: fit-content;
            }
        }

        @media (max-width: 480px) {
            .category-tab-bar {
                padding: 4px 6px;
                gap: 3px;
            }

            .category-tab {
                padding: 6px 8px;
                font-size: 12px;
                min-width: fit-content;
            }
        }

        /* Modern Product Table - Handled by unified system above */

        .product-name {
            font-weight: 600;
            color: #2d3748;
            font-size: 15px;
            background: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .product-price {
            font-weight: 700;
            background: var(--gradient-success);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 16px;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        /* Premium Quantity Selector */
        /* Enhanced Quantity Selector Container */
        .quantity-selector {
            display: flex;
            align-items: center;
            gap: 2px;
            justify-content: center;
            padding: 6px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            border: 2px solid rgba(236, 138, 65, 0.15);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
            position: relative;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-width: 140px;
            width: fit-content;
            margin: 0 auto;
        }

        .quantity-selector::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(135deg, rgba(236, 138, 65, 0.05) 0%, rgba(212, 119, 58, 0.08) 100%);
            border-radius: 16px;
            pointer-events: none;
        }

        .quantity-selector:hover {
            border-color: rgba(236, 138, 65, 0.3);
            box-shadow: 0 12px 35px rgba(236, 138, 65, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
            transform: translateY(-2px);
        }

        /* Quantity Controls - Handled by unified system above */

        /* Premium Addon Styles */
        .addon-group {
            padding: 20px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            margin-top: 16px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            position: relative;
            animation: fadeInUp 0.6s ease-out;
            overflow: hidden;
        }

        .addon-group::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-secondary);
            border-radius: 18px 18px 0 0;
        }

        .addon-group-title {
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            margin-bottom: 16px;
            font-size: 16px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .addon-options-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
            gap: 12px;
            align-items: stretch;
        }

        .addon-option {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 14px 18px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: var(--border-glass);
            border-radius: 15px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            min-height: 48px;
            margin: 0;
            text-align: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            user-select: none;
            overflow: hidden;
        }

        .addon-option::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .addon-option:hover::before {
            left: 100%;
        }

        .addon-option:hover {
            background: rgba(236, 138, 65, 0.1);
            border-color: var(--brand-primary);
            color: var(--brand-primary);
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.3);
        }

        .addon-option input {
            position: absolute;
            opacity: 0;
            width: 0;
            height: 0;
            margin: 0;
            pointer-events: none;
            clip: rect(0, 0, 0, 0);
            clip-path: inset(50%);
            white-space: nowrap;
        }

        .addon-option span {
            position: relative;
            z-index: 1;
            transition: all 0.25s ease;
            pointer-events: none;
        }

        .addon-option:has(input:checked) {
            background: var(--gradient-primary);
            border-color: var(--brand-primary);
            color: white;
            transform: translateY(-2px) scale(1.05);
            box-shadow: var(--shadow-brand);
        }

        .addon-option:has(input:checked) span {
            font-weight: 600;
        }

        .addon-option:has(input:checked)::after {
            content: '✓';
            position: absolute;
            top: 6px;
            right: 8px;
            color: var(--brand-primary);
            font-weight: bold;
            font-size: 12px;
            background: white;
            border-radius: 50%;
            width: 18px;
            height: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            animation: pulse 2s infinite;
        }

        .addon-option:active {
            transform: translateY(0);
            transition: transform 0.1s ease;
        }

        .addon-option:focus-within {
            outline: 2px solid #2196f3;
            outline-offset: 2px;
            box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
        }

        .addon-option input:focus {
            outline: none;
        }

        /* Responsive adjustments for addon options */
        @media (max-width: 768px) {
            .addon-options-container {
                grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
                gap: 10px;
            }

            .addon-option {
                padding: 10px 12px;
                min-height: 40px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .addon-options-container {
                grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
                gap: 8px;
            }

            .addon-option {
                padding: 8px 10px;
                min-height: 36px;
                font-size: 12px;
            }

            .addon-option:has(input:checked)::after {
                width: 14px;
                height: 14px;
                font-size: 10px;
                top: 3px;
                right: 4px;
            }
        }

        /* Animation for newly selected/deselected addon options */
        @keyframes addonSelected {
            0% {
                transform: scale(0.95) translateY(-2px);
                box-shadow: 0 6px 16px rgba(236, 138, 65, 0.2);
            }

            50% {
                transform: scale(1.08) translateY(-4px);
                box-shadow: 0 12px 30px rgba(236, 138, 65, 0.6);
            }

            100% {
                transform: scale(1.05) translateY(-2px);
                box-shadow: var(--shadow-brand);
            }
        }

        @keyframes addonDeselected {
            0% {
                transform: scale(1.02);
                opacity: 0.8;
            }

            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        .addon-option.just-selected {
            animation: addonSelected 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .addon-option.just-deselected {
            animation: addonDeselected 0.3s ease-out;
        }

        /* Premium Wallet History Toggle Button - Sticky Top Design */
        #toggle-wallet-history.sticky-toggle-btn {
            position: relative;
            z-index: 101;
            width: 100%;
            margin: 0;

            /* Override theme button styles with increased specificity */
            display: block;
            padding: 12px 32px;
            font-size: 16px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-brand);
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            justify-content: center;

            /* Enhanced glassmorphism effect */
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        #toggle-wallet-history.sticky-toggle-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
            opacity: 0;
            transition: opacity 0.4s;
            pointer-events: none;
            border-radius: 18px;
        }

        #toggle-wallet-history.sticky-toggle-btn:hover::before {
            opacity: 1;
        }

        #toggle-wallet-history.sticky-toggle-btn:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        /* Remove the problematic ::after element that was covering the gradient */
        #toggle-wallet-history.sticky-toggle-btn::after {
            display: none;
        }

        /* Wallet History Toggle Container - sticky at top, travels with scroll */
        .wallet-history-toggle-container {
            position: sticky;
            top: -20px;
            width: 100%;
            margin: 16px 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            padding: 8px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        }

        .sticky-toggle-btn {
            padding: 12px 32px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 18px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 700;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-brand);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            flex-shrink: 0;
            white-space: nowrap;
        }

        .sticky-toggle-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .sticky-toggle-btn:hover::before {
            left: 100%;
        }

        .sticky-toggle-btn:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        .toggle-icon {
            transition: transform 0.2s ease;
        }

        .sticky-toggle-btn.expanded .toggle-icon {
            transform: rotate(180deg);
        }

        /* Premium Purchase Sticky Footer - Always Visible */
        .purchase-sticky-footer {
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            margin: 20px -28px 0 -28px;
            padding: 20px 28px;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(25px);
            -webkit-backdrop-filter: blur(25px);
            border-top: 2px solid transparent;
            border-image: var(--gradient-primary) 1;
            box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            max-height: 320px;
            box-sizing: border-box;
            border-radius: 0 0 23px 23px;
            z-index: 20;
        }

        .purchase-sticky-footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
        }

        .purchase-summary {
            margin-bottom: 12px;
            max-height: 180px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: #dee2e6 #f8f9fa;
            flex-grow: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }

        .purchase-summary::-webkit-scrollbar {
            width: 6px;
        }

        .purchase-summary::-webkit-scrollbar-track {
            background: #f8f9fa;
            border-radius: 3px;
        }

        .purchase-summary::-webkit-scrollbar-thumb {
            background: #dee2e6;
            border-radius: 3px;
        }

        .purchase-summary::-webkit-scrollbar-thumb:hover {
            background: #adb5bd;
        }

        .summary-stats {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 12px;
            padding: 12px 0 8px 0;
            border-bottom: 2px solid #dee2e6;
            background: inherit;
            position: relative;
            flex-shrink: 0;
            order: -1;
        }

        .summary-stats span {
            font-weight: 600;
            font-size: 16px;
        }

        #total-items {
            color: #4a5568;
            font-weight: 700;
        }

        #total-price {
            background: var(--gradient-success);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-size: 20px;
            font-weight: 800;
        }

        .selected-products-list {
            margin: 0;
            flex-grow: 1;
        }

        .selected-product-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 8px 0;
            border-bottom: 1px solid #f1f3f4;
            font-size: 13px;
        }

        .selected-product-item:last-child {
            border-bottom: none;
        }

        .product-item-info {
            flex: 1;
            margin-right: 8px;
        }

        .product-item-name {
            font-weight: 600;
            color: #2d3748;
            margin-bottom: 4px;
            font-size: 14px;
        }

        .product-item-qty {
            color: #4a5568;
            font-size: 12px;
            font-weight: 600;
            background: rgba(236, 138, 65, 0.1);
            padding: 2px 6px;
            border-radius: 6px;
            display: inline-block;
        }

        .product-item-addons {
            color: #6c757d;
            font-size: 11px;
            margin-top: 4px;
            font-style: italic;
            background: rgba(240, 147, 251, 0.1);
            padding: 2px 6px;
            border-radius: 6px;
            display: inline-block;
        }

        .product-item-price {
            font-weight: 700;
            background: var(--gradient-success);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            white-space: nowrap;
            font-size: 14px;
        }

        .purchase-btn {
            width: 100%;
            padding: 16px 24px;
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            border: none;
            border-radius: 18px;
            font-size: 16px;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-brand);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .purchase-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .purchase-btn:hover::before {
            left: 100%;
        }

        .purchase-btn:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        .purchase-btn:disabled {
            background: #9ca3af;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .purchase-btn:disabled::before {
            display: none;
        }

        /* Animation Classes */
        .item-added {
            animation: highlightGreen 0.6s ease;
        }

        .item-updated {
            animation: highlightBlue 0.6s ease;
        }

        @keyframes highlightGreen {
            0% {
                background-color: #d4edda;
            }

            100% {
                background-color: transparent;
            }
        }

        @keyframes highlightBlue {
            0% {
                background-color: #cce5ff;
            }

            100% {
                background-color: transparent;
            }
        }

        /* Premium Loader with Fancy Glassmorphism */
        .retail-loader-bg {
            display: none;
            position: fixed;
            top: 0; left: 0;
            width: 100%; height: 100%;
            background: rgba(255, 255, 255, 0.65); /* Más transparente y amigable */
            backdrop-filter: blur(18px) saturate(140%);
            -webkit-backdrop-filter: blur(18px) saturate(140%);
            border: 1.5px solid rgba(255, 255, 255, 0.25); /* sutil “marco” blanco */
            box-shadow: 0 8px 40px 0 rgba(236,138,65,0.08), 0 1.5px 10px rgba(160, 160, 200, 0.04);
            z-index: 9999999 !important;
            justify-content: center;
            align-items: center;
            transition: background 0.4s cubic-bezier(0.4,0,0.2,1);
            animation: loaderGlassIn 0.5s cubic-bezier(0.4,0,0.2,1);
        }

        @keyframes loaderGlassIn {
            0% { opacity: 0; }
            100% { opacity: 1; }
        }

        .retail-spinner {
            width: 60px;
            height: 60px;
            border: 4px solid rgba(236, 138, 65, 0.2);
            border-top: 4px solid var(--brand-primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.3);
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Premium Navigation with Glassmorphism */
        .retail-topnav {
            display: flex;
            justify-content: center;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 18px;
            margin: 0 auto 24px;
            width: 100%;
            max-width: 660px;
            padding: 8px 12px;
            gap: 8px;
            position: sticky;
            top: 40px;
            z-index: 100;
            box-shadow: var(--shadow-glass);
            border: var(--border-glass);
            animation: slideInUp 0.6s ease-out;
        }

        .retail-topnav .nav-btn {
            flex: 1 1 0;
            text-align: center;
            background: transparent;
            border: none;
            font-size: 15px;
            padding: 12px 8px;
            border-radius: 15px;
            color: #4a5568;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            font-weight: 600;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .retail-topnav .nav-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .retail-topnav .nav-btn:hover::before {
            left: 100%;
        }

        .retail-topnav .nav-btn:hover {
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
            transform: translateY(-1px);
        }

        .retail-topnav .nav-btn.active {
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            box-shadow: var(--shadow-brand);
            transform: translateY(-2px) scale(1.02);
        }

        .retail-topnav .nav-btn.active::before {
            display: none;
        }

        /* Premium Category Filter Section */
        .retail-category-filter-section {
            margin: 0 auto 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: clamp(600px, 90%, 1000px);
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.7s ease-out;
        }

        /* === PRODUCTOS VIEW CONSISTENT LAYOUT === */

        /* Ensure the Productos view has consistent width constraints like other views */
        #view-productos {
            max-width: clamp(600px, 90%, 1200px);
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Adjust child elements to work within the constrained parent */
        #view-productos .retail-category-filter-section,
        #view-productos .retail-product-table-container {
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        /* Create Product Button - ensure it stays centered within the constrained layout */
        #view-productos .retail-create-product-btn {
            max-width: clamp(300px, 50%, 500px);
            margin: 0 auto 24px;
        }

        .retail-category-filter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .retail-category-filter-section label {
            font-size: 16px;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .retail-category-filter-section select {
            width: 100%;
            padding: 16px 18px;
            font-size: 15px;
            line-height: 1.5;
            border: none;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            font-weight: 500;
            vertical-align: middle;
            box-sizing: border-box;
            height: auto;
            min-height: 48px;
        }

        .retail-category-filter-section select:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* Product Category Carousel Specific Styles */
        .product-category-rows {
            margin-top: 10px;
            display: flex;
            flex-direction: column;
        }

        .product-category-carousel {
            margin: 0;
        }

        .product-category-carousel .carousel-track {
            padding: 10px 15px !important;
            scroll-snap-type: x mandatory;
            min-height: auto;
        }

        .product-category-carousel .carousel-card {
            min-width: 140px;
            height: 50px;
            /* Reduced height for compact design */
            scroll-snap-align: start;
            margin-right: 8px;
        }

        .product-category-carousel .carousel-card .card-content {
            padding: 8px 12px;
        }

        .product-category-carousel .carousel-card .card-label {
            font-size: 0.85rem;
            font-weight: 500;
            line-height: 1.2;
            text-align: center;
        }

        /* Row labels for sede-based layouts */
        .carousel-row-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--brand-primary);
            margin-bottom: 4px;
            margin-left: 15px;
            opacity: 0.8;
        }

        @media (max-width: 768px) {
            .product-category-carousel .carousel-track {
                padding: 8px 12px !important;
            }

            .product-category-carousel .carousel-card {
                min-width: 120px;
                height: 45px;
                margin-right: 6px;
            }

            .product-category-carousel .carousel-card .card-content {
                padding: 6px 10px;
            }

            .product-category-carousel .carousel-card .card-label {
                font-size: 0.8rem;
            }

            .carousel-row-label {
                font-size: 0.8rem;
                margin-left: 12px;
            }
        }

        @media (max-width: 480px) {
            .product-category-rows {
                gap: 6px;
            }

            .product-category-carousel .carousel-track {
                padding: 6px 10px !important;
            }

            .product-category-carousel .carousel-card {
                min-width: 100px;
                height: 40px;
                margin-right: 4px;
            }

            .product-category-carousel .carousel-card .card-content {
                padding: 4px 8px;
            }

            .product-category-carousel .carousel-card .card-label {
                font-size: 0.75rem;
            }

            .carousel-row-label {
                font-size: 0.75rem;
                margin-left: 10px;
            }
        }

        /* Premium Table Container with Advanced Glassmorphism */
        .retail-product-table-container {
            margin: 0 auto 32px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: clamp(600px, 90%, 1000px);
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.8s ease-out;
        }

        .retail-product-table-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .retail-product-table-container table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            border-radius: 15px;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.5);
        }

        .retail-product-table-container th,
        .retail-product-table-container td {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: left;
            transition: all 0.3s ease;
        }

        .retail-product-table-container th {
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 13px;
            position: relative;
        }

        .retail-product-table-container tr:hover td {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.01);
        }

        /* Premium Action Buttons with Brand Colors */
        .retail-create-product-btn {
            display: block;
            margin: 0 auto 24px;
            padding: 12px 32px;
            font-size: 16px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-brand);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .retail-create-product-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .retail-create-product-btn:hover::before {
            left: 100%;
        }

        .retail-create-product-btn:disabled {
            background: #9ca3af;
            opacity: 0.6;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .retail-create-product-btn:hover:enabled {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        .retail-admin-wrapper .retail-empty-row td {
            text-align: center;
            color: #888;
            font-style: italic;
        }

        .retail-admin-wrapper .retail-section-title {
            text-align: center;
            margin: 0 auto 10px;
            max-width: 640px;
            font-size: 20px;
        }

        /* Premium Filter Wrapper with Glassmorphism */
        .retail-filter-wrapper {
            display: flex;
            flex-direction: column;
            gap: 20px;
            margin: 24px auto;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: clamp(600px, 90%, 1000px);
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.6s ease-out;
        }

        .retail-filter-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .retail-admin-wrapper .retail-filter-row {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            align-items: center;
        }

        .retail-filter-row input,
        .retail-filter-row select {
            flex: 1;
            min-width: 200px;
            padding: 16px 18px;
            border: none;
            border-radius: 18px;
            font-size: 15px;
            line-height: 1.5;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            vertical-align: middle;
            box-sizing: border-box;
            height: auto;
            min-height: 48px;
        }

        .retail-filter-row input:focus,
        .retail-filter-row select:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        .retail-filter-row input::placeholder {
            color: #9ca3af;
            font-weight: 500;
        }

        /* Premium Search Button */
        .retail-filter-wrapper button {
            padding: 16px 28px;
            background: var(--gradient-primary);
            color: white;
            border: none;
            border-radius: 18px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: var(--shadow-brand);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 1px;
            width: 100%;
            flex: 1;
            min-width: 200px;
        }

        .retail-filter-wrapper button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .retail-filter-wrapper button:hover::before {
            left: 100%;
        }

        .retail-filter-wrapper button:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
        }

        /* Table header controls for copy button */
        .table-header-controls {
            display: flex;
            justify-content: center;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        }

        /* Specific adjustment for filterChildren button */
        button[onclick="filterChildren()"] {
            padding: 12px 28px !important;
        }

        /* Copy Table Button - Highly specific styles to override conflicts */
        .retail-admin-wrapper .retail-children-table-wrapper .table-header-controls .retail-copy-table-btn,
        .retail-admin-wrapper #copy-table-btn.retail-copy-table-btn {
            padding: 12px 28px !important;
            background: var(--gradient-success) !important;
            color: white !important;
            border: none !important;
            border-radius: 18px !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            cursor: pointer !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: var(--shadow-success) !important;
            position: relative !important;
            overflow: hidden !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
            width: 100% !important;
            height: auto !important;
            flex: 1 !important;
        }

        .retail-admin-wrapper .retail-children-table-wrapper .table-header-controls .retail-copy-table-btn::before,
        .retail-admin-wrapper #copy-table-btn.retail-copy-table-btn::before {
            content: '' !important;
            position: absolute !important;
            top: 0 !important;
            left: -100% !important;
            width: 100% !important;
            height: 100% !important;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent) !important;
            transition: left 0.6s !important;
        }

        .retail-admin-wrapper .retail-children-table-wrapper .table-header-controls .retail-copy-table-btn:hover::before,
        .retail-admin-wrapper #copy-table-btn.retail-copy-table-btn:hover::before {
            left: 100% !important;
        }

        .retail-admin-wrapper .retail-children-table-wrapper .table-header-controls .retail-copy-table-btn:hover,
        .retail-admin-wrapper #copy-table-btn.retail-copy-table-btn:hover {
            transform: translateY(-4px) scale(1.05) !important;
            box-shadow: 0 15px 35px rgba(34, 197, 94, 0.6) !important;
        }

        /* Specific adjustment for copy button */
        button[onclick="copyTableToClipboard()"] {
            padding: 12px 28px !important;
        }

        .retail-admin-wrapper .retail-children-table-wrapper .table-header-controls .retail-copy-table-btn.copied,
        .retail-admin-wrapper #copy-table-btn.retail-copy-table-btn.copied {
            background: var(--gradient-info) !important;
            box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
        }

        /* Premium Children Table Wrapper */
        .retail-admin-wrapper .retail-children-table-wrapper {
            max-width: clamp(600px, 90%, 1000px);
            margin: 0 auto;
            margin-top: 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.8s ease-out;
        }

        .retail-admin-wrapper .retail-children-table-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .retail-admin-wrapper .retail-children-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            overflow: hidden;
        }

        .retail-admin-wrapper .retail-children-table thead th {
            background: var(--gradient-primary);
            color: white;
            padding: 16px 20px;
            text-align: left;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 13px;
            border: none;
        }

        .retail-admin-wrapper .retail-children-table td {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            color: #2d3748;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .retail-admin-wrapper .retail-children-table tr:hover td {
            background: rgba(79, 172, 254, 0.1);
            transform: scale(1.01);
        }

        .retail-admin-wrapper .retail-orders-title {
            margin-top: 48px;
            font-size: 28px;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            text-align: center;
        }

        /* Premium Orders Table */
        .retail-orders-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            overflow: hidden;
            margin-top: 24px;
            animation: slideInUp 0.8s ease-out;
        }

        .retail-orders-table th,
        .retail-orders-table td {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: left;
            transition: all 0.3s ease;
        }

        .retail-orders-table th {
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 13px;
        }

        .retail-orders-table tr:hover td {
            background: rgba(102, 126, 234, 0.1);
            transform: scale(1.01);
        }

        /* Smooth animations for status change row hiding */
        .retail-order-row {
            transition: opacity 0.3s ease-out, transform 0.3s ease-out;
        }

        .retail-order-row.status-changed-hiding {
            opacity: 0;
            transform: translateX(-20px);
            pointer-events: none;
        }

        .retail-order-details-row {
            display: none;
            background: rgba(248, 250, 252, 0.8);
            backdrop-filter: blur(10px);
        }

        .retail-order-details-cell {
            padding: 20px;
            font-size: 14px;
            line-height: 1.6;
            border-radius: 12px;
        }

        .retail-product-list {
            margin: 0;
            padding-left: 20px;
        }

        .retail-product-list li {
            margin-bottom: 8px;
            color: #4a5568;
            font-weight: 500;
        }

        .retail-product-list ul {
            list-style: disc;
            margin: 8px 0 8px 20px;
            padding-left: 20px;
        }

        .retail-orders-title {
            font-size: 28px;
            margin-top: 40px;
            margin-bottom: 16px;
            text-align: center;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
        }

        /* Premium Toggle Buttons */
        .retail-order-toggle-btn {
            padding: 10px 16px;
            border-radius: 12px;
            background: var(--gradient-secondary);
            color: white;
            font-weight: 600;
            border: none;
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .retail-order-toggle-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(240, 147, 251, 0.5);
        }

        .order-origin {
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
        }

        .order-origin.origin-admin {
            background: #e3f2fd;
            color: #1976d2;
        }

        .order-origin.origin-terminal {
            background: #f3e5f5;
            color: #7b1fa2;
        }

        /* Premium Filter Buttons */
        .status-filter-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            color: #4a5568;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-filter-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .status-filter-btn:hover::before {
            left: 100%;
        }

        .status-filter-btn:hover {
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .status-filter-btn.active {
            background: var(--gradient-primary);
            color: white;
            transform: translateY(-3px) scale(1.05);
            box-shadow: var(--shadow-brand);
            border: none;
            font-weight: 700;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .status-filter-btn.active::before {
            display: none;
        }

        @keyframes activeButtonGlow {
            0% {
                box-shadow: var(--shadow-brand), 0 0 0 3px rgba(236, 138, 65, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
            }

            100% {
                box-shadow: var(--shadow-brand), 0 0 0 5px rgba(236, 138, 65, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.3);
            }
        }

        .filter-counter {
            font-size: 11px;
            padding: 2px 6px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            font-weight: 700;
        }

        .status-filter-btn.active .filter-counter {
            background: rgba(255, 255, 255, 0.9);
            color: var(--brand-primary);
            font-weight: 800;
            border: 1px solid rgba(255, 255, 255, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* Premium Refresh Button */
        .refresh-orders-btn {
            padding: 12px 20px;
            border: none;
            border-radius: 15px;
            background: var(--gradient-success);
            color: white;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            display: flex;
            align-items: center;
            gap: 8px;
            box-shadow: var(--shadow-success);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .refresh-orders-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .refresh-orders-btn:hover::before {
            left: 100%;
        }

        .refresh-orders-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
        }

        .refresh-orders-btn:active {
            transform: translateY(-1px) scale(0.98);
        }



        .retail-admin-wrapper #child-modal-info p {
            margin: 2px 0;
            font-size: 14px;
            line-height: 1.3;
        }

        .retail-admin-wrapper .retail-spinner {
            width: 40px;
            height: 40px;
            border: 5px solid #ccc;
            border-top: 5px solid #333;
            border-radius: 50%;
            animation: retail-spin 1s linear infinite;
        }

        @keyframes retail-spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        .retail-admin-wrapper .retail-modal-bg {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            justify-content: center;
            align-items: center;
            z-index: 999999;
        }

        .retail-admin-wrapper .retail-modal-content {
            background: #fff;
            padding: 20px;
            border-radius: 6px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            overflow-y: auto;
            overflow-x: hidden;
            box-sizing: border-box;
            height: auto;
            max-height: 90vh;
        }

        .retail-admin-wrapper .retail-modal-content input,
        .retail-admin-wrapper .retail-modal-content button:not(.modal-close-btn) {
            width: 100%;
            margin-top: 10px;
        }

        /* Ensure modal close button maintains its proper sizing */
        .retail-admin-wrapper .retail-modal-content .modal-close-btn {
            width: 44px;
            height: 44px;
            margin: 0;
        }

        /* Premium Success/Error Messages */
        .retail-admin-wrapper .retail-success,
        .retail-admin-wrapper .retail-error {
            margin: 16px 0;
            padding: 16px 20px;
            border-radius: 15px;
            font-weight: 600;
            border: none;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
        }

        .retail-admin-wrapper .retail-success {
            background: rgba(34, 197, 94, 0.1);
            color: var(--brand-success);
            border-left: 4px solid var(--brand-success);
        }

        .retail-admin-wrapper .retail-success::before {
            content: '✓';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        .retail-admin-wrapper .retail-error {
            background: rgba(239, 68, 68, 0.1);
            color: var(--brand-danger);
            border-left: 4px solid var(--brand-danger);
        }

        .retail-admin-wrapper .retail-error::before {
            content: '⚠';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        /* Modal Message Boxes */
        .retail-modal-content #modal-message-box {
            margin: 0 0 16px 0;
            padding: 16px 20px;
            border-radius: 15px;
            font-weight: 600;
            border: none;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.3s ease-out;
        }

        .retail-modal-content #modal-message-box.retail-success {
            background: rgba(34, 197, 94, 0.1);
            color: #16a34a;
            border-left: 4px solid #16a34a;
        }

        .retail-modal-content #modal-message-box.retail-success::before {
            content: '✓';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        .retail-modal-content #modal-message-box.retail-error {
            background: rgba(239, 68, 68, 0.1);
            color: #dc2626;
            border-left: 4px solid #dc2626;
        }

        .retail-modal-content #modal-message-box.retail-error::before {
            content: '⚠';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        /* Toast Notifications */
        .retail-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 10000;
            padding: 16px 20px;
            border-radius: 15px;
            font-weight: 600;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            max-width: 400px;
            position: relative;
            overflow: hidden;
        }

        .retail-toast.retail-success {
            background: rgba(34, 197, 94, 0.9);
            color: white;
            border-left: 4px solid #16a34a;
        }

        .retail-toast.retail-success::before {
            content: '✓';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        .retail-toast.retail-error {
            background: rgba(239, 68, 68, 0.9);
            color: white;
            border-left: 4px solid #dc2626;
        }

        .retail-toast.retail-error::before {
            content: '⚠';
            position: absolute;
            right: 16px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            font-weight: bold;
        }

        /* Toast Animations */
        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(100%);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideOutRight {
            from {
                opacity: 1;
                transform: translateX(0);
            }
            to {
                opacity: 0;
                transform: translateX(100%);
            }
        }

        /* Premium Child Summary Card */
        .retail-child-summary {
            display: grid;
            gap: 12px;
            font-size: 15px;
            line-height: 1.6;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            padding: 20px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            margin-bottom: 16px;
            position: relative;
            animation: fadeInUp 0.6s ease-out;
        }

        .retail-child-summary::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* Premium Wallet History Table */
        .retail-wallet-history-table {
            width: 100%;
            font-size: 14px;
            border-collapse: collapse;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            overflow: hidden;
            margin-top: 24px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            animation: slideInUp 0.8s ease-out;
        }

        .retail-wallet-history-table th,
        .retail-wallet-history-table td {
            padding: 14px 18px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: left;
            transition: all 0.3s ease;
        }

        .retail-wallet-history-table th {
            background: var(--gradient-secondary);
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 12px;
        }

        .retail-wallet-history-table tbody tr:hover {
            background: rgba(240, 147, 251, 0.1);
            transform: scale(1.01);
        }

        /* Premium Product Table */
        .retail-product-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            overflow: hidden;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            animation: slideInUp 0.8s ease-out;
        }

        .retail-product-table th,
        .retail-product-table td {
            padding: 16px 20px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.2);
            text-align: left;
            transition: all 0.3s ease;
        }

        .retail-product-table th {
            background: var(--gradient-primary);
            color: white;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 13px;
        }

        .retail-product-table tbody tr:hover {
            background: rgba(236, 138, 65, 0.1);
            transform: scale(1.01);
        }

        /* Premium Action Buttons with Glassmorphism */
        .retail-action-btn {
            display: inline-block;
            padding: 8px 12px;
            margin-right: 8px;
            cursor: pointer;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            border: var(--border-glass);
            color: #4a5568;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: relative;
            overflow: hidden;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .retail-action-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transition: left 0.6s;
        }

        .retail-action-btn:hover::before {
            left: 100%;
        }

        .retail-action-btn:hover {
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .retail-action-btn.edit-product:hover {
            background: rgba(34, 197, 94, 0.1);
            color: var(--brand-success);
        }

        .retail-action-btn.delete-product:hover {
            background: rgba(239, 68, 68, 0.1);
            color: var(--brand-danger);
        }

        /* Additional UI Components - Moved from Inline Styles */

        /* Date Range Input - Handled by unified input system above */

        /* Filter Section Layouts */
        .retail-filter-section {
            margin-bottom: 16px;
        }

        .retail-filter-row-flex {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .retail-filter-status-row {
            margin-bottom: 20px;
            display: flex;
            gap: 16px;
            align-items: center;
            flex-wrap: wrap;
        }

        .retail-filter-actions {
            margin-left: auto;
        }

        /* Filter Labels */
        .retail-filter-label {
            font-weight: bold;
        }

        /* === MODERN TOGGLE SWITCH DESIGN === */
        .retail-checkbox-label {
            display: flex;
            align-items: center;
            gap: 12px;
            cursor: pointer;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border-radius: 15px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            user-select: none;
            margin-bottom: 8px;
        }

        .retail-checkbox-label::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 2px;
            background: var(--gradient-primary);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        .retail-checkbox-label:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
            background: rgba(255, 255, 255, 0.95);
        }

        .retail-checkbox-label:hover::before {
            transform: scaleX(1);
        }

        .retail-checkbox-input {
            appearance: none;
            -webkit-appearance: none;
            width: 48px;
            height: 24px;
            background: #e2e8f0;
            border-radius: 12px;
            position: relative;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
            order: 2;
        }

        .retail-checkbox-input::before {
            content: '';
            position: absolute;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: white;
            top: 2px;
            left: 2px;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        .retail-checkbox-input:checked {
            background: var(--gradient-primary);
            box-shadow: 0 0 0 2px rgba(236, 138, 65, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .retail-checkbox-input:checked::before {
            transform: translateX(24px);
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        }

        .retail-checkbox-input:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(236, 138, 65, 0.3);
        }

        .retail-checkbox-label span {
            font-weight: 600;
            color: #4a5568;
            font-size: 14px;
            transition: color 0.3s ease;
            order: 1;
            flex: 1;
        }

        .retail-checkbox-label:has(.retail-checkbox-input:checked) {
            background: rgba(236, 138, 65, 0.1);
            border-color: rgba(236, 138, 65, 0.3);
        }

        .retail-checkbox-label:has(.retail-checkbox-input:checked) span {
            color: var(--brand-primary);
            font-weight: 700;
        }

        .retail-checkbox-label:has(.retail-checkbox-input:checked)::before {
            transform: scaleX(1);
        }

        /* Status indicators */
        .retail-checkbox-label::after {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #e2e8f0;
            transition: all 0.3s ease;
            order: 3;
        }

        .retail-checkbox-label:has(.retail-checkbox-input:checked)::after {
            background: var(--gradient-success);
            box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .retail-checkbox-label {
                padding: 10px 12px;
                gap: 10px;
            }

            .retail-checkbox-input {
                width: 40px;
                height: 20px;
            }

            .retail-checkbox-input::before {
                width: 16px;
                height: 16px;
            }

            .retail-checkbox-input:checked::before {
                transform: translateX(20px);
            }
        }

        /* Table Cell Styling */
        .retail-child-table-cell {
            padding: 6px 10px;
        }

        /* Child Info Styling */
        .retail-child-dni {
            font-size: 12px;
            color: #6c757d;
            margin-top: 4px;
        }

        .retail-child-funds-label {
            font-size: 12px;
            color: #6c757d;
            margin-top: 4px;
        }

        /* Empty State Messages */
        .retail-empty-message {
            margin-top: 30px;
            text-align: center;
            color: #6c757d;
            font-style: italic;
        }

        .retail-no-products-message {
            text-align: center;
            padding: 40px;
            color: #6c757d;
        }

        /* Modal Action Layouts */
        .retail-modal-actions {
            display: flex;
            gap: 10px;
        }

        .retail-delete-confirmation {
            margin-bottom: 16px;
        }

        /* Dynamic Amount Colors - Base classes for JavaScript to use */
        .retail-amount-positive {
            color: #22c55e;
        }

        .retail-amount-negative {
            color: #ef4444;
        }

        /* Duplicate unified system removed - see above for consolidated version */

        /* Duplicate system removed - all handled by unified design system above */

        /* === UNIFIED BUTTON BORDER-RADIUS STANDARDS === */

        /* Primary Action Buttons - 18px radius for main CTAs */
        .retail-create-product-btn,
        .purchase-btn {
            border-radius: 18px;
        }

        /* Secondary Buttons - 15px radius for navigation and filters */
        .sticky-toggle-btn,
        .retail-topnav .nav-btn,
        .status-filter-btn,
        .refresh-orders-btn,
        .retail-filter-wrapper button {
            border-radius: 15px;
        }

        /* Small Action Buttons - Specific radius per component */
        .retail-action-btn,
        .retail-order-toggle-btn {
            border-radius: 12px;
        }





        /* === EXISTING UNIFIED BUTTON SYSTEM === */

        /* === ENHANCED BUTTON SPECIFICITY FOR VISUAL CONSISTENCY === */

        /* Create Product Button - Highest specificity for main CTA */
        .retail-admin-wrapper #retail-create-product-btn,
        .retail-admin-wrapper button#retail-create-product-btn,
        .retail-admin-wrapper .retail-create-product-btn {
            display: block;
            margin: 0 auto 24px;
            border-radius: 20px;
            border: none;
            background: var(--gradient-primary);
            color: white;
            padding: 12px 32px;
            font-weight: 700;
            box-shadow: var(--shadow-brand);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .retail-admin-wrapper #retail-create-product-btn:hover,
        .retail-admin-wrapper button#retail-create-product-btn:hover,
        .retail-admin-wrapper .retail-create-product-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
            background: var(--gradient-primary);
            color: white;
        }

        /* Filter Status Row Buttons - Enhanced specificity */
        .retail-admin-wrapper .retail-filter-status-row #filter-all,
        .retail-admin-wrapper .retail-filter-status-row #filter-pendiente,
        .retail-admin-wrapper .retail-filter-status-row #filter-entregado,
        .retail-admin-wrapper .retail-filter-status-row button,
        .retail-admin-wrapper .retail-filter-status-row .status-filter-btn {
            border-radius: 18px;
            border: none;
            padding: 12px 20px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            position: relative;
            overflow: hidden;
        }

        .retail-admin-wrapper .retail-filter-status-row #filter-all:hover,
        .retail-admin-wrapper .retail-filter-status-row #filter-pendiente:hover,
        .retail-admin-wrapper .retail-filter-status-row #filter-entregado:hover,
        .retail-admin-wrapper .retail-filter-status-row button:hover,
        .retail-admin-wrapper .retail-filter-status-row .status-filter-btn:hover {
            transform: translateY(-2px) scale(1.02);
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        /* Active state with higher specificity to override base styles */
        .retail-admin-wrapper .retail-filter-status-row #filter-all.active,
        .retail-admin-wrapper .retail-filter-status-row #filter-pendiente.active,
        .retail-admin-wrapper .retail-filter-status-row #filter-entregado.active,
        .retail-admin-wrapper .retail-filter-status-row .status-filter-btn.active {
            background: var(--gradient-primary);
            color: white;
            transform: translateY(-3px) scale(1.05);
            box-shadow: var(--shadow-brand);
            border: none;
            font-weight: 700;
        }

        /* Active state filter counter with higher specificity */
        .retail-admin-wrapper .retail-filter-status-row #filter-all.active .filter-counter,
        .retail-admin-wrapper .retail-filter-status-row #filter-pendiente.active .filter-counter,
        .retail-admin-wrapper .retail-filter-status-row #filter-entregado.active .filter-counter,
        .retail-admin-wrapper .retail-filter-status-row .status-filter-btn.active .filter-counter {
            background: rgba(255, 255, 255, 0.9);
            color: var(--brand-primary);
            font-weight: 800;
            border: 1px solid rgba(255, 255, 255, 1);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        /* Refresh Orders Button - Special green styling with enhanced specificity */
        .retail-admin-wrapper .retail-filter-status-row #refresh-orders-btn,
        .retail-admin-wrapper button#refresh-orders-btn {
            background: var(--gradient-success);
            color: white;
            border-radius: 18px;
        }

        .retail-admin-wrapper .retail-filter-status-row #refresh-orders-btn:hover,
        .retail-admin-wrapper button#refresh-orders-btn:hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
            background: var(--gradient-success);
            color: white;
        }

        /* Retail Order Row Buttons - Enhanced specificity for table buttons */
        .retail-admin-wrapper .retail-order-row button,
        .retail-admin-wrapper .retail-order-row .retail-order-toggle-btn,
        .retail-admin-wrapper .retail-order-row .retail-action-btn {
            border-radius: 16px;
            border: none;
            padding: 10px 16px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            position: relative;
            overflow: hidden;
        }

        .retail-admin-wrapper .retail-order-row button:hover,
        .retail-admin-wrapper .retail-order-row .retail-order-toggle-btn:hover,
        .retail-admin-wrapper .retail-order-row .retail-action-btn:hover {
            transform: translateY(-2px) scale(1.05);
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        /* Status Buttons - Special color handling with proper specificity */
        .retail-admin-wrapper .retail-order-row .retail-order-status-btn.status-entregado,
        .retail-admin-wrapper .retail-order-row .retail-item-status-btn.status-entregado {
            background: var(--gradient-success);
            color: white;
            border-radius: 16px;
        }

        .retail-admin-wrapper .retail-order-row .retail-order-status-btn.status-entregado:hover,
        .retail-admin-wrapper .retail-order-row .retail-item-status-btn.status-entregado:hover {
            background: var(--gradient-success);
            color: white;
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(34, 197, 94, 0.4);
        }

        .retail-admin-wrapper .retail-order-row .retail-order-status-btn.status-pendiente,
        .retail-admin-wrapper .retail-order-row .retail-item-status-btn.status-pendiente {
            background: var(--gradient-danger);
            color: white;
            border-radius: 15px;
        }

        .retail-admin-wrapper .retail-order-row .retail-order-status-btn.status-pendiente:hover,
        .retail-admin-wrapper .retail-order-row .retail-item-status-btn.status-pendiente:hover {
            background: var(--gradient-danger);
            color: white;
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
        }

        /* === FALLBACK STYLES FOR BUTTONS OUTSIDE WRAPPER === */

        /* Fallback styles for buttons that might not be inside .retail-admin-wrapper */
        #retail-create-product-btn:not(.retail-admin-wrapper *),
        button#retail-create-product-btn:not(.retail-admin-wrapper *),
        .retail-create-product-btn:not(.retail-admin-wrapper *) {
            display: block;
            margin: 0 auto 24px;
            border-radius: 20px;
            border: none;
            background: var(--gradient-primary);
            color: white;
            padding: 12px 32px;
            font-weight: 700;
            box-shadow: var(--shadow-brand);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        #retail-create-product-btn:not(.retail-admin-wrapper *):hover,
        button#retail-create-product-btn:not(.retail-admin-wrapper *):hover,
        .retail-create-product-btn:not(.retail-admin-wrapper *):hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
            background: var(--gradient-primary);
            color: white;
        }

        /* Fallback filter buttons */
        #filter-all:not(.retail-admin-wrapper *),
        #filter-pendiente:not(.retail-admin-wrapper *),
        #filter-entregado:not(.retail-admin-wrapper *),
        button[id^="filter-"]:not(.retail-admin-wrapper *) {
            border-radius: 18px;
            border: none;
            padding: 12px 20px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            position: relative;
            overflow: hidden;
        }

        #filter-all:not(.retail-admin-wrapper *):hover,
        #filter-pendiente:not(.retail-admin-wrapper *):hover,
        #filter-entregado:not(.retail-admin-wrapper *):hover,
        button[id^="filter-"]:not(.retail-admin-wrapper *):hover {
            transform: translateY(-2px) scale(1.02);
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        /* Fallback refresh button */
        #refresh-orders-btn:not(.retail-admin-wrapper *),
        button#refresh-orders-btn:not(.retail-admin-wrapper *) {
            background: var(--gradient-success);
            color: white;
            border-radius: 18px;
            border: none;
            padding: 12px 20px;
            font-weight: 600;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }

        #refresh-orders-btn:not(.retail-admin-wrapper *):hover,
        button#refresh-orders-btn:not(.retail-admin-wrapper *):hover {
            transform: translateY(-3px) scale(1.05);
            box-shadow: 0 12px 35px rgba(34, 197, 94, 0.6);
            background: var(--gradient-success);
            color: white;
        }

        /* Fallback order row buttons */
        .retail-order-row:not(.retail-admin-wrapper *) button,
        .retail-order-row:not(.retail-admin-wrapper *) .retail-order-toggle-btn,
        .retail-order-row:not(.retail-admin-wrapper *) .retail-action-btn {
            border-radius: 16px;
            border: none;
            padding: 10px 16px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(10px);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            position: relative;
            overflow: hidden;
        }

        .retail-order-row:not(.retail-admin-wrapper *) button:hover,
        .retail-order-row:not(.retail-admin-wrapper *) .retail-order-toggle-btn:hover,
        .retail-order-row:not(.retail-admin-wrapper *) .retail-action-btn:hover {
            transform: translateY(-2px) scale(1.05);
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        /* === DROPDOWN OPTION STYLING FOR PROPER TEXT DISPLAY === */

        /* Ensure dropdown options have proper spacing and are not clipped */
        .retail-modal-select option,
        .retail-category-filter-section select option,
        .retail-filter-row select option,
        select option {
            padding: 8px 12px;
            line-height: 1.6;
            font-size: 15px;
            color: #2d3748;
            background: white;
            border: none;
            min-height: 32px;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        /* Enhanced dropdown container styling */
        .retail-modal-select,
        .retail-category-filter-section select,
        .retail-filter-row select {
            /* Ensure proper dropdown display */
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 12px center;
            background-size: 16px;
            padding-right: 40px;
        }

        /* Specific option styling for different select types */
        .retail-modal-select option:hover,
        .retail-category-filter-section select option:hover,
        .retail-filter-row select option:hover {
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        .retail-modal-select option:checked,
        .retail-category-filter-section select option:checked,
        .retail-filter-row select option:checked {
            background: var(--gradient-primary);
            color: white;
            font-weight: 600;
        }

        /* === BROWSER-SPECIFIC DROPDOWN FIXES === */

        /* Firefox specific fixes */
        @-moz-document url-prefix() {

            .retail-modal-select,
            .retail-category-filter-section select,
            .retail-filter-row select {
                padding-top: 16px;
                padding-bottom: 16px;
                text-indent: 0.01px;
                text-overflow: '';
            }

            .retail-modal-select option,
            .retail-category-filter-section select option,
            .retail-filter-row select option {
                padding: 10px 12px;
                line-height: 1.4;
            }
        }

        /* WebKit/Chrome specific fixes */
        @media screen and (-webkit-min-device-pixel-ratio:0) {

            .retail-modal-select,
            .retail-category-filter-section select,
            .retail-filter-row select {
                background-position: right 14px center;
            }
        }

        /* Ensure consistent dropdown behavior */
        .retail-modal-select::-ms-expand,
        .retail-category-filter-section select::-ms-expand,
        .retail-filter-row select::-ms-expand {
            display: none;
        }

        /* Additional height and spacing consistency */
        .retail-modal-select,
        .retail-category-filter-section select,
        .retail-filter-row select {
            display: block;
            width: 100%;
            font-family: inherit;
            cursor: pointer;
            overflow: hidden;
        }

        /* Ensure options are properly sized */
        .retail-modal-select option,
        .retail-category-filter-section select option,
        .retail-filter-row select option {
            height: auto;
            max-height: none;
            overflow: visible;
            word-wrap: break-word;
        }

        /* === SPECIFIC DROPDOWN ID FIXES === */

        /* Target specific dropdown elements that were experiencing text clipping */
        #child-filter-level,
        #child-filter-grade,
        #child-filter-sede,
        #product-category-select {
            width: 100%;
            padding: 16px 18px 16px 18px;
            font-size: 15px;
            line-height: 1.5;
            border: none;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            font-weight: 500;
            vertical-align: middle;
            box-sizing: border-box;
            height: auto;
            min-height: 50px;
            display: block;
            font-family: inherit;
            cursor: pointer;
            overflow: hidden;

            /* Custom dropdown arrow */
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
            padding-right: 42px;
        }

        #child-filter-level:focus,
        #child-filter-grade:focus,
        #child-filter-sede:focus,
        #product-category-select:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* Specific option styling for these dropdowns */
        #child-filter-level option,
        #child-filter-grade option,
        #child-filter-sede option,
        #product-category-select option {
            padding: 10px 14px;
            line-height: 1.6;
            font-size: 15px;
            color: #2d3748;
            background: white;
            border: none;
            min-height: 36px;
            height: auto;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
            max-height: none;
            word-wrap: break-word;
        }

        #child-filter-level option:hover,
        #child-filter-grade option:hover,
        #child-filter-sede option:hover,
        #product-category-select option:hover {
            background: rgba(236, 138, 65, 0.1);
            color: var(--brand-primary);
        }

        #child-filter-level option:checked,
        #child-filter-grade option:checked,
        #child-filter-sede option:checked,
        #product-category-select option:checked {
            background: var(--gradient-primary);
            color: white;
            font-weight: 600;
        }

        /* Remove native dropdown arrows */
        #child-filter-level::-ms-expand,
        #child-filter-grade::-ms-expand,
        #child-filter-sede::-ms-expand,
        #product-category-select::-ms-expand {
            display: none;
        }

        /* Browser-specific fixes for these dropdowns */
        @-moz-document url-prefix() {

            #child-filter-level,
            #child-filter-grade,
            #child-filter-sede,
            #product-category-select {
                padding: 16px 42px 16px 18px;
                text-indent: 0.01px;
                text-overflow: '';
            }

            #child-filter-level option,
            #child-filter-grade option,
            #child-filter-sede option,
            #product-category-select option {
                padding: 12px 14px;
                line-height: 1.4;
            }
        }

        /* WebKit/Chrome specific positioning */
        @media screen and (-webkit-min-device-pixel-ratio:0) {

            #child-filter-level,
            #child-filter-grade,
            #child-filter-sede,
            #product-category-select {
                background-position: right 16px center;
            }
        }

        /* === COMPREHENSIVE DROPDOWN CATCH-ALL === */

        /* Ensure ALL select elements have proper text spacing */
        select:not([class]):not([id]),
        select[id*="filter"]:not(#child-filter-level):not(#child-filter-grade):not(#child-filter-sede),
        select[id*="category"]:not(#product-category-select),
        .retail-admin-wrapper select,
        div[class*="retail"] select,
        div[class*="filter"] select {
            padding: 16px 18px 16px 18px;
            font-size: 15px;
            line-height: 1.5;
            border: none;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            font-weight: 500;
            vertical-align: middle;
            box-sizing: border-box;
            height: auto;
            min-height: 48px;
            display: block;
            font-family: inherit;
            cursor: pointer;
            overflow: hidden;

            /* Custom dropdown arrow for consistency */
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
            background-repeat: no-repeat;
            background-position: right 14px center;
            background-size: 16px;
            padding-right: 40px;
        }

        /* Focus states for catch-all selects */
        select:not([class]):not([id]):focus,
        select[id*="filter"]:not(#child-filter-level):not(#child-filter-grade):not(#child-filter-sede):focus,
        select[id*="category"]:not(#product-category-select):focus,
        .retail-admin-wrapper select:focus,
        div[class*="retail"] select:focus,
        div[class*="filter"] select:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* Option styling for catch-all selects */
        select:not([class]):not([id]) option,
        select[id*="filter"]:not(#child-filter-level):not(#child-filter-grade):not(#child-filter-sede) option,
        select[id*="category"]:not(#product-category-select) option,
        .retail-admin-wrapper select option,
        div[class*="retail"] select option,
        div[class*="filter"] select option {
            padding: 8px 12px;
            line-height: 1.6;
            font-size: 15px;
            color: #2d3748;
            background: white;
            border: none;
            min-height: 32px;
            height: auto;
            display: block;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
            max-height: none;
            word-wrap: break-word;
        }

        /* === CONSISTENT VIEW LAYOUT FOR ALL SECTIONS === */

        /* Apply consistent width constraints to all main view sections */
        #view-compra,
        #view-productos,
        #view-pedidos {
            max-width: clamp(600px, 90%, 1200px);
            margin: 0 auto;
            padding: 0 20px;
            box-sizing: border-box;
        }

        /* Ensure child containers work within the constrained parent width */
        #view-compra .retail-filter-wrapper,
        #view-compra .retail-children-table-wrapper,
        #view-productos .retail-category-filter-section,
        #view-productos .retail-product-table-container,
        #view-pedidos .retail-orders-filter-wrapper,
        #view-pedidos .retail-orders-controls-wrapper,
        #view-pedidos .retail-orders-table-wrapper {
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        /* Special handling for orders table to maintain full width within container */
        #view-pedidos .retail-orders-table {
            width: 100%;
            max-width: 100%;
        }

        /* === PEDIDOS VIEW GLASSMORPHISM WRAPPERS === */

        /* Date Range Filter Wrapper - matches retail-category-filter-section styling */
        .retail-orders-filter-wrapper {
            margin: 0 auto 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 16px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.6s ease-out;
        }

        .retail-orders-filter-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .retail-orders-filter-wrapper label {
            font-size: 16px;
            font-weight: 700;
            background: var(--gradient-primary);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .retail-orders-filter-wrapper input {
            width: 100%;
            padding: 16px 18px;
            font-size: 15px;
            line-height: 1.5;
            border: none;
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(10px);
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            color: #4a5568;
            font-weight: 500;
            box-sizing: border-box;
            min-height: 48px;
        }

        .retail-orders-filter-wrapper input:focus {
            outline: none;
            transform: translateY(-1px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25), inset 0 2px 10px rgba(0, 0, 0, 0.1);
            background: rgba(255, 255, 255, 0.95);
        }

        /* Controls Wrapper - matches retail-filter-wrapper styling */
        .retail-orders-controls-wrapper {
            margin: 0 auto 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: 100%;
            display: flex;
            flex-direction: column;
            gap: 20px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.7s ease-out;
        }

        .retail-orders-controls-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* Orders Table Wrapper - matches retail-product-table-container styling */
        .retail-orders-table-wrapper {
            margin: 0 auto 32px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: 100%;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.8s ease-out;
        }

        .retail-orders-table-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* Ensure orders table fits properly within the wrapper */
        .retail-orders-table-wrapper .retail-orders-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 15px;
            background: rgba(255, 255, 255, 0.5);
            border-radius: 15px;
            overflow: hidden;
            margin: 0;
        }

        /* === ORDERS SEARCH AND PAGINATION STYLING === */

        /* Search Wrapper */
        .retail-orders-search-wrapper {
            margin: 0 auto 24px;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 20px 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            max-width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
            position: relative;
            overflow: hidden;
            animation: slideInUp 0.6s ease-out;
        }

        .retail-orders-search-wrapper::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* Search Input Container */
        .search-input-container {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
            min-width: 300px;
        }

        .retail-search-input {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid rgba(236, 138, 65, 0.2);
            border-radius: 18px;
            font-size: 14px;
            font-weight: 500;
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            outline: none;
        }

        .retail-search-input:focus {
            border-color: var(--brand-primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(236, 138, 65, 0.3);
            background: white;
        }

        .retail-search-input::placeholder {
            color: #9ca3af;
            font-style: italic;
        }

        /* Search Buttons */
        .retail-search-btn,
        .retail-clear-search-btn {
            padding: 12px 16px;
            border: none;
            border-radius: 18px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .retail-search-btn {
            background: var(--gradient-primary);
            color: white;
            box-shadow: var(--shadow-brand);
        }

        .retail-search-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.6);
        }

        .retail-clear-search-btn {
            background: rgba(239, 68, 68, 0.9);
            color: white;
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        }

        .retail-clear-search-btn:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
        }

        /* Pagination Size Selector */
        .pagination-size-selector {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 500;
            color: #4a5568;
        }

        .retail-per-page-select {
            padding: 8px 12px;
            border: 2px solid rgba(236, 138, 65, 0.2);
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.95);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            outline: none;
        }

        .retail-per-page-select:focus {
            border-color: var(--brand-primary);
            box-shadow: 0 0 0 3px rgba(236, 138, 65, 0.2);
        }

        /* Pagination Controls */
        .retail-pagination {
            margin: 24px auto;
            background: rgba(255, 255, 255, 0.9);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            padding: 20px 24px;
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: var(--shadow-glass);
            display: flex;
            flex-direction: column;
            gap: 16px;
            align-items: center;
            position: relative;
            overflow: hidden;
        }

        .retail-pagination::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        .pagination-info {
            font-size: 14px;
            font-weight: 600;
            color: #4a5568;
            text-align: center;
        }

        .pagination-controls {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            justify-content: center;
        }

        .pagination-btn {
            padding: 10px 16px;
            border: 2px solid rgba(236, 138, 65, 0.2);
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.95);
            color: #4a5568;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
        }

        .pagination-btn:hover {
            border-color: var(--brand-primary);
            color: var(--brand-primary);
            transform: translateY(-1px);
            box-shadow: 0 4px 15px rgba(236, 138, 65, 0.2);
        }

        .pagination-btn.active {
            background: var(--gradient-primary);
            border-color: var(--brand-primary);
            color: white;
            box-shadow: var(--shadow-brand);
            transform: translateY(-2px);
        }

        .pagination-btn.active:hover {
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.6);
        }

        .pagination-ellipsis {
            padding: 10px 8px;
            color: #9ca3af;
            font-weight: 600;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .retail-orders-search-wrapper {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
            }

            .search-input-container {
                min-width: unset;
            }

            .pagination-size-selector {
                justify-content: center;
            }

            .pagination-controls {
                gap: 4px;
            }

            .pagination-btn {
                padding: 8px 12px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .retail-orders-search-wrapper {
                padding: 16px 20px;
            }

            .retail-search-input {
                padding: 10px 14px;
                font-size: 13px;
            }

            .retail-search-btn,
            .retail-clear-search-btn {
                padding: 10px 14px;
                font-size: 14px;
            }
        }

        /* === ENHANCED SPECIFICITY FOR SEARCH AND PAGINATION BUTTONS === */

        /* Maximum specificity for search buttons */
        .retail-admin-wrapper .retail-orders-search-wrapper .retail-search-btn,
        .retail-orders-search-wrapper .retail-search-btn,
        #search-orders-btn.retail-search-btn,
        button#search-orders-btn {
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
        }

        .retail-admin-wrapper .retail-orders-search-wrapper .retail-clear-search-btn,
        .retail-orders-search-wrapper .retail-clear-search-btn,
        #clear-search-btn.retail-clear-search-btn,
        button#clear-search-btn {
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
        }

        /* Maximum specificity for pagination buttons */
        .retail-admin-wrapper .retail-pagination .pagination-btn,
        .retail-pagination .pagination-btn,
        .pagination-controls .pagination-btn,
        button.pagination-btn {
            border-radius: 15px !important;
            -webkit-border-radius: 15px !important;
            -moz-border-radius: 15px !important;
        }

        /* Ensure search input also has proper border-radius */
        .retail-admin-wrapper .retail-orders-search-wrapper .retail-search-input,
        .retail-orders-search-wrapper .retail-search-input,
        #customer-search-input.retail-search-input,
        input#customer-search-input {
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
        }

        /* Ensure per-page select also has proper border-radius */
        .retail-admin-wrapper .retail-orders-search-wrapper .retail-per-page-select,
        .retail-orders-search-wrapper .retail-per-page-select,
        #orders-per-page.retail-per-page-select,
        select#orders-per-page {
            border-radius: 15px !important;
            -webkit-border-radius: 15px !important;
            -moz-border-radius: 15px !important;
        }

        .retail-category-filter-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            border-radius: 18px 18px 0 0;
        }

        /* === IMPROVED SPECIFICITY BORDER-RADIUS ENFORCEMENT === */

        /* Enhanced specificity for category tabs */
        .retail-admin-wrapper .category-tab,
        .retail-modal-content .category-tab,
        .category-tab-bar .category-tab,
        button.category-tab {
            border-radius: 15px;
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
            box-sizing: border-box;
        }

        /* Enhanced specificity for status buttons */
        .retail-admin-wrapper .retail-item-status-btn,
        .retail-admin-wrapper .retail-order-row .retail-item-status-btn,
        .retail-order-details-row .retail-item-status-btn,
        button.retail-item-status-btn {
            border-radius: 15px;
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
            box-sizing: border-box;
        }

        /* Enhanced specificity for all retail buttons */
        .retail-admin-wrapper button,
        .retail-admin-wrapper .category-tab,
        .retail-admin-wrapper .retail-item-status-btn {
            box-sizing: border-box;
        }

        /* Ensure proper border-radius rendering */
        .retail-admin-wrapper .category-tab,
        .retail-admin-wrapper .retail-item-status-btn {
            background-clip: padding-box;
            -webkit-background-clip: padding-box;
        }

        /* === ENHANCED SPECIFICITY FOR TOGGLE WALLET HISTORY === */

        /* Maximum specificity without !important for toggle-wallet-history button */
        body .retail-admin-wrapper #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn,
        .retail-admin-wrapper #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn,
        #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn {
            border-radius: 18px;
            font-size: 16px;
            font-weight: 700;
            padding: 12px 32px;
            background: linear-gradient(135deg, #ec8a41 0%, #d4773a 100%);
            background: var(--gradient-primary);
            color: #ffffff;
            border: none;
            box-shadow: 0 4px 15px rgba(236, 138, 65, 0.4);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            text-transform: uppercase;
            letter-spacing: 1px;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: pointer;
            -webkit-border-radius: 18px;
            -moz-border-radius: 18px;
            -webkit-appearance: none;
            -moz-appearance: none;
            appearance: none;
            outline: none;
        }

        /* Enhanced specificity for toggle-wallet-history button hover state */
        body .retail-admin-wrapper #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn:hover,
        .retail-admin-wrapper #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn:hover,
        #child-purchase-modal #toggle-wallet-history.sticky-toggle-btn:hover {
            background: linear-gradient(135deg, #f0a366 0%, #ec8a41 100%);
            background: var(--gradient-primary-light, linear-gradient(135deg, #f0a366 0%, #ec8a41 100%));
            color: #ffffff;
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6);
            border: none;
        }

        /* ===================================================================== */
        /* === QUANTITY BUTTONS - COMPLETE REBUILD FROM SCRATCH === */
        /* ===================================================================== */

        /* Reset any inherited styles and build from scratch with maximum specificity */
        .qty-btn {
            /* Reset all inherited styles */
            all: unset !important;

            /* Core structure with !important to override any conflicts */
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;

            /* Oval dimensions to match qty-input */
            width: 50px !important;
            height: 36px !important;
            min-width: 50px !important;
            min-height: 36px !important;
            max-width: 50px !important;
            max-height: 36px !important;

            /* Rounded shape to match qty-input */
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;

            /* Typography */
            font-size: 18px !important;
            font-weight: 700 !important;
            line-height: 1 !important;
            text-align: center !important;
            font-family: inherit !important;

            /* Colors and background */
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%) !important;
            color: var(--brand-primary, #ec8a41) !important;
            border: 1px solid rgba(236, 138, 65, 0.2) !important;

            /* Effects */
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
            backdrop-filter: blur(8px) !important;
            -webkit-backdrop-filter: blur(8px) !important;

            /* Behavior */
            cursor: pointer !important;
            user-select: none !important;
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            position: relative !important;
            z-index: 2 !important;

            /* Reset any conflicting text styles */
            text-decoration: none !important;
            text-transform: none !important;
            letter-spacing: 0 !important;

            /* Reset spacing */
            margin: 0 !important;
            padding: 0 !important;

            /* Browser-specific resets */
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
            outline: none !important;

            /* Flexbox centering */
            flex-shrink: 0 !important;
            flex-grow: 0 !important;

            /* Ensure proper rendering */
            box-sizing: border-box !important;
            background-clip: padding-box !important;
            -webkit-background-clip: padding-box !important;
        }

        .qty-btn:hover {
            background: var(--gradient-primary, linear-gradient(135deg, #ec8a41 0%, #d4773a 100%)) !important;
            color: white !important;
            border-color: rgba(236, 138, 65, 0.6) !important;
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
            transform: translateY(-3px) scale(1.1) !important;
        }

        .qty-btn:active {
            transform: translateY(-1px) scale(1.05) !important;
            box-shadow: 0 4px 15px rgba(236, 138, 65, 0.3) !important;
            transition: all 0.1s ease !important;
        }

        .qty-btn:focus {
            outline: 2px solid rgba(236, 138, 65, 0.5) !important;
            outline-offset: 2px !important;
        }

        /* Ensure perfect centering of content */
        .qty-btn * {
            pointer-events: none !important;
            line-height: 1 !important;
        }

        /* Additional failsafe for any specific contexts */
        .quantity-selector .qty-btn,
        .retail-modal-content .qty-btn,
        .retail-admin-wrapper .qty-btn,
        button.qty-btn {
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
        }

        /* === MODERN QTY-INPUT STYLING === */

        /* Rebuilt qty-input to match qty-btn circular design language */
        .qty-input {
            all: unset !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            width: 50px !important;
            height: 36px !important;
            min-width: 50px !important;
            max-width: 50px !important;
            min-height: 36px !important;
            max-height: 36px !important;
            margin: 0 2px !important;
            padding: 0 !important;
            font-size: 16px !important;
            font-weight: 700 !important;
            font-family: inherit !important;
            text-align: center !important;
            color: var(--brand-primary) !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 250, 251, 0.9) 100%) !important;
            border: 2px solid rgba(236, 138, 65, 0.3) !important;
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
            position: relative !important;
            z-index: 2 !important;
            cursor: default !important;
            outline: none !important;
            -webkit-appearance: none !important;
            -moz-appearance: textfield !important;
            box-sizing: border-box !important;
            line-height: 1 !important;
        }

        /* Hide number input arrows completely */
        .qty-input::-webkit-outer-spin-button,
        .qty-input::-webkit-inner-spin-button {
            -webkit-appearance: none !important;
            margin: 0 !important;
            display: none !important;
        }

        /* Enhanced focus state to match qty-btn */
        .qty-input:focus {
            border-color: rgba(236, 138, 65, 0.6) !important;
            box-shadow: 0 0 0 3px rgba(236, 138, 65, 0.2), 0 6px 16px rgba(236, 138, 65, 0.15) !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(254, 252, 251, 0.98) 100%) !important;
            transform: translateY(-2px) scale(1.02) !important;
            outline: 2px solid rgba(236, 138, 65, 0.5) !important;
            outline-offset: 2px !important;
        }

        /* Hover state to match qty-btn */
        .qty-input:hover {
            border-color: rgba(236, 138, 65, 0.5) !important;
            box-shadow: 0 6px 16px rgba(236, 138, 65, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 248, 245, 0.95) 100%) !important;
            transform: translateY(-1px) !important;
        }

        /* Ensure perfect centering of input content */
        .qty-input * {
            pointer-events: none !important;
            line-height: 1 !important;
        }

        /* Additional failsafe for any specific contexts */
        .quantity-selector .qty-input,
        .retail-modal-content .qty-input,
        .retail-admin-wrapper .qty-input,
        input.qty-input {
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
        }

        /* ===================================================================== */
        /* === UNIFIED MODAL BUTTON SYSTEM - COMPLETE REBUILD === */
        /* ===================================================================== */

        /* Reset all modal buttons to clean state */
        .retail-modal-primary-btn,
        .retail-modal-secondary-btn {
            all: unset !important;

            /* Core layout */
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
            box-sizing: border-box !important;

            /* Typography */
            font-family: inherit !important;
            font-size: 15px !important;
            font-weight: 700 !important;
            text-transform: none !important;
            letter-spacing: 0.3px !important;
            line-height: 1.4 !important;
            text-decoration: none !important;
            text-align: center !important;

            /* Behavior */
            cursor: pointer !important;
            user-select: none !important;
            -webkit-user-select: none !important;
            -moz-user-select: none !important;
            outline: none !important;
            position: relative !important;
            z-index: 10 !important;

            /* Animation */
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;

            /* Browser resets */
            -webkit-appearance: none !important;
            -moz-appearance: none !important;
            appearance: none !important;
            background-clip: padding-box !important;
            -webkit-background-clip: padding-box !important;
        }

        /* PRIMARY BUTTON - Main action button */
        .retail-modal-primary-btn {
            /* Dimensions */
            min-width: 120px !important;
            width: auto !important;
            padding: 16px 28px !important;
            height: auto !important;
            min-height: 48px !important;

            /* Shape */
            border-radius: 18px !important;
            -webkit-border-radius: 18px !important;
            -moz-border-radius: 18px !important;
            border: none !important;

            /* Brand colors */
            background: var(--gradient-primary, linear-gradient(135deg, #f0a366 0%, #ec8a41 100%)) !important;
            color: #ffffff !important;

            /* Effects */
            box-shadow: 0 8px 25px rgba(236, 138, 65, 0.4) !important;
            backdrop-filter: none !important;
            -webkit-backdrop-filter: none !important;
        }

        .retail-modal-primary-btn:hover {
            transform: translateY(-3px) scale(1.02) !important;
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6) !important;
            background: var(--gradient-primary-light, linear-gradient(135deg, #f2a968 0%, #ee8c43 100%)) !important;
            color: #ffffff !important;
        }

        .retail-modal-primary-btn:active {
            transform: translateY(-1px) scale(0.98) !important;
            box-shadow: 0 5px 15px rgba(236, 138, 65, 0.5) !important;
        }

        .retail-modal-primary-btn:focus {
            outline: 2px solid rgba(236, 138, 65, 0.5) !important;
            outline-offset: 2px !important;
        }

        /* SECONDARY BUTTON - Cancel/close actions */
        .retail-modal-secondary-btn {
            /* Dimensions */
            min-width: 100px !important;
            width: auto !important;
            padding: 14px 24px !important;
            height: auto !important;
            min-height: 44px !important;

            /* Shape */
            border-radius: 15px !important;
            -webkit-border-radius: 15px !important;
            -moz-border-radius: 15px !important;
            border: 1px solid rgba(236, 138, 65, 0.2) !important;

            /* Neutral colors */
            background: rgba(255, 255, 255, 0.95) !important;
            color: #4a5568 !important;

            /* Effects */
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
            backdrop-filter: blur(10px) !important;
            -webkit-backdrop-filter: blur(10px) !important;
        }

        .retail-modal-secondary-btn:hover {
            transform: translateY(-2px) scale(1.02) !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
            background: rgba(255, 255, 255, 1) !important;
            color: var(--brand-primary, #ec8a41) !important;
            border-color: rgba(236, 138, 65, 0.4) !important;
        }

        .retail-modal-secondary-btn:active {
            transform: translateY(-1px) scale(0.98) !important;
            box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
        }

        .retail-modal-secondary-btn:focus {
            outline: 2px solid rgba(236, 138, 65, 0.3) !important;
            outline-offset: 2px !important;
        }

        /* DANGER VARIANT - For delete actions */
        .retail-modal-primary-btn[style*="var(--brand-danger)"],
        .retail-modal-primary-btn[style*="danger"] {
            background: var(--gradient-danger, linear-gradient(135deg, #ef4444 0%, #dc2626 100%)) !important;
            box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4) !important;
        }

        .retail-modal-primary-btn[style*="var(--brand-danger)"]:hover,
        .retail-modal-primary-btn[style*="danger"]:hover {
            background: var(--gradient-danger-light, linear-gradient(135deg, #f87171 0%, #ef4444 100%)) !important;
            box-shadow: 0 15px 35px rgba(239, 68, 68, 0.6) !important;
        }

        /* MODAL ACTIONS CONTAINER */
        .retail-modal-actions {
            display: flex !important;
            gap: 12px !important;
            align-items: center !important;
            justify-content: flex-end !important;
            margin-top: 24px !important;
            padding-top: 20px !important;
            border-top: 1px solid rgba(236, 138, 65, 0.1) !important;
        }

        /* RESPONSIVE ADJUSTMENTS */
        @media (max-width: 768px) {
            .retail-modal-actions {
                flex-direction: column-reverse !important;
                gap: 8px !important;
            }

            .retail-modal-primary-btn,
            .retail-modal-secondary-btn {
                width: 100% !important;
                min-width: unset !important;
            }

            .retail-modal-primary-btn {
                padding: 18px 20px !important;
                font-size: 16px !important;
            }

            .retail-modal-secondary-btn {
                padding: 16px 20px !important;
                font-size: 15px !important;
            }
        }

        /* HIGH SPECIFICITY OVERRIDES */
        /* Button system is now handled by the unified system above - no additional overrides needed */

        /* === SEDE TAB STYLING === */

        /* Sede Tab Bar */
        .sede-tab-bar {
            display: flex;
            flex-wrap: nowrap;
            align-items: center;
            gap: 6px;
            padding: 8px 12px;
            background: rgba(255, 255, 255, 0.8);
            backdrop-filter: blur(15px);
            -webkit-backdrop-filter: blur(15px);
            border-radius: 18px;
            border: var(--border-glass);
            box-shadow: 0 8px 32px rgba(31, 38, 135, 0.2);
            overflow-x: auto;
            overflow-y: hidden;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            animation: tabBarSlide 0.8s ease-out;
            width: 100%;
            box-sizing: border-box;
        }

        .sede-tab-bar::-webkit-scrollbar {
            height: 4px;
        }

        .sede-tab-bar::-webkit-scrollbar-track {
            background: transparent;
            border-radius: 2px;
        }

        .sede-tab-bar::-webkit-scrollbar-thumb {
            background: rgba(102, 126, 234, 0.3);
            border-radius: 2px;
        }

        .sede-tab-bar::-webkit-scrollbar-thumb:hover {
            background: rgba(236, 138, 65, 0.5);
        }

        /* Sede Tab Button Styling */
        .sede-tab {
            padding: 10px 16px;
            border: none;
            background: rgba(255, 255, 255, 0.6);
            color: #4a5568;
            border-radius: 15px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            white-space: nowrap;
            flex-shrink: 0;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            text-align: center;
            -webkit-border-radius: 15px;
            -moz-border-radius: 15px;
        }

        .sede-tab::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
            transition: left 0.6s;
        }

        .sede-tab:hover::before {
            left: 100%;
        }

        .sede-tab:hover {
            background: rgba(255, 255, 255, 0.8);
            transform: translateY(-2px) scale(1.05);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .sede-tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            transform: translateY(-3px) scale(1.08);
            box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
        }

        .sede-tab.active::before {
            display: none;
        }

        /* Enhanced Category Tabs for Sedes */
        .sede-tab-bar+.category-tab-bar {
            margin-top: 8px;
            background: rgba(255, 255, 255, 0.7);
        }

        .sede-tab-bar+.category-tab-bar .category-tab {
            background: rgba(255, 255, 255, 0.5);
        }

        .sede-tab-bar+.category-tab-bar .category-tab.active {
            background: var(--gradient-primary);
        }

        /* Responsive Design for Sede Tabs */
        @media (max-width: 768px) {
            .sede-tab-bar {
                padding: 6px 8px;
                gap: 4px;
                margin-bottom: 16px;
            }

            .sede-tab {
                padding: 8px 12px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .sede-tab-bar {
                padding: 4px 6px;
                gap: 3px;
                margin-bottom: 12px;
            }

            .sede-tab {
                padding: 6px 8px;
                font-size: 12px;
            }
        }

        /* === UNIFIED FILTER STYLING === */

        /* Ensure all filter elements use the same styling */
        .retail-filter-row-flex .sede-filter {
            accent-color: var(--brand-primary, #ec8a41);
        }

        /* Ensure consistent styling for all filter rows and labels */
        .retail-filter-row-flex .retail-filter-label {
            font-weight: bold;
            color: inherit;
        }

        /* Remove sede-specific styling to match origin filters exactly */

        /* === CAROUSEL STYLES === */

        /* Carousel Container */
        .carousel-container {
            position: relative;
            width: 100%;
            margin: 20px 0;
            background: var(--gradient-glass);
            border: var(--border-glass);
            border-radius: 20px;
            backdrop-filter: var(--backdrop-blur);
            padding: 20px;
            box-shadow: var(--shadow-glass);
            overflow: hidden;
        }

        .carousel-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gradient-primary);
            opacity: 0.05;
            border-radius: 20px;
            pointer-events: none;
        }

        /* Carousel Track */
        .carousel-track {
            display: flex;
            gap: 15px;
            overflow-x: auto;
            scroll-behavior: smooth;
            padding: 15px 20px;
            scrollbar-width: thin;
            /* Show thin scrollbar on Firefox */
            scrollbar-color: rgba(236, 138, 65, 0.3) transparent;
            position: relative;
        }

        .carousel-track::-webkit-scrollbar {
            height: 6px;
            /* Show thin scrollbar on Chrome/Safari */
        }

        .carousel-track::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 3px;
        }

        .carousel-track::-webkit-scrollbar-thumb {
            background: rgba(236, 138, 65, 0.3);
            border-radius: 3px;
            transition: background 0.3s ease;
        }

        .carousel-track::-webkit-scrollbar-thumb:hover {
            background: rgba(236, 138, 65, 0.5);
        }



        /* Add visual hint for scrollable content */
        .carousel-container::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 10px;
            transform: translateY(-50%);
            width: 20px;
            height: 20px;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8));
            pointer-events: none;
            border-radius: 50%;
            opacity: 0.6;
            z-index: 1;
        }

        /* Carousel Cards */
        .carousel-card {
            flex: 0 0 auto;
            min-width: 160px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 15px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            animation: fadeInUp 0.6s ease-out;
            user-select: none;
        }

        .carousel-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity 0.3s ease;
            border-radius: 13px;
        }

        .carousel-card:hover::before {
            opacity: 0.1;
        }

        .carousel-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-brand);
            border-color: var(--brand-primary);
        }

        .carousel-card.active {
            background: rgba(236, 138, 65, 0.15);
            border-color: var(--brand-primary);
            box-shadow: var(--shadow-brand);
            transform: translateY(-3px);
        }

        .carousel-card.active::before {
            opacity: 0.15;
        }

        /* Card Content */
        .card-content {
            position: relative;
            z-index: 1;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 5px;
            text-align: center;
        }



        .card-label {
            font-size: 13px;
            font-weight: 600;
            color: #333;
            line-height: 1.3;
            transition: color 0.3s ease;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
        }

        .carousel-card:hover .card-label {
            color: var(--brand-primary-dark);
        }

        .carousel-card.active .card-label {
            color: var(--brand-primary-dark);
            font-weight: 700;
        }



        /* Specific Carousel Styles */
        .sede-carousel .carousel-card {
            min-width: 180px;
        }



        .category-carousel .carousel-card {
            min-width: 160px;
        }

        /* Specific padding override for category-tabs carousel */
        .category-carousel .carousel-track,
        #category-tabs.carousel-track.category-tab-bar {
            padding: 15px 20px !important;
            /* Override all padding - double left padding */
            scroll-snap-type: none !important;
            /* Disable snap to allow free scrolling */
        }

        /* Disable scroll snap for category carousel cards */
        .category-carousel .carousel-card,
        #category-tabs .carousel-card {
            scroll-snap-align: none !important;
        }

        /* Animation for carousel card appearance */
        @keyframes carouselCardAppear {
            from {
                opacity: 0;
                transform: translateX(30px) scale(0.9);
            }

            to {
                opacity: 1;
                transform: translateX(0) scale(1);
            }
        }

        .carousel-card {
            animation: carouselCardAppear 0.4s ease-out;
        }

        .carousel-card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .carousel-card:nth-child(3) {
            animation-delay: 0.2s;
        }

        .carousel-card:nth-child(4) {
            animation-delay: 0.3s;
        }

        .carousel-card:nth-child(5) {
            animation-delay: 0.4s;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .carousel-container {
                padding: 15px;
                margin: 15px 0;
            }

            .carousel-track {
                padding: 15px 20px;
                gap: 10px;
            }

            .carousel-card {
                min-width: 140px;
                height: 40px;
            }

            .card-label {
                font-size: 12px;
            }

            .sede-carousel .carousel-card {
                min-width: 150px;
            }

            /* Double left padding for category carousel on tablet */
            .category-carousel .carousel-track,
            #category-tabs.carousel-track.category-tab-bar {
                padding: 15px 20px !important;
                scroll-snap-type: none !important;
            }
        }

        @media (max-width: 480px) {
            .carousel-container {
                padding: 10px;
                margin: 10px 0;
            }

            .carousel-track {
                padding: 15px 15px;
                gap: 8px;
            }

            .carousel-card {
                min-width: 120px;
                height: 40px;
            }

            .card-content {
                padding: 5px;
            }

            .card-label {
                font-size: 11px;
                line-height: 1.2;
            }

            /* Double left padding for category carousel on mobile */
            .category-carousel .carousel-track,
            #category-tabs.carousel-track.category-tab-bar {
                padding: 15px 15px !important;
                scroll-snap-type: none !important;
            }
        }

        /* Enhanced hover effects for touch devices */
        @media (hover: none) and (pointer: coarse) {
            .carousel-card:hover {
                transform: none;
            }

            .carousel-card:active {
                transform: scale(0.95);
                transition: transform 0.1s ease;
            }
        }

        /* Smooth scroll for better UX */
        .carousel-track {
            scroll-snap-type: x mandatory;
        }

        .carousel-card {
            scroll-snap-align: start;
        }

        /* Loading state for dynamic content */
        .carousel-track.loading {
            opacity: 0.6;
            pointer-events: none;
        }

        .carousel-track.loading .carousel-card {
            animation: shimmer 1.5s ease-in-out infinite;
        }

        /* Accessibility improvements */
        .carousel-card:focus {
            outline: 2px solid var(--brand-primary);
            outline-offset: 2px;
        }

        #child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb:hover,
        .child-purchase-modal .retail-modal-content.retail-modal-lg::-webkit-scrollbar-thumb:hover {
            background: var(--brand-primary-dark, #d4773a);
        }

        /* === BUTTON STYLE FIXES === */

        /* Fix Modal Close Button - Override size conflicts - LEGACY */
        .retail-admin-wrapper .retail-modal-content .modal-close-btn,
        #child-purchase-modal .modal-close-btn,
        .child-purchase-modal .modal-close-btn {
            width: 40px !important;
            height: 40px !important;
            margin: 0 !important;
            flex-shrink: 0 !important;
            border-radius: 50% !important;
            position: relative !important;
            float: right !important;
            margin-top: -10px !important;
            margin-right: -10px !important;
            margin-bottom: 10px !important;
        }

        /* Fix Purchase Button - Prevent generic button overrides */
        .purchase-btn,
        #purchase-products-btn.purchase-btn,
        .retail-admin-wrapper .purchase-btn,
        .retail-admin-wrapper #purchase-products-btn.purchase-btn {
            width: 100% !important;
            margin-top: 0 !important;
            box-sizing: border-box !important;
            display: block !important;
            padding: 16px 24px !important;
            background: var(--gradient-primary) !important;
            color: white !important;
            font-weight: 700 !important;
            border: none !important;
            border-radius: 18px !important;
            font-size: 16px !important;
            cursor: pointer !important;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
            box-shadow: var(--shadow-brand) !important;
            position: relative !important;
            overflow: hidden !important;
            text-transform: uppercase !important;
            letter-spacing: 1px !important;
        }

        .purchase-btn:disabled,
        #purchase-products-btn.purchase-btn:disabled {
            background: #9ca3af !important;
            cursor: not-allowed !important;
            transform: none !important;
            box-shadow: none !important;
        }

        .purchase-btn:hover:enabled,
        #purchase-products-btn.purchase-btn:hover:enabled {
            transform: translateY(-4px) scale(1.02) !important;
            box-shadow: 0 15px 35px rgba(236, 138, 65, 0.6) !important;
            background: var(--gradient-primary) !important;
            color: white !important;
        }

        /* === END BUTTON STYLE FIXES === */

        /* Enhanced Purchase Confirmation Modal Styles */
        #purchase-confirmation-modal .modal-subtitle {
            color: #6b7280;
            font-size: 14px;
            margin-top: 8px;
            font-weight: 400;
        }

        .purchase-success-indicator {
            text-align: center;
            padding: 24px 0;
            border-bottom: 1px solid rgba(229, 231, 235, 0.5);
            margin-bottom: 24px;
        }

        .success-icon {
            font-size: 48px;
            margin-bottom: 12px;
            animation: successPulse 0.6s ease-out;
        }

        .success-message {
            font-size: 18px;
            font-weight: 600;
            color: #059669;
            margin-bottom: 8px;
        }

        @keyframes successPulse {
            0% {
                transform: scale(0.8);
                opacity: 0;
            }
            50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
                opacity: 1;
            }
        }

        /* Purchase Items List */
        .purchase-items-list {
            margin-bottom: 20px;
        }

        .purchase-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 16px;
            background: rgba(249, 250, 251, 0.8);
            border-radius: 12px;
            margin-bottom: 12px;
            border: 1px solid rgba(229, 231, 235, 0.5);
        }

        .purchase-item-info {
            flex: 1;
        }

        .purchase-item-name {
            font-weight: 600;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .purchase-item-qty {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 4px;
        }

        .purchase-item-addons {
            font-size: 13px;
            color: #9ca3af;
            font-style: italic;
        }

        .purchase-item-price {
            font-weight: 700;
            color: #059669;
            font-size: 16px;
            white-space: nowrap;
            margin-left: 16px;
        }

        /* Purchase Total */
        .purchase-total {
            border-top: 2px solid rgba(59, 130, 246, 0.2);
            padding-top: 16px;
            margin-top: 16px;
        }

        .total-line {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 12px 16px;
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
            border-radius: 12px;
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .total-label {
            font-weight: 600;
            color: #1f2937;
            font-size: 16px;
        }

        .total-amount {
            font-weight: 700;
            color: #059669;
            font-size: 20px;
        }

        /* Balance Cards */
        .balance-cards {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 16px;
        }

        .balance-card {
            display: flex;
            align-items: center;
            padding: 20px;
            background: rgba(249, 250, 251, 0.8);
            border-radius: 16px;
            border: 1px solid rgba(229, 231, 235, 0.5);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        .balance-card.parent-balance {
            background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.05));
            border-color: rgba(59, 130, 246, 0.2);
        }

        .balance-card.child-balance {
            background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(147, 51, 234, 0.05));
            border-color: rgba(168, 85, 247, 0.2);
        }

        .balance-icon {
            font-size: 32px;
            margin-right: 16px;
        }

        .balance-info {
            flex: 1;
        }

        .balance-label {
            font-size: 14px;
            color: #6b7280;
            margin-bottom: 4px;
        }

        .balance-amount {
            font-size: 18px;
            font-weight: 700;
            color: #1f2937;
            margin-bottom: 4px;
        }

        .balance-change {
            font-size: 12px;
            color: #dc2626;
            font-weight: 600;
        }

        /* Enhanced Modal Actions */
        #purchase-confirmation-modal .retail-modal-actions {
            display: flex;
            gap: 12px;
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid rgba(229, 231, 235, 0.5);
        }

        #purchase-confirmation-modal .retail-modal-secondary-btn {
            flex: 1;
            padding: 14px 24px;
            background: rgba(107, 114, 128, 0.1);
            color: #374151;
            border: 1px solid rgba(107, 114, 128, 0.2);
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
        }

        #purchase-confirmation-modal .retail-modal-secondary-btn:hover {
            background: rgba(107, 114, 128, 0.15);
            border-color: rgba(107, 114, 128, 0.3);
            transform: translateY(-1px);
        }

        /* Responsive Design for Purchase Confirmation Modal */
        @media (max-width: 768px) {
            .balance-cards {
                grid-template-columns: 1fr;
            }

            #purchase-confirmation-modal .retail-modal-actions {
                flex-direction: column;
            }

            .purchase-item {
                flex-direction: column;
                gap: 8px;
            }

            .purchase-item-price {
                margin-left: 0;
                text-align: right;
            }

            .total-line {
                flex-direction: column;
                gap: 8px;
                text-align: center;
            }

            .balance-card {
                padding: 16px;
            }

            .balance-icon {
                font-size: 28px;
                margin-right: 12px;
            }

            .purchase-success-indicator {
                padding: 20px 0;
            }

            .success-icon {
                font-size: 40px;
            }

            .success-message {
                font-size: 16px;
            }
        }