/*
Theme Name: Global B2B Marketplace Simple V8
Theme URI: https://example.com/global-b2b-marketplace
Author: ChatGPT
Description: Clean premium WooCommerce shop theme. A-to-Z editable homepage sections, full-width strips, working WooCommerce cart/checkout, WhatsApp, legal pages, and custom product cards.
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: global-b2b-marketplace
*/
:root{--gb2b-primary:#0f172a;--gb2b-accent:#b00078;--gb2b-page:#f4f4f4;--gb2b-card:#fff;--gb2b-text:#111;--gb2b-header-bg:#fff;--gb2b-footer-bg:#111;--gb2b-shadow:0 2px 10px rgba(0,0,0,.06);--gb2b-main-width:1000px;--gb2b-body-pad:8px;--gb2b-search-radius:25px;--gb2b-banner-height:42px;--gb2b-banner-radius:0px;--gb2b-banner-bleed:0px;--gb2b-banner-mt:0px;--gb2b-banner-mb:0px;--gb2b-delivery-bleed:0px;--gb2b-delivery-mt:0px;--gb2b-delivery-mb:0px;--gb2b-delivery-bg1:#111827;--gb2b-delivery-bg2:#44403c;--gb2b-delivery-text:#fff;--gb2b-delivery-top-pad:5px;--gb2b-delivery-gap:0px;--gb2b-delivery-bottom-pad:6px;--gb2b-voucher-height:38px;--gb2b-voucher-radius:0px;--gb2b-voucher-bleed:0px;--gb2b-voucher-mt:0px;--gb2b-voucher-mb:0px;--gb2b-product-image-height:95px;--gb2b-product-image-height-mobile:75px;--gb2b-product-card-radius:5px;--gb2b-product-gap:10px;--gb2b-product-mt:8px;--gb2b-product-mb:12px;--gb2b-cols-desktop:4;--gb2b-cols-mobile:3}
*{box-sizing:border-box;margin:0;padding:0}html{scroll-behavior:smooth}body{font-family:'Segoe UI',Arial,sans-serif;background:var(--gb2b-page);color:var(--gb2b-text);font-size:14px;padding:var(--gb2b-body-pad);overflow-x:hidden}a{text-decoration:none;color:inherit}img{max-width:100%;display:block}.container{max-width:var(--gb2b-main-width);margin:0 auto}.main-layout{max-width:var(--gb2b-main-width);margin:auto;display:flex;flex-direction:column;gap:0}
/* Header */
.gb2b-site-header{max-width:var(--gb2b-main-width);margin:0 auto 8px;background:var(--gb2b-header-bg);border:1px solid rgba(15,23,42,.08);box-shadow:var(--gb2b-shadow);border-radius:14px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.gb2b-brand{display:flex;align-items:center;gap:8px;font-weight:900;color:#111;min-width:0}.gb2b-brand-mark{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#111827,#737373);color:#fff}.custom-logo{max-height:45px;width:auto}.gb2b-header-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;font-weight:800}.gb2b-header-links a{padding:6px 8px;border-radius:9px;color:#111}.gb2b-header-links a:hover{background:#f1f5f9}
.header-section{display:flex;align-items:center;gap:8px;margin-bottom:0}.search-container{background:#fff;border-radius:var(--gb2b-search-radius);display:flex;align-items:center;padding:5px 15px;flex:1;border:1px solid #eee;box-shadow:0 2px 8px rgba(0,0,0,.03)}.search-container input{border:none;outline:none;flex:1;padding:5px 10px;font-size:13px;background:transparent;color:#111}.search-container .fa-search,.search-container .fa-camera{color:#555}.camera-input-label{margin:0;cursor:pointer}.camera-input-label input{display:none}.toggle-btn{background:#fff;border:1px solid #ddd;width:35px;height:35px;border-radius:50%;display:flex;align-items:center;justify-content:center;cursor:pointer;color:var(--gb2b-primary);font-size:18px;box-shadow:0 2px 8px rgba(0,0,0,.04);flex:0 0 auto}
/* Hidden-by-default categories */
.slider-container{background:linear-gradient(180deg,rgba(255,255,255,.95),rgba(248,250,252,.9));border:1px solid rgba(15,23,42,.07);box-shadow:0 12px 30px rgba(15,23,42,.06);backdrop-filter:blur(18px);padding:8px;border-radius:14px;margin-top:0}.swiper-wrapper{transition-timing-function:linear!important}.cat-card{width:88px;min-height:58px;padding:7px;border-radius:12px;background:linear-gradient(180deg,#fff,#f8fafc);border:1px solid rgba(15,23,42,.08);box-shadow:0 6px 16px rgba(15,23,42,.05);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.icon-box,.grid-icon{width:34px;height:34px;border-radius:10px;background:linear-gradient(135deg,#0f172a,#8b8f99);color:#fff;display:flex;align-items:center;justify-content:center;font-size:15px}.icon-box img,.grid-icon img{width:100%;height:100%;object-fit:cover;border-radius:10px}.cat-name{font-size:9px;font-weight:800;color:#111;line-height:1.05;text-align:center}.gb2b-add-cat{border:1px dashed rgba(17,17,17,.28)}.full-menu-overlay{position:fixed;inset:0;background:rgba(248,250,252,.98);z-index:1000;display:none;flex-direction:column}.overlay-header{background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.05);padding:14px;display:flex;align-items:center;gap:14px}.overlay-header button{border:none;background:#f8fafc;width:36px;height:36px;border-radius:10px;cursor:pointer}.overlay-header a{margin-left:auto;background:#111827;color:#fff;padding:8px 12px;border-radius:10px}.grid-view{overflow:auto;padding:14px;display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.grid-item{border:1px solid rgba(15,23,42,.08);background:rgba(255,255,255,.9);box-shadow:0 7px 18px rgba(15,23,42,.06);border-radius:16px;padding:10px 4px;display:flex;flex-direction:column;align-items:center;gap:6px}.grid-text{font-size:10px;font-weight:800;text-align:center}
/* Banner - true full bleed style */
.banner-container{width:calc(100vw + (var(--gb2b-banner-bleed) * 2));height:var(--gb2b-banner-height);min-height:18px;border-radius:var(--gb2b-banner-radius);overflow:hidden;box-shadow:var(--gb2b-shadow);margin-left:calc(50% - 50vw - var(--gb2b-banner-bleed));margin-top:var(--gb2b-banner-mt);margin-bottom:var(--gb2b-banner-mb)}.bannerSwiper,.bannerSwiper .swiper-wrapper,.bannerSwiper .swiper-slide{height:100%}.banner-slide{position:relative;width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:bold;background-size:cover;background-position:center}.offer-tag{position:absolute;top:50%;left:8px;transform:translateY(-50%);background:#f00;color:#fff;padding:2px 7px;border-radius:4px;font-size:8px}.banner-text{background:rgba(0,0,0,.30);padding:2px 12px;border-radius:20px;font-size:11px;line-height:1.1;white-space:nowrap}.b1{background:linear-gradient(to right,#4facfe,#00f2fe)}.b2{background:linear-gradient(to right,#667eea,#764ba2)}.b3{background:linear-gradient(to right,#f093fb,#f5576c)}
/* Delivery - colors now actually customizable */
.delivery-card{width:calc(100vw + (var(--gb2b-delivery-bleed) * 2));margin-left:calc(50% - 50vw - var(--gb2b-delivery-bleed));margin-top:var(--gb2b-delivery-mt);margin-bottom:var(--gb2b-delivery-mb);background:#fff;padding:0;font-family:'Segoe UI',Arial,sans-serif}.delivery-wrapper{width:100%;border-top:0;border-bottom:1px solid #eee;overflow:hidden;background:#fff}.delivery-top{padding:var(--gb2b-delivery-top-pad) 15px;display:flex;justify-content:space-between;align-items:center;color:var(--gb2b-delivery-text);background:linear-gradient(90deg,var(--gb2b-delivery-bg1),var(--gb2b-delivery-bg2));min-height:calc(var(--gb2b-delivery-top-pad) * 2 + 16px)}.delivery-top.rainbow-on{animation:rainbowShift 7s infinite alternate}.delivery-title{font-size:13px;font-weight:bold;white-space:nowrap}.delivery-desc{font-size:9px;font-weight:500;text-align:right}@keyframes rainbowShift{0%{background:#FF9D00}25%{background:#FF4D8D}50%{background:#00D28E}75%{background:#B26BFF}100%{background:#4EA8FF}}.delivery-gap{height:var(--gb2b-delivery-gap);background:#f9f9f9}.delivery-bottom{padding:var(--gb2b-delivery-bottom-pad) 10px;display:flex;justify-content:space-around;align-items:flex-start;gap:5px}.delivery-item{display:flex;flex-direction:column;align-items:center;width:60px;text-align:center}.prod-img{width:42px;height:42px;border-radius:8px;object-fit:cover;margin-bottom:4px;border:1px solid #f0f0f0}.item-label{font-size:8px;font-weight:bold;color:#333;line-height:1.1}.price-tag{font-size:7px;color:#ff4d8d;font-weight:bold}
/* Offer slider */
.v-section{background:#fff;padding:0;width:calc(100vw + (var(--gb2b-voucher-bleed) * 2));margin-left:calc(50% - 50vw - var(--gb2b-voucher-bleed));margin-top:var(--gb2b-voucher-mt);margin-bottom:var(--gb2b-voucher-mb);overflow:hidden;border-radius:var(--gb2b-voucher-radius);box-shadow:var(--gb2b-shadow)}.slider-window{width:100%;overflow:hidden;position:relative}.track{display:flex;width:max-content}.card-wrapper{width:100vw;display:flex;justify-content:center;box-sizing:border-box;padding:0;flex-shrink:0}.voucher-card{width:100%;height:var(--gb2b-voucher-height);min-height:20px;display:flex;border-radius:var(--gb2b-voucher-radius);position:relative;box-shadow:0 4px 12px rgba(0,0,0,.04);border:1px dotted;overflow:hidden}.left-part{width:35%;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px dotted rgba(0,0,0,.2);position:relative;background:rgba(255,255,255,.15)}.left-part::before,.left-part::after{content:'';position:absolute;right:-7px;width:12px;height:12px;background:#fff;border-radius:50%;z-index:5}.left-part::before{top:-8px}.left-part::after{bottom:-8px}.left-part h2{margin:0;font-size:12px;font-weight:800}.left-part p{margin:0;font-size:7px;font-weight:700;text-transform:uppercase}.right-part{width:65%;padding:4px 10px;display:flex;flex-direction:column;justify-content:center;background:rgba(255,255,255,.4);position:relative}.v-type{font-size:10px;font-weight:800}.v-scope{font-size:8px;color:#444;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:70%}.btn{position:absolute;right:10px;top:50%;transform:translateY(-50%);text-decoration:none;color:#fff;padding:3px 9px;border-radius:5px;font-size:8px;font-weight:800;text-transform:uppercase;display:inline-block}.btn:active{opacity:.7;transform:translateY(-50%) scale(.95)}
/* Admin and custom blocks */
.gb2b-admin-box,.gb2b-custom-block{background:#fff;border:1px solid rgba(15,23,42,.08);border-radius:12px;box-shadow:var(--gb2b-shadow);padding:10px 12px;margin:8px 0}.gb2b-admin-box{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.gb2b-admin-box span{display:flex;gap:7px;flex-wrap:wrap}.gb2b-admin-box a{background:#f1f5f9;padding:6px 9px;border-radius:8px;font-size:12px;font-weight:800}.gb2b-custom-block img{height:auto}.gb2b-empty{background:#fff;border:1px dashed #ccc;border-radius:12px;padding:20px;text-align:center;color:#555}
/* Product cards */
.gb2b-products-section{margin-top:var(--gb2b-product-mt);margin-bottom:var(--gb2b-product-mb)}.gb2b-section-title{display:flex;align-items:center;justify-content:space-between;margin:10px 0 8px}.gb2b-section-title h2{font-size:18px;letter-spacing:-.02em;color:#111}.gb2b-section-title a{font-size:12px;font-weight:900;color:var(--gb2b-accent)}.product-grid{display:grid;grid-template-columns:repeat(var(--gb2b-cols-mobile),1fr);gap:var(--gb2b-product-gap)}.product-card{background:var(--gb2b-card);border-radius:var(--gb2b-product-card-radius);overflow:hidden;display:flex;flex-direction:column;box-shadow:0 2px 6px rgba(0,0,0,.10);transition:transform .2s, box-shadow .2s}.product-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(0,0,0,.12)}.image-container{background:#e8e8e8;position:relative;height:var(--gb2b-product-image-height);overflow:hidden;display:block}.product-slider-wrapper{display:flex;width:300%;height:100%;transition:transform 1s ease-in-out}.product-slider-wrapper img{width:33.333%;height:100%;object-fit:contain;padding:8px;box-sizing:border-box;flex:0 0 33.333%}.badge{position:absolute;top:0;left:0;background:#5d1a89;color:#fff;font-size:8px;padding:3px 6px;font-weight:bold;z-index:10}.info-panel{padding:8px;text-align:center;flex-grow:1}.info-panel h3{font-size:13px;margin:0 0 5px;color:#111;font-weight:800;line-height:1.1}.info-panel ul{text-align:left;margin:0;padding:0 0 0 12px;list-style-type:disc}.info-panel li{font-size:9px;font-weight:400;color:#000;margin-bottom:2px;line-height:1.1}.gb2b-views{color:#777!important}.gb2b-product-actions{display:grid;grid-template-columns:1fr}.gb2b-product-actions.two{grid-template-columns:1fr 1fr}.add-to-cart{background:var(--gb2b-accent);color:#fff!important;border:none;padding:6px 0;font-size:10px;font-weight:bold;cursor:pointer;width:100%;text-transform:uppercase;text-align:center;display:block}.whatsapp-btn{background:#16a34a}.added_to_cart.wc-forward{display:block;text-align:center;background:#111827;color:#fff;padding:5px;font-size:9px;font-weight:800}
/* Premium optional sections */
.gb2b-premium-section{max-width:var(--gb2b-main-width);margin:12px auto;background:rgba(255,255,255,.86);border:1px solid rgba(15,23,42,.08);box-shadow:var(--gb2b-shadow);border-radius:16px;padding:14px;backdrop-filter:blur(14px)}.gb2b-ad-grid,.gb2b-testimonial-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.gb2b-ad-card,.gb2b-testimonial-grid div{border:1px solid rgba(15,23,42,.08);border-radius:14px;background:#fff;padding:12px;min-height:95px;box-shadow:0 6px 18px rgba(15,23,42,.04)}.gb2b-ad-card span{font-size:9px;text-transform:uppercase;background:#111827;color:#fff;border-radius:20px;padding:3px 8px;display:inline-block;margin-bottom:8px}.gb2b-ad-card strong{display:block;font-size:14px;margin-bottom:5px}.gb2b-ad-card p,.gb2b-testimonial-grid p{font-size:12px;color:#555;line-height:1.4}.gb2b-testimonial-grid strong{font-size:12px;color:#111}.gb2b-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;text-align:center}.gb2b-stats div{background:#fff;border-radius:14px;padding:12px;border:1px solid rgba(15,23,42,.08)}.gb2b-stats strong{display:block;font-size:22px;color:#111}.gb2b-stats span{font-size:11px;color:#666}.gb2b-app-promo{display:flex;justify-content:space-between;gap:12px;align-items:center;background:linear-gradient(135deg,#111827,#52525b);color:#fff}.gb2b-app-promo span{font-size:10px;text-transform:uppercase;opacity:.75}.gb2b-app-promo h2{font-size:20px;margin:3px 0}.gb2b-app-promo p{font-size:12px;opacity:.85}.gb2b-app-promo a{background:#fff;color:#111;border-radius:10px;padding:10px 14px;font-weight:900;white-space:nowrap}
/* Contact/footer */
.gb2b-contact-card{max-width:780px;margin:20px auto;background:#fff;border-radius:18px;padding:22px;box-shadow:var(--gb2b-shadow);border:1px solid rgba(15,23,42,.08)}.gb2b-contact-card h2{font-size:24px;margin-bottom:8px}.gb2b-wa-large{display:inline-flex;gap:8px;align-items:center;background:#16a34a;color:#fff!important;border-radius:12px;padding:12px 16px;font-weight:900;margin:12px 0}.gb2b-site-footer{display:none;background:var(--gb2b-footer-bg);color:#fff;margin:16px calc(var(--gb2b-body-pad) * -1) calc(var(--gb2b-body-pad) * -1);padding:26px var(--gb2b-body-pad) 12px}.gb2b-footer-grid{max-width:var(--gb2b-main-width);margin:0 auto;display:grid;grid-template-columns:2fr 1fr 1fr 1.2fr;gap:22px}.gb2b-footer-col h3,.gb2b-footer-col h4{margin-bottom:10px}.gb2b-footer-col p,.gb2b-footer-col li{font-size:12px;line-height:1.55;color:rgba(255,255,255,.75);list-style:none;margin-bottom:5px}.gb2b-footer-col a{color:rgba(255,255,255,.86)}.gb2b-socials{display:flex;gap:8px;margin-top:10px}.gb2b-socials a{width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center}.gb2b-footer-bottom{max-width:var(--gb2b-main-width);margin:18px auto 0;padding-top:12px;border-top:1px solid rgba(255,255,255,.12);font-size:12px;color:rgba(255,255,255,.65);text-align:center}.gb2b-admin-footer-tools a{color:#fff;text-decoration:underline}.show-gb2b-footer .gb2b-site-footer{display:block}
/* WooCommerce basic polish */
.woocommerce-page .site-main,.woocommerce .site-main{max-width:var(--gb2b-main-width);margin:0 auto}.woocommerce div.product,.woocommerce-cart .woocommerce,.woocommerce-checkout .woocommerce,.woocommerce-account .woocommerce{background:#fff;border-radius:16px;padding:16px;box-shadow:var(--gb2b-shadow);border:1px solid rgba(15,23,42,.08)}.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--gb2b-accent);color:#fff;border-radius:8px}.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#111827;color:#fff}
@media(min-width:900px){.product-grid{grid-template-columns:repeat(var(--gb2b-cols-desktop),1fr)}.card-wrapper{width:min(var(--gb2b-main-width),100vw)}}
@media(max-width:700px){body{padding:var(--gb2b-body-pad)}.gb2b-site-header{padding:8px 10px;border-radius:12px;gap:8px}.gb2b-header-links{font-size:10px;gap:5px}.gb2b-header-links a{padding:5px}.custom-logo{max-height:36px}.product-grid{grid-template-columns:repeat(var(--gb2b-cols-mobile),1fr);gap:8px}.image-container{height:var(--gb2b-product-image-height-mobile)}.info-panel{padding:7px}.info-panel h3{font-size:11px}.add-to-cart{font-size:8px;padding:5px 0}.delivery-title{font-size:12px}.delivery-desc{font-size:8px}.v-scope{max-width:62%}.banner-text{font-size:10px}.offer-tag{font-size:7px}.gb2b-ad-grid,.gb2b-testimonial-grid,.gb2b-footer-grid{grid-template-columns:1fr}.gb2b-stats{grid-template-columns:repeat(2,1fr)}.gb2b-app-promo{flex-direction:column;align-items:flex-start}.grid-view{grid-template-columns:repeat(3,1fr);gap:9px}.gb2b-section-title h2{font-size:16px}}
.gb2b-dashboard-wrap{max-width:var(--gb2b-main-width);margin:0 auto 16px}.gb2b-dashboard-wrap article,.gb2b-dashboard-wrap .page-content{background:#fff;border-radius:16px;padding:18px;box-shadow:var(--gb2b-shadow);border:1px solid rgba(15,23,42,.08)}.gb2b-dashboard-wrap h1{font-size:26px;margin-bottom:12px}.gb2b-dashboard-wrap p{line-height:1.6;margin-bottom:10px}
