﻿/* ============================================================
   BAXIN STORE - Banggood Style Theme
   ============================================================ */
:root {
    --red: #e4001b;
    --red-dark: #c0001a;
    --orange: #ff6a00;
    --dark: #222222;
    --gray-bg: #f4f4f4;
    --white: #ffffff;
    --border: #e0e0e0;
    --text: #333333;
    --text-muted: #999999;
    --star: #ffaa00;
    --footer-bg: #f8f8f8;
}
* { box-sizing: border-box; }
body { font-family: Arial, sans-serif; background: var(--gray-bg); color: var(--text); margin: 0; }
a { text-decoration: none; color: inherit; }

/* ========== TOP BAR ========== */
.baxin-topbar {
    background: var(--dark);
    color: #bbb;
    font-size: 11px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}
.baxin-topbar a { color: #bbb; margin-left: 12px; }
.baxin-topbar a:hover { color: #fff; }
.baxin-topbar .promo { color: #ffcc00; font-weight: 600; }

/* ========== MAIN RED HEADER ========== */
header.shadow-gray { box-shadow: none !important; }
header .flex.min-h-\[78px\] {
    background: var(--red) !important;
    border: none !important;
    min-height: 62px !important;
    padding: 0 20px !important;
    gap: 16px !important;
}
header .flex.min-h-\[78px\] a img { filter: brightness(0) invert(1); height: 30px; width: auto; }
header .flex.min-h-\[78px\] a,
header .flex.min-h-\[78px\] span,
header .flex.min-h-\[78px\] button { color: #fff !important; }

/* Search */
header .relative.w-full {
    display: flex !important;
    max-width: 580px !important;
    width: 100% !important;
    border-radius: 2px !important;
    overflow: hidden !important;
    border: none !important;
}
header input[type="text"],
header input[name="query"] {
    flex: 1 !important;
    height: 38px !important;
    border: none !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: var(--text) !important;
    background: #fff !important;
    outline: none !important;
    border-radius: 0 !important;
}
header button[type="submit"] {
    background: var(--orange) !important;
    color: #fff !important;
    border: none !important;
    padding: 0 22px !important;
    height: 38px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    border-radius: 0 !important;
}
header button[type="submit"]:hover { background: #e05e00 !important; }

/* Header icons */
header .flex.items-center.gap-x-9 span,
header .flex.items-center.gap-x-9 [class^="icon-"] { color: #fff !important; font-size: 22px !important; }
header span.absolute { background: #ffcc00 !important; color: #000 !important; font-weight: 700 !important; font-size: 10px !important; }

/* ========== CATEGORY NAV ========== */
.baxin-catnav {
    background: #fff;
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    height: 36px;
    font-size: 12px;
    overflow: hidden;
}
.baxin-catnav-all {
    background: var(--red);
    color: #fff !important;
    height: 36px;
    display: flex;
    align-items: center;
    padding: 0 14px;
    font-weight: 700;
    font-size: 12px;
    flex-shrink: 0;
    gap: 5px;
}
.baxin-catnav-all:hover { background: var(--red-dark); }
.baxin-catnav a {
    padding: 0 12px;
    height: 36px;
    display: flex;
    align-items: center;
    color: var(--text);
    font-size: 12px;
    border-right: 1px solid var(--border);
    white-space: nowrap;
}
.baxin-catnav a:hover,
.baxin-catnav a.active { color: var(--red); }
.baxin-catnav a.deal { color: var(--red); font-weight: 600; }

/* ========== HOMEPAGE WRAPPER ========== */
.baxin-page-wrap {
    max-width: 1260px;
    margin: 0 auto;
    padding: 10px 10px 0;
}

/* Hero area: sidebar + banner */
.baxin-hero-wrap {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

/* Left sidebar */
.baxin-sidebar {
    width: 192px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid var(--border);
    font-size: 12px;
    align-self: flex-start;
}
.baxin-sidebar-head {
    background: var(--red);
    color: #fff;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}
.baxin-sidebar ul { list-style: none; margin: 0; padding: 0; }
.baxin-sidebar ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 12px;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
    font-size: 12px;
    transition: all 0.15s;
}
.baxin-sidebar ul li a:hover { color: var(--red); background: #fff8f8; padding-left: 16px; }
.baxin-sidebar ul li a .chev { color: #ccc; font-size: 10px; }

/* Hero banner */
.baxin-hero-banner { flex: 1; min-width: 0; border-radius: 2px; overflow: hidden; }
.baxin-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ========== PRODUCT SECTIONS ========== */
.baxin-section {
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 10px;
    padding: 10px 12px 14px;
}
.baxin-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--red);
    padding-bottom: 8px;
    margin-bottom: 12px;
}
.baxin-section-head h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}
.baxin-section-head h2 span { color: var(--red); margin-right: 4px; }
.baxin-section-head .more {
    font-size: 11px;
    color: var(--text-muted);
    border: 1px solid var(--border);
    padding: 2px 8px;
    border-radius: 2px;
}
.baxin-section-head .more:hover { color: var(--red); border-color: var(--red); }

/* Flash deals timer */
.baxin-timer { display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--text-muted); }
.baxin-timer-box {
    background: var(--dark);
    color: #fff;
    padding: 1px 5px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* ========== PRODUCT CARDS ========== */
.product-flat-card,
[class*="product-card"] {
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 2px !important;
    transition: box-shadow 0.2s, border-color 0.2s !important;
    position: relative !important;
    overflow: hidden !important;
}
.product-flat-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important; border-color: #bbb !important; }

/* Discount badge */
.product-flat-card [class*="discount"],
.product-flat-card [class*="offer"] {
    background: var(--red) !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 4px !important;
    border-radius: 2px !important;
}
/* Price - dark like Banggood */
.product-flat-card [class*="price"]:not(del):not(s),
.product-flat-card .text-xl,
.product-flat-card span.font-medium {
    color: var(--text) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.product-flat-card del,
.product-flat-card s { color: var(--text-muted) !important; font-size: 11px !important; }
.product-flat-card [class*="percent"],
.product-flat-card [class*="off"] { color: var(--red) !important; font-size: 11px !important; }
.product-flat-card [class*="star"],
.product-flat-card [class*="rating"] { color: var(--star) !important; font-size: 11px !important; }
.product-flat-card h3,
.product-flat-card [class*="title"],
.product-flat-card p.font-medium {
    font-size: 12px !important;
    color: var(--text) !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}
/* Add to cart */
.product-flat-card button[class*="cart"] {
    background: var(--red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 2px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}
.product-flat-card button[class*="cart"]:hover { background: var(--red-dark) !important; }

/* ========== PRIMARY BUTTONS ========== */
button[class*="bg-navyBlue"],
a[class*="bg-navyBlue"] {
    background: var(--red) !important;
    color: #fff !important;
    border-radius: 2px !important;
}
button[class*="bg-navyBlue"]:hover,
a[class*="bg-navyBlue"]:hover { background: var(--red-dark) !important; }

/* ========== MAIN CONTENT ========== */
main#main { background: var(--gray-bg) !important; padding: 0 !important; }
main#main > * { max-width: none !important; margin: 0 !important; padding: 0 !important; }

/* Carousel sections */
main#main .px-\[60px\],
main#main [class*="px-60"],
main#main [class*="container"] {
    max-width: 1260px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
}

/* ========== FOOTER (LIGHT like Banggood) ========== */
footer,
footer.mt-9 {
    background: var(--footer-bg) !important;
    color: var(--text) !important;
    border-top: 1px solid var(--border) !important;
    margin-top: 16px !important;
}

/* Trust badges row */
.baxin-trust {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 18px 20px;
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.baxin-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text);
}
.baxin-trust-item .icon { font-size: 28px; color: var(--red); }
.baxin-trust-item strong { display: block; font-size: 12px; font-weight: 600; }
.baxin-trust-item span { color: var(--text-muted); font-size: 11px; }

/* Footer link columns */
.baxin-footer-cols {
    max-width: 1260px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.baxin-footer-col h4 { font-size: 13px; font-weight: 700; color: var(--text); margin: 0 0 12px; }
.baxin-footer-col ul { list-style: none; padding: 0; margin: 0; }
.baxin-footer-col li { margin-bottom: 6px; }
.baxin-footer-col li a { font-size: 12px; color: #666; }
.baxin-footer-col li a:hover { color: var(--red); }

/* Footer bottom bar */
.baxin-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 12px 20px;
    max-width: 1260px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}
.baxin-payment-icons { display: flex; gap: 8px; align-items: center; }
.baxin-payment-icons img { height: 20px; }

/* Hide original Bagisto footer internals */
footer.mt-9 > .flex { display: none !important; }

/* ========== MOBILE ========== */
@media (max-width: 1023px) {
    .baxin-topbar { display: none; }
    .baxin-hero-wrap { flex-direction: column; }
    .baxin-sidebar { width: 100%; }
    .baxin-footer-cols { grid-template-columns: repeat(2,1fr); }
    .baxin-trust { flex-wrap: wrap; gap: 12px; }
    header .flex.flex-wrap.gap-4 { background: var(--red) !important; }
    header .flex.flex-wrap.gap-4 * { color: #fff !important; }
    header .flex.flex-wrap.gap-4 input { color: var(--text) !important; background: #fff !important; }
}
