/* AfghanZone Public Mobile Category + Tracking Hide v1.0.0
   Presentation only.
   - Public category cards are compact on phones.
   - Public order-tracking section and links are hidden from the general marketplace page.
   - Tracking/API/order logic remains untouched in the existing source.
   Shared frontend: AZ + KZ + ZU. */

/* The general/public marketplace no longer exposes public order tracking. */
body.az-home-v2 #order-tracking {
    display: none !important;
}

/* Remove every in-page entry point that points to the now-hidden tracking section:
   top strip, desktop navigation, mobile drawer, and dark footer. */
body.az-home-v2 a[href="#order-tracking"] {
    display: none !important;
}

@media screen and (max-width: 700px) {
    /* Category section becomes a short, app-like shelf. */
    body.az-home-v2 .category-section {
        padding-top: 16px !important;
        padding-bottom: 20px !important;
    }

    body.az-home-v2 .category-section .site-container {
        width: min(100% - 20px, 1440px) !important;
    }

    body.az-home-v2 .category-section .section-heading {
        margin-bottom: 10px !important;
        gap: 8px !important;
        align-items: center !important;
    }

    body.az-home-v2 .category-section .section-heading > div {
        min-width: 0 !important;
    }

    body.az-home-v2 .category-section .section-kicker {
        display: inline-flex !important;
        width: auto !important;
        margin-bottom: 3px !important;
        padding: 3px 7px !important;
        border-radius: 999px !important;
        font-size: 7px !important;
        line-height: 1.1 !important;
    }

    body.az-home-v2 .category-section .section-heading h2 {
        margin: 0 !important;
        font-size: 17px !important;
        line-height: 1.25 !important;
        letter-spacing: 0 !important;
    }

    body.az-home-v2 #show-all-categories {
        flex: 0 0 auto !important;
        gap: 4px !important;
        padding: 5px 7px !important;
        border: 1px solid #fed7aa !important;
        border-radius: 9px !important;
        background: #fffaf5 !important;
        font-size: 7.5px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    body.az-home-v2 #category-card-grid.category-card-grid {
        width: 100% !important;
        max-width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 7px !important;
        overflow: visible !important;
    }

    body.az-home-v2 #category-card-grid .category-card {
        width: 100% !important;
        min-width: 0 !important;
        min-height: 76px !important;
        height: auto !important;
        gap: 5px !important;
        padding: 7px 5px !important;
        border-radius: 13px !important;
        border: 1px solid #e6e9ee !important;
        background: #fff !important;
        box-shadow: 0 6px 15px rgba(15, 23, 42, .035) !important;
        transform: none !important;
    }

    body.az-home-v2 #category-card-grid .category-card:hover,
    body.az-home-v2 #category-card-grid .category-card.is-active {
        border-color: #fdba74 !important;
        background: #fff8f1 !important;
        box-shadow: 0 6px 15px rgba(249, 115, 22, .08) !important;
        transform: none !important;
    }

    body.az-home-v2 #category-card-grid .category-icon {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        border-radius: 9px !important;
        font-size: 12px !important;
        background: #f3f6fa !important;
    }

    body.az-home-v2 #category-card-grid .category-card.is-active .category-icon,
    body.az-home-v2 #category-card-grid .category-card:hover .category-icon {
        background: #fff0e2 !important;
        color: #ea580c !important;
    }

    body.az-home-v2 #category-card-grid .category-card > span:last-child {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.az-home-v2 #category-card-grid .category-card b {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 8.5px !important;
        line-height: 1.15 !important;
        font-weight: 900 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    body.az-home-v2 #category-card-grid .category-card small {
        margin-top: 2px !important;
        font-size: 6.5px !important;
        line-height: 1.1 !important;
        color: #94a3b8 !important;
        white-space: nowrap !important;
    }
}

@media screen and (max-width: 390px) {
    body.az-home-v2 #category-card-grid.category-card-grid {
        gap: 5px !important;
    }

    body.az-home-v2 #category-card-grid .category-card {
        min-height: 70px !important;
        padding: 6px 4px !important;
        border-radius: 12px !important;
    }

    body.az-home-v2 #category-card-grid .category-icon {
        width: 29px !important;
        height: 29px !important;
        flex-basis: 29px !important;
        border-radius: 8px !important;
        font-size: 11px !important;
    }

    body.az-home-v2 #category-card-grid .category-card b {
        font-size: 8px !important;
    }

    body.az-home-v2 #category-card-grid .category-card small {
        font-size: 6px !important;
    }
}
