/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.4;
    overflow-x: hidden;
}


/* Header */
.header {
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #000000;
    cursor: pointer;
    padding: 8px;
}

.header-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #000000;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.cart-btn .cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background-color: #ff0050;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    background-color: #ffffff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 60px;
    z-index: 99;
}

.tab {
    flex: 1;
    background: none;
    border: none;
    padding: 16px 8px;
    font-size: 14px;
    font-weight: 500;
    color: #666666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tab.active {
    color: #000000;
    font-weight: 600;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #ff0050;
}

/* Main Content */
.main-content {
    padding-bottom: 100px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Product Images */
.product-images {
    position: relative;
    background-color: #1a1a1a;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.image-counter {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Price Section */
.price-section {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    padding: 20px 16px;
    color: white;
    position: relative;
}

.flash-deal {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.discount {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
}

.original-price {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.8;
}

.installment {
    font-size: 14px;
    margin-bottom: 12px;
}

.flash-offer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.flash-offer i {
    font-size: 16px;
}

.countdown {
    font-size: 12px;
    font-weight: 600;
}

.additional-offer {
    background-color: #ff0050;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Product Info */
.product-info {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating i {
    color: #ffc107;
    font-size: 14px;
}

.sales {
    font-size: 14px;
    color: #666666;
}

.shipping-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
}

.shipping-info i {
    color: #4caf50;
}

/* Product Variations */
.product-variations {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.variation-grid {
    display: flex;
    gap: 8px;
}

.variation-item {
    width: 60px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.variation-item.active {
    border-color: #ff0050;
}

.variation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variation-text {
    font-size: 14px;
    color: #666666;
}

/* Services Section */
.services-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.services-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.service-item i {
    color: #4caf50;
    font-size: 16px;
}

/* Offers Section */
.offers-section {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.offers-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.offer-cards {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.offer-card {
    min-width: 280px;
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-content h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.offer-content p {
    font-size: 12px;
    color: #666666;
}

.redeem-btn {
    background-color: #20b2aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Creator Videos */
.creator-videos {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.creator-videos h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.video-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
}

.video-item {
    min-width: 120px;
}

.video-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
}

.video-thumbnail img {
    width: 120px;
    height: 160px;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.video-text {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
}

.video-banner {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff0050;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
}

.creator-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

.creator-info img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.creator-info span {
    font-size: 12px;
    color: #666666;
}

/* Customer Reviews */
.customer-reviews {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reviews-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.see-more {
    font-size: 14px;
    color: #ff0050;
    cursor: pointer;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.rating-score {
    font-size: 18px;
    font-weight: 600;
}

.stars {
    display: flex;
    gap: 2px;
}

.stars i {
    color: #ffc107;
    font-size: 16px;
}

.review-preview {
    border-top: 1px solid #f0f0f0;
    padding-top: 12px;
}

.reviewer-info {
    display: flex;
    gap: 12px;
}

.reviewer-info img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.reviewer-details {
    flex: 1;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 4px;
}

.review-stars i {
    color: #ffc107;
    font-size: 12px;
}

.review-item {
    font-size: 12px;
    color: #666666;
}

/* Reviews Tab Content */
.reviews-content {
    padding: 16px;
}

.review-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 16px 0;
}

.review-item:last-child {
    border-bottom: none;
}

.review-text {
    margin: 12px 0;
    font-size: 14px;
    line-height: 1.4;
}

.review-images {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.review-images img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Shop Reviews */
.shop-reviews {
    margin: 24px 0;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}

.shop-reviews h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.review-filters {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: #f8f9fa;
}

.filter-btn i {
    color: #ffc107;
}

/* Shop Info */
.shop-info {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #f0f0f0;
}

.shop-details {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.shop-details img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.shop-text h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.shop-text span {
    font-size: 14px;
    color: #666666;
}

.visit-btn {
    background-color: #f0f0f0;
    color: #000000;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-left: auto;
}

.more-from-shop {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666666;
    cursor: pointer;
}

/* Description Tab Content */
.description-content {
    padding: 16px;
}

.description-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.description-content p {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.delivery-section {
    margin: 20px 0;
}

.delivery-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ff0050;
}

.notes-section {
    margin: 20px 0;
}

.notes-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.notes-section ol {
    padding-left: 20px;
}

.notes-section li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-description {
    margin: 20px 0;
}

.product-description h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-description ul {
    padding-left: 20px;
}

.product-description li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.product-details {
    margin: 20px 0;
}

.product-details h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.detail-item:last-child {
    border-bottom: none;
}

/* Recommendations Tab Content */
.recommendations-content {
    padding: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    height: 150px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discount-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: #ff0050;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.flash-offer-tag {
    position: absolute;
    top: 8px;
    right: 8px;
    background-color: #ff0050;
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 600;
    text-align: center;
}

.flash-offer-tag i {
    display: block;
    font-size: 10px;
    margin-bottom: 2px;
}

.countdown {
    font-size: 8px;
    margin-top: 2px;
}

.play-overlay {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-text-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #000000;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
}

.top-shop-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: #ff0050;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 8px;
    font-weight: 600;
}

.product-card h4 {
    font-size: 12px;
    font-weight: 500;
    padding: 8px;
    line-height: 1.3;
}

.price-info {
    padding: 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-price {
    font-size: 14px;
    font-weight: 600;
    color: #ff0050;
}

.original-price {
    font-size: 10px;
    color: #666666;
    text-decoration: line-through;
}

.rating-sales {
    padding: 0 8px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #666666;
}

.rating-sales i {
    color: #ffc107;
    font-size: 10px;
}

/* Bottom Action Bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

.bottom-actions {
    display: flex;
    gap: 24px;
}

.bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666666;
    font-size: 12px;
}

.bottom-btn i {
    font-size: 18px;
}

.purchase-actions {
    display: flex;
    gap: 12px;
}

.add-to-cart {
    background-color: #f0f0f0;
    color: #000000;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

.buy-now {
    background-color: #ff0050;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .product-card h4 {
        font-size: 11px;
    }
    
    .current-price {
        font-size: 13px;
    }
    
    .purchase-actions {
        gap: 8px;
    }
    
    .add-to-cart,
    .buy-now {
        padding: 10px 16px;
        font-size: 13px;
        min-width: 100px;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Animation for tab switching */
.tab-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
