:root {
    --background: #08090b;
    --header: #0d0e11;
    --border: #1b1b20;
    --text: #FFFFFF;
    --muted: #999B9B;
    --card: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --silver color: #999B9B;
    --green: #21c985;
    --yellow: #ffba09;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.icons {
    display: none;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::-webkit-scrollbar {
    width: 14px;
    border-left: 1px solid var(--border);
}

body::-webkit-scrollbar-track {
    background: transparent;
}

body::-webkit-scrollbar-thumb {
    background-color: #ffffff90;
    border-radius: 10px;
    border: 5px solid transparent;
    background-clip: padding-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font-family: inherit;
}

svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    display: block;
}

img {
    display: block;
    max-width: 100%;
}

.dimension-container,
.dimension-page,
.container-hero,
.footer-inner {
    max-width: 1280px;
    margin-right: auto;
    margin-left: auto;
}

.dimension-page {
    width: calc(100% - 2rem);
    padding: 1rem;
}

/* BACKGROUND */

.page-bg img {
    position: fixed;
    z-index: -1;
    user-select: none;
    pointer-events: none;
    top: 47px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    max-height: 700px;
    object-fit: cover;
    mask-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.39), rgba(0, 0, 0, 0));
    -webkit-mask-image: linear-gradient(rgb(0, 0, 0), rgba(0, 0, 0, 0.39), rgba(0, 0, 0, 0));
    opacity: 50%;
}

/* HEADER */

.header {
    position: sticky;
    z-index: 5;
    left: 0;
    right: 0;
    top: 0;
    background-color: var(--header);
    border-bottom: 1px solid var(--border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--header);
    gap: 1rem;
    padding: 0.6rem 1.5rem;
}

.store-brand {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-brand>img:first-child {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
}

.store-brand span {
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
    color: var(--text);
    transition: 0.5s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.verified-badge {
    width: 17px;
    height: 17px;
    display: inline-block;
}

/* PESQUISA DO HEADER */

.header-search {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.header-search-field {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: transparent;
    transition: 0.2s ease;
}

.header-search-field:focus-within {
    border-color: rgba(217, 217, 217, 0.7);
    box-shadow: 0 0 0 3px rgba(217, 217, 217, 0.15);
}

.header-search-field svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    fill: var(--muted);
}

.header-search-field input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
}

.header-search-field input::placeholder {
    color: var(--muted);
}

.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 100;
    display: none;
    max-height: 390px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(13, 14, 17, 0.98);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}

.search-results.active {
    display: block;
}

.search-result-item {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 9px;
    transition: 0.2s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(217, 217, 217, 0.12);
}

.search-result-image {
    width: 48px;
    height: 42px;
    object-fit: cover;
    border-radius: 7px;
    background: #101010;
}

.search-result-info {
    min-width: 0;
}

.search-result-info strong {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-result-info span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.search-result-price {
    color: var(--green);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.search-empty {
    padding: 18px 12px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* HEADER MOBILE */

@media (max-width: 766px) {
    .nav {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        gap: 0.7rem;
        padding: 0.55rem 0.8rem;
    }

    .store-brand {
        width: auto;
        flex: 0 0 auto;
        min-width: 0;
    }

    .store-brand>img:first-child {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .store-brand span {
        font-size: 12px;
        white-space: nowrap;
    }

    .verified-badge {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }

    .header-search {
        order: initial;
        flex: 1;
        width: auto;
        max-width: none;
        min-width: 0;
    }

    .header-search-field {
        min-height: 36px;
        gap: 0.45rem;
        padding: 0.35rem 0.65rem;
    }

    .header-search-field svg {
        width: 18px;
        height: 18px;
    }

    .header-search-field input {
        min-width: 0;
        font-size: 12px;
    }

    .header-search-field input::placeholder {
        font-size: 12px;
    }

    .header-actions {
        display: none;
    }

    .search-results {
        top: calc(100% + 8px);
        max-height: 340px;
    }

    .search-result-item {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .search-result-image {
        width: 42px;
        height: 38px;
    }

    .search-result-price {
        display: none;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-action {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-action svg {
    fill: var(--text);
}

.cart-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .3rem;
    user-select: none;
    padding: .3rem 1rem;
    border-radius: 6px;
    background: var(--text);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    line-height: 14px;
    color: #000000;
}

.cart-btn svg {
    width: 20px;
    height: 20px;
    fill: #000000;
}

.login-btn {
    font-weight: 450;
    font-size: 14px;
    line-height: 16px;
    color: var(--text);
    padding: 0.43rem 1rem;
    background: #f5f5f520;
    border-radius: 6px;
    cursor: pointer;
}

/* HERO */

.hero-section {
    position: relative;
    padding: 30px 0;
    z-index: 1;
    color: #e0e0e0;
}

.container-hero {
    width: 100%;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.hero-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hero-presentation {
    flex: 1;
    max-width: 100%;
    text-align: left;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #e0e0e0;
    max-width: 640px;
}

.hero-title span {
    color: #D9D9D9;
    text-shadow: 0 0 18px rgba(217, 217, 217, 0.15);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 25px;
    line-height: 1.5;
    max-width: 680px;
}

.hero-buttons {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
    justify-content: flex-start;
}

.hero-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-btn-primary {
    background-color: #1c1c1c;
    color: white;
    box-shadow: 0 4px 15px rgba(28, 28, 28, 0.2);
}

.hero-btn-secondary {
    background-color: rgba(28, 27, 34, 0.65);
    color: #e0e0e0;
    border: 1px solid #414145;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 25px;
    color: #a0a0a0;
    font-size: 0.9rem;
}

.hero-features span {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hero-features svg {
    width: 15px;
    height: 15px;
    color: var(--blue);
}

.control-panel {
    flex: 1;
    max-width: 450px;
    background: rgba(28, 27, 34, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(42, 41, 49, 0.8);
    border-radius: 16px;
    padding: 25px;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #414145;
}

.panel-icon-bg {
    background-color: #1c1c1c;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.panel-icon-bg svg {
    width: 24px;
    height: 24px;
    color: var(--blue);
}

.panel-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e0e0e0;
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.panel-item {
    background-color: rgba(16, 15, 20, 0.7);
    border: 1px solid #414145;
    border-radius: 12px;
    padding: 20px;
    min-height: 128px;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.panel-item svg {
    color: var(--blue);
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 10px rgba(28, 28, 28, 0.7));
}

.panel-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #e0e0e0;
}

.panel-item p {
    font-size: 0.85rem;
    color: #a0a0a0;
}

.panel-footer {
    margin-top: 25px;
}

.panel-footer a {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #e0e0e0;
    background-color: rgba(16, 15, 20, 0.7);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #414145;
}

.panel-footer svg {
    width: 21px;
    height: 21px;
    color: var(--blue);
}

.panel-footer h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.2;
}

.panel-footer p {
    font-size: 0.85rem;
    color: #a0a0a0;
    margin: 0;
    line-height: 1.2;
}

/* PRODUCTS */

.products-wrapper {
    position: relative;
    z-index: 2;
}

.categories {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: AnimeCategory 0.4s ease both;
}

@keyframes AnimeCategory {
    0% {
        transform: translateY(-25px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.category-title {
    display: flex;
}

.category-title h2 {
    display: flex;
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background-color: #0d0e1140;
    border: 2px solid #0d0e1140;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

.product-card:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
}

.product-image {
    height: 140px;
    overflow: hidden;
    background: #101010;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image.sold-out img {
    filter: blur(3px) brightness(0.55);
}

.soldout-label {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.product-info {
    padding: 0.65rem;
}

.product-info h3 {
    min-height: 38px;
    font-size: 13px;
    line-height: 16px;
    font-weight: 500;
    color: #f5f5f5;
    margin-bottom: 0.8rem;
}

.discount-line {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 17px;
    margin-bottom: 3px;
}

.old-price {
    font-size: 12px;
    line-height: 14px;
    color: #8c8c8c;
    text-decoration: line-through;
}

.discount {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-area strong {
    display: block;
    font-size: 17px;
    line-height: 20px;
    color: #f5f5f5;
    font-weight: 600;
}

.price-area span {
    display: block;
    font-size: 12px;
    line-height: 14px;
    color: #8c8c8c;
    margin-top: 3px;
}

.price-row svg {
    width: 16px;
    height: 16px;
    color: var(--blue);
}

.card-actions {
    gap: 8px;
    align-items: center;
    margin-top: 0.7rem;
}

.buy-btn {
    width: 100%;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-weight: 600;
    font-size: 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: grid;
    place-items: center;
}

.bag-small {
    display: grid;
    place-items: center;
    opacity: 0.7;
}

.bag-small svg {
    width: 18px;
    height: 18px;
    color: #000;
}

/* REVIEWS */

.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.7rem;
}

.reviews-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: 1rem;
    overflow: hidden;
}

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem;
    min-height: 155px;
}

.review-head {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.review-avatar {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #8c8c8c;
    color: #8c8c8c;
}

.review-avatar svg {
    width: 16px;
    height: 16px;
}

.stars {
    display: flex;
    gap: 3px;
    color: var(--yellow);
}

.stars svg {
    width: 15px;
    height: 15px;
}

.review-card h3 {
    font-size: 12px;
    line-height: 14px;
    color: #f5f5f5;
    margin-bottom: 0.35rem;
}

.review-card p {
    font-size: 12px;
    line-height: 16px;
    color: #b7b7b7;
    min-height: 38px;
}

.review-product {
    height: 38px;
    margin-top: 0.8rem;
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    gap: 8px;
    border-radius: 8px;
    background: rgba(88, 88, 105, 0.15);
    border: 1px solid var(--border);
    padding: 4px 8px 4px 4px;
}

.review-product img {
    width: 38px;
    height: 30px;
    object-fit: cover;
    border-radius: 5px;
}

.review-product span {
    font-size: 12px;
    font-weight: 600;
    color: #f5f5f5;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.review-product strong {
    font-size: 12px;
    color: var(--green);
    white-space: nowrap;
}

/* FOOTER */

.footer {
    border-top: 1px solid var(--border);
    background-color: var(--header);
    padding: 1rem;
    margin-top: 0.5rem;
}

.footer-inner {
    border-radius: 10px;
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-grid {
    display: grid;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    grid-template-columns: 1fr 1fr 1fr;
}

.footer-shop {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-shop p {
    max-width: 400px;
    font-size: 12px;
    line-height: 16px;
    color: #8c8c8c;
}

.footer-logo {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    border-radius: 7px;
}

.footer-logo h2 {
    font-size: 12px;
    line-height: 13px;
    font-weight: 400;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links h3 {
    font-size: 13px;
    line-height: 14px;
    font-weight: 500;
}

.footer-links a {
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    padding: .3rem 0;
    color: #8c8c8c;
    transition: .3s;
}

.footer-links a:hover {
    color: #f5f5f5;
    text-decoration: underline;
}

.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-social p {
    font-size: 13px;
    line-height: 15px;
    color: #8c8c8c;
    text-align: center;
}

.footer-social>div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    background: #58586920;
    border-radius: 100%;
    padding: 0.6rem;
    transition: 0.3s;
}

.footer-social a svg {
    fill: #585869;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.footer-bottom p,
.footer-bottom a {
    font-size: 12px;
    line-height: 14px;
    color: #8c8c8c;
}

.footer-bottom span {
    color: #f5f5f5;
}

/* FLOATING */

.sales-popup {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    background-color: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sales-popup .popup-icon {
    font-size: 1.5rem;
    color: #32BCAD;
    width: 24px;
    height: 24px;
}

.sales-popup p {
    margin: 0;
    color: #b3b3b3;
    font-size: 0.9rem;
}

.sales-popup p strong {
    color: #ffffff;
    font-weight: 600;
}

.chat-button {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: #1c1c1c;
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.chat-button svg {
    width: 30px;
    height: 30px;
}

/* RESPONSIVE */

@media (max-width: 950px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-container {
        flex-direction: column;
        align-items: center;
    }

    .hero-presentation {
        text-align: center;
    }

    .hero-buttons,
    .hero-features {
        justify-content: center;
    }

    .control-panel {
        display: none;
    }
}

@media (max-width: 750px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .reviews-row {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .search-btn {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-social {
        align-items: flex-start;
    }
}

@media (max-width: 530px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .header-actions {
        gap: 0.5rem;
    }

    .cart-btn {
        padding: .3rem .5rem;
    }

    .cart-btn span {
        display: none;
    }

    .login-btn {
        padding: 0.43rem 0.7rem;
    }

    .hero-title {
        font-size: 2.7rem;
    }

    .reviews-row {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .sales-popup {
        display: none;
    }
}

@media (max-width: 360px) {
    .store-brand span {
        display: none;
    }
}
