
:root{--bg:#0b0b1a;--surface:#13132b;--surface2:#1c1c3a;--accent:#a8b8d0;--highlight:#e0e8f0;--price:#5bc8ff;--btn:#1a3a6e;--btn-hover:#2a5aae;--green:#1a6e3a;--green-hover:#1e8a48;--border:#2a2a4a;--text:#dde4ee;--sub:#8898b0;--danger:#8b1a1a;}
*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--bg);color:var(--text);min-height:100vh;}
a{color:inherit;text-decoration:none;}

/* Header */
header{background:var(--surface);border-bottom:1px solid var(--border);padding:.9rem 1.5rem;display:flex;align-items:center;gap:1rem;position:sticky;top:0;z-index:100;}
.logo{width:52px;height:52px;border-radius:50%;object-fit:cover;border:2px solid var(--accent);}
.store-name{font-size:1.3rem;font-weight:700;color:var(--highlight);letter-spacing:.03em;}
.store-sub{font-size:.8rem;color:var(--sub);}
.header-right{margin-left:auto;display:flex;align-items:center;gap:.75rem;}
.header-search input{background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:.45rem .8rem;border-radius:6px;width:240px;font-size:.9rem;}
.header-search input::placeholder{color:var(--sub);}
.cart-icon{position:relative;background:var(--surface2);border:1px solid var(--border);padding:.45rem .75rem;border-radius:6px;cursor:pointer;font-size:.95rem;display:flex;align-items:center;gap:.35rem;white-space:nowrap;}
.cart-icon:hover{border-color:var(--accent);}
#cart-badge{background:var(--price);color:#000;border-radius:99px;padding:.05rem .45rem;font-size:.72rem;font-weight:700;display:none;}

/* Layout */
.layout{display:flex;min-height:calc(100vh - 72px);}

/* Sidebar */
aside{width:260px;min-width:260px;background:var(--surface);border-right:1px solid var(--border);padding:1rem;overflow-y:auto;max-height:calc(100vh - 72px);position:sticky;top:72px;}
.all-btn{background:var(--btn);color:#fff;padding:.55rem .9rem;border-radius:6px;cursor:pointer;font-weight:600;font-size:.9rem;display:flex;justify-content:space-between;margin-bottom:.8rem;}
.all-btn.active,.all-btn:hover{background:var(--btn-hover);}
.badge{background:rgba(255,255,255,.2);border-radius:99px;padding:.1rem .5rem;font-size:.78rem;}
.make-group{margin-bottom:.5rem;}
.make-hdr{background:var(--surface2);border:1px solid var(--border);padding:.5rem .8rem;border-radius:5px;cursor:pointer;font-weight:600;font-size:.88rem;color:var(--highlight);display:flex;justify-content:space-between;align-items:center;}
.make-hdr:hover{border-color:var(--accent);}
.make-body{display:none;padding:.4rem 0 0 .5rem;}
.make-body.open{display:block;}
.chassis-group{margin-bottom:.3rem;}
.chassis-hdr{padding:.35rem .6rem;border-radius:4px;cursor:pointer;font-size:.83rem;color:var(--accent);display:flex;justify-content:space-between;}
.chassis-hdr:hover{background:var(--surface2);}
.chassis-body{display:none;padding:.2rem 0 .2rem .8rem;}
.chassis-body.open{display:flex;flex-wrap:wrap;gap:.2rem;}
.yr-label{display:inline-flex;align-items:center;gap:.25rem;font-size:.78rem;color:var(--sub);cursor:pointer;padding:.15rem .3rem;border-radius:3px;}
.yr-label:hover{color:var(--text);}
.yr-label input{accent-color:var(--price);}
.chevron{transition:transform .2s;display:inline-block;}
.open~* .chevron,.make-body.open{}
.sidebar-section-hdr{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--sub);padding:.4rem .2rem .3rem;border-bottom:1px solid var(--border);margin-bottom:.5rem;}
.clear-btn{display:block;width:100%;margin-top:.8rem;background:transparent;border:1px solid var(--border);color:var(--sub);padding:.4rem;border-radius:5px;cursor:pointer;font-size:.82rem;text-align:center;}
.clear-btn:hover{border-color:var(--accent);color:var(--text);}

/* Main */
main{flex:1;padding:1.2rem 1.5rem;overflow-x:hidden;}
.results-bar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;font-size:.88rem;color:var(--sub);}
.results-bar select{background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:.3rem .6rem;border-radius:5px;font-size:.85rem;}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:1.2rem;}

/* Cards */
.card{background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden;transition:transform .15s,border-color .15s;display:flex;flex-direction:column;}
.card:hover{transform:translateY(-3px);border-color:var(--accent);}
.card-img-wrap{width:100%;aspect-ratio:1;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;}
.card img{width:100%;height:100%;object-fit:contain;padding:6px;}
.card-body{padding:.85rem;display:flex;flex-direction:column;flex:1;}
.card-title{font-size:.85rem;font-weight:600;margin-bottom:.4rem;line-height:1.35;color:var(--highlight);flex:1;}
.card-price{font-size:1.15rem;color:var(--price);font-weight:700;margin-bottom:.2rem;}
.card-cond{font-size:.75rem;color:var(--sub);margin-bottom:.75rem;}
.card-actions{display:flex;flex-direction:column;gap:.4rem;}
.btn{display:inline-block;padding:.38rem .75rem;border-radius:5px;font-size:.8rem;font-weight:600;cursor:pointer;border:none;text-align:center;transition:background .15s;}
.btn-details{background:var(--surface2);color:var(--accent);border:1px solid var(--border);}
.btn-details:hover{border-color:var(--accent);}
.btn-cart{background:var(--btn);color:#fff;}
.btn-cart:hover{background:var(--btn-hover);}
.btn-buynow{background:var(--green);color:#fff;}
.btn-buynow:hover{background:var(--green-hover);}
.btn-danger{background:var(--danger);color:#fff;}
.btn-danger:hover{background:#a82020;}
.btn-full{width:100%;}

/* Detail page */
.detail-wrap{max-width:1020px;margin:2rem auto;padding:0 1rem 2rem;}
.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:2rem;background:var(--surface);border:1px solid var(--border);border-radius:8px;overflow:hidden;}
.detail-carousel-col{background:var(--surface2);padding:1.25rem;display:flex;flex-direction:column;gap:.75rem;}
.detail-info{padding:1.5rem;}
.detail-info h1{font-size:1.3rem;color:var(--highlight);margin-bottom:.5rem;line-height:1.35;}
.detail-price{font-size:2.2rem;color:var(--price);font-weight:700;margin:.4rem 0 .25rem;}
.detail-cond{color:var(--sub);font-size:.9rem;margin-bottom:.6rem;}
.detail-buy-box{background:var(--surface2);border:1px solid var(--border);border-radius:8px;padding:1.2rem;margin-bottom:1.5rem;}
.detail-buy-box .detail-price{font-size:1.8rem;margin-bottom:1rem;}
.buy-actions{display:flex;flex-direction:column;gap:.6rem;}
.back-link{display:inline-block;margin-bottom:1.2rem;color:var(--sub);font-size:.88rem;}
.back-link:hover{color:var(--text);}
/* Description sits full-width below the grid */
.detail-desc-full{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.75rem 2rem;margin-top:1.5rem;line-height:1.75;color:var(--text);max-width:100%;}
.detail-desc-full img{max-width:100%;border-radius:4px;}
/* Carousel — eBay-style: vertical thumbs left, large image right */
.carousel-layout{display:flex;gap:8px;align-items:flex-start;}
.carousel-thumb-strip{display:flex;flex-direction:column;gap:6px;width:72px;max-height:420px;overflow-y:auto;flex-shrink:0;}
.carousel-thumb-strip::-webkit-scrollbar{width:3px;}
.carousel-thumb-strip::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px;}
.c-thumb{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:4px;border:2px solid #e0e0e0;cursor:pointer;transition:border-color .12s;flex-shrink:0;}
.c-thumb.active{border-color:#111;border-width:2px;}
.c-thumb:hover{border-color:#555;}
.carousel-main-area{position:relative;flex:1;background:#fff;border-radius:6px;overflow:hidden;aspect-ratio:1;display:flex;align-items:center;justify-content:center;max-height:420px;}
.carousel-main{width:100%;height:100%;object-fit:contain;display:block;}
.carousel-arrow{position:absolute;bottom:14px;background:rgba(255,255,255,.92);border:1px solid #ccc;border-radius:50%;width:42px;height:42px;font-size:1.5rem;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:background .12s;z-index:2;color:#222;}
.carousel-arrow:hover{background:#fff;}
.carousel-prev{left:12px;}
.carousel-next{right:12px;}
.carousel-counter{font-size:.75rem;color:var(--sub);text-align:right;margin-top:.35rem;}
@media(max-width:750px){.detail-grid{grid-template-columns:1fr;}.detail-desc-full{padding:1.2rem;}}

/* Cart page */
.page-wrap{max-width:900px;margin:2rem auto;padding:0 1rem;}
.page-title{font-size:1.6rem;font-weight:700;color:var(--highlight);margin-bottom:1.5rem;}
.cart-table{width:100%;border-collapse:collapse;}
.cart-table th{text-align:left;padding:.6rem 1rem;font-size:.82rem;color:var(--sub);border-bottom:1px solid var(--border);}
.cart-table td{padding:.9rem 1rem;border-bottom:1px solid var(--border);vertical-align:middle;}
.cart-thumb{width:64px;height:64px;object-fit:contain;background:#fff;border-radius:4px;border:1px solid var(--border);}
.cart-item-title{font-size:.88rem;color:var(--highlight);font-weight:600;}
.cart-item-cond{font-size:.75rem;color:var(--sub);}
.qty-input{width:54px;background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:.3rem .5rem;border-radius:4px;text-align:center;font-size:.9rem;}
.cart-summary{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.5rem;margin-top:1.5rem;max-width:360px;margin-left:auto;}
.cart-summary h3{font-size:1.1rem;color:var(--highlight);margin-bottom:1rem;}
.summary-row{display:flex;justify-content:space-between;margin-bottom:.6rem;font-size:.9rem;color:var(--sub);}
.summary-total{display:flex;justify-content:space-between;font-size:1.2rem;font-weight:700;color:var(--highlight);margin-top:.8rem;padding-top:.8rem;border-top:1px solid var(--border);}
.empty-cart{text-align:center;padding:4rem;color:var(--sub);font-size:1rem;}

/* Checkout page */
.checkout-grid{display:grid;grid-template-columns:1fr 380px;gap:2rem;}
.form-section{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.5rem;margin-bottom:1.2rem;}
.form-section h3{font-size:1rem;font-weight:700;color:var(--highlight);margin-bottom:1.2rem;padding-bottom:.6rem;border-bottom:1px solid var(--border);}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:.9rem;}
.form-row.full{grid-template-columns:1fr;}
.form-group{display:flex;flex-direction:column;gap:.3rem;}
.form-group label{font-size:.82rem;color:var(--sub);}
.form-group input,.form-group select{background:var(--surface2);border:1px solid var(--border);color:var(--text);padding:.5rem .75rem;border-radius:5px;font-size:.9rem;}
.form-group input:focus,.form-group select:focus{outline:none;border-color:var(--accent);}
.form-group input::placeholder{color:var(--sub);}
.order-summary-box{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:1.5rem;position:sticky;top:88px;}
.order-summary-box h3{font-size:1rem;font-weight:700;color:var(--highlight);margin-bottom:1rem;padding-bottom:.6rem;border-bottom:1px solid var(--border);}
.order-item{display:flex;gap:.75rem;margin-bottom:.9rem;align-items:center;}
.order-item img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:4px;border:1px solid var(--border);}
.order-item-info{flex:1;}
.order-item-title{font-size:.8rem;color:var(--highlight);line-height:1.3;}
.order-item-price{font-size:.85rem;color:var(--price);font-weight:700;}
.payment-placeholder{background:var(--surface2);border:2px dashed var(--border);border-radius:8px;padding:2rem;text-align:center;color:var(--sub);font-size:.88rem;margin-bottom:1rem;}
.payment-placeholder strong{display:block;color:var(--accent);margin-bottom:.4rem;font-size:1rem;}
@media(max-width:750px){.checkout-grid{grid-template-columns:1fr;}.form-row{grid-template-columns:1fr;}}

/* Confirmation */
.confirm-box{max-width:560px;margin:4rem auto;text-align:center;background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:3rem 2rem;}
.confirm-icon{font-size:3rem;margin-bottom:1rem;}
.confirm-box h1{font-size:1.6rem;color:var(--highlight);margin-bottom:.75rem;}
.confirm-box p{color:var(--sub);line-height:1.6;margin-bottom:1.5rem;}
.order-number{font-size:1.1rem;color:var(--price);font-weight:700;margin-bottom:1.5rem;}

/* Pricing & discount */
.price-stack{display:flex;flex-direction:column;gap:.05rem;}
.orig-price{font-size:.8rem;color:var(--sub);text-decoration:line-through;font-weight:400;}
.card-discount-badge{font-size:.7rem;color:#7ecfb0;font-weight:600;margin-bottom:.3rem;letter-spacing:.02em;}
.detail-discount-badge{font-size:.82rem;color:#7ecfb0;font-weight:600;margin:.3rem 0 .7rem;}
.detail-shipping{font-size:.88rem;color:#5bc8ff;font-weight:600;margin-bottom:1rem;}
/* eBay section on detail page */
.ebay-section{margin-top:1.1rem;border-top:2px dashed var(--border);padding-top:1rem;}
.ebay-section-label{font-size:.85rem;color:var(--sub);text-align:center;margin-bottom:.65rem;}
.ebay-full-price{color:#e05555;text-decoration:line-through;font-weight:700;font-size:.95rem;}
.btn-ebay{display:block;width:100%;background:#FFD200;color:#111;border:none;font-size:1rem;font-weight:800;padding:.8rem 1rem;border-radius:6px;text-align:center;cursor:pointer;letter-spacing:.01em;box-shadow:0 3px 12px rgba(255,210,0,.35);transition:background .15s,box-shadow .15s,transform .1s;}
.btn-ebay:hover{background:#FFC400;box-shadow:0 5px 18px rgba(255,210,0,.5);transform:translateY(-1px);}

footer{text-align:center;padding:2rem;color:var(--sub);font-size:.82rem;border-top:1px solid var(--border);margin-top:2rem;}

/* Nav links */
.nav-link{color:var(--sub);font-size:.88rem;padding:.3rem .5rem;border-radius:4px;}
.nav-link:hover{color:var(--highlight);}

/* Hero */
.hero{background:linear-gradient(135deg,#07071a 0%,#0f1d3a 60%,#1a2a4a 100%);border-bottom:1px solid var(--border);padding:5rem 1.5rem;}
.hero-inner{max-width:680px;margin:0 auto;text-align:center;}
.hero-title{font-size:2.6rem;font-weight:900;color:#fff;margin-bottom:.75rem;line-height:1.15;letter-spacing:-.02em;}
.hero-sub{font-size:1.05rem;color:var(--sub);margin-bottom:2rem;line-height:1.6;}

/* Home layout */
.home-wrap{max-width:1260px;margin:0 auto;padding:2.5rem 1.5rem;}
.home-section{margin-bottom:3.5rem;}
.section-title{font-size:1.35rem;font-weight:700;color:var(--highlight);}
.section-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:1.2rem;}
.section-title-with-logo{display:flex;align-items:center;gap:.75rem;}
.section-logo{height:28px;width:auto;object-fit:contain;filter:brightness(0) invert(1);opacity:.85;}
.see-all-link{font-size:.9rem;color:var(--price);white-space:nowrap;}
.see-all-link:hover{text-decoration:underline;}

/* Logo button strip */
.logo-btn-strip{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;padding:.5rem 0;}
.logo-btn{display:flex;flex-direction:column;align-items:center;gap:.7rem;background:var(--surface);border:2px solid var(--border);border-radius:14px;padding:1.8rem 2.5rem;min-width:190px;transition:border-color .2s,transform .2s,background .2s;text-decoration:none;}
.logo-btn:hover{border-color:var(--accent);transform:translateY(-5px);background:var(--surface2);}
.logo-svg{display:flex;align-items:center;justify-content:center;color:var(--highlight);transition:color .2s;}
.logo-svg svg{width:80px;height:50px;}
.logo-btn:hover .logo-svg{color:#fff;}
.logo-btn>span:not(.logo-svg){font-size:.92rem;font-weight:700;color:var(--highlight);}
.logo-btn small{font-size:.76rem;color:var(--sub);}

/* Shop by make sections */
.make-sections-grid{display:flex;flex-direction:column;gap:1rem;}
.make-section{background:var(--surface);border:1px solid var(--border);border-radius:10px;padding:1.3rem 1.5rem;transition:border-color .15s;}
.make-section-header{display:flex;align-items:center;gap:.9rem;margin-bottom:1rem;}
.make-section-svg{display:flex;align-items:center;color:var(--accent);}
.make-section-svg svg{width:48px;height:30px;}
.make-section-name{font-size:1.05rem;font-weight:700;color:var(--highlight);flex:1;}
.make-shop-btn{background:var(--btn);color:#fff;padding:.38rem .85rem;border-radius:6px;font-size:.82rem;font-weight:600;white-space:nowrap;}
.make-shop-btn:hover{background:var(--btn-hover);}
.pills-group-label{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.07em;color:var(--sub);margin-bottom:.4rem;}
.chassis-pills{display:flex;flex-wrap:wrap;gap:.45rem;}
.chassis-pill{background:var(--surface2);border:1px solid var(--border);color:var(--accent);padding:.28rem .7rem;border-radius:99px;font-size:.78rem;transition:border-color .15s,color .15s,background .15s;}
.chassis-pill:hover{border-color:var(--accent);color:var(--highlight);background:#1e2a3a;}
.part-pill{color:#7ecfb0;border-color:#1e3a30;}
.part-pill:hover{border-color:#7ecfb0;color:var(--highlight);background:#1a3a2e;}

/* Horizontal scrolling listing rows */
.listing-row-section{margin-bottom:3rem;}
.section-svg{display:flex;align-items:center;color:var(--accent);}
.section-svg svg{width:42px;height:26px;}
.listing-scroll{display:flex;gap:1rem;overflow-x:auto;padding-bottom:1rem;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;}
.listing-scroll::-webkit-scrollbar{height:5px;}
.listing-scroll::-webkit-scrollbar-track{background:var(--surface2);border-radius:99px;}
.listing-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:99px;}
.listing-scroll .card{min-width:210px;max-width:210px;flex-shrink:0;scroll-snap-align:start;}

@media(max-width:700px){aside{display:none;}.hero-title{font-size:1.8rem;}.logo-btn{min-width:130px;padding:1.2rem 1.5rem;}.logo-svg svg{width:55px;height:36px;}.make-section-header{flex-wrap:wrap;}.make-shop-btn{margin-left:0;}}
