:root {
    --primary-blue: #200092;
    --secondary-blue: #2900be;
    --accent-blue: #0154ad;
    --accent-cyan: #00e1ff;
    --dark-blue: #1b007c;
    --light-bg: #f8f9ff;
    --gradient-main: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, var(--accent-blue) 100%);
    --gradient-card: radial-gradient(circle at top, rgba(0, 225, 255, 0.15), rgba(27, 0, 124, 0.25));
    --gradient-nav: linear-gradient(90deg, #000, #0e004a, #000);
    --text-primary: #ffffff;
    --text-secondary: #e9faff;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(0, 225, 255, 0.5);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    font-size: 16px;
    background: var(--gradient-main);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-cyan), var(--primary-blue));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-cyan), #3500ff);
}

.topbar-barra {
    background: var(--gradient-nav);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(120, 80, 255, 0.6);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.topbar-barra.scrolled {
    padding: 0.8rem 2rem;
    background: rgba(10, 0, 40, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 225, 255, 0.5));
    animation: logo-pulse 3s infinite alternate;
}

@keyframes logo-pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.topbars {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.topbar-menu-1, .topbar-menu-2 {
    display: flex;
    gap: 1rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    background: transparent;
    border: solid 2px rgb(19, 0, 185);
    transition: var(--transition);
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    min-width: 80px;
}

.topbar-menu-2 .nav-link {
    background: transparent;
    border: solid 2px rgb(19, 0, 185);
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.2);
}

.front {
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    margin-top: 60px;
    background-image: url("bg front.jpg");
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.front h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 68px rgba(1, 255, 234, 0.429);
    position: relative;
    z-index: 2;
    animation: text-glow 3s ease-in-out infinite alternate;
}

@keyframes text-glow {
    0% { text-shadow: 0 0 30px rgba(0, 225, 255, 0.7); }
    100% { text-shadow: 0 0 60px rgba(0, 225, 255, 0.9), 0 0 100px rgba(0, 225, 255, 0.4); }
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 2rem;
}

.hr {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
    border: none;
    border-radius: 5px;
}

.letra {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    text-shadow: 0 0 40px rgb(1, 255, 234);
    padding: 0 2rem;
    position: relative;
}

.letra::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent-cyan);
    border-radius: 2px;
}

.produtos {
    max-width: 1400px;
    margin: 0 auto 6rem;
    padding: 0 2rem;
}

.secoes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.cartoes {
    background: var(--gradient-card);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0, 225, 255, 0.2);
    box-shadow: var(--shadow-md);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cartoes:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--accent-cyan);
}

.titulo-produto {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.4;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.moldura {
    padding: 1rem;
    border-radius: 12px;
    background-color: white;
    margin: 1rem 0;
    box-shadow: 0px 0px 8px 2px rgb(255, 255, 255);
    transition: var(--transition);
    width: 100%;
    display: flex;
    justify-content: center;
}

.cartoes:hover .moldura {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.moldura img {
    max-width: 100%;
    height: 180px;
    object-fit: contain;
    display: block;
}

.descricao-produto {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    padding: 0 10px;
}

.botao {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1;
    opacity: 0;
}

.cartoes:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

footer {
    background: rgba(28, 0, 112, 0.95);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    margin-top: 6rem;
    border-top: 2px solid rgba(0, 225, 255, 0.3);
    text-align: center;
    color: white;
}

.social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 225, 255, 0.5));
    transition: var(--transition);
}

.social img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 225, 255, 0.8));
}

.social h4 {
    font-size: 1.2rem;
    color: black;
    font-weight: 600;
}

#g {
    text-align: center;
    color: black;
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 2rem;
}

.hidden {
    opacity: 0;
    filter: blur(5px);
    transition: all .4s;
    transform: translateX(-100%);
}

.hidden-blurless {
    opacity: 0;
    filter: blur(5px);
    transition: all .4s;
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0%);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translate(0);
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-cyan), var(--primary-blue));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 225, 255, 0.4);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--primary-blue));
    z-index: 1001;
    transition: width 0.1s ease;
}

.cartoes[data-category="livros"] {
    border-top: 4px solid #ff6b6b;
}

.cartoes[data-category="acessorios"] {
    border-top: 4px solid #4ecdc4;
}

.cartoes[data-category="domesticos"] {
    border-top: 4px solid #ffd166;
}

.cartoes[data-category="tecnologia"] {
    border-top: 4px solid #06d6a0;
}

@media (max-width: 1200px) {
    .secoes {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .topbar-barra {
        padding: 1rem;
    }
    
    .topbars {
        display: none;
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .front h1 {
        font-size: 4rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .topbar-barra {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .topbars {
        width: 100%;
        justify-content: center;
    }
    
    .topbar-menu-1, .topbar-menu-2 {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .front {
        background-image: url(bg_media.jpg);
    }
    
    .front h1 {
        font-size: 3rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        margin: 3rem auto;
    }
    
    .hr {
        width: 100px;
    }
    
    .letra {
        font-size: 2rem;
    }
    
    .secoes {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .cartoes {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.4rem;
    }
    
    .logo img {
        width: 36px;
        height: 36px;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 70px;
    }
    
    .front h1 {
        font-size: 2.5rem;
    }
    
    .letra {
        font-size: 1.8rem;
    }
    
    .cartoes {
        padding: 1rem;
    }
    
    footer {
        padding: 2rem 1rem;
    }
}

@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.loading {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite linear;
}

body.sobre {
    background: linear-gradient(to bottom, #1f008d, #1b007f, #0047aaea);
    padding: 100px 20px 50px;
    min-height: 100vh;
    color: #ffffff;
    font-size: 18px;
    background-attachment: fixed;
}

.conteudo-sobre {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 225, 255, 0.1);
}

.logo-sobre {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-sobre img {
    display: block;
    margin: 0 auto 1rem;
    width: 80px;
    height: 80px;
}

body.sobre h1 {
    text-shadow: 0 0 20px rgba(0, 225, 255, 0.5);
    text-align: center;
    margin-bottom: 2rem;
}

body.sobre p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

body.sobre a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition);
}

body.sobre a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--accent-cyan);
}               
