:root {
    --bg-color: #1a1a1a;
    --sidebar-bg: #262626;
    --card-bg: #262626;
    --text-color: #e2e8f0;
    --text-muted: #94a3b8;
    --primary-color: #4ade80;
    --primary-hover: #6ee7b7;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    margin: 0;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

.pos-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

.pos-main {
    flex-grow: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.pos-header {
    margin-bottom: 2rem;
}

.product-area {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 1rem; /* for scrollbar */
}

.category-title {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    border: 1px solid #374151;
    color: var(--text-color);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 15px -3px rgba(88, 204, 128, 0.4), 0 4px 6px -2px rgba(88, 204, 128, 0.1);
}

.product-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}


.pos-sidebar {
    width: 380px;
    min-width: 380px;
    background-color: var(--sidebar-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.cart {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-title {
    color: var(--text-color);
    border-bottom: 1px solid #475569;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.cart-items {
    flex-grow: 1;
    overflow-y: auto;
}

.cart-summary {
    border-top: 1px solid #475569;
    padding-top: 1rem;
    margin-top: 1rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-color);
    font-weight: 700;
    padding: 0.75rem 1rem;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    color: var(--bg-color);
}

.btn-secondary {
    background-color: var(--card-bg);
    border-color: var(--text-muted);
    color: var(--text-color);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}