/* ═══════════════════════════════════════════
   FIGEIT Buyer Website — CSS
   ═══════════════════════════════════════════ */
:root{--blue:#1E50DE;--orange:#F7A823;--dark:#1a1a2e;--gray:#6C6F7D;--bg:#F4F5F9;--surface:#fff;--radius:14px;--max-w:1240px;}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Inter',sans-serif;background:var(--bg);color:#333;line-height:1.6;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;height:auto;}
.by-container{max-width:var(--max-w);margin:0 auto;padding:0 20px;}

/* HEADER */
.by-header{background:#6C6F7D;border-bottom:1px solid #5a5d6b;position:sticky;top:0;z-index:100;}
.by-header-inner{display:flex;align-items:center;gap:16px;padding:10px 20px;}
.by-logo-wrap{position:relative;width:160px;height:42px;flex-shrink:0;}
.by-logo-wrap img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:contain;object-position:left center;opacity:0;transition:opacity .6s;}
.by-logo-wrap img.active{opacity:1;}
.by-search{flex:1;position:relative;}
.by-search-input{width:100%;padding:10px 44px 10px 16px;border:1.5px solid #e2e8f0;border-radius:10px;font-size:13px;font-family:inherit;}
.by-search-input:focus{outline:none;border-color:var(--blue);}
.by-search-btn{position:absolute;right:4px;top:4px;bottom:4px;width:36px;background:var(--blue);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:14px;}
.by-header-actions{display:flex;align-items:center;gap:14px;flex-shrink:0;}
.by-header-icon{display:flex;flex-direction:column;align-items:center;font-size:16px;color:#fff;gap:2px;}
.by-header-icon span{font-size:9px;color:#ddd;}
.by-login-btn{padding:7px 16px;border:1.5px solid var(--blue);color:var(--blue);border-radius:8px;font-size:12px;font-weight:600;}
.by-signup-btn{padding:7px 16px;background:var(--blue);color:#fff;border-radius:8px;font-size:12px;font-weight:600;}

/* NAV */
.by-nav{background:#fff;border-bottom:1px solid #eee;}
.by-nav-inner{display:flex;align-items:center;gap:16px;padding:8px 20px;}
.by-nav-cat-btn{background:var(--blue);color:#fff;padding:8px 14px;border-radius:8px;font-size:12px;font-weight:600;cursor:pointer;}
.by-nav-links{display:flex;align-items:center;gap:6px;flex:1;overflow-x:auto;}
.by-nav-link{padding:6px 12px;font-size:12px;font-weight:500;color:#555;border-radius:6px;white-space:nowrap;transition:all .15s;}
.by-nav-link:hover,.by-nav-link.active{color:var(--blue);background:#eff6ff;}
.by-nav-highlight{color:var(--orange) !important;font-weight:600 !important;}

/* HERO */
.by-hero{background:linear-gradient(135deg,#f0f7ff 0%,#e8f4fd 100%);padding:40px 0;overflow:hidden;}
.by-hero-inner{display:grid;grid-template-columns:1.3fr 1fr;gap:40px;align-items:center;}
.by-hero-badge{display:inline-block;background:#e0f2fe;color:var(--blue);padding:6px 14px;border-radius:20px;font-size:11px;font-weight:700;margin-bottom:12px;}
.by-hero h1{font-size:34px;font-weight:800;color:var(--dark);line-height:1.2;margin-bottom:12px;}
.by-hero h1 span{color:var(--blue);}
.by-hero p{font-size:14px;color:#555;margin-bottom:20px;max-width:440px;}
.by-hero-promises{display:flex;gap:20px;margin-bottom:20px;}
.by-promise{display:flex;flex-direction:column;font-size:11px;color:#888;}
.by-promise strong{font-size:13px;color:var(--dark);}
.by-hero-btns{display:flex;gap:10px;}
.by-btn-primary{padding:12px 24px;background:var(--blue);color:#fff;border-radius:10px;font-size:14px;font-weight:700;border:none;display:inline-block;}
.by-btn-outline{padding:12px 24px;background:#fff;color:#333;border-radius:10px;font-size:14px;font-weight:600;border:1.5px solid #ddd;display:inline-block;}
.by-hero-img{display:flex;justify-content:center;}
.by-hero-img img{max-height:280px;}

/* LOCATION */
.by-location{background:#fff;border-bottom:1px solid #eee;padding:16px 0;}
.by-location-inner{display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.by-location-icon{font-size:24px;}
.by-location-text{flex:1;}
.by-location-text strong{font-size:13px;color:var(--dark);}
.by-location-text span{font-size:11px;color:#888;}
.by-location-input{display:flex;gap:8px;}
.by-loc-input{padding:8px 14px;border:1.5px solid #e2e8f0;border-radius:8px;font-size:12px;width:200px;font-family:inherit;}
.by-loc-btn{padding:8px 14px;background:var(--blue);color:#fff;border:none;border-radius:8px;font-size:11px;font-weight:600;cursor:pointer;white-space:nowrap;}

/* SECTIONS */
.by-section{padding:40px 0;}
.by-section--gray{background:#f8f9fb;}
.by-section-header{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:24px;}
.by-section-label{font-size:11px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.5px;}
.by-section-header h2{font-size:22px;font-weight:800;color:var(--dark);margin-top:2px;}
.by-view-all{font-size:12px;color:var(--blue);font-weight:600;}

/* CATEGORIES */
.by-categories{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;}
.by-category{background:#fff;border-radius:12px;padding:16px 8px;text-align:center;font-size:11px;font-weight:600;color:#333;border:1px solid #eee;transition:all .15s;}
.by-category:hover{border-color:var(--blue);box-shadow:0 4px 12px rgba(30,80,222,.08);}
.by-cat-icon{display:block;font-size:24px;margin-bottom:6px;}

/* STORES */
.by-stores{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;}
.by-store-card{background:#fff;border-radius:var(--radius);padding:14px;border:1px solid #eee;position:relative;}
.by-store-badge{position:absolute;top:10px;left:10px;background:#dcfce7;color:#166534;font-size:9px;font-weight:700;padding:2px 8px;border-radius:4px;}
.by-store-img{height:80px;background:#f0f0f0;border-radius:10px;margin-bottom:10px;}
.by-store-card h4{font-size:13px;font-weight:700;margin-bottom:4px;}
.by-store-meta{font-size:10px;color:#888;margin-bottom:4px;}
.by-store-min{font-size:10px;color:#555;margin-bottom:8px;}
.by-store-btn{display:block;text-align:center;padding:6px;background:var(--blue);color:#fff;border-radius:6px;font-size:11px;font-weight:600;}

/* PRODUCTS */
.by-products{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.by-product-card{background:#fff;border-radius:var(--radius);padding:12px;border:1px solid #eee;text-align:center;position:relative;}
.by-product-badge{position:absolute;top:8px;left:8px;background:#fef3c7;color:#92400e;font-size:9px;font-weight:700;padding:2px 6px;border-radius:4px;}
.by-product-img{height:80px;background:#f8f8f8;border-radius:8px;margin-bottom:8px;}
.by-product-card h4{font-size:12px;font-weight:600;margin-bottom:2px;}
.by-product-unit{font-size:10px;color:#888;margin-bottom:4px;}
.by-product-price{font-size:13px;margin-bottom:8px;}
.by-product-price strong{color:var(--dark);}
.by-product-price s{font-size:11px;color:#999;margin-left:4px;}
.by-product-btn{width:100%;padding:6px;background:#fff;color:var(--blue);border:1.5px solid var(--blue);border-radius:6px;font-size:11px;font-weight:600;cursor:pointer;}
.by-product-btn:hover{background:var(--blue);color:#fff;}

/* OFFERS */
.by-offers{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.by-offer-card{border-radius:var(--radius);padding:20px;text-align:center;}
.by-offer-card h3{font-size:16px;font-weight:800;margin-bottom:4px;}
.by-offer-card p{font-size:12px;color:#555;margin-bottom:8px;}
.by-offer-code{display:inline-block;padding:4px 10px;border:1.5px dashed #333;border-radius:6px;font-size:11px;font-weight:700;}

/* STEPS */
.by-steps{display:flex;justify-content:space-between;gap:8px;}
.by-step{text-align:center;flex:1;position:relative;}
.by-step-num{width:24px;height:24px;background:var(--blue);color:#fff;border-radius:50%;font-size:11px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;margin-bottom:6px;}
.by-step-icon{font-size:28px;margin-bottom:6px;}
.by-step h4{font-size:12px;font-weight:700;margin-bottom:2px;}
.by-step p{font-size:10px;color:#888;}

/* PROMISES GRID */
.by-promises-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;}
.by-promise-card{background:#fff;border-radius:var(--radius);padding:18px 12px;text-align:center;border:1px solid #eee;font-size:24px;}
.by-promise-card h4{font-size:12px;font-weight:700;margin:6px 0 2px;}
.by-promise-card p{font-size:10px;color:#888;}

/* TESTIMONIALS */
.by-testimonials{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.by-testimonial{background:#fff;border-radius:var(--radius);padding:18px;border:1px solid #eee;}
.by-t-stars{color:var(--orange);font-size:12px;margin-bottom:8px;}
.by-testimonial p{font-size:12px;color:#555;margin-bottom:12px;min-height:50px;line-height:1.5;}
.by-t-author strong{font-size:12px;display:block;}
.by-t-author span{font-size:10px;color:#888;}

/* APP SECTION */
.by-app-section{background:linear-gradient(135deg,var(--blue),#1640b0);padding:40px 0;color:#fff;}
.by-app-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.by-app-content h2{font-size:22px;font-weight:800;margin-bottom:8px;}
.by-app-content p{font-size:14px;opacity:.85;margin-bottom:16px;}
.by-app-stores{display:flex;gap:12px;font-size:13px;font-weight:600;}

/* FAQ */
.by-faq-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
.by-faq-item{background:#fff;border-radius:10px;padding:14px 16px;border:1px solid #eee;cursor:pointer;transition:border-color .2s;}
.by-faq-item:hover{border-color:var(--blue);}
.by-faq-item h4{font-size:13px;font-weight:600;display:flex;justify-content:space-between;align-items:center;}
.by-faq-item h4 span{font-size:18px;color:#888;transition:transform .2s;}
.by-faq-item.open h4 span{transform:rotate(45deg);}
.by-faq-item p{font-size:12px;color:#555;margin-top:8px;display:none;line-height:1.6;}
.by-faq-item.open p{display:block;}

/* CTA */
.by-cta{background:linear-gradient(135deg,#e8f4fd,#f0f7ff);padding:40px 0;}
.by-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;}
.by-cta h2{font-size:24px;font-weight:800;color:var(--dark);margin-bottom:8px;}
.by-cta p{font-size:14px;color:#555;margin-bottom:16px;}

/* FOOTER */
.by-footer{background:var(--gray);color:#ccc;padding:40px 0 16px;}
.by-footer-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;gap:24px;margin-bottom:24px;}
.by-footer-brand p{font-size:12px;color:#fff;margin-top:8px;line-height:1.6;}
.by-footer-col h4{font-size:13px;font-weight:700;color:#F4C542;margin-bottom:12px;}
.by-footer-col ul{list-style:none;}
.by-footer-col ul li{margin-bottom:8px;font-size:12px;color:#fff;}
.by-footer-col ul li a{color:#fff;transition:color .2s;}
.by-footer-col ul li a:hover{color:var(--orange);}
.by-footer-bottom{text-align:center;font-size:11px;color:#888;padding-top:16px;border-top:1px solid #555;}

/* RESPONSIVE */
@media(max-width:1024px){.by-categories{grid-template-columns:repeat(4,1fr);}.by-stores{grid-template-columns:repeat(3,1fr);}.by-products{grid-template-columns:repeat(3,1fr);}.by-offers{grid-template-columns:repeat(2,1fr);}.by-testimonials{grid-template-columns:repeat(2,1fr);}.by-promises-grid{grid-template-columns:repeat(3,1fr);}.by-footer-grid{grid-template-columns:repeat(3,1fr);}.by-hero-inner{grid-template-columns:1fr;}}
@media(max-width:768px){.by-header-actions{display:none;}.by-nav-links{overflow-x:auto;}.by-categories{grid-template-columns:repeat(3,1fr);}.by-stores,.by-products{grid-template-columns:repeat(2,1fr);}.by-offers,.by-faq-grid{grid-template-columns:1fr;}.by-steps{flex-wrap:wrap;justify-content:center;}.by-promises-grid{grid-template-columns:repeat(2,1fr);}.by-testimonials{grid-template-columns:1fr;}.by-app-inner{flex-direction:column;text-align:center;}.by-cta-inner{flex-direction:column;text-align:center;}.by-footer-grid{grid-template-columns:1fr 1fr;}.by-location-input{width:100%;}.by-loc-input{flex:1;}}
@media(max-width:480px){.by-hero h1{font-size:24px;}.by-categories{grid-template-columns:repeat(2,1fr);}.by-stores,.by-products{grid-template-columns:1fr;}.by-footer-grid{grid-template-columns:1fr;}.by-hero-promises{flex-direction:column;gap:8px;}}
