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

body,
html {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

:root {
    --roxo: #4B0082;
    --amarelo: #FFD700;
    --bg: #fdf6ff;
    --muted: #6b6b6b;
    --text-color: #222;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
}

@media (prefers-color-scheme: dark) {
    :root {
        --roxo: #9d4edd; /* Roxo mais vibrante para contraste no escuro */
        --amarelo: #FFD700;
        --bg: #0f0f0f;   /* Fundo quase preto para economia de energia */
        --muted: #a0a0a0;
        --text-color: #f1f1f1;
        --card-bg: #1a1a1a;
        --border-color: #333333;
    }
}

body {
    font-family: Inter, system-ui, -apple-system, "Poppins", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 96%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px
}

.site-header {
    background: var(--roxo);
    color: var(--amarelo);
    position: sticky;
    top: 0;
    z-index: 50
}

.site-header .container {
    display: flex;
    align-items: center;
    padding: 10px 14px
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 15px
}

.logo {
    justify-self: start;
    font-weight: 900;
    font-size: 1.6rem;
    color: var(--amarelo);
    text-decoration: none
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 0
}

.site-nav a {
    color: var(--amarelo);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s;
    position: relative;
    padding: 0 10px
}

.site-nav a:hover {
    color: #fff
}

.site-nav a:not(:last-child)::after {
    content: "|";
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 215, 0, 0.5);
    font-size: 18px;
    pointer-events: none;
}

.header-contato {
    flex-shrink: 0;
    margin-left: 0
}

.telefone-header {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s
}

.telefone-header:hover {
    color: #fff
}

.telefone-icon {
    font-size: 1.4rem;
}

.telefone-texto {
    font-size: 1.4rem;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width:768px) {
    .header-content {
        flex-direction: column;
        gap: 15px
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px
    }

    .header-contato {
        margin-left: 0
    }

    .header-contato-mobile {
        display: none !important;
    }
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0 40px
}

.card-produto {
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform .25s ease;
}

.card-produto:hover {
    transform: translateY(-8px);
}

.card-produto img {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.05);
    display: block;
}

.card-produto h3 {
    color: var(--roxo);
    font-size: 1.05rem !important;
    padding: 10px 14px;
    margin-top: 6px;
    text-align: center;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

.card-produto .price {
    font-weight: 800;
    padding: 0 14px 12px;
    color: var(--text-color);
}

.btn-whatsapp {
    display: block;
    margin: 0 14px 18px;
    background: #25D366;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.btn-whatsapp:hover {
    background: #128C7E
}

.produto-detalhe {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin: 28px 0;
    flex-wrap: wrap
}

.produto-detalhe .info .descricao {
    margin: 15px 0;
    line-height: 1.6
}

.galeria-container {
    width: 100%;
    max-width: 520px;
}

.slider-principal {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(75, 0, 130, 0.6);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn:hover {
    background: rgba(75, 0, 130, 0.9);
}

.slider-btn.prev {
    left: 10px;
}

.slider-btn.next {
    right: 10px;
}

.produto-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 1/1;
    display: block;
    transition: transform 0.1s ease-out;
    cursor: zoom-in;
}

.miniaturas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.miniatura {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.miniatura:hover,
.miniatura.ativo {
    opacity: 1;
    border-color: var(--roxo);
}

.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-overlay.ativo {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.info {
    flex: 1;
    min-width: 280px;
}

.info h1 {
    color: var(--roxo);
    margin-bottom: 12px
}

.info .price {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 800;
    margin-bottom: 10px;
}

.descricao {
    margin-top: 12px;
    color: var(--muted);
}

.descricao p {
    margin-bottom: 15px
}

.descricao ul,
.descricao ol {
    margin: 15px 0;
    padding-left: 30px
}

.descricao li {
    margin-bottom: 5px
}

.descricao strong {
    font-weight: bold
}

.descricao em {
    font-style: italic
}

.descricao u {
    text-decoration: underline
}

.descricao h3,
.descricao h4,
.descricao h5 {
    margin: 20px 0 10px 0;
    color: var(--roxo);
}

.site-footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 18px;
    margin-top: 40px;
    border-top: 4px solid #333333;
}

.site-footer p {
    margin: 0;
    color: #ffffff;
    text-align: center;
}

.site-footer p strong {
    color: #ff1493;
}

.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 9999;
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
    transition: all 0.3s ease;
    font-size: 24px;
    position: relative;
}

.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.floating-btn::before {
    content: attr(aria-label);
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10000;
}

.floating-btn:hover::before {
    opacity: 1;
    visibility: visible;
}

.floating-btn.whatsapp {
    background: #25D366;
}

.floating-btn.call {
    background: #007bff;
}

.floating-btn.map {
    background: #dc3545;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .16);
    z-index: 999
}

.whatsapp-float img {
    width: 36px;
    height: 36px
}

.paginacao {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.btn-pagina {
    display: inline-block;
    padding: 10px 16px;
    background: var(--roxo);
    color: var(--amarelo);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.btn-pagina:hover {
    background: #5a0099;
    transform: translateY(-2px);
}

.btn-pagina.ativo {
    background: var(--amarelo);
    color: var(--roxo);
    cursor: default;
}

.btn-pagina.ativo:hover {
    transform: none;
}

@media(max-width:800px) {
    .site-header .container {
        flex-wrap: wrap;
        gap: 8px
    }

    .produto-detalhe {
        flex-direction: column
    }

    .grid-produtos {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .card-produto img {
        aspect-ratio: 1/1;
        object-fit: contain;
        height: auto
    }

    .banner-content {
        padding: 20px 15px 15px;
    }

    .banner-content h2 {
        font-size: 1.3rem;
    }

    .banner-content p {
        font-size: 0.9rem;
    }

    .banner-prev,
    .banner-next {
        padding: 8px 12px;
        font-size: 14px;
    }

    .paginacao {
        gap: 6px;
        margin: 30px 0;
    }

    .btn-pagina {
        padding: 8px 12px;
        font-size: 0.9rem;
        min-width: 35px;
    }
}

@media(max-width:480px) {
    .banner-content {
        padding: 15px 10px 10px;
    }

    .banner-content h2 {
        font-size: 1.1rem;
    }

    .banner-content p {
        font-size: 0.8rem;
    }

    .grid-produtos {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .card-produto img {
        aspect-ratio: 1/1;
        object-fit: contain;
        height: auto;
        max-height: 250px
    }
}

.developer-credit {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
}

.developer-credit span {
    font-size: 0.9rem;
    color: #ccc;
}

.developer-credit img {
    height: 35px;
    width: auto;
}

.hat-container {
    position: relative;
    display: inline-block;
}

.hat {
    position: absolute;
    top: -13px;
    left: -15px;
    width: 40px;
    height: auto;
    z-index: 1;
}
