/* FB MARKETPLACE DEALER */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Helvetica,Arial,sans-serif;background:#F0F2F5;color:#050505;line-height:1.34;-webkit-font-smoothing:antialiased;padding-top:56px}
img{max-width:100%;height:auto;display:block}
a{text-decoration:none;color:inherit}
button{cursor:pointer;border:none;font-family:inherit;background:none}
input,textarea,select{font-family:inherit}
html.scroll-locked,html.scroll-locked body{overflow:hidden;height:100%}
#navSentinel,.menu-backdrop{display:none}

/* ===== TOP BAR — Logo only ===== */
.fb-topbar{
    position:fixed;top:0;left:0;right:0;z-index:1000;
    height:56px;background:#fff;
    box-shadow:0 2px 4px rgba(0,0,0,0.1);
    display:flex;align-items:center;padding:0 16px;
}
.fb-topbar-logo{display:flex;align-items:center;gap:10px;flex-shrink:0}
.fb-topbar-logo img{height:40px;width:auto;object-fit:contain;border-radius:0}

/* ===== LAYOUT ===== */
.fb-layout{display:flex;min-height:calc(100vh - 56px)}

/* ===== SIDEBAR ===== */
.fb-sidebar{
    width:360px;flex-shrink:0;
    background:#fff;border-right:1px solid #E4E6EB;
    height:calc(100vh - 56px);position:fixed;
    top:56px;left:0;overflow-y:auto;
    padding:0 16px 24px;z-index:100;
}
.fb-sidebar::-webkit-scrollbar{width:6px}
.fb-sidebar::-webkit-scrollbar-thumb{background:#CED0D4;border-radius:3px}

.fb-sidebar-header{display:flex;align-items:center;justify-content:space-between;padding:20px 0 16px}
.fb-sidebar-title{font-size:24px;font-weight:900;color:#050505}

.fb-sidebar-search{position:relative;margin-bottom:20px}
.fb-sidebar-search input{
    width:100%;height:40px;border-radius:50px;
    background:#F0F2F5;border:none;padding:0 16px 0 40px;
    font-size:15px;color:#050505;outline:none;
}
.fb-sidebar-search input:focus{box-shadow:0 0 0 2px #0866FF;background:#fff}
.fb-sidebar-search input::placeholder{color:#8A8D91}
.fb-sidebar-search-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:14px;color:#65676B;pointer-events:none}

.fb-filter-section{margin-bottom:14px}
.fb-filter-label{font-size:15px;font-weight:600;color:#050505;margin-bottom:6px}
.fb-select{
    display:block;width:100%;height:40px;border-radius:8px;
    background:#F0F2F5;border:1px solid #CED0D4;padding:0 32px 0 12px;
    font-size:15px;color:#050505;outline:none;cursor:pointer;
    -webkit-appearance:none;-moz-appearance:none;appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2365676B' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 10px center;
}
.fb-select:focus{border-color:#0866FF;box-shadow:0 0 0 2px rgba(8,102,255,0.2);background-color:#fff}
.fb-input-sm{display:block;width:100%;height:40px;border-radius:8px;background:#F0F2F5;border:1px solid #CED0D4;padding:0 12px;font-size:15px;color:#050505;outline:none}
.fb-input-sm:focus{border-color:#0866FF;box-shadow:0 0 0 2px rgba(8,102,255,0.2);background:#fff}
.fb-input-sm::placeholder{color:#8A8D91}

.fb-filter-collapse{
    display:flex;align-items:center;justify-content:space-between;
    padding:10px 12px;margin:0 -12px;border-radius:8px;cursor:pointer;
    font-size:15px;font-weight:600;color:#050505;user-select:none;
    transition:background 0.15s;
}
.fb-filter-collapse:hover{background:#F0F2F5}
.fb-filter-collapse .chevron{display:flex;align-items:center;transition:transform 0.2s}
.fb-filter-collapse.open .chevron{transform:rotate(180deg)}

/* Categories */
.fb-categories{margin-top:20px;padding-top:16px;border-top:1px solid #E4E6EB}
.fb-categories-title{font-size:17px;font-weight:700;color:#050505;margin-bottom:12px}
.fb-cat-item{
    display:flex;align-items:center;gap:12px;
    padding:10px 12px;border-radius:8px;
    font-size:15px;font-weight:500;color:#050505;
    transition:background 0.15s;margin-bottom:2px;
}
.fb-cat-item:hover{background:#F0F2F5}
.fb-cat-active{background:rgba(8,102,255,0.1);color:#0866FF;font-weight:600}
.fb-cat-active:hover{background:rgba(8,102,255,0.15)}
.fb-cat-icon{
    width:36px;height:36px;border-radius:50%;
    background:#E4E6EB;display:flex;align-items:center;justify-content:center;
    font-size:16px;flex-shrink:0;
}
.fb-cat-active .fb-cat-icon{background:rgba(8,102,255,0.15)}

/* ===== MAIN ===== */
.fb-main{flex:1;margin-left:360px;padding:20px 24px 40px}
.fb-main-title{font-size:20px;font-weight:800;color:#050505;margin-bottom:16px}

/* ===== MOBILE FILTERS ===== */
.fb-mobile-filters{display:none}

/* ===== PRODUCT CARDS ===== */
.products-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.product-card{
    background:#fff;border-radius:12px;overflow:hidden;
    box-shadow:0 1px 2px rgba(0,0,0,0.05),0 1px 6px rgba(0,0,0,0.08);
    border:1px solid #E4E6EB;
    transition:box-shadow 0.2s,transform 0.2s;
}
.product-card:hover{box-shadow:0 4px 20px rgba(0,0,0,0.15);transform:translateY(-2px);border-color:#CED0D4}
.product-card-img{position:relative;width:100%;padding-top:70%;overflow:hidden;background:#E4E6EB}
.product-card-img img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;transition:opacity 0.15s}
.product-card:hover .product-card-img img{opacity:0.95}
.product-badge{position:absolute;top:8px;left:8px;padding:3px 10px;background:#31A24C;color:#fff;font-size:12px;font-weight:600;border-radius:4px;z-index:2}
.product-badge-sold{background:#65676B}
.product-card-sold{opacity:0.65}
.product-card-sold .product-card-img::after{content:'';position:absolute;inset:0;background:rgba(0,0,0,0.2);z-index:1}
.product-card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:3px}
.product-price{font-size:18px;font-weight:800;color:#050505;line-height:1.3}
.product-price-sold{color:#65676B !important;text-decoration:line-through}
.product-card-title{font-size:15px;font-weight:400;color:#65676B;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0}
.product-card-meta{font-size:13px;color:#8A8D91;line-height:1.4;margin:2px 0 0}
.product-card-meta span{background:none;padding:0}

/* CARD BUTTONS — STACKED */
.product-card-buttons{
    display:flex;flex-direction:column;gap:8px;
    margin-top:12px;padding-top:12px;border-top:1px solid #E4E6EB;
}
.product-card-buttons .btn-card{
    display:flex;align-items:center;justify-content:center;
    height:36px;border-radius:8px;font-size:14px;font-weight:600;
    cursor:pointer;text-decoration:none;transition:all 0.15s;width:100%;
}
.btn-card-details{background:#E4E6EB;color:#050505}
.btn-card-details:hover{background:#D8DADF}
.btn-card-reserve{background:#0866FF;color:#fff}
.btn-card-reserve:hover{background:#0654d4}

.product-card-footer,.product-card-cta-mobile,.product-card-price-overlay{display:none}
.no-image{display:flex;align-items:center;justify-content:center;background:#E4E6EB;color:#8A8D91;font-size:14px}
.product-sold-badge{display:inline-block;padding:6px 20px;background:#65676B;color:#fff;font-size:16px;font-weight:800;border-radius:8px;letter-spacing:0.1em;margin-bottom:20px}
.gallery-sold-ribbon{position:absolute;bottom:16px;right:16px;padding:8px 24px;background:rgba(101,103,107,0.9);color:#fff;font-size:14px;font-weight:800;letter-spacing:0.15em;border-radius:8px;z-index:5}

/* ===== SKELETON ===== */
.skeleton-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.skeleton-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(0,0,0,0.1)}
.skeleton-img{width:100%;padding-top:70%;background:linear-gradient(110deg,#E4E6EB 8%,#f0f2f5 18%,#E4E6EB 33%);background-size:200% 100%;animation:shimmer 1.5s linear infinite}
.skeleton-body{padding:14px 16px}
.skeleton-line{height:14px;border-radius:4px;background:linear-gradient(110deg,#E4E6EB 8%,#f0f2f5 18%,#E4E6EB 33%);background-size:200% 100%;animation:shimmer 1.5s linear infinite;margin-bottom:8px}
.skeleton-line.w-75{width:75%}.skeleton-line.w-50{width:50%}.skeleton-line.w-40{width:40%}
.skeleton-line.h-20{height:18px}.skeleton-line.h-28{height:24px}
.skeleton-meta{display:flex;gap:8px}.skeleton-tag{width:60px;height:14px;border-radius:4px;background:linear-gradient(110deg,#E4E6EB 8%,#f0f2f5 18%,#E4E6EB 33%);background-size:200% 100%;animation:shimmer 1.5s linear infinite}
.skeleton-footer{display:none}
@keyframes shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* ===== PAGINATION ===== */
.pagination{display:flex;justify-content:center;gap:4px;margin-top:24px;flex-wrap:wrap}
.pagination a,.pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:36px;height:36px;padding:0 8px;border-radius:50%;font-size:14px;font-weight:600;color:#050505}
.pagination a:hover{background:#E4E6EB}
.pagination .active{background:rgba(8,102,255,0.1);color:#0866FF}
.pagination .disabled{opacity:0.3;pointer-events:none}

/* ===== BUTTONS ===== */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 16px;font-size:15px;font-weight:600;border-radius:6px;border:none;cursor:pointer;white-space:nowrap;transition:background 0.15s}
.btn-primary{background:#0866FF;color:#fff}
.btn-primary:hover{background:#0654d4}
.btn-outline{background:#E4E6EB;color:#050505}
.btn-outline:hover{background:#D8DADF}
.btn-sm{padding:6px 12px;font-size:13px}
.btn-lg{padding:12px 24px;font-size:16px}
.btn-block{width:100%}

/* ===== FORMS ===== */
.form-group{margin-bottom:12px}
.form-group label{display:block;font-size:13px;font-weight:600;color:#050505;margin-bottom:4px}
.form-control{display:block;width:100%;padding:10px 12px;border:1px solid #CED0D4;border-radius:8px;font-size:16px;color:#050505;background:#fff;outline:none}
.form-control:focus{border-color:#0866FF;box-shadow:0 0 0 2px rgba(8,102,255,0.2)}
.form-row{display:grid;gap:12px}
.form-row-2{grid-template-columns:1fr 1fr}

/* ===== FOOTER ===== */
.footer{background:#fff;padding:20px 24px;border-top:1px solid #E4E6EB;margin-left:360px}
.footer-inner{display:flex;align-items:center;justify-content:center}
.footer-copy{font-size:13px;color:#8A8D91}
.footer-grid,.footer-bottom,.footer-brand,.footer-title,.footer-links,.footer-contact-item{display:none}

/* ===== EMPTY / TOAST / UTILITY ===== */
.empty-state{text-align:center;padding:60px 24px}
.empty-state-icon{font-size:48px;margin-bottom:12px;opacity:0.4}
.empty-state h3{font-size:20px;color:#050505;margin-bottom:8px;font-weight:700}
.empty-state p{color:#65676B;font-size:15px}
.toast{position:fixed;bottom:24px;right:24px;padding:12px 20px;border-radius:8px;color:#fff;font-size:14px;font-weight:500;z-index:3000;transform:translateY(100px);opacity:0;transition:all 0.3s;max-width:360px;box-shadow:0 8px 30px rgba(0,0,0,0.12)}
.toast.show{transform:translateY(0);opacity:1}
.toast-success{background:#31A24C}.toast-error{background:#E41E3F}
.text-center{text-align:center}
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.hidden{display:none !important}
.spinner{display:inline-block;width:18px;height:18px;border:2px solid rgba(255,255,255,0.3);border-top-color:#fff;border-radius:50%;animation:spin 0.6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* ===== PRODUCT PAGE ===== */
.page-header{padding:16px 0 4px}
.page-header h1{font-size:24px;font-weight:800;color:#050505}
.breadcrumb{display:flex;align-items:center;gap:6px;font-size:13px;color:#8A8D91;margin-bottom:4px}
.breadcrumb a{color:#0866FF}
.breadcrumb a:hover{text-decoration:underline}
.section{padding:0 0 40px}
.container{width:100%;max-width:1280px;margin:0 auto;padding:0 16px}

.product-single{padding:20px 0 60px}
.product-gallery{position:relative;border-radius:12px;overflow:hidden;background:#fff}
.product-gallery-wrap{margin-bottom:16px}
.product-gallery-main{position:relative;border-radius:12px;overflow:hidden;cursor:pointer;aspect-ratio:4/3;background:#000}
.product-main-image{width:100%;height:100%;object-fit:cover;display:block}
video.product-main-image{object-fit:contain}
.product-main-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;background:#F0F2F5;font-size:48px}
.gallery-video-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;border-radius:50%;background:rgba(0,0,0,0.6);border:3px solid #fff;color:#fff;font-size:22px;display:flex;align-items:center;justify-content:center;z-index:5;cursor:pointer}
.gallery-video-badge::after{content:'▶';margin-left:3px}
.gallery-video-badge:hover{background:rgba(8,102,255,0.8)}
.product-thumbs-wrap{border-top:1px solid #E4E6EB}
.product-thumbs{display:flex;gap:6px;padding:8px;overflow-x:auto;scrollbar-width:none}
.product-thumbs::-webkit-scrollbar{display:none}
.product-thumb{width:60px;height:48px;border-radius:8px;overflow:hidden;cursor:pointer;border:2px solid transparent;flex-shrink:0;position:relative}
.product-thumb.active,.product-thumb:hover{border-color:#0866FF}
.product-thumb img,.product-thumb video{width:100%;height:100%;object-fit:cover}
.product-thumb-more{width:60px;height:48px;border-radius:8px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#F0F2F5;color:#65676B;font-size:13px;font-weight:700;cursor:pointer}
.thumb-video-badge{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,0.6);border:1.5px solid #fff;color:#fff;font-size:8px;display:flex;align-items:center;justify-content:center;z-index:2;pointer-events:none}
.product-description-section{background:#fff;border-radius:12px;padding:20px;margin-top:12px;box-shadow:0 1px 2px rgba(0,0,0,0.1)}
.product-description-section h3{font-size:17px;font-weight:700;color:#050505;margin-bottom:12px;padding-bottom:12px;border-bottom:1px solid #E4E6EB}
.product-description-section p{color:#65676B;font-size:15px;line-height:1.7}
.product-description-section .features-section{margin-top:16px;padding-top:16px;border-top:1px solid #E4E6EB}
.product-info{background:#fff;border-radius:12px;padding:20px;box-shadow:0 1px 2px rgba(0,0,0,0.1)}
.product-info-title{font-size:20px;font-weight:800;color:#050505;margin-bottom:4px;line-height:1.2}
.product-info-price{font-size:28px;font-weight:900;color:#050505;margin-bottom:16px}
.product-specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:16px}
.product-spec{background:#F0F2F5;border-radius:8px;padding:10px 12px}
.product-spec-label{font-size:11px;text-transform:uppercase;letter-spacing:0.06em;color:#8A8D91;font-weight:600;margin-bottom:2px}
.product-spec-value{font-size:14px;font-weight:600;color:#050505}

/* Gallery arrows + Lightbox */
.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,0.9);border:none;color:#050505;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:4;box-shadow:0 1px 4px rgba(0,0,0,0.2);opacity:0;transition:opacity 0.15s}
.product-gallery-main:hover .gallery-arrow{opacity:1}
.gallery-arrow-left{left:10px}.gallery-arrow-right{right:10px}
.gallery-counter{position:absolute;top:10px;left:10px;background:rgba(0,0,0,0.55);color:#fff;font-size:12px;font-weight:600;padding:3px 10px;border-radius:100px;z-index:4;pointer-events:none}
.gallery-expand{position:absolute;top:10px;right:10px;width:32px;height:32px;border-radius:8px;background:rgba(0,0,0,0.5);border:none;color:#fff;font-size:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:4;opacity:0;transition:opacity 0.15s}
.product-gallery-main:hover .gallery-expand{opacity:1}
.lightbox-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:#000;z-index:6000;align-items:center;justify-content:center;flex-direction:column}
.lightbox-overlay.active{display:flex}
.lightbox-close{position:absolute;top:16px;right:16px;width:40px;height:40px;border-radius:50%;background:rgba(255,255,255,0.15);border:none;color:#fff;font-size:20px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:6002}
.lightbox-arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,0.1);border:none;color:#fff;font-size:24px;cursor:pointer;display:flex;align-items:center;justify-content:center;z-index:6002}
.lightbox-prev{left:16px}.lightbox-next{right:16px}
.lightbox-img-wrap{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:60px 16px;z-index:6001}
.lightbox-img,.lightbox-video{max-width:100%;max-height:100%;object-fit:contain}
.lightbox-counter{position:absolute;bottom:20px;left:50%;transform:translateX(-50%);color:rgba(255,255,255,0.7);font-size:14px;font-weight:500;z-index:6002}

/* Modal */
.modal-overlay{display:none;position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.5);z-index:5000;align-items:center;justify-content:center}
.modal-overlay.active{display:flex}
.modal{background:#fff;border-radius:12px;width:100%;max-width:520px;max-height:90vh;overflow-y:auto;box-shadow:0 8px 30px rgba(0,0,0,0.12)}
.modal-handle{display:none}
.modal-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #E4E6EB}
.modal-header h2{font-size:20px;font-weight:800;color:#050505}
.modal-close{width:36px;height:36px;border-radius:50%;background:#E4E6EB;border:none;font-size:16px;color:#65676B;cursor:pointer;display:flex;align-items:center;justify-content:center}
.modal-product{display:flex;align-items:center;gap:12px;padding:12px 20px;background:#F0F2F5}
.modal-product-img{width:48px;height:48px;border-radius:8px;object-fit:cover}
.modal-product-title{font-size:14px;font-weight:600;color:#050505;flex:1}
.modal-product-price{font-size:15px;font-weight:800;color:#050505}
.modal-body{padding:16px 20px}

/* Mobile buy bar */
.mobile-buy-bar{display:none}

/* ===== RESPONSIVE ===== */
@media (min-width:1000px){
    .fb-mobile-filters{display:none !important}
    .fb-sidebar{display:block}
    .fb-main{margin-left:360px}
    .footer{margin-left:360px}
}
@media (max-width:999px){
    .fb-sidebar{display:none !important}
    .fb-main{margin-left:0 !important;padding:12px 16px 40px}
    .footer{margin-left:0 !important}
    .fb-mobile-filters{display:block !important}
}

/* MOBILE: 1 card per row */
@media (max-width:599px){
    .products-grid,.skeleton-grid{grid-template-columns:1fr !important;gap:12px}
}
@media (min-width:600px) and (max-width:999px){
    .products-grid,.skeleton-grid{grid-template-columns:repeat(2,1fr);gap:14px}
}
@media (min-width:1000px) and (max-width:1399px){
    .products-grid,.skeleton-grid{grid-template-columns:repeat(3,1fr);gap:16px}
}
@media (min-width:1400px){
    .products-grid,.skeleton-grid{grid-template-columns:repeat(4,1fr);gap:16px}
}

/* Mobile modal + buy bar */
@media (max-width:767px){
    .modal-overlay{align-items:flex-end}
    .modal{max-width:100%;border-radius:16px 16px 0 0;max-height:92vh}
    .modal-handle{display:flex;justify-content:center;padding:10px 0 4px}
    .modal-handle span{width:36px;height:4px;background:#CED0D4;border-radius:4px}
    .mobile-buy-bar{
        display:block;position:fixed;left:0;right:0;z-index:1500;bottom:0;
        background:#fff;border-top:1px solid #E4E6EB;
        box-shadow:0 -2px 8px rgba(0,0,0,0.08);padding:10px 16px 14px;
        opacity:0;animation:fadeInBar 0.4s 0.5s ease forwards;
    }
    @supports(padding-bottom:env(safe-area-inset-bottom)){.mobile-buy-bar{padding-bottom:calc(10px + env(safe-area-inset-bottom))}}
    @keyframes fadeInBar{to{opacity:1}}
    .mobile-buy-bar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
    .mobile-buy-bar-info{display:flex;flex-direction:column;min-width:0;flex:1}
    .mobile-buy-bar-price{font-size:18px;font-weight:900;color:#050505;line-height:1.1}
    .mobile-buy-bar-title{font-size:11px;color:#65676B;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
    .mobile-buy-bar-actions{display:flex;gap:8px}
    .mobile-buy-bar-btn{padding:0 24px;height:40px;display:flex;align-items:center;justify-content:center;background:#0866FF;color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:700;cursor:pointer}
    .product-single{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
    .gallery-arrow{opacity:1}.gallery-expand{opacity:1}
    .lightbox-arrow{width:36px;height:36px;font-size:18px}
    .lightbox-prev{left:6px}.lightbox-next{right:6px}
    .lightbox-close{top:env(safe-area-inset-top,12px)}
}

/* Product page — no sidebar */
body.page-product .fb-sidebar{display:none !important}
body.page-product .fb-main{margin-left:0 !important}
body.page-product .footer{margin-left:0 !important}
@media (min-width:1000px){
    .product-single .container{max-width:1100px}
    .product-single .product-layout{display:grid;grid-template-columns:1.3fr 0.7fr;gap:16px 20px;align-items:start}
    .product-gallery-wrap{grid-column:1;grid-row:1;margin-bottom:0}
    .product-info{grid-column:2;grid-row:1/3;position:sticky;top:72px}
    .product-description-section{grid-column:1;grid-row:2;margin-top:0}
    .product-info-title{font-size:22px}
    .product-info-price{font-size:30px}
}

/* ===== MOBILE CHIPS ===== */
.fb-mobile-filters{
    max-width:100%;overflow:hidden;
}
.fb-chips{
    display:flex;gap:8px;padding:4px 0 8px;margin-bottom:8px;
    overflow-x:scroll;overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
    flex-wrap:nowrap;
    width:100%;max-width:100%;
}
.fb-chips::-webkit-scrollbar{display:none}
.fb-chip{
    display:flex;align-items:center;gap:6px;
    padding:8px 14px;border-radius:50px;
    background:#fff;border:1px solid #CED0D4;
    font-size:14px;font-weight:500;color:#050505;
    white-space:nowrap;cursor:pointer;
    transition:background 0.15s,border-color 0.15s;
    flex-shrink:0;
}
.fb-chip:hover{background:#F0F2F5}
.fb-chip:active{background:#E4E6EB}
.fb-chip svg{flex-shrink:0}
.fb-chip-badge{
    display:inline-flex;align-items:center;justify-content:center;
    min-width:20px;height:20px;border-radius:50%;
    background:#0866FF;color:#fff;font-size:11px;font-weight:700;
    padding:0 5px;
}

/* ===== CATEGORIES BOTTOM SHEET ===== */
.cat-sheet-overlay{
    display:none;position:fixed;top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,0.5);z-index:5000;
    align-items:flex-end;justify-content:center;
}
.cat-sheet-overlay.active{display:flex}
.cat-sheet{
    background:#fff;width:100%;max-width:100%;
    max-height:80vh;border-radius:16px 16px 0 0;
    overflow-y:auto;
    animation:sheetUp 0.3s ease;
}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.cat-sheet-header{
    display:flex;align-items:center;justify-content:space-between;
    padding:20px 20px 16px;border-bottom:1px solid #E4E6EB;
    position:sticky;top:0;background:#fff;z-index:1;
}
.cat-sheet-title{font-size:20px;font-weight:800;color:#050505}
.cat-sheet-close{
    width:36px;height:36px;border-radius:50%;background:#E4E6EB;
    border:none;font-size:16px;color:#65676B;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
}
.cat-sheet-body{padding:8px 0;padding-bottom:env(safe-area-inset-bottom,20px)}
.cat-sheet-item{
    display:flex;align-items:center;gap:14px;
    padding:14px 20px;font-size:16px;font-weight:500;color:#050505;
    transition:background 0.15s;
}
.cat-sheet-item:hover{background:#F0F2F5}
.cat-sheet-icon{
    width:40px;height:40px;border-radius:50%;background:#E4E6EB;
    display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.cat-sheet-icon svg{color:#050505}

/* Hide bottom sheet on desktop */
@media (min-width: 1000px){
    .cat-sheet-overlay{display:none !important}
}

/* ===== MAIN HEADER (title + location) ===== */
.fb-main-header{
    display:flex;align-items:center;justify-content:space-between;
    margin-bottom:16px;gap:8px;
}
.fb-main-location{
    display:flex;align-items:center;gap:6px;
    font-size:15px;font-weight:500;color:#050505;
    cursor:pointer;padding:6px 12px;border-radius:8px;
    transition:background 0.15s;
}
.fb-main-location:hover{background:#E4E6EB}
.fb-main-location svg{color:#0866FF}

/* ===== TOPBAR SEARCH — mobile only ===== */
.fb-topbar-search{position:relative;flex:1;display:none}
.fb-topbar-search input{
    width:100%;height:40px;border-radius:50px;
    background:#F0F2F5;border:none;padding:0 16px 0 38px;
    font-size:15px;color:#050505;outline:none;
}
.fb-topbar-search input:focus{background:#fff;box-shadow:0 0 0 2px #0866FF}
.fb-topbar-search input::placeholder{color:#65676B}
.fb-topbar-search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#65676B;pointer-events:none;display:flex;align-items:center}
@media (max-width: 999px){
    .fb-topbar-search{display:block}
}

/* ===== LOCATION MODAL ===== */
.loc-modal-overlay{
    display:none;position:fixed;top:0;left:0;right:0;bottom:0;
    background:rgba(0,0,0,0.5);z-index:5500;
    align-items:center;justify-content:center;
}
.loc-modal-overlay.active{display:flex}
.loc-modal{
    background:#fff;width:100%;max-width:548px;
    border-radius:12px;overflow:hidden;
    box-shadow:0 12px 48px rgba(0,0,0,0.2);
    max-height:90vh;display:flex;flex-direction:column;
}
.loc-modal-header{
    display:flex;align-items:center;justify-content:center;
    padding:20px 20px 16px;position:relative;
    border-bottom:1px solid #E4E6EB;
}
.loc-modal-title{font-size:20px;font-weight:800;color:#050505}
.loc-modal-close{
    position:absolute;right:16px;top:50%;transform:translateY(-50%);
    width:36px;height:36px;border-radius:50%;background:#E4E6EB;
    border:none;font-size:16px;color:#050505;cursor:pointer;
    display:flex;align-items:center;justify-content:center;
}
.loc-modal-close:hover{background:#D8DADF}
.loc-modal-body{padding:16px 20px;overflow-y:auto;flex:1}
.loc-modal-hint{font-size:15px;color:#65676B;margin-bottom:16px}

/* Location field */
.loc-field{
    border:1px solid #CED0D4;border-radius:12px;
    padding:12px 16px;transition:border-color 0.15s;
}
.loc-field:focus-within{border-color:#0866FF;box-shadow:0 0 0 2px rgba(8,102,255,0.2)}
.loc-field-inner{display:flex;align-items:center;gap:12px}
.loc-field-text{display:flex;flex-direction:column;flex:1;min-width:0}
.loc-field-label{font-size:12px;color:#65676B;font-weight:500;line-height:1.2}
.loc-field-value{
    border:none;outline:none;font-size:16px;font-weight:600;
    color:#050505;padding:0;background:transparent;width:100%;
    font-family:inherit;
}
.loc-field-value::placeholder{color:#8A8D91;font-weight:400}
.loc-field-select{
    border:none;outline:none;font-size:16px;font-weight:600;
    color:#050505;padding:0;background:transparent;width:100%;
    font-family:inherit;cursor:pointer;
    -webkit-appearance:none;-moz-appearance:none;appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23050505' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;background-position:right 0 center;
    padding-right:20px;
}

/* Map */
.loc-map{
    margin-top:16px;border-radius:12px;overflow:hidden;
    height:260px;background:#E4E6EB;
}

/* Footer */
.loc-modal-footer{
    padding:12px 20px 16px;display:flex;justify-content:flex-end;
    border-top:1px solid #E4E6EB;
}
.loc-apply-btn{
    padding:10px 32px;background:#0866FF;color:#fff;
    border:none;border-radius:8px;font-size:15px;font-weight:700;
    cursor:pointer;font-family:inherit;
}
.loc-apply-btn:hover{background:#0654d4}

/* Mobile: bottom sheet style */
@media (max-width: 767px){
    .loc-modal-overlay{align-items:flex-end}
    .loc-modal{
        max-width:100%;border-radius:16px 16px 0 0;
        max-height:85vh;
    }
    .loc-map{height:200px}
}
