/* Musify Connect Pro — storefront parity additions.
   Template classes live in styles.css; only NEW glue styles belong here:
   topbar announcement rotator, header/footer currency selects, the sale
   purchase popup (this template ships no pop-notice-sale styles, so the
   base card styles are defined here), flash-sale countdown pills,
   quick-add size buttons and mobile sub-menus. */

/* ---------- Topbar announcement rotator ---------- */
.mcp-ann {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 24px;
}
.mcp-ann-slide {
    display: none;
    align-items: center;
    gap: 8px;
    margin: 0;
}
.mcp-ann-slide.active {
    display: flex;
    animation: mcpAnnFade 0.45s ease;
}
@keyframes mcpAnnFade {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}
.mcp-ann-prev,
.mcp-ann-next {
    cursor: pointer;
    user-select: none;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    padding: 2px 4px;
}

/* ---------- Header / footer currency + language selects ---------- */
.tf-currencies .mcp-currency-select,
.tf-languages .mcp-select {
    max-width: 190px;
}
.nav-icon-list .nav-icon-item {
    position: relative;
}
.nav-icon-list .wishlist-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--white);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

/* ---------- Mobile menu sub lists ---------- */
.nav-ul-mb .mb-sub-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0 0 0 16px;
}
.nav-ul-mb .mb-sub-list .mb-menu-link {
    font-size: 15px;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* ---------- Sale purchase popup ---------- */
/* Base card: bottom-left placement (the layout instance only). */
.pop-notice-sale {
    position: fixed;
    left: 24px;
    bottom: 24px;
    right: auto;
    top: auto;
    z-index: 1022;
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: 8px;
    min-width: 340px;
    box-shadow: 0px 10px 25px 0px rgba(43, 52, 74, 0.1215686275);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(16px);
}
.pop-notice-sale.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.pop-notice-sale .pns-thumb {
    position: relative;
    max-width: 63px;
    width: 100%;
    flex-shrink: 0;
}
.pop-notice-sale .pns-thumb .image {
    border-radius: 4px;
    overflow: hidden;
}
.pop-notice-sale .pns-thumb .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pop-notice-sale .purchase {
    padding: 6px;
    background: var(--primary);
    position: absolute;
    left: -8px;
    top: -8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pop-notice-sale .pns-content {
    width: 100%;
    display: grid;
    align-content: start;
}
.pop-notice-sale .pns-content .bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pop-notice-sale .pns_date {
    display: flex;
    align-items: center;
    gap: 4px;
}
.pop-notice-sale .btn-cl-pop {
    position: absolute;
    right: 12px;
    top: 12px;
    cursor: pointer;
}
@media (max-width: 575px) {
    .pop-notice-sale {
        left: 12px;
        bottom: 76px; /* clear the mobile toolbar */
        min-width: 0;
        max-width: calc(100vw - 24px);
    }
}

/* ---------- Product card parity (flash countdown / size quick-add) ---------- */
/* Flash-sale countdown pill on product cards (styles.css positions .product-countdown). */
.product-countdown .countdown-pill {
    font-size: 12px;
    line-height: 16px;
    font-weight: 600;
    color: var(--primary);
    white-space: nowrap;
}

/* Quick-add size buttons inside the template .product-size_list pill. */
.product-size_list .size-item-btn {
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
}
.product-size_list .size-item-btn:hover {
    color: var(--primary);
}

/* List layout: keep card info readable next to the image wrapper. */
.tf-list-layout .card-product.product-style_list {
    width: 100%;
}
.tf-list-layout .card-product_info .product-action_list {
    margin-top: 4px;
}

/* Sidebar facet counts sit next to size pills / labels without breaking template layout. */
.filter-group-size li {
    display: flex;
    align-items: center;
    gap: 6px;
}
.widget-facet .count {
    color: var(--text-3, #868686);
}

/* Lookbook pins: template positions exist in styles.css; ensure banner clips pins. */
.banner-lookbook {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}
.banner-lookbook .img-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mini-cart drawer: real session items use the template list markup;
   keep long carts scrollable like the template intends. */
.popup-shopping-cart .tf-mini-cart-items {
    display: grid;
    gap: 16px;
}

/* V4 glue: brand strip — this template ships no brand component styles, so the
   infiniteslide row + fixed contain cells (V1 polish pattern) live here. */
.tf-brand { display: flex; align-items: center; gap: 48px; overflow: hidden; }
.tf-brand .brand-item { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; opacity: 0.55; transition: opacity 0.3s ease-in-out; }
.tf-brand .brand-item:hover { opacity: 1; }

/* V5 coordinator note: the V4 palette-alias block that lived here
   (--primary: var(--Primary) etc.) is REMOVED for this template — it
   already defines the lowercase names itself (--primary #D80027,
   --white, --black), and the capitalised names do not exist here, so the
   aliases would have invalidated every var() in the template CSS. */

/* V4 glue: HOT SALE card marquee — this template's CSS carries only the
   hover rule for .product-marquee_sale, so the component base + scroll
   animation (same component as the other Musify themes) live here. */
.product-marquee_sale {
    font-weight: 600;
    background: var(--black);
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    color: var(--white);
    border-radius: 100px;
    padding: 4px 10px;
    font-size: 12px;
    line-height: 16px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    overflow: hidden;
    z-index: 2;
}
.product-marquee_sale .marquee-wrapper {
    display: flex;
    animation: mcpInfiniteScroll 7s linear infinite;
    align-items: center;
}
.product-marquee_sale .initial-child-container {
    gap: 4px;
    align-items: center;
    display: flex;
    flex-shrink: 0;
}
.product-marquee_sale .marquee-child-item {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.product-marquee_sale .marquee-child-item p {
    margin: 0;
    color: var(--white);
}
.product-marquee_sale .icon {
    color: var(--primary);
}
@keyframes mcpInfiniteScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}
@media (max-width: 1199px) {
    .product-marquee_sale { display: none; }
}

/* V4 glue: shop toolbar list-view glyph (two-bar span icon). */
.icon-list { display: grid; gap: 2px; }
.icon-list span {
    display: inline-block;
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background-color: var(--primary);
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}
.tf-view-layout-switch.active .icon-list span,
.tf-view-layout-switch:hover .icon-list span { background-color: var(--primary); }

/* V5 glue: product-card sale badge — the template markup uses the `sale`
   badge class but its styles.css defines no colour rule for it (best/new/
   trend/top exist; sale does not). Template red + white text. */
.product-badge_item.sale {
    background: var(--primary);
    color: var(--white);
}

/* V5 glue: view-local wrappers with no template rules (order-success,
   404, FAQ sidebar) — minimal presentation on top of Bootstrap utilities. */
.s-thankyou .thank-wrap {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}
.page-num {
    font-family: "Instrument Serif", serif;
    font-size: clamp(80px, 14vw, 160px);
    line-height: 1;
    color: var(--primary);
}
.box-help {
    padding: 24px;
    border: 1px solid var(--main_300);
    border-radius: 16px;
}

/* --- V9 homepage fixes (post-release visual QA) --- */
/* Banner Product tiles: the template sizes .item-image only inside media
   queries; at wide viewports collection photos rendered at natural size and
   blew out of the banner. Cap the tile image at every width. */
.banner-image-product-2 .item-image { width: 180px; max-width: 38%; }
.banner-image-product-2 .item-image,
.banner-image-product-2.type-sp-2 .item-image,
.banner-image-product-2 .item-image.position2,
.banner-image-product-2 .item-image.position3 {
    top: 50% !important; bottom: auto !important; transform: translateY(-50%) !important;
    height: 78%; display: flex; align-items: center; justify-content: center;
}
.banner-image-product-2 { overflow: hidden; }
.banner-image-product-2 .item-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; display: block; }
.banner-image-product-2 .name { display: block !important; -webkit-line-clamp: unset !important; line-clamp: unset !important; overflow: visible !important; }
@media (max-width: 767px) {
    .banner-image-product-2 .item-image { width: 120px; }
}
/* Instagram gallery: clean flex row (template ships no gallery component) */
.musify-gallery { display: flex; gap: 15px; }
.musify-gallery .mg-item { flex: 1 1 0; position: relative; border-radius: 10px; overflow: hidden; display: block; }
.musify-gallery .mg-item img { width: 100%; height: 220px; object-fit: cover; display: block; transition: transform .4s ease; }
.musify-gallery .mg-item:hover img { transform: scale(1.06); }
.musify-gallery .mg-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(16,24,40,.35); color: #fff; font-size: 26px; opacity: 0; transition: opacity .3s ease; }
.musify-gallery .mg-item:hover .mg-icon { opacity: 1; }
@media (max-width: 767px) {
    .musify-gallery { flex-wrap: wrap; }
    .musify-gallery .mg-item { flex: 1 1 30%; }
    .musify-gallery .mg-item img { height: 132px; }
}

