:root {
    --primary-red: #FF214F;
    --secondary-pink: #FFECF0;
    --star-yellow: #FFB800;
    --bg-gray: #F5F5F5;
    --text-dark: #222222;
    --text-gray: #666666;
    --text-light: #999999;
    --border-color: #EAEAEA;
    --success-green: #31B047;
    --price-color: #FF214F;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.4;
    overflow-x: hidden;
    max-width: 500px;
    /* Typical mobile width for preview */
    margin: 0 auto;
}

.container {
    background-color: #fff;
    width: 100%;
}

/* Typography */
h1 {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.price-main {
    font-size: 24px;
    font-weight: bold;
    color: var(--price-color);
}

.price-original {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 12px;
}

/* Badges */
.badge-discount {
    background-color: var(--primary-red);
    color: #fff;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
    padding: 12px;
    cursor: pointer;
}

.btn-secondary {
    background-color: var(--bg-gray);
    color: var(--text-dark);
    border: none;
    font-weight: bold;
    border-radius: 4px;
    width: 100%;
    padding: 12px;
    cursor: pointer;
}

/* Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.p-4 {
    padding: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.main-wrapper {
    background-color: #fff;
    min-height: 100vh;
}

/* Top Nav */
.top-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background-color: #fff;
    border-bottom: 1px solid var(--border-color);
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #F2F2F2;
    border-radius: 4px;
    padding: 6px 12px;
    height: 36px;
}

.search-placeholder {
    color: var(--text-gray);
    font-size: 13px;
}

.nav-left svg,
.nav-right svg {
    color: #333;
}

.nav-right {
    display: flex;
    gap: 16px;
}

/* Product Carousel */
.product-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.image-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.image-wrapper::-webkit-scrollbar {
    display: none;
}

.image-container {
    flex: 0 0 100%;
    width: 100%;
    position: relative;
    aspect-ratio: 1/1;
    scroll-snap-align: start;
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

.battery-overlay {
    position: absolute;
    top: 20px;
    right: 12px;
    font-family: 'Brush Script MT', cursive;
    font-size: 24px;
    transform: rotate(-10deg);
    color: #000;
    pointer-events: none;
    font-weight: bold;
}

.page-indicator {
    position: absolute;
    bottom: 20px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    z-index: 10;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Pricing & Discount Section */
.pricing-title-section {
    background-color: #fff;
}

.discount-banner {
    background-color: var(--primary-red);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    color: #fff;
}

.discount-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.discount-badge-large {
    background-color: #fff;
    color: var(--primary-red);
    padding: 2px 6px;
    font-weight: bold;
    border-radius: 2px;
    font-size: 14px;
}

.price-current {
    font-size: 24px;
    font-weight: bold;
}

.price-old {
    text-decoration: line-through;
    opacity: 0.8;
    font-size: 14px;
}

.ticket-icon {
    margin-left: 4px;
}

.payment-info {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    font-size: 13px;
    color: #666;
    background-color: #fff;
}

/* Vouchers */
.voucher-bar {
    display: flex;
    gap: 8px;
    padding: 0 12px 12px;
    overflow-x: auto;
    white-space: nowrap;
    background-color: #fff;
}

.voucher-item-pink {
    background-color: var(--secondary-pink);
    color: var(--primary-red);
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 500;
}

/* Product Info */
.product-info {
    padding: 12px;
    background-color: #fff;
}

.product-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.product-title h1 {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.4;
    color: #333;
}

.bookmark-icon {
    color: #333;
    margin-top: 2px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
    color: var(--star-yellow);
}

.sold-count {
    color: #999;
}

/* Tabs */
.tabs-nav {
    display: flex;
    gap: 0;
    padding: 0 12px;
    background-color: #fff;
}

.tab-item {
    padding: 12px 16px;
    font-size: 14px;
    color: #666;
    position: relative;
}

.tab-item.active {
    color: var(--primary-red);
    font-weight: bold;
}

.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--primary-red);
}

/* Video Grid */
.creators-section {
    background-color: #fff;
    margin-top: 8px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.video-item {
    position: relative;
    aspect-ratio: 9/16;
    border-radius: 4px;
    overflow: hidden;
    background-color: #000;
}

.video-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.creator-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: center;
    gap: 4px;
}

.creator-info img {
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.creator-info span {
    color: #fff;
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Bottom Action Bar */
.bottom-action-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 500px;
    height: 60px;
    background-color: #fff;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-top: 1px solid var(--border-color);
    z-index: 1000;
}

.action-icons {
    display: flex;
    gap: 20px;
    margin-right: 20px;
}

.action-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #666;
}

.action-icon-item span {
    font-size: 10px;
}

.action-buttons {
    flex: 1;
    display: flex;
    gap: 8px;
}

.add-cart-btn {
    flex: 1;
    height: 44px;
    background-color: #FFF0F0;
    color: var(--primary-red);
    border: 1px solid var(--primary-red);
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.buy-now-btn {
    flex: 1.2;
    height: 44px;
    background-color: var(--primary-red);
    color: #fff;
    border: none;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
}

/* Reviews Section Styles */
.reviews-section {
    background-color: #fff;
    padding: 16px 12px;
    margin-top: 8px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.reviews-header h2 {
    font-size: 15px;
    font-weight: 600;
}

.reviews-header .view-all {
    font-size: 12px;
    color: var(--primary-red);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-card {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.review-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.review-user-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #eee;
}

.review-username {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.review-stars {
    display: flex;
    gap: 2px;
    color: var(--star-yellow);
    margin-bottom: 6px;
}

.review-text {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.review-photos {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.review-photo-item {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
    background-color: #f5f5f5;
}


.btn-price {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.9;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* TikTok Shop Style Footer */
.site-footer {
    background-color: #F8F8F8;
    padding: 32px 16px 100px;
    border-top: 1px solid #EAEAEA;
    text-align: left;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-brand-name {
    font-size: 18px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-brand-name::before {
    content: '';
    width: 20px;
    height: 20px;
    background: linear-gradient(45deg, #FE2C55, #25F4EE);
    border-radius: 4px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.footer-col-title {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.footer-link-list {
    list-style: none;
}

.footer-link-item {
    margin-bottom: 12px;
}

.footer-link-anchor {
    color: #666;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-link-anchor:hover {
    color: #000;
}

.footer-trust-section {
    border-top: 1px solid #EAEAEA;
    padding-top: 24px;
    margin-bottom: 24px;
}

.footer-trust-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 16px;
}

.footer-payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-payment-icons img {
    height: 18px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.footer-payment-icons img:hover {
    opacity: 1;
    filter: none;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 16px;
}

.footer-copyright-text {
    font-size: 11px;
    color: #999;
}

.footer-legal-note {
    font-size: 10px;
    color: #BBB;
    line-height: 1.4;
}