* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --accent-soft: color-mix(in srgb, var(--cor-primaria) 18%, #ffffff);
    --accent-strong: color-mix(in srgb, var(--cor-primaria) 78%, #111111);
    --surface-elevated: color-mix(in srgb, var(--cor-fundo-card) 90%, #ffffff);
    --surface-muted: color-mix(in srgb, var(--cor-fundo-hovers) 76%, #ffffff);
    --stroke-soft: color-mix(in srgb, var(--texto-principal) 12%, transparent);
    --shadow-soft: 0 18px 30px -22px rgba(16, 24, 40, 0.55);
    --shadow-lift: 0 24px 46px -22px rgba(16, 24, 40, 0.35);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--cor-fundo-site);
    color: var(--texto-principal);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Glow suave premium */
body::before {
    content: "";
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            900px circle at 15% 10%,
            color-mix(in srgb, var(--cor-brilho-fundo-site) 35%, transparent),
            transparent 70%
        ),
        radial-gradient(
            700px circle at 85% 90%,
            color-mix(in srgb, var(--cor-brilho-fundo-site) 25%, transparent),
            transparent 70%
        );

    opacity: 1;
    animation: bgMove 40s ease-in-out infinite alternate;
}

/* Textura noise ultra leve */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.015'/%3E%3C/svg%3E");
}

/* animação suave */
@keyframes bgMove {
    0% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-2%, 1%, 0) scale(1.02);
    }
    100% {
        transform: translate3d(2%, -1%, 0) scale(1.01);
    }
}

.container {
    width: min(1220px, 100% - 2.2rem);
    margin: 0 auto;
}

.badge-exclusivo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.48rem 1.05rem;
    border-radius: 999px;
    border: 1px solid var(--stroke-soft);
    background: color-mix(in srgb, var(--cor-fundo-card) 85%, #ffffff);
    color: var(--texto-suave);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-weight: 700;
}

header.home-header {
    position: relative;
    padding: 4.2rem 0 2.7rem;
    text-align: center;
}

.home-header h1 {
    margin-top: 1rem;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
    max-width: 17ch;
    margin-inline: auto;
}

.home-header p {
    max-width: 62ch;
    margin: 1rem auto 0;
    color: var(--texto-suave);
    font-size: clamp(0.96rem, 1.7vw, 1.1rem);
}

.categoria {
    display: flex;
    justify-content: center;
    margin: 0 0 1.5rem;
}

.categoria-scroll {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.25rem 0.1rem 0.4rem;
    scrollbar-width: none;
}

.categoria-scroll::-webkit-scrollbar {
    display: none;
}

.page-link-cat {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--surface-elevated);
    border: 1px solid var(--stroke-soft);
    color: var(--texto-principal);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.22s ease;
    box-shadow: var(--shadow-soft);
}

.page-link-cat:hover,
.page-link-cat.active {
    background: var(--cor-primaria);
    color: var(--texto-branco);
    border-color: transparent;
    transform: translateY(-2px);
}

.open-btn {
    cursor: pointer;
}

.categoria-divider {
    opacity: 0.35;
    margin: 0 0.15rem;
}

.box-search {
    width: min(680px, 100%);
    margin: 0 auto 2.3rem;
    display: flex;
    gap: 0.6rem;
    padding: 0.56rem;
    border-radius: 18px;
    border: 1px solid var(--stroke-soft);
    background: color-mix(in srgb, var(--cor-fundo-card) 86%, #ffffff);
    box-shadow: var(--shadow-soft);
}

.input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--surface-muted);
    border-radius: 13px;
    padding: 0 0.78rem;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
    border-color: color-mix(in srgb, var(--cor-primaria) 36%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cor-primaria) 16%, transparent);
}

.input-wrapper input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--texto-principal);
    font-size: 0.98rem;
    padding: 0.9rem 0;
}

.input-wrapper input:-webkit-autofill,
.input-wrapper input:-webkit-autofill:hover,
.input-wrapper input:-webkit-autofill:focus,
.input-wrapper input:-webkit-autofill:active {
    background-color: #ffffff !important;
    border: none !important;
    outline: none !important;
    -webkit-background-clip: text !important;
}


.input-wrapper input::placeholder {
    color: color-mix(in srgb, var(--texto-suave) 88%, #ffffff);
}

.btn-clear {
    text-decoration: none;
    color: var(--texto-suave);
    border-radius: 999px;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-clear:hover {
    background: color-mix(in srgb, #e23636 18%, #ffffff);
    color: #d10f0f;
}

.btn-search {
    border: none;
    border-radius: 13px;
    padding: 0 1.35rem;
    background: var(--cor-primaria);
    color: var(--texto-branco);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.16s ease, filter 0.16s ease;
}

.btn-search:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.35rem;
    margin-bottom: 2.8rem;
}

.product-card {
    position: relative;
    isolation: isolate;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-xl);
    border: 1px solid var(--stroke-soft);
    background: var(--surface-elevated);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(150deg,
            color-mix(in srgb, var(--cor-primaria) 8%, #ffffff) 0%,
            transparent 36%,
            color-mix(in srgb, var(--cor-fundo-hovers) 34%, #ffffff) 100%);
    opacity: 0;
    transition: opacity 0.28s ease;
    z-index: -1;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
    border-color: color-mix(in srgb, var(--cor-primaria) 28%, transparent);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card > a{
    text-decoration: none;
}

.card-price-tag {
    position: absolute;
    right: 20px;
    top: 20px;
    background: color-mix(in srgb, var(--cor-fundo-card) 86%, #ffffff);
    color: var(--accent-strong);
    border: 1px solid var(--stroke-soft);
    border-radius: 999px;
    padding: 0.34rem 0.72rem;
    font-size: 1rem;
    font-weight: 800;
    z-index: 2;
}

.card-image-wrapper {
    height: 370px;
    margin: 0.9rem;
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    border: 1px solid color-mix(in srgb, var(--stroke-soft) 72%, transparent);
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.05rem;
    transition: transform 0.4s ease;
}

.product-card:hover .card-image-wrapper img {
    transform: scale(1.04);
}

.card-content {
    padding: 0.35rem 1rem 1.1rem;
}

.card-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 800;
    color: var(--cor-texto-categoria);
}

.card-category::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--cor-primaria);
    opacity: 0.75;
}

.card-title {
    margin-top: 0.58rem;
    font-size: 1rem;
    line-height: 1.34;
    font-weight: 700;
    color: var(--texto-principal);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.68em;
}

.card-desc {
    margin-top: 0.52rem;
    font-size: 0.88rem;
    line-height: 1.46;
    color: var(--texto-suave);
}

.truncate-3-lines {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.glass-menu {
    position: fixed;
    top: 0;
    left: -380px;
    width: 340px;
    height: 100%;
    z-index: 1100;
    background: color-mix(in srgb, var(--cor-fundo-card) 82%, #ffffff);
    border-right: 1px solid var(--stroke-soft);
    box-shadow: var(--shadow-lift);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: left 0.25s ease;
    padding: 1.4rem 1.1rem;
}

.glass-menu.active {
    left: 0;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, 0.34);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1050;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    overflow-y: auto;
    height: 100%;
    padding-right: 6px;
}

.menu-content ul {
    list-style: none;
}

.menuHeader {
    padding-right: 40px;
    margin-bottom: 0.75rem;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid var(--stroke-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--surface-muted);
    color: var(--texto-principal);
}

.menu-item {
    margin-bottom: 0.48rem;
}

.item-row {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.item-link {
    flex: 1;
    border-radius: 12px;
    padding: 0.64rem 0.72rem;
    color: var(--texto-principal);
    text-decoration: none;
    font-size: 0.92rem;
    transition: background 0.16s ease;
}

.item-link:hover,
.item-link.active {
    background: var(--surface-muted);
}

.toggle-btn {
    width: 33px;
    height: 33px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.toggle-btn:hover {
    background: var(--surface-muted);
}

.arrow {
    transition: transform 0.2s ease;
}

.submenu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    margin-left: 0.45rem;
}

.submenu.open {
    max-height: 999px;
    opacity: 1;
}

.submenu ul {
    border-left: 1px solid var(--stroke-soft);
    padding-left: 0.6rem;
}

.submenu a {
    display: block;
    text-decoration: none;
    color: var(--texto-suave);
    padding: 0.5rem 0.62rem;
    font-size: 0.88rem;
    border-radius: 10px;
}

.submenu a:hover,
.submenu a.active {
    background: var(--surface-muted);
    color: var(--texto-principal);
}

.pagination {
    margin: 0.9rem 0 3.7rem;
    display: flex;
    justify-content: center;
    gap: 0.52rem;
    flex-wrap: wrap;
}

.page-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--stroke-soft);
    color: var(--texto-principal);
    background: var(--surface-elevated);
    font-size: 0.87rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.page-link:hover,
.page-link.active {
    background: var(--cor-primaria);
    border-color: transparent;
    color: var(--texto-branco);
}

footer {
    border-top: 1px solid var(--stroke-soft);
    text-align: center;
    padding: 1.25rem 0 2.2rem;
    color: var(--texto-suave);
    font-size: 0.88rem;
}

.nav-produto {
    padding: 2.1rem 0 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.btn-voltar {
    text-decoration: none;
    color: var(--texto-principal);
    font-weight: 700;
    border: 1px solid var(--stroke-soft);
    border-radius: 999px;
    padding: 0.54rem 1rem;
    background: var(--surface-elevated);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: transform 0.16s ease;
}

.btn-voltar:hover {
    transform: translateX(-2px);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 3.5rem;
}

.detail-gallery {
    align-self: start;
}

.main-image-box {
    background: var(--surface-elevated);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    aspect-ratio: 1/1;
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    border-radius: var(--radius-xl);
}

.detail-info {
    position: sticky;
    top: 1.1rem;
    align-self: start;
    background: var(--surface-elevated);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    padding: 1.2rem 1.2rem 1.3rem;
}

.detail-title {
    margin: 0.35rem 0 0.95rem;
    font-size: clamp(1.4rem, 3.3vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.detail-sku {
    font-size: 0.84rem;
    color: var(--texto-suave);
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1.05rem;
    align-items: center;
}

.detail-sku span {
    font-size: 0.78rem;
    color: var(--texto-principal);
    font-weight: 700;
    border: 1px solid var(--stroke-soft);
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    background: var(--surface-muted);
}

.detail-price-box {
    background: color-mix(in srgb, var(--cor-fundo-hovers) 70%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--cor-primaria) 18%, transparent);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
    margin-bottom: 1rem;
}

.detail-price-value {
    color: var(--accent-strong);
    font-size: clamp(1.7rem, 4vw, 2.45rem);
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.detail-price-value small {
    font-size: 0.92rem;
    color: var(--texto-suave);
}

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

.detail-spec-item {
    border: 1px solid var(--stroke-soft);
    background: var(--surface-muted);
    border-radius: 13px;
    padding: 0.78rem;
}

.btn-product-primary {
    margin-top: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    border-radius: 14px;
    border: 1px solid transparent;
    background: linear-gradient(110deg,
            var(--cor-primaria),
            color-mix(in srgb, var(--cor-primaria) 72%, #0d8b49));
    color: var(--texto-branco);
    padding: 0.95rem 1rem;
    font: inherit;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.18s ease, filter 0.18s ease;
}

.btn-product-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.full-description-box {
    margin-top: 1rem;
    background: var(--surface-elevated);
    border: 1px solid var(--stroke-soft);
    border-radius: var(--radius-lg);
    padding: 1rem;
}

.full-description-box h3 {
    font-size: 0.96rem;
    font-weight: 800;
    margin-bottom: 0.7rem;
}

.full-description-box * {
    font-size: 0.93rem;
    color: var(--texto-suave);
    line-height: 1.62;
    max-width: 100% !important;
}

@media (max-width: 980px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-gallery {
        position: static;
    }

    .detail-info {
        position: static;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(1220px, 100% - 1rem);
    }

    header.home-header {
        padding-top: 3.2rem;
    }

    .box-search {
        flex-direction: column;
    }

    .btn-search {
        height: 45px;
        width: 100%;
    }

    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.82rem;
    }

    .card-image-wrapper {
        height: 170px;
        margin: 0.58rem;
    }

    .card-content {
        padding: 0.2rem 0.72rem 0.84rem;
    }

    .card-title {
        font-size: 0.92rem;
    }

    .card-desc {
        font-size: 0.82rem;
    }

    .page-link,
    .page-link-cat {
        height: 38px;
        font-size: 0.8rem;
    }
}

@media (max-width: 560px) {
    .glass-menu {
        width: 100%;
        left: -100%;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .home-header h1 {
        font-size: 1.88rem;
    }

    .nav-produto {
        flex-direction: column;
        align-items: flex-start;
    }

    .detail-info {
        padding: 1rem;
    }
}