/* ===== Pastel Glassmorphism Theme ===== */
:root{
  /* Pastel background */
  --bg1: #f8f3ff;   /* lavender */
  --bg2: #f2fbff;   /* icy blue */
  --bg3: #fff7f2;   /* peach */

  /* Text */
  --text: rgba(15, 23, 42, .92);
  --muted: rgba(15, 23, 42, .64);

  /* Glass surfaces */
  --glass: rgba(255,255,255,.46);
  --glass2: rgba(255,255,255,.34);
  --border: rgba(255,255,255,.55);
  --stroke: rgba(17, 24, 39, .10);

  /* Accents */
  --primary: #ff5402;  /* violet */
  --primary2: #ee1084; /* cyan */
  --ok: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  /* Shadows */
  --shadow: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow2: 0 10px 30px rgba(15, 23, 42, .10);

  /* Radii */
  --radius: 18px;
  --radius2: 14px;

  /* Focus ring */
  --ring: 0 0 0 5px rgba(124, 58, 237, .18);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 500px at 12% 8%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(850px 520px at 88% 12%, rgba(6,182,212,.18), transparent 62%),
    radial-gradient(800px 520px at 50% 95%, rgba(245,158,11,.13), transparent 62%),
    linear-gradient(135deg, var(--bg1), var(--bg2) 55%, var(--bg3));
}

/* ===== Layout ===== */
.container{
  max-width: 1250px;
  margin: 26px auto;
  padding: 0 16px 56px;
}

h1{
  font-size: 28px;
  letter-spacing: -0.3px;
  margin: 12px 0 14px;
}
h2{
  font-size: 16px;
  margin: 18px 0 10px;
  color: rgba(15,23,42,.86);
}
p{ color: var(--muted); }

a{
  color: rgba(15,23,42,.88);
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

/* ===== Glass helper ===== */
.glass{
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ===== Topbar ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;

  padding: 12px 14px;
  margin: 0 0 14px;

  background: rgba(255,255,255,.40);
  border: 1px solid rgba(255,255,255,.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius);
}
.topbar nav{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.topbar a{
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
}
.topbar a:hover{
  background: rgba(255,255,255,.42);
  border-color: rgba(255,255,255,.60);
  text-decoration:none;
}

/* ===== Cards ===== */
.card{
  background: var(--glass);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);  
  -webkit-backdrop-filter: blur(14px);
}
.card h2{ margin-top: 0; }

/* ===== Alerts ===== */
.alert{
  background: rgba(239,68,68,.14);
  border: 1px solid rgba(239,68,68,.25);
  color: rgba(127,29,29,.95);
  padding: 12px 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ===== Forms ===== */
label{
  display:block;
  font-size: 13px;
  color: rgba(15,23,42,.78);
}

input, select, textarea{
  width: 100%;
  margin-top: 7px;
  padding: 11px 12px;
  border-radius: var(--radius2);

  border: 1px solid rgba(17,24,39,.14);
  background: rgba(255,255,255,.50);
  color: rgba(15,23,42,.92);

  outline: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
  transition: box-shadow .15s, border-color .15s, transform .06s, background .15s;
}

input::placeholder, textarea::placeholder{
  color: rgba(15,23,42,.44);
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(124,58,237,.38);
  box-shadow: var(--ring), 0 1px 0 rgba(255,255,255,.7) inset;
  background: rgba(255,255,255,.62);
}

input[type="number"]{ appearance: textfield; }

/* ===== Buttons ===== */
button{
  border: 1px solid rgba(17,24,39,.12);
  background: rgba(255,255,255,.52);
  color: rgba(15,23,42,.90);

  padding: 10px 14px;
  border-radius: var(--radius2);

  cursor: pointer;
  box-shadow: var(--shadow2);
  transition: transform .06s, box-shadow .15s, background .15s, border-color .15s, opacity .15s;
}

button:hover{
  background: rgba(255,255,255,.66);
  border-color: rgba(17,24,39,.16);
}

button:active{ transform: translateY(1px); }
button:disabled{ opacity: .55; cursor:not-allowed; box-shadow:none; }

/* Optional button variants (use in HTML if you want) */
.btn-primary{
  color: #ffffff;
  border: 1px solid rgba(124,58,237,.35);
  background: linear-gradient(135deg, #f78c5b, #ff5402);
  box-shadow: 0 16px 34px rgba(124,58,237,.18);
}
.btn-primary:hover{
  background: linear-gradient(135deg, #ff5402,#f78c5b);
  color: #564c47;
}
.btn-danger{
  color: rgba(127,29,29,.95);
  border: 1px solid rgba(239,68,68,.26);
  background: rgba(239,68,68,.12);
}
.btn-danger:hover{ background: rgba(239,68,68,.16); }

.btn-print{
  color: #ffffff;
  border: 1px solid #3c996e;
  background: #48b461;
  box-shadow: 0 16px 34px rgba(124,58,237,.18);
  border-radius: 12px;
  padding: 7px;
}
.btn-print:hover{ background: #6ed384; }

/* ===== Tables ===== */
.table{
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;

  border-radius: var(--radius);
  overflow: hidden;

  background: rgba(255,255,255,.38);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: var(--shadow2);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ===== Compact tables ===== */
.table th,
.table td{
  padding: 8px 10px;          /* ↓ moins haut */
  vertical-align: middle;
  line-height: 1.2;           /* ↓ plus compact */
}

.table thead th{
  padding: 9px 10px;
  font-size: 12px;            /* ↓ en-tête un peu plus petit */
}

/* Texte secondaire plus compact */
.table small{
  font-size: 12px;
}

/* Inputs plus petits dans les tables */
.table input,
.table select{
  padding: 8px 10px;
  border-radius: 12px;
}

.table tbody tr:hover{
  background: rgba(255,255,255,.50);
}

.table tbody tr:last-child td{ border-bottom: none; }

small{ color: rgba(15,23,42,.60); }
ul{ margin:0; }

/* ===== Nice badges (optional) ===== */
.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
}
.badge.ok{ border-color: rgba(16,185,129,.25); background: rgba(16,185,129,.12); }
.badge.warn{ border-color: rgba(245,158,11,.25); background: rgba(245,158,11,.14); }
.badge.danger{ border-color: rgba(239,68,68,.25); background: rgba(239,68,68,.14); }

/* ===== Responsive ===== */
@media (max-width: 820px){
  .topbar{ position: static; }
  h1{ font-size: 24px; }
  .card{ padding: 12px; }
}
/* ===== Status badges ===== */
.status{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
}

.status::before{
  content:"";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15,23,42,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.55);
}

/* submitted */
.status.submitted{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.14);
  color: rgba(146, 64, 14, .95);
}
.status.submitted::before{ background: rgba(245,158,11,.85); }

/* shipped */
.status.shipped{
  border-color: rgba(16,185,129,.25);
  background: rgba(16,185,129,.12);
  color: rgba(6, 95, 70, .95);
}
.status.shipped::before{ background: rgba(16,185,129,.85); }

/* cancelled */
.status.cancelled{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.14);
  color: rgba(127,29,29,.95);
}
.status.cancelled::before{ background: rgba(239,68,68,.85); }
/* ===== Stock badges ===== */
.stock-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .2px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
}

.stock-badge::before{
  content:"";
  width: 8px; height: 8px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255,255,255,.55);
}

/* Rupture */
.stock-badge.zero{
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.14);
  color: rgba(127,29,29,.95);
}
.stock-badge.zero::before{ background: rgba(239,68,68,.85); }

/* Stock bas */
.stock-badge.low{
  border-color: rgba(245,158,11,.25);
  background: rgba(245,158,11,.14);
  color: rgba(146, 64, 14, .95);
}
.stock-badge.low::before{ background: rgba(245,158,11,.85); }

/* OK */
.stock-badge.ok{
  border-color: rgba(16,185,129,.25);
  background: rgba(16,185,129,.12);
  color: rgba(6,95,70,.95);
}
.stock-badge.ok::before{ background: rgba(16,185,129,.85); }
/* ===== Cart: stepper + summary ===== */
.cart-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-weight: 800;
}

.stepper{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid #f7b734;
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.stepper button{
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #ff5402;
  border-radius: 999px;
  box-shadow: none;
}
.stepper input{
  width: 40px;
  margin: 0;
  border: 1px solid #ff5402;
  text-align: center;
  border-radius: 12px;
  padding: 7px 8px;
}
/* ===== Catalog cart mini-bar ===== */
.mini-cart{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;

  padding: 12px 14px;
  margin: 0 0 14px;

  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.58);
  background: rgba(255,255,255,.42);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.mini-cart .left{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.mini-cart .right{
  display:flex;
  gap:10px;
  align-items:center;
}
.mini-cart a{
  text-decoration:none;
}
/* ===== Disabled rows (out of stock) ===== */
.row-disabled{
  opacity: .55;
  filter: grayscale(.15);
}
.row-disabled input,
.row-disabled button,
.row-disabled select{
  cursor: not-allowed;
}
@media (max-width: 720px){
  .topbar{ flex-direction: column; align-items: flex-start; }
  /*.topbar nav{ width:100%; gap:6px; }*/
  .topbar nav a{ flex: 1; text-align:center; }

  /* tables -> blocs */
  .table, .table thead, .table tbody, .table th, .table td, .table tr{
    display:block;
    width:100%;
  }
  .table thead{ display:none; }
  .table tr{
    border-bottom: 1px solid rgba(17,24,39,.08);
    padding: 10px 10px;
  }
  .table td{
    border: none;
    padding: 6px 0;
  }

  /* stepper + inputs */
  .stepper input{ width: 80px; }
  button{ width: 100%; }
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.left-links {
  display: flex;
  gap: 14px;
}

.right-links {
  display: flex;
}
/* ===== Auth (login) centered small box ===== */
.auth-page{
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.auth-box{
  width: 100%;
  max-width: 420px;   /* boîte plus petite */


}

.auth-box h1{
  text-align: center;
  margin-bottom: 14px;
  text-shadow: 1px 1px 1px #fff;
}

.auth-card{
  padding: 18px;      /* un peu plus compact */
  border:3px solid #afd7fc;  
  box-shadow: 1px 1px 18px #000000;
}

.auth-card label{
  margin-bottom: 10px;
}
.alert.success{
  border: 1px solid rgba(16,185,129,.35);
  background: rgba(16,185,129,.12);
  color: rgba(6,95,70,1);
}
/* ===== Stock badges ===== */
.stock-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.30);
  background: rgba(255,255,255,.14);
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* états */
.stock-badge.ok{
  color: rgba(9, 83, 50, 1);
  background: rgba(16, 185, 129, .16);
  border-color: rgba(16, 185, 129, .30);
}

.stock-badge.low{
  color: rgba(124, 45, 18, 1);
  background: rgba(245, 158, 11, .18);
  border-color: rgba(245, 158, 11, .35);
}

.stock-badge.zero{
  color: rgba(127, 29, 29, 1);
  background: rgba(239, 68, 68, .16);
  border-color: rgba(239, 68, 68, .35);
}
.product-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px){
  .product-grid{ grid-template-columns: 1fr; }
}

.product-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 14px 14px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  backdrop-filter: blur(10px);
  border:1px solid #ee1084;
}

.product-card:hover{  
  border:1px solid #619dd5;
}

.product-card.is-disabled{
  opacity:.55;
  filter: grayscale(.1);
}

.pc-left{ min-width:0; }
.pc-title{
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.pc-title small{
  font-weight: 600;
  opacity: .8;
}

.pc-meta{
  display:flex;
  gap: 12px;
  flex-wrap:wrap;
  align-items:center;
  font-size: 13px;
}

.pc-sku{
  opacity:.9;
}

.pc-stock{
  display:inline-flex;
  gap:10px;
  align-items:center;
}

.pc-right{
  flex: 0 0 auto;
}

.product-card .stepper{
  margin: 0; /* si tu as déjà un style stepper */
}

button.success {
  background-color: #8af2a0;  
  border: 1px solid #28a745;
  color: #666;
  cursor: pointer;
}

button.success:hover {
  background-color: #218838;
  border-color: #1e7e34;
  color: #ffffff;
}
.product-card{
  display:flex;
  gap:14px;
  align-items:center;
}

.pc-img{
  width:64px;
  height:104px;
  flex:0 0 64px;
  border-radius:12px;
  overflow:hidden;
  background:#f3f3f3;
  border:1px solid rgba(0,0,0,.08);
}

.pc-img img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.pc-img-placeholder{
  width:100%;
  height:100%;
}
.cat-title{
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 6px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.brand-header{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  margin:14px 0 10px;
  background:#fff;
  border-radius: var(--radius2);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.brand-logo{
  height:44px;
  
  display:block;
}

.brand-title .brand-h1{
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
}

.brand-title .brand-sub{
  font-size: .9rem;
  opacity: .75;
  margin-top: 2px;
}

.topbar--brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.topbar-left{
  display:flex;
  align-items:center;
  gap:12px;
  min-width: 0; /* évite les débordements */
}

.brand-logo{
  height:52px;
  width:auto;
  display:block;
  flex:0 0 auto;
  border:2px solid #ffffff;
  border-radius: 12px;
}

.brand-title{
  min-width:0;
}

.brand-h1{
  font-weight:800;
  line-height:1.1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.brand-sub{
  font-size:.9rem;
  opacity:.8;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.topbar-nav{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  white-space:nowrap;
}
@media (max-width: 680px){
  .topbar--brand{ flex-wrap:wrap; }
  .topbar-nav{ width:100%; justify-content:flex-end; }
  .brand-h1, .brand-sub{ white-space:normal; }
}
.orders{
  display:grid;
  gap:12px;
  margin-top:12px;
}

.order-card{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(0,0,0,.08);
  padding:14px 16px;
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}

.order-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(0,0,0,.06);
}

.order-ref{
  font-size:1.05rem;
  font-weight:800;
}

.order-meta{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.order-date{
  font-size:.9rem;
  opacity:.75;
}

/* produits en "pills" */
.order-items{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:12px;
}

.item-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
  font-size:.92rem;
}

.item-pill .qty{
  font-weight:800;
}

/* note */
.order-note{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.03);
  font-size:.92rem;
  opacity:.9;
}

/* badges statut (si tu n’as pas déjà) */
.status{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-size:.85rem;
  font-weight:800;
  border:1px solid rgba(0,0,0,.08);
}

.status.submitted{ background: rgba(255, 193, 7, .18); }
.status.shipped{   background: rgba(40, 167, 69, .16); }
.status.cancelled{ background: rgba(220, 53, 69, .14); }

/* Accordion orders */
.order-card{
  background:#fff;
  border-radius: var(--radius2);
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
  overflow:hidden;
  border:1px solid #619dd5;
}

.order-head{
  list-style:none;               /* enlève le marker */
  cursor:pointer;
  padding:14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.order-head::-webkit-details-marker{ display:none; } /* Chrome/Safari */

.order-body{
  padding:12px 16px 14px;
  border-top:1px solid rgba(0,0,0,.06);
}

.chev{
  display:inline-block;
  transform: rotate(0deg);
  transition: transform .15s ease;
  opacity:.7;
  margin-left:6px;
  color: #e75535;
  border:1px solid #777;
  border-radius: 90px;
  padding: 7px 6px;
}

details[open] .chev{
  transform: rotate(180deg);
}
.order-id{
  font-size:.8rem;
  opacity:.5;
  margin-left:8px;
}
.order-count{
  margin-left:8px;
  font-weight:600;
  opacity:.75;
}

.order-id{
  margin-left:10px;
  font-size:.8rem;
  opacity:.5;
}
.disclaimer{
  margin:10px 0;
  text-align:center;
  opacity:.7;
  font-size:.85rem;
}
.disclaimer-box{
  margin:10px 0 10px 0;   /* plus d’espace en dessous */
  padding:10px 10px;
  border-radius:14px;
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.08);
  font-size:.9rem;
  text-align:center;
  line-height:1.5;
}

/* évite le collapse si c'est le dernier élément */
body .disclaimer-box:last-child{
  margin-bottom:20px;
}


.topbar{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

/* largeur centrée comme ton container */
.topbar.topbar--brand{
  max-width: 1100px;          /* adapte à ta .container si besoin */
  margin: 0 auto;
  padding: 12px 18px;
}

/* IMPORTANT : laisse de la place sous le header */
.page-content{
  padding-top: 65px;          /* ajuste à la hauteur réelle du header */
}

/* mini-cart collée sous le header (option premium) */
.mini-cart{
  position: sticky;
  top: 75px;                  /* même valeur que padding-top */
  z-index: 1500;
  background:#fff;
}
/* HEADER aligné */
.topbar.topbar--brand{
  display:flex;
  align-items:center;              /* centre verticalement */
  justify-content:space-between;   /* gauche / droite */
  gap:16px;
  padding:14px 18px;
}

/* bloc gauche */
.topbar-left{
  display:flex;
  align-items:center;              /* logo et textes alignés */
  gap:12px;
  min-width:0;
}

/* logo : hauteur fixe = alignement stable */
.brand-logo{
  height:42px;
  width:auto;
  display:block;
  flex:0 0 auto;
}

/* titres : bien “stackés” */
.brand-title{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.1;
  min-width:0;
}

.brand-h1{
  font-weight:800;
  font-size:1.05rem;
  margin:0;
}

.brand-sub{
  margin-top:3px;
  font-size:.9rem;
  opacity:.75;
}

/* menu à droite, centré */
.topbar-nav{
  display:flex;
  align-items:center;
  gap:18px;
  white-space:nowrap;
}

/* option : liens alignés et cliquables uniformes */
.topbar-nav a{
  display:inline-flex;
  align-items:center;
  height:34px;     /* aligne visuellement */
  padding:0 10px;
  border-radius:999px;
  text-decoration:none;
}
/* si tu utilises un max-width sur .container */
.container{ max-width: 1200px; margin:0 auto; }

/* header pareil */
.topbar.topbar--brand{ max-width: 1200px; margin:0 auto; }

.topbar-nav{
  display:flex;
  align-items:center;
  gap:14px;
  white-space:nowrap;
}

.nav-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  height:36px;
  padding:0 12px;
  border-radius:999px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,.08);
  background:rgba(255,255,255,.6);
}

.nav-link:hover{
  background:#fff;
}

.nav-link .ico{
  stroke:currentColor;
}

.nav-cart{
  position:relative;
}

.cart-badge{
  margin-left:2px;
  padding:3px 7px;
  border-radius:999px;
  font-size:.72rem;
  font-weight:800;
  background:#ff5a2c;
  color:#fff;
  line-height:1;
}
.btn-with-ico{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.btn-with-ico .ico{
  stroke:currentColor;
}
.btn-with-ico{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.ico-plus{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:50%;
  font-weight:700;
  font-size:14px;
  line-height:1;
  background:rgba(255,255,255,.25);
}
.btn-add-one{
  margin-top:10px;
  width:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  cursor:pointer;
  font-weight:700;
  position:relative;
}

.btn-add-one:hover{ background:rgba(0,0,0,.03); }
.btn-add-one.added{ transform:scale(.99); }

.btn-qty{
  margin-left:auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  font-size:.75rem;
  font-weight:800;
  background:#ff5a2c;
  color:#fff;
}
.pc-right{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.stepper{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
}
/* Variables de hauteur (à ajuster si besoin) */
:root{
  --topbar-h: 78px;    /* hauteur header */
  --mini-h: 86px;      /* hauteur mini-cart */
  --gap-h: 20px;       /* marges */
}

/* zone qui scroll seulement sur la liste */
.catalog-scroll{
  height: calc(100vh - var(--topbar-h) - var(--mini-h) - var(--gap-h));
  overflow: auto;
  padding-right: 6px;  /* évite que scrollbar colle au contenu */
}

/* option : barre de scroll plus douce */
.catalog-scroll{
  scroll-behavior: smooth;
}
.mini-cart{
  position: sticky;
  top: var(--topbar-h);
  z-index: 900;
  background:#fff;
}
/* PAGE = hauteur écran */
html, body{
  height:100%;
}

body{
  margin:0;
  height:100vh;
  overflow:hidden; /* empêche scroll global */
  display:flex;
  flex-direction:column;
}

/* HEADER FIXE */
.topbar{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:2000;
  background:#fff;
}

.app-layout{
  margin: 78px auto 0;     /* top = 78px, gauche/droite auto = centré */
  max-width: 1250px;
  width: 100%;             /* prend toute la largeur dispo jusqu’au max */
  display:flex;
  flex-direction:column;
  height: calc(100vh - 78px);
}
/* MINI CART FIXE SOUS HEADER */
.mini-cart{
  position:sticky;
  top:0;
  z-index:1000;
  background:#fff;
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* zone catalogue */
.catalog-area{
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0; /* IMPORTANT pour scroll interne */
}

/* titre sticky */
.catalog-title{
  position:sticky;
  top:0;
  background:#fff;
  z-index:500;
  padding:14px 0;
  margin:0;
  border-bottom:1px solid rgba(0,0,0,.06);
}

/* ZONE QUI SCROLL */
.catalog-scroll{
  flex:1;
  overflow:auto;
  padding-right:6px;
  padding-bottom:40px;
}

:root{
  --app-w: 1250px;
  --app-pad: 18px;
  --topbar-h: 78px;
}

/* header fixed plein écran, mais contenu centré */
.topbar{
  position:fixed;
  top:0; left:0; right:0;
  z-index:2000;
  background:#fff;
}

.topbar-inner{
  max-width: var(--app-w);
  margin: 0 auto;
  padding: 14px var(--app-pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* layout principal centré */
.app-layout{
  margin: var(--topbar-h) auto 0;
  max-width: var(--app-w);
  width: 100%;
  height: calc(100vh - var(--topbar-h));
  display:flex;
  flex-direction:column;
}

/* mini-cart : même largeur/padding que header */
.mini-cart{
  position:sticky;
  top:0;
  z-index:1500;
  background:#fff;
}

.mini-inner{
  padding: 12px var(--app-pad);
}

/* zone catalogue */
.catalog-area{
  flex:1;
  min-height:0;         /* IMPORTANT pour le scroll interne */
  display:flex;
  flex-direction:column;
}

/* titre aligné (même padding) */
.catalog-title{
  position:sticky;
  top:0;
  z-index:1200;
  background:#fff;
  margin:0;
  padding: 14px var(--app-pad);
  border-bottom:1px solid rgba(0,0,0,.06);
}

/* la liste seule scroll */
.catalog-scroll{
  flex:1;
  overflow:auto;
  padding: 14px var(--app-pad) 40px;
}

/* évite un décalage quand la scrollbar apparaît */
.catalog-scroll{
  scrollbar-gutter: stable;
}
.product-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:16px;
}

.product-card{
  height: 100%;
  display:flex;
  align-items:stretch;
}

.pc-left{ flex:1; min-width:0; }
.pc-right{ width: 160px; display:flex; flex-direction:column; justify-content:center; gap:8px; }
/* =========================================================
   TOPBAR (comme le 1er CSS) — à mettre tout en bas
   ========================================================= */

/* Assure-toi d'avoir ces variables (tu les as déjà mais je les remets) */
:root{
  --app-w: 1250px;
  --app-pad: 18px;
  --topbar-h: 78px;
}

/* Header fixed full width */
.topbar{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 2000;

  background: rgba(255,255,255,.40);
  border-bottom: 1px solid rgba(255,255,255,.58);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

/* (optionnel) si tu veux cibler spécifiquement la variante brand */
.topbar.topbar--brand{
  /* rien d'obligatoire ici, c'est juste pour le sélecteur demandé */
}

/* Centered header content */
.topbar-inner{
  max-width: var(--app-w);
  margin: 0 auto;
  padding: 12px var(--app-pad);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

/* brand left */
.topbar-left{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width:0;
}

/* (si tu utilises aussi logo/titres comme dans le 1er, garde ça) */
.brand-logo{
  height: 46px;
  width:auto;
  display:block;
  flex:0 0 auto;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,.9);
}
.brand-title{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height:1.1;
}
.brand-h1{
  font-weight: 900;
  font-size: 1.08rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.brand-sub{
  margin-top:3px;
  font-size: .9rem;
  opacity:.78;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}