:root {
    --primary-color: #0057b8;
    --primary-hover: #004291;
    --accent-color: #00b377;
    --accent-hover: #009462;
    --tertiary-color: #0099cc;
    --dark-bg: #0e1014;
    --dark-bg-lighter: #161921;
    --dark-bg-lightest: #1e222c;
    --text-light: #f1f3f5;
    --text-light-muted: #adb5bd;
    --text-primary: #00b377;
    --success-color: #38bdf8;
    --warning-color: #f2cc8f;
    --error-color: #e03131;
    --vip-color: #ffd700;
    --vip-text-color: #000;
    --vip-glow: 0 0 8px rgba(255, 215, 0, 0.6);
    --card-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    --transition-fast: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius-sm: 6px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
    --border-color: #2a2e36;
    --header-height: 60px;
    --footer-height: 60px;
    --bottom-nav-height: 70px;
    --neon-glow: 0 0 8px rgba(0, 179, 119, 0.6);
    --old-price-color: #ff8800;
    --price-color: #00d084;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition-fast);
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

h1, h2, h3, .logo, .product-title, .product-price, .product-price-highlight,
.cart-total, .pedido-numero, .tab, .vip-badge, .header-user-info {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    letter-spacing: 0.02em;
}

input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--dark-bg);
    background-color: var(--dark-bg);
    height: 100%;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    height: 100%;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background-color: var(--accent-color); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background-color: var(--accent-hover); }

.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0 auto;
    padding-top: var(--header-height);
}

h2 { font-size: 1.5rem; text-align: center; margin-bottom: 0.5rem; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
a { text-decoration: none; color: var(--accent-color); transition: var(--transition-fast); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--border-radius-sm); }
button { border: none; background: none; cursor: pointer; font-family: 'Montserrat', sans-serif; }
.highlight { color: var(--accent-color); font-weight: 600; }
.mobile-only { display: none; }
.desktop-only { display: flex; }
.no-scroll { overflow: hidden !important; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1e28 inset !important;
    -webkit-text-fill-color: #f1f3f5 !important;
    background-color: #1a1e28 !important;
    transition-delay: 99999s !important;
}

.navbar {
    background-color: var(--dark-bg-lighter);
    background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.8) 0%, rgba(22, 25, 33, 0.8) 100%);
    height: var(--header-height);
    padding: 0 25px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}
.navbar.hide { transform: translateY(-100%); }
.navbar.show { transform: translateY(0); }

.logo { display: flex; align-items: center; font-size: 1.6rem; font-weight: 700; color: var(--text-light); flex-shrink: 0; }
.logo i { margin-right: 10px; font-size: 1.6rem; color: var(--accent-color); }

.header-nav-buttons { display: flex; align-items: center; gap: 10px; position: absolute; left: 50%; transform: translateX(-50%); }
.header-nav-btn {
    padding: 8px 15px;
    font-weight: 500;
    color: var(--text-light-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    background-color: transparent;
    border: 1px solid transparent;
}
.header-nav-btn:hover { color: var(--accent-color); background-color: rgba(0, 179, 119, 0.1); }
.header-nav-btn.active { color: var(--accent-color); font-weight: 600; background-color: rgba(0, 179, 119, 0.15); border-color: var(--accent-color); }
.header-nav-btn i { font-size: 0.9em; }

.cart-count-header { background-color: var(--accent-color); color: var(--text-light); border-radius: 10px; padding: 1px 6px; font-size: 0.7rem; font-weight: bold; margin-left: 4px; }

.header-right-content { display: flex; align-items: center; gap: 15px; }
.header-user-info { display: flex; align-items: center; padding: 8px 16px; border-radius: var(--border-radius-md); font-weight: 600; font-size: 0.9rem; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.2); }

.user-info-loading {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.3s ease-out, visibility 0.3s ease-out, transform 0.3s ease-out;
}

.header-user-info.access-default { background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%); color: var(--text-light); }
.header-user-info.access-vip { background: linear-gradient(135deg, var(--vip-color) 0%, #ffe55c 100%); color: var(--vip-text-color); }
#user-name-desktop { font-weight: 700; }
.user-access-separator { margin: 0 8px; }
#user-access-status i { margin-right: 6px; }
#logout-btn-desktop { border: 1px solid var(--border-color); }
#logout-btn-desktop:hover { border-color: var(--error-color); background-color: rgba(224, 49, 49, 0.1); color: var(--error-color); }

.mobile-menu {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100vh;
    background-color: var(--dark-bg-lighter); background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.8) 0%, rgba(22, 25, 33, 0.8) 100%);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3); z-index: 999; transition: right 0.2s ease; overflow-y: auto;
    border-left: 1px solid var(--border-color); backdrop-filter: blur(10px); display: flex; flex-direction: column;
}
.mobile-menu.active { right: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.mobile-user-info { margin: 15px 20px; justify-content: center; }
.menu-toggle-in-menu { position: relative; width: 40px; height: 40px; border-radius: 50%; background-color: var(--dark-bg-lightest); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1001; }
.hamburger-icon { position: relative; width: 20px; height: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-icon span { display: block; height: 2px; width: 100%; background-color: var(--accent-color); border-radius: 2px; transition: all 0.2s ease; }
.menu-toggle-in-menu.active .hamburger-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle-in-menu.active .hamburger-icon span:nth-child(2) { opacity: 0; }
.menu-toggle-in-menu.active .hamburger-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu-options { padding: 10px 20px 0; margin-top: 10px; flex-grow: 1; overflow-y: auto; }
.mobile-menu-options a {
    display: flex; align-items: center; padding: 12px 15px; color: var(--text-light); text-decoration: none;
    font-weight: 500; border-radius: var(--border-radius-sm); background-color: var(--dark-bg-lightest);
    border: 1px solid var(--border-color); margin-bottom: 12px;
}
.mobile-menu-options a:hover { background: rgba(0, 179, 119, 0.1); transform: translateX(5px); color: var(--accent-color); border-color: var(--accent-color); }
.mobile-menu-options a i { margin-right: 10px; width: 20px; text-align: center; font-size: 16px; color: var(--accent-color); }
.overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 998; opacity: 0; visibility: hidden; transition: opacity 0.2s ease; backdrop-filter: blur(5px); }
.overlay.active { opacity: 1; visibility: visible; }

.mobile-menu-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: var(--dark-bg);
    flex-shrink: 0;
    margin-top: auto;
    text-align: center;
}
.mobile-menu-footer .footer-heading {
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.mobile-menu-footer .social-icons {
    gap: 12px;
    margin-bottom: 15px;
}
.mobile-menu-footer .social-icon {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
}
.mobile-menu-footer .copyright {
    font-size: 0.7rem;
}

.bottom-nav {
    position: fixed; bottom: 0; left: 0; width: 100%; height: var(--bottom-nav-height);
    background-color: var(--dark-bg-lighter); background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.9) 0%, rgba(22, 25, 33, 0.9) 100%);
    border-top: 1px solid var(--border-color); box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4); backdrop-filter: blur(10px);
    justify-content: space-around; align-items: center; z-index: 95; display: none;
}
.bottom-nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 8px 5px; cursor: pointer; border-radius: var(--border-radius-sm); position: relative; flex: 1; max-width: calc(100% / 5); text-align: center; }
.bottom-nav-item i { font-size: 1.1rem; margin-bottom: 3px; color: var(--text-light-muted); transition: var(--transition-fast); }
.bottom-nav-item span { font-size: 0.65rem; font-weight: 500; color: var(--text-light-muted); line-height: 1.2; white-space: nowrap; }
.bottom-nav-item.active i, .bottom-nav-item.active span { color: var(--accent-color); }
.bottom-nav-item.active i { transform: scale(1.1); }
.bottom-nav-item.active span { font-weight: 600; }
.bottom-nav-badge {
    position: absolute; top: 4px; right: 5px; background: var(--accent-color); color: white; border-radius: 8px;
    padding: 1px 5px; font-size: 0.55rem; font-weight: bold; min-width: 14px; height: 14px; display: flex; align-items: center;
    justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); opacity: 0; transform: scale(0.8);
}
.bottom-nav-badge.show { opacity: 1; transform: scale(1); }
.bottom-nav-badge.animated { animation: cartCountBounce 0.7s ease-in-out; }

.site-footer {
    background-color: var(--dark-bg-lighter); background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.8) 0%, rgba(22, 25, 33, 0.8) 100%);
    padding: 30px 20px; border-top: 1px solid var(--border-color); box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px); position: relative; z-index: 90; flex-shrink: 0; text-align: center;
}
.footer-heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 15px; color: var(--text-light); }
.social-icons { display: flex; justify-content: center; gap: 15px; margin-bottom: 20px; }
.social-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background-color: var(--dark-bg-lightest); border-radius: 50%; color: var(--text-light-muted); border: 1px solid var(--border-color); font-size: 1rem; }
.social-icon:hover { background-color: var(--accent-color); color: var(--text-light); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0, 179, 119, 0.4); }
.copyright { font-size: 0.8rem; color: var(--text-light-muted); margin: 0; }

.preload-images { position: absolute; width: 1px; height: 1px; overflow: hidden; top: -9999px; left: -9999px; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.pulse-icon { animation: pulse 2s infinite ease-in-out; color: var(--accent-color); filter: drop-shadow(0 0 8px rgba(0, 179, 119, 0.6)); }
.glow-icon { color: var(--accent-color); margin-right: 10px; filter: drop-shadow(0 0 8px rgba(0, 179, 119, 0.7)); vertical-align: middle; }

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-inline {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes cartCountBounce { 0% { transform: scale(1); } 50% { transform: scale(1.6); } 75% { transform: scale(0.8); } 100% { transform: scale(1); } }
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

.custom-tooltip {
    position: absolute; background-color: var(--dark-bg); color: var(--text-light); padding: 10px; border-radius: var(--border-radius-sm);
    box-shadow: var(--card-shadow); border: 1px solid var(--border-color); max-width: 250px; font-size: 0.85rem; line-height: 1.6;
    z-index: 1000; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.custom-tooltip.show { opacity: 1; transform: translateY(0); }
.custom-tooltip::before {
    content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    border-width: 0 8px 8px 8px; border-style: solid; border-color: transparent transparent var(--dark-bg) transparent;
}

.store-section { display: flex; flex-direction: column; width: 100%; }
.filter-container { display: flex; justify-content: center; align-items: center; padding: 15px; gap: 15px; flex-wrap: wrap; }
.search-container { display: flex; flex: 1; max-width: 500px; position: relative; }
.product-search-input { width: 100%; background-color: var(--dark-bg-lightest); color: var(--text-light); border: 1px solid var(--border-color); padding: 12px 15px 12px 40px; border-radius: var(--border-radius-md); font-size: 0.9rem; height: 45px; }
.product-search-input:focus { outline: none; border-color: var(--accent-color); box-shadow: 0 0 0 2px rgba(0, 179, 119, 0.2); }
.search-icon { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent-color); font-size: 16px; }
.product-filter-select {
    background-color: var(--dark-bg-lightest); color: var(--text-light); border: 1px solid var(--border-color); padding: 0 35px 0 15px;
    border-radius: var(--border-radius-md); font-size: 0.9rem; appearance: none; cursor: pointer; min-width: 180px; height: 45px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300b377' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 14px;
}
.product-filter-select:hover, .product-filter-select:focus { border-color: var(--accent-color); }
.product-filter-select:focus { outline: none; box-shadow: 0 0 0 2px rgba(0, 179, 119, 0.2); }

.tab-content { display: none; flex-direction: column; overflow-y: auto; overflow-x: hidden; padding: 20px; padding-bottom: 30px !important; }
.tab-content.active { display: flex; }

.placeholder-message { text-align: center; padding: 30px 20px; color: var(--text-light-muted); font-size: 0.95rem; display: flex; align-items: center; justify-content: center; min-height: 150px; grid-column: 1 / -1; }
.erro-placeholder { color: var(--error-color); border-color: var(--error-color); background-image: linear-gradient(135deg, rgba(224, 49, 49, 0.1) 0%, rgba(170, 30, 30, 0.3) 100%); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-content: flex-start; margin: 10px 0; }
.product-card {
    background-color: var(--dark-bg-lighter); background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.6) 0%, rgba(22, 25, 33, 0.8) 100%);
    border-radius: var(--border-radius-md); box-shadow: var(--card-shadow); overflow: hidden; cursor: pointer; border: 1px solid var(--border-color);
    display: flex; flex-direction: column; height: 380px; position: relative;
    transition: transform 0.15s ease-out !important;
}
.product-card.vip-product { border-color: var(--border-color); box-shadow: var(--card-shadow); }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 0 20px rgba(0, 179, 119, 0.4); border-color: var(--accent-color); }
.product-card.vip-product:hover { transform: translateY(-5px); box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); border-color: var(--vip-color); }

.product-img-container { position: relative; width: 100%; height: 200px; overflow: hidden; display: flex; align-items: center; justify-content: center; background-color: rgba(22, 25, 33, 0.3); }
.product-img { transition: transform 0.15s ease-out !important; }
.product-card:hover .product-img { transform: scale(1.15) !important; }

.product-img-container::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); z-index: 1; pointer-events: none; opacity: 0;
    transition: opacity 0.15s ease-out;
}
.product-card:hover .product-img-container::before { opacity: 1; }
.product-card.vip-product:hover .product-img-container::before { background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), rgba(255, 215, 0, 0.1); }

.gallery-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    padding: 10px 15px; border-radius: 12px; background-color: transparent; border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 2; opacity: 0;
    pointer-events: none; font-size: 0.9rem; min-width: 100px; text-align: center; font-weight: bold; color: #ffffff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    transition: none !important;
}
.gallery-icon i { margin-bottom: 5px; font-size: 1.2rem; filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.9)); transition: transform 0.3s ease; }
.product-card:hover .gallery-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.product-card.vip-product:hover .gallery-icon { border-color: rgba(255, 215, 0, 0.4); }
.product-card:hover .gallery-icon i { transform: scale(1.2); color: var(--accent-color); }
.product-card:hover .gallery-icon, .product-card:hover .gallery-icon i { color: white !important; }
.product-card.vip-product:hover .gallery-icon i { color: var(--vip-color); }

.product-card.center-focus { transform: translateY(-5px) !important; border-color: var(--accent-color); box-shadow: 0 0 20px rgba(0, 179, 119, 0.4); z-index: 10; }
.product-card.vip-product.center-focus { border-color: var(--vip-color); box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); }
.product-card.center-focus .product-img { transform: scale(1.15) !important; }
.product-card.center-focus .product-img-container::before { opacity: 1; }
.gallery-icon.auto-show { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; color: white !important; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }

.promocao-badge, .vip-discount-badge, .purchased-product .purchase-date-badge {
    position: absolute; top: 0; right: 0; padding: 0; border-radius: 0 8px 0 8px; z-index: 3;
    overflow: hidden; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15); display: flex; align-items: center; justify-content: center;
}
.promocao-badge { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(0, 208, 132, 0.8)); color: #000; }
.vip-discount-badge { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 215, 0, 0.8)); color: #000; }
.purchased-product .purchase-date-badge { background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(56, 189, 248, 0.8)); color: #000; }

.promocao-badge-content, .vip-discount-badge-content, .purchased-product .purchase-date-content {
    display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 6px 10px; font-weight: 600;
}
.promocao-text, .vip-discount-text, .purchased-product .purchase-date-text {
    font-size: 0.65rem; letter-spacing: 0.5px; text-transform: uppercase; font-weight: 700; line-height: 1; margin-bottom: 2px; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}
.promocao-percent, .purchased-product .purchase-date { font-size: 0.8rem; font-weight: 400; line-height: 1; color: #000; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); }
.purchased-product .purchase-date { font-size: 0.7rem; }

.product-info {
    padding: 15px 12px;
    position: relative;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: linear-gradient(180deg, rgba(30, 34, 44, 0.5) 0%, var(--dark-bg-lighter) 100%);
}
.product-title { font-weight: 700; margin: 0 0 5px 0; color: var(--text-light); font-size: 1.1rem; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: auto; max-height: 46px; word-wrap: break-word; text-overflow: ellipsis; letter-spacing: 0.03em; }
.product-version { font-size: 0.8rem; color: var(--text-light-muted); margin: 0 auto 10px; text-align: center; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; font-weight: bold; background-color: rgba(0, 0, 0, 0.2); padding: 3px 8px; border-radius: 4px; max-width: 90%; }
.product-price-container { display: flex; flex-direction: row; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 15px; min-height: 40px; }
.product-price-old { text-decoration: line-through; color: var(--old-price-color); font-size: 0.9rem; opacity: 0.8; }
.product-price { font-weight: 700; color: var(--accent-color); font-size: 1.2rem; letter-spacing: 0.03em; }
.product-price-highlight { color: var(--price-color); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.03em; text-shadow: 0 0 8px rgba(0, 208, 132, 0.4); filter: drop-shadow(0 0 12px rgba(0, 208, 132, 0.6)); transform: scale(1.1); }
.product-price-highlight.vip-price { color: var(--vip-color); text-shadow: 0 0 8px rgba(255, 215, 0, 0.4); filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.6)); }

.product-buttons { display: flex; gap: 8px; margin-top: auto; width: 100%; }
.details-label, .add-to-cart, .rescue-btn, .subscribe-vip, .purchased-product .download-btn {
    display: flex; align-items: center; justify-content: center; padding: 0 15px; height: 40px; border-radius: var(--border-radius-sm);
    font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: var(--transition-normal); flex: 1;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); border: none; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
}
.details-label { background-color: var(--dark-bg-lightest); color: var(--text-light); border: 1px solid var(--border-color); }
.details-label:hover { background-color: rgba(0, 179, 119, 0.1); color: var(--accent-color); border-color: var(--accent-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4); }
.product-card.vip-product .details-label:hover { background-color: rgba(255, 215, 0, 0.1); color: var(--vip-color); border-color: var(--vip-color); }
.add-to-cart { background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%); color: var(--text-light); box-shadow: 0 3px 12px rgba(0, 87, 184, 0.3); }
.add-to-cart:hover, .rescue-btn:hover, .subscribe-vip:hover, .purchased-product .download-btn:hover { transform: translateY(-2px); }
.add-to-cart:hover { box-shadow: 0 4px 15px rgba(0, 87, 184, 0.4); }
.add-to-cart.in-cart { background: var(--dark-bg-lightest); color: var(--text-light-muted); cursor: not-allowed; opacity: 0.8; box-shadow: none; border: 1px solid var(--border-color); }
.add-to-cart.in-cart:hover { transform: none; }

.subscribe-vip { background: linear-gradient(135deg, var(--vip-color) 0%, #ffe55c 100%); color: var(--vip-text-color); box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); font-weight: 700; }
.subscribe-vip:hover { box-shadow: 0 7px 20px rgba(255, 215, 0, 0.4); filter: brightness(1.05); }
.rescue-btn { background: linear-gradient(135deg, var(--accent-color) 0%, #00d98b 100%); color: var(--text-light); box-shadow: 0 3px 12px rgba(0, 179, 119, 0.3); font-weight: 700; }
.rescue-btn:hover { box-shadow: 0 4px 15px rgba(0, 179, 119, 0.4); }
.details-label i, .add-to-cart i, .rescue-btn i, .subscribe-vip i, .purchased-product .download-btn i { font-size: 0.75rem; }
.subscribe-vip span, .rescue-btn span, .purchased-product .download-btn span { display: flex; align-items: center; gap: 5px; }

.product-card.vip-subscription-card { border-color: var(--vip-color); box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); animation: vip-glow-pulse 3s infinite ease-in-out; }
@keyframes vip-glow-pulse { 0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); } 50% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.7); } 100% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.5); } }
.product-card.vip-subscription-card:hover { transform: translateY(-8px) !important; border-color: var(--vip-color); }

#pedidos .product-card:not(.vip-subscription-card):hover { transform: translateY(-5px) !important; box-shadow: 0 0 20px rgba(0, 153, 204, 0.5); border-color: var(--tertiary-color); }
#pedidos .product-card.center-focus:not(.vip-subscription-card) { transform: translateY(-5px) !important; box-shadow: 0 0 20px rgba(0, 153, 204, 0.5); border-color: var(--tertiary-color); }
.purchased-product .product-pedido-number { font-family: 'Orbitron', 'Montserrat', sans-serif; color: var(--accent-color); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.03em; }
.purchased-product .download-btn { background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%); color: var(--text-light); }
.purchased-product .download-btn:hover { box-shadow: 0 4px 15px rgba(0, 87, 184, 0.4); }

.cta-button { display: inline-flex; align-items: center; justify-content: center; padding: 0; height: 48px; border-radius: var(--border-radius-md); font-size: 0.95rem; font-weight: 600; width: 100%; position: relative; overflow: hidden; letter-spacing: 0.02em; }
.primary-btn { background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%); color: var(--text-light); box-shadow: 0 3px 12px rgba(0, 87, 184, 0.3); border: none; }
.primary-btn:hover { box-shadow: 0 4px 15px rgba(0, 87, 184, 0.4); transform: translateY(-2px); }
.cta-button:disabled, button:disabled { background: #2a2e36; cursor: not-allowed; opacity: 0.65; box-shadow: none; }
.cta-button:disabled:hover, button:disabled:hover { transform: none; box-shadow: none; }

button .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top: 2px solid white;
    animation: spin 0.8s linear infinite;
    display: none;
}
button.loading { pointer-events: none; }
button.loading .btn-content, button.loading span { visibility: hidden; opacity: 0; }
button.loading .spinner { display: block; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); z-index: 1000; overflow: hidden; backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.modal-content {
    background-color: var(--dark-bg-lighter); background-image: linear-gradient(135deg, rgba(30, 34, 44, 0.6) 0%, rgba(22, 25, 33, 0.8) 100%);
    padding: 25px; width: 90%; max-width: 600px; border-radius: var(--border-radius-lg); box-shadow: var(--card-shadow); position: relative;
    max-height: 80vh; overflow-y: auto; animation: modalFadeIn 0.2s ease; border: 1px solid var(--border-color);
}
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 24px; font-weight: bold; color: var(--text-light-muted); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; z-index: 10; cursor: pointer; }
.close-modal:hover { color: var(--error-color); background: rgba(224, 49, 49, 0.2); }

.product-detail-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); z-index: 1000; overflow: hidden; align-items: center; justify-content: center; }
.product-detail-content {
    background: linear-gradient(135deg, rgba(30, 34, 44, 0.95) 0%, rgba(22, 25, 33, 0.95) 100%); border-radius: var(--border-radius-lg);
    box-shadow: var(--card-shadow); border: 1px solid var(--border-color); width: 90%; max-width: 600px; max-height: 85vh;
    display: flex; flex-direction: column; position: relative; animation: modalFadeIn 0.3s ease; overflow: hidden;
}
.product-image-background { position: absolute; top: 0; left: 0; width: 100%; height: 320px; overflow: hidden; z-index: 0; }
.product-image-background::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(22, 25, 33, 0.4) 0%, rgba(22, 25, 33, 0.85) 70%, rgba(22, 25, 33, 0.98) 100%); z-index: 1; }
.product-image-background img { width: 100%; height: 100%; object-fit: cover; filter: blur(8px); transform: scale(1.1); opacity: 0.6; }
.modal-header { padding: 20px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; background: transparent; }
#product-detail-title { margin: 0; color: var(--text-light); font-size: 1.5rem; font-weight: 700; text-align: center; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); }
#modal-close-btn { background: rgba(22, 25, 33, 0.5); color: var(--text-light-muted); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0.7; position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; }
#modal-close-btn:hover { opacity: 1; color: var(--text-light); background: rgba(0, 0, 0, 0.4); }
.product-image-container { width: 100%; height: 200px; margin: 0 auto; display: flex; justify-content: center; align-items: center; position: relative; z-index: 2; overflow: hidden; min-height: 200px; max-height: 200px; }
.product-image-container img { width: 90%; height: 90%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.5)); }
.product-detail-body { padding: 15px 20px 25px; overflow-y: auto; flex: 1; scrollbar-width: thin; scrollbar-color: var(--accent-color) var(--dark-bg); position: relative; z-index: 2; background: linear-gradient(180deg, rgba(22, 25, 33, 0.2) 0%, var(--dark-bg-lighter) 10%); mask-image: linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 10px), transparent 100%); -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 10px, black calc(100% - 10px), transparent 100%); }
.product-detail-pricing { display: flex; flex-direction: row; align-items: center; justify-content: center; margin: 15px 0; gap: 10px; }
#product-detail-original-price { text-decoration: line-through; color: var(--old-price-color); font-size: 0.95rem; opacity: 0.8; }
#product-detail-current-price { color: var(--price-color); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; text-shadow: 0 0 8px rgba(0, 208, 132, 0.4); filter: drop-shadow(0 0 12px rgba(0, 208, 132, 0.6)); transform: scale(1.1); }

.product-detail-divider { height: 1px; background: linear-gradient(to right, transparent, var(--border-color), transparent); margin: 15px 0; }
.product-metadata { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 12px 0; }
.metadata-item { display: flex; align-items: center; gap: 6px; background: rgba(22, 25, 33, 0.6); padding: 6px 10px; border-radius: var(--border-radius-md); font-size: 0.8rem; color: var(--text-light-muted); }
.metadata-item i { color: var(--accent-color); font-size: 0.85rem; }
#product-detail-description { color: var(--text-light); line-height: 1.6; margin-bottom: 20px; font-size: 0.9rem; }
.formatted-description { border-radius: var(--border-radius-md); background: rgba(22, 25, 33, 0.5); padding: 16px; margin-bottom: 20px; border: 1px solid var(--border-color); word-wrap: break-word; }
.formatted-description p { margin-bottom: 12px; color: var(--text-light); font-size: 0.75rem; line-height: 1.7; text-align: left; }
.formatted-description ul { margin: 0 0 12px 20px; }
.formatted-description li { margin-bottom: 6px; position: relative; padding-left: 5px; font-size: 0.75rem; line-height: 1.5; }
.formatted-description li::before { content: "•"; color: var(--accent-color); position: absolute; left: -15px; }
.formatted-description strong { color: var(--accent-color); font-weight: 600; }
.formatted-description .highlight { background-color: rgba(0, 179, 119, 0.1); padding: 2px 5px; border-radius: 3px; }

.product-detail-action {
    display: flex;
    justify-content: center;
}

.add-to-cart-detail { display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; height: 45px; border-radius: var(--border-radius-md); font-size: 0.9rem; font-weight: 600; background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%); color: var(--text-light); box-shadow: 0 4px 15px rgba(0, 87, 184, 0.3); width: 80%; max-width: 250px; }
.add-to-cart-detail:hover { transform: translateY(-3px); box-shadow: 0 7px 20px rgba(0, 87, 184, 0.4); }
.add-to-cart-detail i { margin-right: 8px; font-size: 0.9rem; }
.add-to-cart-detail.in-cart { background: var(--dark-bg-lightest); color: var(--text-light-muted); cursor: not-allowed; box-shadow: none; border: 1px solid var(--border-color); }

.image-viewer-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.95); z-index: 2000; backdrop-filter: blur(5px); overflow: hidden; }
.image-viewer-content { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; }
.image-viewer-container { width: 100%; height: calc(100% - 120px); display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; touch-action: none; }
.main-image-viewer {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 90vw;
}
.main-image-viewer img { max-height: 100%; max-width: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.image-navigation { width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; background: rgba(22, 25, 33, 0.8); border-radius: 50%; border: 1px solid var(--border-color); position: absolute; top: 50%; transform: translateY(-50%); opacity: 0.7; z-index: 10; cursor: pointer;}
.image-navigation:hover { background: rgba(0, 179, 119, 0.3); opacity: 1; border-color: var(--accent-color); }
.image-navigation i { font-size: 18px; color: var(--text-light); }
.prev-image { left: 15px; }
.next-image { right: 15px; }
.image-thumbnails-container { position: relative; width: 100%; display: flex; justify-content: flex-start; align-items: center; gap: 10px; padding: 15px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--accent-color) transparent; height: 100px; background: rgba(0,0,0,0.3); border-top: 1px solid var(--border-color); scroll-behavior: smooth; }
.thumbnails-center-wrapper { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; width: auto; }
.image-thumbnail { width: 70px; height: 70px; border-radius: var(--border-radius-sm); cursor: pointer; opacity: 0.6; border: 2px solid transparent; object-fit: cover; flex-shrink: 0; scroll-margin-left: 15px; }
.image-thumbnail:hover { opacity: 1; transform: scale(1.05); }
.image-thumbnail.active { opacity: 1; border-color: var(--accent-color); box-shadow: 0 0 8px rgba(0, 179, 119, 0.4); transform: scale(1.1); }
.close-image-viewer { position: absolute; top: 15px; right: 15px; font-size: 22px; color: var(--text-light-muted); background: rgba(22, 25, 33, 0.8); width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2001; cursor: pointer; }
.close-image-viewer:hover { color: var(--error-color); background: rgba(224, 49, 49, 0.3); }
.image-counter { position: absolute; top: 15px; left: 15px; background: rgba(22, 25, 33, 0.8); color: var(--text-light); padding: 5px 12px; border-radius: 20px; font-size: 13px; z-index: 10; }
@keyframes slideLeft { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideRight { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.slide-left { animation: slideLeft 0.3s ease forwards; }
.slide-right { animation: slideRight 0.3s ease forwards; }

.notificacao-flutuante {
    position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); padding: 12px 24px; border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow); color: var(--text-light); font-weight: 500; z-index: 1001; display: flex; align-items: center;
    gap: 10px; font-size: 0.9rem; text-align: center; max-width: 90%; opacity: 0;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out; white-space: nowrap;
}
.notificacao-flutuante.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.notificacao-flutuante.hide { opacity: 0; transform: translateX(-50%) translateY(20px); }
.notificacao-sucesso { background: var(--accent-color); border: 1px solid #009462; }
.notificacao-erro { background: var(--error-color); border: 1px solid #a02323; }
.notificacao-flutuante i { font-size: 1.1rem; }

.sync-status-indicator {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 15px;
    margin: -10px auto 15px auto;
    background: linear-gradient(135deg, rgba(30, 34, 44, 0.8) 0%, rgba(22, 25, 33, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    color: var(--text-light-muted);
    font-size: 0.8rem;
    font-weight: 500;
    max-width: 250px;
    width: 100%;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, padding 0.3s ease;
}
.sync-status-indicator.show {
    display: flex;
    opacity: 1;
    max-height: 50px;
    padding: 8px 15px;
}
.sync-status-indicator .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin-inline 1.2s linear infinite;
}

@media (min-width: 992px) {
    .image-thumbnails-container { justify-content: center; }
    .thumbnails-center-wrapper { margin: 0 auto; justify-content: center; }
    .image-thumbnails-container::-webkit-scrollbar { display: none; }
    .image-thumbnails-container { scrollbar-width: none; -ms-overflow-style: none; }
}

@media (max-width: 992px) {
    .header-nav-buttons, .header-right-content { display: none !important; }
    .image-thumbnails-container { justify-content: flex-start; }
    .thumbnails-center-wrapper { margin: 0; justify-content: flex-start; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
    .image-thumbnail { width: 60px; height: 60px; }
}

@media (max-width: 768px) {
    :root { --header-height: 55px; }
    .desktop-only { display: none !important; }
    .mobile-only, .bottom-nav { display: flex !important; }
    .site-footer { display: none !important; }
    .modal-content { width: 95%; }
    .cart-item { flex-wrap: wrap; padding: 12px; }
    .cart-item-info { width: calc(100% - 85px); }
    .cart-item-actions { width: 100%; margin-top: 12px; justify-content: flex-end; }
    .filter-container { padding: 12px; flex-wrap: nowrap; } 
    .image-navigation { width: 40px; height: 40px; }
    .image-navigation i { font-size: 16px; }
    .prev-image { left: 10px; }
    .next-image { right: 10px; }
    .container { padding-bottom: var(--bottom-nav-height); }
    .tab-content { padding-bottom: calc(var(--bottom-nav-height) + 20px) !important; }
    .notificacao-flutuante { bottom: calc(var(--bottom-nav-height) + 15px); }
    .cart-summary { margin-bottom: calc(var(--bottom-nav-height) + 20px); }
    .product-detail-content { width: 95%; max-height: 90vh; }
    .modal-header { padding: 12px 15px; }
    .product-detail-body { padding: 15px; }
    #product-detail-title { font-size: 1.3rem; }
    #product-detail-current-price { font-size: 1.2rem; }
    .product-image-container { height: 180px; }
    .product-image-background { height: 250px; }
    .formatted-description p, .formatted-description li { font-size: 0.7rem; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 15px; }
    .product-card { height: 350px; }
    .product-title { font-size: 1rem; max-height: 42px; }
    .promocao-badge-content, .vip-discount-badge-content, .purchased-product .purchase-date-content { padding: 4px 8px; }
    .promocao-text, .vip-discount-text, .purchased-product .purchase-date-text { font-size: 0.6rem; }
    .promocao-percent { font-size: 0.7rem; }
    .product-price-highlight { font-size: 1.15rem; }
    .product-buttons { gap: 5px; }
    .details-label, .add-to-cart, .rescue-btn, .subscribe-vip, .purchased-product .download-btn { padding: 0 10px; font-size: 0.7rem; }
}

@media (max-width: 576px) {
    .navbar { padding: 0 10px; }
    .logo { font-size: 1.4rem; }
    .logo i { font-size: 1.4rem; }
    .image-navigation { width: 35px; height: 35px; }
    .prev-image { left: 5px; }
    .next-image { right: 5px; }
    .bottom-nav-item { padding: 6px 5px; }
    .bottom-nav-item i { font-size: 1rem; margin-bottom: 2px; }
    .bottom-nav-item span { font-size: 0.6rem; }
    .product-detail-content { width: 98%; }
    #product-detail-title { font-size: 1.1rem; }
    .product-image-container { height: 160px; }
    .product-image-background { height: 220px; }
    .metadata-item { font-size: 0.75rem; padding: 5px 8px; }
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
    .product-card { height: 330px; }
    .product-title { font-size: 0.9rem; max-height: 38px; }
    .promocao-percent { font-size: 0.65rem; }
    .product-price-highlight { font-size: 1.1rem; }
    .product-price-old { font-size: 0.8rem; }
    .details-label, .add-to-cart, .rescue-btn, .subscribe-vip, .purchased-product .download-btn { height: 36px; padding: 0 6px; gap: 3px; font-size: 0.65rem; }
    .details-label i, .add-to-cart i, .rescue-btn i, .subscribe-vip i, .purchased-product .download-btn i { font-size: 0.65rem; }
    .purchased-product .purchase-date-text { font-size: 0.6rem; }
    .purchased-product .purchase-date { font-size: 0.65rem; }
    .purchased-product .product-pedido-number { font-size: 0.8rem; }
}

@media (max-width: 420px) {
    .product-grid { grid-template-columns: 1fr; }
    .product-card { max-width: 100%; height: 360px; }
}

@media (hover: none) and (pointer: coarse) {
    .product-card:hover { transform: none !important; box-shadow: var(--card-shadow); border-color: var(--border-color); }
    .product-card.vip-product:hover { transform: none !important; box-shadow: var(--card-shadow); border-color: var(--border-color); }
    .product-card.vip-subscription-card:hover { transform: none !important; border-color: var(--vip-color); }
    .product-card:hover .product-img { transform: scale(1.05) !important; }
    .product-card:hover .product-img-container::before { background: transparent; }
    .product-card:hover .gallery-icon { opacity: 0; }
}

.download-error-header {
    text-align: center;
    margin-bottom: 20px;
}
.download-error-header i {
    font-size: 2.5rem;
    color: var(--warning-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px rgba(242, 204, 143, 0.4));
}
.download-error-header h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--warning-color);
    margin: 0;
    font-size: 1.3rem;
}
.download-error-body p {
    text-align: center;
    color: var(--text-light-muted);
    line-height: 1.7;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.download-error-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.download-error-action .cta-button {
    width: 80%;
    max-width: 220px;
}
.download-error-action .cta-button:first-child {
    background: var(--warning-color);
    color: var(--dark-bg);
    font-weight: 700;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 204, 143, 0.2);
}
.download-error-action .cta-button:first-child:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 204, 143, 0.3);
}
#download-error-rules-btn {
    background: transparent;
    color: var(--warning-color);
    border: 1px solid var(--warning-color);
    font-weight: 600;
}
#download-error-rules-btn:hover {
    background: rgba(242, 204, 143, 0.1);
    color: var(--warning-color);
    transform: translateY(-2px);
}