:root{
  --bg:#070707;
  --panel:#0f0f0f;
  --text:#ffffff;
  --muted:rgba(255,255,255,.72);
  --muted2:rgba(255,255,255,.5);
  --line:rgba(255,255,255,.14);
  --accent:#7a0f2a;   /* bordeaux */
  --accent2:#b13a55;  /* bordeaux clair */
  --card:#111111;
  --shadow: 0 16px 48px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 14px;
  --container: 1160px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

/* HERO */
.hero{
  position:relative;
  min-height: 320px;
  background:
    linear-gradient(180deg, rgba(0,0,0,.65), rgba(0,0,0,.85)),
    url("../assets/images/header-bouteille.jpg") center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.hero__overlay{
  position:absolute; inset:0;
  background: radial-gradient(1200px 360px at 10% 0%, rgba(122,15,42,.35), transparent 55%);
  pointer-events:none;
}
.hero__content{ position:relative; padding: 22px 0 18px; }
.hero__top{
  display:flex; justify-content:space-between; align-items:center;
  gap:16px;
}

.brand{display:flex; align-items:center; gap:12px;}
.brand__mark{
  width:40px; height:40px; border-radius:12px;
  display:grid; place-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  font-weight:800;
}
.brand__name{font-weight:800; letter-spacing:.4px}
.brand__sub{font-size:12px; color:var(--muted)}

.auth{display:flex; gap:10px; align-items:center;}

.hero__title{ margin: 26px 0 6px; font-size: 44px; letter-spacing:.2px; }
.hero__subtitle{ margin:0 0 16px; color:var(--muted); max-width: 720px; }

.tabs{
  display:flex;
  gap:10px;
  padding: 10px;
  background: rgba(0,0,0,.35);
  border:1px solid var(--line);
  border-radius: 999px;
  width: fit-content;
}
.tab{
  border:0; background:transparent; color:var(--muted);
  padding: 10px 16px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 700;
}
.tab--active{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color:#fff;
}

/* PANELS */
.panel{display:none; padding: 22px 0 40px;}
.panel--active{display:block;}
.panel__top{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding: 8px 0 18px;
}
.panel__title h2{margin:0 0 4px;}
.panel__title p{margin:0;color:var(--muted);}

.muted{color:var(--muted)}
code{
  background: rgba(255,255,255,.07);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.10);
}

/* BUTTONS */
.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 750;
}
.btn:hover{filter: brightness(1.07);}
.btn--primary{
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
.btn--ghost{
  background: transparent;
}

/* HEART CART */
.heartCart{
  position:relative;
  display:flex; align-items:center; gap:10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border:1px solid var(--line);
  cursor:pointer;
  user-select:none;
}
.heartCart__icon{font-size: 18px;}
.heartCart__count{
  min-width: 28px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display:grid; place-items:center;
  background: rgba(122,15,42,.35);
  border:1px solid rgba(255,255,255,.12);
  font-weight: 800;
}

/* GRID */
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.card{
  grid-column: span 4;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: var(--shadow);
}
@media (max-width: 960px){
  .card{ grid-column: span 6; }
  .hero__title{font-size:38px}
}
@media (max-width: 640px){
  .card{ grid-column: span 12; }
  .tabs{ width:100%; justify-content:space-between;}
  .hero__title{font-size:32px}
  .auth{flex-wrap:wrap; justify-content:flex-end;}
}

.card__img{
  height: 168px;
  background: rgba(255,255,255,.05);
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position:center;
}
.card__body{ padding: 14px 14px 16px; }
.card__top{
  display:flex; justify-content:space-between; align-items:flex-start; gap:10px;
}
.badge{
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: rgba(255,255,255,.9);
  white-space:nowrap;
}
.card__name{ margin:0; font-size: 16px; letter-spacing:.2px; }
.card__desc{ margin: 8px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.35; }
.card__bottom{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.price{ font-weight: 900; letter-spacing:.2px; }
.favBtn{
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 800;
}
.favBtn[aria-pressed="true"]{
  border-color: rgba(177,58,85,.65);
  background: rgba(122,15,42,.35);
}

/* STEPS */
.steps{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}
.infoCard{
  margin-top: 18px;
  border:1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255,255,255,.04);
  padding: 16px;
}

/* DRAWER */
.drawer{
  position:fixed; inset:0;
  display:none;
  background: rgba(0,0,0,.66);
}
.drawer--open{display:block;}
.drawer__panel{
  position:absolute;
  right:0; top:0; bottom:0;
  width:min(420px, 92vw);
  background: var(--panel);
  border-left:1px solid var(--line);
  box-shadow: var(--shadow);
  display:flex;
  flex-direction:column;
}
.drawer__header, .drawer__footer{
  padding: 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
}
.drawer__footer{
  border-top:1px solid var(--line);
  border-bottom:0;
  gap:10px;
}
.favList{
  padding: 12px 14px;
  overflow:auto;
  flex:1;
}
.favItem{
  display:flex; gap:12px; align-items:center;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius2);
  padding: 10px;
  margin-bottom: 10px;
}
.favThumb{
  width:52px; height:52px;
  border-radius: 12px;
  border:1px solid var(--line);
  background-size:cover;
  background-position:center;
}
.favMeta{flex:1}
.favName{margin:0; font-weight: 850;}
.favSmall{margin:4px 0 0; color:var(--muted2); font-size: 12px;}
.iconBtn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.05);
  color:#fff;
  width: 38px; height: 38px;
  border-radius: 12px;
  cursor:pointer;
}

/* MODAL */
.modal{
  position:fixed; inset:0;
  display:none;
  background: rgba(0,0,0,.66);
  padding: 18px;
}
.modal--open{display:grid; place-items:center;}
.modal__panel{
  width:min(520px, 100%);
  background: var(--panel);
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.modal__header{
  display:flex; justify-content:space-between; align-items:center;
  padding: 14px 14px;
  border-bottom: 1px solid var(--line);
}
.form{ padding: 14px; }
.form__row{ display:flex; flex-direction:column; gap:6px; margin-bottom: 12px; }
.form__row label{ font-weight: 800; font-size: 13px; color: rgba(255,255,255,.92); }
.form__row input{
  padding: 11px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}
.form__row input:focus{
  border-color: rgba(177,58,85,.75);
  box-shadow: 0 0 0 3px rgba(122,15,42,.25);
}
.form__row--note{margin-top: 6px}
.form__actions{
  display:flex; justify-content:flex-end; gap:10px;
  padding-top: 6px;
}

/* TOAST */
.toast{
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: rgba(15,15,15,.92);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  display:none;
  max-width: min(560px, calc(100% - 24px));
}
.toast--show{display:block;}

/* FOOTER */
.footer{
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--muted2);
  background: rgba(0,0,0,.25);
}
