/* Mconnect_NewArrivals — homepage "New Arrivals" slider
   Styles mirror the Back-to-School slider (.bts-*) EXACTLY so JUST ARRIVED
   and the Collection sliders share the same visual language (palette, card
   geometry, bottom row layout, "Shop All" pill, etc.). Only the class
   prefix differs (na-home-*) so we don't clash with bts-*.

   Reference palette
     navy   #14296b
     royal  #1344b1
     red    #bc1212
     green  #0f9447
     gold   #fdc700
     line   #e6e9ef
     photo  #f3f5f9
*/
.na-home {
    max-width: var(--maxw, 1320px);
    margin: 32px auto;
    padding: 0 28px;
    font-family: 'Inter', system-ui, sans-serif;
    --na-gap: 20px;
}
.na-home-inner { display: block; }

/* ---------- header (eyebrow + title + gold underline + arrows) ---------- */
.na-home-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 18px; flex-wrap: wrap;
}
.na-home-titles { display: block; }
.na-home-eyebrow {
    display: block;
    color: #bc1212;
    font-size: 12px; font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 8px;
}
.na-home-title {
    font-size: clamp(26px, 3vw, 32px);
    font-weight: 800;
    display: inline-block;
    position: relative;
    padding-bottom: 10px;
    margin: 0;
    line-height: 1.05;
    letter-spacing: 0;
}
.na-home-title .a { color: #14296b; }   /* dark navy — matches .bts-title-v2 .a */
.na-home-title .b { color: #1344b1; }   /* royal blue — matches .bts-title-v2 .b */
.na-home-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 62px; height: 3px;
    background: #fdc700;
    border-radius: 2px;
}
/* old <span class="na-home-rule"> from the previous markup — neutralise it
   so the gold rule comes from ::after only and there's no double-line. */
.na-home-rule { display: none; }

.na-home-arrows { display: flex; gap: 10px; margin-left: auto; }
.na-home-arrow {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid #e6e9ef; background: #fff;
    color: #bc1212;
    display: grid; place-items: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    padding: 0; font-size: 14px;
}
.na-home-arrow:hover { border-color: #bc1212; background: #fdecec; }

/* ---------- track (scroll carousel, 3.5 cards visible) ---------- */
.na-home-track {
    position: relative;
    display: inline-flex;
    flex-wrap: nowrap;
    gap: var(--na-gap);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    min-width: 100%;
    align-items: stretch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.na-home-track::-webkit-scrollbar { display: none; height: 0; width: 0; }

/* ---------- card ----------
   3.5 cards in the visible viewport = 3 full + 50% peek of the 4th.
   Matches the .bts-card formula. */
.na-home-card {
    flex: 0 0 calc((100% - var(--na-gap) * 3) / 3.5);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e6e9ef;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .15s, box-shadow .15s;
    text-decoration: none;
    color: inherit;
}
.na-home-card:hover {
    border-color: #1344b1;
    box-shadow: 0 6px 18px rgba(20, 41, 107, .10);
}

/* ---------- media (4:3 photo, cover, no inner padding) ---------- */
.na-home-card-media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: #f3f5f9;
    overflow: hidden;
}
.na-home-card-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    padding: 0;
}

/* ---------- corner ribbon (category name) ---------- */
.na-home-ribbon {
    position: absolute;
    top: 10px; right: 10px;
    background: #1344b1;
    color: #fff;
    font-size: 11px; font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    max-width: 70%;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .12);
    z-index: 1;
}

/* ---------- body ---------- */
.na-home-card-name {
    display: -webkit-box;
    -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
    color: #222;
    text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    line-height: 1.4;
    min-height: 56px;
    margin: 14px 14px 0;
}
.na-home-card-name:hover { color: #1344b1; }

.na-home-card-rating {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px;
    margin: 8px 14px 0;
}
.na-home-card-stars   { color: #cbd2de; letter-spacing: 1px; }
.na-home-card-reviews { color: #6b7280; }

.na-home-card-price {
    font-size: 18px; font-weight: 800; color: #222;
    margin: 8px 14px 0;
}

/* ---------- BOTTOM ROW: Add to Cart (left) + actions (right) on ONE LINE
              (mirrors .bts-bottom exactly). ---------- */
.na-home-card-bottom {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 12px 14px 16px;
    flex: 1;                 /* keep bottom row anchored to the card bottom */
    align-content: flex-end;
}
.na-home-card-cta {
    appearance: none;
    border: 1.5px solid #1344b1;
    background: #fff;
    color: #1344b1;
    font-weight: 600; font-size: 13px;
    padding: 7px 14px;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
    margin: 0;
    display: inline-flex;
    align-items: center;
}
.na-home-card-cta:hover { background: #1344b1; color: #fff; }

/* Action row mirrors .bts-actions exactly (same SVGs, same sizing) */
.na-home-card-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;   /* pushes WISHLIST/SHARE/COMPARE to the right edge */
}
.na-home-card-actions a,
.na-home-card-actions button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: none; border: 0;
    cursor: pointer;
    color: #6b7280;
    font-size: 10px;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0;
}
.na-home-card-actions svg { width: 18px; height: 18px; }
.na-home-card-actions a:hover,
.na-home-card-actions button:hover { color: #1344b1; }

/* ---------- "Shop All New Products" CTA below the grid ---------- */
.na-home-foot { text-align: center; margin-top: 24px; }
.na-home-shopall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #0f9447;
    color: #0f9447;
    background: transparent;
    border-radius: 999px;
    padding: 11px 22px;
    font-weight: 700; font-size: 14px;
    text-decoration: none;
    transition: background .15s, color .15s;
}
.na-home-shopall:hover { background: #0f9447; color: #fff; text-decoration: none; }

/* Belt-and-suspenders: kill underline-on-hover across ALL links inside the
   slider — the theme's global "a:hover { text-decoration: underline }" was
   leaking onto the green pill + product name + add-to-cart. */
.na-home a:hover,
.na-home button:hover { text-decoration: none; }

/* ---------- responsive (peek: 2.3 tablet, 1.2 mobile — matches .bts-card) ---- */
@media (max-width: 960px) {
    .na-home-card { flex: 0 0 calc((100% - var(--na-gap) * 2) / 2.3); }
}
@media (max-width: 640px) {
    .na-home-card { flex: 0 0 82%; }
    .na-home-title { font-size: 24px; }
    .na-home-arrows { display: none; }
}
