/* AfghanZone Public Marketplace Phase 1
   Product-only public catalogue, animated China-Afghanistan journey, secure public tracking, and mobile-first fitting. */

body.az-product-only-market {
    --pm-orange: #f97316;
    --pm-orange-dark: #d95f09;
    --pm-green: #079669;
    --pm-ink: #172033;
    --pm-muted: #667085;
    --pm-paper: #ffffff;
    --pm-line: #e8dfd2;
    overflow-x: hidden;
}

body.az-product-only-market .market-header {
    top: 0;
    z-index: 80;
}

body.az-product-only-market .top-strip {
    min-height: 34px;
    font-size: 11px;
}

body.az-product-only-market .header-main {
    min-height: 70px;
}

body.az-product-only-market .header-nav-row {
    min-height: 44px;
}

body.az-product-only-market .journey-nav-link,
body.az-product-only-market .journey-mobile-link,
body.az-product-only-market .animated-journey-button {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

body.az-product-only-market .journey-nav-link {
    padding: 8px 13px;
    border: 1px solid rgba(249,115,22,.28);
    border-radius: 999px;
    background: linear-gradient(120deg,#fff4e8,#ffffff,#edf9f3);
    color: #a64b08 !important;
    box-shadow: 0 8px 20px rgba(249,115,22,.10);
    animation: pmJourneyPulse 2.8s ease-in-out infinite;
}

body.az-product-only-market .journey-nav-link::after,
body.az-product-only-market .animated-journey-button::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 -38%;
    width: 32%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);
    animation: pmJourneyShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

body.az-product-only-market .journey-nav-link i,
body.az-product-only-market .journey-mobile-link::before,
body.az-product-only-market .animated-journey-button i {
    animation: pmJourneyPlane 2.2s ease-in-out infinite;
}

body.az-product-only-market .journey-mobile-link {
    border: 1px solid #f3c79f;
    border-radius: 14px;
    background: linear-gradient(135deg,#fff4e8,#f0faf5);
    color: #a64b08 !important;
    font-weight: 900;
}

body.az-product-only-market .journey-mobile-link::before {
    content: '✈';
    display: inline-block;
    margin-inline-end: 9px;
}

@keyframes pmJourneyPulse {
    0%,100% { box-shadow: 0 8px 20px rgba(249,115,22,.09), 0 0 0 0 rgba(249,115,22,.18); }
    50% { box-shadow: 0 10px 28px rgba(249,115,22,.18), 0 0 0 7px rgba(249,115,22,0); }
}
@keyframes pmJourneyShine { 0%,35% { left:-38%; } 68%,100% { left:125%; } }
@keyframes pmJourneyPlane { 0%,100% { transform:translateX(0) translateY(0); } 50% { transform:translateX(-4px) translateY(-3px); } }

/* Product catalogue hero, not an advertising banner. */
body.az-product-only-market .premium-hero {
    padding: 38px 0 34px;
    background: linear-gradient(135deg,#fffaf4 0%,#f7f2e9 58%,#fff 100%);
}
body.az-product-only-market .premium-hero .hero-grid {
    min-height: 400px;
    gap: 34px;
}
body.az-product-only-market .premium-hero .hero-copy h1 {
    font-size: clamp(36px,4.4vw,62px);
    line-height: 1.28;
}
body.az-product-only-market .premium-hero .hero-copy > p {
    max-width: 720px;
    font-size: 16px;
}
body.az-product-only-market .premium-hero .hero-visual {
    min-height: 370px;
}
body.az-product-only-market .hero-proof {
    grid-template-columns: repeat(5,minmax(0,1fr));
}

/* Remove non-product promotional blocks from the public catalogue. */
body.az-product-only-market #reviews,
body.az-product-only-market .contact-section,
body.az-product-only-market .home-moved-section,
body.az-product-only-market .home-moved-section[hidden] {
    display: none !important;
}

body.az-product-only-market .category-section,
body.az-product-only-market .product-band,
body.az-product-only-market .new-arrivals-section,
body.az-product-only-market .all-products-section,
body.az-product-only-market .experience-preview,
body.az-product-only-market .trust-section,
body.az-product-only-market .public-tracking-section {
    scroll-margin-top: 125px;
}

body.az-product-only-market .arrival-banner {
    grid-template-columns: minmax(0,1fr) auto auto;
    padding: 28px 32px;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(60,49,35,.05);
}

body.az-product-only-market .experience-preview-card {
    border-color: #efd7c0;
}
body.az-product-only-market .experience-preview-route {
    position: relative;
}
body.az-product-only-market .experience-preview-route::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12%;
    left: 12%;
    height: 3px;
    z-index: 0;
    border-radius: 99px;
    background: linear-gradient(90deg,#079669,#f97316,#079669);
    background-size: 220% 100%;
    animation: pmRouteFlow 3s linear infinite;
    opacity: .28;
}
body.az-product-only-market .experience-preview-route > * { position: relative; z-index: 1; }
@keyframes pmRouteFlow { to { background-position: -220% 0; } }

/* Product cards show useful information first. */
body.az-product-only-market .product-card {
    min-width: 0;
}
body.az-product-only-market .product-card-media {
    aspect-ratio: 1.18 / 1;
}
body.az-product-only-market .product-card-body {
    padding: 17px;
}
body.az-product-only-market .product-short-description {
    min-height: 48px;
    line-height: 1.75;
}
body.az-product-only-market .product-card-meta {
    gap: 8px;
    flex-wrap: wrap;
}
body.az-product-only-market .product-price-row {
    align-items: end;
}
body.az-product-only-market .product-card-actions {
    gap: 7px;
}
body.az-product-only-market .public-order-button {
    min-height: 40px;
}

/* Secure public order tracking. */
.public-tracking-section {
    padding: 32px 0 70px;
}
.tracking-heading { margin-bottom: 22px; }
.tracking-shell {
    padding: 28px;
    border: 1px solid var(--pm-line);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(50,42,32,.07);
}
.tracking-form {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr) auto;
    align-items: end;
    gap: 14px;
}
.tracking-form label { display:grid; gap:8px; color:#475467; font-size:12px; font-weight:900; }
.tracking-input {
    min-height: 52px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 15px;
    border:1px solid #e3d9cc;
    border-radius:15px;
    background:#fbfaf8;
}
.tracking-input:focus-within { border-color:#f59a55; box-shadow:0 0 0 4px rgba(249,115,22,.08); background:#fff; }
.tracking-input i { color:#f97316; }
.tracking-input input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#172033; font:inherit; }
.tracking-form > button {
    min-height:52px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 22px;
    border:0;
    border-radius:15px;
    background:linear-gradient(135deg,#f97316,#fb923c);
    color:#fff;
    font-weight:900;
    box-shadow:0 12px 24px rgba(249,115,22,.18);
}
.tracking-privacy {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    color:#667085;
    font-size:11px;
}
.tracking-privacy i { color:#079669; }
.tracking-result { margin-top:22px; }
.tracking-result:empty { display:none; }
.tracking-message {
    padding:17px 18px;
    border:1px solid #f1d2b9;
    border-radius:16px;
    background:#fff7ef;
    color:#9a4a0b;
    font-weight:800;
}
.tracking-message.error { border-color:#fecaca; background:#fff1f2; color:#b42318; }
.tracking-order-card {
    display:grid;
    gap:20px;
}
.tracking-order-head {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    padding:20px;
    border:1px solid #e8dfd2;
    border-radius:20px;
    background:linear-gradient(135deg,#fffaf4,#fff);
}
.tracking-order-head h3 { margin:4px 0 0; color:#172033; font-size:24px; }
.tracking-order-head small { color:#667085; }
.tracking-status-badge { padding:8px 13px; border-radius:999px; background:#eaf8f2; color:#08775a; font-size:12px; font-weight:900; }
.tracking-status-badge.cancelled { background:#fff1f2; color:#b42318; }
.tracking-summary-grid {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:10px;
}
.tracking-summary-grid article {
    min-width:0;
    padding:14px;
    border:1px solid #ebe2d7;
    border-radius:16px;
    background:#fff;
}
.tracking-summary-grid small { display:block; color:#98a2b3; font-size:10px; }
.tracking-summary-grid strong { display:block; margin-top:5px; overflow-wrap:anywhere; color:#344054; font-size:13px; }
.tracking-products { display:grid; gap:10px; }
.tracking-product-item {
    display:grid;
    grid-template-columns:58px minmax(0,1fr) auto;
    align-items:center;
    gap:12px;
    padding:11px;
    border:1px solid #ebe2d7;
    border-radius:16px;
    background:#fff;
}
.tracking-product-item img,
.tracking-product-placeholder { width:58px; height:58px; border-radius:13px; object-fit:cover; background:#f4efe8; display:grid; place-items:center; color:#f97316; }
.tracking-product-item b,.tracking-product-item small { display:block; }
.tracking-product-item small { color:#7a8492; }
.tracking-product-item strong { color:#08775a; white-space:nowrap; }
.tracking-timeline {
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:0;
    padding:20px 12px;
    border:1px solid #ebe2d7;
    border-radius:20px;
    background:#fbfaf8;
}
.tracking-step { position:relative; display:grid; justify-items:center; gap:8px; color:#98a2b3; text-align:center; font-size:10px; font-weight:800; }
.tracking-step::before { content:''; position:absolute; top:15px; right:-50%; width:100%; height:3px; background:#e4ded5; }
.tracking-step:first-child::before { display:none; }
.tracking-step span { position:relative; z-index:1; width:32px; height:32px; display:grid; place-items:center; border:3px solid #e4ded5; border-radius:50%; background:#fff; }
.tracking-step.done { color:#08775a; }
.tracking-step.done span { border-color:#10b981; background:#10b981; color:#fff; }
.tracking-step.done::before { background:#10b981; }
.tracking-step.current span { box-shadow:0 0 0 7px rgba(16,185,129,.11); }
.tracking-map-card {
    --tracking-progress: 0%;
    position:relative;
    overflow:hidden;
    min-height:210px;
    padding:25px;
    border:1px solid #dfe9e5;
    border-radius:22px;
    background:linear-gradient(145deg,#f3fbf7,#fff9f2);
}
.tracking-map-title { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.tracking-map-title h4 { margin:0; color:#172033; }
.tracking-map-title small { color:#667085; }
.tracking-route-visual { position:relative; height:105px; margin:24px 26px 0; }
.tracking-route-line { position:absolute; top:48px; right:0; left:0; height:5px; border-radius:99px; background:#dce7e2; }
.tracking-route-line::after { content:''; display:block; width:var(--tracking-progress); height:100%; border-radius:inherit; background:linear-gradient(90deg,#10b981,#f97316); transition:width .5s ease; }
.tracking-route-node { position:absolute; top:25px; display:grid; justify-items:center; gap:4px; color:#344054; font-size:11px; font-weight:900; }
.tracking-route-node i { width:46px; height:46px; display:grid; place-items:center; border-radius:15px; background:#fff; color:#f97316; box-shadow:0 8px 20px rgba(52,64,84,.10); }
.tracking-route-node.start { right:-18px; }
.tracking-route-node.end { left:-18px; }
.tracking-truck { position:absolute; top:32px; right:calc(var(--tracking-progress) - 18px); width:36px; height:36px; display:grid; place-items:center; border-radius:50%; background:#172033; color:#fff; transition:right .5s ease; }
.tracking-map-notice { margin:12px 0 0; color:#667085; font-size:11px; line-height:1.8; }

body.az-product-only-market .market-footer { padding-top:48px; }

@media (max-width: 1100px) {
    .tracking-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
    .tracking-timeline { grid-template-columns:repeat(4,minmax(0,1fr)); row-gap:18px; }
    .tracking-step::before { display:none; }
}

@media (max-width: 900px) {
    body.az-product-only-market .market-header { position:sticky; top:0; }
    body.az-product-only-market .header-main { min-height:118px; padding-top:9px; }
    body.az-product-only-market .header-search { margin-bottom:8px; }
    body.az-product-only-market .premium-hero { padding-top:28px; }
    body.az-product-only-market .premium-hero .hero-grid { min-height:auto; }
    .tracking-form { grid-template-columns:1fr 1fr; }
    .tracking-form > button { grid-column:1/-1; }
}

@media (max-width: 700px) {
    body.az-product-only-market .site-container { width:min(100% - 20px,1440px); }
    body.az-product-only-market .top-strip { display:none; }
    body.az-product-only-market .header-main { min-height:112px; gap:8px; }
    body.az-product-only-market .market-brand strong { font-size:18px; }
    body.az-product-only-market .market-brand small { font-size:7px; }
    body.az-product-only-market .premium-hero { padding:24px 0 22px; }
    body.az-product-only-market .premium-hero .hero-grid { gap:18px; }
    body.az-product-only-market .premium-hero .hero-copy { text-align:right; }
    body.az-product-only-market .premium-hero .hero-copy h1 { font-size:32px; }
    body.az-product-only-market .premium-hero .hero-copy > p { font-size:14px; line-height:1.85; }
    body.az-product-only-market .premium-hero .hero-search { width:100%; min-height:50px; }
    body.az-product-only-market .premium-hero .hero-buttons { grid-template-columns:1fr; }
    body.az-product-only-market .premium-hero .hero-visual { min-height:265px; border-radius:24px; }
    body.az-product-only-market .premium-hero .visual-globe { width:145px; height:145px; font-size:105px; }
    body.az-product-only-market .premium-hero .trade-route { top:135px; right:35px; left:35px; }
    body.az-product-only-market .premium-hero .china-node { top:105px; }
    body.az-product-only-market .premium-hero .afghanistan-node { top:175px; }
    body.az-product-only-market .premium-hero .cargo-stack { display:none; }
    body.az-product-only-market .hero-proof { grid-template-columns:1fr 1fr; }
    body.az-product-only-market .hero-proof span:last-child { grid-column:1/-1; }
    body.az-product-only-market .category-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    body.az-product-only-market .product-grid,
    body.az-product-only-market .featured-grid,
    body.az-product-only-market .related-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
    body.az-product-only-market .product-card-body { padding:12px; }
    body.az-product-only-market .product-card h3 { font-size:14px; }
    body.az-product-only-market .product-short-description { min-height:42px; font-size:11px; }
    body.az-product-only-market .product-price strong { font-size:15px; }
    body.az-product-only-market .moq-badge { font-size:9px; }
    body.az-product-only-market .product-card-actions { grid-template-columns:1fr 38px; }
    body.az-product-only-market .product-card-actions button { min-height:38px; font-size:10px; }
    body.az-product-only-market .product-card-actions .whatsapp-button,
    body.az-product-only-market .product-card-actions .public-order-button { grid-column:1/-1; }
    body.az-product-only-market .arrival-banner { grid-template-columns:1fr; padding:22px; }
    body.az-product-only-market .arrival-preview { display:flex; }
    body.az-product-only-market .experience-preview-card { gap:22px; }
    body.az-product-only-market .experience-preview-route::after { display:none; }
    .tracking-shell { padding:18px; border-radius:22px; }
    .tracking-form { grid-template-columns:1fr; }
    .tracking-form > button { grid-column:auto; }
    .tracking-order-head { flex-direction:column; padding:16px; }
    .tracking-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tracking-timeline { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .tracking-product-item { grid-template-columns:50px minmax(0,1fr); }
    .tracking-product-item strong { grid-column:2; }
    .tracking-route-visual { margin-inline:10px; }
    .tracking-map-title { align-items:flex-start; flex-direction:column; }
    body.az-product-only-market .footer-grid { grid-template-columns:1fr; }
}

@media (max-width: 460px) {
    body.az-product-only-market .product-grid,
    body.az-product-only-market .featured-grid,
    body.az-product-only-market .related-grid { grid-template-columns:1fr; }
    body.az-product-only-market .category-card-grid { grid-template-columns:1fr 1fr; }
    body.az-product-only-market .premium-hero .hero-copy h1 { font-size:29px; }
    body.az-product-only-market .premium-hero .hero-visual { min-height:235px; }
    .tracking-summary-grid { grid-template-columns:1fr; }
    .tracking-timeline { grid-template-columns:1fr; padding:14px; }
    .tracking-step { grid-template-columns:32px 1fr; justify-items:start; align-items:center; text-align:right; }
    .tracking-route-node span { max-width:80px; text-align:center; }
}

@media (prefers-reduced-motion: reduce) {
    body.az-product-only-market .journey-nav-link,
    body.az-product-only-market .journey-nav-link::after,
    body.az-product-only-market .animated-journey-button::after,
    body.az-product-only-market .journey-nav-link i,
    body.az-product-only-market .journey-mobile-link::before,
    body.az-product-only-market .animated-journey-button i,
    body.az-product-only-market .experience-preview-route::after { animation:none !important; }
}
