:root {
    --bg-color: #121212;
    --surface-color: #242424;
    --surface-hover: #2c2c2c;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-orange: #ff6000;
    --accent-glow: rgba(255, 96, 0, 0.4);
    --star-color: #ffc107;
    --danger: #ff6b6b;
    --success: #4cd183;
    --max-width: 480px;
    --footer-height: 132px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body.lpg-body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #000;
    color: var(--text-primary);
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

.lpg-body img { max-width: 100%; display: block; }
.lpg-body a { text-decoration: none; color: inherit; }
.lpg-body button { font-family: inherit; }

a:focus-visible, button:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 2px;
}

.app-container {
    width: 100%;
    max-width: var(--max-width);
    background-color: var(--bg-color);
    min-height: 100vh;
    position: relative;
    padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
}

@media (min-width: 540px) {
    body.lpg-body { padding: 32px 16px; align-items: flex-start; }
    .app-container {
        min-height: auto;
        border-radius: 20px;
        box-shadow: 0 30px 70px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);
        overflow: hidden;
    }
}

.video-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
}

.video-container iframe,
.video-container video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}

.carousel-track {
    position: absolute;
    inset: 0;
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-img-link {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-dots {
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 6;
}
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}
.carousel-dot.active {
    background: #fff;
    transform: scale(1.3);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(24px, 8vw, 40px) clamp(14px, 4vw, 20px) 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.video-overlay h2 {
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.video-author { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: #ddd; }
.video-author img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }

.content { padding: clamp(16px, 5vw, 24px); }

.product-title { font-size: clamp(1.1rem, 4vw, 1.3rem); font-weight: 600; line-height: 1.4; margin-bottom: 10px; }

.rating-row { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; flex-wrap: wrap; }
.stars { color: var(--star-color); font-size: 1.1rem; letter-spacing: -2px; }
.rating-count { color: var(--text-secondary); font-size: 0.9rem; }

.price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.current-price { font-size: clamp(1.3rem, 5vw, 1.5rem); font-weight: 700; }
.old-price { color: var(--text-secondary); font-size: 1rem; text-decoration: line-through; }

.badge {
    background-color: rgba(255, 107, 107, 0.12);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.shipping-note { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 4px; }
.price-asof { color: var(--text-secondary); font-size: 0.72rem; margin-bottom: 20px; }
.price-asof a { color: var(--text-secondary); text-decoration: underline; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 24px; }
@media (max-width: 359px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }

.feature-card {
    background-color: var(--surface-color);
    border-radius: 12px;
    padding: 15px 5px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feature-card .material-symbols-outlined { font-size: 24px; }
.feature-card p { color: var(--text-secondary); font-size: 0.75rem; line-height: 1.25; }

.description { font-size: 0.95rem; line-height: 1.55; margin-bottom: 8px; }
.description-sub { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; margin-bottom: 20px; }

.specs {
    background-color: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 4px 16px;
    margin-bottom: 8px;
}
.specs .row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 0.85rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.specs .row:last-child { border-bottom: none; }
.specs .k { color: var(--text-secondary); }
.specs .v { font-weight: 600; text-align: right; }

.reviews-section { margin-top: 4px; }
.reviews-heading { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }

.review-card {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.review-card:last-child { border-bottom: none; }

.review-avatar {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-orange), #ffbc00);
    color: #111;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-body { flex: 1; min-width: 0; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 3px; }
.review-name { font-size: 0.85rem; font-weight: 600; }
.review-stars { color: var(--star-color); font-size: 0.8rem; letter-spacing: -1px; white-space: nowrap; }
.review-text { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.5; }

.sticky-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--max-width);
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 20px calc(20px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255,255,255,0.1);
    z-index: 100;
}
@media (min-width: 540px) { .sticky-footer { border-radius: 0 0 20px 20px; } }

.cta-btn {
    width: 100%;
    background: linear-gradient(90deg, #ffbc00, #ff9900);
    color: #111;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 153, 0, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    margin-bottom: 18px;
}
.cta-btn:hover { box-shadow: 0 10px 30px rgba(255, 153, 0, 0.4); }
.cta-btn:active { transform: scale(0.98); box-shadow: 0 4px 15px rgba(255, 153, 0, 0.3); }

.lpg-disclosure {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-bottom: 12px;
}

.bottom-nav { display: flex; justify-content: space-around; align-items: center; padding: 0 10px; flex-wrap: wrap; gap: 6px; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-secondary); transition: color 0.15s ease; }
.nav-item:hover { color: var(--text-primary); }
.nav-item span.material-symbols-outlined { font-size: 22px; }
.nav-item p { font-size: 0.68rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---------- Discount claim popup ---------- */
.lpg-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.72);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}
.lpg-popup-overlay[hidden] { display: none; }

.lpg-popup {
    position: relative;
    width: 100%;
    max-width: 340px;
    background: var(--surface-color);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 28px 22px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lpg-popup h3 { font-size: 1.15rem; margin-bottom: 10px; }
.lpg-popup p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.5; margin-bottom: 16px; }

.lpg-popup-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

.lpg-popup-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 16px;
}
.lpg-popup-code span { font-weight: 700; letter-spacing: 1px; }
.lpg-popup-code button {
    background: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 0.75rem;
    cursor: pointer;
}

.lpg-popup-claim {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #ffbc00, #ff9900);
    color: #111;
    font-weight: 700;
    padding: 12px;
    border-radius: 30px;
}
