/* BuySell9ja global styles */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    background: #f4f6f8;
    color: #222;
}
a { color: #0d6efd; }
img { max-width: 100%; height: auto; }

.container,
.main-wrap,
.page-wrap {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 14px 40px;
}

/* ===== Product grid (homepage & search) ===== */
.products-grid,
.product-grid,
#products,
.bs9-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 14px 30px;
}

.product-card,
.product-item,
.bs9-product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}
.product-card:hover,
.product-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.product-card a.card-link,
.product-item a.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card img,
.product-item img,
.bs9-product-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
    background: #eee;
}

.product-card .card-body,
.product-item .card-body {
    padding: 10px 12px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card h3,
.product-card .title,
.product-item h3,
.product-item .title {
    font-size: 0.95rem;
    margin: 0 0 6px;
    line-height: 1.3;
    font-weight: 700;
    color: #222;
}

.product-card .price,
.product-item .price {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0d6efd;
    margin: 0 0 4px;
}

.product-card .meta,
.product-item .meta {
    font-size: 0.8rem;
    color: #666;
    margin-top: auto;
}

.product-card .btn,
.product-item .btn {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 12px;
    background: #0d6efd;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    border: none;
    cursor: pointer;
}

/* Flash / section titles */
.section-title {
    max-width: 1200px;
    margin: 10px auto 0;
    padding: 0 14px;
    font-size: 1.25rem;
    font-weight: 800;
}
.flash-banner {
    max-width: 1200px;
    margin: 10px auto;
    padding: 14px 16px;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
}

/* Forms */
input, select, textarea, button {
    font-family: inherit;
    font-size: 16px;
}
button, .btn {
    cursor: pointer;
}

/* Mobile */
@media (max-width: 700px) {
    .products-grid,
    .product-grid,
    #products,
    .bs9-products {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 10px;
    }
    .product-card img,
    .product-item img,
    .bs9-product-card img {
        height: 150px;
    }
    .product-card h3,
    .product-card .title,
    .product-item h3 {
        font-size: 0.9rem;
    }
    .product-card .price,
    .product-item .price {
        font-size: 1rem;
    }
    .container,
    .main-wrap,
    .page-wrap {
        padding: 10px 10px 40px;
    }
}

@media (max-width: 360px) {
    .products-grid,
    .product-grid,
    #products,
    .bs9-products {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-card img,
    .product-item img {
        height: 130px;
    }
}