:root{
  --wine:#4A0E0E;
  --wine2:#2a0002;
  --red:#7B1E2B;
  --gold:#A98742;
  --cream:#fcf9f8;
  --soft:#f6f3f2;
  --text:#1c1b1b;
  --muted:#6d6260;
  --line:#eadfdd;
  --shadow:0 24px 70px rgba(74,14,14,.12);
}

*{box-sizing:border-box}

html{scroll-behavior:smooth}

body{
  margin:0;
  background:var(--cream);
  color:var(--text);
  font-family:Manrope,Arial,sans-serif;
}

a{text-decoration:none;color:inherit}

img{max-width:100%;display:block}

.serif{font-family:"Noto Serif",serif}

/* HEADER */
.top{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(252,249,248,.94);
  backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(74,14,14,.10);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:18px 7vw;
}

.logo{
  font-family:"Noto Serif",serif;
  font-size:28px;
  font-weight:800;
  font-style:italic;
  color:var(--wine);
  white-space:nowrap;
}

.nav{
  display:flex;
  align-items:center;
  gap:28px;
  color:#756865;
  text-transform:uppercase;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.nav a:hover{color:var(--wine)}

.btn{
  border:0;
  background:var(--wine);
  color:white;
  padding:13px 22px;
  border-radius:14px;
  font-weight:800;
  letter-spacing:.04em;
  cursor:pointer;
  box-shadow:0 14px 32px rgba(74,14,14,.18);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:.25s ease;
}

.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 20px 46px rgba(74,14,14,.22);
}

.btn.light{
  background:white;
  color:var(--wine);
  border:1px solid var(--line);
  box-shadow:none;
}

.btn.gold{background:var(--gold)}

/* HERO */
.hero{
  min-height:760px;
  padding:80px 7vw;
  display:grid;
  grid-template-columns:1.05fr .95fr;
  align-items:center;
  gap:60px;
  background:
    radial-gradient(circle at 15% 10%,rgba(169,135,66,.18),transparent 25%),
    radial-gradient(circle at 90% 20%,rgba(74,14,14,.10),transparent 22%),
    linear-gradient(180deg,#fff,var(--soft));
}

.eyebrow{
  color:var(--gold);
  font-size:12px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}

.hero h1{
  font-family:"Noto Serif",serif;
  font-size:clamp(2.8rem,5.4vw,6rem);
  line-height:1.02;
  font-weight:700;
  color:var(--wine);
  margin:14px 0;
}

.hero p{
  font-size:20px;
  line-height:1.75;
  color:var(--muted);
  max-width:650px;
}

.hero-card{
  position:relative;
  border-radius:46px;
  overflow:hidden;
  box-shadow:var(--shadow);
  background:white;
  border:12px solid white;
}

.hero-card img{
  width:100%;
  height:640px;
  object-fit:cover;
}

.floating{
  position:absolute;
  left:24px;
  bottom:28px;
  background:white;
  border-radius:24px;
  padding:24px;
  box-shadow:var(--shadow);
  max-width:260px;
}

/* SECTIONS */
.section{
  padding:90px 7vw;
}

.center{text-align:center}

.title{
  font-family:"Noto Serif",serif;
  font-size:clamp(2rem,4vw,4rem);
  line-height:1.1;
  font-weight:650;
  color:var(--wine);
  margin:12px 0;
}

.subtitle{
  color:var(--muted);
  font-size:18px;
  line-height:1.7;
}

.grid3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:26px;
}

.card{
  background:white;
  border:1px solid rgba(74,14,14,.08);
  border-radius:26px;
  padding:30px;
  box-shadow:0 16px 45px rgba(74,14,14,.06);
  transition:.35s ease;
}

.card:hover{
  transform:translateY(-8px);
  box-shadow:var(--shadow);
}

.icon{
  width:52px;
  height:52px;
  border-radius:18px;
  background:rgba(74,14,14,.08);
  display:grid;
  place-items:center;
  color:var(--wine);
  margin-bottom:20px;
}

.price{
  font-family:"Noto Serif",serif;
  font-size:42px;
  font-weight:700;
  color:var(--wine);
}

.premium{
  background:linear-gradient(135deg,var(--wine),var(--wine2));
  color:white;
  transform:scale(1.04);
}

.premium .price,
.premium h3{color:white}

.premium p,
.premium li{color:rgba(255,255,255,.82)}

.list{
  padding:0;
  list-style:none;
}

.list li{
  margin:12px 0;
  color:var(--muted);
}

/* GALLERY */
.darkband{
  background:#1c1616;
  color:white;
}

.gallery{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
  height:520px;
  margin-top:35px;
}

.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:26px;
  filter:saturate(.85);
  transition:.5s ease;
}

.gallery img:hover{
  filter:saturate(1.1);
  transform:scale(1.02);
}

/* FOOTER */
.footer{
  padding:35px 7vw;
  background:#f0eded;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#6b6260;
}

.footer nav{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
}

.footer-luxe{
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.3fr;
  gap:34px;
  align-items:start;
  padding:60px 7vw;
  background:
    radial-gradient(circle at 10% 10%,rgba(169,135,66,.14),transparent 22%),
    linear-gradient(135deg,#fff,var(--soft));
}

.footer-logo{
  font-family:"Noto Serif",serif;
  font-size:30px;
  font-weight:800;
  font-style:italic;
  color:var(--wine);
}

.footer-brand p,
.footer-col p{
  color:var(--muted);
  line-height:1.7;
}

.footer-badges{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.footer-badges span{
  padding:8px 12px;
  border-radius:999px;
  background:white;
  border:1px solid var(--line);
  color:var(--wine);
  font-size:12px;
  font-weight:800;
}

.footer-col{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.footer-col h4{
  margin:0 0 10px;
  font-family:"Noto Serif",serif;
  color:var(--wine);
  font-size:20px;
}

.footer-col a{
  color:#756865;
  font-weight:700;
  transition:.25s;
}

.footer-col a:hover{
  color:var(--wine);
  transform:translateX(4px);
}

.footer-socials{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:12px;
}

.footer-socials a{
  background:var(--wine);
  color:white;
  padding:9px 12px;
  border-radius:999px;
  font-size:12px;
}

.footer-bottom{
  padding:18px 7vw;
  background:var(--wine2);
  color:white;
  display:flex;
  justify-content:space-between;
  gap:18px;
  flex-wrap:wrap;
  font-size:13px;
}

.footer-bottom a{
  color:rgba(255,255,255,.78);
  margin-left:18px;
}

.footer-bottom a:hover{
  color:white;
}

@media(max-width:900px){
  .footer-luxe{
    grid-template-columns:1fr;
    padding:45px 20px;
  }

  .footer-bottom{
    padding:18px 20px;
    flex-direction:column;
  }

  .footer-bottom a{
    margin-left:0;
    margin-right:14px;
  }
}

/* FORMS */
.auth{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:30px;
  background:
    radial-gradient(circle at 20% 20%,rgba(169,135,66,.16),transparent 24%),
    linear-gradient(135deg,#fff,var(--soft));
}

.authbox{
  width:min(520px,100%);
  background:white;
  border-radius:34px;
  padding:42px;
  box-shadow:var(--shadow);
}

input,
select,
textarea{
  width:100%;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px 16px;
  font:inherit;
  background:white;
}

label{
  display:block;
  margin:14px 0 7px;
  font-weight:800;
  color:var(--wine);
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.notice{
  padding:14px 18px;
  border-radius:14px;
  background:#fff6dd;
  color:#6c4a00;
  margin:15px 0;
}

/* DASHBOARD */
.app{
  min-height:100vh;
}

.side{
  position:fixed;
  left:0;
  top:0;
  width:290px;
  height:100vh;
  background:white;
  border-right:1px solid var(--line);
  padding:28px;
  display:flex;
  flex-direction:column;
  gap:24px;
  z-index:200;
}

.brandbox{
  display:flex;
  gap:14px;
  align-items:center;
}

.brandmark{
  width:46px;
  height:46px;
  border-radius:16px;
  background:var(--wine);
  color:white;
  display:grid;
  place-items:center;
  font-weight:900;
}

.brandbox h2{
  font-family:"Noto Serif",serif;
  font-size:18px;
  font-weight:700;
  color:var(--wine);
  margin:0;
}

.brandbox p{
  margin:2px 0;
  color:#958987;
  font-size:12px;
  text-transform:uppercase;
}

.side nav{
  display:grid;
  gap:8px;
}

.side a{
  display:flex;
  gap:12px;
  align-items:center;
  padding:13px 14px;
  border-radius:14px;
  color:#776b69;
  font-weight:700;
  transition:.25s ease;
}

.side a:hover{
  background:var(--soft);
  color:var(--wine);
  transform:translateX(4px);
}

.logout{margin-top:auto}

.main{
  margin-left:290px;
  padding:42px;
}

.dashhead{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:20px;
  margin-bottom:30px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}

.stat{
  background:white;
  border-radius:24px;
  padding:26px;
  box-shadow:0 14px 35px rgba(74,14,14,.06);
  border:1px solid rgba(74,14,14,.06);
}

.stat b{
  font-family:"Noto Serif",serif;
  font-size:32px;
  font-weight:700;
  color:var(--wine);
}

.tablewrap{
  background:white;
  border-radius:26px;
  overflow:auto;
  box-shadow:0 14px 35px rgba(74,14,14,.06);
  margin-top:26px;
}

table{
  width:100%;
  border-collapse:collapse;
}

th,
td{
  padding:18px;
  border-bottom:1px solid #f0eded;
  text-align:left;
}

th{
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:#8a7d7b;
  background:#fbf8f7;
}

.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#f4eeee;
  color:var(--wine);
  font-size:11px;
  font-weight:900;
}

.badge.ok{background:#e9f8ef;color:#137a35}
.badge.warn{background:#fff6dd;color:#986500}
.badge.err{background:#ffe9e9;color:#a00}

.formgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

.product-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
}

.product{
  background:white;
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 15px 36px rgba(74,14,14,.08);
}

.product img{
  width:100%;
  height:260px;
  object-fit:cover;
}

.product .p{
  padding:20px;
}

/* BOUTIQUE PUBLIQUE */
.store-hero{
  min-height:560px;
  display:flex;
  align-items:end;
  padding:7vw;
  background-size:cover;
  background-position:center;
  position:relative;
}

.store-hero:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(42,0,2,.78),rgba(42,0,2,.08));
}

.store-hero>*{
  position:relative;
  color:white;
  max-width:680px;
}

.cartbar{
  position:fixed;
  right:24px;
  bottom:24px;
  background:white;
  border-radius:22px;
  padding:18px 22px;
  box-shadow:var(--shadow);
  z-index:300;
}

/* MOBILE */
@media(max-width:900px){
  .top{
    padding:16px 20px;
    flex-wrap:wrap;
  }

  .nav{
    display:none;
  }

  .hero,
  .grid3,
  .gallery,
  .stats,
  .formgrid,
  .product-grid{
    grid-template-columns:1fr;
  }

  .hero{
    min-height:auto;
    padding:60px 20px;
  }

  .hero-card img{
    height:420px;
  }

  .floating{
    left:18px;
    right:18px;
    max-width:none;
  }

  .section{
    padding:60px 20px;
  }

  .gallery{
    height:auto;
  }

  .gallery img{
    min-height:280px;
  }

  .footer{
    flex-direction:column;
  }

  .side{
    position:relative;
    width:100%;
    height:auto;
  }

  .main{
    margin-left:0;
    padding:22px;
  }

  .dashhead{
    display:block;
  }

  .premium{
    transform:none;
  }
}