.gc-shop-layout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 24px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    align-items: start;
}
.gc-shop-sidebar {
    position: sticky;
    top: 112px;                     /* Height of your sticky BTECH header */
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;

    /* Fixed visible sidebar */
    height: calc(100vh - 130px);
    overflow: hidden;
} 

.gc-shop-products {
    min-width: 0;
    padding:0px;
}


.gc-shop-filter-shortcode{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(15,23,42,.04);

    display: flex;
    flex-direction: column;
    flex: 1;

    min-height: 0;
    overflow: hidden;
}




/* Scrollable filter content */
.gc-shop-filter-scroll{
    flex: 1;
    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    display: flex;
    flex-direction: column;
    gap: 10px;

    padding-right: 6px;
    padding-bottom: 16px;

    /* Thin scrollbar */
    scrollbar-width: thin;
    scrollbar-color: #d1d5db transparent;
}

/* Chrome / Edge / Safari */
.gc-shop-filter-scroll::-webkit-scrollbar{
    width: 5px;
}

.gc-shop-filter-scroll::-webkit-scrollbar-track{
    background: transparent;
}

.gc-shop-filter-scroll::-webkit-scrollbar-thumb{
    background: #d1d5db;
    border-radius: 999px;
}






/* Footer always stays at bottom */
/* Sticky footer inside filter card */
.gc-shop-filter-footer{
    flex-shrink: 0;

    background: #fff;
    border-top: 1px solid #eef2f7;

    padding-top: 12px;
    margin-top: 0;
}



.gc-shop-search-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111827;
}

.gc-shop-search-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.gc-shop-search-row input[type="search"] {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    box-sizing: border-box;
    outline: none;
}

.gc-shop-search-row input[type="search"]:focus {
    border-color: #27ad34;
    box-shadow: 0 0 0 3px rgba(39, 173, 52, 0.10);
}


/*

.gc-shop-search-btn,
.gc-shop-filter-apply {
    background: var(--theme-accent-1) ;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 11px 14px;
    font-weight: 700;
    cursor: pointer;
}

*/

.gc-shop-filter-apply {
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    background: var(--theme-accent-1);
    color: #fff;
    border: none;
    cursor: pointer;

    flex-shrink: 0;
}


.gc-shop-search-btn:hover,
.gc-shop-filter-apply:hover {
    background: #1f8e2a;
}

.gc-shop-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.gc-shop-filter-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.gc-shop-filter-reset {
    font-size: 13px;
    color: var(--theme-accent-1);
    text-decoration: none;
}

.gc-shop-filter-reset:hover {
    text-decoration: underline;
}

.gc-shop-filter-panel {
    border: 1px solid #eef2f7;
    border-radius: 12px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #fff;
}

.gc-shop-filter-panel summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    color: #111827;
    list-style: none;
}

.gc-shop-filter-panel summary::-webkit-details-marker {
    display: none;
}








/* ==========================================
   PRICE RANGE SLIDER
========================================== */

.gc-price-box {
    margin-top: 12px;
}

.gc-price-values {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 13px;
    color: #374151;
}

.gc-price-values strong {
    color: #111827;
    font-weight: 700;
}

.gc-price-slider-wrapper {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.gc-price-track {
    position: absolute;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 999px;
}

.gc-price-range {
    position: absolute;
    height: 4px;
    background: var(--theme-accent-1);
    border-radius: 999px;
    left: 0;
    width: 100%;
}

.gc-price-slider-wrapper input[type="range"] {
    position: absolute;
    width: 100%;
    margin: 0;
    appearance: none;
    background: transparent;
    pointer-events: none;
}

.gc-price-slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.gc-price-slider-wrapper input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--theme-accent-1);
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.25);
    cursor: pointer;
    margin-top: -7px;
}

.gc-price-slider-wrapper input[type="range"]::-moz-range-track {
    background: transparent;
    height: 4px;
}

.gc-price-slider-wrapper input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--theme-accent-1);
    cursor: pointer;
}




.gc-filter-list{
    display: grid;
    gap: 8px;
    margin-top: 10px;

    padding-right: 0;

    max-height: none;
    overflow: visible;
}






.gc-shop-filter-apply{
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 12px;

    background: var(--theme-accent-1);
    color: #fff;

    font-size: 15px;
    font-weight: 700;
    cursor: pointer;

    display: block;
}

.gc-shop-filter-apply:hover{
    background:#1f8e2a;
}



/* Desktop */
@media (min-width:769px){

    .gc-shop-filter-shortcode{
        max-height:calc(100vh - 120px);
    }

    .gc-shop-filter-content{
        overflow-y:auto;
        padding-bottom:12px;
    }
}

/* Mobile */
@media (max-width:768px){

    .gc-shop-filter-shortcode{
        max-height:75vh;
    }

    .gc-shop-filter-content{
        overflow-y:auto;
        padding-bottom:16px;
    }
}


@media (max-width: 992px) {
    .gc-shop-layout {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .gc-shop-sidebar {
        position: static;
    }
}


/* ==========================
   MOBILE SHOP LAYOUT
========================== */
@media (max-width:768px){

    /* Outer container */
    .gc-shop-layout{
        padding:6px;
        gap:8px;
    }


.gc-shop-filter-shortcode{
    max-height:70vh;
}
.gc-filter-list{
    max-height:35vh;
    padding-bottom:90px;
}
    /* Product column */
    .gc-shop-products{
        padding:0;
        margin:0;
    }

    /* Remove section padding */
    .gc-shop-products .gc-product-grid-section{
        padding:0;
        margin:0;
    }

    /* Shop wrapper should also have no padding */
    .gc-shop-product-grid{
        padding:0;
        margin:0;
    }

    /* Let the grid stretch edge-to-edge */
    .gc-shop-product-grid .gc-product-grid-inner{
        width:100%;
        gap:6px;
    }
}

