/* ================================
   Base Styles - Common across all pages
   ================================ */

/* Font family */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


/* ================================
   Category Tree Styles - products.html
   ================================ */
.category-tree {
    max-height: 300px;
    overflow-y: auto;
}

.category-item {
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
}

.category-item:hover {
    background-color: #f1f5f9;
}

.category-item.active {
    background-color: #e8f5ec;
    color: #00442c;
}

.category-children {
    padding-left: 16px;
}

.tree-toggle {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: 16px;
}

.tree-toggle.collapsed::before {
    content: '▶';
    font-size: 10px;
}

.tree-toggle.expanded::before {
    content: '▼';
    font-size: 10px;
}


/* ================================
   Category Tree Styles - categories.html
   ================================ */
.tree-node {
    transition: background-color 0.15s;
}

.tree-node:hover {
    background-color: #f8fafc;
}

.tree-children {
    overflow: hidden;
}

.tree-children.collapsed {
    display: none;
}

.tree-toggle-page {
    transition: transform 0.2s;
    cursor: pointer;
    user-select: none;
}

.tree-toggle-page.expanded {
    transform: rotate(90deg);
}

.tree-toggle-page.invisible {
    visibility: hidden;
}

.child-indicator {
    width: 16px;
    display: inline-block;
}