/* ============================================
   LOJA/PRODUTOS PAGE - TEMA DARK (CORRIGIDO)
   TechCraftBrasil - Minecraft Server Store
   ============================================ */

.shop-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.shop-categories {
    padding: 1.25rem;
}

.shop-categories__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.shop-categories__head h3 {
    margin-bottom: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.shop-categories__head span {
    color: #9aa0a6;
    font-size: 0.8125rem;
    white-space: nowrap;
}

.shop-categories__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 176px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.shop-categories__nav .nav-link {
    padding: 0.625rem 1rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    color: #bdc1c6;
    background: #1a1d24;
    border: 1px solid #2a2e35;
    white-space: nowrap;
}

.shop-categories__nav .nav-link:hover,
.shop-categories__nav .nav-link.is-active {
    background: rgba(102, 187, 106, 0.14);
    border-color: #00e676;
    color: #00e676;
}

.shop-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.shop-product-card {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.shop-product-card__media {
    margin-bottom: 1rem;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.shop-product-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-product-card:hover .shop-product-card__media img {
    transform: scale(1.05);
}

.shop-product-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.shop-product-card .lead {
    font-size: 0.875rem;
    color: #9aa0a6;
    margin-bottom: 0.75rem;
}

/* Botão de descrição */
.shop-product-card .btn-link {
    background: none;
    border: none;
    color: #00e676;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.shop-product-card .btn-link:hover {
    color: #81c784;
}

.shop-product-card .btn-link i {
    font-size: 0.6875rem;
}

/* Footer do produto - preço em cima, botão embaixo */
.shop-product-card__footer {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #1f2329;
}

.shop-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: #00e676;
    text-align: center;
    margin-bottom: 0;
}

.shop-product-card .fag-btn {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.8125rem;
}

/* Modal Produto */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    position: relative;
    width: 90%;
    max-width: 600px;
    margin: 1.75rem auto;
}

.modal-xl {
    max-width: 1140px;
}

.modal-content {
    background: #111318;
    border-radius: 24px;
    border: 1px solid #2a2e35;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #1f2329;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.modal-body {
    padding: 1.5rem;
    line-height: 1.6;
    color: #bdc1c6;
}

.modal-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 1rem 0;
}

.close {
    background: none;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: #9aa0a6;
    transition: color 0.2s;
    line-height: 1;
}

.close:hover {
    color: #e8eaed;
}

/* Media Queries */
@media (min-width: 768px) and (max-width: 1024px) {
    .shop-products {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1.25rem;
    }

    .shop-product-card__media {
        aspect-ratio: 1 / 1;
    }

    .shop-price {
        font-size: 1.25rem;
    }
}

@media (max-width: 767px) {
    .shop-layout {
        gap: 1.5rem;
    }

    .shop-categories {
        padding: 1rem;
    }

    .shop-categories__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .shop-categories__nav {
        flex-direction: column;
        flex-wrap: nowrap;
        overflow-x: hidden;
        overflow-y: visible;
        max-height: none;
        padding-right: 0;
        padding-bottom: 0;
    }

    .shop-categories__nav .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        width: 100%;
        white-space: normal;
    }

    .shop-products {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shop-product-card {
        flex-direction: column;
        gap: 0;
    }

    .shop-product-card__media {
        width: 100%;
        height: auto;
        margin-bottom: 1rem;
        aspect-ratio: 1 / 1;
    }

    .shop-product-card__media img {
        height: 100%;
        width: 100%;
    }

    .shop-product-card__footer {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .shop-price {
        font-size: 1.125rem;
    }

    .shop-product-card .fag-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-dialog {
        width: 95%;
        margin: 0.5rem auto;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }
}
