html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #000;
    overflow: hidden;
    font-family: Poppins, Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

.reels-app {
    position: relative;
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
    background: #000;
}

.reels-track {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: none;
}

.reels-track::-webkit-scrollbar {
    display: none;
}

.reel-slide {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    content-visibility: auto;
    contain-intrinsic-size: 100dvh;
}

.reels-virtual-spacer {
    width: 100%;
    pointer-events: none;
    flex: 0 0 auto;
}

.reel-media-carousel {
    position: absolute;
    inset: 0;
    overflow: hidden;
    touch-action: pan-y pinch-zoom;
}

.reel-media-strip {
    display: flex;
    width: 200%;
    height: 100%;
    transform: translate3d(0, 0, 0);
}

.reel-media-strip.is-animated {
    transition: transform 0.28s ease;
}

.reel-media-panel {
    position: relative;
    flex: 0 0 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.reel-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

.reel-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    background: #000;
}

.reel-play-fallback {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 4.4rem;
    height: 4.4rem;
    transform: translate(-50%, -50%);
    border: 0;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    backdrop-filter: blur(8px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.reel-play-fallback.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.reel-play-fallback[hidden] {
    display: none;
}

.reel-play-fallback-icon {
    width: 0;
    height: 0;
    margin-left: 0.22rem;
    border-top: 0.78rem solid transparent;
    border-bottom: 0.78rem solid transparent;
    border-left: 1.2rem solid #fff;
}

.reel-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.14) 38%, rgba(0, 0, 0, 0.08) 100%);
}

.reel-copy {
    position: absolute;
    left: 1rem;
    right: 6.75rem;
    bottom: 1.25rem;
    color: #fff;
    z-index: 3;
    pointer-events: auto;
}

.reel-meta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.3rem;
    height: 1.8rem;
    padding: 0 0.7rem;
    margin-bottom: 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.reel-title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.reel-description {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.reel-panel-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    z-index: 6;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
    pointer-events: none;
}

.reel-panel-dot {
    width: 0.46rem;
    height: 0.46rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

.reel-panel-dot.is-active {
    background: #fff;
}

.floating-menu {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    min-height: min(80dvh, 38rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 5;
    pointer-events: auto;
}

@media only screen and (min-width: 1180px) and (max-width: 6000px) and (orientation: landscape) {
    .floating-menu {
        top: 50%;
		
        right: calc(50% - min(21dvh, 50vw));
        transform: translateY(-50%) translateX(100%);
        min-height: auto;
        justify-content: flex-start;
        margin-right: 0.75rem;
    }
}

.floating-menu a,
.floating-menu button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    min-height: 3.4rem;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.reel-like {
    margin-bottom: -0.55rem;
}

.icon1,
.icon2,
.icon3,
.icon4,
.icon17,
.icon18 {
    filter: brightness(0) invert(1) drop-shadow(3px 3px 4px #000);
}

.icon1,
.icon2,
.icon3,
.icon4,
.icon18 {
    width: 43px;
    height: 43px;
}

.icon17 {
    width: 43px;
    height: 39px;
}

.reel-like.is-liked img {
    filter: invert(19%) sepia(98%) saturate(5244%) hue-rotate(344deg) brightness(103%) contrast(101%);
}

.counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    min-height: 1rem;
    margin-top: -0.65rem;
    margin-bottom: 0.45rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.reels-hint {
    position: absolute;
    left: 50%;
    bottom: 0.2rem;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    z-index: 10;
    pointer-events: none;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.floating-window {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(92vw, 24rem);
    max-height: 95dvh;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.92);
    color: #fff;
    border-radius: 0.95rem;
    padding: 1rem;
    z-index: 200;
    overflow: auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

.floating-window.is-open {
    display: block;
}

.close-window {
    position: absolute;
    top: 0.55rem;
    right: 0.65rem;
    border: 0;
    background: gold;
    color: #000;
    border-radius: 999px;
    width: 2rem;
    height: 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.content {
    padding-top: 2rem;
}

.share-window,
.product-window,
.categories-window {
    width: min(92vw, 30rem);
    padding: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(180deg, rgba(18, 18, 18, 0.96) 0%, rgba(6, 6, 6, 0.98) 100%);
    backdrop-filter: blur(10px);
}

.share-header,
.categories-header {
    margin-bottom: 1rem;
    text-align: left;
}

.share-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.share-subtitle {
    margin: 0.3rem 0 0;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.68);
}

.sharenavs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.share-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    min-height: 6.4rem;
    text-align: center;
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1rem 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.share-card:hover,
.share-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.09);
}

.share-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
}

.share-card-icon img {
    width: 1.4rem;
    height: 1.4rem;
    object-fit: contain;
    display: block;
}

.share-card-label {
    font-size: 0.84rem;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
}

.share-card-x .share-card-icon {
    background: #111;
}

.share-card-facebook .share-card-icon {
    background: #1877f2;
}

.share-card-whatsapp .share-card-icon {
    background: #25d366;
}

.share-card-telegram .share-card-icon {
    background: #229ed9;
}

.share-card-email .share-card-icon {
    background: #7c3aed;
}

.share-card-copy .share-card-icon {
    background: #f59e0b;
}

.product-window-content {
    display: block;
}

.product-window-loading {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.product-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-card-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.product-card-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1.15;
    object-fit: cover;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.04);
}

.product-card-main {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.product-card-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    color: #fff;
}

.product-card-prices {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.product-card-price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.product-card-price-old {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
}

.product-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.product-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.7rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
}

.product-card-meta-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.62);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-card-meta-value {
    font-size: 0.86rem;
    color: #fff;
    line-height: 1.35;
}

.product-card-description {
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.92);
}

.product-card-description p {
    margin: 0 0 0.8rem;
}

.product-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.7rem;
    padding: 0 1rem;
    border-radius: 0.7rem;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.category-link {
    display: block;
    padding: 0.85rem 0.95rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    text-decoration: none;
    line-height: 1.35;
    word-break: break-word;
}

.category-link.is-active {
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(96, 165, 250, 0.65);
}

.reels-empty {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem;
    color: #fff;
    text-align: center;
}

@media (max-height: 700px) {
    .floating-menu {
        min-height: min(84dvh, 32rem);
    }

    .floating-menu a,
    .floating-menu button {
        min-height: 2.95rem;
    }
}

@media (min-width: 768px) {
    .reel-title {
        font-size: 1.08rem;
    }

    .reel-description {
        font-size: 0.9rem;
    }

    .floating-window {
        width: min(32rem, 88vw);
    }

    .share-window,
    .product-window,
    .categories-window {
        width: min(34rem, 88vw);
    }

    .product-card-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .product-card-grid {
        grid-template-columns: 1fr;
    }

    .product-card-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media only screen and (min-width: 1180px) and (max-width: 6000px) and (orientation: landscape) {
    .reel-media {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .reel-video {
        position: relative;
        inset: auto;
        width: auto;
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        max-width: none;
        margin: 0 auto;
        object-fit: contain;
        object-position: center center;
    }
}