/* Kahf modern layer. Loaded LAST on every page. Rounded, soft, minimal. Black and white only. */
:root {
  --r-s: 12px; --r-m: 18px; --r-l: 28px; --pill: 999px;
  --soft: #f4f4f3; --soft-2: #ececea; --hair: #e7e7e5;
  --shadow: 0 10px 34px -12px rgba(0, 0, 0, .22);
  --line: #e7e7e5; --mist: #f4f4f3;
}
body { background: #fff; letter-spacing: 0; }
::selection { background: #000; color: #fff; }
:focus-visible { outline-width: 2px; outline-offset: 3px; border-radius: var(--r-s); }

/* ---------- buttons ---------- */
.btn { min-height: 52px; padding: 0 32px; border-radius: var(--pill); border: 1.5px solid var(--ink); font-weight: 600; font-size: 15.5px; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.btn:hover { background: #1c1c1c; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45); }
.btn:active { transform: none; box-shadow: none; }
.btn.ghost { border-color: #d4d4d1; background: #fff; }
.btn.ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.s { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn:disabled, .btn[aria-disabled="true"] { transform: none; box-shadow: none; }

/* ---------- promo bar and floating header ---------- */
.promo { font-size: 13px; padding: 8px var(--gap); letter-spacing: .01em; }
.head { background: transparent; backdrop-filter: none; border: 0; top: 10px; margin-top: 10px; pointer-events: none; }
.head .wrap { pointer-events: auto; min-height: 60px; padding-inline: 14px 10px; background: rgba(255, 255, 255, .84); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border: 1px solid var(--hair); border-radius: var(--pill); box-shadow: 0 6px 24px -14px rgba(0, 0, 0, .3); }
.mark img { height: 28px; }
.nav a, .nav button { border-radius: var(--pill); transition: background .2s; }
.nav a:hover, .nav button:hover { background: var(--soft); }
.nav a.text:hover { text-decoration: none; }
.count { border-radius: var(--pill); }
.fab { box-shadow: 0 12px 30px -8px rgba(0, 0, 0, .45); }

/* ---------- hero ---------- */
.masthead { border: 0; overflow: visible; }
.masthead .wrap { margin-top: 12px; padding: clamp(46px, 9vw, 112px) clamp(20px, 5vw, 64px) clamp(44px, 8vw, 100px); text-align: center; color: #fff; border-radius: var(--r-l); background: radial-gradient(120% 100% at 50% 0%, #2b2b2b 0%, #0c0c0c 58%); overflow: hidden; animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.masthead .brand { display: flex; justify-content: center; text-align: center; margin: 0 0 clamp(18px, 2.6vw, 30px); color: #fff; }
.masthead .brand img { width: clamp(104px, 15vw, 168px) !important; filter: invert(1); }
.masthead .row { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 14px; width: 100%; }
.masthead .tag { text-wrap: balance; max-width: 22ch; font-weight: 800; font-size: clamp(28px, 5.2vw, 60px); line-height: 1.2; text-align: center; margin-inline: auto; letter-spacing: -.01em; }
.masthead .sub { max-width: 46ch; text-align: center; margin-inline: auto; color: #a8a8a4; font-size: clamp(15px, 1.6vw, 18px); }
.masthead .go { display: none; }

/* ---------- toolbar: pill tabs ---------- */
.catalog { padding-block: clamp(26px, 4vw, 48px) clamp(56px, 8vw, 120px); }
.bar { border: 0; gap: 12px 20px; margin-bottom: clamp(24px, 3vw, 40px); }
.tabs { gap: 8px; padding-block: 2px; }
.tab { border: 0; min-height: 44px; padding: 0 22px; border-radius: var(--pill); background: var(--soft); color: #444; font-size: 15px; transition: background .2s, color .2s; }
.tab:hover { background: var(--soft-2); color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--ink); color: #fff; }
.field { border: 0; background: var(--soft); border-radius: var(--pill); min-height: 44px; padding: 0 16px; transition: box-shadow .2s; }
.field:focus-within { box-shadow: 0 0 0 2px var(--ink); }
.tools .field select { cursor: pointer; }
.found:empty { display: none; }

.group + .group { margin-top: clamp(52px, 7vw, 100px); }
.group-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.group-head h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.01em; }
.group-head p { margin: 0; font-size: 14px; }

/* ---------- product cards ---------- */
.catalog .grid, .related .grid { gap: clamp(30px, 3.6vw, 52px) clamp(10px, 1.6vw, 22px); }
.card .media { border-radius: var(--r-m); background: #f1f1ef; }
.card .media img { transition: transform .8s var(--ease); }
.card:hover .media img { transform: scale(1.045); }
.card .noimg { color: #c9c9c5; }
.card .meta { padding: 14px 4px 0; }
.card .name { font-size: 15px; font-weight: 500; }
.card .prices { margin-top: 5px; font-size: 15px; }
.badge { top: 10px; inset-inline-start: 10px; border-radius: var(--pill); padding: 4px 11px; font-size: 12px; letter-spacing: .01em; }
.badge.note { inset-inline-start: auto; inset-inline-end: 10px; padding: 0; }
.card.out .media img { opacity: .5; }
.card .soldout { inset-inline: 10px; bottom: 10px; border-radius: var(--pill); padding: 6px; backdrop-filter: blur(6px); }
.dots { gap: 7px; margin-top: 10px; }
.dots i { width: 15px; height: 15px; box-shadow: none; border-color: rgba(0, 0, 0, .12); }
.skeleton .media, .skeleton .l { border-radius: var(--r-m); }
.skeleton .l { border-radius: var(--pill); }
.empty .btn { margin-top: 18px; }

/* ---------- footer ---------- */
.foot { margin: clamp(40px, 6vw, 80px) var(--gap) var(--gap); border-radius: var(--r-l); }
.foot .wrap { padding-block: clamp(36px, 5vw, 60px) 28px; }
.foot h3 { font-size: 14px; color: #8f8f8b; }
.foot .legal { border-top-color: #232323; }
.foot a { opacity: .88; transition: opacity .2s; }
.foot a:hover { opacity: 1; text-decoration: none; }

/* ---------- toast and dialogs ---------- */
.toast { border-radius: var(--pill); padding: 13px 24px; box-shadow: var(--shadow); }
.modal { backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); background: rgba(10, 10, 10, .5); }
.modal .box { border-radius: var(--r-l); padding: 34px 28px 28px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal .x { border-radius: var(--pill); transition: background .2s; }
.modal .x:hover { background: var(--soft); }
.modal.warn .box, .modal.warn.red .box { border-top: 0; }
.modal.warn .box { box-shadow: inset 0 5px 0 var(--ink), 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal.warn.red .box { box-shadow: inset 0 5px 0 var(--danger), 0 30px 80px -20px rgba(0, 0, 0, .5); }
.modal img.guide { border-radius: var(--r-m); }
.lightbox .box, .lightbox img { border-radius: 0; box-shadow: none; }

/* ---------- product page ---------- */
.crumbs a:hover { text-decoration: none; color: var(--ink); }
.slides { border-radius: var(--r-l); background: #f1f1ef; }
.arrow { border: 0; border-radius: var(--pill); box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .4); transition: transform .2s; }
.arrow:hover { transform: translateY(-50%) scale(1.06); }
.pager i { border: 0; background: rgba(255, 255, 255, .7); }
.pager i.on { background: var(--ink); }
.thumbs button { border-radius: var(--r-s); border-width: 1.5px; }
.info h1 { letter-spacing: -.01em; }
.info .pct { border-radius: var(--pill); padding: 2px 11px; }
.sz { min-width: 56px; min-height: 48px; border-radius: var(--pill); border: 1.5px solid #dededa; transition: border-color .2s, background .2s, color .2s; }
.sz:disabled { background: var(--soft); }
.sw { border-color: rgba(0, 0, 0, .14); }
.qty { border: 1.5px solid #dededa; border-radius: var(--pill); height: 54px; padding-inline: 4px; }
.qty button { border-radius: 50%; }
.qty button:hover:not(:disabled) { background: var(--soft); }
.buy .btn { min-height: 54px; }
.related { border-top: 0; }
.extras .link { text-decoration: none; padding: 0 16px; border-radius: var(--pill); background: var(--soft); font-size: 14.5px; transition: background .2s; }
.extras .link:hover { background: var(--soft-2); }

/* ---------- cart, checkout, thanks, track, policies ---------- */
.offers-strip { border: 0; background: var(--soft); border-radius: var(--r-m); padding: 14px 20px; }
.cart-side .sum { border: 0; background: var(--soft); border-radius: var(--r-l); padding: 26px; }
.sum .tot { border-top: 1px solid #d4d4d1; }
.free-ship .bar { height: 6px; border-radius: var(--pill); background: #dcdcd8; overflow: hidden; }
.free-ship .bar i { border-radius: var(--pill); }
.lines { border-top: 0; }
.line { padding: 18px 0; border-bottom-color: var(--hair); }
.line .im { border-radius: var(--r-m); width: 88px; }
.line { grid-template-columns: 88px minmax(0, 1fr) auto; }
.step { border: 1.5px solid #dededa; border-radius: var(--pill); overflow: hidden; }
.step button { background: transparent; transition: background .2s; }
.step button:hover:not(:disabled) { background: var(--soft); }
.line .rm { text-decoration: none; }
.line .rm:hover { color: var(--danger); }
.f input, .f select, .f textarea { border: 1.5px solid #e2e2de; border-radius: 14px; background: #fcfcfb; min-height: 52px; padding-inline: 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.f input:focus, .f select:focus, .f textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.seg span { border: 1.5px solid #e2e2de; border-radius: 16px; transition: border-color .2s, background .2s; }
.seg span:hover { border-color: #b9b9b4; }
.seg input:checked + span { border-color: var(--ink); background: #fafaf9; box-shadow: none; }
.thanks-box .card { border: 0; background: var(--soft); border-radius: var(--r-l); padding: 24px; }
.code-row input { border: 1.5px solid #cfcfca; border-radius: 16px; }
.tl { border-inline-start-color: #d4d4d1; }
.pill { border-radius: var(--pill); padding: 5px 14px; }
.t-items { border-top-color: var(--hair); }
.t-items li { border-bottom-color: var(--hair); }
.pol-nav { border: 0; padding: 0; gap: 8px; }
.pol-nav a { padding: 0 18px; border-radius: var(--pill); background: var(--soft); color: #444; }
.pol-nav a:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* ---------- admin ---------- */
body.admin { background: #f5f5f3; }
.adm-head { background: #0c0c0c; }
.adm-nav { gap: 4px; padding-block: 9px; }
.adm-nav a { min-height: 38px; padding: 0 16px; border: 0; border-radius: var(--pill); transition: background .2s, color .2s; }
.adm-nav a:hover { background: #1f1f1f; }
.adm-nav a.on { background: #fff; color: #000; }
.adm-head button { border-radius: var(--pill); border-color: #3a3a3a; padding: 6px 16px; transition: background .2s; }
.adm-head button:hover { background: #1f1f1f; }
.adm-main h1 { font-size: 26px; letter-spacing: -.01em; }
body.admin .card { border: 1px solid #ecece8; border-radius: 22px; padding: 22px; box-shadow: 0 1px 0 rgba(0, 0, 0, .02); }
.inp, .adm-main select, .adm-main textarea, .adm-main input[type=text], .adm-main input[type=number], .adm-main input[type=email], .adm-main input[type=password], .adm-main input[type=date], .adm-main input[type=search], .adm-main input[type=tel] { border-radius: 12px; border: 1.5px solid #e2e2de; min-height: 42px; transition: border-color .2s, box-shadow .2s; }
.adm-main input:focus, .adm-main select:focus, .adm-main textarea:focus { box-shadow: 0 0 0 3px rgba(0, 0, 0, .08); }
.tag { border-radius: var(--pill); padding: 2px 10px; }
.login { border: 0; border-radius: var(--r-l); box-shadow: var(--shadow); padding: 34px 30px; }
.tabsbar { border: 0; gap: 8px; }
.tabsbar button { border: 0; border-radius: var(--pill); padding: 0 20px; background: #ececea; transition: background .2s, color .2s; }
.tabsbar button.on { background: #000; color: #fff; }
.plist { border: 1px solid #ecece8; border-radius: 22px; overflow: hidden; }
.prow { border-bottom-color: #f0f0ec; }
.prow:last-child { border-bottom: 0; }
.prow .th { border-radius: 12px; }
.bulk { border-radius: 18px; }
.bulk .btn { border-color: #fff; }
.ed-ov, .drawer-ov, .dz-ov { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ed { border-radius: var(--r-l); padding: 26px; }
.img-t { border-radius: 16px; border-color: var(--hair); }
.img-t img { border-radius: 10px; }
.add-img { border-radius: 16px; border-color: #cfcfca; }
.opt-chip { border-radius: var(--pill); border-color: #cfcfca; }
.tbl { border-collapse: separate; border-spacing: 0; border: 1px solid #ecece8; border-radius: 20px; overflow: hidden; }
.tbl th { background: #f5f5f3; }
.tbl tr:last-child td { border-bottom: 0; }
.stat > div { border: 1px solid #ecece8; border-radius: 20px; padding: 18px; }
.drawer { border-radius: 28px 0 0 28px; padding: 24px; }
.dz-box { border-radius: var(--r-l); padding: 28px; }
.adm-toast { border-radius: var(--pill); box-shadow: var(--shadow); }
.bar-r i { border-radius: var(--pill); }
.mx { border-collapse: separate; border-spacing: 0; }
.mx th { background: #f5f5f3; }
.adm-main .stat { margin-top: 18px; }
.adm-main .row.sp { margin-bottom: 4px; }

/* ---------- compact footer on phones ---------- */
@media (max-width: 719px) {
  .foot { margin-top: 32px; border-radius: 24px; }
  .foot .wrap { grid-template-columns: 1fr; gap: 12px; padding: 22px 20px 16px; }
  .foot .wrap > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .foot .big { font-size: 20px; }
  .foot .small { margin: 0; font-size: 12px; text-align: end; }
  .foot h3 { display: none; }
  .foot ul { display: flex; flex-wrap: wrap; gap: 4px 6px; }
  .foot ul li { display: block; }
  .foot ul a { display: block; padding: 6px 13px; font-size: 13px; border-radius: 999px; background: #1a1a1a; opacity: 1; }
  .foot .legal { padding-top: 10px; font-size: 11.5px; padding-inline-start: 64px; }
}
