/* ==============================
   RESET / BASE
   ============================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f6f8;
    color: #333;
}

/* ==============================
   LAYOUT
   ============================== */
#app {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1e1e1e;
    color: #fff;
    padding: 20px;
}

.sidebar .title {
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 30px;
}

.sidebar .title span {
    font-size: 14px;
    font-weight: normal;
    color: #bbb;
}

/* Menu */
.menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-item {
    padding: 10px 12px;
    border-radius: 4px;
    cursor: pointer;
    color: #ddd;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #333;
}

.menu-item.active {
    background: #007acc;
    color: #fff;
}

/* ==============================
   CONTENT
   ============================== */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* Products grid */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.product-card img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.product-name {
    font-size: 14px;
    font-weight: 600;
}
/* ==============================
   TITLE WITH LOGO
   ============================== */

.title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.title-text .brand {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
}

.title-text .subtitle {
    font-size: 13px;
    color: #bbb;
}
/* ==============================
   DISABLED PRODUCTS
   ============================== */

.product-card.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.product-card.disabled img {
    filter: grayscale(100%);
}
/* ==============================
   SELECTED PRODUCT
   ============================== */

.product-card.selected {
    border: 2px solid #007acc;
    box-shadow: 0 0 0 2px rgba(0,122,204,0.25);
}

.product-card.selected:not(.disabled) {
    background: #f0f8ff;
}
/* ==============================
   PRODUCT TOOLTIP
   ============================== */

.product-tooltip {
    display: none;
    margin-top: 10px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    background: #eef6ff;
    border-left: 3px solid #007acc;
    border-radius: 4px;
}

.product-card.selected .product-tooltip {
    display: block;
}

