/* TikTok Shop - Estilos Principais */
/* Versão: 1.0 - Produção */

/* ============================
   FONT FACES
============================ */
@font-face {
    font-family: 'TikTokFont';
    src: url('../fonts/TikTokFont-Regular.woff2') format('woff2'),
         url('../fonts/TikTokFont-Regular.woff') format('woff'),
         url('../fonts/TikTokFont-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

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

@font-face {
    font-family: 'TikTokDisplayFont';
    src: url('../fonts/TikTokDisplayFont-Regular.woff2') format('woff2'),
         url('../fonts/TikTokDisplayFont-Regular.woff') format('woff'),
         url('../fonts/TikTokDisplayFont-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'TikTokDisplayFont';
    src: url('../fonts/TikTokDisplayFont-Semibold.woff2') format('woff2'),
         url('../fonts/TikTokDisplayFont-Semibold.woff') format('woff'),
         url('../fonts/TikTokDisplayFont-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

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

/* ============================
   RESET E BASE
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

.container {
    max-width: 100vw;
    background: white;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================
   SEÇÃO DE IMAGENS DO PRODUTO
============================ */
.product-images {
    position: relative;
    background: white;
}

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

.product-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease-in-out;
    background: #f8f9fa;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
    color: #666;
    font-size: 14px;
}

.image-loading.show {
    display: block;
}

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

.image-nav-buttons {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 12px;
    pointer-events: none;
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.2s ease-in-out;
    backdrop-filter: blur(4px);
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.nav-btn.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.image-thumbnails {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.image-thumbnails::-webkit-scrollbar {
    display: none;
}

.thumbnail {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.thumbnail.active {
    border-color: #00d4aa;
    box-shadow: 0 0 0 1px rgba(0, 212, 170, 0.3);
}

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

.thumbnail:hover {
    transform: scale(1.05);
}

/* ============================
   SEÇÃO DE PREÇOS
============================ */
.price-section {
    padding: 12px 16px;
    background: linear-gradient(90deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
}

.price-main {
    font-family: 'TikTokDisplayFont', 'TikTokFont', sans-serif;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.1;
    white-space: nowrap;
}

.price-original {
    text-decoration: line-through;
    color: #ffccaa;
    font-size: 20px;
    margin-right: 6px;
}

.price-savings {
    font-size: 16px;
    opacity: 0.9;
}

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

.price-info {
    flex: 1;
}

.flash-deal-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.flash-deal-text {
    font-family: 'TikTokFont', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.countdown {
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-align: right;
    margin-right: 4px;
}

/* ============================
   BANNER DE DESCONTO
============================ */
.discount-banner {
    background: white;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
}

.discount-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.discount-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.discount-text {
    color: #ff6b6b;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================
   INFORMAÇÕES DO PRODUTO
============================ */
.product-info {
    padding: 20px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 80px;
}

.product-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: #f0f0f0;
}

.product-title {
    font-family: 'TikTokDisplayFont', 'TikTokFont', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
}

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

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

.rating-text {
    color: #666;
    font-size: 14px;
}

/* ============================
   INFORMAÇÕES DE ENTREGA
============================ */
.shipping-info {
    padding: 20px 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 120px;
}

.shipping-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: #f0f0f0;
}

.shipping-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 0;
}

.shipping-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.shipping-details {
    flex: 1;
}

.shipping-free {
    color: #00d4aa;
    font-weight: 600;
    font-size: 16px;
}

.shipping-date {
    color: #666;
    font-size: 14px;
}

.shipping-fee {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

/* ============================
   CONTAINER DE ABAS
============================ */
.tabs-container {
    position: relative;
    z-index: 1000;
    background: white;
    width: 100%;
    transition: all 0.3s ease;
    margin-top: 4px;
}

.tabs-container.sticky-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-top: 0;
}

.tabs-placeholder {
    width: 100%;
    display: none;
    visibility: hidden;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.tabs {
    display: flex;
    background: white;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
}

.tab {
    font-family: 'TikTokFont', sans-serif;
    flex: 1;
    padding: 16px;
    text-align: center;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.tab.active {
    color: #333;
    font-weight: 600;
    border-bottom-color: #333;
}

/* ============================
   SEÇÕES DE CONTEÚDO
============================ */
.content-section {
    padding: 0;
    display: none;
}

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

/* Adicionar espaçamento no topo das seções para evitar corte */
.content-section.active .reviews-section {
    padding-top: 30px;
}

.content-section.active .description-section {
    padding-top: 30px;
}


/* ============================
   SEÇÃO DE AVALIAÇÕES
============================ */
.reviews-section {
    padding: 16px;
    position: relative;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: #f0f0f0;
}

.reviews-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    height: 0.5px;
    background: #f0f0f0;
}

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

.reviews-title {
    font-family: 'TikTokFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
}

.reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    box-shadow: 0 1px 0 0 #f0f0f0;
}

.rating-big {
    font-family: 'TikTokDisplayFont', sans-serif;
    font-size: 24px;
    font-weight: 700;
}

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

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

.review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    overflow: hidden;
}

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

.review-info {
    display: flex;
    flex-direction: column;
}

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

.review-time {
    color: #00d4aa;
    font-size: 11px;
    font-weight: 500;
}

.review-stars {
    color: #ffc107;
    font-size: 14px;
    margin: 4px 0;
}

.review-variant {
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
}

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

.review-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.review-image {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
}

.review-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.review-stats {
    padding: 16px;
    background: #fff;
    position: relative;
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
    box-shadow: 0 -1px 0 0 #f0f0f0;
}

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

.review-stats-title {
    font-family: 'TikTokFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.review-stats-header i {
    color: #999;
    font-size: 14px;
}

.review-stats-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f8f8f8;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #666;
    border: 1px solid #e8e8e8;
}

.image-filter {
    background: #333;
    color: white;
    border-color: #333;
}

.image-filter i {
    color: white;
    font-size: 12px;
}

.rating-filter .rating-number {
    color: #ffa500;
    font-weight: 600;
    font-size: 13px;
}

.rating-filter i {
    color: #ffa500;
    font-size: 12px;
}

/* ============================
   SEÇÃO DE GARANTIA TIKTOK
============================== */
.guarantee-section {
    padding: 24px 16px;
    background: white;
    position: relative;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guarantee-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: #f0f0f0;
}

.guarantee-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    margin-top: 0;
}

.guarantee-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.guarantee-title {
    font-family: 'TikTokFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: white;
    text-align: center;
}

.guarantee-content {
    background: #ff2d55;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guarantee-text {
    font-size: 14px;
    color: white;
    text-align: center;
    line-height: 1.5;
    margin-top: 4px;
}

/* ============================
   SEÇÃO DE DESCRIÇÃO
============================== */
.description-section {
    padding: 16px;
}

.description-section h3 {
    font-family: 'TikTokFont', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #333;
}

.description-section h4 {
    font-family: 'TikTokFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 12px;
    color: #333;
}

.description-section p {
    margin-top: 12px;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #666;
}

.description-section ul {
    line-height: 1.6;
    color: #666;
    padding-left: 20px;
}

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

/* ============================
   NAVEGAÇÃO INFERIOR
============================ */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #f0f0f0;
    display: flex;
    padding: 12px 16px;
    gap: 12px;
    z-index: 1001;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
    text-decoration: none;
}

.nav-icon {
    width: 20px;
    height: 20px;
    color: #666;
}

.add-cart-btn {
    font-family: 'TikTokFont', sans-serif;
    flex: 1;
    background: #f0f0f0;
    color: #333;
    border: none;
    padding: 12px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
}

.buy-btn {
    font-family: 'TikTokFont', sans-serif;
    flex: 1;
    background: #ff2d55;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.buy-btn:hover {
    background: #e6264a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 45, 85, 0.3);
}

.buy-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 45, 85, 0.2);
}

.buy-btn:focus {
    outline: 2px solid #ff2d55;
    outline-offset: 2px;
}

.buy-btn:visited {
    color: white;
}

/* ============================
   ESTILOS DO RODAPÉ
============================ */
.footer {
    background: white;
    padding: 24px 16px;
    margin-top: 4px;
}

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

.tiktok-shop-logo {
    height: 32px;
    width: auto;
}

.footer-benefits {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

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

.footer-apps {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    width: 100%;
}

.footer-apps img {
    width: 100%;
    height: auto;
    max-width: none;
}

.app-download img {
    height: 40px;
    border-radius: 8px;
}

.footer-top-button {
    display: flex;
    justify-content: center;
}

.top-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease-in-out;
}

.top-button:hover {
    background: #f5f5f5;
    transform: translateY(-2px);
}

/* ============================
   ANIMAÇÕES
============================ */
@keyframes slideDown {
    from {
        transform: translate(-50%, -20px);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}


@keyframes buttonPress {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.95);
    }
    100% {
        transform: scale(1);
    }
}

.button-pressed {
    animation: buttonPress 0.2s ease-out;
}

/* ============================
   RESPONSIVIDADE MOBILE
============================ */
@media (max-width: 480px) {
    .price-main {
        font-size: 22px;
    }
    
    .price-main span {
        font-size: 18px !important;
    }
    
    .discount-badge {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .discount-text {
        font-size: 11px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .footer-benefits {
        flex-direction: column;
        gap: 16px;
    }
    
    .footer-apps {
        flex-direction: column;
    }
    
    .buy-btn {
        font-size: 16px;
        padding: 14px;
        min-height: 48px;
    }
}

/* ============================
   RESPONSIVIDADE IPHONE
============================ */
@media (max-width: 390px) {
    .price-main {
        font-size: 20px;
    }
    
    .price-main span {
        font-size: 16px !important;
        margin-right: 4px !important;
    }
    
    .discount-content {
        gap: 6px;
    }
    
    .discount-badge {
        font-size: 10px;
        padding: 2px 5px;
    }
    
    .discount-text {
        font-size: 10px;
    }
}

/* ============================
   MODO ESCURO (OPCIONAL)
============================ */
.dark-theme {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.dark-theme .container {
    background: #2a2a2a;
}

.dark-theme .product-images {
    background: #2a2a2a;
}

.dark-theme .discount-banner {
    background: #2a2a2a;
    border-bottom-color: #404040;
}

.dark-theme .tabs-container {
    background: #2a2a2a;
    border-top-color: #404040;
    border-bottom-color: #404040;
}

.dark-theme .bottom-nav {
    background: #2a2a2a;
    border-top-color: #404040;
}

.dark-theme .footer {
    background: #2a2a2a;
    border-top-color: #404040;
}

.dark-theme .buy-btn {
    background: #ff2d55;
    color: white;
}

.dark-theme .buy-btn:hover {
    background: #e6264a;
}

/* ============================
   MODAL DE FRETE GRÁTIS
============================ */
.shipping-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-end;
    justify-content: center;
}

.shipping-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.shipping-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.shipping-modal-icon {
    position: absolute;
    left: 15px;
    font-size: 14px;
    color: #333;
}

.shipping-modal-header h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.shipping-modal-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.shipping-modal-close svg {
    width: 18px;
    height: 18px;
}

.shipping-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.shipping-section {
    margin-bottom: 16px;
}

.shipping-section:last-child {
    margin-bottom: 0;
}

.shipping-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 0;
}

.shipping-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
}

.shipping-service-item:last-child {
    margin-bottom: 0;
}

.shipping-service-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.shipping-service-icon i {
    font-size: 16px;
    color: #333;
    width: 100%;
    text-align: center;
}

.shipping-service-content {
    flex: 1;
}

.shipping-service-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.shipping-service-content p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.25;
}

/* Responsividade para desktop - Modal de Frete Grátis */
@media (min-width: 768px) {
    .shipping-modal {
        align-items: center;
    }
    
    .shipping-modal-content {
        border-radius: 12px;
        max-width: 450px;
        max-height: 70vh;
    }
    
    .shipping-modal-body {
        padding: 20px;
        max-height: 50vh;
    }
}

/* ============================
   MODAL DE DEVOLUÇÕES GRATUITAS
============================ */
.returns-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: flex-end;
    justify-content: center;
}

.returns-modal-content {
    background: white;
    width: 100%;
    max-width: 600px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: 80vh;
}

.returns-modal-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.returns-modal-icon {
    position: absolute;
    left: 15px;
    font-size: 14px;
    color: #333;
}

.returns-modal-header h2 {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.returns-modal-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.returns-modal-close svg {
    width: 18px;
    height: 18px;
}

.returns-modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    max-height: 60vh;
}

.returns-section {
    margin-bottom: 16px;
}

.returns-section:last-child {
    margin-bottom: 0;
}

.returns-section-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 10px 0;
    padding-bottom: 0;
}

.returns-service-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0;
}

.returns-service-item:last-child {
    margin-bottom: 0;
}

.returns-service-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 2px;
}

.returns-service-icon i {
    font-size: 16px;
    color: #333;
    width: 100%;
    text-align: center;
}

.returns-service-content {
    flex: 1;
}

.returns-service-content h4 {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px 0;
    line-height: 1.2;
}

.returns-service-content p {
    font-size: 11px;
    color: #666;
    margin: 0;
    line-height: 1.25;
}

/* Responsividade para desktop - Modal de Devoluções */
@media (min-width: 768px) {
    .returns-modal {
        align-items: center;
    }
    
    .returns-modal-content {
        border-radius: 12px;
        max-width: 450px;
        max-height: 70vh;
    }
    
    .returns-modal-body {
        padding: 20px;
        max-height: 50vh;
    }
}

/* ============================
   TELA DE PAGAMENTO PIX
============================ */
@media print {
    .bottom-nav,
    .image-nav-buttons,
    .top-button {
        display: none !important;
    }
    
    .container {
        box-shadow: none !important;
    }
    
    .price-section {
        background: #f5f5f5 !important;
        color: #333 !important;
    }
}

/* Options Section */
.options-section {
    padding: 16px 0 8px 0;
    border-top: none;
    position: relative;
}
.options-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: -16px;
    right: -16px;
    height: 1px;
    background: #f0f0f0;
}

.section-title {
    font-family: 'TikTokFont', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-bottom: 0;
}

.option-item {
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

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

.option-item.available {
    border-color: #00d4aa;
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.option-item.sold-out {
    opacity: 0.6;
    cursor: not-allowed;
}

.option-item.sold-out img {
    filter: grayscale(100%);
}

.sold-out-badge {
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff2d55;
    color: white;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
    font-family: 'TikTokFont', sans-serif;
}

.shipping-row:nth-of-type(2) .shipping-details {
    margin-bottom: 16px;
}
