﻿.profile-header {
    background: #A8DDF0;
    padding: 20px 20px;
    text-align: center;
}

    .profile-header h1 {
        margin: 0;
        color: #fff;
        font-size: 58px;
        font-weight: 800;
        line-height: 1.2;
        font-family: inherit;
    }

.shop-page {
    padding-bottom: 70px;
    background: #fff;
}


/*==================================================
BANNER
==================================================*/

.shop-banner {
    margin-bottom: 35px;
}

.shop-banner-image {
    overflow: hidden;
    border-radius: 20px;
}

.shop-banner img {
    width: 100%;
    display: block;
}


/*==================================================
BREADCRUMB
==================================================*/

.shop-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    padding-top: 20px;
}

    .shop-breadcrumb a {
        color: #666;
        text-decoration: none;
        transition: .25s;
    }

        .shop-breadcrumb a:hover {
            color: #FFD501;
        }

    .shop-breadcrumb .separator {
        color: #bbb;
    }

    .shop-breadcrumb .current {
        color: #999;
    }


/*==================================================
HEADING
==================================================*/

.shop-heading {
    margin-bottom: 35px;
}

    .shop-heading h1 {
        color: #221b63;
        font-size: 46px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
    }


/*==================================================
TOOLBAR
==================================================*/

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin-bottom: 45px;
    flex-wrap: wrap;
    flex-direction: column;
}


/*==================================================
SEARCH
==================================================*/

.toolbar-search {
    width: 340px;
    position: relative;
}

    .toolbar-search input {
        width: 100%;
        height: 54px;
        border: 1px solid #ddd;
        border-radius: 50px;
        padding: 0 20px 0 50px;
        font-size: 15px;
        outline: none;
        transition: .3s;
    }

        .toolbar-search input:focus {
            border-color: #FFD501;
        }

    .toolbar-search i {
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        color: #888;
    }


/*==================================================
FILTERS
==================================================*/

.toolbar-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 25px 0;
    width: 100%;
}

    .toolbar-filters select {
        flex: 1 1 0;
        min-width: 150px;
        white-space: nowrap;
        height: 54px;
        padding: 0 18px;
        border-radius: 14px;
        border: 1px solid #ddd;
        background: #fff;
        color: #333;
        cursor: pointer;
        transition: .25s;
    }

        .toolbar-filters select:hover {
            border-color: #FFD501;
        }

        .toolbar-filters select:focus {
            outline: none;
            border-color: #FFD501;
        }


/*==================================================
LAYOUT
==================================================*/

.shop-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 45px;
    align-items: start;
}


/*==================================================
SIDEBAR
==================================================*/

.shop-sidebar {
    position: sticky;
    top: 120px;
}


/*==================================================
PRODUCTS
==================================================*/

.shop-products {
    min-width: 0;
}

.product-card {
    border-radius: 22px;
    height: 100%;
    margin-bottom: 20px;
    padding: 25px !important;
}


/*==================================================
BOTTOM BANNER
==================================================*/

.shop-bottom-banner {
    margin-top: 70px;
}

    .shop-bottom-banner img {
        width: 100%;
        border-radius: 20px;
        display: block;
    }


/*==================================================
FILTER CARDS
==================================================*/

.filter-card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(0,0,0,.04);
}

.filter-title {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: 700;
    color: #150A51;
}


/*==================================================
SEARCH CARD
==================================================*/

.search-input {
    position: relative;
}

    .search-input input {
        width: 100%;
        height: 52px;
        border: 1px solid #d9dfe8;
        border-radius: 12px;
        padding: 0 55px 0 18px;
        font-size: 15px;
        transition: .3s;
    }

        .search-input input:focus {
            outline: none;
            border-color: #FFD501;
            box-shadow: 0 0 0 4px rgba(255,106,60,.12);
        }

    .search-input button {
        position: absolute;
        right: 6px;
        top: 6px;
        width: 40px;
        height: 40px;
        border-radius: 10px;
        background: #FFD501;
        color: #fff;
        border: none;
        transition: .3s;
    }

        .search-input button:hover {
            background: #150A51;
        }


/*==================================================
CATEGORY SIDEBAR
==================================================*/

.shop-category-filter {
    margin-bottom: 40px;
}

.shop-filter-title {
    font-size: 24px;
    font-weight: 700;
    color: #221b63;
    margin-bottom: 24px;
}

.shop-category-item {
    margin-bottom: 18px;
}

.shop-category-parent {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 54px;
    padding: 12px 28px;
    border: 1px solid #dfe5ec;
    border-radius: 999px;
    color: #221b63;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transform: translateY(2px);
    line-height: 0 !important;
    vertical-align: -webkit-baseline-middle !important;
    transition: .25s;
}

    .shop-category-parent span {
        display: block;
        width: 100%;
        transform: translateY(2px);
        line-height: 0 !important;
        vertical-align: -webkit-baseline-middle !important;
    }

    .shop-category-parent:hover {
        text-decoration: none;
        color: #FFD501;
        border-color: #FFD501;
    }

    .shop-category-parent.active {
        background: #150A51;
        color: #fff;
        border-color: #150A51;
    }


/*==================================================
CATEGORY NAME
==================================================*/

.catagory-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 44px;
    line-height: 22px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #9AA0AC;
}


/*==================================================
PRODUCT TEXT / ALIGNMENT
==================================================*/

.pi-text {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-align: center;
}

    .pi-text .product-name {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        min-height: 95px;
        font-weight: bold !important;
    }

    .pi-text .product-price {
        margin-top: 0;
    }

    .pi-text .product-buttons {
        margin-top: auto;
        padding-top: 25px;
    }

.product-price {
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-weight: bold !important;
    font-size: 18px !important;
}

.product-buttons {
    margin-top: 15px;
}

.line-through {
    text-decoration: line-through !important;
    padding-right: 5px !important;
}


/*==================================================
CATEGORY CHILDREN
==================================================*/

.shop-category-children {
    display: none;
    list-style: none;
    margin: 14px 0 0;
    padding-left: 18px;
    max-height: 300px;
    overflow-y: auto;
    padding-top: 1px;
}

    .shop-category-children.show {
        display: block;
    }

    .shop-category-children li {
        margin-bottom: 10px;
    }

    .shop-category-children a {
        color: #221b63;
        text-decoration: none;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 14px;
        transition: .25s;
        transform: translateY(2px);
        line-height: 0 !important;
        vertical-align: -webkit-baseline-middle !important;
    }

        .shop-category-children a:hover {
            color: #FFD501;
        }

        .shop-category-children a.active {
            color: #FFD501;
            font-weight: 600;
        }

    .shop-category-children i {
        font-size: 9px;
        color: #555;
    }


/*==================================================
SIDEBAR BANNER
==================================================*/

.sidebar-banner {
    margin-top: 45px;
}

    .sidebar-banner img {
        width: 100%;
        border-radius: 18px;
    }


/*==================================================
PAGINATION
==================================================*/

.shop-pagination {
    margin: 60px 0;
    display: flex;
    justify-content: center;
}

    .shop-pagination .pagination {
        display: flex;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .shop-pagination .page-item {
        margin: 0;
    }

    .shop-pagination .page-link {
        width: 46px;
        height: 46px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        border: 1px solid #E5EAF0;
        background: #fff;
        color: #221B63;
        font-weight: 600;
        font-size: 15px;
        transition: .25s;
        text-decoration: none;
    }

        .shop-pagination .page-link:hover {
            background: #FFD501;
            border-color: #FFD501;
            color: #fff;
        }

    .shop-pagination .active .page-link {
        background: #221B63;
        border-color: #221B63;
        color: #fff;
    }

    .shop-pagination .page-link span {
        transform: translateY(2px);
        line-height: 0 !important;
        vertical-align: -webkit-baseline-middle !important;
    }

    .shop-pagination .disabled .page-link {
        background: #F5F6FA;
        color: #C2C8D0;
        border-color: #E5EAF0;
        cursor: not-allowed;
    }

    .shop-pagination .page-link i {
        font-size: 13px;
    }


/*==================================================
PRODUCT ALIGNMENT
==================================================*/

.product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .product-item .pi-text {
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    .product-item .product-name {
        min-height: 95px;
    }

    .product-item .product-price {
        margin-top: auto;
    }


/*==================================================
DESKTOP / MOBILE SORT VISIBILITY
==================================================*/

/* Same filter HTML is used on desktop and mobile */
.desktop-sort {
    display: flex;
    gap: 10px;
}

/* Old separate mobile controls are not needed */
.mobile-sort-filter,
.mobile-filter-panel {
    display: none;
}


/*==================================================
MAX WIDTH 1200
==================================================*/

@media (max-width: 1200px) {

    .shop-layout {
        grid-template-columns: 260px 1fr;
    }

    .toolbar-search {
        width: 100%;
    }
}


/*==================================================
TABLET PRODUCT ALIGNMENT
992px - 1200px
==================================================*/

@media (min-width: 992px) and (max-width: 1200px) {

    .product-item {
        display: flex;
        flex-direction: column;
        height: 100%;
    }

        .product-item .pi-text {
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .product-item .product-name {
            min-height: 70px;
        }

        .product-item .product-price {
            margin-top: auto;
        }

        .product-item .product-buttons {
            margin-top: 18px;
        }

    .product-list [class*="col-"],
    .product-grid [class*="col-"] {
        flex: 0 0 50%;
        max-width: 50%;
    }
}


/*==================================================
MOBILE / TABLET
991px AND BELOW
==================================================*/

@media (max-width: 991px) {

    .profile-header h1 {
        font-size: 38px;
    }

    .shop-sidebar {
        display: none !important;
    }

    .shop-layout {
        display: block;
    }

    .shop-toolbar {
        display: block;
        margin-bottom: 30px;
    }

    .toolbar-search {
        width: 100%;
        margin-bottom: 15px;
    }

        .toolbar-search input {
            font-size: 16px;
        }

    .shop-heading h1 {
        font-size: 34px;
    }

    .toolbar-filters.desktop-sort {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 14px;
        width: 100%;
        padding: 10px 0 25px;
        margin: 0;
        box-sizing: border-box;
    }

        .toolbar-filters.desktop-sort select {
            display: block;
            width: 100%;
            max-width: 100%;
            min-width: 0;
            height: 54px;
            flex: none;
            margin: 0;
            padding: 0 44px 0 18px;
            border: 1px solid #d8dce3;
            border-radius: 14px;
            background-color: #fff;
            color: #222;
            /* Prevent zoom */
            font-size: 16px;
            font-weight: 400;
            line-height: 54px;
            white-space: nowrap;
            cursor: pointer;
            outline: none;
            box-shadow: none;
            box-sizing: border-box;
            transition: border-color .2s ease, box-shadow .2s ease;
        }

            .toolbar-filters.desktop-sort select:hover {
                border-color: #150A51;
            }

            .toolbar-filters.desktop-sort select:focus {
                border-color: #150A51;
                outline: none;
                box-shadow: 0 0 0 3px rgba(21, 10, 81, .05);
            }

        .toolbar-filters.desktop-sort #sortOptions:hover,
        .toolbar-filters.desktop-sort #sortOptions:focus {
            border-color: #FFD501;
            box-shadow: 0 0 0 3px rgba(255, 213, 1, .10);
        }
}


/*==================================================
SMALL MOBILE
576px AND BELOW
==================================================*/

@media (max-width: 576px) {

    .profile-header {
        padding: 16px 15px;
    }

        .profile-header h1 {
            font-size: 32px;
        }

    .shop-heading h1 {
        font-size: 28px;
    }

    .shop-banner {
        margin-bottom: 20px;
    }


    /* ==========================================
       FILTERS
       ========================================== */

    .toolbar-filters.desktop-sort {
        gap: 12px;
        padding-top: 8px;
        padding-bottom: 20px;
    }

        .toolbar-filters.desktop-sort select {
            height: 52px;
            padding: 0 42px 0 16px;
            border-radius: 13px;
            font-size: 16px;
            line-height: 52px;
        }


    /* ==========================================
       PRODUCT ALIGNMENT
       ========================================== */

    .pi-text {
        display: flex;
        flex-direction: column;
        height: 100%;
        text-align: center;
    }

        .pi-text .product-name {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            min-height: 120px;
            font-weight: bold !important;
        }

        .pi-text .product-price {
            margin-top: 0;
        }

        .pi-text .product-buttons {
            margin-top: auto;
            padding-top: 20px;
        }


    /* ==========================================
       PAGINATION
       ========================================== */

    .shop-pagination .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

        .shop-pagination .pagination::-webkit-scrollbar {
            display: none;
        }

    .shop-pagination .page-link {
        width: 38px;
        height: 38px;
        min-width: 38px;
        font-size: 14px;
    }
}
