/* ==========================================================================
   FLEET DECAL DEPOT — STYLES
   Etsy-style shopping UX in the Fleet Decal Depot brand (black + orange).
   ========================================================================== */

:root{
  --orange:#ee5124;
  --orange-dark:#d63f16;
  --ink:#1a1a1a;
  --ink-soft:#4a4a4a;
  --muted:#6b6b6b;
  --line:#e6e6e6;
  --line-strong:#d0d0d0;
  --bg:#ffffff;
  --bg-soft:#f7f5f2;
  --bg-dark:#111214;
  --green:#2f7a3f;
  --star:#f0562e;
  --radius:12px;
  --radius-lg:18px;
  --shadow:0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --shadow-hover:0 2px 6px rgba(0,0,0,.10), 0 18px 40px rgba(0,0,0,.12);
  --maxw:1180px;
  --font:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:var(--font);
  color:var(--ink);
  background:var(--bg);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button{font-family:inherit;cursor:pointer}
h1,h2,h3,h4{margin:0 0 .4em;line-height:1.2}
.wrap{max-width:var(--maxw);margin:0 auto;padding:0 20px}

/* ---------- Top header bar ---------- */
.topbar{
  position:sticky;top:0;z-index:50;
  background:var(--bg-dark);color:#fff;
  border-bottom:3px solid var(--orange);
}
.topbar .wrap{display:flex;align-items:center;gap:18px;height:64px}
.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.3px}
.brand img{width:40px;height:40px;border-radius:50%;background:#fff;object-fit:cover}
.brand .bt{font-size:16px;line-height:1.05}
.brand .bt small{display:block;font-weight:600;font-size:10px;letter-spacing:2px;color:var(--orange);text-transform:uppercase}
.search{flex:1;display:flex;max-width:560px;margin:0 auto}
.search input{
  flex:1;border:none;border-radius:24px 0 0 24px;padding:11px 18px;font-size:14px;outline:none;
}
.search button{
  border:none;background:var(--orange);color:#fff;border-radius:0 24px 24px 0;padding:0 18px;font-size:16px;
}
.search button:hover{background:var(--orange-dark)}
.topnav{display:flex;align-items:center;gap:18px;margin-left:auto}
.topnav a{font-size:14px;font-weight:600;color:#eee}
.topnav a:hover{color:#fff}
.cart-btn{position:relative;display:flex;align-items:center;gap:7px;background:var(--orange);color:#fff;padding:9px 16px;border-radius:24px;font-weight:700;font-size:14px}
.cart-btn:hover{background:var(--orange-dark)}
.cart-count{
  background:#fff;color:var(--ink);border-radius:20px;min-width:20px;height:20px;
  display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;padding:0 5px;
}

/* ---------- Banner ---------- */
.banner{background:#000}
.banner img{width:100%;max-height:300px;object-fit:cover;margin:0 auto}

/* ---------- Shop identity ---------- */
.shopbar{border-bottom:1px solid var(--line);background:var(--bg)}
.shopbar .wrap{display:flex;align-items:center;gap:18px;padding:18px 20px;flex-wrap:wrap}
.shop-logo{width:76px;height:76px;border-radius:16px;border:1px solid var(--line);object-fit:cover;background:#000}
.shop-id h1{font-size:26px;margin:0}
.shop-meta{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:14px;margin-top:4px;flex-wrap:wrap}
.shop-meta .dot{width:3px;height:3px;border-radius:50%;background:var(--line-strong)}
.shop-actions{margin-left:auto;display:flex;gap:10px}
.stars{color:var(--star);letter-spacing:1px;font-size:14px}
.badge-new{background:var(--bg-soft);border:1px solid var(--line);border-radius:20px;padding:2px 10px;font-size:12px;font-weight:700;color:var(--ink-soft)}

/* ---------- Feature strip ---------- */
.features{background:var(--bg-dark);color:#fff}
.features .wrap{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;padding:14px 20px}
.feature{display:flex;align-items:center;gap:10px;font-size:13px;font-weight:600;color:#e9e9e9}
.feature .ico{width:26px;height:26px;flex:0 0 26px;color:var(--orange)}
.feature .ico svg{width:100%;height:100%}

/* ---------- Announcement ---------- */
.announce{background:var(--bg-soft);border-bottom:1px solid var(--line)}
.announce .wrap{padding:14px 20px;font-size:14px;color:var(--ink-soft)}
.announce b{color:var(--ink)}

/* ---------- Section tabs ---------- */
.sectionbar{position:sticky;top:64px;z-index:30;background:var(--bg);border-bottom:1px solid var(--line)}
.sectionbar .wrap{display:flex;align-items:center;gap:6px;padding:10px 20px;overflow-x:auto}
.tab{
  border:none;background:none;padding:8px 16px;border-radius:22px;font-size:14px;font-weight:600;color:var(--ink-soft);white-space:nowrap;
}
.tab:hover{background:var(--bg-soft)}
.tab.active{background:var(--ink);color:#fff}
.tab .n{opacity:.6;font-weight:700;margin-left:4px}

/* ---------- Product grid ---------- */
.section-title{padding:26px 0 6px;font-size:20px}
.grid{
  display:grid;gap:22px;padding:18px 0 40px;
  grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
}
.card{
  border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;background:#fff;
  transition:box-shadow .18s ease, transform .18s ease;display:flex;flex-direction:column;
}
.card:hover{box-shadow:var(--shadow-hover);transform:translateY(-2px)}
.card .thumb{position:relative;aspect-ratio:1/1;background:var(--bg-soft);overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.card:hover .thumb img{transform:scale(1.04)}
.card .fav{
  position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 4px rgba(0,0,0,.18);font-size:16px;color:#333;
}
.card .fav:hover{background:#fff;color:var(--orange)}
.card .fav.on{color:var(--orange)}
.card .body{padding:12px 14px 16px;display:flex;flex-direction:column;gap:6px;flex:1}
.card .name{font-size:14px;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:38px}
.card .row{display:flex;align-items:baseline;gap:8px;margin-top:auto}
.price{font-weight:800;font-size:17px;color:var(--ink)}
.price .plus{color:var(--muted);font-weight:700}
.ship-free{color:var(--green);font-size:12px;font-weight:700}
.card .tagline{font-size:12px;color:var(--muted)}

/* ---------- Breadcrumb ---------- */
.crumb{padding:16px 0 0;font-size:13px;color:var(--muted)}
.crumb a:hover{color:var(--orange);text-decoration:underline}

/* ---------- Product detail ---------- */
.pdp{display:grid;grid-template-columns:1.15fr .85fr;gap:40px;padding:18px 0 50px}
.gallery{display:grid;grid-template-columns:72px 1fr;gap:14px;align-items:start}
.thumbs{display:flex;flex-direction:column;gap:10px}
.thumbs button{
  border:2px solid var(--line);border-radius:10px;overflow:hidden;padding:0;background:#fff;aspect-ratio:1/1;
}
.thumbs button.active{border-color:var(--ink)}
.thumbs img{width:100%;height:100%;object-fit:cover}
.stage{
  border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden;background:var(--bg-soft);
  aspect-ratio:1/1;position:relative;
}
.stage img{width:100%;height:100%;object-fit:cover}
.stage .nav{
  position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;border-radius:50%;
  background:rgba(255,255,255,.92);border:none;font-size:18px;display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 6px rgba(0,0,0,.2);
}
.stage .nav:hover{background:#fff}
.stage .prev{left:12px}.stage .next{right:12px}

.buybox h1{font-size:22px;line-height:1.28}
.buybox .sub{color:var(--muted);font-size:14px;margin:-2px 0 12px}
.price-lg{font-size:30px;font-weight:800;margin:6px 0 2px}
.price-lg .plus{color:var(--muted)}
.ship-line{color:var(--green);font-weight:700;font-size:14px;margin-bottom:2px}
.meta-line{color:var(--muted);font-size:13px}
.protect{display:flex;align-items:center;gap:7px;color:var(--ink-soft);font-size:13px;margin:10px 0}
.protect svg{width:18px;height:18px;color:var(--orange)}

.field{margin:16px 0}
.field label{display:block;font-weight:700;font-size:14px;margin-bottom:6px}
.field label .req{color:var(--orange)}
.field .hint{font-weight:400;color:var(--muted);font-size:12px;margin-left:2px}
select,.txt,textarea{
  width:100%;border:1px solid var(--line-strong);border-radius:10px;padding:12px 14px;font-size:15px;
  background:#fff;color:var(--ink);outline:none;font-family:inherit;
}
select:focus,.txt:focus,textarea:focus{border-color:var(--ink)}
select.err,textarea.err,.txt.err{border-color:var(--orange);background:#fff7f4}
textarea{resize:vertical;min-height:76px}
.count{font-size:12px;color:var(--muted);text-align:right;margin-top:4px}

/* swatches */
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.swatch{
  display:flex;flex-direction:column;align-items:center;gap:5px;border:none;background:none;padding:0;font-size:12px;color:var(--ink-soft);
}
.swatch .chip{
  width:40px;height:40px;border-radius:50%;border:2px solid var(--line-strong);
  box-shadow:inset 0 0 0 2px #fff;
}
.swatch.active .chip{border-color:var(--ink);box-shadow:inset 0 0 0 2px #fff, 0 0 0 2px var(--ink)}
.swatch.active{font-weight:800;color:var(--ink)}

.qtyrow{display:flex;gap:12px;align-items:end}
.qtyrow .field{margin:0;width:120px}

.actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}
.btn{
  display:inline-block;border:none;border-radius:26px;padding:15px 22px;font-size:16px;font-weight:800;
  text-align:center;transition:.15s;line-height:1.2;
}
.btn-primary{background:var(--ink);color:#fff}
.btn-primary:hover{background:#000}
.btn-orange{background:var(--orange);color:#fff}
.btn-orange:hover{background:var(--orange-dark)}
.btn-outline{background:#fff;color:var(--ink);border:2px solid var(--ink)}
.btn-outline:hover{background:var(--bg-soft)}
.btn-block{display:block;width:100%}
.btn[disabled]{opacity:.45;cursor:not-allowed}

.highlights{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:22px 0;padding:16px;background:var(--bg-soft);border-radius:var(--radius)}
.highlights div{display:flex;gap:9px;font-size:13px;color:var(--ink-soft);align-items:flex-start}
.highlights svg{width:16px;height:16px;color:var(--orange);flex:0 0 16px;margin-top:2px}

/* description accordion */
.accordion{border-top:1px solid var(--line);margin-top:14px}
.acc-item{border-bottom:1px solid var(--line)}
.acc-head{width:100%;background:none;border:none;padding:18px 2px;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:800;text-align:left}
.acc-head .pm{color:var(--muted);font-size:22px;font-weight:400}
.acc-body{padding:0 2px 20px;color:var(--ink-soft);font-size:15px;display:none}
.acc-item.open .acc-body{display:block}
.acc-body h4{margin-top:16px;font-size:14px;text-transform:uppercase;letter-spacing:.6px;color:var(--ink)}
.acc-body ul,.acc-body ol{margin:8px 0 8px;padding-left:20px}
.acc-body li{margin:4px 0}
.acc-body .fine{font-size:12px;color:var(--muted)}

/* ---------- Cart ---------- */
.page-h{padding:28px 0 8px;font-size:26px}
.cart-layout{display:grid;grid-template-columns:1fr 340px;gap:34px;padding:14px 0 60px;align-items:start}
.cart-list{display:flex;flex-direction:column;gap:0}
.cart-item{display:grid;grid-template-columns:104px 1fr auto;gap:16px;padding:20px 0;border-top:1px solid var(--line)}
.cart-item:last-child{border-bottom:1px solid var(--line)}
.cart-item img{width:104px;height:104px;object-fit:cover;border-radius:10px;border:1px solid var(--line)}
.ci-title{font-weight:700;font-size:15px;line-height:1.35}
.ci-opts{font-size:13px;color:var(--muted);margin-top:5px}
.ci-opts .k{color:var(--ink-soft);font-weight:600}
.ci-perso{font-size:13px;margin-top:5px;color:var(--ink-soft)}
.ci-perso b{background:var(--bg-soft);border:1px dashed var(--line-strong);border-radius:6px;padding:1px 7px;font-family:ui-monospace,Menlo,monospace}
.ci-remove{background:none;border:none;color:var(--muted);font-size:13px;text-decoration:underline;padding:0;margin-top:8px}
.ci-remove:hover{color:var(--orange)}
.ci-right{text-align:right;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.ci-price{font-weight:800;font-size:16px}
.ci-qty{display:flex;align-items:center;border:1px solid var(--line-strong);border-radius:20px;overflow:hidden}
.ci-qty button{background:none;border:none;width:32px;height:32px;font-size:16px;color:var(--ink)}
.ci-qty button:hover{background:var(--bg-soft)}
.ci-qty span{min-width:28px;text-align:center;font-weight:700;font-size:14px}

.summary{border:1px solid var(--line);border-radius:var(--radius-lg);padding:22px;box-shadow:var(--shadow);position:sticky;top:88px}
.summary h3{font-size:18px;margin-bottom:14px}
.sum-row{display:flex;justify-content:space-between;font-size:14px;color:var(--ink-soft);margin:9px 0}
.sum-row.total{border-top:1px solid var(--line);margin-top:14px;padding-top:14px;font-size:20px;font-weight:800;color:var(--ink)}
.empty{text-align:center;padding:70px 20px;color:var(--muted)}
.empty svg{width:54px;height:54px;color:var(--line-strong);margin-bottom:14px}

/* ---------- Checkout ---------- */
.co-layout{display:grid;grid-template-columns:1fr 360px;gap:34px;padding:14px 0 60px;align-items:start}
.co-card{border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;margin-bottom:20px}
.co-card h3{font-size:17px;margin-bottom:14px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form-grid .full{grid-column:1/-1}
.co-item{display:flex;gap:12px;padding:12px 0;border-top:1px solid var(--line);font-size:13px}
.co-item:first-child{border-top:none}
.co-item img{width:56px;height:56px;border-radius:8px;object-fit:cover;border:1px solid var(--line)}
.co-note{font-size:12px;color:var(--muted);margin-top:10px}
.pill-info{background:#fff7f4;border:1px solid #f6d6c8;border-radius:10px;padding:12px 14px;font-size:13px;color:var(--ink-soft);margin-bottom:16px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(30px);
  background:var(--ink);color:#fff;padding:14px 22px;border-radius:30px;font-weight:700;font-size:14px;
  box-shadow:0 10px 40px rgba(0,0,0,.3);opacity:0;pointer-events:none;transition:.28s;z-index:100;
  display:flex;align-items:center;gap:10px;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.toast svg{width:18px;height:18px;color:#6ee787}

/* ---------- Footer ---------- */
footer{background:var(--bg-dark);color:#cfcfcf;margin-top:20px}
footer .wrap{padding:34px 20px;display:flex;flex-wrap:wrap;gap:30px;justify-content:space-between}
footer h4{color:#fff;font-size:14px;letter-spacing:.4px}
footer a{color:#cfcfcf;font-size:13px;display:block;margin:6px 0}
footer a:hover{color:var(--orange)}
.foot-bottom{border-top:1px solid #2a2c2f}
.foot-bottom .wrap{padding:16px 20px;font-size:12px;color:#8a8d90;justify-content:space-between}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .pdp{grid-template-columns:1fr;gap:24px}
  .cart-layout,.co-layout{grid-template-columns:1fr}
  .summary{position:static}
  .topnav a:not(.cart-btn){display:none}
  .search{order:3;max-width:none;flex-basis:100%}
  .topbar .wrap{flex-wrap:wrap;height:auto;padding:10px 20px;gap:10px}
  .sectionbar{top:0}
}
@media (max-width:560px){
  .gallery{grid-template-columns:1fr}
  .thumbs{flex-direction:row;order:2;overflow-x:auto}
  .thumbs button{width:64px;flex:0 0 64px}
  .highlights{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
  .brand .bt small{display:none}
}
