/* =====================================================
   Só Coisa Legal — Custom CSS
   Base: Bootstrap 5.3 + Bootstrap Icons + Google Fonts
   ===================================================== */

:root {
    --primary-bg: #000000;
    --accent-cyan: #00d2ff;
    --accent-pink: #ff00cc;
    --body-bg: #f4f7f6;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--body-bg);
    color: #333;
    overflow-x: hidden;
}

h1,
h2,
h3,
.oswald {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

/* ---- Header ---- */
header {
    background-color: var(--primary-bg);
    padding: 1rem 0;
    border-bottom: 1px solid #222;
}

.logo-img {
    max-height: 90px;
    width: auto;
    transition: transform 0.3s ease;
}

/* ---- Marketplace bar ---- */
.marketplace-bar {
    background-color: #111;
    padding: 10px 0;
    border-bottom: 1px solid #222;
}

.market-icon {
    height: 35px;
    width: auto;
    margin: 0 12px;
    filter: grayscale(0.2);
    transition: all 0.3s;
}

.market-icon:hover {
    filter: grayscale(0);
    transform: scale(1.1);
}

/* ---- Search bar ---- */
.search-bar {
    background: #333;
    border: 1px solid #555;
    border-radius: 50px;
    padding: 0.6rem 1.5rem;
    color: #ffffff !important;
    font-weight: 600;
}

.search-bar::placeholder {
    color: #ccc !important;
    opacity: 1;
}

.search-bar:focus {
    background: #444;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 0.25rem rgba(0, 210, 255, 0.25);
    color: white;
}

.search-platform-select {
    background: #333;
    border: 1px solid #555;
    border-radius: 50px 0 0 50px;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    max-width: 130px;
    padding: 0.6rem 0.8rem;
}

.search-platform-select:focus {
    background: #444;
    border-color: var(--accent-cyan);
    box-shadow: none;
    color: #fff;
}

.search-platform-select option {
    background: #222;
    color: #fff;
}

.search-submit-btn {
    border: 1px solid #555;
    border-left: none;
    border-radius: 0 50px 50px 0;
    color: #ccc;
    background: #333;
}

.search-submit-btn:hover {
    background: #444;
    color: #fff;
}

/* ---- Navbar ---- */
.navbar-custom {
    background: #fff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0;
}

.nav-link {
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    color: #333 !important;
    padding: 0.8rem 0.5rem !important;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-width: 90px;
}

.nav-link i {
    margin-bottom: 5px;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-pink) !important;
    border-bottom-color: var(--accent-pink);
    background: rgba(255, 0, 204, 0.03);
}

.nav-link:hover i {
    color: var(--accent-pink);
    transform: translateY(-3px);
}

/* ---- Hero banner ---- */
.hero-banner {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    border-radius: 0 0 50px 50px;
    position: relative;
}

/* ---- Product cards ---- */
.product-card {
    background: #fff;
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
    height: 100%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

a.product-card {
    text-decoration: none;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.product-img-container {
    position: relative;
    padding-top: 100%;
    background: #f8f9fa;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.platform-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.card-body {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 700;
    height: 2.6rem;
    /* overflow: hidden; */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 0.5rem;
}

.product-price {
    font-family: 'Oswald', sans-serif;
    color: var(--accent-pink);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* ---- Pagination ---- */
.pagination .page-link {
    border: none;
    margin: 0 3px;
    border-radius: 8px;
    color: #333;
    font-weight: 600;
}

.pagination .page-item.active .page-link {
    background-color: var(--accent-cyan);
    color: white;
}

/* ---- Product detail ---- */
.detail-card {
    background: #fff;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.btn-buy {
    background: linear-gradient(90deg, #000, #333);
    color: #fff;
    padding: 1.2rem;
    border-radius: 15px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s;
}

.btn-buy:hover {
    background: var(--accent-pink);
    color: #fff;
    transform: scale(1.02);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* ---- Footer ---- */
footer {
    background: #000;
    color: #eee;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

footer h5 {
    color: #ffffff;
    font-weight: 700;
}

.footer-link {
    color: #ddd;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-cyan);
    padding-left: 5px;
}

/* ---- Utilities ---- */
.hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .nav-link {
        font-size: 0.7rem;
        min-width: 70px;
    }

    .nav-link i {
        font-size: 1.4rem;
    }
}

@media (max-width: 768px) {
    .market-icon {
        height: 20px;
        margin: 0 5px;
    }

    .logo-img {
        max-height: 60px;
    }
}