/* =====================================================================================================================
   TecMCH - Marketplace shop stylesheet
   ---------------------------------------------------------------------------------------------------------------------
   Loaded by resources/views/marketplace/storefront/layout.blade.php (the shop buyers see), right after the Metronic
   theme - the same place its inline <style> used to be, so the rules apply exactly as before.
   The seller panel has its own file: tecmch-marketplace.css.

   Sections
     B1. Page             B2. Header            B3. Category nav       B4. Sidebar / filters
     B5. Hero             B6. Category tiles, trust badges            B7. Product cards
     B8. Card buttons     B9. Scroll rows       B10. Brands / testimonials                B11. Toasts
     B12. Policies and Disclaimer page

   See README.md in this folder before adding to it.
   ===================================================================================================================== */

/* ---- B1. Page: room for the fixed header, wider container on big screens ---- */
body { background-color: #f5f8fa; padding-top: 118px; }

@media (min-width: 1400px) { .container { max-width: 1520px; } }
@media (min-width: 1600px) { .container { max-width: 1720px; } }

/* ---- B2. Header (fixed): logo, search, icons, account, "sell" button ---- */
.mp-header-fixed { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }
.mp-header-toolbar { background: #fff; padding: 14px 0; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); position: relative; z-index: 20; }
.mp-header-toolbar .mp-brand { display: flex; align-items: center; text-decoration: none; }
.mp-header-toolbar .mp-brand-logo { height: 60px; width: auto; max-width: none; flex-shrink: 0; }

.mp-search-group { flex: 1; max-width: 640px; }
.mp-search-group .mp-search-input { border-right: none; border-radius: 8px 0 0 8px; }
.mp-search-group .mp-search-btn { border-radius: 0 8px 8px 0; padding: 0 20px; }

.mp-header-icon {
    position: relative; width: 42px; height: 42px; border-radius: 10px; background: #f5f8fa;
    display: flex; align-items: center; justify-content: center; color: #000000; text-decoration: none; font-size: 16px;
}
.mp-header-icon:hover { background: #eef1fb; color: #1e3a8a; }
.mp-header-icon .mp-icon-dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: #f1416c; }
.mp-header-icon .mp-icon-badge {
    position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
    background: #1e3a8a; color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.mp-account-link { display: flex; align-items: center; gap: 4px; color: #000000; text-decoration: none; }
.mp-account-link .mp-account-icon {
    width: 42px; height: 42px; border-radius: 10px; background: #f5f8fa; color: #1e3a8a;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.mp-seller-btn { background: #181c32; color: #fff; border-radius: 8px; padding: 10px 18px; font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap; }
.mp-seller-btn:hover { background: #000; color: #fff; }

/* ---- B3. Category nav bar under the header ---- */
.mp-category-nav { background: #fff; border-top: 1px solid #eff2f5; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03); position: relative; z-index: 10; }
.mp-category-nav .mp-cat-scroll { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: thin; }
.mp-category-nav .mp-cat-scroll::-webkit-scrollbar { height: 4px; }
.mp-category-nav a { flex-shrink: 0; padding: 6px 14px; font-size: 13px; font-weight: 600; color: #000000; text-decoration: none; border-radius: 6px; white-space: nowrap; }
.mp-category-nav a:hover,
.mp-category-nav a.active { background: #eef1fb; color: #1e3a8a; }

/* ---- B4. Sidebar (sticky) and filters ---- */
.mp-sidebar {
    background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); padding: 14px; margin-bottom: 20px;
    position: sticky; top: calc(var(--mp-header-height, 110px) + 20px);
    max-height: calc(100vh - var(--mp-header-height, 110px) - 40px); overflow-y: auto;
}
.mp-sidebar .mp-nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 10px; color: #000000; text-decoration: none; font-weight: 600; font-size: 13px; border-radius: 8px; }
.mp-sidebar .mp-nav-item:hover,
.mp-sidebar .mp-nav-item.active { background: #f1f8ff; color: #1e3a8a; }
.mp-sidebar .mp-nav-item i { width: 18px; text-align: center; color: #1e3a8a; }
.mp-sidebar .mp-nav-divider { border-top: 1px solid #eff2f5; margin: 10px 0; }
.mp-sidebar .mp-categories-title { font-weight: 800; font-size: 13px; color: #181c32; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }

/* collapsible filter sections (<details>) */
.mp-filter-section { border-bottom: 1px solid #eff2f5; padding: 12px 0; }
.mp-filter-section:last-of-type { border-bottom: none; }
.mp-filter-section summary { cursor: pointer; font-weight: 700; font-size: 13px; color: #181c32; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mp-filter-section summary::-webkit-details-marker { display: none; }
.mp-filter-section summary::after { content: '\f078'; font-family: FontAwesome; font-size: 10px; color: #8a8fa3; }
.mp-filter-section[open] summary::after { content: '\f077'; }
.mp-filter-section .mp-filter-body { padding-top: 10px; }
.mp-pill-group { display: flex; gap: 6px; flex-wrap: wrap; }
.mp-pill-group .mp-pill { padding: 5px 12px; border-radius: 16px; background: #f5f8fa; color: #000000; font-size: 12px; font-weight: 600; text-decoration: none; }
.mp-pill-group .mp-pill.active { background: #1e3a8a; color: #fff; }

/* ---- B5. Hero banner ---- */
.mp-hero { background: #009ef7; border-radius: 16px; padding: 40px 36px; color: #fff; margin-bottom: 28px; }
.mp-hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.mp-hero-badges span { background: rgba(255, 255, 255, 0.12); border-radius: 20px; padding: 6px 14px; font-size: 12px; font-weight: 600; }
.mp-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.mp-hero p { color: #c7d0f0; max-width: 640px; margin-bottom: 22px; }
.mp-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.mp-hero-ctas .btn { font-weight: 700; padding: 10px 20px; border-radius: 8px; }
.mp-hero-stats { display: flex; gap: 32px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 20px; }
.mp-hero-stats .mp-stat-value { font-size: 1.3rem; font-weight: 800; }
.mp-hero-stats .mp-stat-label { font-size: 12px; color: #a9b6e6; }

/* ---- B6. Category tiles and trust badges ---- */
.mp-cat-tile { display: block; text-align: center; text-decoration: none; color: #000000; background: #fff; border-radius: 12px; padding: 18px 10px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); transition: 0.2s; }
.mp-cat-tile:hover { transform: translateY(-3px); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); color: #1e3a8a; }
.mp-cat-tile .mp-cat-tile-icon { width: 46px; height: 46px; border-radius: 50%; background: #eef1fb; color: #1e3a8a; display: flex; align-items: center; justify-content: center; font-size: 20px; margin: 0 auto 10px; }
.mp-cat-tile .mp-cat-tile-icon i { color: inherit; }
.mp-cat-tile .mp-cat-tile-name { font-weight: 700; font-size: 13px; }
.mp-cat-tile .mp-cat-tile-count { font-size: 11px; color: #8a8fa3; }

.mp-trust-badge { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); }
.mp-trust-badge .mp-trust-icon { width: 42px; height: 42px; border-radius: 10px; background: #eef1fb; color: #1e3a8a; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.mp-trust-badge .mp-trust-icon i { color: inherit; }
.mp-trust-badge .mp-trust-title { font-weight: 700; font-size: 13px; color: #181c32; }
.mp-trust-badge .mp-trust-sub { font-size: 11px; color: #8a8fa3; }

/* ---- B7. Product cards ---- */
.shop-product-card { transition: 0.2s; overflow: hidden; border: 1px solid #f1f1f4; border-radius: 16px; cursor: pointer; }
.shop-product-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); }
.shop-product-card .mp-card-media { position: relative; padding: 8px; }
.shop-product-card .mp-card-media img { height: 170px; object-fit: cover; width: 100%; border-radius: 8px; display: block; }
.shop-product-card .mp-card-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 4px; flex-wrap: wrap; max-width: calc(100% - 16px); }
.shop-product-card .mp-card-badges .badge { font-size: 9px; font-weight: 800; letter-spacing: 0.3px; padding: 4px 8px; border-radius: 6px; }

/* wishlist heart */
.mp-wishlist-btn { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); border: none; color: #8a8fa3; display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0; }
.mp-wishlist-btn.active { color: #ff0000; background: #ffe8ec; }
.mp-wishlist-btn.active i { color: #ff0000; }
.mp-wishlist-btn-outline { background: #fff; border: 1px solid #e4e6ef; }
.shop-product-card .mp-card-wishlist { position: absolute; top: 8px; right: 8px; }
.shop-product-card .mp-card-countdown { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(24, 28, 50, 0.85); color: #fff; text-align: center; font-size: 11px; font-weight: 700; padding: 5px; }

.shop-product-card .card-body { padding: 20px; }
.mp-tag-category { background: #eef1fd; color: #3b4cca; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.mp-tag-brand { color: #8a8fa3; font-weight: 500; font-size: 12px; }
.shop-product-card .mp-card-title { font-weight: 800; color: #181c32; font-size: 17px; margin: 10px 0 8px; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; word-break: break-word; overflow-wrap: anywhere; }
.shop-product-card .mp-card-subtitle { font-size: 13px; color: #8a8fa3; display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }

/* condition */
.mp-condition-badge { display: inline-block; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: 14px; margin-bottom: 10px; }
.mp-condition-new { background: #e8f8f0; color: #0d9f6e; }
.mp-condition-used { background: #f5f8fa; color: #71768c; }
.mp-condition-unavailable { background: #fdeeee; color: #dc3545; }

/* rating */
.mp-card-rating { font-size: 13px; margin-bottom: 12px; display: block; }
.mp-card-rating .fa-star { color: #ffa800; font-size: 12px; }
.mp-card-rating .mp-rating-value { font-weight: 700; color: #181c32; margin-left: 4px; }
.mp-card-rating .mp-review-count { color: #8a8fa3; margin-left: 4px; }

/* price and stock */
.shop-product-card .mp-card-price { font-weight: 800; font-size: 20px; color: #181c32; }
.shop-product-card .mp-card-price-old { font-size: 13px; color: #000000; text-decoration: line-through; margin-left: 8px; }
.mp-stock-status { font-size: 13px; font-weight: 600; margin-bottom: 14px; display: block; }

/* rental prices (day / week / month) */
.shop-product-card .mp-rent-grid { display: flex; border: 1px solid #eff2f5; border-radius: 10px; overflow: hidden; margin-bottom: 10px; background: #f8f9fd; }
.shop-product-card .mp-rent-grid > div { flex: 1; text-align: center; padding: 8px 2px; border-right: 1px solid #eff2f5; }
.shop-product-card .mp-rent-grid > div:last-child { border-right: none; }
.shop-product-card .mp-rent-grid .mp-rent-label { font-size: 9px; color: #8a8fa3; text-transform: uppercase; font-weight: 700; letter-spacing: 0.3px; }
.shop-product-card .mp-rent-grid .mp-rent-price { font-weight: 800; font-size: 14px; color: #6d28d9; }

/* auction */
.mp-auction-box { background: #fdf1f3; border-radius: 10px; padding: 12px; margin-bottom: 12px; }
.mp-auction-box .mp-auction-row { display: flex; justify-content: space-between; font-size: 12px; color: #8a8fa3; }
.mp-auction-box .mp-current-bid-label { font-size: 12px; color: #8a8fa3; font-weight: 600; }
.mp-auction-box .mp-current-bid { font-weight: 800; font-size: 20px; color: #e02424; }
.mp-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #17c653; margin-right: 4px; animation: mp-pulse 1.5s infinite; }
@keyframes mp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ---- B8. Card action buttons (cart / buy / rent / bid) ---- */
.mp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 999px; font-weight: 700; font-size: 13px; padding: 10px 10px; border: none; text-decoration: none; white-space: nowrap; }
.mp-btn:disabled { opacity: 0.5; }
.mp-btn-cart { background: #155eef; color: #fff; }
.mp-btn-cart:hover { background: #0d47d9; color: #fff; }
.mp-btn-buy { background: #111827; color: #fff; }
.mp-btn-buy:hover { background: #000; color: #fff; }
.mp-btn-rent { background: #6d28d9; color: #fff; }
.mp-btn-rent:hover { background: #5b21b6; color: #fff; }
.mp-btn-bid { background: #e02424; color: #fff; }
.mp-btn-bid:hover { background: #c81e1e; color: #fff; }
.mp-btn-outline { background: #fff; color: #000000; border: 1px solid #e4e6ef; }
.mp-btn-outline:hover { background: #f8f9fb; color: #000000; }

/* ---- B9. Horizontal scroll rows (category sections) ---- */
.mp-scroll-row { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 20px; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: thin; }
.mp-scroll-row::-webkit-scrollbar { height: 6px; }
.mp-scroll-row::-webkit-scrollbar-thumb { background: #d9dbe4; border-radius: 3px; }
.mp-scroll-row > .product-card-col { flex: 0 0 300px; max-width: 300px; }
.mp-scroll-arrows { display: flex; gap: 8px; }
.mp-scroll-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #e4e6ef; background: #fff; display: inline-flex; align-items: center; justify-content: center; color: #000000; }
.mp-scroll-arrow:hover { background: #f5f8fa; color: #1e3a8a; }

/* ---- B10. Brands and testimonials ---- */
.mp-brand-badge { text-align: center; text-decoration: none; color: #000000; }
.mp-brand-badge .mp-brand-circle { width: 54px; height: 54px; border-radius: 50%; background: #eef1fb; color: #1e3a8a; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; }
.mp-brand-badge .mp-brand-name { font-size: 11px; font-weight: 600; }
.mp-testimonial-card { background: #fff; border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); height: 100%; display: flex; flex-direction: column; }
.mp-testimonial-card > div:last-child { margin-top: auto; }
.mp-testimonial-card .mp-stars { color: #ffa800; font-size: 13px; margin-bottom: 10px; }
.mp-testimonial-card p { color: #000000; font-size: 14px; }
.mp-testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; background: #1e3a8a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; }

/* ---- B11. Toasts (added to cart, etc.) ---- */
#mp-toast-container { position: fixed; top: 20px; right: 20px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; }
.mp-toast {
    display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15); padding: 14px 18px; min-width: 280px; max-width: 360px;
    border-left: 4px solid #17c653; transform: translateX(120%); opacity: 0; transition: transform 0.3s ease, opacity 0.3s ease;
}
.mp-toast.mp-toast-visible { transform: translateX(0); opacity: 1; }
.mp-toast .mp-toast-icon { font-size: 22px; color: #17c653; flex-shrink: 0; }
.mp-toast .mp-toast-title { font-weight: 700; color: #181c32; font-size: 14px; }
.mp-toast .mp-toast-message { color: #71768c; font-size: 12px; }

/* ---- B12. Policies and Disclaimer page (marketplace/storefront/policies) ---- */
html:has(.mpp-page) { scroll-behavior: smooth; }
.mpp-page { color: #000000; }
.mpp-page [id] { scroll-margin-top: calc(var(--mp-header-height, 110px) + 20px); }

.mpp-hero { background: #1e3a8a; border-radius: 16px; padding: 32px; margin-bottom: 20px; color: #fff; }
.mpp-hero h1 { color: #fff; font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.mpp-hero p { margin-bottom: 20px; }
.mpp-hero-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #1e3a8a; border-radius: 8px; padding: 9px 18px; margin: 0 8px 4px 0; font-weight: 700; font-size: 13px; }
.mpp-hero-btn:hover { background: #eef1fb; color: #1e3a8a; }

.mpp-box { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06); padding: 8px 28px; margin-bottom: 20px; }

.mpp-index { padding-top: 22px; padding-bottom: 22px; }
.mpp-index-title { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.mpp-index-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
.mpp-index-grid a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: #000000; font-weight: 600; font-size: 13px; }
.mpp-index-grid a:hover { background: #eef1fb; color: #1e3a8a; }

.mpp-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 8px; background: #eef1fb; color: #1e3a8a; font-weight: 800; font-size: 13px; }

.mpp-section { padding: 24px 0; border-bottom: 1px solid #e3e9f8; }
.mpp-section:last-child { border-bottom: none; }
.mpp-title { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.mpp-page p, .mpp-page li { line-height: 1.7; }
.mpp-subtitle { font-weight: 700; margin-bottom: 4px; }

/* short bullet lists flow into as many columns as fit */
.mpp-list { columns: 3 220px; column-gap: 32px; padding-left: 18px; }
.mpp-list li { break-inside: avoid; }
.mpp-list li::marker { color: #1e3a8a; }

.mpp-disclaimer { background: #fff8e6; border-left: 5px solid #ffa800; padding-top: 24px; padding-bottom: 24px; }
.mpp-disclaimer .mpp-num { background: #ffa800; color: #000000; }

@media (max-width: 575px) {
    .mpp-hero { padding: 24px 18px; }
    .mpp-box { padding-left: 18px; padding-right: 18px; }
}


/* Table header text is black everywhere. Headers that have a dark background keep their white text (.bj-table,
   .ep-table, and cells with an inline color:white). */
th:not(.bj-table th):not(.ep-table th):not([style*="color:white"]):not([style*="color: white"]),
th:not(.bj-table th):not(.ep-table th) :is(.text-muted, [class*="text-gray-"]) {
    color: #000000 !important;
}
