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

:root {
    --primary-color: #ff2d55;
    --primary-dark: #ff2d55;
    --secondary-color: #f3f4f6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ff2d55;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #ffffff;
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.main-content {
    padding-bottom: 120px;
    /* espaço para o header fixo */
    padding-top: 56px;
}

/* CARROSSEL DE IMAGENS */
.gallerySection {
    position: relative;
    background: white;
    padding: 0;
}

.galleryContainer {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    background: white;
}

.galleryWrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.galleryTrack {
    display: flex;
    height: 100%;
    transition: transform 0.3s ease-out;
}

.gallerySlide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}

.gallerySlide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mediaBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
}

.mediaBtn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mediaBtn.prevButton {
    left: 12px;
}

.mediaBtn.nextButton {
    right: 12px;
}

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

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

.price-main {
    flex: 1;
}

.current-price {
    font-size: 32px;
    font-weight: bold;
    display: block;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

.original-price {
    text-decoration: line-through;
    opacity: 0.8;
}

.discount {
    font-weight: 600;
}

.countdownBox {
    display: flex;
    flex-direction: row; /* manter em uma linha */
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
}

.timerLabel {
    font-size: 10px;
    opacity: 0.95;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.countdownBox {
    display: flex;
    flex-direction: row; /* manter em uma linha */
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 11px;
}

.timer {
    font-size: 14px;
    font-weight: 900;
    color: inherit;
}

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

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.flash-badge {
    display: inline-block;
    background: var(--danger-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* INFORMAÇÕES DO PRODUTO */
.itemDetails {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.flash-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(90deg,#ff2d6f,#ff3b6b);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 8px;
}

.itemTitle {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.itemMeta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.rating {
    color: #fbbf24;
    font-weight: 600;
}

.reviews {
    color: var(--text-secondary);
}

.separator {
    color: var(--text-secondary);
}

.sold {
    color: var(--text-secondary);
}

/* INFORMAÇÕES DE ENTREGA */
.deliveryInfo {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.deliveryItem {
    display: flex;
    gap: 12px;
}

.iconDelivery {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
    flex-shrink: 0;
    margin-top: 2px;
}

.deliveryDate {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 2px;
}

.deliveryFree {
    font-size: 12px;
    color: var(--success-color);
    font-weight: 600;
}

/* SERVIÇOS */
.servicesSection {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.servicesSection h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.serviceItem {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.checkIcon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #d1fae5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--success-color);
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

/* VÍDEOS */
.videos-section {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.videos-section h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.videoMediaCarousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.videoMediaCarousel::-webkit-scrollbar {
    height: 4px;
}

.videoMediaCarousel::-webkit-scrollbar-track {
    background: var(--secondary-color);
}

.videoMediaCarousel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.video-container {
    min-width: 120px;
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    background: black;
    flex-shrink: 0;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AVALIAÇÕES */
.reviewsSection {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.reviewsHeader h3 {
    font-size: 13px;
    font-weight: 600;
}

.seeAllButton {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.ratingSummary {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.ratingScoreBox {
    text-align: center;
    min-width: 60px;
}

.bigRating {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 4px;
}

.starsDisplay {
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 4px;
}

.totalReviewsText {
    font-size: 10px;
    color: var(--text-secondary);
}

.ratingBars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ratingBar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
}

.barLabel {
    min-width: 20px;
    color: var(--text-secondary);
}

.barContainer {
    flex: 1;
    height: 6px;
    background: var(--secondary-color);
    border-radius: 3px;
    overflow: hidden;
}

.barFill {
    height: 100%;
    background: #fbbf24;
    border-radius: 3px;
}

.barCount {
    min-width: 30px;
    text-align: right;
    color: var(--text-secondary);
}

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

.reviewItem {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.reviewItem:last-child {
    border-bottom: none;
}

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

.userAvatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.reviewUserInfo {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.reviewerName {
    font-size: 12px;
    font-weight: 600;
    display: block;
}

.reviewDate {
    font-size: 11px;
    color: var(--text-secondary);
}

.reviewStars {
    color: #fbbf24;
    font-size: 12px;
    margin-bottom: 6px;
}

.reviewText {
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.reviewImages img {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.helpfulButton {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.2s;
}

.helpfulButton:hover {
    color: var(--text-primary);
}

/* INFORMAÇÕES DA LOJA */
.storeInfo {
    display: flex;
    flex-direction: column; /* um por linha */
    gap: 12px;
}

/* Header da loja (logo + detalhes) */
.storeHeader {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Limitar tamanho da logo da loja */
.storeLogo {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    flex-shrink: 0;
}

.storeDetails {
    flex: 1;
    min-width: 0;
}

.storeDetails > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.storeDetails h4 {
    font-size: 12px;
    font-weight: 600;
    margin: 0; /* remove bottom margin so svg stays on same line */
}

.storeDetails p {
    font-size: 11px;
    color: var(--text-secondary);
}

.followButton {
    background: white;
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.followButton:hover {
    background: var(--secondary-color);
}

.storeStats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    text-align: center;
}

.statItem {
    padding: 8px;
}

.statValue {
    font-size: 14px;
    font-weight: bold;
    display: block;
    margin-bottom: 4px;
}

.statLabel {
    font-size: 11px;
    color: var(--text-secondary);
}

/* DESCRIÇÃO */
.descriptionSection {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    background: #ffffff;
}

.descHeader {
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 12px;
}

.descHeader h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.descIntro {
    margin-bottom: 24px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.descIntro p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-primary);
    margin: 0 0 10px 0;
}

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

.descIntro strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Feature Cards */
.descFeatures {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.featureCard {
    background: linear-gradient(135deg, rgba(255, 45, 85, 0.05) 0%, rgba(255, 45, 85, 0.02) 100%);
    border: 1px solid rgba(255, 45, 85, 0.15);
    border-radius: 10px;
    padding: 14px;
    transition: all 0.3s ease;
}

.featureCard:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 45, 85, 0.1);
    transform: translateY(-2px);
}

.featureCard h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 8px 0;
}

.featureCard p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.featureCard strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* Especificações */
.descSpecs {
    margin-bottom: 24px;
}

.descSpecs h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.specsTable {
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.specRow {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.specRow:last-child {
    border-bottom: none;
}

.specLabel {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    flex: 0 0 auto;
    min-width: 100px;
}

.specValue {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: right;
    flex: 1;
}

/* Conteúdo da Caixa */
.descIncluded {
    margin-bottom: 24px;
}

.descIncluded h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.includedList {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.includedList li {
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.includedList li:before {
    content: "✓";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;
    flex-shrink: 0;
}

.includedList li:last-child {
    border-bottom: none;
}

/* Manutenção */
.descMaintenance {
    margin-bottom: 24px;
    background: #f5f5f5;
    padding: 14px;
    border-radius: 8px;
}

.descMaintenance h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.descMaintenance > p {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0 0 12px 0;
}

.maintenanceItems {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.maintItem {
    background: white;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--text-primary);
    border-left: 3px solid var(--primary-color);
}

.maintItem strong {
    color: var(--primary-color);
}

/* Instalação */
.descInstallation {
    margin-bottom: 24px;
}

.descInstallation h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

.installationList {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.installationList li {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-primary);
}

.installationList strong {
    color: var(--primary-color);
    font-weight: 600;
}

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

.specs-box {
    background: rgba(168, 85, 247, 0.05);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.specs-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.specs-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid rgba(168, 85, 247, 0.1);
    font-size: 11px;
}

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

.spec-label {
    color: var(--text-secondary);
}

.spec-value {
    font-weight: 500;
    color: var(--text-primary);
}

.highlights {
    margin-bottom: 12px;
}

.highlights-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.highlights-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.highlights-list li {
    font-size: 11px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.box-contents {
    background: rgba(59, 130, 246, 0.05);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
}

.box-title {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.box-contents p:last-child {
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-primary);
}

.limited-stock {
    background: rgba(239, 68, 68, 0.05);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.limited-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--danger-color);
    margin-bottom: 4px;
}

.limited-stock p:last-child {
    font-size: 11px;
    color: var(--text-primary);
}

/* FAQ */
.faqSection {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.faqSection h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

.faqItem {
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.faqQuestion {
    width: 100%;
    background: white;
    border: none;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.2s;
}

.faqQuestion:hover {
    background: var(--secondary-color);
}

.faqIcon {
    font-size: 10px;
    transition: transform 0.3s;
    color: var(--text-secondary);
}

.faqItem.active .faqIcon {
    transform: rotate(180deg);
}

.faqAnswer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: var(--secondary-color);
}

.faqItem.active .faqAnswer {
    max-height: 200px;
}

.faqAnswer p {
    padding: 12px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--text-secondary);
}

/* BARRA INFERIOR FIXA */
.bottomBar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
    z-index: 100;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.bottomActions {
    display: flex;
    gap: 8px;
}

.actionButton {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.2s;
    flex: 1;
}

.actionButton:hover {
    background: var(--secondary-color);
}

.actionButton svg {
    width: 18px;
    height: 18px;
}

.purchaseButton {
    flex: 1;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.purchaseButton:hover {
    background: var(--primary-dark);
}

/* MODAIS */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s;
}

.modal.active {
    display: flex;
    align-items: flex-end;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    width: 100%;
    max-height: 90vh;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s;
}

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

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    font-size: 16px;
    font-weight: 600;
}

/* Modal-specific close button: keep it a centered circular button so it aligns nicely in header */
.modal .closeButton {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.modal-footer {
    padding: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

/* CHAT */
.chatMessages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

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

.botMessage {
    justify-content: flex-start;
}

.botMessage p {
    background: var(--secondary-color);
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 80%;
}

.userMessage {
    justify-content: flex-end;
}

.userMessage p {
    background: var(--primary-color);
    color: white;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    max-width: 80%;
}

.chatInput {
    flex: 1;
    border: 1px solid var(--border-color);
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-family: inherit;
}

.sendButton {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 12px;
}

.sendButton:hover {
    background: var(--primary-dark);
}

/* CARRINHO */
.emptyCart {
    text-align: center;
    color: var(--text-secondary);
    padding: 32px 16px;
    font-size: 13px;
}

.checkoutButton {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.checkoutButton:hover {
    background: var(--primary-dark);
}

/* RESPONSIVIDADE */
@media (max-width: 480px) {
    .current-price {
        font-size: 28px;
    }

    .itemTitle {
        font-size: 14px;
    }

    .modal-content {
        max-height: 95vh;
    }
}

@media (min-width: 768px) {
    .main-content {
        max-width: 600px;
        margin: 0 auto;
    }

    .bottomBar {
        max-width: 600px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 12px 12px 0 0;
    }

    .modal-content {
        max-width: 600px;
        margin: 0 auto;
        border-radius: 12px;
    }

    .modal.active {
        align-items: center;
        justify-content: center;
    }
}

/* MODAL DE SELEÇÃO DE OPÇÕES */
.product-selection {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-header {
    display: flex;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.product-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}

.product-price-info {
    flex: 1;
}

.product-price-info h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

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

.price-current {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-color);
}

.price-original {
    font-size: 12px;
    text-decoration: line-through;
    color: var(--text-secondary);
}

.discount-badge {
    display: inline-block;
    background: #d1fae5;
    color: var(--success-color);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.selection-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.selection-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.color-options {
    display: flex;
    flex-wrap: nowrap; /* forçar em uma linha só */
    gap: 12px;
    overflow-x: auto; /* permitir rolagem horizontal se não couber */
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px; /* espaço para o scroll */
}

.color-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px; /* reduzir padding para caber melhor */
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    flex: 0 0 auto; /* impedir que encolha/expanda */
    min-width: 84px; /* largura fixa para consistência */
    text-align: center;
}

.color-option:hover {
    border-color: var(--primary-color);
}

.color-option.selected {
    border-color: var(--primary-color);
    background: rgba(239, 68, 68, 0.05);
}

.color-option img {
    width: 48px; /* reduzir para evitar corte */
    height: 48px; /* reduzir para evitar corte */
    object-fit: contain; /* não cortar a imagem, ajustar dentro da caixa */
    border-radius: 6px;
    background: white; /* fundo neutro para imagens menores */
    padding: 4px; /* espaço interno para não encostar na borda */
}

.color-option span {
    font-size: 11px;
    text-align: center;
    font-weight: 500;
}

.voltage-options {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 6px;
}

.voltage-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    flex: 0 0 auto;
    min-width: 84px;
    text-align: center;
    background: white;
}

.voltage-option:hover {
    border-color: var(--primary-color);
}

.voltage-option.selected {
    border-color: var(--primary-color);
    background: rgba(255, 45, 85, 0.05);
}

.voltage-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.confirm-btn:hover {
    background: var(--primary-dark);
}

/* PERGUNTAS RÁPIDAS NO CHAT */
.quick-questions {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.quick-questions-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    padding: 0 12px;
}

.quick-questions-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0 12px;
}

.quick-question-btn {
    background: white;
    border: 1px solid var(--border-color);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.quick-question-btn:hover {
    background: var(--secondary-color);
    border-color: var(--primary-color);
}

/* ======= Topbar (header) ======= */
.navigationBar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border-color);
    z-index: 150;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.navBar-left {
    display: flex;
    align-items: center;
}

.closeButton {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.navBar-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: white;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.icon-btn svg { width: 16px; height: 16px; color: var(--text-primary); }

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid white;
}

@media (min-width: 768px) {
    /* no desktop não empurre o conteúdo tanto */
    .main-content { padding-top: 20px; }
    .navigationBar { height: 56px; }
}