/* header buttons, the menu, the cart drawer and the help / contact windows (shared by the seller page and the product page) */
.band .hdr-r { display: flex; align-items: center; gap: 8px; flex: none; }
.band .hdr-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; text-decoration: none; }
.band .hdr-btn:hover { background: rgba(255,255,255,.22); }
.band .hdr-btn svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hdr-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #f26b4f; color: #fff; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; box-sizing: border-box; border: 2px solid #0a4a8a; }
.hdr-n[hidden] { display: none; }

.cartb { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; background: rgba(15,25,40,.38); }
.cartb[hidden], .cartp[hidden], .hmenu[hidden] { display: none; }

/* menu */
.hmenu { position: fixed; right: 12px; z-index: 46; min-width: 230px; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 6px; }
.hm-i { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 0; background: none; border-radius: 10px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.hm-i:hover { background: #f1f4f8; }
.hm-i svg { width: 21px; height: 21px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* cart drawer: one card per seller */
.cartp { position: fixed; right: 0; width: min(460px, 100%); z-index: 45; background: #e7eaee; color: var(--text, #1d2226); box-shadow: -8px 0 28px rgba(0,0,0,.18); overflow-y: auto; border-radius: 16px 0 0 0; }
.cartbox .cbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; background: #e7eaee; }
.cartbox .cbar h2 { margin: 0; font-size: 18px; font-weight: 600; }
.cartbox .cbar small { font-size: 12.5px; color: #6b737c; }
.cartbox .cbar .x { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(0,0,0,.06); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.cartbox .cbody { padding: 2px 10px 22px; }
.cartbox .scard, .cartbox .sumcard { background: var(--card, #fff); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 26px; overflow: hidden; box-shadow: 0 1px 3px rgba(20,30,50,.08); }
.cartbox .sumcard { margin-top: 6px; margin-bottom: 0; padding: 14px; }
.cartbox .shead { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.cartbox .shead .av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #f26b4f, #f2a65a); }
.cartbox .shead .sn { font-size: 15px; font-weight: 600; line-height: 1.25; }
.cartbox .citem { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid #eef0f3; align-items: center; }
.cartbox .citem > a { display: block; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #f3f4f6; }
.cartbox .citem img { width: 64px; height: 64px; object-fit: cover; display: block; }
.cartbox .citem .r1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.cartbox .citem .nm { font-size: 13.5px; font-weight: 500; line-height: 1.3; color: var(--text); text-decoration: none; }
.cartbox .citem .op { margin-top: 2px; font-size: 12px; color: #6b737c; }
.cartbox .citem .del { flex: none; width: 30px; height: 30px; margin: -4px -6px 0 0; border: 0; border-radius: 50%; background: none; color: #8b939c; display: grid; place-items: center; cursor: pointer; }
.cartbox .citem .del:hover { background: #fdecec; color: #c62828; }
.cartbox .citem .del svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cartbox .citem .r2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.cartbox .citem .pr { font-size: 15px; font-weight: 700; white-space: nowrap; }
.cartbox .qty { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #dde2e7; border-radius: 999px; background: #f6f7f9; }
.cartbox .qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #cfd6dd; background: #fff; font-size: 16px; line-height: 1; color: #0a66c2; cursor: pointer; padding: 0; }
.cartbox .qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 700; }
.cartbox .stotal { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 14px 8px; border-top: 1px solid #eef0f3; font-size: 14px; font-weight: 600; }
.cartbox .stotal b { font-size: 17px; font-weight: 700; }
.cartbox .sloc { padding: 0 14px 10px; }
.cartbox .sloc label { display: block; margin-bottom: 5px; font-size: 12px; font-weight: 500; color: #6b737c; }
.cartbox .sloc input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #dfe3e8; border-radius: 10px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.cartbox .sloc input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cartbox .sbtn { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 4px auto 0; padding: 0 22px; height: 42px; border: 0; border-radius: 999px; background: #1f9d55; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cartbox .sbtn:active { background: #178246; }
.cartbox .sbtn svg.wa { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.cartbox .scap { padding: 7px 14px 12px; text-align: center; font-size: 11.5px; color: #7a828b; }
.cartbox .sstate { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px 12px; }
.cartbox .sstate .chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border-radius: 999px; background: #e9f6ee; border: 1px solid #cfe9d9; color: #1a7f37; font-size: 12px; font-weight: 600; }
.cartbox .sstate .chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.cartbox .sstate button { border: 0; background: none; padding: 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--accent); cursor: pointer; text-decoration: underline; }
.cartbox .scard:not(.done) .sstate { display: none; }
.cartbox .scard.done .scap { display: none; }
.cartbox .sumcard h2 { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.cartbox .sumsel { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eef0f3; }
.cartbox .sumsel:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.cartbox .sumsel .h { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.cartbox .sumline { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 13px; color: #4a5560; }
.cartbox .sumline span:last-child { white-space: nowrap; font-weight: 500; color: var(--text); }
.cartbox .sumtotal { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.cartbox .sumtotal b { font-size: 19px; font-weight: 700; }
.cartbox .empty { text-align: center; padding: 48px 20px; color: #6b737c; font-size: 14px; }
.cartbox .empty a { display: inline-block; margin-top: 14px; padding: 10px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; }

/* help and contact windows */
.hmodal { position: fixed; inset: 0; z-index: 60; background: rgba(15,25,40,.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; }
.hbox { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: #fff; border-radius: 16px; padding: 26px 22px 22px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.hbox h1 { margin: 0 0 4px; font-size: 22px; font-weight: 600; }
.hbox .lede { margin: 0 0 16px; color: #66707c; font-size: 14px; }
.hbox .hx { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f4f8; font-size: 22px; line-height: 1; cursor: pointer; color: var(--text); }
.hbox details { border-top: 1px solid #eceff2; padding: 4px 0; }
.hbox summary { cursor: pointer; padding: 12px 0; font-size: 15px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.hbox summary::after { content: "+"; font-size: 20px; font-weight: 400; color: #8b939c; }
.hbox details[open] summary::after { content: "\2212"; }
.hbox summary::-webkit-details-marker { display: none; }
.hbox details p { margin: 0 0 12px; font-size: 14.5px; line-height: 1.6; color: #3a434c; }
.hbox .foot { margin: 16px 0 0; font-size: 13px; color: #66707c; line-height: 1.6; }
.hbox .foot a { color: var(--accent); font-weight: 600; }
.hbox .crow { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid #eceff2; font-size: 14px; }
.hbox .crow span { color: #66707c; }
.hbox .crow b { font-weight: 600; text-align: right; }
.hbox .crow a { color: var(--accent); text-decoration: none; }
.hbox .cbtn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 14px; height: 46px; border-radius: 999px; background: #1f9d55; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none; }
.hbox .cbtn svg.wa { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.hbox .socwrap { margin: 14px 0 4px; padding-top: 14px; border-top: 1px solid #eceff2; }
.hbox .soct { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.hbox .soct small { font-weight: 400; color: #66707c; margin-left: 6px; }
.hbox .soc { display: flex; flex-wrap: wrap; gap: 8px; }
.hbox .sbn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid #cfd6dd; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.hbox .sbn:hover { border-color: var(--accent); color: var(--accent); }
.hbox .sbn { gap: 8px; }
.hbox .sbn .si { width: 18px; height: 18px; flex: none; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
