/* =====================================================================
   AxoBilling — Thème boutique (storefront) « default »
   Fond NOIR / primaire BLANC (accent surchargé par la boutique).
   ===================================================================== */
:root {
  --bg: #0a0a0a; --bg-1: #101010; --bg-2: #161616; --bg-3: #1c1c1c;
  --line: #262626; --line-2: #333; --text: #f5f5f5; --text-2: #a3a3a3; --text-3: #6b6b6b;
  --accent: #ffffff; --accent-ink: #000000;
  --radius: 14px; --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
.axo-icon { vertical-align: middle; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.announce { background: var(--accent); color: var(--accent-ink); text-align: center; padding: 9px 16px; font-size: 14px; font-weight: 600; }

.store-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(10,10,10,.9); backdrop-filter: blur(10px); z-index: 30; }
.store-header .inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.store-brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; color: #fff; }
.store-brand img { height: 34px; border-radius: 7px; }
.store-nav { display: flex; align-items: center; gap: 22px; }
.store-nav a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.store-nav a:hover, .store-nav a.active { color: var(--text); }
.cart-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; }
.cart-btn .count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }

.hero-banner { padding: 60px 0; border-bottom: 1px solid var(--line); text-align: center; }
.hero-banner h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -1px; margin: 0 0 12px; color: #fff; }
.hero-banner p { color: var(--text-2); font-size: 18px; margin: 0; max-width: 600px; margin: 0 auto; }
.hero-banner.with-img { background-size: cover; background-position: center; position: relative; }

.section { padding: 44px 0; }
.section h2 { font-size: 24px; letter-spacing: -.5px; margin: 0 0 22px; }
.cat-title { display: flex; align-items: baseline; gap: 12px; margin: 34px 0 18px; }
.cat-title h2 { margin: 0; }
.cat-title span { color: var(--text-3); font-size: 14px; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.products.list { grid-template-columns: 1fr; }
.product {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s;
}
.product:hover { border-color: var(--line-2); transform: translateY(-2px); }
.product .thumb { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--bg-3); display: grid; place-items: center; color: var(--text-3); }
.product .pbody { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product h3 { margin: 0; font-size: 16px; color: #fff; }
.product .desc { color: var(--text-2); font-size: 13.5px; flex: 1; }
.product .prow { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; }
.product .price { font-size: 20px; font-weight: 750; color: #fff; }
.product .price .old { font-size: 14px; color: var(--text-3); text-decoration: line-through; margin-right: 6px; font-weight: 400; }
.product .sub { font-size: 12px; color: var(--text-3); font-weight: 400; }
.badge-sub { font-size: 11px; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; color: var(--text-2); }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 10px 18px; border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 600; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); cursor: pointer; }
.btn:hover { background: var(--bg-3); }
.btn-accent { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-accent:hover { opacity: .9; }
.btn-block { width: 100%; }
.btn-lg { padding: 13px 22px; font-size: 15px; }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px 0; }
.pd .pimg { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 16/10; object-fit: cover; background: var(--bg-3); }
.pd h1 { font-size: 30px; letter-spacing: -.5px; margin: 0 0 10px; }
.pd .price { font-size: 30px; font-weight: 750; margin: 14px 0; }
.pd .desc { color: var(--text-2); white-space: pre-line; }

/* Cart / checkout */
.panel { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.line { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: none; }
.totals { margin-top: 16px; }
.totals .row { display: flex; justify-content: space-between; padding: 6px 0; color: var(--text-2); }
.totals .row.total { color: #fff; font-size: 20px; font-weight: 750; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); color: var(--text); font-size: 15px; font-family: inherit; }
.field input:focus, .field select:focus { outline: none; border-color: #5a5a5a; }
.pay-methods { display: flex; flex-direction: column; gap: 10px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.pay-opt:hover { border-color: #5a5a5a; }
.pay-opt input { width: auto; }

.store-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--text-3); font-size: 13.5px; margin-top: 40px; }
.store-footer .inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.powered { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); }

.notice { padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); margin-bottom: 18px; }
.notice.err { border-color: #6d2b2b; background: #201414; color: #d99a9a; }
.notice.ok { border-color: #2f5d45; background: #14201a; color: #9fd4b6; }

.maint { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.maint .box { max-width: 480px; }
.maint h1 { font-size: 30px; color: #fff; }

.empty-store { text-align: center; padding: 70px 20px; color: var(--text-2); }

@media (max-width: 820px) {
  .products { grid-template-columns: 1fr 1fr; }
  .pd { grid-template-columns: 1fr; }
  .store-nav { gap: 14px; }
}
@media (max-width: 540px) { .products { grid-template-columns: 1fr; } .store-nav a:not(.active) { display: none; } }
