.lg-mobile-stories-container {
    display: none !important;
}

@media (max-width: 768px) {
    .lg-desktop-stories {
        display: none !important;
    }
}

.lg-stories-shell {
    position: relative;
    margin: 40px auto;
    max-width: 1080px;
    padding: 0 18px;
}

.lg-stories-shell.is-static .lg-stories-nav {
    display: none;
}

.lg-stories-container {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 45px) / 3.5);
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 10px 0 14px;
    cursor: grab;
}

.lg-stories-container::-webkit-scrollbar {
    display: none;
}

.lg-stories-container.is-dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    user-select: none;
}

.lg-story-item {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    min-width: 0;
}

.lg-story-item:hover {
    transform: translateY(-4px);
}

.lg-stories-nav {
    display: none !important;
}

.lg-stories-nav[disabled] {
    opacity: 0.3;
    cursor: not-allowed;
}

.lg-story-circle-wrapper {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffb100, #ff6a00);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(255, 106, 0, 0.2);
}

.lg-story-circle-wrapper.viewed {
    background: linear-gradient(135deg, #22c55e, #0f766e);
}

.lg-story-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 2px solid #fff;
}

.lg-story-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.lg-story-title {
    margin-top: 10px;
    max-width: 100%;
    text-align: center;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-story-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(2, 6, 23, 0.96);
    opacity: 0;
    transition: opacity 0.22s ease;
    overscroll-behavior: contain;
    touch-action: pan-y;
}

.lg-story-modal.active {
    display: block;
    opacity: 1;
}

.lg-story-reels-shell {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lg-story-reels-track {
    width: 100%;
    height: 100%;
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

.lg-story-reel-slide {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 24px;
    user-select: none;
    -webkit-user-select: none;
}

.lg-story-reel-phone {
    position: relative;
    width: min(100%, 420px);
    height: min(92vh, 860px);
    border-radius: 32px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateZ(0);
}

.lg-story-reel-progress {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

.lg-story-reel-progress span {
    flex: 1;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
}

.lg-story-reel-progress span.is-active {
    background: #fff;
}

.lg-story-reel-media,
.lg-story-reel-media iframe,
.lg-story-reel-media video {
    width: 100%;
    height: 100%;
}

.lg-story-reel-media iframe,
.lg-story-reel-media video {
    border: 0;
    display: block;
    object-fit: cover;
    background: #000;
}

.lg-story-reel-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.04) 30%, rgba(0, 0, 0, 0.72) 100%);
    pointer-events: none;
}

.lg-story-reel-top,
.lg-story-reel-bottom {
    position: absolute;
    left: 16px;
    right: 16px;
    z-index: 3;
}

.lg-story-reel-top {
    top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 12px;
}

.lg-story-reel-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.lg-story-reel-meta img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.24);
}

.lg-story-reel-meta strong,
.lg-story-reel-meta span {
    display: block;
}

.lg-story-reel-meta strong {
    font-size: 14px;
}

.lg-story-reel-meta span {
    font-size: 12px;
    color: rgba(255,255,255,0.72);
}

.lg-story-modal-close {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    background: rgba(255,255,255,0.12);
    font-size: 22px;
}

.lg-story-reel-bottom {
    bottom: 18px;
}

.lg-story-reel-bottom h4 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 24px;
    line-height: 1.05;
}

.lg-story-reel-product {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
    text-decoration: none;
    margin-bottom: 12px;
}

.lg-story-reel-product-copy strong,
.lg-story-reel-product-copy span {
    display: block;
}

.lg-story-reel-product-copy strong {
    color: #fff;
    font-size: 14px;
}

.lg-story-reel-product-copy span {
    color: rgba(255,255,255,0.74);
    font-size: 12px;
}

.lg-story-reel-product img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 16px;
}

.lg-story-reel-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.lg-story-reel-cta {
    min-height: 48px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 0;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}

.lg-story-reel-cta:hover {
    transform: translateY(-1px);
}

.lg-story-reel-cta-ghost {
    color: #fff;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(16px);
}

.lg-story-reel-cta-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #fb7185);
    box-shadow: 0 14px 32px rgba(251, 113, 133, 0.28);
}

.lg-story-cart-sheet[hidden] {
    display: none;
}

.lg-story-cart-sheet {
    position: absolute;
    inset: 0;
    z-index: 8;
}

.lg-story-cart-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.52);
    backdrop-filter: blur(8px);
}

.lg-story-cart-dialog {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(92%, 360px);
    border-radius: 28px;
    padding: 22px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 26px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease, box-shadow 0.24s ease;
    overflow: hidden;
}

.lg-story-cart-dialog.is-loading {
    box-shadow: 0 30px 70px rgba(251, 191, 36, 0.18);
}

.lg-story-cart-dialog.is-success {
    transform: translateX(-50%) translateY(-8px) scale(1.01);
    box-shadow: 0 34px 90px rgba(34, 197, 94, 0.22);
}

.lg-story-cart-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}

.lg-story-cart-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 18px;
    padding-right: 36px;
}

.lg-story-cart-kicker {
    color: rgba(255,255,255,0.58);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lg-story-cart-title {
    color: #fff;
    font-size: 18px;
    line-height: 1.2;
}

.lg-story-cart-price {
    color: #fcd34d;
    font-size: 13px;
    font-weight: 700;
}

.lg-story-cart-qty {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 10px;
    margin-bottom: 14px;
}

.lg-story-cart-qty-btn,
.lg-story-cart-qty-input,
.lg-story-cart-submit {
    min-height: 48px;
    border-radius: 16px;
    border: 0;
}

.lg-story-cart-qty-btn {
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.lg-story-cart-qty-input {
    width: 100%;
    text-align: center;
    background: rgba(255,255,255,0.08);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.lg-story-cart-submit {
    width: 100%;
    background: linear-gradient(135deg, #fbbf24, #fb7185);
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 18px 34px rgba(251, 113, 133, 0.22);
}

.lg-story-cart-submit:hover {
    transform: translateY(-1px);
}

.lg-story-cart-submit:disabled {
    opacity: 0.74;
    cursor: wait;
}

.lg-story-cart-feedback {
    min-height: 18px;
    margin: 12px 2px 0;
    color: rgba(255,255,255,0.74);
    font-size: 12px;
    text-align: center;
    transition: color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lg-story-cart-feedback.is-loading {
    color: rgba(255,255,255,0.88);
}

.lg-story-cart-feedback.is-success {
    color: #86efac;
    transform: translateY(-1px);
}

.lg-story-cart-feedback.is-error {
    color: #fca5a5;
}

.lg-story-cart-success {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px;
    background: radial-gradient(circle at top, rgba(74, 222, 128, 0.2), rgba(15, 23, 42, 0.96) 58%);
    opacity: 0;
    pointer-events: none;
    transform: scale(0.94);
    transition: opacity 0.28s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-story-cart-dialog.is-success .lg-story-cart-success {
    opacity: 1;
    transform: scale(1);
}

.lg-story-cart-dialog.is-success .lg-story-cart-copy,
.lg-story-cart-dialog.is-success .lg-story-cart-qty,
.lg-story-cart-dialog.is-success .lg-story-cart-submit,
.lg-story-cart-dialog.is-success .lg-story-cart-close,
.lg-story-cart-dialog.is-success .lg-story-cart-feedback {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.lg-story-cart-success-icon {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: #052e16;
    font-size: 28px;
    font-weight: 900;
    box-shadow: 0 16px 36px rgba(34, 197, 94, 0.34);
    animation: lgStoryCartPulse 0.8s ease;
}

.lg-story-cart-success strong {
    color: #f8fafc;
    font-size: 20px;
}

.lg-story-cart-success span {
    color: rgba(226, 232, 240, 0.86);
    font-size: 13px;
    text-align: center;
}

@keyframes lgStoryCartPulse {
    0% {
        transform: scale(0.8);
    }
    55% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
    }
}

.lg-story-reels-nav {
    position: absolute;
    right: max(24px, calc(50vw - 320px));
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 4;
}

.lg-story-reels-nav button {
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,0.12);
    font-size: 20px;
    cursor: pointer;
}

.lg-story-reels-nav button[disabled] {
    opacity: 0.32;
    cursor: not-allowed;
}

/* ── Botão de Curtida ─────────────────────────────────── */
.lg-story-reel-sidebar {
    position: absolute;
    right: 14px;
    bottom: 130px;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.lg-story-like-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px 8px;
    border-radius: 16px;
    transition: background 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.lg-story-like-btn:hover {
    background: rgba(255,255,255,0.1);
}

.lg-story-like-btn svg {
    width: 30px;
    height: 30px;
    color: #fff;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.45));
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease, fill 0.18s ease;
}

.lg-story-like-btn.is-liked svg {
    color: #ff3366;
    filter: drop-shadow(0 2px 8px rgba(255,51,102,0.55));
}

.lg-story-like-btn:active svg {
    transform: scale(1.45);
}

.lg-story-like-count {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
    line-height: 1;
}

@keyframes lgLikeHeartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.5); }
    70%  { transform: scale(0.92); }
    100% { transform: scale(1); }
}

.lg-story-like-btn.is-liked svg {
    animation: lgLikeHeartPop 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.lg-story-reel-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #fff;
    padding: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .lg-stories-shell {
        padding: 0 14px;
    }

    .lg-stories-container {
        grid-auto-columns: calc((100% - 24px) / 3.15);
        gap: 12px;
    }

    .lg-story-reels-nav {
        display: none;
    }
}

@media (max-width: 640px) {
    .lg-stories-shell {
        padding: 0 12px;
    }

    .lg-stories-container {
        grid-auto-columns: calc((100% - 20px) / 3.05);
        gap: 10px;
    }

    .lg-story-circle-wrapper {
        width: 72px;
        height: 72px;
    }

    .lg-story-title {
        font-size: 12px;
        margin-top: 8px;
    }

    .lg-story-reel-slide {
        padding: 0;
    }

    .lg-story-reel-phone {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .lg-story-cart-dialog {
        width: calc(100% - 24px);
        bottom: 12px;
        border-radius: 24px;
        padding: 18px;
    }

    .lg-story-reel-actions {
        grid-template-columns: 1fr;
    }
}
