:root{
  --ink:#151515;
  --paper:#f7f6f4;
  --line:#e7e4df;
  --muted:#6d6b67;
  --accent:#151515;
}
*{box-sizing:border-box}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--paper);color:var(--ink)}
a{text-decoration:none;color:inherit}
.topbar{height:74px;padding:0 5vw;display:flex;align-items:center;gap:35px;background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:10}
.logo{font-size:22px;font-weight:800;letter-spacing:-1px}
.topbar nav{display:flex;gap:22px;font-size:14px;font-weight:600;flex:1}
.header-actions{display:flex;gap:16px;font-weight:600;font-size:14px}
.hero{min-height:520px;padding:70px 8vw;display:flex;align-items:end;background:linear-gradient(115deg,#ded7cc,#f2eee7)}
.hero>div{max-width:600px}
.eyebrow{text-transform:uppercase;letter-spacing:1.8px;font-size:11px;font-weight:800;color:var(--muted)}
h1{font-size:clamp(42px,7vw,90px);line-height:.96;letter-spacing:-4px;margin:12px 0 18px}
.hero p:not(.eyebrow){max-width:490px;font-size:18px;line-height:1.55;color:#4c4a47}
.main-button{display:inline-block;margin-top:18px;padding:14px 20px;background:var(--accent);color:#fff;border-radius:9px;font-weight:700}
.section{padding:70px 8vw}
.section h2{font-size:34px;letter-spacing:-1.6px;margin:6px 0 30px}
.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.categories article{min-height:210px;background:#fff;padding:24px;border:1px solid var(--line);border-radius:16px;display:flex;flex-direction:column;justify-content:end}
.categories span{font-size:12px;color:var(--muted);margin-bottom:auto}
.categories h3{font-size:24px;letter-spacing:-1px;margin:0 0 6px}
.categories p{margin:0;color:var(--muted)}
footer{padding:30px 8vw;background:#151515;color:#fff;font-size:13px}
.admin-page{display:flex;min-height:100vh;background:#f5f4f2}
.admin-sidebar{position:fixed;width:245px;min-height:100vh;padding:28px 18px;background:#161616;color:#fff;display:flex;flex-direction:column;gap:8px}
.admin-sidebar .logo{padding:0 12px 26px}
.admin-sidebar a{padding:12px;border-radius:10px;color:#d4d4d4;font-size:14px}
.admin-sidebar a.active,.admin-sidebar a:hover{background:#2b2b2b;color:#fff}
.admin-main{margin-left:245px;padding:60px;width:calc(100% - 245px)}
.admin-main h1{font-size:46px;letter-spacing:-2px}
.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:35px}
.stat-grid article{background:#fff;padding:22px;border-radius:16px;border:1px solid var(--line)}
.stat-grid span,.stat-grid small{display:block;color:var(--muted);font-size:13px}
.stat-grid strong{display:block;font-size:31px;letter-spacing:-1.5px;margin:12px 0}
@media(max-width:800px){
  .topbar{padding:0 18px;gap:15px}.topbar nav{display:none}
  .hero{min-height:450px;padding:55px 7vw}.categories{grid-template-columns:repeat(2,1fr)}
  .admin-sidebar{width:76px;padding:20px 10px}.admin-sidebar .logo{font-size:0;padding:0 0 20px}.admin-sidebar .logo:after{content:"M";font-size:25px}.admin-sidebar a{font-size:0;text-align:center}.admin-sidebar a:before{content:"•";font-size:20px}.admin-main{margin-left:76px;width:calc(100% - 76px);padding:38px 22px}.stat-grid{grid-template-columns:repeat(2,1fr)}
}

.login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:22px;
  background:linear-gradient(135deg,#e9e3db,#f7f6f4);
}
.login-card{
  width:min(100%,430px);
  padding:38px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:0 18px 55px rgba(20,20,20,.08);
}
.login-card .logo{display:block;margin-bottom:32px}
.login-card h1{font-size:45px;margin:8px 0 28px}
.login-card form{display:grid;gap:10px}
.login-card label{font-size:13px;font-weight:700;margin-top:8px}
.login-card input{
  width:100%;
  min-height:47px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  padding:0 13px;
  font:inherit;
}
.login-card input:focus{outline:2px solid #151515;outline-offset:1px}
.login-card button{
  border:0;
  border-radius:10px;
  min-height:48px;
  margin-top:13px;
  background:#151515;
  color:#fff;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}
.login-alert{
  margin:0 0 18px;
  padding:11px 13px;
  border-radius:9px;
  font-size:13px;
}
.login-alert.error{background:#fff0f0;color:#a01d1d}
.back-shop{display:inline-block;margin-top:23px;font-size:13px;color:var(--muted)}
.admin-intro{color:var(--muted);font-size:16px;max-width:650px}

/* ===== THEMES BOUTIQUE ===== */
body.theme-fashion{
  --paper:#f7f6f4;
  --ink:#151515;
  --line:#e7e4df;
  --muted:#6d6b67;
  --accent:var(--custom-primary,#151515);
  --topbar:#ffffff;
  --card:#ffffff;
  --hero-bg:linear-gradient(115deg,#ded7cc,#f2eee7);
  --footer:#151515;
}

body.theme-luxury{
  --paper:#101010;
  --ink:#f6eed8;
  --line:#403627;
  --muted:#cbbd9b;
  --accent:var(--custom-primary,#b88b3a);
  --topbar:#15120e;
  --card:#1d1913;
  --hero-bg:linear-gradient(120deg,#11100e,#403116);
  --footer:#070706;
}

body.theme-street{
  --paper:#f2f1ee;
  --ink:#0c0c0c;
  --line:#202020;
  --muted:#5c5c5c;
  --accent:var(--custom-primary,#ee3b29);
  --topbar:#ffffff;
  --card:#ffffff;
  --hero-bg:linear-gradient(130deg,#ff613d,#ffce42);
  --footer:#101010;
}

body.theme-pastel{
  --paper:#fbf8f4;
  --ink:#3f3640;
  --line:#eadfde;
  --muted:#85777d;
  --accent:var(--custom-primary,#af6f8f);
  --topbar:#fffdfb;
  --card:#ffffff;
  --hero-bg:linear-gradient(120deg,#f6ccd9,#d8e7f3);
  --footer:#5e4954;
}

body.theme-dark{
  --paper:#18191e;
  --ink:#f1f3f5;
  --line:#343842;
  --muted:#abb0bd;
  --accent:var(--custom-primary,#6577ff);
  --topbar:#202128;
  --card:#24262e;
  --hero-bg:linear-gradient(120deg,#252b48,#11131d);
  --footer:#0d0e12;
}

body[class^="theme-"] .topbar{background:var(--topbar);border-color:var(--line)}
body[class^="theme-"] .hero{background:var(--hero-bg)}
body[class^="theme-"] .categories article{background:var(--card);border-color:var(--line)}
body[class^="theme-"] footer{background:var(--footer)}
body[class^="theme-"] .main-button{background:var(--accent)}
body.theme-luxury .topbar,
body.theme-dark .topbar{color:var(--ink)}

/* ===== PAGE APPARENCE ADMIN ===== */
.appearance-form{max-width:1080px;margin-top:32px}
.appearance-panel{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  padding:25px;
  margin-bottom:20px;
}
.appearance-panel h2{
  font-size:22px;
  letter-spacing:-.7px;
  margin:0 0 22px;
}
.appearance-panel label{
  display:block;
  margin:16px 0 8px;
  font-size:13px;
  font-weight:750;
}
.appearance-panel input[type="text"]{
  width:min(100%,520px);
  height:48px;
  padding:0 13px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  font:inherit;
}
.color-row{display:flex;align-items:center;gap:12px}
.color-row input[type="color"]{
  width:58px;
  height:42px;
  padding:3px;
  border:1px solid #d8d5d0;
  border-radius:9px;
  background:#fff;
}
.color-row span{font-size:13px;color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.theme-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:15px;
}
.theme-card{
  display:block;
  min-height:178px;
  padding:17px;
  border:2px solid #e4e1dc;
  border-radius:15px;
  cursor:pointer;
  transition:.16s ease;
  overflow:hidden;
}
.theme-card:hover{transform:translateY(-2px);border-color:#888}
.theme-card input{position:absolute;opacity:0;pointer-events:none}
.theme-card:has(input:checked){border-color:#151515;box-shadow:0 0 0 2px #151515}
.theme-card-top{display:flex;justify-content:space-between;gap:10px;align-items:center}
.theme-card-top strong{font-size:16px}
.theme-card-top em{
  padding:4px 8px;
  border-radius:20px;
  font-size:10px;
  font-style:normal;
  font-weight:800;
  background:#151515;
  color:#fff;
}
.theme-card-bars{
  display:flex;
  gap:7px;
  align-items:end;
  height:57px;
  margin:18px 0 12px;
}
.theme-card-bars i{display:block;flex:1;border-radius:8px;height:34px;background:rgba(255,255,255,.68)}
.theme-card-bars i:nth-child(2){height:50px}
.theme-card-bars i:nth-child(3){height:25px}
.theme-card small{display:block;line-height:1.42;opacity:.82}
.theme-preview-fashion{background:linear-gradient(120deg,#ded7cc,#fbfaf8);color:#1d1d1d}
.theme-preview-luxury{background:linear-gradient(120deg,#15120e,#60441d);color:#f8e7bd}
.theme-preview-street{background:linear-gradient(120deg,#ff633c,#ffcc43);color:#141414}
.theme-preview-pastel{background:linear-gradient(120deg,#f3c7d7,#d4e5f1);color:#4a3643}
.theme-preview-dark{background:linear-gradient(120deg,#2d3459,#15171f);color:#f1f3f5}
.save-appearance{
  min-height:50px;
  border:0;
  border-radius:10px;
  padding:0 19px;
  background:#151515;
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.login-alert.success{background:#eaf7ee;color:#176b37}

@media(max-width:800px){
  .theme-grid{grid-template-columns:1fr}
  .appearance-panel{padding:18px}
}

/* ===== ESPACE CLIENT ===== */
.shop-auth-page,
.account-page{
  min-height:100vh;
  background:var(--paper);
  color:var(--ink);
}

.shop-auth-shell{
  min-height:calc(100vh - 74px);
  display:grid;
  place-items:center;
  padding:48px 20px;
}

.shop-auth-card{
  width:min(100%,470px);
  padding:34px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--card);
  box-shadow:0 18px 50px rgba(0,0,0,.08);
}

.shop-auth-card h1{
  margin:8px 0 12px;
  font-size:42px;
  letter-spacing:-2px;
}

.shop-auth-text{
  margin:0 0 24px;
  color:var(--muted);
  line-height:1.5;
}

.shop-auth-card form{
  display:grid;
  gap:9px;
}

.shop-auth-card label{
  margin-top:7px;
  font-size:13px;
  font-weight:750;
}

.shop-auth-card input{
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:transparent;
  color:var(--ink);
  font:inherit;
}

.shop-auth-card input:focus{
  outline:2px solid var(--accent);
  outline-offset:1px;
}

.shop-auth-card button{
  min-height:50px;
  margin-top:12px;
  border:0;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.shop-auth-bottom{
  margin:23px 0 0;
  color:var(--muted);
  font-size:14px;
}

.shop-auth-bottom a{
  color:var(--ink);
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:3px;
}

.account-shell{
  width:min(1160px,100%);
  margin:0 auto;
  padding:65px 8vw;
}

.account-shell h1{
  margin-bottom:12px;
  font-size:clamp(42px,6vw,72px);
}

.account-lead{
  margin:0 0 31px;
  color:var(--muted);
  font-size:17px;
}

.account-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:17px;
}

.account-info-card{
  min-height:178px;
  padding:23px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--card);
}

.account-info-card span{
  display:block;
  margin-bottom:20px;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:1px;
}

.account-info-card strong{
  display:block;
  font-size:20px;
  letter-spacing:-.6px;
}

.account-info-card p{
  margin:9px 0 0;
  color:var(--muted);
  line-height:1.45;
}

body.theme-luxury .shop-auth-card,
body.theme-dark .shop-auth-card,
body.theme-luxury .account-info-card,
body.theme-dark .account-info-card{
  box-shadow:none;
}

@media(max-width:800px){
  .shop-auth-shell{padding:30px 18px}
  .shop-auth-card{padding:26px 21px}
  .shop-auth-card h1{font-size:36px}
  .account-shell{padding:42px 22px}
  .account-grid{grid-template-columns:1fr}
}

.shop-products-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px;
}

.shop-product-card{
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card,#fff);
}

.shop-product-image{
  height:280px;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#ece9e3;
  color:#777;
}

.shop-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.shop-product-info{
  padding:15px;
}

.shop-product-info p{
  margin:0 0 6px;
  color:var(--muted);
  font-size:12px;
}

.shop-product-info h3{
  margin:0;
  font-size:18px;
  letter-spacing:-.6px;
}

.shop-product-price{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:12px;
}

.shop-product-price strong{
  font-size:17px;
}

.shop-product-price del{
  color:var(--muted);
  font-size:13px;
}

@media(max-width:800px){
  .shop-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
  }

  .shop-product-image{
    height:210px;
  }

  .shop-product-info{
    padding:12px;
  }

  .shop-product-info h3{
    font-size:16px;
  }
}

/* ===== MENU ADMIN MOBILE LISIBLE ===== */
@media (max-width:800px){
  body.admin-page{
    display:block !important;
  }

  .admin-sidebar{
    position:sticky !important;
    top:0 !important;
    z-index:1000 !important;
    width:100% !important;
    min-height:0 !important;
    height:auto !important;
    padding:12px !important;
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:8px !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch;
  }

  .admin-sidebar .logo{
    min-width:max-content !important;
    padding:4px 8px !important;
    font-size:19px !important;
  }

  .admin-sidebar .logo:after{
    content:none !important;
  }

  .admin-sidebar a{
    display:inline-flex !important;
    align-items:center !important;
    min-height:40px !important;
    padding:0 12px !important;
    font-size:13px !important;
    text-align:left !important;
    white-space:nowrap !important;
    flex:0 0 auto !important;
  }

  .admin-sidebar a:before{
    content:none !important;
  }

  .admin-main{
    margin-left:0 !important;
    width:100% !important;
    padding:30px 18px !important;
  }
}

/* ===== MINIATURES PRODUITS ADMIN ===== */
.admin-product-card{
  display:flex !important;
  align-items:flex-start !important;
  gap:14px !important;
  overflow:hidden !important;
}

.admin-product-thumb{
  width:110px !important;
  min-width:110px !important;
  height:130px !important;
  overflow:hidden !important;
  border-radius:12px !important;
  background:#ece9e3 !important;
  display:grid !important;
  place-items:center !important;
}

.admin-product-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.admin-product-info{
  flex:1 !important;
  min-width:0 !important;
}

@media(max-width:800px){
  .admin-product-card{
    flex-direction:row !important;
    padding:12px !important;
  }

  .admin-product-thumb{
    width:92px !important;
    min-width:92px !important;
    height:112px !important;
  }

  .admin-product-title-row h2{
    font-size:18px !important;
  }
}

/* ===== MINIATURES PRODUITS ADMIN ===== */
.admin-product-card{
  display:flex !important;
  align-items:flex-start !important;
  gap:14px !important;
  overflow:hidden !important;
}

.admin-product-thumb{
  width:110px !important;
  min-width:110px !important;
  height:130px !important;
  overflow:hidden !important;
  border-radius:12px !important;
  background:#ece9e3 !important;
  display:grid !important;
  place-items:center !important;
}

.admin-product-thumb img{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

.admin-product-info{
  flex:1 !important;
  min-width:0 !important;
}

@media(max-width:800px){
  .admin-product-card{
    flex-direction:row !important;
    padding:12px !important;
  }

  .admin-product-thumb{
    width:92px !important;
    min-width:92px !important;
    height:112px !important;
  }

  .admin-product-title-row h2{
    font-size:18px !important;
  }
}

/* ===== VRAI MENU CATEGORIES ===== */
.category-select,
.product-category-select{
  width:100%;
  min-height:50px;
  padding:0 13px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  background:#fff;
  color:#151515;
  font:inherit;
  font-size:16px;
}

/* ===== TAILLES / COULEURS / VARIANTES ===== */
.variant-list{
  display:grid;
  gap:10px;
  margin:18px 0 12px;
}

.variant-row{
  display:grid;
  grid-template-columns:1fr 1fr 110px auto;
  gap:9px;
  align-items:center;
  padding:10px;
  border:1px solid #e2ded7;
  border-radius:12px;
  background:#faf9f7;
}

.variant-row input{
  width:100%;
  min-height:44px;
  padding:0 11px;
  border:1px solid #d8d5d0;
  border-radius:9px;
  background:#fff;
  color:#151515;
  font:inherit;
}

.variant-remove{
  min-height:42px;
  padding:0 11px;
  border:1px solid #efc6c6;
  border-radius:9px;
  background:#fff4f4;
  color:#a02020;
  font:inherit;
  font-weight:750;
  cursor:pointer;
}

@media(max-width:800px){
  .variant-row{
    grid-template-columns:1fr 1fr;
  }

  .variant-row input[type="number"]{
    grid-column:1 / 2;
  }

  .variant-remove{
    grid-column:2 / 3;
  }
}

/* ===== SUPPRESSION PHOTOS PRODUIT ===== */
.product-photo-admin-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}

.product-photo-admin-item{
  overflow:hidden;
  border:1px solid #e4e1dc;
  border-radius:12px;
  background:#fff;
}

.product-photo-admin-item img{
  display:block;
  width:100%;
  aspect-ratio:1;
  object-fit:cover;
}

.product-photo-admin-item form{
  margin:0;
  padding:7px;
}

.product-photo-delete-button{
  width:100%;
  min-height:34px;
  border:1px solid #efc6c6;
  border-radius:8px;
  background:#fff4f4;
  color:#a02020;
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}

@media(max-width:800px){
  .product-photo-admin-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
  }
}

/* ===== PANIER CLIENT ===== */
.detail-page,
.cart-shell{
  width:min(1200px,100%);
  margin:0 auto;
  padding:42px 6vw 72px;
}

.detail-back{
  display:inline-block;
  margin-bottom:24px;
  color:var(--muted);
}

.detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);
  gap:44px;
}

.detail-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}

.detail-gallery img,
.detail-no-image{
  width:100%;
  aspect-ratio:.86;
  object-fit:cover;
  border-radius:15px;
  background:#ece9e3;
}

.detail-no-image{
  display:grid;
  place-items:center;
  color:#777;
}

.detail-info h1{
  margin:8px 0 15px;
  font-size:clamp(38px,5vw,62px);
}

.detail-short{
  color:var(--muted);
  line-height:1.5;
  font-size:18px;
}

.detail-price{
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0;
}

.detail-price strong{
  font-size:27px;
}

.detail-price del{
  color:var(--muted);
}

.detail-description{
  margin:22px 0;
  white-space:pre-line;
  line-height:1.65;
  color:var(--muted);
}

.add-cart-form{
  display:grid;
  gap:9px;
  margin-top:28px;
  padding-top:25px;
  border-top:1px solid var(--line);
}

.add-cart-form label{
  font-size:13px;
  font-weight:800;
}

.add-cart-form select,
.add-cart-form input{
  width:100%;
  min-height:49px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card,#fff);
  color:var(--ink);
  font:inherit;
}

.add-cart-row{
  display:grid;
  grid-template-columns:100px 1fr;
  gap:10px;
}

.add-cart-button{
  min-height:49px;
  border:0;
  border-radius:10px;
  background:var(--accent);
  color:#fff;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.cart-shell h1{
  margin:8px 0 30px;
  font-size:clamp(42px,6vw,70px);
}

.cart-layout{
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(300px,.65fr);
  gap:22px;
  align-items:start;
}

.cart-lines{
  display:grid;
  gap:13px;
}

.cart-line{
  display:grid;
  grid-template-columns:105px 1fr auto;
  gap:15px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card,#fff);
}

.cart-image{
  width:105px;
  height:125px;
  overflow:hidden;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#ece9e3;
  color:#777;
  font-size:12px;
}

.cart-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.cart-line-info p,
.cart-line-info small{
  display:block;
  margin:0;
  color:var(--muted);
  font-size:12px;
}

.cart-line-info h2{
  margin:6px 0 7px;
  font-size:20px;
}

.cart-line-info strong{
  display:block;
  margin-top:14px;
  font-size:18px;
}

.cart-line-actions{
  min-width:145px;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.cart-line-actions form{
  margin:0;
}

.cart-line-actions label{
  display:block;
  margin-bottom:4px;
  font-size:11px;
  color:var(--muted);
}

.cart-line-actions input{
  width:72px;
  min-height:34px;
  padding:0 7px;
  border:1px solid var(--line);
  border-radius:8px;
  font:inherit;
}

.cart-line-actions button{
  min-height:34px;
  margin-left:5px;
  padding:0 8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  font:inherit;
  font-size:12px;
  cursor:pointer;
}

.cart-line-actions .cart-remove{
  color:#a02020;
  border-color:#efc6c6;
  background:#fff4f4;
}

.cart-line-total{
  margin-top:auto;
  font-size:17px;
}

.cart-summary{
  position:sticky;
  top:95px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card,#fff);
}

.cart-summary > div{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:15px 0;
}

.cart-summary hr{
  border:0;
  border-top:1px solid var(--line);
}

.cart-summary .cart-grand-total{
  font-size:19px;
}

.cart-summary button{
  width:100%;
  min-height:49px;
  margin-top:13px;
  border:0;
  border-radius:10px;
  background:#b7b4af;
  color:#fff;
  font:inherit;
  font-weight:800;
}

.cart-summary p{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.cart-empty{
  max-width:520px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--card,#fff);
}

.cart-empty h2{
  margin:0 0 8px;
  font-size:28px;
}

.cart-empty p{
  margin:0 0 22px;
  color:var(--muted);
}

@media(max-width:800px){
  .detail-page,
  .cart-shell{
    padding:28px 20px 54px;
  }

  .detail-grid,
  .cart-layout{
    grid-template-columns:1fr;
  }

  .detail-gallery{
    grid-template-columns:1fr;
  }

  .cart-summary{
    position:static;
  }

  .cart-line{
    grid-template-columns:82px 1fr;
  }

  .cart-image{
    width:82px;
    height:103px;
  }

  .cart-line-actions{
    grid-column:1 / -1;
    min-width:0;
    align-items:flex-start;
    flex-direction:row;
    flex-wrap:wrap;
  }

  .cart-line-total{
    margin-left:auto;
  }
}

/* ===== CATEGORIES VISIBLES CLIENT ===== */
.shop-category-section{
  padding-bottom:22px;
}

.shop-category-filter{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.shop-category-filter a{
  display:inline-flex;
  align-items:center;
  min-height:42px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:999px;
  background:var(--card,#fff);
  color:var(--ink);
  font-size:14px;
  font-weight:750;
}

.shop-category-filter a.active{
  border-color:var(--accent);
  background:var(--accent);
  color:#fff;
}

@media(max-width:800px){
  .shop-category-section{
    padding-top:44px;
    padding-bottom:10px;
  }

  .shop-category-filter{
    flex-wrap:nowrap;
    overflow-x:auto;
    padding:2px 0 9px;
    -webkit-overflow-scrolling:touch;
  }

  .shop-category-filter a{
    flex:0 0 auto;
  }
}

/* ===== COMMANDES ADMIN ===== */
.admin-order-list{
  display:grid;
  gap:13px;
}

.admin-order-card{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}

.admin-order-card h2{
  margin:5px 0 7px;
  font-size:21px;
}

.admin-order-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

.order-card-right{
  display:grid;
  justify-items:end;
  gap:8px;
}

.order-card-right strong{
  font-size:20px;
}

.order-card-right small{
  color:var(--muted);
  font-size:12px;
}

.order-status{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  background:#fff0e2;
  color:#97501b;
  font-size:11px;
  font-weight:800;
}

.order-status.paid,
.order-status.delivered{
  background:#eaf7ee;
  color:#176b37;
}

.order-status.cancelled{
  background:#fff1f1;
  color:#a02020;
}

@media(max-width:800px){
  .admin-order-card{
    flex-direction:column;
  }

  .order-card-right{
    justify-items:start;
  }
}

/* ===== CLIENTS ADMIN ===== */
.customer-stat-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  max-width:920px;
  margin:28px 0 20px;
}

.customer-stat-grid article{
  padding:19px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}

.customer-stat-grid span,
.customer-stat-grid small{
  display:block;
  color:var(--muted);
}

.customer-stat-grid span{
  font-size:13px;
}

.customer-stat-grid strong{
  display:block;
  margin:9px 0 6px;
  font-size:34px;
}

.customer-stat-grid small{
  font-size:12px;
}

.customer-search-form{
  display:flex;
  gap:10px;
  align-items:center;
  max-width:720px;
  margin:22px 0;
}

.customer-search-form input{
  flex:1;
  min-height:47px;
  padding:0 13px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  background:#fff;
  font:inherit;
}

.customer-search-form button,
.customer-search-form a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:47px;
  padding:0 14px;
  border:0;
  border-radius:10px;
  background:#151515;
  color:#fff;
  font:inherit;
  font-weight:800;
}

.customer-search-form a{
  background:#fff;
  color:#151515;
  border:1px solid #d8d5d0;
}

.customer-list{
  display:grid;
  gap:13px;
}

.customer-card{
  display:flex;
  align-items:center;
  gap:15px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}

.customer-avatar{
  width:52px;
  height:52px;
  min-width:52px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#151515;
  color:#fff;
  font-weight:850;
}

.customer-info{
  flex:1;
  min-width:0;
}

.customer-info h2{
  margin:0 0 5px;
  font-size:20px;
}

.customer-info p,
.customer-info small{
  display:block;
  margin:0;
  color:var(--muted);
}

.customer-info p{
  font-size:14px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.customer-info small{
  margin-top:6px;
  font-size:12px;
}

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

.customer-actions form{
  margin:0;
}

.customer-status{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
}

.customer-status.active{
  background:#eaf7ee;
  color:#176b37;
}

.customer-status.blocked{
  background:#fff1f1;
  color:#a02020;
}

@media(max-width:800px){
  .customer-stat-grid{
    grid-template-columns:1fr;
  }

  .customer-search-form{
    flex-wrap:wrap;
  }

  .customer-search-form input{
    flex-basis:100%;
  }

  .customer-card{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .customer-actions{
    width:100%;
    justify-content:space-between;
  }
}

/* ===== PROMOTIONS ADMIN ===== */
.promotion-list{
  display:grid;
  gap:13px;
}

.promotion-card{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:19px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#fff;
}

.promotion-main{
  display:flex;
  gap:14px;
  min-width:0;
}

.promotion-code{
  min-width:96px;
  height:48px;
  display:grid;
  place-items:center;
  padding:0 10px;
  border-radius:10px;
  background:#151515;
  color:#fff;
  font-size:13px;
  font-weight:900;
  text-align:center;
  overflow-wrap:anywhere;
}

.promotion-main h2{
  margin:0 0 6px;
  font-size:21px;
}

.promotion-main p,
.promotion-main small{
  display:block;
  margin:0;
  color:var(--muted);
}

.promotion-main p{
  font-size:14px;
}

.promotion-main small{
  margin-top:7px;
  font-size:12px;
}

.promotion-side{
  display:flex;
  min-width:215px;
  flex-direction:column;
  align-items:flex-end;
  gap:8px;
}

.promotion-side small{
  color:var(--muted);
  font-size:12px;
  text-align:right;
}

.promotion-status{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:850;
}

.promotion-status.active{
  background:#eaf7ee;
  color:#176b37;
}

.promotion-status.upcoming{
  background:#eef4ff;
  color:#255eb0;
}

.promotion-status.inactive,
.promotion-status.ended{
  background:#fff1f1;
  color:#a02020;
}

.promotion-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:8px;
}

.promotion-actions form{
  margin:0;
}

.promotion-form{
  max-width:800px;
}

.promotion-form label{
  display:block;
  margin:15px 0 8px;
  font-size:13px;
  font-weight:800;
}

.promotion-form input,
.promotion-form select{
  width:100%;
  min-height:48px;
  padding:0 13px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  background:#fff;
  color:#151515;
  font:inherit;
}

.promotion-checkbox{
  display:flex !important;
  align-items:center;
  gap:10px;
}

.promotion-checkbox input{
  width:18px;
  min-height:18px;
  height:18px;
  accent-color:#151515;
}

@media(max-width:800px){
  .promotion-card{
    flex-direction:column;
  }

  .promotion-side{
    min-width:0;
    align-items:flex-start;
  }

  .promotion-side small{
    text-align:left;
  }

  .promotion-actions{
    justify-content:flex-start;
  }
}

/* ===== PROMO : UNE UTILISATION PAR CLIENT ===== */
.promotion-one-use-note{
  margin:22px 0 8px;
  padding:15px;
  border:1px solid #cfe6d6;
  border-radius:12px;
  background:#eff9f1;
  color:#176b37;
}

.promotion-one-use-note strong{
  display:block;
  font-size:14px;
}

.promotion-one-use-note p{
  margin:6px 0 0;
  font-size:13px;
  line-height:1.45;
}

/* ===== FAVORIS CLIENT ===== */
.header-favorites-link{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:24px;
  font-size:24px;
  line-height:1;
}

.header-favorites-link span{
  position:absolute;
  top:-9px;
  right:-11px;
  min-width:17px;
  height:17px;
  display:grid;
  place-items:center;
  padding:0 4px;
  border-radius:999px;
  background:var(--accent);
  color:#fff;
  font-size:10px;
  font-weight:850;
}

.shop-product-card-wrap{
  position:relative;
  min-width:0;
}

.shop-product-card-wrap .shop-product-card{
  display:block;
  height:100%;
}

.favorite-card-form{
  position:absolute;
  z-index:5;
  top:11px;
  right:11px;
  margin:0;
}

.favorite-heart-button{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(20,20,20,.13);
  border-radius:50%;
  background:rgba(255,255,255,.94);
  color:#1a1a1a;
  font-size:25px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 4px 14px rgba(0,0,0,.10);
}

.favorite-heart-button.is-favorite{
  border-color:#eab8c4;
  background:#fff1f4;
  color:#d22b54;
}

.favorite-detail-form{
  margin:18px 0 0;
}

.favorite-detail-button{
  min-height:45px;
  padding:0 15px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--card,#fff);
  color:var(--ink);
  font:inherit;
  font-weight:800;
  cursor:pointer;
}

.favorite-detail-button.is-favorite{
  border-color:#eab8c4;
  background:#fff1f4;
  color:#c9264e;
}

.favorites-shell{
  width:min(1200px,100%);
  margin:0 auto;
  padding:42px 6vw 72px;
}

.favorites-shell h1{
  margin:8px 0 12px;
  font-size:clamp(42px,6vw,70px);
}

.favorites-intro{
  margin:0 0 30px;
  color:var(--muted);
  font-size:18px;
}

.favorites-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
}

.favorite-product-card{
  position:relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--card,#fff);
}

.favorite-product-card > a{
  display:block;
  color:inherit;
}

.favorite-product-image{
  display:grid;
  place-items:center;
  aspect-ratio:.84;
  overflow:hidden;
  background:#ece9e3;
  color:#777;
}

.favorite-product-image img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.favorite-product-info{
  padding:14px;
}

.favorite-product-info p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}

.favorite-product-info h2{
  margin:6px 0 13px;
  font-size:20px;
}

.favorite-product-info strong{
  font-size:19px;
}

.favorites-empty{
  max-width:520px;
  padding:28px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--card,#fff);
}

.favorites-empty h2{
  margin:0 0 8px;
  font-size:28px;
}

.favorites-empty p{
  margin:0 0 22px;
  color:var(--muted);
}

.account-favorites-link{
  display:inline-flex;
  margin-top:16px;
  color:var(--ink);
  font-weight:850;
  text-decoration:underline;
  text-underline-offset:4px;
}

@media(max-width:900px){
  .favorites-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:800px){
  .favorites-shell{
    padding:28px 20px 54px;
  }

  .favorite-card-form{
    top:9px;
    right:9px;
  }

  .favorite-heart-button{
    width:39px;
    height:39px;
    font-size:23px;
  }
}


/* ===== APP ICON APPLICATION ===== */
.app-icon-panel{
  margin-top:22px;
}

.app-icon-help{
  max-width:680px;
  margin:0 0 20px;
  color:var(--muted);
  line-height:1.5;
}

.app-icon-preview-row{
  display:flex;
  align-items:center;
  gap:22px;
  flex-wrap:wrap;
}

.app-icon-preview{
  width:124px;
  height:124px;
  display:grid;
  place-items:center;
  overflow:hidden;
  border:1px solid #d8d5d0;
  border-radius:28px;
  background:#171717;
  color:#fff;
  font-size:12px;
  font-weight:800;
}

.app-icon-preview img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.app-icon-preview span{
  display:none;
}

.app-icon-preview.empty span{
  display:block;
}

.app-icon-upload-form{
  display:grid;
  gap:11px;
  min-width:min(100%,340px);
}

.app-icon-upload-form label{
  margin:0;
}

.app-icon-upload-form input[type="file"]{
  max-width:100%;
  padding:10px;
  border:1px solid #d8d5d0;
  border-radius:10px;
  background:#fff;
}

@media(max-width:800px){
  .app-icon-preview-row{
    align-items:flex-start;
  }

  .app-icon-upload-form{
    width:100%;
  }
}
