/*
Theme Name: BuySellBid
Theme URI: https://buysellbid.com
Author: BuySellBid Inc.
Description: Pixel-accurate WordPress theme matching BuySellBid.com. Requires WooCommerce.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: buysellbid
Tags: e-commerce, marketplace, woocommerce
*/

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button { border: none; outline: none; box-shadow: none; -webkit-appearance: none; appearance: none; background: none; cursor: pointer; }
html { font-size: 14px; }
body { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; background: #fff; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ── TOP NAV BAR (white, Buy/Sell/Stores | English) ── */
#topnav { background: #fff; border-bottom: 1px solid #e0e0e0; }
#topnav .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; height: 38px; }
#topnav .left-links { display: flex; }
#topnav .left-links a { padding: 0 14px; height: 38px; display: flex; align-items: center; color: #333; font-weight: 500; border-right: 1px solid #e8e8e8; font-size: 13px; }
#topnav .left-links a:first-child { border-left: 1px solid #e8e8e8; }
#topnav .left-links a:hover { background: #f5f5f5; color: #1a6ebd; }
#topnav .right-area { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #555; }
#topnav .lang-link { color: #1a6ebd; }

/* ── MAIN HEADER (white, logo + search + welcome + cart) ── */
#main-header { background: #fff; border-bottom: 2px solid #e0e0e0; padding: 10px 0; }
#main-header .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.logo-text { font-size: 26px; font-weight: 700; color: #fff; background: #1a6ebd; padding: 6px 14px; border-radius: 4px; letter-spacing: -0.5px; white-space: nowrap; display: inline-block; }
.logo-text .sell, .logo-text .bid { color: #f7c200; }
.logo-text .com { font-size: 13px; color: #cce0ff; font-weight: 400; }
.header-search { flex: 1; display: flex; max-width: 580px; border: 2px solid #1a6ebd; border-radius: 3px; overflow: hidden; height: 46px; }
.header-search select { border: none; border-right: 1px solid #ccc; background: #f5f5f5; padding: 0 8px; font-size: 12px; color: #333; min-width: 130px; cursor: pointer; outline: none; height: 46px; }
.header-search input { flex: 1; border: none; padding: 0 10px; font-size: 14px; outline: none; color: #333; height: 46px; }
.header-search button { background: #1a6ebd; color: #fff; border: none; padding: 0 18px; font-size: 16px; cursor: pointer; font-weight: bold; height: 46px; }
.header-search button:hover { background: #155a99; }
.header-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.welcome-block { font-size: 13px; color: #555; text-align: right; line-height: 1.5; }
.welcome-block a { color: #1a6ebd; }
.myaccount-btn { background: #f5f5f5; border: 1px solid #ddd; padding: 4px 10px; border-radius: 3px; font-size: 12px; color: #333; cursor: pointer; }
.cart-block { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: #555; border: 1px solid #ddd; border-radius: 3px; padding: 5px 12px; min-width: 60px; background: #fff; cursor: pointer; }
.cart-block:hover { border-color: #1a6ebd; color: #1a6ebd; }
.cart-icon-num { font-size: 22px; line-height: 1; color: #1a6ebd; font-weight: 700; }

/* ── SECONDARY NAV (white, Home/Buy/Sell/Stores/WishList/SignUp/SignIn) ── */
#secondary-nav { background: #fff; border-bottom: 1px solid #ddd; }
#secondary-nav .inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; }
#secondary-nav ul { display: flex; align-items: center; flex-wrap: wrap; }
#secondary-nav ul li a { display: block; padding: 10px 14px; font-size: 13px; color: #333; border-right: 1px solid #eee; white-space: nowrap; }
#secondary-nav ul li a:hover { color: #1a6ebd; background: #f0f7ff; }
#secondary-nav ul li:first-child a { border-left: 1px solid #eee; }
.welcome-li { padding: 0 14px; font-size: 13px; color: #555; border-right: 1px solid #eee; border-left: 1px solid #eee; display: flex; align-items: center; height: 40px; }
.nav-sep { color: #ccc; padding: 0 5px; white-space: nowrap; }
.sell-link { color: #e63946 !important; font-weight: 700 !important; }

/* ── HERO SLIDER ── */
#hero-slider { position: relative; width: 100%; overflow: hidden; background: #fff; border-bottom: 2px solid #e0e0e0; }
#hero-slider .slider-inner { max-width: 1200px; margin: 0 auto; position: relative; overflow: hidden; }
.slides-track { display: flex; transition: transform 0.5s cubic-bezier(.4,0,.2,1); will-change: transform; }
.slide { min-width: 100%; height: 450px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; flex-shrink: 0; }
.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center center; transform: scale(1.03); transition: transform 6s ease; }
.slide.active .slide-bg { transform: scale(1); }
/* Photo background - 2000x800 images fill the slide perfectly */
.slide-bg.photo-bg { transform: none; transition: none; background-size: cover; background-position: center center; background-repeat: no-repeat; }
/* Dark overlay on photo slides so text is always readable */
.slide-content { position: relative; z-index: 2; max-width: 1200px; width: 100%; padding: 0 60px; }
.slide-tag { display: inline-block; background: #f7c200; color: #222; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 2px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.slide-title { font-size: 36px; font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 10px; max-width: 520px; text-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.slide-sub { font-size: 15px; color: rgba(255,255,255,0.85); margin-bottom: 22px; max-width: 420px; line-height: 1.5; }
.slide-btn { display: inline-block; background: #1a6ebd; color: #fff; padding: 10px 26px; border-radius: 3px; font-size: 14px; font-weight: 600; transition: background 0.2s; }
.slide-btn:hover { background: #155a99; }
.slide-btn.yellow { background: #f7c200; color: #222; }
.slide-btn.yellow:hover { background: #e5b400; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; background: rgba(255,255,255,0.18); border: none; color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background 0.2s; }
.slider-arrow:hover { background: rgba(255,255,255,0.35); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.slider-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 10; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.2s, transform 0.2s; border: none; padding: 0; }
.dot.active { background: #fff; transform: scale(1.25); }
@media (max-width: 700px) { .slide { height: 220px; } .slide-title { font-size: 22px; } .slide-content { padding: 0 48px; } }

/* ── CONTENT WRAP ── */
#content-wrap { max-width: 1200px; margin: 0 auto; padding: 18px 16px; }

/* ── SECTION HEADINGS ── */
.section-heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #1a6ebd; margin-bottom: 14px; padding-bottom: 7px; }
.section-heading h2 { font-size: 18px; font-weight: 700; color: #222; }
.section-heading .view-all { font-size: 12px; color: #1a6ebd; border: 1px solid #1a6ebd; padding: 3px 10px; border-radius: 3px; }
.section-heading .view-all:hover { background: #1a6ebd; color: #fff; }
.tab-row { display: flex; border-bottom: 2px solid #1a6ebd; margin-bottom: 14px; }
.tab-btn-blue { padding: 8px 18px; font-size: 14px; font-weight: 600; color: #fff; background: #1a6ebd; border: none; cursor: pointer; border-radius: 3px 3px 0 0; margin-bottom: -2px; }

/* ── PRODUCT GRID ── */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.product-card { border: 1px solid #e0e0e0; border-radius: 6px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow 0.2s, transform 0.2s; }
.product-card:hover { box-shadow: 0 4px 18px rgba(0,0,0,0.13); transform: translateY(-2px); }
.product-card .img-box { width: 100%; padding-top: 75%; position: relative; background: #f5f5f5; border-bottom: 1px solid #ebebeb; overflow: hidden; }
.product-card .img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card .placeholder-img { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; color: #ccc; }
.product-card .card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card .seller { font-size: 11px; color: #1a6ebd; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.product-card .seller .fb { color: #999; font-weight: 400; }
.product-card .prod-title { font-size: 13px; font-weight: 600; color: #1a1a1a; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.product-card .prod-desc { font-size: 11.5px; color: #777; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-card .price { font-size: 17px; font-weight: 700; color: #1a1a1a; margin-top: 4px; }
.product-card .btn-cart { display: block; text-align: center; background: #1a6ebd; color: #fff; padding: 8px 0; border-radius: 4px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; margin-top: 8px; letter-spacing: 0.01em; border: none; outline: none; box-shadow: none; width: 100%; -webkit-appearance: none; appearance: none; }
.product-card .btn-cart:hover { background: #155a99; }
.product-card .btn-bid { background: #e67e00; }
.product-card .btn-bid:hover { background: #c46b00; }
.slider-nav { display: flex; justify-content: center; gap: 8px; margin: 8px 0 20px; }
.slider-nav button { background: #1a6ebd; color: #fff; border: none; padding: 6px 18px; border-radius: 3px; font-size: 13px; cursor: pointer; }
.slider-nav button:hover { background: #155a99; }

/* ── FOOTER ── */
#site-footer { background: #fff; border-top: 2px solid #e0e0e0; padding: 28px 0 0; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px 24px; border-bottom: 1px solid #e5e5e5; display: grid; grid-template-columns: 1fr 1fr 1fr 200px; gap: 30px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #222; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul li a { font-size: 13px; color: #555; }
.footer-col ul li a:hover { color: #1a6ebd; text-decoration: underline; }
.footer-logo-col { display: flex; flex-direction: column; align-items: flex-end; }
.footer-logo-col .logo-text { font-size: 18px; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 12px 16px; font-size: 12px; color: #888; text-align: center; }

/* ── COOKIE BANNER ── */
#cookie-notice { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.88); color: #eee; padding: 12px 20px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 13px; z-index: 9999; flex-wrap: wrap; text-align: center; }
#cookie-notice .btn-cookie { background: #1a6ebd; color: #fff; border: none; padding: 7px 20px; border-radius: 3px; font-size: 13px; cursor: pointer; font-weight: 600; }
#cookie-notice .btn-cookie:hover { background: #155a99; }

/* ── RESPONSIVE ── */
@media (max-width: 1200px) { .product-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 700px) { .product-grid { grid-template-columns: repeat(2,1fr); } #main-header .header-search { display:none; } .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: repeat(2,1fr); } .footer-inner { grid-template-columns: 1fr; } }

#secondary-nav ul li.signin-li {
    display: flex; align-items: center; padding: 0 14px;
    border-right: 1px solid #eee; white-space: nowrap; font-size: 13px; color: #333;
}
#secondary-nav ul li.signin-li a {
    display: inline; border: none !important; padding: 0 !important;
    color: #333; white-space: nowrap;
}
#secondary-nav ul li.signin-li a:hover { color: #1a6ebd; background: none !important; }

@media (max-width: 768px) {
  .slide { height: 260px; }
  #topnav { display: none; }
  .header-search { display: none; }
  #secondary-nav ul { flex-wrap: wrap; }
  #secondary-nav ul li a { padding: 8px 10px; font-size: 12px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .slide { height: 220px; }
  .slide-title { font-size: 22px; }
  .slide-content { padding: 0 48px; }
}
@media (max-width: 480px) {
  .slide { height: 200px; }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .slide { height: 180px; }
  .slide-title { font-size: 18px; }
  .slide-sub { display: none; }
}
/* ══ CATEGORY ICON GRID ══ */
#category-grid-wrap { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 18px 0; }
.category-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.cat-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border-radius: 6px; text-decoration: none; color: #333; font-size: 12px; text-align: center; transition: background .15s; }
.cat-item:hover { background: #f0f4ff; color: #1a6ebd; }
.cat-emoji { font-size: 26px; line-height: 1; }
.cat-label { line-height: 1.2; }

/* ══ TRUST BADGES ══ */
#trust-bar { background: #f7f7f7; border-bottom: 1px solid #e0e0e0; padding: 14px 0; }
#trust-bar .inner { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 10px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.trust-icon { font-size: 24px; }

/* ══ SHIPPING CARRIERS ══ */
#carriers-bar { background: #fff; border-bottom: 1px solid #e0e0e0; padding: 10px 0; }
#carriers-bar .inner { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }
.carrier-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #555; }
.carrier-logo { font-weight: 700; font-size: 13px; color: #333; }

@media (max-width: 900px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  #trust-bar .inner { justify-content: flex-start; }
}

/* ══ WISHLIST HEART ══ */
.img-box-wrap { position: relative; }
.btn-wishlist { position: absolute; top: 8px; right: 8px; z-index: 5; background: rgba(255,255,255,0.92); border: none; border-radius: 50%; width: 34px; height: 34px; font-size: 18px; text-align: center; cursor: pointer; color: #ccc; transition: color 0.2s, transform 0.15s, background 0.15s; padding: 0; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,0.15); }
.btn-wishlist:hover { color: #e0143c; transform: scale(1.15); background: #fff; }
.btn-wishlist.active { color: #e0143c; }

/* ══ ARCHIVE / VIEW ALL PAGE ══ */
.woocommerce-products-header { display: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.content-with-sidebar { display: flex; gap: 24px; align-items: flex-start; }
.sidebar-col { width: 220px; flex-shrink: 0; }
.sidebar-col .sidebar-widget { background: #fff; border: 1px solid #e0e0e0; border-radius: 6px; margin-bottom: 16px; overflow: hidden; }
.sidebar-col .widget-title { font-size: 13px; font-weight: 700; color: #fff; background: #1a6ebd; margin: 0; padding: 10px 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.sidebar-col ul { list-style: none; margin: 0; padding: 0; }
.sidebar-col ul li a { display: flex; justify-content: space-between; padding: 9px 14px; font-size: 13px; color: #333; border-bottom: 1px solid #f0f0f0; text-decoration: none; transition: background 0.12s; }
.sidebar-col ul li a:hover { background: #f5f8ff; color: #1a6ebd; }
.sidebar-col ul li a .count { color: #999; font-size: 11px; }
.main-col { flex: 1; min-width: 0; }
.main-col .woocommerce { width: 100%; }
.main-col ul.products { display: grid !important; grid-template-columns: repeat(4, 1fr) !important; gap: 14px !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.main-col ul.products li.product { margin: 0 !important; float: none !important; width: auto !important; }
#main-content { padding: 24px 0; }
.woocommerce-ordering, .woocommerce-result-count { font-size: 13px; margin-bottom: 14px; }
.woocommerce-ordering select { border: 1px solid #ddd; border-radius: 4px; padding: 5px 8px; font-size: 13px; }

/* Hide hero slider on shop/archive pages */
.woocommerce #hero-slider,
.tax-product_cat #hero-slider,
.post-type-archive-product #hero-slider { display: none; }

@media (max-width: 900px) {
  .content-with-sidebar { flex-direction: column; }
  .sidebar-col { width: 100%; }
  .main-col ul.products { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ══ AUTH PAGES (Login / Register) ══ */
#auth-wrap { min-height: 70vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; background: #f5f7fa; }
.auth-box { background: #fff; border: 1px solid #e0e0e0; border-radius: 8px; padding: 40px 36px; width: 100%; max-width: 460px; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo img { max-width: 160px; height: auto; }
.auth-title { font-size: 22px; font-weight: 700; color: #1a1a1a; text-align: center; margin: 0 0 24px; }
.auth-error { background: #fdecea; border: 1px solid #f5c6cb; color: #c0392b; border-radius: 4px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; margin-top: 14px; }
.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] { width: 100%; box-sizing: border-box; border: 1px solid #d0d0d0; border-radius: 4px; padding: 10px 12px; font-size: 14px; color: #222; transition: border-color 0.15s; }
.auth-form input:focus { outline: none; border-color: #1a6ebd; box-shadow: 0 0 0 2px rgba(26,110,189,0.12); }
.auth-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; font-size: 13px; }
.auth-check { display: flex; align-items: center; gap: 6px; color: #555; cursor: pointer; }
.auth-link { color: #1a6ebd; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-note { font-size: 12px; color: #888; margin-top: 14px; line-height: 1.5; }
.req { color: #e0143c; }
.auth-btn { display: block; width: 100%; margin-top: 20px; background: #1a6ebd; color: #fff; border: none; border-radius: 4px; padding: 12px; font-size: 15px; font-weight: 700; cursor: pointer; transition: background 0.15s; letter-spacing: 0.01em; }
.auth-btn:hover { background: #155a99; }
.auth-switch { text-align: center; font-size: 13px; color: #666; margin-top: 20px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.auth-switch a { color: #1a6ebd; font-weight: 600; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

@media (max-width: 480px) {
  .auth-box { padding: 28px 20px; }
  .auth-two-col { grid-template-columns: 1fr; }
}

/* ---- Cart Toast ---- */
.bsb-cart-toast { position:fixed; bottom:24px; right:24px; background:#222; color:#fff; padding:13px 20px; border-radius:6px; font-size:13.5px; z-index:9999; display:flex; align-items:center; gap:12px; box-shadow:0 4px 20px rgba(0,0,0,0.25); transform:translateY(80px); opacity:0; transition:all 0.3s; pointer-events:none; max-width:320px; }
.bsb-cart-toast.show { transform:translateY(0); opacity:1; pointer-events:auto; }
.bsb-cart-toast.error { background:#c0392b; }
.bsb-cart-toast a { color:#7ecfff; text-decoration:none; font-weight:600; white-space:nowrap; }
.bsb-add-to-cart:disabled { opacity:0.65; cursor:wait; }
