
/* =====================================================
   MEGATECH — CSS COMPARTILHADO
===================================================== */

/* CONFIGURAÇÕES GERAIS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    background-color: #000000;
}

/* =====================================================
   PÁGINA
===================================================== */

.page-container {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    background-color: #D9D9D9;
    border-left: 10px solid #123B69;
    border-right: 10px solid #123B69;
}

/* =====================================================
   TOPO
===================================================== */

.main-header {
    width: 100%;
    height: 190px;
    background-color: #123B69;
    position: relative;
}

/* =====================================================
   SETA VOLTAR
===================================================== */

.back-button {
    position: absolute;
    left: 25px;
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #123B69;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    font-weight: bold;
    z-index: 20;
}

.back-button:hover {
    background-color: #D9D9D9;
}

/* =====================================================
   LOGO
===================================================== */

.logo {
    position: absolute;
    left: 75px;
    top: 12px;
    width: 135px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* =====================================================
   TÍTULO
===================================================== */

.page-title {
    position: absolute;
    left: 235px;
    top: 35px;
    color: #FFFFFF;
    font-size: 27px;
    font-weight: 800;
    white-space: nowrap;
}

/* =====================================================
   PESQUISA
===================================================== */

.search-bar {
    position: absolute;
    top: 31px;
    left: 50%;
    transform: translateX(-50%);
    width: min(430px, 32vw);
    height: 42px;
    background-color: #D9D9D9;
    border-radius: 25px;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: calc(100% - 45px);
    height: 100%;
    border: none;
    outline: none;
    background-color: transparent;
    padding: 0 18px;
    font-size: 13px;
    color: #123B69;
}

.search-btn {
    width: 45px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #123B69;
    font-size: 25px;
}

/* =====================================================
   LOGIN / PERFIL
===================================================== */

.profile-button {
    position: absolute;
    right: 82px;
    top: 27px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-button img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

/* =====================================================
   CARRINHO
===================================================== */

.cart-button {
    position: absolute;
    right: 28px;
    top: 27px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

/* =====================================================
   MENU DE NAVEGAÇÃO
===================================================== */

.nav-bar {
    position: absolute;
    left: 75px;
    bottom: 55px;
    display: flex;
    align-items: center;
    gap: 38px;
}

.menu-dropdown {
    position: relative;
}

.menu-dropdown summary {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    letter-spacing: 0.5px;
    list-style: none;
    user-select: none;
}

.menu-dropdown summary::-webkit-details-marker {
    display: none;
}

/* =====================================================
   CAIXA DO MENU
===================================================== */

.menu-modal {
    position: absolute;
    top: 40px;
    left: 0;
    z-index: 999;
    background-color: #174A83;
    border-radius: 15px;
    padding: 20px 25px;
    width: 520px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   COLUNAS DO MENU
===================================================== */

.menu-modal-content {
    display: flex;
    gap: 30px;
}

.menu-column {
    flex: 1;
}

/* =====================================================
   TÍTULOS DO MENU
===================================================== */

.menu-title {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}

/* =====================================================
   LINKS DO MENU
===================================================== */

.menu-column a {
    display: flex;
    align-items: center;
    background-color: #D9D9D9;
    color: #000000;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: 0.2s;
}

.menu-column a:hover {
    background-color: #FFFFFF;
    transform: translateX(3px);
}

/* =====================================================
   LINKS PRINCIPAIS
===================================================== */

.nav-link {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    text-decoration: underline;
}

/* =====================================================
   CATEGORIAS
===================================================== */

.tags-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.tag-item {
    height: 32px;
    min-width: 105px;
    padding: 0 16px;
    background-color: #D9D9D9;
    border-radius: 18px;
    color: #123B69;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    transition: 0.2s;
}

.tag-item:hover {
    background-color: #FFFFFF;
    transform: scale(1.04);
}

/* =====================================================
   ÁREA DOS PRODUTOS
===================================================== */

.products-section {
    width: 100%;
    background-color: #D9D9D9;
    padding: 30px 55px 45px;
}

/* =====================================================
   GRADE DE PRODUTOS
===================================================== */

.products-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 35px;
    row-gap: 25px;
}

/* =====================================================
   CARTÃO DO PRODUTO
===================================================== */

.product-card {
    width: 100%;
    height: 385px;
    background-color: #123B69;
    padding: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 3px;
}

/* =====================================================
   LINK DA IMAGEM
===================================================== */

.card-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

/* =====================================================
   IMAGEM DO PRODUTO
===================================================== */

.card-image {
    width: 100%;
    height: 225px;
    background-color: #D9D9D9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-image img {
    width: 92%;
    height: 215px;
    object-fit: contain;
}

/* =====================================================
   NOME DO PRODUTO
===================================================== */

.product-title {
    width: 100%;
    height: 48px;
    margin-top: 12px;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: bold;
    line-height: 17px;
    overflow: hidden;
}

.product-title a {
    color: #FFFFFF;
    text-decoration: none;
}

/* =====================================================
   PARCELAMENTO
===================================================== */

.installment {
    color: #FFFFFF;
    font-size: 12px;
    margin-top: 9px;
}

.installment span {
    font-size: 11px;
}

/* =====================================================
   PREÇO E CARRINHO
===================================================== */

.card-footer {
    position: absolute;
    left: 15px;
    right: 15px;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* PREÇO */

.price {
    color: #FFFFFF;
    font-size: 25px;
    font-weight: bold;
}

/* =====================================================
   BOTÃO ADICIONAR AO CARRINHO
===================================================== */

.add-to-cart-btn {
    width: 34px;
    height: 34px;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 23px;
    font-weight: bold;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #FFFFFF;
    color: #123B69;
}

/* =====================================================
   PARTE AZUL INFERIOR
===================================================== */

.bottom-blue {
    width: 100%;
    height: 45px;
    background-color: #123B69;
}

/* =====================================================
   RESPONSIVIDADE — MONITORES MENORES
===================================================== */

@media (max-width: 1400px) {

    .main-header {
        height: 180px;
    }

    .page-title {
        left: 215px;
        font-size: 24px;
    }

    .search-bar {
        width: 350px;
    }

    .products-section {
        padding: 25px 40px 40px;
    }

    .product-card {
        height: 350px;
    }

    .card-image {
        height: 200px;
    }

    .card-image img {
        height: 190px;
    }

    .product-title {
        font-size: 12px;
    }

    .price {
        font-size: 22px;
    }
}

/* =====================================================
   RESPONSIVIDADE — NOTEBOOK / TELAS MENORES
===================================================== */

@media (max-width: 1100px) {

    .main-header {
        height: 170px;
    }

    .logo {
        left: 60px;
        width: 115px;
        height: 70px;
    }

    .page-title {
        left: 190px;
        font-size: 21px;
    }

    .search-bar {
        width: 280px;
        height: 36px;
    }

    .profile-button {
        right: 65px;
    }

    .cart-button {
        right: 18px;
    }

    .nav-bar {
        left: 60px;
        bottom: 50px;
    }

    .tags-bar {
        width: 96%;
        gap: 7px;
    }

    .tag-item {
        min-width: 80px;
        height: 28px;
        padding: 0 10px;
        font-size: 10px;
    }

    .products-section {
        padding: 20px 25px 35px;
    }

    .products-grid {
        column-gap: 20px;
        row-gap: 20px;
    }

    .product-card {
        height: 315px;
        padding: 12px;
    }

    .card-image {
        height: 175px;
    }

    .card-image img {
        height: 165px;
    }

    .product-title {
        font-size: 10px;
        line-height: 14px;
    }

    .installment {
        font-size: 10px;
    }

    .price {
        font-size: 19px;
    }
}

/* =====================================================
   RESPONSIVIDADE — CELULAR
===================================================== */

@media (max-width: 700px) {

    .main-header {
        height: 180px;
    }

    .page-title {
        left: 145px;
        font-size: 17px;
    }

    .search-bar {
        display: none;
    }

    .nav-bar {
        left: 25px;
        bottom: 55px;
        gap: 18px;
    }

    .menu-dropdown summary,
    .nav-link {
        font-size: 14px;
    }

    .tags-bar {
        display: none;
    }

    .products-section {
        padding: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-card {
        height: 280px;
        padding: 8px;
    }

    .card-image {
        height: 145px;
    }

    .card-image img {
        height: 135px;
    }

    .product-title {
        font-size: 9px;
        line-height: 12px;
    }

    .installment {
        font-size: 8px;
    }

    .price {
        font-size: 16px;
    }

    .add-to-cart-btn {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
}
