/* Electronics & Appliances + Fairly Used - uses the site brand palette
   #990012 (primary), #083B9A (secondary), #000000 (dark), #E5FFDE (light), #CBFF8C (accent) */

/* ===== NAVBAR DENSITY =====
   Two more top-level sections (Electronics, Fairly Used) pushed the desktop
   navbar past its available width, wrapping labels and clipping the auth
   links. Tighten spacing on large screens so every item stays on one line;
   the mobile collapse menu is unaffected. */
@media (min-width: 992px) {
    .ind2-nav-menu {
        gap: 0.15rem;
        flex-wrap: nowrap;
    }

    .ind2-nav-link {
        padding: 0.65rem 0.42rem !important;
        font-size: 0.86rem;
        white-space: nowrap;
    }

    .ind2-nav-link i {
        font-size: 0.9em;
    }
}

@media (min-width: 992px) and (max-width: 1399px) {
    .ind2-nav-link {
        padding: 0.6rem 0.3rem !important;
        font-size: 0.78rem;
    }

    /* Icons alone carry the meaning once space gets tight on mid-size laptops */
    .ind2-nav-link i {
        margin-right: 0.1rem;
    }
}

.mkt-section {
    padding: 60px 0 80px;
    min-height: 60vh;
}

.mkt-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.mkt-title {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--ind2-primary, #990012);
    margin-bottom: 0.5rem;
}

.mkt-subtitle {
    color: #555;
    font-size: 1.1rem;
}

/* Filter bar */
.mkt-filters {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.mkt-filters .form-select,
.mkt-filters .form-control {
    border-radius: 8px;
}

.mkt-filter-btn {
    background: var(--ind2-primary, #990012);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
}

.mkt-filter-btn:hover {
    background: var(--ind2-secondary, #083B9A);
    color: #fff;
}

/* Product grid */
.mkt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.75rem;
}

.mkt-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    border: 1px solid #eee;
    position: relative;
}

.mkt-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(153, 0, 18, 0.18);
    color: inherit;
}

.mkt-card-image-wrap {
    position: relative;
    height: 210px;
    overflow: hidden;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mkt-card-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mkt-card-placeholder {
    color: #bbb;
    font-size: 2.5rem;
}

.mkt-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: var(--ind2-primary, #990012);
}

.mkt-badge-featured {
    background: var(--ind2-secondary, #083B9A);
}

.mkt-badge-sold {
    background: #333;
}

.mkt-badge-condition {
    position: absolute;
    top: 12px;
    right: 12px;
    left: auto;
    background: var(--ind2-light, #E5FFDE);
    color: var(--ind2-dark, #000);
    border: 1px solid #cbe6c0;
}

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

.mkt-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--ind2-dark, #000);
    line-height: 1.35;
}

.mkt-card-meta {
    color: #777;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.mkt-card-price {
    margin-top: auto;
    font-weight: 800;
    color: var(--ind2-primary, #990012);
    font-size: 1.15rem;
}

.mkt-card-price .mkt-old-price {
    text-decoration: line-through;
    color: #999;
    font-weight: 500;
    font-size: 0.9rem;
    margin-right: 0.4rem;
}

.mkt-out-of-stock {
    color: #b8860b;
    font-size: 0.85rem;
    font-weight: 600;
}

.mkt-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: #777;
}

.mkt-empty i {
    color: #ccc;
    margin-bottom: 1rem;
}

/* Detail page */
.mkt-detail-gallery img {
    width: 100%;
    border-radius: 16px;
    background: #f4f4f4;
    object-fit: contain;
    max-height: 460px;
}

.mkt-detail-thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.mkt-detail-thumbs img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.mkt-detail-thumbs img:hover {
    border-color: var(--ind2-primary, #990012);
}

.mkt-detail-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ind2-dark, #000);
    margin-bottom: 0.4rem;
}

.mkt-detail-brand {
    color: #666;
    margin-bottom: 1rem;
}

.mkt-detail-price {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ind2-primary, #990012);
    margin-bottom: 1.25rem;
}

.mkt-detail-price .mkt-old-price {
    font-size: 1.1rem;
}

.mkt-spec-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.mkt-spec-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #eee;
}

.mkt-spec-list li span:first-child {
    color: #777;
}

.mkt-spec-list li span:last-child {
    font-weight: 600;
    text-align: right;
}

.mkt-feature-list {
    padding-left: 1.2rem;
    color: #444;
    line-height: 1.8;
}

.mkt-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.mkt-btn-primary {
    background: var(--ind2-primary, #990012);
    color: #fff;
    border: none;
    padding: 13px 30px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.mkt-btn-primary:hover {
    background: var(--ind2-secondary, #083B9A);
    color: #fff;
}

.mkt-btn-primary:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.mkt-btn-outline {
    background: #fff;
    color: var(--ind2-secondary, #083B9A);
    border: 2px solid var(--ind2-secondary, #083B9A);
    padding: 11px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.02rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.mkt-btn-outline:hover {
    background: var(--ind2-secondary, #083B9A);
    color: #fff;
}

.mkt-btn-whatsapp {
    background: #25D366;
    color: #fff;
    border: none;
}

.mkt-btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
}

.mkt-note-box {
    background: var(--ind2-light, #E5FFDE);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1.5rem;
    white-space: pre-line;
    line-height: 1.7;
    color: #333;
}

.mkt-section-heading {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ind2-dark, #000);
    margin: 1.75rem 0 0.85rem;
}

.mkt-sold-banner {
    background: #333;
    color: #fff;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 1.25rem;
}
