/* ── Shoppable Reel — Frontend CSS v3 ── */

.src-wrap {
    --ink: #1a1a1a;
    --gold: #B8965A;
    position: relative;
    width: 100%;
}

/* ══ CAROUSEL ══ */
.src-carousel-outer {
    position: relative;
    overflow: hidden;
}

.src-carousel-track {
    display: flex;
    gap: 0;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
}

/* ══ ITEM ══ */
.src-item {
    flex-shrink: 0;
    aspect-ratio: 4/5;
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    border-radius: 15px;
    margin-right: 12px;
}

.src-item.src-empty {
    pointer-events: none;
    cursor: default;
}

.src-item-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform .6s ease;
    z-index: 0;
}

.src-item:hover .src-item-bg {
    transform: scale(1.04);
}

.src-item-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s;
    z-index: 1;
}

.src-item:hover .src-item-video {
    opacity: 1;
}

/* Gradient — stronger at bottom */
.src-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .75) 0%,
            rgba(0, 0, 0, .20) 50%,
            rgba(0, 0, 0, 0) 75%);
    z-index: 2;
}

/* ══ PLAY ICON top-right ══ */
.src-play-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 6;
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, .18);
    pointer-events: none;
    transition: opacity .3s;
}

.src-play-icon svg {
    width: 11px;
    height: 11px;
    fill: rgba(255, 255, 255, .9);
    margin-left: 2px;
}

.src-item:hover .src-play-icon {
    opacity: 0;
}

/* ══ PRODUCT GRID AT BOTTOM ══ */
.src-prod-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    gap: 5px;
    align-items: flex-end;
    padding: 0px 20px 20px;
    transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
}

.src-prod-grid .src-pg-thumb {
    padding: 0;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, .4);
    flex-shrink: 0;
    background: #333;
    box-sizing: border-box;
}

.src-prod-grid .src-pg-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Fading on last 4 when > 4 products */
.src-prod-grid[data-count="5"] .src-pg-thumb:nth-last-child(1) {
    opacity: .2;
}

.src-prod-grid[data-count="5"] .src-pg-thumb:nth-last-child(2) {
    opacity: .45;
}

.src-prod-grid[data-count="6"] .src-pg-thumb:nth-last-child(1) {
    opacity: .2;
}

.src-prod-grid[data-count="6"] .src-pg-thumb:nth-last-child(2) {
    opacity: .35;
}

.src-prod-grid[data-count="6"] .src-pg-thumb:nth-last-child(3) {
    opacity: .55;
}

.src-prod-grid[data-count="7"] .src-pg-thumb:nth-last-child(1) {
    opacity: .2;
}

.src-prod-grid[data-count="7"] .src-pg-thumb:nth-last-child(2) {
    opacity: .35;
}

.src-prod-grid[data-count="7"] .src-pg-thumb:nth-last-child(3) {
    opacity: .55;
}

.src-prod-grid[data-count="7"] .src-pg-thumb:nth-last-child(4) {
    opacity: .7;
}

/* On hover push grid up — by its own height (thumb 34px + bottom-pad 20px = 54px) so it sits above the shop btn */
.src-item:hover .src-prod-grid {
    transform: translateY(-74px);
}

/* ══ SHOP THE REEL BUTTON — calc width, centred, 20px bottom margin ══ */
.src-shop-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 20px));
    z-index: 5;
    background: rgba(255, 255, 255, .95);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    cursor: pointer;
    width: calc(100% - 40px);
    text-align: center;
    opacity: 0;
    transition: opacity .3s, transform .35s cubic-bezier(.4, 0, .2, 1);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}

.src-item:hover .src-shop-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ══ EMPTY PLACEHOLDER ══ */
.src-empty-placeholder {
    position: absolute;
    inset: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
}

/* ══ NAV ROW (desktop only) ══ */
.src-nav-btn {
    width: 36px;
    height: 36px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a !important;
    flex-shrink: 0;
    font-size: 18px;
    line-height: 1;
    transition: transform .18s, filter .18s;
    padding: 0 !important;
    /* Override Hub theme lqd-cc circle styles */
    --lqd-cc-size-outer: auto !important;
    --lqd-cc-size-inner: auto !important;
    --lqd-cc-bg: transparent !important;
    --lqd-cc-active-bg: transparent !important;
    --lqd-cc-bc: transparent !important;
    --lqd-cc-bw: 0px !important;
    --lqd-cc-br: 0px !important;
}

.src-nav-btn:hover {
    background: transparent !important;
    background-color: transparent !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
}

.src-nav-btn[id*="prev"]:hover {
    transform: translateX(-3px);
}

.src-nav-btn[id*="next"]:hover {
    transform: translateX(3px);
}

/* Hide the SVG, use CSS pseudo for reliable arrow rendering */
.src-nav-btn svg {
    display: none;
}

.src-nav-btn[id*="prev"]::before {
    content: "\2039";
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    display: inline;
    color: #1a1a1a;
}

.src-nav-btn[id*="next"]::before {
    content: "\203A";
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    display: inline;
    color: #1a1a1a;
}

.src-nav-counter {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #555;
    min-width: 36px;
    padding-left: 5px;
}
}

/* ══ FOOTER ROW (nav + share inline) ══ */
/* ══ SHARE BAR — above carousel ══ */
.src-wrap .src-share-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.src-wrap .src-share-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
    width: auto !important;
    justify-self: right;
    padding-bottom: 20px;
    margin-top: -30px;
}

/* ══ FOOTER ROW — arrows only ══ */
.src-wrap .src-footer-outer {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 10px 0 0;
    margin-top: 12px;
    width: 100%;
    box-sizing: border-box;
}

.src-wrap .src-nav-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px;
    padding: 0;
    width: auto !important;
    flex: 0 0 auto !important;
}

.src-share-lbl {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #999;
    margin-right: 2px;
}

.src-share-si {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: background .18s, transform .18s;
    flex-shrink: 0;
}

.src-share-si:hover {
    background: rgba(0, 0, 0, .16);
    transform: scale(1.1);
}

.src-share-si svg {
    width: 13px;
    height: 13px;
    fill: #1a1a1a;
}

/* Mobile counter inline with share */
.src-mob-counter {
    display: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    color: #555;
}

/* ══ POPUP OVERLAY ══ */
.src-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(6px);
    padding: 20px;
}

.src-popup-overlay.open {
    opacity: 1;
    pointer-events: all;
}

/* ── Desktop: centred fixed-size popup ── */
.src-popup {
    background: #fff;
    width: 100%;
    max-width: 900px;
    height: 70vh;
    max-height: 640px;
    border-radius: 16px;
    overflow: hidden;
    transform: scale(.95) translateY(12px);
    transition: transform .35s cubic-bezier(.4, 0, .2, 1), opacity .3s;
    opacity: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
}

.src-popup-overlay.open .src-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Close button */
.src-popup-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, .12);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    color: #fff;
    transition: background .15s;
    line-height: 1;
}

.src-popup-close:hover {
    background: rgba(0, 0, 0, .28);
}

.src-popup-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow: hidden;
}

/* ── Popup left: media ── */
.src-popup-media {
    position: relative;
    overflow: hidden;
    background: #111;
}

.src-popup-media-inner {
    position: absolute;
    inset: 0;
}

.src-popup-media-inner img,
.src-popup-media-inner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.src-popup-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, .92);
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
    z-index: 4;
}

/* ── Popup right ── */
.src-popup-products {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.src-popup-products-head {
    padding: 18px 18px 12px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.src-popup-products-head h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.src-popup-products-list {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

/* Product row */
.src-popup-product {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f8f8f8;
    transition: background .12s;
}

.src-popup-product:hover {
    background: #fafafa;
}

.src-popup-pin-num {
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}

.src-popup-product-img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #f5f5f5;
}

.src-popup-product-info {
    flex: 1;
    min-width: 0;
}

.src-popup-product-name {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 3px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: none;
    display: block;
}

.src-popup-product-name:hover {
    text-decoration: underline;
}

.src-popup-product-price {
    font-size: 12px;
    font-weight: 700;
    color: var(--gold);
}

.src-popup-atc {
    padding: 7px 11px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background .18s;
    flex-shrink: 0;
}

.src-popup-atc:hover {
    background: #333;
    color: #fff;
}

/* ── Popup footer ── */
.src-popup-footer {
    flex-shrink: 0;
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #fff;
}

.src-popup-nav {
    display: flex;
    align-items: center;
    gap: 7px;
}

.src-popup-nav-btn {
    width: 32px;
    height: 32px;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a !important;
    font-size: 22px;
    line-height: 1;
    padding: 0 !important;
    transition: transform .18s, filter .18s;
    --lqd-cc-size-outer: auto !important;
    --lqd-cc-size-inner: auto !important;
    --lqd-cc-bg: transparent !important;
    --lqd-cc-active-bg: transparent !important;
    --lqd-cc-bc: transparent !important;
    --lqd-cc-bw: 0px !important;
    --lqd-cc-br: 0px !important;
}

.src-popup-nav-btn:hover {
    background: transparent !important;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .25));
}

.src-popup-nav-btn svg {
    display: none;
}

.src-popup-nav-btn[id*="prev"]::before {
    content: "\2039";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    display: block;
    color: #1a1a1a;
}

.src-popup-nav-btn[id*="next"]::before {
    content: "\203A";
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    display: block;
    color: #1a1a1a;
}

.src-popup-nav-btn[id*="prev"]:hover {
    transform: translateX(-3px);
}

.src-popup-nav-btn[id*="next"]:hover {
    transform: translateX(3px);
}

.src-popup-nav-counter {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    letter-spacing: .06em;
}

.src-popup-share {
    display: flex;
    align-items: center;
    gap: 5px;
}

.src-popup-share-lbl {
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #999;
    margin-right: 2px;
}

.src-popup-si {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .07);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    text-decoration: none;
    transition: background .18s, transform .18s;
}

.src-popup-si:hover {
    background: rgba(0, 0, 0, .16);
    transform: scale(1.1);
}

.src-popup-si svg {
    width: 12px;
    height: 12px;
    fill: #1a1a1a;
}

/* ══ RESPONSIVE ══ */
@media(min-width:769px) {
    .src-wrap[data-slots="4"] .src-item {
        width: calc((100% - 36px) / 4);
    }

    .src-wrap[data-slots="5"] .src-item {
        width: calc((100% - 48px) / 5);
    }

    /* Default 4 slots */
    .src-item {
        width: calc((100% - 36px) / 4);
    }

    .src-mob-counter {
        display: none !important;
    }

    .src-pagination {
        display: none !important;
    }
}

@media(max-width:768px) {

    /* Hide desktop nav on mobile, show counter + share inline */
    .src-nav-row {
        display: none !important;
    }

    .src-mob-counter {
        display: block !important;
    }

    .src-pagination {
        display: none !important;
    }

    /* Ensure footer stays visible and laid out on mobile */
    .src-footer-outer {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0 0;
    }

    .src-share-row {
        justify-self: center !important;
    }

    .src-wrap[data-mob="1"] .src-item {
        width: calc(100% - 40px);
    }

    .src-wrap[data-mob="2"] .src-item {
        width: calc((100% - 12px) * 0.78);
    }

    .src-item {
        width: calc((100% - 12px) * 0.78);
    }

    /* Mobile popup: slide up from bottom, 70vh */
    .src-popup-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .src-popup {
        max-width: 100%;
        height: 70vh;
        max-height: none;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
        opacity: 1;
        box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
    }

    .src-popup-overlay.open .src-popup {
        transform: translateY(0);
    }

    .src-popup-inner {
        grid-template-columns: 1fr;
        grid-template-rows: 38vh 1fr;
    }

    .src-popup-media {
        max-height: 38vh;
    }

    .src-popup-close {
        background: rgba(0, 0, 0, .2);
        color: #fff;
    }
}