/* Master PDV - Catalog Style */
:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    margin: 0;
    padding-bottom: 80px; /* Space for bottom cart bar */
}

.catalog-header {
    background: var(--bg-card);
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.catalog-brand {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-bar {
    padding: 12px 16px;
    background: var(--bg-card);
}

.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    background: var(--bg-body);
}

.category-nav {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 0 16px 12px;
    background: var(--bg-card);
    scrollbar-width: none;
}

.cat-chip {
    padding: 6px 12px;
    background: var(--bg-body);
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
}

.cat-chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.product-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.prod-img {
    height: 120px;
    background: #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

.prod-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.prod-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
}

.prod-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin-top: auto;
}

.add-btn {
    width: 100%;
    padding: 8px;
    background: var(--bg-body);
    border: none;
    border-top: 1px solid var(--border);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
}

.add-btn:active {
    background: #e5e7eb;
}

/* Bottom Cart Bar */
.cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
}

.cart-info {
    display: flex;
    flex-direction: column;
}

.cart-total {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.cart-count {
    font-size: 12px;
    color: var(--text-muted);
}

.checkout-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    align-items: flex-end;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

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

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

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
