html,
body,
#root,
#app,
[data-reactroot],
div[class*="container"],
div[class*="wrapper"],
div[class*="layout"],
div[class*="page"],
div[class*="main"],
div[class*="content"] {
    background-color: #0d0d0d !important;
}

body {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    background-attachment: fixed !important;
    background-repeat: repeat !important;
    min-height: 100vh !important;
    color: #ffffff !important;
}

html,
body {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    height: auto !important;
}

body::after {
    display: none !important;
}

#powered-ereemby {
    display: none !important;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 16px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: #ffffff;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.menu-toggle:hover span {
    background: #7c3aed;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7.75px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.75px) rotate(-45deg);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: -340px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a1a 0%, #121212 100%);
    border-right: 1px solid rgba(124, 58, 237, 0.3);
    box-shadow: 4px 0 30px rgba(124, 58, 237, 0.2);
    z-index: 1000;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.sidebar-menu.active {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    color: #d1d5db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    gap: 16px;
    border-radius: 12px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.sidebar-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #7c3aed, #7c3aeddd);
    transform: scaleY(0);
    transition: transform 0.25s ease;
}

.sidebar-menu a:hover::before {
    transform: scaleY(1);
}

.sidebar-menu a:hover {
    background: rgba(124, 58, 237, 0.2);
    color: #ffffff;
    transform: translateX(4px);
}

/* Pagina interna do produto: corrige transparencia exagerada sem mexer nos cards da vitrine */
main section,
main aside,
aside {
    color: #ffffff !important;
}

main section>div:not([class*="product_card"]):not([class*="fruMxE"]),
main aside>div,
aside>div,
div[class*="purchase"],
div[class*="payment"],
div[class*="method"],
div[class*="checkout"],
div[class*="stock"] {
    background: rgba(5, 5, 5, 0.72) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
}

/* Botoes da pagina do produto */
main aside button,
aside button,
div[class*="purchase"] button,
div[class*="checkout"] button {
    opacity: 1 !important;
    border-radius: 8px !important;
}

main aside button:not(:disabled),
aside button:not(:disabled),
div[class*="purchase"] button:not(:disabled),
div[class*="checkout"] button:not(:disabled) {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #ffffff !important;
}

main aside button:not(:disabled):hover,
aside button:not(:disabled):hover,
div[class*="purchase"] button:not(:disabled):hover,
div[class*="checkout"] button:not(:disabled):hover {
    background: #e8e8e8 !important;
    color: #000000 !important;
}

main aside button:disabled,
aside button:disabled,
div[class*="purchase"] button:disabled,
div[class*="checkout"] button:disabled {
    background: rgba(255, 255, 255, 0.13) !important;
    color: rgba(255, 255, 255, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    opacity: 1 !important;
}

/* Controle de quantidade */
main aside button[aria-label*="diminuir"],
main aside button[aria-label*="aumentar"],
aside button[aria-label*="diminuir"],
aside button[aria-label*="aumentar"],
div[class*="quantity"] button,
div[class*="amount"] button,
div[class*="counter"] button {
    background: rgba(0, 0, 0, 0.32) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

div[class*="quantity"],
div[class*="amount"],
div[class*="counter"] {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

/* Nao deforma emojis, selos e icones pequenos */
img.emoji,
span img,
h1 img,
h2 img,
h3 img,
p img,
button img,
div[class*="automatic"] img,
div[class*="manual"] img,
div[class*="payment"] img,
div[class*="method"] img {
    width: auto !important;
    height: auto !important;
    max-width: 24px !important;
    max-height: 24px !important;
    object-fit: contain !important;
    aspect-ratio: auto !important;
}

@media (max-width: 768px) {
    .sidebar-menu {
        width: 300px;
        left: -320px;
    }
}
