/* Garo Mobile Tabs - Native Blocksy Integration */

:root {
    /* Hook perfectly into Blocksy's native customizer variables */
    --gmt-accent: var(--theme-palette-color-1, #2563eb); 
    --gmt-border: var(--theme-border-color, #e2e8f0);
    --gmt-text: var(--theme-text-color, #1e293b);
    --gmt-heading: var(--theme-heading-color, #0f172a);
    --gmt-font: var(--theme-font-family, inherit);
}

/* 1. The Tabs UI Container */
.gmt-tabs-container {
    display: flex;
    border-bottom: 1px solid var(--gmt-border);
    margin-bottom: 10px;
    width: 100%;
}

.gmt-tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    background: #f5f5f5;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--gmt-text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--gmt-font);
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.6; /* Dim inactive tab */
}

.gmt-tab-btn.active {
    color: var(--gmt-accent);
    border-bottom: 2px solid var(--gmt-accent);
    opacity: 1;
}

.gmt-tab-btn svg {
    margin-right: 8px;
}

/* 2. Categories Menu List Styling (Matching Blocksy natively) */
.gmt-mobile-nav {
    display: block;
    width: 100%;
    animation: gmtFadeIn 0.3s ease;
}

@keyframes gmtFadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

.gmt-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.gmt-nav-list li {
    border-bottom: 1px solid #E0E0E0;
    position: relative;
    display: block;
}

.gmt-nav-list li:last-child {
    border-bottom: none;
}

.gmt-nav-list a {
    display: block;
    padding: 8px 0; /* Reduced from 15px to match Blocksy's primary menu */
    text-decoration: none;
    color: var(--gmt-heading);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

/* 3. Sub-Menu Accordion Styles */
.gmt-nav-list ul.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 15px; /* Indent submenus */
    display: none;
    border-top: 1px dashed var(--gmt-border);
}

.gmt-nav-list ul.sub-menu a {
    padding: 10px 0; /* Reduced from 12px for tighter sub-menus */
    font-size: 14px;
    font-weight: 400;
    color: var(--gmt-text);
}

/* Arrow Button for items with sub-menus */
.gmt-toggle-sub {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px; /* Reduced width */
    height: 44px; /* Matched to the new 12px padding + line height */
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--gmt-text);
}

.gmt-toggle-sub svg {
    transition: transform 0.3s ease;
}

.gmt-toggle-sub.active svg {
    transform: rotate(180deg);
}

/* 7. Instant Category Search Bar - UI Fixes */
.gmt-cat-search-wrap {
    position: relative;
    padding: 0; /* Matches the menu padding perfectly */
    border-bottom: 1px solid var(--gmt-border);
    animation: gmtFadeIn 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

#gmt-cat-search-input {
    width: 100% !important;
    height: 48px !important;
    background: var(--theme-palette-color-8, #f8fafc) !important;
    border: 1px solid var(--theme-border-color, #e2e8f0) !important;
    border-radius: 6px !important; /* Premium rounded look */
    padding: 10px 15px 10px 42px !important; /* Leaves room for the SVG icon */
    font-size: 15px !important;
    color: var(--theme-text-color, #1e293b) !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

#gmt-cat-search-input:focus {
    outline: none !important;
    border-color: var(--theme-palette-color-1, #2563eb) !important;
    background: var(--theme-background-color, #ffffff) !important;
}

.gmt-cat-search-wrap svg {
    position: absolute;
    left: 16px; /* Aligned perfectly inside the padding */
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8 !important;
    width: 18px !important;
    height: 18px !important;
    pointer-events: none; /* Allows clicking "through" the icon */
    margin-top: 0; /* Offset to center it with the top padding */
}