/* =========================================================
   CHAPI V11 — unified customer/public UI
   Built on the existing CHAPI components; no business logic.
   ========================================================= */
:root{
  --v11-brand:#ff5a1f;
  --v11-brand2:#ff7540;
  --v11-soft:#fff1ea;
  --v11-soft2:#fff8f4;
  --v11-ink:#17191d;
  --v11-muted:#7b7f87;
  --v11-line:#ebe7e2;
  --v11-bg:#faf9f7;
  --v11-green:#0c8068;
  --v11-shadow:0 10px 30px rgba(24,25,29,.055);
  --v11-shadow-lg:0 22px 55px rgba(24,25,29,.10);
}

/* public shell */
body.public-page{background:var(--v11-bg);color:var(--v11-ink)}
body.public-page .page{min-height:calc(100vh - 70px);padding:28px 0 100px;background:var(--v11-bg)}
body.public-page .container{width:min(1180px,calc(100% - 40px));max-width:1180px;margin:0 auto;padding:0}
body.public-page .container--sm{max-width:920px}
body.public-page .container--md{max-width:1180px}
body.public-page .page>.container{animation:v11In .28s ease both}
@keyframes v11In{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:none}}

/* common headings */
body.public-page .section-title{font-size:22px;font-weight:900;letter-spacing:-.55px;margin:30px 0 14px;color:var(--v11-ink)}
body.public-page .section-title::before{width:4px;height:18px;border-radius:4px;background:var(--v11-brand)}
body.public-page .card{background:#fff;border:1px solid var(--v11-line);border-radius:20px;box-shadow:var(--v11-shadow)}
body.public-page .backbtn{width:44px;height:44px;border-radius:14px;background:#fff;border:1px solid rgba(0,0,0,.07);box-shadow:0 8px 22px rgba(0,0,0,.08)}
body.public-page .backbtn:hover{color:var(--v11-brand);background:var(--v11-soft2);border-color:#ffd0be}
body.public-page .btn{border-radius:13px;font-weight:900;min-height:44px}
body.public-page .btn--brand{background:var(--v11-brand);box-shadow:0 9px 22px rgba(255,90,31,.18)}
body.public-page .btn--brand:hover{background:#ef4d16}
body.public-page .btn--outline{border-color:#dfdad5;background:#fff}
body.public-page .btn--outline:hover{border-color:#ffc3ae;background:var(--v11-soft2);color:var(--v11-brand)}

/* forms */
body.public-page input:not([type=checkbox]):not([type=radio]),
body.public-page select,
body.public-page textarea{min-height:48px;border:1px solid #ded9d4;border-radius:14px;background:#fff;font:600 13px var(--font);transition:.16s}
body.public-page textarea{padding:12px 14px;resize:vertical}
body.public-page input:not([type=checkbox]):not([type=radio]):focus,
body.public-page select:focus,
body.public-page textarea:focus{border-color:#ffb59c;box-shadow:0 0 0 4px rgba(255,90,31,.08);outline:0}
body.public-page .form{gap:15px}
body.public-page .form label{font-size:11px;font-weight:900;color:#4f535a}
body.public-page .form-hint{font-size:11px;color:#94989f}

/* segmented controls */
body.public-page .seg{background:#efedea;border:1px solid #e4dfda;border-radius:14px;padding:4px;gap:4px}
body.public-page .seg a{padding:10px 17px;border-radius:10px;font-size:11px}
body.public-page .seg a.is-active{color:var(--v11-brand);background:#fff;box-shadow:0 3px 10px rgba(20,20,20,.06)}

/* header relationship */
body.public-page .page{position:relative}

/* =========================================================
   STORE — full marketplace treatment
   ========================================================= */
body.public-page--store .page{padding-top:18px}
body.public-page--store .container--md{width:min(1180px,calc(100% - 32px))}
body.public-page--store .shop-hero{
  height:330px;margin:0;border-radius:28px;overflow:hidden;position:relative;
  background:#222;box-shadow:var(--v11-shadow-lg)
}
body.public-page--store .shop-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.20) 55%,rgba(0,0,0,.46));pointer-events:none}
body.public-page--store .shop-hero img{width:100%;height:100%;object-fit:cover}
body.public-page--store .shop-hero .backbtn{z-index:4;top:16px;left:16px;position:absolute}
body.public-page--store .shop-hero__emoji{z-index:2}
body.public-page--store .shop-sheet{
  margin:-72px 28px 0;position:relative;z-index:5;padding:22px 24px 0;
  background:#fff;border:1px solid var(--v11-line);border-radius:24px;
  box-shadow:0 18px 48px rgba(24,25,29,.10)
}
body.public-page--store .shop-sheet h1{font-size:30px;line-height:1.15;font-weight:900;letter-spacing:-.9px;margin:0;color:var(--v11-ink)}
body.public-page--store .shop-sheet__meta{gap:7px;margin-top:9px;font-size:11px;color:#666b73}
body.public-page--store .shop-sheet__meta>span:not(.dot){background:#f6f4f1;border:1px solid #ebe7e1;border-radius:999px;padding:6px 9px;font-weight:800}
body.public-page--store .shop-sheet__meta .rating{background:#e8f7f3!important;border-color:#d6eee8!important;color:#08735f!important}
body.public-page--store .shop-sheet__meta .dot{display:none}
body.public-page--store .shop-sheet .heart{width:42px;height:42px;border-radius:13px;background:#fff;border:1px solid #e8e3de;display:flex;align-items:center;justify-content:center;cursor:pointer}
body.public-page--store .shop-sheet .heart:hover{color:var(--v11-brand);background:var(--v11-soft2);border-color:#ffd0be}
body.public-page--store .tabs{margin-top:19px;gap:24px;border-bottom:1px solid #eee9e4}
body.public-page--store .tabs__tab{padding:11px 2px 13px;font-size:13px;font-weight:900}
body.public-page--store .tabs__tab.is-active{color:var(--v11-brand);border-bottom-color:var(--v11-brand)}

/* category navigation is generated from the existing product groups */
.v11-store-cats{display:flex;gap:8px;overflow:auto;padding:18px 2px 5px;scrollbar-width:none;position:sticky;top:70px;z-index:20;background:rgba(250,249,247,.94);backdrop-filter:blur(14px)}
.v11-store-cats::-webkit-scrollbar{display:none}
.v11-store-cat{border:1px solid #e2ddd7;background:#fff;color:#666b72;border-radius:999px;padding:9px 14px;font:800 11px var(--font);white-space:nowrap;cursor:pointer;transition:.16s}
.v11-store-cat:hover{border-color:#ffc2ad;color:var(--v11-brand);background:var(--v11-soft2)}
.v11-store-cat.is-active{background:var(--v11-brand);border-color:var(--v11-brand);color:#fff;box-shadow:0 7px 18px rgba(255,90,31,.20)}

body.public-page--store #tab-menu>.section-title{margin-top:30px;margin-bottom:12px}
body.public-page--store .product-rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body.public-page--store .product-row{
  min-height:142px;display:grid;grid-template-columns:108px minmax(0,1fr) auto;align-items:center;gap:14px;
  padding:12px;border:1px solid var(--v11-line)!important;border-radius:20px;background:#fff;
  box-shadow:0 6px 22px rgba(24,25,29,.035);transition:.18s
}
body.public-page--store .product-row:hover{transform:translateY(-2px);border-color:#ffd2c1!important;box-shadow:0 14px 32px rgba(24,25,29,.08)}
body.public-page--store .product-row__img{width:108px;height:108px;border-radius:16px;background:#f7f2ea;overflow:hidden}
body.public-page--store .product-row__body{padding:4px 0}
body.public-page--store .product-row__name{font-size:14px;font-weight:900;line-height:1.35}
body.public-page--store .product-row__desc{font-size:10.5px;line-height:1.45;color:#92969d;margin-top:5px;-webkit-line-clamp:2}
body.public-page--store .product-row__price{font-size:14px;margin-top:9px;font-weight:900}
body.public-page--store .price-new{color:var(--v11-brand)}
body.public-page--store .price-old{font-size:10px;color:#a5a8ad;margin-right:5px}
body.public-page--store [data-pwrap]{align-self:end}
body.public-page--store .addbtn{width:40px;height:40px;border-radius:13px;font-size:21px;box-shadow:0 7px 15px rgba(255,90,31,.20)}
body.public-page--store .qty{gap:5px;padding:4px;background:#eaf7f3;border-radius:13px}
body.public-page--store .qty button{width:31px;height:31px;border:0;border-radius:10px;background:#fff;color:var(--v11-green)}
body.public-page--store .qty--plus{background:var(--v11-green)!important;color:#fff!important}
body.public-page--store .qty b{font-size:12px;color:#1f3f39;min-width:17px}

body.public-page--store #tab-info{margin-top:20px}
body.public-page--store #tab-info .card{padding:7px 20px}
body.public-page--store .info-row{padding:17px 3px;border-bottom:1px solid #eee9e4}
body.public-page--store .info-row__ic{width:40px;height:40px;border-radius:12px;background:var(--v11-soft);color:var(--v11-brand);display:flex;align-items:center;justify-content:center}
body.public-page--store .info-row__label{font-size:10px;color:#9a9da4;font-weight:900}
body.public-page--store .info-row__val{font-size:13px;margin-top:3px;font-weight:800}

/* cart */
body.public-page--store .cartbar{bottom:18px;padding:0;z-index:80}
body.public-page--store.has-bottomnav .cartbar{bottom:82px}
body.public-page--store .cartbar__in{
  max-width:720px;min-height:58px;border-radius:18px;padding:0 20px;background:var(--v11-brand);
  justify-content:space-between;box-shadow:0 18px 40px rgba(255,90,31,.30);font-size:13px
}
body.public-page--store .cartbar__in::after{content:'→';font-size:18px;font-weight:900;margin-left:auto;padding-left:12px}

/* =========================================================
   ORDERS / FAVORITES / NOTIFICATIONS / ADDRESSES / CARDS
   ========================================================= */
body.public-page--orders .ordermini,
body.public-page--favorites .store-row,
body.public-page--notifications .newscard{
  border:1px solid var(--v11-line);background:#fff;border-radius:18px;box-shadow:var(--v11-shadow);transition:.18s
}
body.public-page--orders .ordermini:hover,
body.public-page--favorites .store-row:hover,
body.public-page--notifications .newscard:hover{transform:translateY(-2px);border-color:#ffd1bf;box-shadow:0 15px 32px rgba(24,25,29,.08)}
body.public-page--orders .ordermini{padding:15px 16px;margin-bottom:10px}
body.public-page--orders .ordermini__img{width:62px;height:62px;border-radius:15px}
body.public-page--orders .ordermini__code{font-size:13px;font-weight:900}
body.public-page--orders .ordermini__store{font-size:11px;color:#747981;margin-top:3px}
body.public-page--orders .ordermini__status{font-size:10px;margin-top:6px}
body.public-page--orders .ordermini__price{font-size:14px;font-weight:900}
body.public-page--favorites .store-row{padding:12px 14px}
body.public-page--favorites .store-row__img{width:70px;height:70px;border-radius:16px}
body.public-page--notifications .newscard{padding:18px 19px;margin-bottom:11px}
body.public-page--notifications .newscard__title{font-size:15px;font-weight:900}
body.public-page--notifications .newscard__body{font-size:12px;line-height:1.7}

/* addresses/cards */
body.public-page--addresses .card,
body.public-page--cards .card,
body.public-page--settings .card{padding:20px!important}
body.public-page--addresses .chip,
body.public-page--settings .chip{border-radius:999px;padding:9px 13px;font-size:11px;font-weight:900}
body.public-page--addresses .chip.is-active{background:var(--v11-brand);border-color:var(--v11-brand)}
body.public-page--cards .paycard{border-radius:20px;box-shadow:0 16px 32px rgba(24,25,29,.12)}

/* profile */
body.public-page--profile .phead--v3{border-radius:24px;background:linear-gradient(135deg,#17191d,#25282d);padding:24px;box-shadow:0 18px 38px rgba(23,25,29,.16)}
body.public-page--profile .pstats{gap:12px}
body.public-page--profile .pstat{border-radius:18px;padding:17px}
body.public-page--profile .pstat__v{font-size:24px;font-weight:900}

/* legal */
body.public-page--about .card,body.public-page--terms .card,body.public-page--privacy .card,body.public-page--refund .card{padding:30px!important;line-height:1.85}
body.public-page--about h1,body.public-page--terms h1,body.public-page--privacy h1,body.public-page--refund h1{font-size:30px!important;font-weight:900!important;letter-spacing:-.8px}
body.public-page--about h3,body.public-page--terms h3,body.public-page--privacy h3,body.public-page--refund h3{font-size:15px;font-weight:900;margin-top:25px}
body.public-page--about p,body.public-page--terms p,body.public-page--privacy p,body.public-page--refund p{color:#696e76;line-height:1.9}

/* =========================================================
   CHECKOUT / ORDER / TRACKING
   ========================================================= */
body.public-page--checkout .card,
body.public-page--order .card{border-radius:20px;box-shadow:var(--v11-shadow)}
body.public-page--checkout .section-title,body.public-page--order .section-title{margin-top:28px}
body.public-page--checkout .pay-methods{gap:9px}
body.public-page--checkout .pay-method{border:1px solid var(--v11-line);border-radius:15px;padding:14px;background:#fff;transition:.16s}
body.public-page--checkout .pay-method.is-on{border-color:#ffc2ad;box-shadow:0 0 0 3px rgba(255,90,31,.07);background:var(--v11-soft2)}
body.public-page--checkout .tip{border:1px solid #e1dcd7;border-radius:13px;background:#fff;font-weight:900;padding:11px 8px}
body.public-page--checkout .tip.is-on{background:var(--v11-brand);border-color:var(--v11-brand);box-shadow:0 8px 18px rgba(255,90,31,.18)}
body.public-page--checkout .bill__row--total{font-size:20px;padding-top:15px}
body.public-page--order .eta-card{border-radius:22px!important;box-shadow:0 16px 38px rgba(255,90,31,.24)!important}
body.public-page--order .courier-card{border-radius:18px!important;box-shadow:var(--v11-shadow)}
body.public-page--order .timeline li{padding-bottom:25px}

/* auth pages */
body.public-page--login,body.public-page--register,body.public-page--login-sms{background:#faf9f7}
body.public-page--login .page,body.public-page--register .page,body.public-page--login-sms .page{padding:0 0 90px}
body.public-page--login .authwrap,body.public-page--register .authwrap,body.public-page--login-sms .authwrap{max-width:980px;min-height:calc(100vh - 70px);padding:38px 20px 70px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:28px}
body.public-page--login .authhero,body.public-page--register .authhero,body.public-page--login-sms .authhero{
  margin:0;border-radius:28px;padding:44px 36px;min-height:500px;display:flex;flex-direction:column;justify-content:center;
  background:linear-gradient(145deg,#ff5a1f,#ff7b45);box-shadow:0 25px 60px rgba(255,90,31,.20)
}
body.public-page--login .authhero::before,body.public-page--register .authhero::before,body.public-page--login-sms .authhero::before{content:"";position:absolute;width:280px;height:280px;border-radius:50%;right:-90px;top:-80px;background:rgba(255,255,255,.10)}
body.public-page--login .authhero__word,body.public-page--register .authhero__word,body.public-page--login-sms .authhero__word{font-size:46px}
body.public-page--login .authcard,body.public-page--register .authcard,body.public-page--login-sms .authcard{margin:0;border:1px solid var(--v11-line);border-radius:24px;padding:30px;box-shadow:0 18px 50px rgba(24,25,29,.08)}
body.public-page--login .authcard__title,body.public-page--register .authcard__title,body.public-page--login-sms .authcard__title{font-size:25px;font-weight:900}

/* footer */
.chp-footer-v2{margin-top:0!important;background:#17191d}
.chp-footer-v2__top{padding-top:56px;padding-bottom:44px}
.chp-footer-v2__bottom{font-size:10px}

/* mobile */
@media(max-width:820px){
  body.public-page .page{padding-top:18px;padding-bottom:94px}
  body.public-page .container,body.public-page .container--md,body.public-page .container--sm{width:calc(100% - 24px);max-width:none}
  body.public-page--store .container--md{width:100%}
  body.public-page--store .shop-hero{height:235px;border-radius:0}
  body.public-page--store .shop-sheet{margin:-48px 12px 0;padding:18px 16px 0;border-radius:21px}
  body.public-page--store .shop-sheet h1{font-size:24px}
  body.public-page--store .shop-sheet .heart{width:38px;height:38px}
  .v11-store-cats{top:62px;padding:13px 12px 5px}
  body.public-page--store .product-rows{grid-template-columns:1fr;gap:9px}
  body.public-page--store .product-row{grid-template-columns:82px minmax(0,1fr) auto;min-height:110px;padding:9px;border-radius:17px;gap:11px}
  body.public-page--store .product-row__img{width:82px;height:82px;border-radius:14px}
  body.public-page--store .product-row__name{font-size:13px}
  body.public-page--store .product-row__desc{font-size:10px}
  body.public-page--store .product-row__price{font-size:13px;margin-top:6px}
  body.public-page--store .addbtn{width:38px;height:38px}
  body.public-page--store .cartbar{bottom:76px;padding:0 10px}
  body.public-page--store .cartbar__in{min-height:54px;border-radius:16px}
  body.public-page--login .authwrap,body.public-page--register .authwrap,body.public-page--login-sms .authwrap{display:block;min-height:0;padding:18px 12px 90px}
  body.public-page--login .authhero,body.public-page--register .authhero,body.public-page--login-sms .authhero{min-height:230px;border-radius:24px;padding:30px 22px;margin:0}
  body.public-page--login .authhero__word,body.public-page--register .authhero__word,body.public-page--login-sms .authhero__word{font-size:36px}
  body.public-page--login .authcard,body.public-page--register .authcard,body.public-page--login-sms .authcard{margin:-28px 10px 0;padding:23px 18px}
  body.public-page--about .card,body.public-page--terms .card,body.public-page--privacy .card,body.public-page--refund .card{padding:21px!important}
  body.public-page--about h1,body.public-page--terms h1,body.public-page--privacy h1,body.public-page--refund h1{font-size:24px!important}
}
@media(max-width:480px){
  body.public-page .section-title{font-size:19px}
  body.public-page--store .shop-sheet__meta>span:not(.dot){padding:5px 7px;font-size:9.5px}
  body.public-page--store .shop-sheet__meta{gap:5px}
  body.public-page--store .product-row{grid-template-columns:72px minmax(0,1fr) auto}
  body.public-page--store .product-row__img{width:72px;height:72px}
  body.public-page--store .qty button{width:29px;height:29px}
  body.public-page--store .qty{gap:3px}
  .chp-footer-v2__top{grid-template-columns:1fr 1fr!important}
}

/* =========================================================
   CHAPI AUTH + FOOTER POLISH
   Login/Register: single vertical flow.
   Footer: fixed visual rhythm across public pages.
   ========================================================= */
body.public-page--login .authwrap,
body.public-page--register .authwrap,
body.public-page--login-sms .authwrap{
  width:min(680px,calc(100% - 32px));
  max-width:680px;
  min-height:0;
  margin:0 auto;
  padding:34px 0 72px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:18px;
}

body.public-page--login .authhero,
body.public-page--register .authhero,
body.public-page--login-sms .authhero{
  width:100%;
  min-height:190px;
  margin:0;
  padding:30px 32px;
  border-radius:26px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:linear-gradient(135deg,#ff5a1f 0%,#ff7440 100%);
  box-shadow:0 18px 42px rgba(255,90,31,.18);
}

body.public-page--login .authhero__logo,
body.public-page--register .authhero__logo,
body.public-page--login-sms .authhero__logo{
  max-width:150px;
  max-height:54px;
  object-fit:contain;
  margin:0 auto 8px;
}

body.public-page--login .authhero__dog,
body.public-page--register .authhero__dog,
body.public-page--login-sms .authhero__dog{
  width:82px;
  margin:0 auto 3px;
}

body.public-page--login .authhero__word,
body.public-page--register .authhero__word,
body.public-page--login-sms .authhero__word{
  font-size:34px;
  line-height:1;
  letter-spacing:-.6px;
}

body.public-page--login .authhero__tag,
body.public-page--register .authhero__tag,
body.public-page--login-sms .authhero__tag{
  margin-top:8px;
  font-size:12px;
  line-height:1.5;
}

body.public-page--login .authcard,
body.public-page--register .authcard,
body.public-page--login-sms .authcard{
  width:100%;
  max-width:none;
  margin:0;
  padding:30px;
  border:1px solid var(--v11-line);
  border-radius:24px;
  background:#fff;
  box-shadow:0 14px 38px rgba(24,25,29,.07);
}

body.public-page--login .authcard__title,
body.public-page--register .authcard__title,
body.public-page--login-sms .authcard__title{
  font-size:26px;
  line-height:1.2;
  letter-spacing:-.5px;
}

body.public-page--login .authcard__sub,
body.public-page--register .authcard__sub,
body.public-page--login-sms .authcard__sub{
  margin-top:7px;
  margin-bottom:22px;
  font-size:13px;
}

/* registration role selector stays clean, but never creates a side-by-side form layout */
body.public-page--register .rolepick{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

/* One consistent footer footprint on desktop/public pages. */
.chp-footer-v2{
  width:100%;
  min-height:310px;
  margin-top:auto!important;
  display:flex;
  flex-direction:column;
  background:#17191d;
}
.chp-footer-v2__top{
  flex:1 0 250px;
  min-height:250px;
  box-sizing:border-box;
  padding-top:48px;
  padding-bottom:36px;
}
.chp-footer-v2__bottom{
  flex:0 0 60px;
  min-height:60px;
  box-sizing:border-box;
  align-items:center;
}

@media(max-width:820px){
  body.public-page--login .authwrap,
  body.public-page--register .authwrap,
  body.public-page--login-sms .authwrap{
    width:calc(100% - 24px);
    padding:20px 0 74px;
    gap:14px;
  }

  body.public-page--login .authhero,
  body.public-page--register .authhero,
  body.public-page--login-sms .authhero{
    min-height:170px;
    padding:26px 20px;
    border-radius:22px;
  }

  body.public-page--login .authcard,
  body.public-page--register .authcard,
  body.public-page--login-sms .authcard{
    padding:24px 20px;
    border-radius:21px;
  }

  body.public-page--register .rolepick{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .chp-footer-v2{
    min-height:0;
  }
  .chp-footer-v2__top{
    min-height:0;
    flex:0 0 auto;
  }
  .chp-footer-v2__bottom{
    min-height:58px;
    flex:0 0 58px;
  }
}

@media(max-width:480px){
  body.public-page--login .authwrap,
  body.public-page--register .authwrap,
  body.public-page--login-sms .authwrap{
    width:calc(100% - 20px);
    padding:14px 0 68px;
  }

  body.public-page--login .authhero,
  body.public-page--register .authhero,
  body.public-page--login-sms .authhero{
    min-height:150px;
    padding:22px 16px;
    border-radius:20px;
  }

  body.public-page--login .authhero__word,
  body.public-page--register .authhero__word,
  body.public-page--login-sms .authhero__word{
    font-size:30px;
  }

  body.public-page--login .authcard,
  body.public-page--register .authcard,
  body.public-page--login-sms .authcard{
    padding:22px 16px;
    border-radius:19px;
  }

  body.public-page--login .authcard__title,
  body.public-page--register .authcard__title,
  body.public-page--login-sms .authcard__title{
    font-size:23px;
  }

  body.public-page--register .rolepick{
    grid-template-columns:1fr 1fr;
    gap:8px;
  }

  .chp-footer-v2__bottom{
    min-height:68px;
    flex-basis:68px;
  }
}
