/* Townway Customer UI Modernization — Pack 5: Marketplace, Stores, Services and Wishlist */
:root {
    --tw-mp-blue: #0007a3;
    --tw-mp-blue-2: #1769e0;
    --tw-mp-navy: #0c1935;
    --tw-mp-ink: #1c2940;
    --tw-mp-muted: #6b7890;
    --tw-mp-line: #e2e8f2;
    --tw-mp-soft: #f5f8fd;
    --tw-mp-white: #fff;
    --tw-mp-success: #11966f;
    --tw-mp-danger: #d54458;
    --tw-mp-radius: 20px;
    --tw-mp-shadow: 0 18px 44px rgba(20, 39, 75, .09);
}

.tw-marketplace-page {
    min-height: 66vh;
    padding-top: 28px !important;
    padding-bottom: 64px !important;
    color: var(--tw-mp-ink);
}

.tw-marketplace-page::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
    background:
        radial-gradient(circle at 8% 0, rgba(0, 7, 163, .065), transparent 29%),
        linear-gradient(180deg, #f7f9fd 0, #fff 470px);
}

.tw-marketplace-page .feature_header,
.tw-sellers-page > .row:first-child,
.tw-marketplace-page > h2,
.tw-customer-wishlist-page > h3 {
    border: 0 !important;
    background: transparent !important;
}

.tw-marketplace-page .feature_header span,
.tw-sellers-page h4,
.tw-favourite-stores-page h2,
.tw-customer-wishlist-page .headerTitle {
    color: var(--tw-mp-navy) !important;
    font-size: clamp(27px, 2.5vw, 39px) !important;
    font-weight: 850 !important;
    letter-spacing: -.035em;
    line-height: 1.14;
}

.tw-marketplace-page .feature_header span::after,
.tw-sellers-page h4::after,
.tw-favourite-stores-page h2::after,
.tw-customer-wishlist-page .headerTitle::after {
    display: block;
    width: 58px;
    height: 4px;
    margin: 11px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--tw-mp-blue), #5bb7ff);
    content: "";
}

.tw-sellers-page h4::after,
.tw-marketplace-page .feature_header span::after {
    margin-left: 0;
}

[dir="rtl"] .tw-sellers-page h4::after,
[dir="rtl"] .tw-marketplace-page .feature_header span::after {
    margin-right: 0;
    margin-left: auto;
}

.tw-marketplace-page .form-control,
.tw-marketplace-page .custom-select,
.tw-marketplace-page .input-group-text {
    min-height: 48px;
    border: 1px solid #d8e0ec !important;
    border-radius: 13px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.tw-marketplace-page .form-control:focus,
.tw-marketplace-page .custom-select:focus {
    border-color: rgba(0, 7, 163, .5) !important;
    box-shadow: 0 0 0 4px rgba(0, 7, 163, .075) !important;
}

.tw-marketplace-page .input-group .form-control {
    border-radius: 13px 0 0 13px !important;
}

.tw-marketplace-page .input-group-append .input-group-text,
.tw-marketplace-page .input-group-append .btn {
    min-width: 48px;
    border-radius: 0 13px 13px 0 !important;
}

.tw-marketplace-page .btn,
.tw-marketplace-page button {
    border-radius: 12px !important;
    font-weight: 750;
}

.tw-marketplace-page .btn-primary,
.tw-marketplace-page .btn--primary,
.tw-marketplace-page .finterBtn,
.tw-marketplace-page .bookNowBtn a,
.tw-marketplace-page .categoryBtn .btn {
    border-color: var(--tw-mp-blue) !important;
    color: #fff !important;
    background: linear-gradient(135deg, var(--tw-mp-blue), var(--tw-mp-blue-2)) !important;
    box-shadow: 0 10px 22px rgba(0, 7, 163, .17);
}

/* All sellers */
.tw-sellers-page > .row:first-child {
    align-items: center;
    margin: 0 0 24px !important;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tw-mp-line) !important;
}

.tw-sellers-page > .row:first-child form {
    margin: 0;
}

.tw-sellers-page .sellerCardDiv {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    min-height: 200px;
    margin: 0 !important;
}

.tw-sellers-page .sellerSectionPage {
    width: auto !important;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid var(--tw-mp-line);
    border-radius: var(--tw-mp-radius);
    background: #fff;
    box-shadow: var(--tw-mp-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tw-sellers-page .sellerSectionPage:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(16, 36, 72, .14);
}

.tw-sellers-page .sellerCard {
    min-height: 214px;
    padding: 14px !important;
    border: 0 !important;
    box-shadow: none !important;
    background: linear-gradient(180deg, #f8faff, #fff) !important;
}

.tw-sellers-page .sellerCard img {
    width: 100% !important;
    height: 184px !important;
    border-radius: 15px;
    object-fit: cover;
}

.tw-sellers-page .SellerTextDiv {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px 12px;
    background: #fff;
}

.tw-sellers-page .sellerText {
    margin: 0 !important;
    color: var(--tw-mp-navy) !important;
    font-size: 14px !important;
    line-height: 1.55;
}

/* Favourite stores */
.tw-favourite-stores-page > .row {
    row-gap: 22px;
}

.tw-favourite-stores-page .card {
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: var(--tw-mp-radius) !important;
    background: #fff;
    box-shadow: var(--tw-mp-shadow) !important;
    transition: transform .2s ease, box-shadow .2s ease;
}

.tw-favourite-stores-page .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(16, 36, 72, .14) !important;
}

.tw-favourite-stores-page .card img {
    height: 205px !important;
    width: 100%;
    object-fit: cover;
}

.tw-favourite-stores-page .card-body {
    padding: 19px 20px 14px !important;
}

.tw-favourite-stores-page .card-title {
    margin-bottom: 8px;
    color: var(--tw-mp-navy);
    font-size: 18px;
    font-weight: 820;
}

.tw-favourite-stores-page .card-text {
    color: var(--tw-mp-muted);
    line-height: 1.65;
}

.tw-favourite-stores-page .card-footer {
    padding: 0 20px 20px;
    border: 0;
    background: #fff;
}

.tw-favourite-stores-page .redBtn {
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #f0ccd2 !important;
    color: var(--tw-mp-danger) !important;
    background: #fff3f5 !important;
}

/* Brands and service categories */
.tw-brands-page form {
    align-items: center;
    margin: 0 0 24px !important;
    padding: 18px;
    border: 1px solid var(--tw-mp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(21, 40, 75, .07);
}

.tw-brands-page .brandCardRow,
.tw-service-category-page .brandCardRow {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin: 0 !important;
}

.tw-brands-page .brandcard,
.tw-service-category-page .brandcard {
    width: auto !important;
    min-height: 176px;
    margin: 0 !important;
    padding: 18px;
    border: 1px solid var(--tw-mp-line);
    border-radius: 18px;
    text-align: center;
    background: #fff;
    box-shadow: 0 13px 34px rgba(20, 39, 74, .075);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tw-brands-page .brandcard:hover,
.tw-service-category-page .brandcard:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 7, 163, .24);
    box-shadow: 0 20px 44px rgba(20, 39, 74, .12);
}

.tw-brands-page .brandcard a,
.tw-service-category-page .brandcard a {
    display: flex;
    min-height: 116px;
    align-items: center;
    justify-content: center;
}

.tw-brands-page .brandcard img,
.tw-service-category-page .brandcard img {
    width: 100% !important;
    height: 110px !important;
    object-fit: contain !important;
}

.tw-service-category-page .brandcard p {
    margin: 12px 0 0;
    color: var(--tw-mp-navy);
    font-size: 14px;
    font-weight: 800;
}

/* Store page */
.tw-shop-page-modern > .row {
    row-gap: 18px;
}

.tw-shop-page-modern .__shop-page-banner {
    width: 100% !important;
    height: clamp(230px, 29vw, 390px) !important;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--tw-mp-shadow);
}

.tw-shop-page-modern .seller-details {
    margin: 0 !important;
    padding: 18px 20px;
    border: 1px solid var(--tw-mp-line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--tw-mp-shadow);
}

.tw-shop-page-modern .seller-details img.__inline-68 {
    width: 84px !important;
    height: 84px !important;
    padding: 5px;
    border: 1px solid #e0e7f1;
    border-radius: 18px;
    object-fit: cover;
    background: #fff;
}

.tw-shop-page-modern .seller-details .font-weight-bold {
    color: var(--tw-mp-navy);
    font-weight: 820 !important;
}

.tw-shop-page-modern .seller-details .btn {
    min-height: 43px;
    padding: 10px 15px;
}

.tw-shop-page-modern .shopCategory,
.tw-shop-page-modern .product-div {
    margin-top: 4px;
}

.tw-shop-page-modern .shopCategory > div,
.tw-shop-page-modern .widget {
    overflow: hidden;
    border: 1px solid var(--tw-mp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 13px 34px rgba(20, 39, 74, .07);
}

.tw-shop-page-modern .widget-title {
    display: block !important;
    margin: 0 !important;
    padding: 17px 18px 10px !important;
    color: var(--tw-mp-navy);
}

.tw-shop-page-modern .shopCategoryList {
    padding: 0 10px 12px;
}

.tw-shop-page-modern .shopCategoryList .card {
    margin: 7px 0;
    border: 0 !important;
    border-radius: 12px !important;
    background: #f7f9fd !important;
}

.tw-shop-page-modern .shopCategoryList .card-header {
    min-height: 44px;
    align-items: center;
    border: 0 !important;
    background: transparent !important;
}

.tw-shop-page-modern .searchInputCategory {
    margin-bottom: 16px;
}

.tw-shop-page-modern .product-div {
    padding-left: 18px;
}

/* Service listing */
.tw-service-page-hero {
    min-height: 150px !important;
    margin-bottom: 0 !important;
    background:
        radial-gradient(circle at 75% 20%, rgba(255,255,255,.28), transparent 22%),
        linear-gradient(135deg, #0007a3, #1674dc) !important;
}

.tw-service-page-hero span {
    color: #fff !important;
    font-size: clamp(26px, 2.8vw, 40px) !important;
    font-weight: 850 !important;
    letter-spacing: -.035em;
}

.tw-service-list-page > .row > section > .d-flex {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 26px 0 !important;
}

.tw-service-list-page > .row > section > .d-flex > .filter-show-btn {
    display: none;
}

.tw-service-list-page > .row > section > .d-flex > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tw-service-list-page .product-single-hover {
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--tw-mp-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: var(--tw-mp-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.tw-service-list-page .product-single-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 54px rgba(16, 36, 72, .14);
}

.tw-service-list-page .inline_product {
    min-height: 225px;
    border-radius: 0 !important;
    background: #f5f8fd !important;
}

.tw-service-list-page .productImgDiv,
.tw-service-list-page .productImgDiv img {
    width: 100%;
    height: 225px;
}

.tw-service-list-page .productImgDiv img {
    object-fit: cover;
}

.tw-service-list-page .single-product-details {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    padding: 17px !important;
}

.tw-service-list-page .productHead a {
    color: var(--tw-mp-navy) !important;
    font-size: 16px;
    font-weight: 820;
}

.tw-service-list-page .star-rating {
    margin-top: 7px;
}

.tw-service-list-page .product-price {
    margin-top: 12px;
}

.tw-service-list-page .cardMainPrice {
    color: var(--tw-mp-blue);
    font-size: 19px;
    font-weight: 850;
}

.tw-service-list-page .BookSectionDiv,
.tw-service-list-page .categoryBtn {
    margin-top: auto;
    padding-top: 13px;
}

.tw-service-list-page .bookNowBtn a,
.tw-service-list-page .categoryBtn .btn {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* Service detail */
.tw-service-detail-page {
    padding-top: 30px !important;
}

.tw-service-detail-page > .row:first-child {
    align-items: flex-start;
    padding: 24px;
    border: 1px solid var(--tw-mp-line);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--tw-mp-shadow);
}

.tw-service-detail-page .cz-product-gallery {
    gap: 14px;
}

.tw-service-detail-page .cz-preview {
    overflow: hidden;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: 20px;
    background: #f7f9fd;
}

.tw-service-detail-page .cz-preview-item img {
    min-height: 390px;
    max-height: 520px !important;
    object-fit: contain;
    background: #fff;
}

.tw-service-detail-page .cz-thumblist {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.tw-service-detail-page .cz-thumblist-item {
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: 12px !important;
}

.tw-service-detail-page .BookContentSection,
.tw-service-detail-page .categorySectionDiv,
.tw-service-detail-page .profileInputDiv {
    border: 0 !important;
    border-radius: 18px !important;
    background: #fff !important;
}

.tw-service-detail-page .categoryHead,
.tw-service-detail-page .categoryHeading,
.tw-service-detail-page .productcardHead,
.tw-service-detail-page .productNameDiv {
    color: var(--tw-mp-navy) !important;
    font-weight: 850 !important;
}

.tw-service-detail-page .categoryName,
.tw-service-detail-page .productNameDiv {
    font-size: clamp(24px, 2.3vw, 35px) !important;
    letter-spacing: -.03em;
}

.tw-service-detail-page .categoryPrice,
.tw-service-detail-page .categoryPriceSpan {
    color: var(--tw-mp-blue) !important;
    font-size: 24px !important;
    font-weight: 850 !important;
}

.tw-service-detail-page .form-control {
    min-height: 47px;
}

.tw-service-detail-page .categorySectionButton,
.tw-service-detail-page .BookSectionDivBtn,
.tw-service-detail-page .btn--primary {
    min-height: 48px;
    padding: 11px 18px;
}

.tw-service-detail-page .nav-tabs {
    gap: 8px;
    margin-top: 30px;
    padding: 7px;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: 15px;
    background: #f7f9fd;
}

.tw-service-detail-page .nav-tabs .nav-link {
    border: 0 !important;
    border-radius: 10px !important;
    color: var(--tw-mp-muted);
    font-weight: 750;
}

.tw-service-detail-page .nav-tabs .nav-link.active {
    color: #fff !important;
    background: var(--tw-mp-blue) !important;
}

.tw-service-detail-page .tab-content,
.tw-service-detail-page .reviewTableDiv {
    margin-top: 15px;
    padding: 20px;
    border: 1px solid var(--tw-mp-line);
    border-radius: 18px;
    background: #fff;
}

/* Customer product wishlist */
.tw-customer-wishlist-page {
    padding-top: 28px !important;
}

.tw-customer-wishlist-page #set-wish-list {
    padding-left: 20px;
}

.tw-wishlist-item-card {
    overflow: hidden;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: 18px !important;
    background: #fff;
    box-shadow: 0 13px 34px rgba(20, 39, 74, .075) !important;
}

.tw-wishlist-item-card > .product > .card {
    border: 0 !important;
    box-shadow: none !important;
}

.tw-wishlist-item-card .wishlist_product_img {
    min-height: 155px;
    padding: 12px;
    background: #f7f9fd;
}

.tw-wishlist-item-card .wishlist_product_img img {
    width: 100%;
    height: 150px;
    object-fit: contain;
}

.tw-wishlist-item-card .wishlist_product_desc {
    position: relative;
    padding: 22px 54px 22px 22px !important;
}

.tw-wishlist-item-card .titleEdit a {
    color: var(--tw-mp-navy) !important;
    font-size: 17px;
    font-weight: 820;
}

.tw-wishlist-item-card .sellerName {
    display: block;
    margin: 7px 0;
    color: var(--tw-mp-muted);
}

.tw-wishlist-item-card .amount {
    color: var(--tw-mp-blue);
    font-size: 18px;
    font-weight: 850;
}

.tw-wishlist-item-card .wishlist_product_icon {
    top: 15px !important;
    right: 15px !important;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #f0ccd2;
    border-radius: 50%;
    background: #fff3f5;
}

.tw-wishlist-pagination {
    display: flex;
    justify-content: center;
    padding-top: 16px !important;
    background: transparent !important;
}

/* Pagination shared */
.tw-marketplace-page .pagination {
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
}

.tw-marketplace-page .page-link {
    min-width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--tw-mp-line) !important;
    border-radius: 10px !important;
    color: var(--tw-mp-navy) !important;
    background: #fff;
}

.tw-marketplace-page .page-item.active .page-link {
    border-color: var(--tw-mp-blue) !important;
    color: #fff !important;
    background: var(--tw-mp-blue) !important;
}

@media (max-width: 1199.98px) {
    .tw-sellers-page .sellerCardDiv,
    .tw-service-list-page > .row > section > .d-flex {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tw-brands-page .brandCardRow,
    .tw-service-category-page .brandCardRow {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .tw-sellers-page .sellerCardDiv,
    .tw-service-list-page > .row > section > .d-flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .tw-brands-page .brandCardRow,
    .tw-service-category-page .brandCardRow {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .tw-shop-page-modern .product-div {
        padding-left: 15px;
    }
    .tw-customer-wishlist-page #set-wish-list {
        padding-left: 15px;
    }
}

@media (max-width: 767.98px) {
    .tw-marketplace-page {
        padding-top: 20px !important;
        padding-bottom: 42px !important;
    }
    .tw-sellers-page > .row:first-child {
        gap: 12px;
    }
    .tw-sellers-page .sellerCardDiv,
    .tw-service-list-page > .row > section > .d-flex {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
    .tw-sellers-page .sellerCard {
        min-height: 164px;
        padding: 9px !important;
    }
    .tw-sellers-page .sellerCard img {
        height: 145px !important;
    }
    .tw-brands-page .brandCardRow,
    .tw-service-category-page .brandCardRow {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 13px;
    }
    .tw-brands-page .brandcard,
    .tw-service-category-page .brandcard {
        min-height: 145px;
        padding: 13px;
    }
    .tw-brands-page .brandcard a,
    .tw-service-category-page .brandcard a {
        min-height: 88px;
    }
    .tw-brands-page .brandcard img,
    .tw-service-category-page .brandcard img {
        height: 86px !important;
    }
    .tw-shop-page-modern .__shop-page-banner {
        height: 210px !important;
        border-radius: 17px;
    }
    .tw-shop-page-modern .seller-details {
        padding: 14px;
    }
    .tw-service-page-hero {
        min-height: 118px !important;
    }
    .tw-service-list-page .inline_product,
    .tw-service-list-page .productImgDiv,
    .tw-service-list-page .productImgDiv img {
        height: 170px;
        min-height: 170px;
    }
    .tw-service-list-page .single-product-details {
        min-height: 178px;
        padding: 13px !important;
    }
    .tw-service-detail-page > .row:first-child {
        padding: 14px;
        border-radius: 18px;
    }
    .tw-service-detail-page .cz-preview-item img {
        min-height: 285px;
    }
    .tw-wishlist-item-card .wishlist_product_img,
    .tw-wishlist-item-card .wishlist_product_img img {
        height: 190px;
        min-height: 190px;
    }
}

@media (max-width: 479.98px) {
    .tw-sellers-page .sellerCardDiv,
    .tw-service-list-page > .row > section > .d-flex {
        grid-template-columns: 1fr;
    }
    .tw-favourite-stores-page > .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .tw-marketplace-page .feature_header span,
    .tw-sellers-page h4,
    .tw-favourite-stores-page h2,
    .tw-customer-wishlist-page .headerTitle {
        font-size: 26px !important;
    }
}

/* Pack 5A: one shared modern header for Services pages */
.tw-service-heading {
    width: min(1460px, calc(100% - 40px));
    margin: 24px auto 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--tw-mp-line);
}
.tw-service-heading--inside { width: 100%; margin-top: 0; margin-bottom: 24px; }
.tw-service-heading__breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 9px;
    margin-bottom: 12px; color: var(--tw-mp-muted); font-size: 13px;
}
.tw-service-heading__breadcrumb a { color: var(--tw-mp-blue); font-weight: 700; }
.tw-service-heading__breadcrumb i { color: #a5afc0; font-size: 10px; }
.tw-service-heading__title span {
    display: block; margin-bottom: 5px; color: var(--tw-mp-blue);
    font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase;
}
.tw-service-heading__title h1 {
    margin: 0; color: var(--tw-mp-navy); font-size: clamp(28px, 3vw, 44px);
    font-weight: 880; letter-spacing: -.04em; line-height: 1.08;
}
.tw-service-page-hero { display: none !important; }
@media (max-width: 767px) {
    .tw-service-heading { width: min(100% - 24px, 1460px); margin-top: 16px; padding-bottom: 14px; }
    .tw-service-heading__title h1 { font-size: 28px; }
}
