/**
 * GO2HOME — compact typography, images, and responsive layout
 * Images use contain + aspect-ratio so nothing is cropped.
 */

/* ---- Base typography ---- */
body {
    font-size: 13px;
    line-height: 1.45;
}

h1, .h1 { font-size: 1.55rem; }
h2, .h2 { font-size: 1.35rem; }
h3, .h3 { font-size: 1.15rem; }
h4, .h4 { font-size: 1rem; }
h5, .h5 { font-size: 0.92rem; }
h6, .h6 { font-size: 0.85rem; }

.form-control,
.btn,
.input-group-sm > .form-control {
    font-size: 12px;
}

.btn-lg {
    font-size: 14px;
    padding: 10px 14px;
}

/* ---- Shared image-fit pattern ---- */
.list-card-image,
.list-card-image > a,
.list-card-image > div {
    display: block;
    width: 100%;
}

.list-card-image {
    aspect-ratio: 4 / 3;
    background: #f6f7f9;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.list-card-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.list-card-image .item-img,
.list-card-image .img-fluid,
.list-card-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    border-radius: 8px;
}

/* Override fixed heights from style.css */
.pro-list .list-card-image .img-fluid,
.most_popular .list-card-image .img-fluid,
.res-search-list .list-card-image .img-fluid,
.res-search-list-1 .list-card-image .img-fluid,
.multi-vendore-content #most_sale1 .list-card .list-card-image img,
.product-list .list-card-image img,
.multi-vendore-content .pro-list .list-card-image .img-fluid,
.list-card.d-flex .list-card-image,
.list-card.d-flex .list-card-image .item-img {
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    object-fit: contain !important;
}

.list-card.d-flex .list-card-image {
    width: 110px;
    min-width: 110px;
    max-width: 110px;
    aspect-ratio: 1 / 1;
    height: auto;
}

/* ---- Header ---- */
.header-main-inner {
    min-height: 48px;
    gap: 8px 10px;
}

.header-brand-col {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.page-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    gap: 4px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    background: #fff;
    color: #212529;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.page-back-btn:hover,
.page-back-btn:focus {
    background: #f8f9fa;
    border-color: #adb5bd;
    outline: none;
    color: #212529;
}

.page-back-btn i {
    font-size: 17px;
    line-height: 1;
}

.page-back-btn .page-back-label {
    font-size: 13px;
    font-weight: 500;
}

@media (min-width: 768px) {
    .page-back-btn {
        width: auto;
        height: 34px;
        padding: 0 12px 0 10px;
        border-radius: 17px;
    }
}

.auth-page-back {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 1050;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[dir="rtl"] .auth-page-back {
    left: auto;
    right: 14px;
}

[dir="rtl"] .page-back-btn i.feather-arrow-left {
    transform: scaleX(-1);
}

.header-brand-col .brand-wrap img,
.header-brand-col #logo_web {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.header-main .pac-target-input#user_locationnew {
    font-size: 12px;
    height: 28px;
}

.head-search .dropdown {
    padding: 4px 8px;
    border-radius: 8px;
}

.header-main .header-nav-row {
    gap: 6px 10px;
}

.header-main .header-nav-row .widget-header .icon span,
.header-right .text-dark,
.header-main .takeaway-btn {
    font-size: 12px;
}

.header-main .takeaway-btn {
    padding: 5px 8px;
}

.head-loc i.feather-map-pin {
    font-size: 14px !important;
}

.header-main .header-nav-row .offer-link img {
    object-fit: contain;
}

/* ---- Section titles ---- */
.title h5,
.siddhi-favorites .container > h2,
.contac-fotm-wrap .form-title h4 {
    font-size: 16px;
    margin-bottom: 8px !important;
    letter-spacing: 0.3px;
}

.title .see-all,
.ecommerce-content .title .see-all {
    font-size: 12px;
}

/* ---- Banners — full image visible, no crop ---- */
.ecommerce-banner .banner-img,
.middle-banners .banner-img {
    background: #f6f7f9;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ecommerce-banner.multivendor-banner .banner-img img,
.ecommerce-banner .banner-img img,
.middle-banners .banner-img img {
    width: 100% !important;
    height: auto !important;
    max-height: 260px !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block;
}

.ecommerce-banner .slick-slide .banner-text h3 {
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.ecommerce-banner .slick-slide .banner-text p {
    font-size: 14px;
    line-height: 1.35;
    margin-bottom: 12px;
}

/* ---- Category tiles ---- */
.top-cat-list .cat-link span,
.multi-vendore-content.ecommerce-content .top-cat-list .cat-link span {
    padding: 10px 8px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.top-cat-list .cat-link .cat-img,
.top-cat-list .cat-link span {
    background: #f6f7f9;
}

.top-cat-list .cat-link img,
.multi-vendore-content.ecommerce-content .top-cat-list .cat-link span img,
.top-cat-list .cat-link span img {
    width: 52px !important;
    height: 52px !important;
    max-width: 52px !important;
    max-height: 52px !important;
    margin: 0 auto !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px;
}

.top-cat-list .cat-link h4 {
    font-size: 12px;
    line-height: 1.25;
    margin-top: 6px !important;
}

.col-md-2.top-cat-list,
.col-md-2.brand-list {
    margin-bottom: 10px;
}

.brand-list .list-card-image {
    aspect-ratio: 1 / 1;
}

/* ---- Responsive grid: 5 → 4 → 3 → 2 items per row ---- */
.ecommerce-content .top-categories .append_categories .row,
.ecommerce-content .brands > .row,
.multi-vendore-content .row,
.siddhi-popular .container > .row,
.siddhi-favorites .row,
.res-search-list-1,
.top_categories,
#most_popular_item,
#most_sale1,
#all_stores,
#popular_store,
#new_arrivals,
#best_sellers {
    margin-left: -8px;
    margin-right: -8px;
}

.res-search-list-1,
.top_categories,
#most_popular_item,
#most_sale1,
#all_stores,
#popular_store,
#new_arrivals,
#best_sellers {
    display: flex;
    flex-wrap: wrap;
}

.row > .col-md-3.pro-list,
.row > .col-md-3.product-list,
.row > .col-md-3.pb-3,
.row > .col-md-4.product-list,
.row > .col-md-4.pb-3.product-list,
.row > .col-md-4.mb-3.product-list,
.res-search-list-1 > .col-md-3,
.res-search-list-1 > .col-md-3.pb-3,
.top_categories > .col-md-2.top-cat-list,
#most_popular_item > .col-md-3.product-list,
#most_popular_item > .col-md-3.pro-list,
#most_sale1 > .col-md-3,
.col-md-2.top-cat-list,
.col-md-2.brand-list,
.siddhi-favorites .col-md-4.mb-3 {
    padding-left: 8px;
    padding-right: 8px;
    margin-bottom: 14px;
}

@media (min-width: 1200px) {
    .row > .col-md-3.pro-list,
    .row > .col-md-3.product-list,
    .row > .col-md-3.pb-3,
    .row > .col-md-4.product-list,
    .row > .col-md-4.pb-3.product-list,
    .row > .col-md-4.mb-3.product-list,
    .res-search-list-1 > .col-md-3,
    .res-search-list-1 > .col-md-3.pb-3,
    .col-md-2.top-cat-list,
    .col-md-2.brand-list,
    .siddhi-favorites .col-md-4.mb-3 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .row > .col-md-3.pro-list,
    .row > .col-md-3.product-list,
    .row > .col-md-3.pb-3,
    .row > .col-md-4.product-list,
    .row > .col-md-4.pb-3.product-list,
    .row > .col-md-4.mb-3.product-list,
    .res-search-list-1 > .col-md-3,
    .res-search-list-1 > .col-md-3.pb-3,
    .col-md-2.top-cat-list,
    .col-md-2.brand-list,
    .siddhi-favorites .col-md-4.mb-3 {
        flex: 0 0 25% !important;
        max-width: 25% !important;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .row > .col-md-3.pro-list,
    .row > .col-md-3.product-list,
    .row > .col-md-3.pb-3,
    .row > .col-md-4.product-list,
    .row > .col-md-4.pb-3.product-list,
    .row > .col-md-4.mb-3.product-list,
    .res-search-list-1 > .col-md-3,
    .res-search-list-1 > .col-md-3.pb-3,
    .col-md-2.top-cat-list,
    .col-md-2.brand-list,
    .siddhi-favorites .col-md-4.mb-3 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
}

@media (max-width: 575px) {
    .row > .col-md-3.pro-list,
    .row > .col-md-3.product-list,
    .row > .col-md-3.pb-3,
    .row > .col-md-4.product-list,
    .row > .col-md-4.pb-3.product-list,
    .row > .col-md-4.mb-3.product-list,
    .res-search-list-1 > .col-md-3,
    .res-search-list-1 > .col-md-3.pb-3,
    .col-md-2.top-cat-list,
    .col-md-2.brand-list,
    .siddhi-favorites .col-md-4.mb-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ---- Product / store cards ---- */
.multi-vendore-content .pro-list .list-card,
.product-list .list-card {
    padding: 8px;
    border-radius: 8px;
}

.list-card a,
.list-card h6 {
    font-size: 13px;
    margin-bottom: 5px !important;
}

.list-card h6.popul-title {
    font-size: 13px;
}

.list-card .list-card-body p.text-gray {
    font-size: 11px !important;
    min-height: 26px;
    padding-left: 18px;
    -webkit-line-clamp: 2;
}

.list-card .list-card-body p.text-gray.address {
    font-size: 11px !important;
}

.list-card .list-card-body p.text-gray span.fa.fa-map-marker {
    font-size: 16px;
}

.list-card .member-plan .badge,
.list-card .star .badge {
    font-size: 10px;
    padding: 3px 5px;
}

.list-card .py-2,
.list-card .p-3 {
    padding: 0.45rem !important;
}

/* ---- Product card footer: stack price, rating, cart (no overlap) ---- */
.product-list .list-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-list .list-card > .py-2.position-relative,
.product-list .list-card > .py-2 {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 6px 4px !important;
    min-width: 0;
}

.product-list .list-card-body {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1 1 auto;
    padding: 4px 2px 6px !important;
    min-width: 0;
    min-height: 0;
}

.product-list .list-card-body .product-title,
.product-list .list-card-body .product-title a,
.product-list .list-card-body h6.popul-title,
.product-list .list-card-body h6.mb-1:not(.pro-price):not(.cat-title):not(.pro-cat) {
    font-size: 12px !important;
    line-height: 1.25 !important;
    margin-bottom: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.product-list .list-card-body .pro-cat,
.product-list .list-card-body .cat-title {
    font-size: 10px !important;
    line-height: 1.2;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
    order: 2;
}

.product-list .list-card-body .pro-price,
.product-list .list-card-body h6.pro-price,
.product-list .list-card-body span.pro-price {
    position: static !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    float: none !important;
    display: block;
    width: 100%;
    font-size: 12px !important;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 !important;
    padding: 0;
    white-space: normal;
    word-break: break-word;
    color: #222;
    order: 3;
}

.product-list .list-card-body .pro-price s {
    font-size: 10px;
    display: inline;
}

.product-list .list-card-body .star {
    position: static !important;
    margin-top: 0 !important;
    order: 4;
    width: 100%;
}

.product-list .list-card-body .star .badge {
    font-size: 9px;
    padding: 3px 5px;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    white-space: nowrap;
}

.product-list .list-card-body .star .badge i {
    font-size: 9px;
    margin-right: 2px;
}

.product-list .list-card-body .mt-2 {
    margin-top: 0 !important;
    order: 5;
    width: 100%;
}

.product-list .list-card-body .quick-add-to-cart,
.product-list .list-card-body .btn.btn-sm.btn-primary {
    width: 100%;
    max-width: 100%;
    font-size: 10px;
    padding: 5px 6px;
    line-height: 1.2;
    white-space: normal;
    word-break: break-word;
    display: block;
    border-radius: 6px;
}

.product-list .list-card-body .product-title,
.product-list .list-card-body h6.popul-title:first-child,
.product-list .list-card-body h6.mb-1:first-child {
    order: 1;
}

/* Home page uses h6 for price before star — ensure order */
.product-list .list-card-body > h6.pro-price {
    order: 3;
}

.vendor-page .list-card-image {
    aspect-ratio: 3 / 4;
}

/* ---- Stories ---- */
.restaurant_stories .stories.snapssenger.carousel .story > .item-link > .item-preview {
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.restaurant_stories .stories.snapssenger.carousel .story > .item-link,
.restaurant_stories .stories.snapssenger.carousel .story > .item-link > .item-preview {
    max-height: 160px;
    height: 160px;
    border-radius: 12px;
}

.restaurant_stories .stories.snapssenger.carousel .story > .item-link > .item-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

.restaurant_stories .stories.snapssenger.carousel .story > .item-link > .info {
    font-size: 12px;
    line-height: 1.2;
    bottom: 10px;
}

/* ---- Restaurant / vendor pages ---- */
.resturant-banner .restaurant-pic,
#restaurant-pic .restaurant-pic,
#restaurant-pic img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 10px;
    background: #f6f7f9;
}

.rest-basic-detail h2.h6 {
    font-size: 15px;
}

/* ---- Product detail ---- */
.rent-cardet-left .product-image img,
.product-detail-page .item-img,
.product-detail-page .list-card-image img {
    object-fit: contain !important;
    object-position: center !important;
}

.car-det-title h2 {
    font-size: 17px;
    line-height: 1.3;
}

.product-detail-page .car-det-title .rating.star .count {
    font-size: 13px;
}

.product-detail-page .count-number-input {
    height: 34px;
    width: 44px;
    font-size: 18px;
}

.more-from-store .store-product .product-content .store-image img {
    object-fit: contain !important;
    height: 80px;
    width: 100%;
}

/* ---- Search & orders ---- */
.order_img,
#order-items .photo img.order_img {
    max-width: 90px;
    max-height: 70px;
    width: auto;
    height: auto;
    object-fit: contain !important;
    background: #f6f7f9;
    border-radius: 6px;
}

#order-items .item-detail p.name {
    font-size: 14px;
}

#order-items .item-detail p {
    font-size: 12px;
}

.order-list tr th,
.order-list tr td {
    font-size: 12px;
    padding: 7px 2px;
}

/* ---- Section spacing ---- */
.ecommerce-content {
    padding-top: 24px;
}

.ecommerce-content > section {
    padding-bottom: 24px;
}

.ecommerce-content > section.top-categories {
    margin-top: 24px;
}

.slick-slide {
    padding: 5px;
}

.slick-slider {
    margin: 0 -5px;
}

/* ---- Footer ---- */
.footer-top .title {
    font-size: 14px;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.footer-top ul.list-unstyled li a {
    font-size: 13px;
}

.footer-info p {
    font-size: 13px;
    line-height: 1.6;
}

.footer-about .footer-social .btn {
    width: 34px;
    height: 34px;
    font-size: 16px;
}

.footer-about img {
    object-fit: contain;
    max-height: 60px;
}

/* ---- Container width on large screens ---- */
@media (min-width: 1400px) {
    .container {
        max-width: 1240px;
    }
}

/* ---- Tablet ---- */
@media (max-width: 1199px) {
    .list-card-image {
        aspect-ratio: 4 / 3;
    }

    .ecommerce-banner.multivendor-banner .banner-img img,
    .ecommerce-banner .banner-img img {
        max-height: 220px !important;
    }
}

@media (max-width: 991px) {
    body {
        font-size: 12.5px;
    }

    .title h5 {
        font-size: 15px;
    }

    .list-card-image {
        aspect-ratio: 1 / 1;
    }

    .ecommerce-banner.multivendor-banner .banner-img img {
        max-height: 190px !important;
    }

    .top-cat-list .cat-link span {
        padding: 8px 6px;
        min-height: 76px;
    }

    .top-cat-list .cat-link img {
        width: 44px !important;
        height: 44px !important;
        max-width: 44px !important;
        max-height: 44px !important;
    }

    .resturant-banner .restaurant-pic,
    #restaurant-pic img {
        max-height: 180px !important;
    }
}

/* ---- Mobile ---- */
@media (max-width: 767px) {
    body {
        font-size: 12px;
    }

    .header-brand-col #logo_web {
        max-height: 34px;
    }

    .header-main-inner {
        min-height: 44px;
    }

    .title h5 {
        font-size: 14px;
    }

    .list-card-image {
        aspect-ratio: 1 / 1;
    }

    .ecommerce-banner.multivendor-banner .banner-img img,
    .ecommerce-banner .banner-img img {
        max-height: 160px !important;
    }

    .middle-banners .banner-img img {
        max-height: 130px !important;
    }

    .top-cat-list .cat-link h4 {
        font-size: 10px;
    }

    .top-cat-list .cat-link img {
        width: 40px !important;
        height: 40px !important;
        max-width: 40px !important;
        max-height: 40px !important;
    }

    .list-card a,
    .list-card h6,
    .list-card h6.popul-title {
        font-size: 12px;
    }

    .ecommerce-content {
        padding-top: 16px;
    }

    .ecommerce-content > section {
        padding-bottom: 16px;
    }

    .restaurant_stories .stories.snapssenger.carousel .story > .item-link,
    .restaurant_stories .stories.snapssenger.carousel .story > .item-link > .item-preview {
        height: 130px;
        max-height: 130px;
    }
}

@media (max-width: 575px) {
    .list-card-image {
        aspect-ratio: 1 / 1;
    }

    .multi-vendore-content .pro-list .list-card {
        padding: 6px;
    }

    .list-card .list-card-body p.text-gray {
        font-size: 10px !important;
        min-height: 22px;
    }

    .ecommerce-banner .banner-img img {
        max-height: 140px !important;
    }
}

@media (max-width: 400px) {
    .header-main .header-nav-row a.widget-header .icon > span:not(.position-relative) {
        display: none;
    }

    .header-location-col {
        max-width: 110px;
        flex-basis: 100px;
    }
}
