/*
 * Simple product grid on category and search pages (layout handle galaxy_listview, body.glv).
 * Square image, name, price, "or Rs X/month"; the whole card is one link. Colours match the product page.
 */
body.glv .glv-grid {
    padding-bottom: 32px;
}
/* desktop: the sort bar centred on "Shopping options", and the grid starting on the line under that heading
   (the top of the first filter row) */
@media (min-width: 768px) {
    body.glv .column.main .toolbar-products {
        margin-top: -18px !important;
        margin-bottom: 0 !important;
    }
    body.glv .column.main .toolbar-products .sorter-options {
        height: 32px !important;
    }
    body.glv .column.main .glv-grid:not(:first-child) {
        padding-top: 6px;
    }
    body.glv .column.main .glv-grid {
        margin-top: 0 !important;
    }
    body.glv .column.main .glv-grid ~ .toolbar-products {
        margin-top: 0 !important;
    }
}
body.glv .glv-grid .product-items {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
    margin: 0 !important;
    padding: 0;
    list-style: none;
}
@media (min-width: 768px) {
    body.glv .glv-grid .product-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 32px 20px;
    }
}
@media (min-width: 768px) {
    body.glv.page-layout-1column .glv-grid .product-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
body.glv .glv-grid .product-items > .glv-item {
    position: relative;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    background: none;
    box-shadow: none !important;
}
/* category description under the grid */
body.glv .column.main > .category-description {
    margin-top: 32px;
    color: #6b6b70;
    font-size: 14px;
}

/* ---- filter sidebar: hairlines instead of dashes, sentence-case group titles, plain option rows with the count on the
   right, long lists scroll ------------------------------------------------------------------------------------------ */
body.glv .block.filter .filter-subtitle {
    display: block;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e3e6 !important;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.glv .block.filter .filter-options .filter-options-item {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e3e6 !important;
}
body.glv .block.filter .filter-options .filter-options-title {
    margin: 0 !important;
    padding: 14px 24px 14px 0 !important;
    border: 0 !important;
    color: #1d1d1f;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.3;
    text-transform: none !important;
    word-break: normal;
    cursor: pointer;
}
body.glv .block.filter .filter-options .filter-options-title:hover {
    color: #cc2229;
}
body.glv .block.filter .filter-options-content-outer {
    border-top: 0 !important;
    padding-top: 0 !important;
}
body.glv .block.filter .filter-options-content {
    margin: 0 !important;
    padding: 0 0 12px !important;
}
body.glv .block.filter .filter-options-content-inner {
    max-height: 264px;
    overflow-y: auto;
    scrollbar-color: #c9c9cd transparent;
    scrollbar-width: thin;
}
body.glv .block.filter .filter-options .filter-options-content .items {
    margin: 0;
    padding: 0 8px;
}
body.glv .block.filter .filter-options .filter-options-content .item {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3;
}
body.glv .block.filter .filter-options .filter-options-content .item:before {
    display: none !important;
}
body.glv .block.filter .filter-options .filter-options-content .item > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px !important;
    margin: 0 -8px;
    border-radius: 4px;
    color: #55555a !important;
    font-size: 13px !important;
    font-weight: 400;
    text-decoration: none !important;
    text-transform: none !important;
}
body.glv .block.filter .filter-options .filter-options-content .item > a:hover {
    background: #f3f3f4;
    color: #1d1d1f !important;
}
body.glv .block.filter .filter-options .filter-options-content .count {
    flex: none;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0 !important;
    color: #8e8e93 !important;
    font-size: 12px !important;
    line-height: 1.3;
    opacity: 1 !important;
    vertical-align: baseline;
}
body.glv .block.filter .filter-options .filter-options-content .count .filter-count-label {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

/* ---- toolbar: item count, sort, pagination, per page --------------------------------------------------------- */
body.glv .toolbar-products .toolbar-amount {
    color: #6b6b70;
    font-size: 13px;
}
body.glv .toolbar-products .toolbar-number {
    color: #1d1d1f;
    font-weight: 600;
}
body.glv .toolbar-products .sorter-label,
body.glv .toolbar-products .limiter .label,
body.glv .toolbar-products .limiter-text {
    color: #6b6b70;
    font-size: 13px;
    font-weight: 400;
}
/* selects: rounded, hairline border, dark text, own chevron */
body.glv .toolbar-products .sorter-options,
body.glv .toolbar-products .limiter-options {
    -webkit-appearance: none;
    appearance: none;
    height: 34px !important;
    padding: 0 34px 0 14px !important;
    border: 1px solid #d6d6da !important;
    border-radius: 999px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font-size: 13px !important;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s ease;
}
body.glv .toolbar-products .sorter-options:hover,
body.glv .toolbar-products .limiter-options:hover,
body.glv .toolbar-products .sorter-options:focus,
body.glv .toolbar-products .limiter-options:focus {
    border-color: #1d1d1f !important;
    outline: none;
}
body.glv .toolbar-products .limiter-options {
    width: auto !important;
    min-width: 72px;
}
/* pagination: round number buttons, current page solid dark, arrows the same size */
body.glv .toolbar-products .pages .items {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}
body.glv .toolbar-products .pages .item {
    margin: 0 !important;
}
body.glv .toolbar-products .pages .item .page,
body.glv .toolbar-products .pages .action {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #1d1d1f !important;
    font-size: 14px !important;
    font-weight: 600;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: background-color .15s ease;
}
body.glv .toolbar-products .pages a.page:hover,
body.glv .toolbar-products .pages .action:hover {
    background: #f3f3f4 !important;
}
body.glv .toolbar-products .pages .item.current .page {
    background: #1d1d1f !important;
    color: #fff !important;
}
body.glv .toolbar-products .pages .action:before {
    color: #1d1d1f !important;
    font-size: 22px !important;
    line-height: 1 !important;
    margin: 0 !important;
}

/* ---- phones: one row with a "Shop by" pill on the left and the sort pill on the right, item count underneath ---- */
@media (max-width: 767px) {
    body.glv .block.filter .filter-title {
        width: -webkit-fit-content !important; /* only as wide as the pill, so it doesn't cover the sort controls */
        width: fit-content !important;
        margin: 0 !important;
        height: 38px;
    }
    body.glv .block.filter .filter-title strong {
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        height: 38px;
        padding: 0 16px !important;
        border: 1px solid #d6d6da !important;
        border-radius: 999px !important;
        background: #fff !important;
        box-shadow: none !important;
        color: #1d1d1f !important;
        font-size: 13px !important;
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1 !important;
        text-transform: none !important;
    }
    body.glv .block.filter .filter-title strong:before {
        color: #1d1d1f !important;
        font-size: 14px !important;
        margin: 0 !important;
    }
    body.glv .column.main .toolbar-products:not(.glv-grid ~ .toolbar-products) {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        width: 100%;
        margin: -38px 0 16px !important;
        padding: 0 !important;
        pointer-events: none;
    }
    body.glv .column.main .toolbar-products:not(.glv-grid ~ .toolbar-products) .toolbar-sorter {
        display: flex !important;
        align-items: center;
        order: 1;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
        pointer-events: auto;
    }
    body.glv .column.main .toolbar-products:not(.glv-grid ~ .toolbar-products) .sorter-label {
        display: none !important;
    }
    body.glv .column.main .toolbar-products .sorter-options {
        width: auto !important;
        height: 38px !important;
        max-width: 230px;
    }
    body.glv .column.main .toolbar-products:not(.glv-grid ~ .toolbar-products) .toolbar-amount {
        order: 2;
        flex-basis: 100%;
        margin: 12px 0 0 !important;
        padding: 0 !important;
        font-size: 12px;
        text-align: left;
    }
}

/* phones: the filter panel slides in from the left (it came in from the right); the close X moves to the right strip */
@media (max-width: 767px) {
    body.glv .block.filter .filter-content {
        left: 0 !important;
        right: auto !important;
    }
    body.glv .block.filter:not(.active) .filter-content {
        transform: translateX(-100%) !important;
    }
    body.glv .block.filter.active .filter-content {
        transform: none !important;
    }
    body.glv .block.filter .filter-title strong:after {
        text-align: right !important;
    }
}

/* ---- category banner (the category's own Image field), full width above the filters and grid ---- */
body.glv .category-view .category-image {
    margin: 0 0 28px;
}
body.glv .category-view .category-image .image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}
@media (max-width: 767px) {
    body.glv .category-view .category-image {
        margin-bottom: 16px;
    }
    /* banners are wide; on phones crop to 2:1 from the left so the headline stays readable */
    body.glv .category-view .category-image .image {
        aspect-ratio: 2 / 1;
        object-fit: cover;
        object-position: left center;
        border-radius: 10px;
    }
}

/* ---- "Now shopping by": removable chips and a quiet "Clear all" link instead of a grey box and red button ---- */
body.glv .block.filter .filter-current {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
}
body.glv .block.filter .filter-current-subtitle {
    display: block;
    margin: 0 0 12px !important;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #e3e3e6 !important;
    color: #1d1d1f;
    font-size: 13px !important;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
body.glv .block.filter .filter-current .items {
    display: flex !important;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}
body.glv .block.filter .filter-current .item {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    margin: 0 !important;
    padding: 6px 30px 6px 12px !important;
    border-radius: 999px;
    background: #f3f3f4 !important;
    color: #1d1d1f;
    font-size: 13px;
    line-height: 1.2;
}
body.glv .block.filter .filter-current .filter-label,
body.glv .block.filter .filter-current .filter-value {
    display: inline !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    vertical-align: baseline;
}
body.glv .block.filter .filter-current .filter-label {
    color: #6b6b70;
    font-weight: 400;
    text-transform: none !important;
}
body.glv .block.filter .filter-current .filter-label:after {
    content: ':';
}
body.glv .block.filter .filter-current .filter-value {
    color: #1d1d1f;
    font-weight: 700;
    text-transform: none !important;
}
body.glv .block.filter .filter-current .action.remove {
    position: absolute !important;
    top: 50% !important;
    right: 8px !important;
    left: auto !important;
    width: 18px;
    height: 18px;
    margin: -9px 0 0 !important;
    padding: 0 !important;
    border-radius: 50%;
    background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 1.5l7 7M8.5 1.5l-7 7' stroke='%231d1d1f' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center !important;
}
body.glv .block.filter .filter-current .action.remove:hover {
    background-color: #e3e3e6 !important;
}
body.glv .block.filter .filter-current .action.remove:before,
body.glv .block.filter .filter-current .action.remove:after {
    display: none !important;
}
body.glv .block.filter .filter-current .action.remove > span {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
body.glv .block.filter .filter-actions {
    margin: 0 0 24px !important;
    padding: 0 !important;
}
body.glv .block.filter .filter-actions .filter-clear {
    display: inline !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #6b6b70 !important;
    font-size: 13px !important;
    font-weight: 600;
    line-height: 1.4 !important;
    text-decoration: underline !important;
    text-transform: none !important;
}
body.glv .block.filter .filter-actions .filter-clear:hover {
    color: #1d1d1f !important;
}
