:root {
    /* Brand Colors - Purple/Pink Theme as requested */
    --primary: #6d28d9; /* Deep Purple */
    --primary-hover: #5b21b6;
    --secondary: #db2777; /* Pink */
    --secondary-hover: #be185d;
    --bg-main: #f8fafc;
    --bg-sidebar: #1e1b4b; /* Very Dark Purple */
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #ffffff;
    --border: #e2e8f0;
    --danger: #ef4444;
    --success: #10b981;
    --card-bg: #ffffff;

    /* Geometry - Sharp */
    --radius: 2px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Fira Sans', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
}

/* Layout */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 260px;
    background-color: var(--bg-sidebar);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
}

.logo-container {
    padding: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand-text {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-inverse);
    letter-spacing: -0.5px;
}

.brand-subtext {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.main-nav {
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    text-align: left;
    padding: 12px 16px;
    border-radius: var(--radius);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-btn:hover {
    background-color: rgba(255,255,255,0.05);
    color: var(--text-inverse);
}

.nav-btn.active {
    background-color: var(--primary);
    color: var(--text-inverse);
    border-left: 4px solid var(--secondary);
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.topbar {
    height: 64px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
}

.topbar h2 {
    font-size: 18px;
    font-weight: 600;
}

.view-container {
    padding: 32px;
    flex: 1;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Start (Inicio) */
#view-inicio.active {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 60vh;
}

.hero-start {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 64px 32px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-start h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: none;
    color: #1e1b4b;
}

.hero-start p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.btn-start-order {
    font-size: 18px !important;
    padding: 16px 36px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.25);
    transition: all 0.3s ease !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-start-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(109, 40, 217, 0.35);
}

/* UI Elements */
.card-sharp {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.action-btn {
    padding: 10px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 14px;
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn.primary {
    background-color: var(--primary);
    color: var(--text-inverse);
}

.action-btn.primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.action-btn.secondary {
    background-color: var(--secondary);
    color: var(--text-inverse);
}

.action-btn.secondary:hover:not(:disabled) {
    background-color: var(--secondary-hover);
}

.action-btn.outline {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.action-btn.outline:hover:not(:disabled) {
    border-color: var(--text-muted);
    background-color: var(--bg-main);
}

.actions-bar {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 13px;
}

.input-group {
    display: flex;
    gap: 8px;
}

input[type="text"], input[type="number"], input[type="email"], input[type="password"], select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s;
}

input:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(109, 40, 217, 0.1);
}

small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
}

/* Dashboard Grid for Products */
.dashboard-grid {
    display: block;
    width: 100%;
}

.filters-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table th, .data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background-color: var(--bg-main);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Cart Panel */
.cart-panel {
    position: sticky;
    top: 32px;
}

.cart-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 16px;
}

.cart-summary strong {
    color: var(--primary);
    font-size: 18px;
}

.carrinho-item {
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}

.carrinho-item-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    margin-bottom: 4px;
    align-items: center;
}

.carrinho-item-bonif {
    font-size: 11px;
    color: var(--success);
    margin-top: 4px;
    font-weight: 500;
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.btn-icon-edit {
    color: var(--primary);
}
.btn-icon-edit:hover {
    background: #f3e8ff;
}
.btn-icon-delete {
    color: var(--danger);
}
.btn-icon-delete:hover {
    background: #fee2e2;
}

.carrinho-item-details {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    margin: 16px;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    background: var(--card-bg);
}

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

.modal-total {
    margin-top: 24px;
    padding: 20px 24px;
    background: #f3e8ff; /* primary light color */
    border: 1px solid #d8b4fe;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: var(--primary);
}

.modal-total span {
    font-weight: 600;
}

.modal-total strong {
    font-size: 24px;
    font-weight: 700;
}

.mt-1 { margin-top: 8px; }
.hidden { display: none !important; }

/* Resumo Totals */
.summary-section {
    margin-bottom: 32px;
}

.summary-totals {
    max-width: 400px;
    margin-left: auto;
    background: var(--bg-main);
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.total-row.highlight {
    color: var(--secondary);
    font-weight: 500;
}

.total-row.grand-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-weight: 700;
    font-size: 18px;
    color: var(--primary);
}

.client-data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: var(--bg-main);
    padding: 16px;
    border-radius: var(--radius);
}

.data-pair span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.data-pair strong {
    display: block;
    font-size: 14px;
    color: var(--text-main);
}

/* Resumo Improvements */
.topbar {
    border-top: 4px solid var(--primary);
}
.logo-image {
    height: 40px;
    object-fit: contain;
}

.resumo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
#view-resumo .card-sharp {
    padding: 16px 24px;
}
.resumo-title-group {
    display: flex;
    align-items: center;
    gap: 16px;
}
.resumo-icon {
    background-color: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.resumo-title-group h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}
.resumo-title-group p {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0;
}
.resumo-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.resumo-status strong {
    color: var(--primary);
    font-size: 16px;
}
.badge-success {
    background-color: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1b4b;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title span {
    color: var(--primary);
}

.mb-24 { margin-bottom: 12px; }

.client-data-grid-resumo {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.client-data-grid-resumo .data-pair span {
    color: var(--primary);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 4px;
}
.client-data-grid-resumo .data-pair strong {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
}

.table-resumo th {
    background-color: #f9f5ff;
    color: var(--primary);
}
.table-resumo th, .table-resumo td {
    padding: 8px 16px;
    vertical-align: middle;
}
.table-resumo th {
    padding: 12px 16px;
}
.text-center { text-align: center !important; }
.text-danger { color: var(--secondary) !important; }

.prod-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}
.prod-img {
    width: 24px;
    height: 48px;
    object-fit: contain;
}

.summary-totals-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}
.summary-totals {
    width: 100%;
    max-width: 600px;
    min-width: 500px;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 24px;
}

.actions-bar {
    justify-content: flex-end;
    gap: 16px;
    border-top: none;
}
.btn-edit {
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 600;
}
.btn-confirm {
    background-color: var(--primary);
    font-weight: 600;
}

/* Toasts e Modals de Confirmação */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.toast {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 16px 24px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    font-weight: 500;
    min-width: 250px;
    animation: slideInRight 0.3s ease-out forwards;
}
.toast.toast-success {
    border-left-color: var(--success);
}
.toast.toast-error {
    border-left-color: var(--danger);
}

.toast-closing {
    animation: slideOutRight 0.3s ease-in forwards;
}

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

.modal-sm {
    max-width: 400px;
}
.modal-sm p {
    margin-bottom: 24px;
    color: var(--text-muted);
}

.floating-checkout-bar {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .view-container {
        padding: 16px;
    }
    .topbar {
        padding: 0 16px;
    }
    .card-sharp, #view-resumo .card-sharp {
        padding: 16px;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cart-panel {
        position: relative;
        top: 0;
    }
    }
    .client-data-grid-resumo, .form-grid {
        grid-template-columns: 1fr;
    }
    .client-data-grid {

    .client-data-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }
    .data-pair span {
        font-size: 11px;
    }
    .data-pair strong {
        font-size: 13px;
        word-break: break-word;
    }
    .products-panel, .table-responsive {
        overflow: hidden;
        border: none;
        background: transparent;
    }
    
    .data-table {
        min-width: unset;
        display: block;
        border: none;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody {
        display: block;
    }
    .data-table tr {
        display: grid;
        background: var(--card-bg);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        margin-bottom: 12px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    .data-table td {
        padding: 0;
        border: none;
        display: block;
        text-align: left;
    }

    /* ----------------------------- */
    /* PRODUTOS TABLE (7 columns)    */
    /* 1:Cód, 2:EAN, 3:NCM, 4:Desc, 5:Emb, 6:Preço, 7:Ação */
    /* ----------------------------- */
    #tabela-produtos tr {
        grid-template-columns: 1fr auto;
        row-gap: 4px;
    }
    #tabela-produtos td:nth-child(4) { /* Nome */
        grid-column: 1 / 2;
        grid-row: 1;
        font-weight: 600;
        color: #1e1b4b;
        font-size: 15px;
    }
    #tabela-produtos td:nth-child(6) { /* Preço */
        grid-column: 2 / 3;
        grid-row: 1;
        font-weight: 700;
        color: var(--danger);
        text-align: right;
    }
    #tabela-produtos td:nth-child(1) { /* Cód */
        grid-column: 1 / 2;
        grid-row: 2;
        font-size: 13px;
        color: var(--text-muted);
    }
    #tabela-produtos td:nth-child(1)::before { content: "Cód: "; }

    #tabela-produtos td:nth-child(5) { /* Emb */
        grid-column: 1 / 2;
        grid-row: 3;
        font-size: 13px;
        color: var(--text-muted);
    }
    #tabela-produtos td:nth-child(5)::before { content: "Emb: "; }

    #tabela-produtos td:nth-child(2) { /* EAN */
        grid-column: 1 / 2;
        grid-row: 4;
        font-size: 12px;
        color: var(--text-muted);
    }
    #tabela-produtos td:nth-child(2)::before { content: "EAN: "; }

    #tabela-produtos td:nth-child(3) { /* NCM */
        grid-column: 1 / 2;
        grid-row: 5;
        font-size: 12px;
        color: var(--text-muted);
    }
    #tabela-produtos td:nth-child(3)::before { content: "NCM: "; }

    #tabela-produtos td:nth-child(7) { /* Ação */
        grid-column: 2 / 3;
        grid-row: 2 / 6;
        display: flex;
        justify-content: flex-end;
        align-items: flex-end;
    }

    /* ----------------------------- */
    /* RESUMO TABLE (7 columns)      */
    /* 1:Prod, 2:Qtd, 3:VlrUn, 4:Desc%, 5:Total, 6:Bonif, 7:DescBonif */
    /* ----------------------------- */
    #resumo-produtos tr {
        grid-template-columns: 1fr auto;
        row-gap: 4px;
    }
    #resumo-produtos td:nth-child(1) { /* Nome */
        grid-column: 1 / 2;
        grid-row: 1;
        font-weight: 600;
        color: #1e1b4b;
        font-size: 15px;
    }
    #resumo-produtos td:nth-child(5) { /* Total Liquido */
        grid-column: 2 / 3;
        grid-row: 1;
        font-weight: 700;
        color: var(--danger);
        text-align: right !important;
    }
    #resumo-produtos td:nth-child(3) { /* Valor Unit */
        grid-column: 1 / 3;
        grid-row: 2;
        font-size: 13px;
        color: var(--text-muted);
        text-align: left !important;
    }
    #resumo-produtos td:nth-child(3)::before { content: "Valor Un: "; }

    #resumo-produtos td:nth-child(2) { /* Qtd */
        grid-column: 1 / 3;
        grid-row: 3;
        font-size: 13px;
        color: var(--text-muted);
        text-align: left !important;
    }
    #resumo-produtos td:nth-child(2)::before { content: "Qtd: "; }

    #resumo-produtos td:nth-child(4) { /* Desc */
        grid-column: 1 / 3;
        grid-row: 4;
        font-size: 13px;
        color: var(--text-muted);
        text-align: left !important;
    }
    #resumo-produtos td:nth-child(4)::before { content: "Desc: "; }

    #resumo-produtos td:nth-child(6) { /* Qtd Bonif */
        grid-column: 1 / 3;
        grid-row: 5;
        font-size: 13px;
        color: var(--success);
        text-align: left !important;
    }
    #resumo-produtos td:nth-child(6)::before { content: "Bonif: "; }
    #resumo-produtos td:nth-child(6)::after { content: " un"; }

    #resumo-produtos td:nth-child(7) { /* Desc Bonif */
        grid-column: 1 / 3;
        grid-row: 6;
        font-size: 13px;
        color: var(--success);
        text-align: left !important;
    }
    #resumo-produtos td:nth-child(7)::before { content: "Desc Bonif: "; }

    .summary-totals {
        min-width: unset;
        max-width: 100%;
        padding: 16px;
    }
    .resumo-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .resumo-status {
        align-items: flex-start;
    }
    .actions-bar {
        flex-direction: column-reverse;
        width: 100%;
    }
    .action-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .input-group {
        flex-direction: column;
    }
    .input-group .action-btn {
        width: 100%;
    }
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }
    /* Floating Checkout Bar e Painel Mobile */
    .floating-checkout-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 12px 16px;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
        z-index: 900;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        border-top: 1px solid var(--border);
    }
    
    .checkout-bar-info {
        display: flex;
        flex-direction: column;
    }
    .checkout-bar-info span {
        font-size: 12px;
        color: var(--text-muted);
    }
    .checkout-bar-info strong {
        font-size: 16px;
        color: var(--primary);
    }
    
    .checkout-bar-actions {
        display: flex;
        gap: 8px;
        flex: 1;
        justify-content: flex-end;
        flex-direction: row !important; /* Force inline */
        width: auto !important;
    }
    .checkout-bar-actions .action-btn {
        padding: 8px 12px;
        font-size: 13px;
        width: auto !important;
    }

    #view-produtos {
        padding-bottom: 80px; /* Space for floating bar */
    }

    .cart-panel {
        position: fixed !important;
        top: 0 !important;
        left: 0;
        width: 100%;
        height: 100vh;
        z-index: 1000;
        background: #fff;
        padding: 24px 16px;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        border-radius: 0 !important;
        border: none !important;
    }
    .cart-panel.mobile-open {
        transform: translateY(0);
    }
    .mobile-cart-close {
        display: flex !important;
        color: var(--text-muted);
    }
}

/* Polling Highlight */
@keyframes flashGreen {
    0% { background-color: rgba(16, 185, 129, 0.4); }
    100% { background-color: transparent; }
}

.flash-new-row {
    animation: flashGreen 3s ease-out forwards;
}

/* --- CART DRAWER --- */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 400px;
    height: 100vh;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0,0,0,0.1);
    z-index: 1050;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.cart-drawer.active {
    transform: translateX(0);
}
@media (max-width: 768px) {
    .cart-drawer {
        width: 100%;
    }
}

.cart-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}
.cart-drawer-header h3 {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 18px;
    color: #1e1b4b;
}
.cart-drawer-close {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.2s;
}
.cart-drawer-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.cart-btn-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--primary);
    border-radius: 100px;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s;
}
.cart-btn-pill:hover {
    box-shadow: 0 4px 12px rgba(109, 40, 217, 0.2);
    transform: translateY(-1px);
}
.cart-btn-pill-icon {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
}
.cart-btn-pill-total {
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

