* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #ffffff;
    color: #262626;
    line-height: 1.5;
}

.page-container {
    min-height: 100vh;
    padding-bottom: 80px;
    max-width: 100%;
    margin: 0 auto;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.icon {
    width: 24px;
    height: 24px;
    color: #262626;
    cursor: pointer;
}

.icon-small {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.icon-arrow {
    width: 16px;
    height: 16px;
    color: #666;
}

.icon-check {
    width: 16px;
    height: 16px;
    color: #16a34a;
    flex-shrink: 0;
}

/* Product Image */
.product-image-container {
    position: relative;
    background-color: #f5f5f5;
    width: 100%;
}

.product-image-container img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

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

/* Price Section */
.price-section {
    background: linear-gradient(to right, #ff6384, #ff9db3);
    color: white;
    padding: 12px 16px;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-left {
    display: flex;
    flex-direction: column;
}

.price-main {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.price-value {
    font-size: 24px;
    font-weight: bold;
}

.price-discount {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-old {
    font-size: 14px;
    text-decoration: line-through;
}

.badge-save {
    background-color: #ff9933;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.price-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.badge-flash {
    background-color: #ff9933;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
}

.countdown {
    font-size: 12px;
}

.timer-value {
    font-weight: bold;
}

/* Product Info */
.product-info {
    padding: 16px;
}

.product-title {
    font-size: 24px;
    font-weight: bold;
    color: #262626;
    margin-bottom: 12px;
}

.rating-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 18px;
}

.rating-text {
    margin-left: 8px;
    font-weight: 600;
    color: #262626;
}

.reviews-link {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
}

.delivery-info {
    display: flex;
    gap: 32px;
    margin-bottom: 16px;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-title {
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.delivery-subtitle {
    font-size: 12px;
    color: #737373;
}

.store-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
}

.store-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.store-name {
    font-weight: 600;
    color: #262626;
}

/* Sections */
.section {
    padding: 16px;
    border-top: 8px solid #f5f5f5;
}

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

.selected-color,
.selected-size {
    color: #dc2626;
}

.size-guide-btn {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 14px;
    cursor: pointer;
}

.section-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #262626;
}

/* Color Grid */
.color-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.color-item {
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.color-item.active {
    border-color: #dc2626;
}

.color-item img {
    width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px;
}

.color-name {
    text-align: center;
    font-size: 12px;
    color: #262626;
}

/* Size Grid */
.size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.size-btn {
    padding: 12px;
    border: 2px solid #e5e5e5;
    background-color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.size-btn:hover {
    border-color: #dc2626;
}

.size-btn.active {
    border-color: #dc2626;
    background-color: #fef2f2;
    color: #dc2626;
}

/* TikTok Services */
.tiktok-services {
    margin: 16px;
    background-color: #fef9f0;
    border-radius: 8px;
    padding: 16px;
}

.tiktok-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 600;
    color: #262626;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #262626;
}

/* Details Grid */
.details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.detail-label {
    color: #737373;
    font-size: 14px;
}

.detail-value {
    color: #262626;
    font-weight: 500;
    font-size: 14px;
}

/* Description */
.description {
    color: #262626;
    font-size: 14px;
    line-height: 1.6;
}

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

.description ul {
    padding-left: 20px;
    margin: 8px 0;
}

.description li {
    margin-bottom: 4px;
}

/* Reviews */
.reviews-header {
    margin-bottom: 16px;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.review-item {
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 16px;
}

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

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}

.review-meta {
    font-size: 12px;
    color: #737373;
}

.review-text {
    margin-bottom: 12px;
    color: #262626;
    font-size: 14px;
    line-height: 1.6;
}

.review-image {
    width: 100%;
    max-width: 200px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.review-helpful {
    font-size: 12px;
    color: #737373;
}

/* Departments */
.departments {
    padding: 16px;
    border-top: 8px solid #f5f5f5;
}

.departments-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    color: #262626;
}

.departments-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.department-link {
    color: #991b1b;
    text-decoration: none;
    font-size: 14px;
}

.department-link:hover {
    text-decoration: underline;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    display: flex;
    gap: 12px;
    z-index: 50;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    color: #262626;
    font-size: 12px;
    cursor: pointer;
    padding: 8px;
}

.buy-btn {
    flex: 2;
    background: linear-gradient(to right, #ff6384, #ff9db3);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 12px;
}

/* Dialogs */
.dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

.dialog.active {
    display: block;
}

.dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    border-radius: 16px 16px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #e5e5e5;
}

.dialog-header h2 {
    font-size: 18px;
    font-weight: bold;
    color: #262626;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #737373;
    cursor: pointer;
    padding: 4px;
}

.dialog-body {
    padding: 16px;
}

.dialog-text {
    margin-bottom: 16px;
    color: #262626;
}

/* Store Stats */
.store-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    text-align: center;
}

.stat-item {
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #dc2626;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #737373;
}

/* Chat */
.chat-messages {
    min-height: 200px;
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 16px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.chat-message {
    margin-bottom: 12px;
    display: flex;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px;
    border-radius: 16px;
    font-size: 14px;
}

.chat-message.bot .chat-bubble {
    background-color: white;
    color: #262626;
}

.chat-message.user .chat-bubble {
    background-color: #dc2626;
    color: white;
}

.quick-questions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-btn {
    padding: 12px;
    background-color: #f5f5f5;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 14px;
    color: #262626;
    cursor: pointer;
    text-align: left;
}

.quick-btn:hover {
    background-color: #e5e5e5;
}

/* Responsive */
@media (min-width: 640px) {
    .page-container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .color-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}