/* ============================================
   RESPONSIVE STYLES — Natural Options Kenya
   100% Mobile & Tablet Optimized — Zero Horizontal Overflow
   ============================================ */

/* Global Mobile Overflow Prevention */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

/* ---- Desktop Large (< 1400px) ---- */
@media (max-width: 1400px) {
    .no-hero__title {
        font-size: var(--fs-4xl);
    }
}

/* ---- Tablet Landscape (< 1200px) ---- */
@media (max-width: 1199px) {
    .no-nav__link {
        padding: 14px 10px;
        font-size: 13px;
    }

    .no-categories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .no-products__grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    .no-why-shop__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .no-footer__grid {
        grid-template-columns: 1.2fr 1fr 1fr;
    }
}

/* ---- Tablet Portrait (< 1024px) ---- */
@media (max-width: 1023px) {
    :root {
        --container-pad: 1.25rem;
    }

    .no-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    h1 { font-size: var(--fs-3xl); }
    h2 { font-size: var(--fs-2xl); }

    /* Announcement Bar */
    .no-announcement {
        padding: 7px 12px;
        font-size: 12px;
    }

    .no-announcement__right {
        display: none;
    }

    .no-announcement__inner {
        justify-content: center;
        text-align: center;
    }

    /* Header */
    .no-header__nav {
        display: none !important;
    }

    .no-header__hamburger {
        display: flex !important;
    }

    .no-header__action-text {
        display: none !important;
    }

    .no-header__cart-info {
        display: none !important;
    }

    .no-header__main-inner {
        min-height: 64px !important;
        padding: 0 16px !important;
        gap: 12px !important;
    }

    /* Scrolled Pill Navbar on Tablet */
    .no-header.is-scrolled {
        width: calc(100% - 32px) !important;
        top: 10px !important;
    }

    .no-header.is-scrolled .no-header__main-inner {
        min-height: 56px !important;
        padding: 0 16px !important;
    }

    /* Hero */
    .no-hero {
        min-height: 520px;
    }

    .no-hero__title {
        font-size: clamp(28px, 5vw, 40px);
    }

    .no-hero__text {
        font-size: 15px;
    }

    /* Categories */
    .no-categories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    /* Products */
    .no-products__grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }

    .no-product-card__image {
        height: 240px;
    }

    /* Brand Story */
    .no-brand-story__grid {
        gap: 32px;
    }

    /* Testimonials */
    .no-testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Shop Layout */
    .no-shop-layout {
        grid-template-columns: 220px 1fr;
    }

    /* Single Product */
    .no-single-product__layout {
        gap: 32px;
    }

    /* Footer */
    .no-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ---- Mobile Large (< 768px) ---- */
@media (max-width: 767px) {
    :root {
        --container-pad: 1rem;
    }

    .no-container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .no-section {
        padding-top: 36px;
        padding-bottom: 36px;
    }

    .no-section__header {
        margin-bottom: 24px;
    }

    .no-section__title {
        font-size: 24px;
    }

    .no-section__subtitle {
        font-size: 13px;
    }

    /* Announcement Bar */
    .no-announcement {
        padding: 6px 10px;
        font-size: 11px;
        line-height: 1.35;
    }

    .no-announcement__content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 2px;
    }

    .no-announcement__close {
        display: none;
    }

    /* Mobile Header Bar */
    .no-header__main-inner {
        min-height: 58px !important;
        padding: 0 12px !important;
        gap: 8px !important;
    }

    .no-header__hamburger {
        width: 36px !important;
        height: 36px !important;
        padding: 6px !important;
        border-radius: 6px !important;
    }

    .no-hamburger-bar {
        width: 18px !important;
    }

    .no-logo--text {
        gap: 8px !important;
    }

    .no-logo__mark svg {
        width: 24px !important;
        height: 24px !important;
    }

    .no-logo__name {
        font-size: 17px !important;
        line-height: 1.1 !important;
    }

    .no-logo__tagline {
        font-size: 7.5px !important;
        letter-spacing: 0.08em !important;
    }

    .no-header__actions {
        gap: 4px !important;
    }

    .no-header__action {
        padding: 6px !important;
    }

    .no-header__action--account,
    .no-header__action--whatsapp,
    .no-header__action-text,
    .no-header__cart-info {
        display: none !important;
    }

    /* Scrolled Floating Pill Navbar on Mobile */
    .no-header.is-scrolled {
        width: calc(100% - 20px) !important;
        top: 6px !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
    }

    .no-header.is-scrolled .no-header__main-inner {
        min-height: 50px !important;
        padding: 0 10px !important;
    }

    .no-header.is-scrolled .no-logo__name {
        font-size: 16px !important;
    }

    /* Hero Section */
    .no-hero {
        min-height: 480px !important;
        width: 100% !important;
    }

    .no-hero__content {
        padding: 32px 0 40px !important;
        max-width: 100% !important;
    }

    .no-hero__badge {
        font-size: 10px !important;
        padding: 6px 14px !important;
        margin-bottom: 16px !important;
    }

    .no-hero__title {
        font-size: clamp(24px, 7.5vw, 34px) !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }

    .no-hero__text {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 24px !important;
    }

    .no-hero__actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .no-hero__actions .no-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 13px 20px !important;
        font-size: 13.5px !important;
    }

    /* Categories Grid (2 Columns on Mobile) */
    .no-categories__grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .no-category-card {
        aspect-ratio: 1 / 1.2 !important;
        border-radius: 12px !important;
    }

    .no-category-card__overlay {
        padding: 12px 10px !important;
    }

    .no-category-card__name {
        font-size: 13.5px !important;
        line-height: 1.2 !important;
        margin-bottom: 2px !important;
    }

    .no-category-card__count {
        font-size: 10.5px !important;
    }

    .no-category-card__arrow {
        display: none !important;
    }

    /* Products Grid (2 Columns on Mobile) */
    .no-products__grid,
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .no-product-card {
        border-radius: 12px !important;
    }

    .no-product-card__image {
        height: 175px !important;
    }

    .no-product-card__image img {
        padding: 8px !important;
    }

    .no-product-card__content {
        padding: 10px !important;
    }

    .no-product-card__category {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }

    .no-product-card__title {
        font-size: 12.5px !important;
        line-height: 1.3 !important;
        min-height: 32px !important;
        margin-bottom: 6px !important;
    }

    .no-product-card__rating {
        margin-bottom: 6px !important;
    }

    .no-product-card__price {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .no-product-card__add-to-cart {
        padding: 8px 10px !important;
        font-size: 11.5px !important;
        border-radius: 6px !important;
    }

    /* Promo Banner */
    .no-promo-banner {
        min-height: 320px !important;
        padding: 40px 16px !important;
    }

    .no-promo-banner__title {
        font-size: 24px !important;
    }

    .no-promo-banner__content {
        text-align: center !important;
    }

    /* Brand Story */
    .no-brand-story__grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .no-brand-story__img {
        max-height: 280px !important;
        object-fit: cover !important;
    }

    /* Why Shop Benefits */
    .no-why-shop__grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .no-benefit-card {
        padding: 18px 16px !important;
    }

    /* Testimonials */
    .no-testimonials__grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }

    /* Newsletter */
    .no-newsletter__form {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .no-newsletter__btn {
        width: 100% !important;
    }

    .no-newsletter__title {
        font-size: 22px !important;
    }

    /* Shop / Archive Layout */
    .no-shop-layout {
        grid-template-columns: 1fr !important;
    }

    .no-shop-sidebar {
        position: static !important;
        margin-bottom: 24px !important;
    }

    .no-shop-header__title {
        font-size: 24px !important;
    }

    /* Single Product Mobile Layout */
    .no-single-product__layout {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
        margin-bottom: 32px !important;
    }

    .no-single-product__gallery-col {
        position: static !important;
        width: 100% !important;
    }

    .no-single-product__gallery-inner .woocommerce-product-gallery {
        padding: 12px !important;
        border-radius: 14px !important;
    }

    .woocommerce-product-gallery__image {
        max-height: 340px !important;
        min-height: 240px !important;
    }

    .woocommerce-product-gallery__image img {
        max-height: 320px !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs li {
        flex: 0 0 58px !important;
        width: 58px !important;
        height: 58px !important;
    }

    .no-single-product__summary-inner .product_title {
        font-size: 22px !important;
    }

    .no-single-product__summary-inner .price {
        font-size: 22px !important;
    }

    .no-single-product__summary-inner .cart {
        flex-direction: row !important;
        gap: 10px !important;
    }

    .no-single-product__summary-inner .single_add_to_cart_button {
        padding: 14px 20px !important;
        font-size: 13px !important;
    }

    .no-single-product__tabs-section .woocommerce-tabs {
        padding: 0 16px 24px 16px !important;
        margin-top: 32px !important;
        border-radius: 12px !important;
    }

    .no-single-product__tabs-section .woocommerce-tabs ul.tabs {
        margin: 0 -16px 20px -16px !important;
        padding: 0 16px !important;
        gap: 16px !important;
        overflow-x: auto !important;
        scrollbar-width: none;
    }

    .no-single-product__tabs-section .woocommerce-tabs ul.tabs li a {
        padding: 12px 0 !important;
        font-size: 12.5px !important;
        white-space: nowrap !important;
    }

    .related.products {
        margin-top: 36px !important;
        padding-top: 32px !important;
    }

    .related.products > h2 {
        font-size: 22px !important;
        margin-bottom: 20px !important;
    }

    .related.products ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Cart & Checkout */
    .woocommerce-cart-form table {
        font-size: 13px !important;
    }

    .woocommerce-cart-form .product-thumbnail {
        display: none !important;
    }

    /* Footer */
    .no-footer__grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
    }

    .no-footer__bottom-inner {
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .no-footer__payments {
        justify-content: center !important;
    }

    /* Back to top */
    .no-back-to-top {
        bottom: 16px !important;
        right: 16px !important;
        width: 38px !important;
        height: 38px !important;
    }
}

/* ---- Mobile Small (< 480px) ---- */
@media (max-width: 479px) {
    .no-hero__title {
        font-size: 24px !important;
    }

    .no-logo__name {
        font-size: 15.5px !important;
    }

    .no-product-card__image {
        height: 155px !important;
    }

    .no-product-card__title {
        font-size: 12px !important;
    }
}