@media (max-width: 1024px) {
    .header__top-inner {
        gap: 10px;
    }
    .header__logo-text {
        font-size: 1.15rem;
    }
    .header__actions {
        width: auto;
    }
    .header__search {
        max-width: 280px;
    }
    .header__hamburger {
        display: none !important;
    }
    .mobile-only {
        display: none !important;
    
    }
    .header__nav-link--plain {
        padding: 0px 10px;
        font-size: 0.8rem;
    }
    .header__nav-link--pill {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
    .header__nav-phone {
        font-size: 0.78rem;
        overflow: hidden;
        width: 20px;
    }
/*    .hero-slider {
        height: 420px;*/
    /*}*/
    .hero__title {
        font-size: 1.65rem;
    }
    .hero__content {
        max-width: 400px;
    }
    .hero__desc {
        font-size: 0.86rem;
        max-width: 340px;
    }
    .hero-slider__arrow {
        width: 40px;
        height: 40px;
        font-size: 0.85rem;
    }
    .hero-slider__arrow--prev {
        left: 14px;
    }
    .hero-slider__arrow--next {
        right: 14px;
    }
    .btn--hero-cta, .btn--hero-outline, .btn--hero-outline-white {
        padding: 10px 22px;
        font-size: 0.84rem;
    }
    .section {
        padding: 44px 0px;
    }
    .cat-card {
        flex: 0 0 calc(23% - 15px);
    }
    .prod-card {
        flex: 0 0 calc(33% - 10px);
        min-width: 200px;
    }
    #products .prod-card {
        flex: 0 0 calc(50% - 10px);
    }
    #products {
        gap: 10px;
    }
    .prod-card__img-wrap img {
        height: 170px;
    }
    .bulk-banner__grid {
        grid-template-columns: 1fr 260px;
    }
    .bulk-banner__main img {
        height: 250px;
    }
    .best-selling__layout {
        grid-template-columns: 240px 1fr;
        gap: 16px;
    }
    .bs-feat-card img {
        height: 220px;
    }
    .bs-feat-card__body {
        padding: 12px;
    }
    .best-selling__grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
/*    .bs-grid-card img {
        height: 130px;
    }*/
    .bs-grid-card__body {
        padding: 10px;
    }
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
    .footer__brand {
        grid-column-start: 1;
        grid-column-end: -1;
    }
}
@media (max-width: 950px) {
    .mobile-only {
display: flex !important;
}
    .header__search {
        display: none;
    }
    .header__icon-btn:nth-child(1), .header__icon-btn:nth-child(2), .header__icon-btn:nth-child(3) {
    }
    .header__nav {
        display: none;
    }
    .header__mobile-search {
        display: block;
        background: rgb(255, 255, 255);
        padding: 8px 0px;
        border-bottom: 1px solid var(--border);
    }
    .header__mobile-search .container {
        display: flex;
        min-width: 0px;
        gap: 0px;
        margin: 0px 6px;
        width: auto;
    }
    .header__mobile-search input {
        flex: 1 1 0%;
        border-right: medium;
        border-radius: 50px 0px 0px 50px !important;
        padding: 9px 16px;
        font-size: 16px;
        min-width: 0px;
        width: 0px;
        outline: medium;
    }
    .header__mobile-search input::placeholder {
        color: rgb(170, 170, 170);
    }
    .header__mobile-search button {
        background: var(--green);
        color: rgb(255, 255, 255);
        padding: 0px 16px;
        border-radius: 0px 50px 50px 0px;
        font-size: 0.875rem;
        transition: background 0.2s;
    }

}
@media (max-width: 767px) {
    .header__logo {
        width: 160px;
    }
    .header__hamburger.mobile-only {
        display: flex !important;
    }
    .mobile-only {
        display: flex !important;
    }
    .header__actions a {
        display: none;
    }
    .header__top-inner {
        height: 54px;
        padding: 0px 12px;
        gap: 4px;
    }
    .header__logo-icon {
        width: 32px;
        height: 32px;
    }
    .header__logo-text {
        font-size: 1.05rem;
    }
/*    .hero-slider {
        height: 360px;
    }*/
    .hero__content {
        max-width: 240px;
        padding: 20px 0px;
    }
    .hero__title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    .hero__desc {
        font-size: 0.82rem;
        max-width: 220px;
        margin-bottom: 20px;
    }
    .hero__tag {
        font-size: 0.68rem;
        padding: 4px 12px;
        margin-bottom: 10px;
    }
    .btn--hero-cta {
        padding: 9px 20px;
        font-size: 0.82rem;
    }
    .btn--hero-outline, .btn--hero-outline-white {
        padding: 9px 18px;
        font-size: 0.82rem;
    }
    .hero__cta-group {
        gap: 10px;
    }
    .hero-slider__counter {
        display: none;
    }
    .hero-slider__arrow {
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }
    .hero-slider__arrow--prev {
        left: 10px;
    }
    .hero-slider__arrow--next {
        right: 10px;
    }
    .hero-slider__dots {
        bottom: 14px;
    }
    .hero-slider__dot {
        width: 8px;
        height: 8px;
    }
    .hero-slider__dot--active {
        width: 22px;
    }
    
    .section {
        padding: 12px;
    }
    .section__title {
        font-size: 1.15rem;
        padding-top: 6px;
    }
    .slider-track-wrap {
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .slider-track-wrap::-webkit-scrollbar {
        display: none;
    }
    .cat-card__name {
        font-size: 0.8rem;
    }
    .prod-card {
        flex: 0 0 195px;
        min-width: 195px;
    }
    .prod-card__img-wrap img {
        height: 155px;
    }
    .bulk-banner {
        padding: 0px 12px 12px;
    }
    .bulk-banner__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .bulk-banner__main img {
        height: 190px;
    }
    .bulk-banner__aside {
        flex-direction: row;
        gap: 12px;
    }
    .bulk-banner__green-card {
        padding: 18px 14px;
    }
    .bulk-banner__green-card h3 {
        font-size: 0.9rem;
    }
    .bulk-banner__img-card img {
        min-height: 100%;
    }
    .featured-brands__rice-img img {
        height: 150px;
    }
    .featured-brands__bar {
        padding: 22px 0px 18px;
    }
    .featured-brands__title {
        font-size: 1rem;
    }
    .featured-brands__logos {
        gap: 8px;
    }
    .brand-logo-box {
        padding: 8px 14px;
        min-width: 86px;
    }
    .brand-logo-box span {
        font-size: 0.8rem;
    }
    .best-selling__layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .bs-feat-card {
        flex-direction: row;
        align-items: stretch;
    }
    .bs-feat-card img {
        width: 140px;
        height: auto;
        min-height: 180px;
        flex-shrink: 0;
        object-fit: cover;
    }
    .bs-feat-card__body {
        padding: 14px;
        text-align: left;
        flex: 1 1 0%;
    }
    .best-selling__grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
/*    .bs-grid-card img {
        height: 110px;
    }*/
    .bs-grid-card__body {
        padding: 10px;
    }
    .product-controls {
        gap: 8px;
    }
    .add-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }
    .agri-process {
        padding: 40px 0px;
    }
    .agri-process__title {
        font-size: 1.2rem;
    }
    .agri-process__steps {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 24px;
    }
    .agri-step {
        padding: 18px 12px;
    }
    .agri-step__icon {
        width: 120px;
        height: 120px;
        font-size: 2rem;
    }
    .agri-step h4 {
        font-size: 0.86rem;
    }
    .agri-step p {
        font-size: 0.76rem;
    }
    .footer {
        padding: 32px 0px 0px;
    }
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-bottom: 24px;
    }
    .footer__brand {
        grid-column-start: auto;
        grid-column-end: auto;
        padding: 0px 12px;
    }
    .footer__newsletter, .footer__links {
        padding: 0px 12px;
    }
}
@media screen and (max-width: 598px) {
    .city_popup {
        width: 100%;
        top: 0px;
        padding: 0px;
        height: 100%;
    }
    .signin_popup, .change_pwd_popup {
        width: 100%;
        top: 0px;
        padding: 0px;
        height: 100%;
    }
}
@media (max-width: 480px) {
    .header__logo {
        width: 120px;
    }
/*    .hero-slider {
        height: 300px;
    }*/
    .hero__title {
        font-size: 1.12rem;
    }
    .hero__content {
        max-width: 190px;
        padding: 16px 0px;
    }
    .hero__desc {
        font-size: 0.78rem;
        max-width: 180px;
        margin-bottom: 16px;
    }
    .hero__cta-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .btn--hero-cta, .btn--hero-outline, .btn--hero-outline-white {
        padding: 8px 18px;
        font-size: 0.78rem;
    }
    .cat-card {
        flex: 0 0 calc(30% - 15px);
    }
    .prod-card {
        flex: 0 0 178px;
        min-width: 178px;
    }
    .bs-feat-card {
        flex-direction: column;
    }
    .bs-feat-card img {
        width: 100%;
        height: 180px;
        min-height: unset;
    }
    .bs-feat-card__body {
        text-align: center;
    }
    .best-selling__grid {
        grid-template-columns: 1fr;
    }
    .bs-grid-card {
        flex-direction: row;
    }
    .bs-grid-card img {
        width: 110px;
        height: auto;
        min-height: 100px;
        flex-shrink: 0;
    }
    .agri-process__steps {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .agri-step {
        width: 100%;
    }
    .sidenav {
        width: 262px;
    }
    .bulk-banner__aside {
        flex-direction: column;
    }
}
@media (max-width: 360px) {
/*    .hero-slider {
        height: 260px;
    }*/
    .hero__title {
        font-size: 1.05rem;
    }
    .hero__content {
        max-width: 180px;
    }
    .cat-card {
        flex: 0 0 115px;
    }
    .prod-card {
        flex: 0 0 162px;
        min-width: 162px;
    }
    .sidenav {
        width: 240px;
    }
}
@supports (padding: max(0px)) {
    .header__top {
        padding-left: env(safe-area-inset-left);
        padding-right: env(safe-area-inset-right);
    }
    .sidenav {
        padding-bottom: env(safe-area-inset-bottom);
        padding-left: env(safe-area-inset-left);
    }
    .footer__bottom {
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
}
@media (hover: none) and (pointer: coarse) {
    .cat-card:hover, .prod-card:hover, .bs-grid-card:hover, .agri-step:hover {
        box-shadow: none;
    }
    .header__nav-item--has-drop > .header__dropdown {
        display: none;
    }
}
