/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background: #f5f5f5;
    padding-bottom: 80px;
}

/* CONTAINER PADRÃO */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
}

/* TOPO */
.top-bar {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.top-bar .logo-mini {
    font-weight: bold;
    font-size: 18px;
}

.top-bar nav a {
    margin-left: 15px;
    color: #0066ff;
    text-decoration: none;
    font-size: 14px;
}

/* GRID PRINCIPAL DO PRODUTO */
.product-section {
    margin-top: 20px;
}

.product-grid {
    display: grid;
    grid-template-columns: 120px 1fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

/* MINIATURAS */
.thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thumbs img {
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    background: white;
    cursor: pointer;
    transition: .2s;
}

.thumbs img:hover {
    border-color: #0071ff;
    transform: scale(1.04);
}

.thumbs img.active {
    border-color: #0071ff;
    transform: scale(1.07);
}

/* IMAGEM PRINCIPAL */
.image-viewer img {
    width: 100%;
    border-radius: 12px;
}

/* INFO DO PRODUTO */
.product-info h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rating {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}

/* PREÇOS */
.price-box {
    background: #fff5f7;
    padding: 15px;
    border: 1px solid #ffd7df;
    border-radius: 12px;
    margin-bottom: 20px;
}

.old-price {
    text-decoration: line-through;
    color: #666;
    font-size: 14px;
}

.current-price {
    color: #ff004f;
    font-size: 34px;
    font-weight: bold;
    display: block;
    margin: 5px 0;
}

.discount {
    font-size: 14px;
    color: green;
}

/* BOTÃO */
.btn-buy {
    background: #ff004f;
    color: white;
    padding: 14px 22px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    display: block;
    width: 100%;
    border-radius: 8px;
    text-decoration: none;
    transition: .2s;
}

.btn-buy:hover {
    background: #d91b3a;
}

/* INFO DE ENVIO */
.shipping-info {
    margin-top: 20px;
    color: #444;
    font-size: 14px;
}

/* RESPONSIVO */
@media (max-width: 820px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .thumbs {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .thumbs img {
        width: 70px;
    }
}

/* ==== AVALIAÇÕES ==== */
.reviews-section {
    margin-top: 35px;
    padding: 0 15px;
}

.reviews-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.review-summary {
    margin-bottom: 15px;
    color: #444;
    font-size: 14px;
}

.review-stars {
    font-size: 16px;
    color: #ffcc00;
    margin-bottom: 3px;
}

/* Fotos dos clientes */
.review-photos {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}

.review-photos img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 6px;
    background: #eee;
}

/* Card das reviews */
.review-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.review-card h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.review-card p {
    font-size: 13px;
    color: #555;
    line-height: 1.35;
}

.see-more-reviews {
    display: inline-block;
    margin-top: 10px;
    background: #fff;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    font-size: 13px;
}

/* ==== HEADER TOPO ==== */
.lp-header {
    width: 100%;
    height: 70px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.lp-icon-btn {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lp-icon-btn img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(0);
}

.lp-right-icons {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ==== CARROSSEL CORRIGIDO ==== */
.carousel {
    width: 100%;
    aspect-ratio: 1 / 1; /* 🔥 deixa sempre quadrado */
    overflow: hidden;
    position: relative;
    background: #fff;
}

/* Track corrigido */
.carousel-track {
    display: flex;
    height: 100%;
    width: max-content; /* 🔥 permite todas as imagens deslizarem */
    transition: transform 0.35s ease;
}

/* Slides */
.carousel-track img {
    width: 100vw;     /* 🔥 garante 1:1 perfeito */
    height: 100vw;
    max-width: 100%;
    object-fit: contain;
    flex-shrink: 0;   /* 🔥 impede encolhimento */
    background: white;
    user-select: none;
    pointer-events: none;
}

/* PONTINHOS */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0 4px;
}

.carousel-dots span {
    width: 8px;
    height: 8px;
    background: #d5d5d5;
    border-radius: 50%;
    display: block;
}

.carousel-dots .active {
    background: #ff4d6d;
}

.flash-wrapper {
    width: 100%;
    background: #f5f5f5;
}

.flash-box {
    background: linear-gradient(to right, #FF4081, #FF5252, #FF6F61);
    color: white;
    padding: 10px 16px;
    border-radius: 0;
    font-family: Arial, sans-serif;
}

/* Top Row */
.flash-row-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.flash-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-price {
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
}

.ticket-icon {
    width: 22px;
    height: 22px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

/* Badge */
.flash-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.zap-icon {
    width: 12px;
    height: 12px;
    fill: white;
    stroke: white;
}

/* Bottom row */
.flash-row-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.flash-old-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flash-old {
    color: rgba(255,255,255,0.9);
    text-decoration: line-through;
    white-space: nowrap;
}

.flash-save {
    background: linear-gradient(to right, #FF6F61, #FF8A65);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
}

/* Timer */
.flash-timer {
    white-space: nowrap;
}

#flashCountdown {
    font-family: monospace;
    font-weight: bold;
}

/* ==== BLOCO DETALHES DO PRODUTO (ABAIXO DO PREÇO) ==== */

.product-details {
    margin-top: 12px;
    margin-bottom: 20px;
}

.pd-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
}

/* linha estrelas + vendidos */
.pd-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.pd-rating-left {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.pd-stars {
    display: flex;
    gap: 2px;
    color: #ffc107;
    font-size: 14px;
}

.pd-rating-score {
    font-weight: 600;
}

.pd-rating-count {
    color: #777;
    font-size: 13px;
}

.pd-sold-right {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #777;
}

.pd-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* VARIANTES */

.pd-variants-block {
    margin-top: 8px;
    margin-bottom: 14px;
}

.pd-variants-label {
    font-size: 13px;
    font-weight: 500;
    display: block;
    margin-bottom: 6px;
}

.pd-variants-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;     /* Firefox */
}

.pd-variants-scroll::-webkit-scrollbar {
    display: none;             /* Chrome/Safari */
}

.pd-variant-card {
    border-radius: 8px;
    border: 2px solid #e5e5e5;
    background: #fff;
    padding: 6px;
    width: 65px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
}

.pd-variant-card:hover {
    border-color: #ccc;
}

.pd-variant-card.active {
    border-color: #ff1744;
    box-shadow: 0 0 0 1px rgba(255, 23, 68, 0.2);
}

.pd-variant-thumb {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-variant-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.pd-variant-name {
    font-size: 9px;
    text-align: center;
    line-height: 1.2;
    color: #555;
}

/* FRETE / DEVOLUÇÕES */

.pd-shipping-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}

.pd-shipping-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.pd-frete-pill {
    padding: 3px 8px;
    border-radius: 999px;
    background-color: #dbf7f8;
    color: #1a6f6a;
    font-size: 12px;
    font-weight: 500;
}

.pd-shipping-text {
    font-size: 13px;
    color: #555;
}

.pd-link-like {
    cursor: pointer;
}

.pd-link-like:hover {
    text-decoration: underline;
}

/* Responsivo – garante que tudo fique bonitinho no mobile */
@media (max-width: 820px) {
    .product-details .container {
        padding-inline: 16px;
    }
}

/* === SERVIÇOS TIKTOK SHOP === */

.tiktok-services {
    margin-top: 15px;
}

.tks-card {
    background: #faf8f3;
    border-radius: 10px;
    padding: 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* HEADER */
.tks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.tks-header-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.tks-title {
    font-size: 15px;
    font-weight: 700;
    color: #8b6914;
}

.tks-icon-shield {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #8b6914;
}

.tks-arrow {
    width: 16px;
    height: 16px;
    color: #bbb;
}

/* GRID */
.tks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    column-gap: 20px;
}

.tks-item {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.tks-item span {
    font-size: 12px;
    font-weight: 600;
    color: #222;
    line-height: 1.2;
}

/* ícone ✔ */
.tks-check {
    width: 14px;
    height: 14px;
    color: #8b6914;
    flex-shrink: 0;
    margin-top: 2px;
}
.tiktok-services.container {
    padding-top: 02px !important;
}

/* ============================
   SESSÃO DE AVALIAÇÕES TTK
   ============================ */

.reviews-ttk {
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
    margin-top: 10px;
}

/* Header */
.rt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.rt-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.rt-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 700;
}

.rt-stars {
    color: #ffc107;
    font-size: 16px;
}

/* Card */
.rt-card {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

/* User Row */
.rt-user-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rt-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.rt-no-avatar {
    background: #eee;
    display: flex;
    justify-content: center;
    font-size: 22px;
    color: #666;
}

.rt-user-info h3 {
    font-size: 14px;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rt-city,
.rt-time {
    font-size: 12px;
    color: #777;
}

.rt-dot {
    margin: 0 4px;
    color: #777;
}

/* Seguir */
.rt-follow-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

/* Texto */
.rt-text {
    font-size: 14px;
    color: #333;
    margin: 12px 0;
    line-height: 1.4;
}

/* Foto do review */
.rt-photo {
    width: 110px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: block;
}

/* Footer */
.rt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
}

.rt-like {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rt-like img {
    width: 16px;
}

.rt-likes-count {
    color: #777;
}

/* Ver mais */
.rt-more-btn {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    background: #fafafa;
    border: 1px solid #e3e3e3;
    cursor: pointer;
    font-size: 14px;
    margin: 2px 0;
}

/* Distribuição */
.rt-dist h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.rt-dist-list {
    list-style: none;
    padding: 0;
}

.rt-dist-list li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #f2f2f2;
}

.rt-number {
    color: #333;
    font-weight: 600;
}

/* Container da distribuição */
.rt-dist {
    margin-top: 10px;
    padding: 0 10px 20px;
}

/* Título */
.rt-dist h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Lista */
.rt-dist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

/* Cada linha */
.rt-dist-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 15px;
    color: #444;
}

/* Último item sem borda */
.rt-dist-list li:last-child {
    border-bottom: none;
}

/* Estrelas alinhadas à esquerda */
.rt-dist-list .rt-stars {
    color: #FFD700;
    font-size: 16px;
    margin-right: 10px;
    display: inline-block;
    width: 80px; /* deixa todas alinhadas */
}

/* Nome da faixa (ex: "5 estrelas") */
.rt-dist-list li span:nth-child(2) {
    flex: 1;
    text-align: left;
    margin-left: 5px;
}

/* Quantidade alinhada à direita */
.rt-dist-list .rt-number {
    font-weight: 600;
    width: 30px;
    text-align: right;
}

/* Container geral */
.store-info {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-top: 20px;
}

/* Título + status */
.si-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}

.si-title {
    font-weight: 600;
    color: #222;
}

.si-status {
    color: #16a34a;
    font-weight: 600;
}

/* Barra de confiança */
.si-progress {
    width: 100%;
    background: #eee;
    height: 8px;
    border-radius: 20px;
    overflow: hidden;
}

.si-bar {
    width: 85%;
    height: 100%;
    background: #ff4b5c;
    border-radius: inherit;
}

/* Benefícios */
.si-benefits {
    margin: 12px 0;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.si-benefit {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #666;
}

.si-icon {
    width: 14px;
    height: 14px;
}

.si-icon.star {
    color: #ff9800;
}

.si-icon.green {
    color: #0dbb55;
}

.si-icon.blue {
    color: #1e7ee2;
}

/* Loja oficial badge */
.si-official {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
}

.si-tag {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.si-since {
    color: #666;
}

/* Loja - linha principal */
.si-store-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* Logo com borda degradê */
.si-logo-border {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff4f7b, #7c5deb, #3ed4a6);
    padding: 2px;
    border-radius: 50%;
}

.si-logo-inner {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
}

.si-logo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Textos da loja */
.si-store-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

.si-store-info p {
    font-size: 12px;
    margin: 2px 0;
    color: #666;
}

/* Botão seguir */
.si-follow-btn {
    margin-left: auto;
    padding: 6px 16px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.si-follow-btn:hover {
    background: #f3f3f3;
}
.si-badges {
    display: flex;
    justify-content: space-between;
    margin: 6px 0 12px;
}

.si-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.si-badge svg {
    width: 12px;
    height: 12px;
}
.store-info {
    margin-top: 5px !important;
    padding-top: 0 !important;
}

.store-info h3,
.store-info h2,
.store-info h4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.si-follow-btn {
    border: 1px solid #ccc;
    background: #fff;
    color: #000;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* Estado SEGUINDO */
.si-follow-btn.following {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* Container geral */
.si-product-info {
    background: #f5f5f5;
    padding: 24px 16px 0;
    border-radius: 6px;
}

/* Título principal */
.si-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Wrapper interno */
.si-info-wrapper {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Subtítulos */
.si-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
}

/* Parágrafos */
.si-paragraph {
    margin-bottom: 12px;
}

/* Blocos separados */
.si-block {
    margin-bottom: 20px;
}

/* Listas */
.si-list {
    list-style: disc;
    padding-left: 20px;
}

.si-list li {
    margin-bottom: 4px;
}

/* Container da seção */
.si-dept {
    background: #f5f5f5;
    padding: 24px 16px;
    border-top: 1px solid #e5e5e5;
    margin-top: 0;
}

/* Título */
.si-dept-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

/* Lista de links */
.si-dept-links a {
    display: block;
    font-size: 14px;
    color: #222;
    padding: 8px 0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.si-dept-links a:hover {
    color: #ff4040; /* mesma cor do botão comprar da sua LP */
}

/* --- BARRA FIXA --- */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between; /* ícones à esquerda, botão à direita */
    align-items: center;
    gap: 16px;                      /* espaço entre ícones e botão */
    z-index: 999;
}

/* Container dos ícones */
.footer-actions {
    display: flex;
    gap: 24px;
}

/* Botões de ícone */
.footer-icon-btn {
    background: none;
    border: none;
    padding: 4px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}

/* Ícones */
.footer-icon-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 1.6;
}

/* Texto dos ícones */
.footer-icon-btn span {
    font-size: 11px;
    line-height: 1.1;
    color: #111;
    text-align: center;
}

.footer-icon-btn:hover {
    opacity: 0.7;
}

/* Botão Comprar Agora */
.footer-buy-btn {
    flex: 1;
    background: #ff2c55;
    border: none;
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.1;
    text-align: center;
    transition: background 0.2s;
}

.footer-buy-btn:hover {
    background: #e02649;
}

/* Fundo escuro */
.store-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(2px);
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

/* Caixa */
.store-modal-content {
    background: #fff;
    width: 90%;
    max-width: 380px;
    padding: 24px;
    border-radius: 12px;
    position: relative;
    text-align: center;
}

/* Fechar */
.store-close {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 22px;
    background: #fff;
    border: 2px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
}

/* Título */
.store-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Tag verde */
.store-tag {
    background: #d8fbe3;
    color: #2e8f59;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 8px;
}

/* Nome da loja */
.store-name {
    font-size: 18px;
    font-weight: bold;
    margin: 4px 0;
}

/* Produtos */
.store-products {
    font-size: 14px;
    color: #555;
    margin-bottom: 4px;
}

/* Detalhes */
.store-details {
    font-size: 13px;
    color: #777;
    margin-bottom: 14px;
}

/* Avatar */
.store-avatar {
    margin: 12px auto 0 auto; /* 👈 Centraliza no bloco */
    width: 90px;
    height: 90px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.store-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: white;
    padding: 4px;
}


.store-info-box {
    display: flex;
    flex-direction: column;
    align-items: center; /* 👈 Centraliza tudo dentro */
    text-align: center;
}

/* --- BARRA FIXA --- */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 10px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
}

/* Container dos ícones */
.footer-actions {
    display: flex;
    gap: 24px;
}

/* Botões dos ícones */
.footer-icon-btn {
    background: none;
    border: none;
    padding: 4px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
}

/* Ícones – tamanho fixo + reset total pra não distorcer nem cortar */
/* Tamanho base para todos os ícones */
.footer-icon-btn svg {
    width: 16px;
    height: 16px;
    stroke: #333;
    stroke-width: 1.6;
    fill: none;
    display: block;
    flex-shrink: 0;
}

/* Correção fina só para o ícone de estrela */
.footer-icon-btn--star svg {
    width: 16px;      /* mesmo tamanho dos outros */
    height: 16px;
    margin-top: 1px;  /* ajusta a posição para não ficar torta nem cortada */
}



/* Texto embaixo dos ícones */
.footer-icon-btn span {
    font-size: 10px;
    line-height: 1.1;
    color: #000;
    text-align: center;
}

/* Botão Comprar Agora */
.footer-buy-btn {
    flex: 0 0 auto;
    background: #ff2c55;
    border: none;
    color: #fff;
    padding: 10px 50px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.1;
    transition: background 0.2s;
}

.footer-buy-btn:hover {
    background: #e02649;
}

/* ===== MODAL DO CHAT ===== */
.chat-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 12px;
    z-index: 9999;
}

.chat-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 80vh;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    padding: 14px 16px 4px;
    margin: 0;
}

.chat-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* Corpo */
.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0 16px 12px;
    gap: 10px;
}

/* Área rolável */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px 4px;
    margin-bottom: 12px;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 999px;
}

/* MENSAGENS */
.chat-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
}

.chat-row--seller {
    flex-direction: row;
}

.chat-row--user {
    flex-direction: row-reverse;
    justify-content: flex-end;
}

/* Avatar */
.chat-avatar-wrapper {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.chat-avatar-border {
    width: 100%;
    height: 100%;
    padding: 2px;
    border-radius: 50%;
    background: conic-gradient(#ff007a, #c300ff, #00ff95, #ff007a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-avatar-border img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Balões */
.chat-message {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 12px;
    word-break: break-word;
    font-size: 13.5px;
    line-height: 1.45;
}

.chat-message--seller {
    background: #000;
    color: #fff;
}

.chat-message--user {
    background: #fff;
    color: #111;
    border: 1px solid #e0e0e0;
}

/* Perguntas */
.chat-questions {
    border-top: 1px solid #eee;
    padding-top: 10px;
}

.chat-choose {
    font-size: 14px;
    margin: 0 0 8px;
}

.chat-question {
    width: 100%;
    padding: 8px 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    border-radius: 10px;
    margin-bottom: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.chat-question:hover {
    background: #f0f0f0;
    border-color: #d0d0d0;
}

/* POPUP WRAPPER */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: flex-end; /* pop-up fica vindo de baixo, igual apps */
    z-index: 99999;
}

/* POPUP */
.popup {
    background: #fafafa;
    width: 100%;
    max-width: 420px; /* >>> AGORA CABE CERTINHO NO MOBILE <<< */
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 16px 16px 0 0; /* estilo modal mobile */
    animation: slideUp .28s ease-out;
    margin: 0 auto;
    padding-bottom: 14px;
}

/* ANIMAÇÃO */
@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

/* HEADER */
.popup-header {
    padding: 18px 20px 10px;
    border-bottom: 1px solid #d2d2d2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h2 {
    font-size: 18px;
    font-weight: bold;
    margin: 0;
    line-height: 1.3;
}

.close-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

/* BODY */
.popup-body {
    padding: 20px 18px 10px;
}

/* SECTION TITLES */
.section {
    /* Mantenha o margin-bottom: 18px; se desejar espaço após a seção */
    margin-bottom: 18px;
    
    /* Adicione uma margem superior para separar da seção acima */
    margin-top: 18px; /* NOVO AJUSTE: Aumenta o espaço acima desta seção */
}

.section-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}


.size-grid button {
    padding: 10px 0;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.size-grid button.active {
    border-color: #ff3d3d;
}

/* PRODUCT BOX */
.product-box {
    display: flex;
    border: 1px solid #ddd;
    background: #ffffff;
    padding: 14px;
    border-radius: 12px;
    gap: 12px;
    align-items: flex-start;
}

/* PRODUCT IMAGE */
.product-img {
    width: 85px;
    height: 85px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
}

/* PRICE */
.price-box {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 4px 0;
}

.price-now {
    font-size: 20px;
    font-weight: bold;
    color: #ff3d3d;
}

.price-old {
    font-size: 12px;
    text-decoration: line-through;
    color: #777;
}

.discount {
    font-size: 12px;
    font-weight: bold;
    color: #ef4444;
}

/* BADGE */
.badge {
    padding: 4px 9px;
    font-size: 11px;
    background: #d7f7f8;
    color: #156865;
    border-radius: 20px;
    font-weight: bold;
}

/* MODEL GRID */
.model-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px 8px;
}

.model-option {
    border: 2px solid #ddd;
    padding: 8px; 
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: .15s ease;
    
    /* Voltamos para min-height, usando um valor calculado para garantir que caiba */
    min-height: 145px; 
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    text-align: center;
    
    /* Garante que o conteúdo comece no topo */
    justify-content: flex-start;
}

.model-option.active {
    border-color: #ff3d3d; /* Cor da borda quando selecionado */
    background: #fff0f0; /* Cor de fundo quando selecionado */
}

.model-option span {
    font-size: 10.5px;
    display: block;
    line-height: 1.25;
    color: #333;
    
    width: 100%; 
    
    /* 💥 ESSENCIAL: Altura EXATA para 2 linhas. Isso garante que o texto nunca varie o tamanho do bloco. */
    height: 27px; /* Valor arredondado para garantir o espaço de 2 linhas (10.5px * 1.25 * 2) */

    /* 💥 LINHA DE CORREÇÃO: Adicione esta linha! */
    line-clamp: 2;
    
    /* Truncamento */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    
    margin: 0; 
    padding: 0;
}


/* WRAPPER DA IMAGEM: Área fixa de 90px de altura */
.model-image-wrapper {
    height: 90px; /* Área da imagem */
    width: 100%; 
    
    /* Centraliza a imagem real dentro desta área */
    display: flex;
    justify-content: center;
    align-items: center;
    
    margin-bottom: 6px; 
}

.model-image-wrapper img {
    max-height: 100%; 
    max-width: 100%;
    object-fit: contain; 
    width: auto;
    height: auto;
    margin: 0; 
}

/* FOOTER */
.popup-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
}

.buy-btn {
    width: 100%;
    padding: 15px;
    font-size: 17px;
    background: #ff3d3d;
    border: none;
    color: #fff;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
}

.buy-btn:hover {
    background: #e73434;
}

.popup-header {
    position: sticky;
    top: 0;
    background: #fafafa;
    z-index: 50;
}

/* aviso em vermelho */
.helmet-size-warning {
  margin-top: 8px;
  font-size: 13px;
  color: #e3342f;
}

/* botões de tamanho */
.helmet-sizes-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.helmet-size-btn {
  flex: 1 1 auto;
  min-width: 48px;
  padding: 8px 0;
  border-radius: 8px;
  border: 1px solid #ddd;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

/* estado selecionado */
.helmet-size-btn.selected {
  border-color: #ff3b5c;
  box-shadow: 0 0 0 1px rgba(255, 59, 92, 0.35);
}

.size-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.size-button {
  padding: 10px 0;
  /* Garante que todos os 5 botões caibam em uma linha no max-width: 420px */
  flex-grow: 1; /* Novo: Faz com que ocupem o espaço disponível igualmente */
  min-width: 48px; 
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.size-button.selected {
  border-color: #ff3b5c;
  box-shadow: 0 0 0 1px rgba(255, 59, 92, 0.3);
}

.warning {
  font-size: 13px;
  color: #e3342f;
  margin-top: 6px;
}

.hidden {
  display: none;
}

.popup {
  overflow-x: hidden;
}

.popup-overlay {
  overflow-x: hidden;
}
