:root {
            --primary: #00a3c4;
            --primary-dark: #008ca8;
            --secondary: #2d3748;
            --bg-light: #f7fafc;
            --text-main: #2d3748;
            --border-color: #e2e8f0;
            --whatsapp-color: #25D366;
            --error-color: #e53e3e;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
        }

        body {
            background-color: #f4f7f6;
            color: var(--text-main);
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        header {
            background-color: var(--secondary);
            color: #ffffff;
            padding: 25px 20px;
            text-align: center;
            border-bottom: 5px solid var(--primary);
            box-shadow: 0 4px 6px rgba(0,0,0,0.05);
            padding-top: 10px;
            padding-bottom: 10px;
        }
        .header-container{
            display: flex;
            justify-content: space-between;
            align-items: center;            
        }
        .header-container h1 {
            font-size: 20px;
            font-weight: 700;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
        }

        .header-container p {
            color: #a0aec0;
            font-size: 12px;
        }

        .search-sticky-bar {
            background-color: #ffffff;
            padding: 20px;
            position: sticky;
            top: 0;
            z-index: 90;
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .search-wrapper {
            max-width: 700px;
            margin: 0 auto;
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 14px 20px 14px 45px;
            font-size: 16px;
            border: 2px solid #cbd5e0;
            border-radius: 30px;
            outline: none;
            transition: all 0.2s ease;
        }

        .search-input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(0, 163, 196, 0.15);
        }

        .search-icon {
            position: absolute;
            left: 18px;
            top: 15px;
            color: #a0aec0;
            font-size: 18px;
        }

        .main-layout {
            max-width: 1300px;
            width: 100%;
            margin: 0px auto;
            padding: 0 20px;
            display: flex;
            gap: 25px;
            flex: 1;
        }

        .catalog-container {
            flex: 1;
        }

        .category-section {
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 30px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.01);
        }

        .category-title {
            font-size: 18px;
            color: var(--secondary);
            border-left: 5px solid var(--primary);
            padding-left: 12px;
            margin-bottom: 20px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .products-table {
            width: 100%;
            border-collapse: collapse;
        }

        .products-table th {
            background-color: var(--bg-light);
            color: #718096;
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            padding: 12px 15px;
            border-bottom: 2px solid var(--border-color);
            text-align: left;
        }

        .products-table td {
            /*padding: 14px 15px;*/
            border-bottom: 1px solid var(--border-color);
            font-size: 11.5px;
            vertical-align: middle;
            padding-top: 3px;
            padding-bottom: 3px;
        }

        .products-table tr:hover td {
            background-color: #fcfdfd;
        }

        .product-name {
            font-weight: 500;
            color: #2d3748;
        }

        .qty-controls {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .qty-input {
            width: 50px;
            padding: 6px;
            text-align: center;
            border: 1px solid #cbd5e0;
            border-radius: 4px;
            font-size: 14px;
            outline: none;
        }

        .btn-add-cart {
            background-color: var(--secondary);
            color: #ffffff;
            border: none;
            padding: 8px 14px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
            white-space: nowrap;
        }

        .btn-add-cart:hover {
            background-color: var(--primary);
        }

        .cart-sidebar {
            width: 380px;
            background: #ffffff;
            border-radius: 12px;
            padding: 25px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.04);
            height: fit-content;
            position: sticky;
            top: 0px;
            border: 1px solid var(--border-color);
        }

        .cart-sidebar h2 {
            font-size: 18px;
            margin-bottom: 15px;
            color: var(--secondary);
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid var(--bg-light);
            padding-bottom: 10px;
        }

        .cart-badge {
            background: var(--primary);
            color: white;
            border-radius: 20px;
            padding: 2px 10px;
            font-size: 13px;
        }

        .cart-items-list {
            max-height: 200px;
            overflow-y: auto;
            margin-bottom: 15px;
            padding-right: 5px;
        }

        .cart-item {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            padding: 10px 0;
            border-bottom: 1px solid var(--bg-light);
            font-size: 13.5px;
        }

        .cart-item-info {
            max-width: 75%;
        }

        .cart-item-name {
            font-weight: 500;
            color: #4a5568;
            margin-bottom: 2px;
        }

        .cart-item-qty {
            color: var(--primary);
            font-weight: bold;
        }

        .btn-remove {
            background: none;
            border: none;
            color: #e53e3e;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
        }

        .btn-remove:hover {
            text-decoration: underline;
        }

        .cart-empty-msg {
            color: #a0aec0;
            text-align: center;
            padding: 30px 0;
            font-style: italic;
            font-size: 14px;
        }

        .btn-submit-whatsapp {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: 100%;
            background-color: var(--whatsapp-color);
            color: white;
            border: none;
            padding: 14px;
            border-radius: 8px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            box-shadow: 0 4px 6px rgba(37, 211, 102, 0.2);
        }

        .btn-submit-whatsapp:hover {
            background-color: #20ba56;
            transform: translateY(-1px);
            box-shadow: 0 6px 12px rgba(37, 211, 102, 0.3);
        }

        .btn-submit-whatsapp:disabled {
            background-color: #cbd5e0;
            color: #718096;
            cursor: not-allowed;
            box-shadow: none;
            transform: none;
        }

        .client-info-group {
            margin-bottom: 12px;
        }

        .client-info-group label {
            display: block;
            font-size: 11.5px;
            font-weight: 600;
            color: #718096;
            margin-bottom: 4px;
            text-transform: uppercase;
        }

        .client-info-group label .required-mark {
            color: var(--error-color);
            margin-left: 2px;
        }

        .client-input {
            width: 100%;
            padding: 9px 12px;
            border: 1px solid #cbd5e0;
            border-radius: 6px;
            font-size: 13.5px;
            outline: none;
            transition: border 0.15s ease;
        }

        .client-input:focus {
            border-color: var(--primary);
        }

        .client-input.input-error {
            border-color: var(--error-color);
            background-color: #fff5f5;
        }

        .validation-error-msg {
            display: none;
            color: var(--error-color);
            font-size: 11px;
            margin-top: 3px;
            font-weight: 500;
        }

        .no-results {
            display: none;
            text-align: center;
            padding: 40px;
            color: #718096;
            background: white;
            border-radius: 12px;
        }
        #CloseForm{
            display: none;
        }
        .search-sticky-bar button{
            display: none;
        }
        @media (max-width: 992px) {
            .main-layout {
                flex-direction: column;
            }
            .cart-sidebar {
                width: 100%;
                position: static;
            }
        }

        @media (max-width: 576px) {
            .products-table th:nth-child(1), .products-table td:nth-child(1) {
                display: none;
            }
            .qty-input {
                width: 45px;
            }
            .btn-add-cart {
                padding: 6px 10px;
                font-size: 12px;
            }
        }
    
        .toast-notification {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background-color: var(--secondary, #2d3748);
            color: #ffffff;
            padding: 15px 25px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            display: flex;
            align-items: center;
            gap: 12px;
            z-index: 1000;
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.4s ease, transform 0.4s ease;
            border-left: 5px solid var(--primary, #00a3c4);
        }
        .toast-notification.show {
            opacity: 1;
            transform: translateY(0);
        }
        .toast-notification .toast-icon {
            font-size: 20px;
        }
        .toast-notification .toast-message {
            font-weight: 500;
            font-size: 14px;
        }

        @media (max-width: 992px) {
            .main-layout {
                flex-direction: column;
            }
            .search-sticky-bar button{
                display: block;
            }
            .search-sticky-bar{
                text-align: center;
            }
            .cart-sidebar {
                width: 100%;
                position: fixed;
                left: -100%;
                z-index: 999999999999999;
                transition: left 0.3s ease;
                height: 100vh;
            }
            #CloseForm{
                display: block;
                text-align: right;
            }
        }

        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                gap: 10px;
                text-align: center;
            }
        }

        @media (max-width: 576px) {
            .products-table th:nth-child(1), .products-table td:nth-child(1) {
                display: none;
            }
            .qty-input {
                width: 45px;
            }
            .btn-add-cart {
                padding: 6px 10px;
                font-size: 12px;
            }
            .toast-notification {
                left: 20px;
                right: 20px;
                bottom: 20px;
            }
        }