/* AfghanZone Public Marketplace Phase 2
   Product-first catalogue + compact Alibaba-inspired cards.
   The animated "له چین څخه تر کوره" navigation remains unchanged and still opens experience.html. */

body.az-product-first-market main {
    display: flex;
    flex-direction: column;
}

/* The public landing page starts with products, not promotional banners. */
body.az-product-first-market .premium-hero,
body.az-product-first-market .product-band,
body.az-product-first-market .new-arrivals-section,
body.az-product-first-market .experience-preview,
body.az-product-first-market .trust-section {
    display: none !important;
}

body.az-product-first-market .all-products-section {
    order: 1;
    padding: 26px 0 54px;
    background: #f6f7f9;
}
body.az-product-first-market .category-section { order: 2; padding: 24px 0 46px; }
body.az-product-first-market .public-tracking-section { order: 3; }

body.az-product-first-market .all-products-section .site-container {
    max-width: 1540px;
}
body.az-product-first-market .products-heading {
    margin-bottom: 16px;
    padding: 18px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
}
body.az-product-first-market .products-heading h2 {
    margin: 2px 0 4px;
    font-size: clamp(23px, 2.2vw, 34px);
}
body.az-product-first-market .market-layout {
    grid-template-columns: 235px minmax(0,1fr);
    gap: 14px;
    align-items: start;
}
body.az-product-first-market .filter-sidebar {
    position: sticky;
    top: 132px;
    padding: 16px;
    border-radius: 12px;
    box-shadow: none;
}
body.az-product-first-market .products-toolbar {
    min-height: 52px;
    margin-bottom: 12px;
    padding: 9px 13px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}
body.az-product-first-market #all-product-grid {
    grid-template-columns: repeat(5,minmax(0,1fr));
    gap: 10px;
}
body.az-product-first-market .product-card {
    border-color: #e8e8e8;
    border-radius: 10px;
    box-shadow: none;
}
body.az-product-first-market .product-card:hover {
    transform: translateY(-2px);
    border-color: #ff8b3d;
    box-shadow: 0 9px 25px rgba(15,23,42,.10);
}
body.az-product-first-market .product-card-media {
    aspect-ratio: 1 / 1;
    background: #fff;
}
body.az-product-first-market .product-card-media > img {
    padding: 7px;
}
body.az-product-first-market .product-card-body {
    padding: 11px 11px 12px;
}
body.az-product-first-market .product-card-meta {
    font-size: 8px;
}
body.az-product-first-market .product-card h3 {
    min-height: 42px;
    margin: 7px 0 2px;
    font-size: 13px;
    line-height: 1.55;
}
body.az-product-first-market .product-short-description {
    min-height: 34px;
    font-size: 9px;
    line-height: 1.65;
}
body.az-product-first-market .product-rating {
    margin-top: 6px;
}
body.az-product-first-market .product-price-row {
    margin-top: 8px;
    padding-top: 8px;
}
body.az-product-first-market .product-price strong {
    font-size: 17px;
}
body.az-product-first-market .moq-badge,
body.az-product-first-market .product-price small {
    font-size: 8px;
}
body.az-product-first-market .product-card-actions {
    grid-template-columns: 1fr auto;
    gap: 6px;
    margin-top: 9px;
}
body.az-product-first-market .product-card-actions button {
    min-height: 34px;
    border-radius: 7px;
    font-size: 8px;
}
body.az-product-first-market .product-card-actions .details-button {
    display: none;
}
body.az-product-first-market .product-card-actions .cart-button {
    width: 36px;
    grid-column: 2;
    grid-row: 1;
}
body.az-product-first-market .product-card-actions .whatsapp-button {
    grid-column: 1;
    grid-row: 1;
}
body.az-product-first-market .product-card-actions .whatsapp-button {
    padding-inline: 7px;
}

/* Public partnership link; intentionally separate from internal investor pages. */
body.az-product-first-market .partnership-nav-link {
    color: #475467;
}
body.az-product-first-market .partnership-nav-link:hover {
    color: #d95f09;
}
body.az-product-first-market .partnership-mobile-link {
    color: #334155;
}

@media (max-width: 1320px) {
    body.az-product-first-market #all-product-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 1040px) {
    body.az-product-first-market .market-layout { grid-template-columns: 1fr; }
    body.az-product-first-market .filter-sidebar { position: fixed; top: 0; }
    body.az-product-first-market #all-product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    body.az-product-first-market .all-products-section { padding-top: 12px; }
    body.az-product-first-market .products-heading { padding: 13px; border-radius: 10px; }
    body.az-product-first-market #all-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
    body.az-product-first-market .product-card-body { padding: 9px; }
    body.az-product-first-market .product-card h3 { min-height: 38px; font-size: 11px; }
    body.az-product-first-market .product-short-description { display:none; }
    body.az-product-first-market .product-price strong { font-size: 15px; }
    body.az-product-first-market .product-card-actions .whatsapp-button { font-size: 0; min-width: 38px; }
    body.az-product-first-market .product-card-actions .whatsapp-button i { font-size: 15px; }
}
@media (max-width: 390px) {
    body.az-product-first-market #all-product-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
    body.az-product-first-market .product-card-body { padding: 7px; }
    body.az-product-first-market .product-card-meta { display:none; }
}
