:root {
    /* Logo Palette: Fire, Metal & Smoke */
    --fire-orange: #ff4d00;
    --fire-red: #d40000;
    --metal-gold: #ffcc00;
    --void-black: #050505;
    --deep-grey: #0a0a0a;
    --smoke-grey: #1a1a1a;
    --white-pure: #ffffff;
    --white-dim: rgba(255, 255, 255, 0.7);

    /* Glassmorphism & Effects */
    --glass-bg: rgba(15, 15, 15, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --neon-orange: 0 0 20px rgba(255, 77, 0, 0.4);
    --neon-red: 0 0 20px rgba(212, 0, 0, 0.4);
    --neon-green: 0 0 15px rgba(0, 255, 127, 0.5);

    /* Typography */
    --font-display: 'Syncopate', sans-serif;
    --font-body: 'Inter', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Inter:wght@400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--void-black);
    color: var(--white-pure);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: auto !important;
}

button,
a,
.filter-btn-premium,
.p-card-premium,
.add-btn-v4 {
    cursor: pointer !important;
}

button:disabled,
.add-btn-v4.disabled {
    cursor: not-allowed !important;
}

/* Glass Header */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-small {
    height: 48px;
    filter: drop-shadow(var(--neon-orange));
    transition: 0.3s;
}

.logo-small:hover {
    transform: scale(1.05);
}

/* Hero Section Refined */
.hero-premium {
    position: relative;
    padding: 6rem 2rem 4rem;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, rgba(255, 77, 0, 0.08) 0%, #050505 70%);
}

.main-logo-hero {
    max-width: 380px;
    width: 70%;
    display: block;
    margin: 0 auto 2rem;
    filter: drop-shadow(0 0 50px rgba(255, 77, 0, 0.35));
    animation: floating 5s infinite ease-in-out;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-15px) scale(1.02);
    }
}

.hero-title-v3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 3.8rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 30%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 3rem;
}

/* Redesigned Search */
.search-box-premium {
    max-width: 600px;
    margin: 0 auto;
}

.search-input-premium {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem 2rem;
    border-radius: 4px;
    color: white;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 500;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    outline: none;
    text-align: center;
}

.search-input-premium:focus {
    border-color: var(--fire-orange);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 40px rgba(255, 77, 0, 0.15);
}

/* Admin Link Styling */
.admin-link-premium {
    color: var(--white-dim);
    font-size: 0.7rem;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: 2px;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.02);
    display: inline-block;
}

.admin-link-premium:hover {
    color: #fff;
    border-color: var(--fire-orange);
    background: rgba(255, 255, 255, 0.05);
}

/* User Data Form inside Modal */
.cart-body-premium {
    padding: 2rem 0;
}

.form-group-premium {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group-premium label {
    display: block;
    font-size: 0.65rem;
    color: #555;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.form-group-premium input {
    width: 100%;
    background: #000;
    border: 1px solid #222;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.form-group-premium input:focus {
    border-color: var(--fire-orange);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.1);
}

/* Pagination Header (Limit Selector) */
.pagination-header {
    max-width: 1200px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.total-info {
    font-size: 0.65rem;
    color: #444;
    letter-spacing: 2px;
    font-weight: 800;
}

.limit-selector {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.limit-selector span {
    font-size: 0.6rem;
    color: #333;
    font-weight: 900;
}

.limit-btn {
    text-decoration: none;
    color: #555;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 0.6rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.limit-btn.active {
    color: var(--fire-orange);
    border-color: var(--fire-orange);
    background: rgba(255, 107, 0, 0.05);
}

.limit-btn:hover:not(.active) {
    color: #fff;
    border-color: #555;
}

/* Pagination Footer (Page Navigation) */
.pagination-footer {
    max-width: 1200px;
    margin: 5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.page-numbers {
    display: flex;
    gap: 0.6rem;
}

.page-num {
    text-decoration: none;
    color: #666;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

.page-num.active {
    background: var(--fire-orange);
    color: #000;
    border-color: var(--fire-orange);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.2);
}

.page-num:hover:not(.active) {
    color: #fff;
    border-color: #555;
    background: rgba(255, 255, 255, 0.02);
}

.page-btn {
    text-decoration: none;
    color: #666;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 1px;
    transition: 0.3s;
    padding: 0.8rem 1.2rem;
}

.page-btn:hover {
    color: var(--fire-orange);
}

/* Organized Categories */
.filter-nav-premium {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0 auto 3rem;
}

.filter-btn-premium {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 0.7rem 1.4rem;
    color: var(--white-dim);
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: 0.3s;
    border-radius: 2px;
}

.filter-btn-premium.active,
.filter-btn-premium:hover {
    background: var(--fire-orange);
    border-color: var(--fire-orange);
    color: #000;
    box-shadow: var(--neon-orange);
    transform: translateY(-2px);
}

/* Refactored Product Grid & Cards */
.product-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem 8rem;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.p-card-premium {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
}

.p-card-premium.out-of-stock {
    opacity: 0.6;
    filter: grayscale(0.8);
    pointer-events: none;
    border-color: rgba(212, 0, 0, 0.2);
}

.p-card-premium:hover {
    border-color: rgba(255, 77, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.p-image-wrapper {
    height: 240px;
    overflow: hidden;
    background: #080808;
    position: relative;
}

.p-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.p-card-premium:hover .p-img {
    transform: scale(1.08);
}

.p-image-placeholder {
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #222;
}

.p-image-placeholder svg {
    width: 50px;
}

.continue-shopping-btn {
    width: 100%;
    background: transparent;
    color: #00ff7f;
    border: 1px solid rgba(0, 255, 127, 0.3);
    padding: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
    transition: 0.3s;
}

.continue-shopping-btn:hover {
    background: rgba(0, 255, 127, 0.1);
    border-color: #00ff7f;
    box-shadow: 0 0 15px rgba(0, 255, 127, 0.2);
}

.shipping-notice {
    font-size: 0.6rem;
    color: #00ff7f;
    text-align: center;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.8;
}

.shipping-notice svg {
    color: #00ff7f;
}

.p-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.p-badge {
    color: var(--fire-orange);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 0.8rem;
}

.p-title-premium {
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
    min-height: 3rem;
}

.p-status-row {
    margin-bottom: 2rem;
}

.p-stock-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.03);
}

.p-stock-indicator.in-stock {
    color: #00ff7f;
}

.p-stock-indicator.in-stock .p-dot {
    background: #00ff7f;
    box-shadow: var(--neon-green);
}

.p-stock-indicator.out-stock {
    color: #ff3333;
}

.p-stock-indicator.out-stock .p-dot {
    background: #ff3333;
    box-shadow: var(--neon-red);
}

.p-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.p-footer-premium {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.p-price-premium {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.add-btn-v4 {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    background: var(--fire-orange);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    box-shadow: var(--neon-orange);
}

.add-btn-v4:hover {
    transform: scale(1.1) rotate(90deg);
}

.add-btn-v4.disabled {
    background: #222;
    color: #444;
    box-shadow: none;
}

/* Floating Cart & Modal */
.cart-floating-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    background: #fff;
    color: #000;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cart-floating-btn:hover {
    transform: scale(1.1) rotate(-5deg);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--fire-orange);
    color: #000;
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--void-black);
}

.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 400px;
    height: 100vh;
    background: #080808;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.8);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-modal.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    font-family: var(--font-display);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.item-info h5 {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.item-info p {
    color: var(--fire-orange);
    font-weight: 800;
    font-size: 0.8rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qty-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #333;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
}

.qty-btn:hover {
    border-color: #666;
}

.cart-total {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--fire-orange);
    color: #000;
    border: none;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: 0.3s;
}

.checkout-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.close-cart {
    background: transparent;
    border: none;
    color: #ff3333;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.close-cart:hover {
    transform: rotate(90deg);
    color: #ff0000;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.remove-item-btn {
    background: transparent;
    border: none;
    color: #444;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-item-btn:hover {
    color: #ff4444;
}

/* Animations */
.reveal {
    animation: revealAnim 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    opacity: 0;
}

@keyframes revealAnim {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* MOBILE RESPONSIVE PRESETS - ALIGNMENT FIXED */
@media (max-width: 768px) {
    .header-container {
        padding: 0 1rem;
    }

    .logo-small {
        height: 34px;
    }

    .hero-premium {
        padding: 3rem 1rem 2rem;
    }

    .main-logo-hero {
        max-width: 200px;
    }

    .hero-title-v3 {
        font-size: 1.6rem;
        margin-bottom: 2rem;
        letter-spacing: -1px;
    }

    .filter-nav-premium {
        gap: 0.4rem;
        padding: 0.5rem 1rem;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        margin-bottom: 2rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
    }

    .filter-nav-premium::-webkit-scrollbar {
        display: none;
    }

    .filter-btn-premium {
        flex: 0 0 auto;
        font-size: 0.5rem;
        padding: 0.6rem 0.8rem;
    }

    .product-section {
        padding: 0 1rem 6rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        /* Single column for focus */
        gap: 2rem;
    }

    .p-card-premium {
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .p-image-wrapper {
        height: 280px;
    }

    .p-content {
        padding: 1.5rem;
    }

    .p-title-premium {
        font-size: 1.1rem;
        min-height: auto;
    }

    /* Cart Modal Mobile */
    .cart-modal {
        width: 100%;
        /* Total screen width on mobile */
        right: -100%;
        padding: 2.5rem 1.5rem;
    }

    .cart-floating-btn {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 55px;
        height: 55px;
    }

    /* Mobile Pagination & Admin Link */
    .pagination-header {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding-top: 1rem;
    }

    .limit-selector {
        width: 100%;
        justify-content: center;
        gap: 0.8rem;
    }

    .pagination-footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2.5rem 1rem;
    }

    .admin-link-premium {
        font-size: 0.65rem;
        padding: 0.8rem 1rem;
        letter-spacing: 1px;
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
        display: block;
        text-align: center;
    }
}

/* Compatibilidade Mobile Avançada */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.main-content,
.hero-premium,
.product-section,
body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Footer Section */
.site-footer {
    background: #050505;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4rem 1.5rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.site-footer p {
    color: #eee;
    /* Letras brancas para melhor leitura */
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.dev-credit {
    font-size: 0.75rem !important;
    color: #fff !important;
    letter-spacing: 1px !important;
    text-transform: none !important;
}

.dev-credit a {
    color: var(--fire-orange);
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
    position: relative;
    padding-bottom: 2px;
}

.dev-credit a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--fire-orange);
    transition: 0.3s;
}

.dev-credit a:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

.dev-credit a:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3.5rem 1.5rem;
        background: #030303;
    }

    .site-footer p {
        font-size: 0.6rem;
        line-height: 1.6;
    }

    .dev-credit {
        font-size: 0.8rem !important;
        margin-top: 1rem;
    }
}