/* Fonts */
@font-face {
    font-family: 'TikTokFont';
    src: url('./fonts/TikTokFont-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'TikTokFont';
    src: url('./fonts/TikTokFont-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'TikTokFont';
    src: url('./fonts/TikTokFont-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'TikTokDisplayFont';
    src: url('./fonts/TikTokDisplayFont-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

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

html, body {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'TikTokFont', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.mobile-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    background-color: #fff;
    min-height: 100vh;
    position: relative;
}

/* Header Styles */
.header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    margin-right: 12px;
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 12px;
}

.logo-image {
    height: 32px;
    width: auto;
    object-fit: contain;
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #FF0050;
    border-radius: 20px;
    padding: 8px 12px;
    margin-right: 12px;
    max-width: 200px;
}

.search-icon {
    margin-right: 8px;
}

.search-text {
    color: #FF0050;
    font-size: 14px;
    font-weight: 400;
}

.profile-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

/* Product Image Section */
.product-image-container {
    position: relative;
    background-color: #fff;
    padding: 20px;
    text-align: center;
}

.product-image {
    width: 100%;
    max-width: 300px;
    height: 300px; /* Fixed height */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: grab;
    user-select: none;
}

.product-image:active {
    cursor: grabbing;
}
/* Fundo do modal */
.modal {
    position: fixed;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 9999;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    padding: 20px;
}


/* Conteúdo */
.modal-content {
  background: #fff;
  width: 100%;
  max-height: 90%;
  border-radius: 16px 16px 0 0;
  padding: 16px;
  animation: slideUp 0.3s ease;
}

/* Animação */
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Fechar */
.close-btn {
  font-size: 24px;
  float: right;
  cursor: pointer;
}

/* Cabeçalho */
.modal-header {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-product-img {
  width: 80px;
  border-radius: 8px;
}

.modal-price {
  font-size: 20px;
  font-weight: bold;
  color: #000;
}

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

.discount {
  color: red;
  font-weight: bold;
}

/* Opções */
.color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-box {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.color-box.selected {
  border: 2px solid #ff0050;
}

/* Quantidade */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  background: #f9f9f9;
  cursor: pointer;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 4px;
}

/* Botão */
.modal-buy-btn {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #ff0050;
  color: #fff;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
/* Efeito de cor selecionada */
.color-options {
    display: flex;
    gap: 10px;
}

.color-box {
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.color-box:hover {
    border-color: #ff0050; /* destaque ao passar o mouse */
}

.color-box.selected {
    border-color: #ff0050;  /* borda da cor selecionada */
    background-color: #ffe5eb; /* leve fundo para destacar */
    font-weight: bold;
}


.product-img {
    width: 100%;
    height: 100%; /* Fill container height */
    border-radius: 8px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    object-fit: cover;
    pointer-events: none;
    z-index: 1;
    display: block;
}

.product-img.active {
    opacity: 1 !important;
    z-index: 10;
    display: block !important;
}

/* Ensure first image is visible on page load */
.product-img[data-index="1"] {
    opacity: 1;
    z-index: 10;
}

.drag-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    animation: fadeInOut 3s ease-in-out;
    z-index: 15;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* Temporary navigation buttons for testing */
.temp-nav {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.cart-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-counter {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 20;
    pointer-events: none;
}

/* Product Details */
.product-details {
    padding: 0 16px 100px;
}

.price-section {
    margin-bottom: 12px;
}

.current-price {
    font-family: 'TikTokDisplayFont', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin-bottom: 4px;
}

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

.strikethrough {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.discount {
    font-size: 14px;
    color: #FF0050;
    font-weight: 600;
}

.product-title {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.4;
    margin-bottom: 8px;
}

.seller-info {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}

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

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

.stars {
    font-size: 16px;
    font-weight: 600;
    color: #000;
}

.star-icon {
    width: 16px;
    height: 16px;
}

.review-count {
    font-size: 14px;
    color: #999;
}

.sold-count {
    font-size: 14px;
    color: #999;
}

/* Options Section */
.options-section {
    margin-bottom: 20px;
}

.option-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.option-row:last-child {
    border-bottom: none;
}

.option-label {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.option-value {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    font-size: 14px;
}

.delivery-info {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    margin-left: auto;
    width: fit-content;
}

/* Reviews Section */
.reviews-section {
    margin-bottom: 20px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

/* Review Cards */
.review-card {
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

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

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

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

.review-rating {
    display: flex;
    align-items: center;
}

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

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

.view-more {
    color: #FF0050;
    font-weight: 500;
    cursor: pointer;
}

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

.review-image {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

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

.review-image.more {
    position: relative;
}

.more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.review-time {
    font-size: 12px;
    color: #999;
}

/* About Shop Section */
.about-shop-section {
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    margin-bottom: 16px;
}

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

.shop-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.shop-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
}

.shop-name {
    font-size: 8px;
    color: #000;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shop-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
}

.visit-button-container {
    display: flex;
    justify-content: center;
}

.visit-shop-btn {
    background: #f5f5f5;
    color: #000;
    border: none;
    padding: 8px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.visit-shop-btn:hover {
    background: #e8e8e8;
}

/* About Product Section */
.about-product-section {
    margin-bottom: 20px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.specifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-bottom: 16px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f5f5f5;
}

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

.spec-label {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.spec-value {
    font-size: 14px;
    color: #000;
    font-weight: 500;
}

/* Product Description */
.product-description {
    margin-top: 16px;
}

.description-title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin-bottom: 12px;
}

.description-content {
    font-size: 14px;
    line-height: 1.5;
    color: #000;
}

.description-paragraph {
    margin-bottom: 16px;
    padding: 12px 0;
}

.description-paragraph:last-child {
    margin-bottom: 0;
}

.description-emoji {
    font-size: 16px;
    margin-right: 8px;
}

.description-paragraph strong {
    font-weight: 600;
    color: #000;
}

.description-paragraph br {
    margin-bottom: 8px;
}

/* Footer */
.footer {
    background: #fff;
    padding: 24px 16px 80px;
    border-top: 1px solid #f0f0f0;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.tiktok-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.tiktok-text {
    font-family: 'TikTokDisplayFont', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #000;
}

.shop-text {
    font-family: 'TikTokFont', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #000;
    margin-top: -2px;
}

.footer-sections {
    margin-bottom: 24px;
}

.footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.footer-section:hover {
    background-color: #f9f9f9;
}

.footer-section span {
    font-size: 16px;
    color: #000;
    font-weight: 600;
}

.promotional-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.promo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: gray;
}

.promo-item span {
    font-size: 14px;
    color: gray;
    font-weight: 500;
}

.download-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.download-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.download-btn:hover {
    background: #f9f9f9;
    border-color: #ccc;
}

.download-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.download-small {
    font-size: 10px;
    color: #666;
    font-weight: 400;
    line-height: 1;
}

.download-large {
    font-size: 14px;
    color: #000;
    font-weight: 600;
    line-height: 1.2;
}

.scroll-to-top {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Buy Button */
.buy-button-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 16px;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
    z-index: 1000;
}

.buy-button {
    width: 100%;
    background-color: #FF0050;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'TikTokFont', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
}

.buy-button:hover {
    background-color: #e6004a;
}

.buy-button:active {
    background-color: #cc0040;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mobile-container {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    .buy-button-container {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }
    
    body {
        margin: 0;
        padding: 0;
        width: 100vw;
        overflow-x: hidden;
    }
}

@media (max-width: 375px) {
    .mobile-container {
        width: 100vw;
        max-width: 100vw;
        margin: 0;
        padding: 0;
    }
    
    .buy-button-container {
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
    }
}

/* Animation for cart icon */
.cart-icon:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* Hover effects for interactive elements */
.option-row:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

.reviews-header:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}

/* Ensure proper spacing for fixed button */
body {
    padding-bottom: 0;
}
