/* SolaimanLipi Font Face */
@font-face {
    font-family: 'SolaimanLipi';
    src: url('../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Light Mode Variables (Default) */
:root {
    --bg-color: #f4f7f6;
    --text-color: #333333;
    --card-bg: #ffffff;
    --primary-color: #007bff;
    --border-color: #dddddd;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #f1f1f1;
    --card-bg: #1e1e1e;
    --primary-color: #4da3ff;
    --border-color: #333333;
}

/* Base Styles */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Arial', sans-serif; /* Default for English */
    transition: background-color 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
}

/* Apply SolaimanLipi only when Bengali language is active */
body.lang-bn {
    font-family: 'SolaimanLipi', 'Arial', sans-serif;
}

/* Basic Layout Styles */
.header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
}

.controls button {
    padding: 8px 15px;
    margin-left: 10px;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
}

/* When in Bengali, force buttons to use SolaimanLipi */
body.lang-bn .controls button {
    font-family: 'SolaimanLipi', sans-serif;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}

.product-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}