:root {
    --btn-bgcolor: rgb(28, 97, 231);
    --btn-bgcolor-onhover: rgb(32, 90, 207);
    --color-white: white;
    --border-color: #80808059;
}

.flexrow {
    display: flex;
    flex-direction: row;
}

.pointer {
    cursor: pointer;
}

.grab {
    cursor: grab;
}

.grab:active {
    cursor: grabbing;
}

.underlinehover:hover {
    text-decoration: underline !important;
}

.width100 {
    width: 100% !important;
}

.width50 {
    width: 50% !important;
}

.heigth100 {
    height: 100% !important;
}

.list-style {
    list-style: none;
}

.margin0 {
    margin: 0 !important;
}

.white-space-nowrap {
    white-space: nowrap;
}

.border-radius-10 {
    border-radius: 10px;
}

.font-color {
    color: #0b0b0bc5 !important;
}

.default-cursor {
    cursor: default;
}

.cursor-not-allowed {
    cursor: not-allowed;
}

.heigth315px {
    height: 315px;
}

.border-top {
    border-top: solid 1px #80808059;
}

.border-bottom {
    border-bottom: solid 1px #80808059;
}

.margin-left-11px {
    margin-left: 11px;
}

.background-none {
    background: none !important;
}

.text-hover-effect:hover {
    color: #dc3545 !important;
    text-decoration: underline !important;
}

.border {
    border: solid 1px var(--border-color);
}

.border-top {
    border-top: solid 1px var(--border-color);
}
.border-bottom {
    border-bottom: solid 1px var(--border-color);
}
.border-left {
    border-left: solid 1px var(--border-color);
}
.bg-light-gray{
    background: #f8f9fa;
}
.vertical-align-middle{
    vertical-align: middle;
}
.card-h-430{
    height: 418px !important;
}
.btn-primary {
    color: #fff;
    background-color: #1c61e7;
    border-color: #1c61e7;
}
.btn-primary:hover {
    color: #fff;
    background-color: rgb(32, 90, 207);
}
.btn-close:focus {
    outline: 0;
    box-shadow: none;
    opacity: 1;
}
.mb-20px{
    margin-bottom: 20px;
}
.border-radius-5{
    border-radius: 5px !important;
}
@media (max-width:767px) {
    .fs-md-12{
        font-size: 12px;
    }
}

/* Modern home proportion tuning to match reference layout */
.modern-home .content-wrapper .mySwiper {
    height: clamp(220px, 28vw, 360px) !important;
}

.modern-home .content-wrapper .slide-img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    display: block;
}

.modern-home .content-wrapper .slide-img a {
    display: block;
    width: 100%;
    height: 100%;
}

.modern-home .content-wrapper .slide-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modern-home .content-wrapper .mySwiper.grab.border-radius-10 .swiper-slide {
    overflow: hidden;
}

.modern-home .swiperForCategories .swiper-slide {
    width: 150px !important;
}

.modern-home .categories-card {
    padding: 8px 0;
}

.modern-home .categories-image {
    height: 124px;
    padding: 8px;
}

.modern-home .categories-card-text {
    padding: 8px 6px 2px;
}

.modern-home .categories-card-text h4 {
    font-size: 16px;
    margin-bottom: 0;
}

.modern-home .brands-image {
    height: 72px;
    padding: 12px;
}

.modern-home .mySwiper3 .card-h-418 {
    width: 210px;
}

.modern-home .mySwiper3 .product-img-style3 {
    height: 170px;
}

.modern-home .product-banner-container {
    height: 410px;
}

.modern-home .product-image-1 {
    height: 170px;
}

.modern-home .card5 img {
    width: 92px !important;
    height: 92px !important;
}

.modern-home .card6-img {
    height: 180px;
    width: 190px;
}

@media (max-width: 991px) {
    .modern-home .content-wrapper .mySwiper {
        height: clamp(180px, 52vw, 260px) !important;
    }

    .modern-home .content-wrapper .slide-img img {
        object-fit: cover !important;
    }

    .modern-home .swiperForCategories .swiper-slide {
        width: 128px !important;
    }

    .modern-home .categories-image {
        height: 104px;
    }

    .modern-home .brands-image {
        height: 66px;
        padding: 10px;
    }

    .modern-home .categories-card-text h4 {
        font-size: 14px;
    }
}

@media (max-width: 767px) {
    .modern-home .content-wrapper .slide-img img {
        object-fit: contain !important;
        background: #fff;
    }
}

@media (max-width: 576px) {
    .modern-home .content-wrapper .mySwiper {
        height: clamp(170px, 58vw, 230px) !important;
    }

    .modern-home .content-wrapper .mySwiper .swiper-slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Product listing: keep all product cards same size */
.grid-card-container {
    display: flex;
}

.grid-card-container .grid-view-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.grid-card-container .grid-view-card > a {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grid-card-container .grid-view-card .img-box-h250 {
    height: 210px;
    overflow: hidden;
}

.grid-card-container .grid-view-card .img-box-h250 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.grid-card-container .grid-view-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grid-card-container .grid-view-card .card-title {
    min-height: 56px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grid-card-container .grid-view-card .offer_price {
    min-height: 48px;
}

.grid-card-container .grid-view-card .add_to_cart {
    margin-top: auto;
}

@media (max-width: 767px) {
    .grid-card-container .grid-view-card .img-box-h250 {
        height: 170px;
    }
}

/* Categories page modern tuning */
.categories-page .categorises-container {
    height: clamp(190px, 22vw, 260px);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(12, 18, 38, 0.14);
}

.categories-page .categorises-banner-img {
    border-radius: 14px;
}

.categories-page .categorises-banner-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.01);
    transition: transform 0.35s ease;
}

.categories-page .overlay {
    background: linear-gradient(
        180deg,
        rgba(8, 12, 24, 0.08) 15%,
        rgba(8, 12, 24, 0.28) 58%,
        rgba(8, 12, 24, 0.62) 100%
    );
}

.categories-page .category-body {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 16px;
    z-index: 2;
}

.categories-page .category-body h3 {
    margin: 0;
    font-size: clamp(24px, 2vw, 42px);
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
}

.categories-page .explore-btn {
    margin-top: 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.categories-page .categorises-container:hover .explore-btn {
    opacity: 1;
    transform: translateY(0);
}

.categories-page .categorises-container:hover .category-body h3 {
    top: 0;
}

.categories-page .categorises-container:hover .categorises-banner-img img {
    transform: scale(1.06);
}

@media (max-width: 767px) {
    .categories-page .category-body {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .categories-page .category-body h3 {
        font-size: 18px;
    }
}

/* Global responsive tuning (mobile/tablet) */
@media (max-width: 991px) {
    .container,
    .container-lg {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-filter-mobilescreen {
        position: sticky;
        top: 0;
        z-index: 30;
        background: #fff;
        border-radius: 10px;
    }

    .productlist-title-section {
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }

    .productlist-title-section .section-title {
        margin-bottom: 0;
        font-size: 34px;
    }

    .grid-card-container {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .grid-card-container .grid-view-card .card-body {
        padding: 10px;
    }

    .grid-card-container .grid-view-card .card-title {
        min-height: 44px;
        font-size: 18px;
    }

    .grid-card-container .grid-view-card .offer_price {
        min-height: 38px;
    }
}

@media (max-width: 767px) {
    .container,
    .container-lg {
        padding-left: 10px;
        padding-right: 10px;
    }

    .search-nav.content-wrapper .navbar {
        padding: 8px 10px;
    }

    .search-nav.content-wrapper .company-logo img {
        max-height: 42px;
        width: auto;
    }

    .search-nav.content-wrapper + .container-fluid .searchcontainer {
        margin: 8px 10px 0;
    }

    .grid-card-container .grid-view-card .img-box-h250 {
        height: 150px;
        padding: 6px;
    }

    .grid-card-container .grid-view-card .card-title {
        font-size: 16px;
        min-height: 40px;
    }

    .grid-card-container .grid-view-card .add_to_cart {
        font-size: 14px;
        padding: 6px 8px;
    }
}
