/* ==========================================================================
   NexusCommerce — v17 layer
   --------------------------------------------------------------------------
   Loaded AFTER style.css and nx-v16.css, so it only ADDS. Scope is kept
   deliberately small: everything here backs a v17 change that has no home in
   the two earlier sheets.

     1. .nx-steps ........ checkout progress indicator
     2. .nx-ad-strip ..... the compact ad strip at the bottom of a category page
     3. .pdp-specs ....... category-attribute spec table on the product page

   Nothing in this file is required for the app to look right — if it fails to
   load, the three items above simply fall back to plain unstyled markup.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CHECKOUT STEP INDICATOR
   -------------------------------------------------------------------------- */
.nx-steps {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0 0 22px;
    padding: 0;
    flex-wrap: wrap;
}

.nx-step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 600;
    color: #94a3b8;
    padding: 8px 16px 8px 12px;
    background: #f1f5f9;
    border-radius: 999px;
    line-height: 1;
}

.nx-step.is-done {
    color: #0f766e;
    background: #ccfbf1;
}

.nx-step.is-current {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #115e59);
    box-shadow: 0 4px 12px rgba(15, 118, 110, .28);
}

.nx-step a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nx-step a:hover { text-decoration: underline; }

/* the little circle holding the number (or a tick) */
.nx-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: .76rem;
    font-weight: 700;
    background: rgba(15, 23, 42, .10);
    color: inherit;
    flex: 0 0 auto;
}

.nx-step.is-current .nx-step-num,
.nx-step.is-done .nx-step-num {
    background: rgba(255, 255, 255, .28);
}

.nx-step.is-done .nx-step-num { background: rgba(15, 118, 110, .16); }

/* connector ticks between the pills */
.nx-step + .nx-step::before {
    content: "";
    width: 18px;
    height: 2px;
    background: #cbd5e1;
    border-radius: 2px;
    margin-left: -14px;
    margin-right: 2px;
}

@media (max-width: 560px) {
    .nx-steps { gap: 6px; }
    .nx-step { font-size: .78rem; padding: 7px 11px 7px 9px; }
    .nx-step-num { width: 19px; height: 19px; font-size: .7rem; }
    .nx-step + .nx-step::before { width: 10px; }
}

/* --------------------------------------------------------------------------
   2. COMPACT AD STRIP — bottom of a category listing
   -------------------------------------------------------------------------- */
.nx-ad-strip {
    display: flex;
    gap: 14px;
    margin: 28px 0 8px;
    flex-wrap: wrap;
}

/* "choto kore" — the strip is deliberately short so it reads as a footer
   banner and never competes with the product grid above it. */
.nx-ad-strip-cat { justify-content: center; }

.nx-ad-banner {
    display: block;
    overflow: hidden;
    border-radius: 10px;
    line-height: 0;
    transition: transform .18s ease, box-shadow .18s ease;
}

.nx-ad-banner img {
    display: block;
    width: 100%;
    height: auto;
}

.nx-ad-banner-sm {
    flex: 1 1 320px;
    max-width: 520px;
    min-height: 64px;
    height: 84px;
    background: linear-gradient(135deg, #f8fafc, #eef2f7);
    border: 1px solid #e2e8f0;
}

.nx-ad-banner-sm img {
    height: 84px;
    object-fit: cover;
}

.nx-ad-banner-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .12);
}

.nx-ad-banner-text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 84px;
    font-size: .92rem;
    font-weight: 600;
    /* v20.1 FIX: this was #475569 (dark slate) but the banner it sits on is a
       dark navy gradient (#111827 -> #334155), so the label was almost
       invisible. Use white with a soft shadow so it reads on the dark card. */
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .45);
    text-align: center;
    padding: 0 16px;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .nx-ad-banner-sm { flex: 1 1 100%; max-width: 100%; height: 70px; }
    .nx-ad-banner-sm img { height: 70px; }
    .nx-ad-banner-text { height: 70px; }
}

/* --------------------------------------------------------------------------
   3. PRODUCT SPEC TABLE — category attributes on the product page
   -------------------------------------------------------------------------- */
.pdp-specs {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 4px;
    font-size: .9rem;
}

.pdp-specs th,
.pdp-specs td {
    padding: 9px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    vertical-align: top;
}

.pdp-specs th {
    width: 42%;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
}

.pdp-specs tr:first-child th,
.pdp-specs tr:first-child td { border-top: 1px solid #eef2f7; }

.pdp-specs-unit {
    font-weight: 400;
    color: #94a3b8;
    font-size: .85em;
}

@media (max-width: 560px) {
    .pdp-specs { font-size: .84rem; }
    .pdp-specs th,
    .pdp-specs td { padding: 8px 9px; }
}

/* --------------------------------------------------------------------------
   PRINT — the step indicator and ad strip are screen furniture only.
   -------------------------------------------------------------------------- */
@media print {
    .nx-steps,
    .nx-ad-strip { display: none !important; }
    .pdp-specs th { background: transparent; }
}
