/* Reset e Configurações Gerais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    line-height: 1.5;
    padding-bottom: 80px;
}

/* Cabeçalho */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    max-width: 100%;
}

.btn-close {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
    font-weight: 300;
}

.header-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: #000;
    padding: 0;
    font-size: 24px;
    line-height: 1;
}

.btn-icon svg {
    display: block;
    stroke-width: 2;
}

/* Galeria de Imagens */
.gallery {
    margin-top: 56px;
    background: #fff;
    position: relative;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 375px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.gallery-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-weight: 300;
}

.gallery-btn-prev {
    left: 12px;
}

.gallery-btn-next {
    right: 12px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: #fff;
}

.indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d0d0d0;
    transition: all 0.3s;
}

.indicator.active {
    background: #000;
    width: 20px;
    border-radius: 3px;
}

/* Banner de Oferta */
.offer-banner {
    background: linear-gradient(90deg, #ff3b5c 0%, #ff6b4a 100%);
    color: white;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

.fire-icon {
    font-size: 16px;
}

.offer-text {
    letter-spacing: 0.3px;
}

.timer-label {
    margin-left: 4px;
}

.timer {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    background: rgba(0, 0, 0, 0.15);
    padding: 2px 6px;
    border-radius: 3px;
}

/* Seção de Preço */
.price-section {
    background: #fff;
    padding: 16px;
}

.price-container {
    margin-bottom: 10px;
}

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

.price-current {
    font-size: 28px;
    font-weight: 700;
    color: #fe2c55;
    letter-spacing: -0.5px;
}

.price-badge {
    color: #fe2c55;
}

.price-badge svg {
    width: 18px;
    height: 18px;
}

.price-old-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.discount {
    background: #fe2c55;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.product-title {
    font-size: 15px;
    font-weight: 400;
    color: #161823;
    line-height: 1.4;
    margin-top: 8px;
}

/* Cabeçalho do Produto */
.product-header {
    background: #fff;
    padding: 16px;
    margin-top: 1px;
}

.product-subtitle {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #161823;
}

.rating-container {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

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

.star {
    font-size: 14px;
    color: #d0d0d0;
}

.star.filled {
    color: #ffc107;
}

.star.half {
    background: linear-gradient(90deg, #ffc107 50%, #d0d0d0 50%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-number {
    color: #161823;
    font-weight: 500;
}

.sales-count {
    color: #8a8a8a;
}

/* Seção de Opções */
.options-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

.option-group {
    margin-bottom: 20px;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #161823;
    font-size: 14px;
}

.option-sublabel {
    color: #8a8a8a;
    font-size: 13px;
    margin-bottom: 10px;
}

.option-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.option-btn {
    padding: 8px 16px;
    border: 1px solid #e1e1e1;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    transition: all 0.2s;
    color: #161823;
}

.option-btn.active {
    border-color: #fe2c55;
    background: #fff;
    color: #fe2c55;
    font-weight: 500;
}

.color-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.color-btn {
    padding: 12px 14px;
    border: 1px solid #e1e1e1;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    text-align: left;
    font-size: 13px;
    transition: all 0.2s;
    color: #161823;
}

.color-btn.active {
    border-color: #fe2c55;
    background: #fff;
    color: #fe2c55;
    font-weight: 500;
}

/* Seção de Entrega */
.shipping-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

.shipping-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}

.shipping-icon {
    color: #1890ff;
    flex-shrink: 0;
}

.shipping-details {
    margin-bottom: 10px;
    color: #8a8a8a;
    font-size: 13px;
}

.shipping-details p {
    margin: 4px 0;
}

.shipping-highlight {
    color: #00c853;
    font-weight: 500;
}

.return-policy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px;
    background: #f8f8f8;
    border-radius: 4px;
    font-size: 12px;
    color: #8a8a8a;
}

.return-icon {
    color: #00c853;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Seção de Ofertas */
.offers-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

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

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #161823;
}

.btn-more {
    background: none;
    border: none;
    font-size: 20px;
    color: #8a8a8a;
    cursor: pointer;
}

.offer-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    gap: 12px;
}

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

.offer-content p {
    font-size: 12px;
    color: #8a8a8a;
    line-height: 1.4;
}

.btn-offer {
    padding: 8px 20px;
    background: #00c853;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s;
    font-size: 13px;
}

.btn-offer:hover {
    background: #00b248;
}

/* Seção de Avaliações */
.reviews-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

.reviews-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #161823;
}

.review-card {
    padding: 12px;
    background: #f8f8f8;
    border-radius: 4px;
    margin-bottom: 10px;
}

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

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.review-info {
    flex: 1;
}

.review-name {
    font-weight: 500;
    margin-bottom: 4px;
    font-size: 13px;
    color: #161823;
}

.review-stars {
    color: #ffc107;
    font-size: 12px;
    letter-spacing: 1px;
}

.review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #161823;
}

/* Seção da Loja */
.store-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

.store-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.store-logo {
    width: 44px;
    height: 44px;
    background: #f0f0f0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a8a8a;
    flex-shrink: 0;
}

.store-info {
    flex: 1;
}

.store-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #161823;
}

.store-info p {
    font-size: 12px;
    color: #8a8a8a;
}

.btn-follow {
    padding: 6px 20px;
    background: #fff;
    border: 1px solid #fe2c55;
    color: #fe2c55;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    font-size: 13px;
}

.btn-follow:hover {
    background: #fe2c55;
    color: white;
}

/* Seção de Descrição */
.description-section {
    background: #fff;
    padding: 16px;
    margin-top: 8px;
}

.description-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #161823;
}

.description-section h4 {
    font-size: 14px;
    font-weight: 600;
    margin: 16px 0 10px;
    color: #161823;
}

.description-section p {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #161823;
    font-size: 13px;
}

.description-section ul {
    margin: 10px 0 12px 18px;
    line-height: 1.6;
}

.description-section li {
    margin-bottom: 6px;
    color: #161823;
    font-size: 13px;
}

.benefits-list {
    list-style: none;
    margin-left: 0;
}

.benefits-list li {
    padding-left: 0;
}

.special-offer {
    background: #fffbea;
    border-left: 3px solid #ffc107;
    padding: 12px;
    margin-top: 16px;
    border-radius: 4px;
}

.special-offer p {
    margin-bottom: 6px;
    font-size: 13px;
}

.special-offer p:last-child {
    margin-bottom: 0;
}

/* Barra Inferior Fixa */
.fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-top: 1px solid #e1e1e1;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 999;
    gap: 12px;
}

/* Navegação à esquerda */
.nav-icons {
    display: flex;
    gap: 16px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #161823;
    font-size: 11px;
    gap: 4px;
    transition: color 0.2s;
    min-width: 50px;
}

.nav-item:hover {
    color: #fe2c55;
}

.nav-item svg {
    display: block;
    width: 24px;
    height: 24px;
    stroke-width: 2;
}

/* Botões de ação à direita */
.action-buttons {
    display: flex;
    gap: 8px;
    flex: 1;
    max-width: 500px;
}

.btn-action {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}

.btn-secondary {
    background: #fff;
    border: 1px solid #d0d0d0;
    color: #161823;
}

.btn-secondary:hover {
    background: #f5f5f5;
}

.btn-primary {
    background: #fe2c55;
    color: white;
    border: 1px solid #fe2c55;
}

.btn-primary:hover {
    background: #e02849;
}

/* Responsividade */
@media (max-width: 768px) {
    .price-current {
        font-size: 26px;
    }
    
    .product-title {
        font-size: 14px;
    }
    
    .gallery-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}

@media (min-width: 768px) {
    body {
        background: #f0f0f0;
    }
    
    .header-container,
    .gallery,
    .offer-banner,
    .price-section,
    .product-header,
    .options-section,
    .shipping-section,
    .offers-section,
    .reviews-section,
    .store-section,
    .description-section {
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .fixed-bottom-bar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
    }
}

