/* قرطاسية سامي — واجهة المتجر */
:root {
  --red: #E01B22; --red-d: #B8141A; --red-l: #FDECEC;
  --black: #111111; --ink: #1d1d1f; --gray-9: #2a2a2d; --gray-6: #6b6b72; --gray-4: #a9a9b0; --gray-2: #e7e7ea; --gray-1: #f5f5f6;
  --white: #fff; --ok: #188a4a; --warn: #c27100;
  --radius: 14px; --radius-s: 10px; --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.06);
  --font: "Cairo", "Segoe UI", Tahoma, "Noto Sans Arabic", "DejaVu Sans", Arial, sans-serif;
  --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--gray-1); line-height: 1.6; font-size: 16px; padding-bottom: 64px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 1.6rem; font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 800; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--gray-6); } .small { font-size: .875rem; } .center { text-align: center; }
.skip { position: absolute; right: -999px; } .skip:focus { right: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.ic { width: 22px; height: 22px; flex: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s, transform .1s, border-color .15s; white-space: nowrap; line-height: 1.2; }
.btn .ic { width: 19px; height: 19px; }
.btn:active { transform: scale(.98); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); }
.btn-dark { background: var(--black); color: #fff; } .btn-dark:hover { background: #333; }
.btn-ghost { background: #fff; border-color: var(--gray-2); color: var(--ink); } .btn-ghost:hover { border-color: var(--black); }
.btn-disabled, .btn[disabled] { background: var(--gray-2); color: var(--gray-6); cursor: not-allowed; }
.btn-block { width: 100%; } .btn-lg { padding: 14px 26px; font-size: 1.05rem; } .grow { flex: 1; }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-left-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 12px; }
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.header-row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo . cart" "search search search"; align-items: center; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
.logo { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; color: #fff; }
.logo img { height: 44px; width: auto; }
.logo-mark svg { width: 40px; height: 40px; display: block; }
.logo-text { white-space: nowrap; }
.search { grid-area: search; display: flex; background: #fff; border-radius: 999px; overflow: hidden; border: 2px solid #fff; }
.search input { flex: 1; min-width: 0; border: 0; padding: 10px 16px; outline: none; color: var(--ink); background: transparent; }
.search button { border: 0; background: var(--red); color: #fff; padding: 0 18px; cursor: pointer; display: grid; place-items: center; }
.cart-link { grid-area: cart; position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 700; }
.cart-link:hover { background: rgba(255,255,255,.16); }
.cart-label { display: none; }
.cart-count { position: absolute; top: -4px; left: -4px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--black); }
.cart-count.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.cat-nav { background: var(--gray-9); border-top: 1px solid rgba(255,255,255,.06); }
.cat-nav-row { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 6px; padding-bottom: 6px; }
.cat-nav-row::-webkit-scrollbar { display: none; }
.cat-nav a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; font-size: .9rem; font-weight: 600; color: #ddd; }
.cat-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.cat-nav a.on { background: #fff; color: var(--black); }
.cat-nav a.hot { color: #fff; background: var(--red); }

/* ---------- Hero slider ---------- */
.hero-wrap { background: var(--black); }
.hero { position: relative; min-height: 260px; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; background: var(--black) var(--bg) left center / cover no-repeat; display: flex; align-items: center; pointer-events: none; }
.slide.on { opacity: 1; position: relative; pointer-events: auto; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.55) 55%, rgba(0,0,0,0) 100%); }
.slide-inner { position: relative; padding-top: 44px; padding-bottom: 56px; }
.slide-text { max-width: 560px; color: #fff; }
.slide-text h1 { font-size: 1.9rem; margin-bottom: .35em; }
.slide-text p { font-size: 1.05rem; color: #eee; margin: 0 0 1.2em; }
.dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; transition: width .2s; }
.dots button.on { width: 28px; background: var(--red); }

/* ---------- Perks / sections ---------- */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: -22px; position: relative; z-index: 2; }
.perks > div { background: #fff; border-radius: var(--radius); padding: 12px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); }
.perks .ic { color: var(--red); width: 28px; height: 28px; }
.perks b { display: block; font-size: .9rem; } .perks small { color: var(--gray-6); font-size: .78rem; display: block; line-height: 1.4; }
.section { padding-top: 28px; padding-bottom: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { margin: 0; position: relative; padding-right: 14px; }
.section-head h2::before { content: ""; position: absolute; right: 0; top: 4px; bottom: 4px; width: 5px; border-radius: 3px; background: var(--red); }
.more { color: var(--red); font-weight: 700; font-size: .9rem; display: inline-flex; align-items: center; gap: 2px; }
.more .ic { width: 18px; height: 18px; }
.offers-band { background: var(--black); margin-top: 28px; padding-bottom: 24px; }
.offers-band .section-head h2 { color: #fff; }
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cat { background: #fff; border-radius: var(--radius); padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-weight: 700; font-size: .85rem; box-shadow: var(--shadow); transition: transform .15s; }
.cat:hover { transform: translateY(-2px); }
.cat-ic { width: 52px; height: 52px; border-radius: 50%; background: var(--red-l); color: var(--red); display: grid; place-items: center; }
.cat-ic .ic { width: 28px; height: 28px; }
.cat:hover .cat-ic { background: var(--red); color: #fff; }

/* ---------- Product grid & cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.products-row { grid-auto-flow: row; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.1); }
.card-img { position: relative; aspect-ratio: 1; background: var(--gray-1); display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.is-out .card-img img { opacity: .55; filter: grayscale(.6); }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--gray-4); } .noimg .ic { width: 40px; height: 40px; }
.noimg.sm { width: 56px; height: 56px; background: var(--gray-1); border-radius: 8px; }
.badge { position: absolute; top: 8px; right: 8px; padding: 3px 9px; border-radius: 999px; font-size: .78rem; font-weight: 800; }
.badge-red { background: var(--red); color: #fff; }
.badge-dark { background: var(--black); color: #fff; right: auto; left: 8px; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-cat { font-size: .75rem; color: var(--gray-6); font-weight: 600; }
.card-title { font-size: .93rem; font-weight: 700; margin: 0; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.9em; }
.card-title a:hover { color: var(--red); }
.card .btn { margin-top: auto; padding: 9px 10px; font-size: .88rem; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.price .now { color: var(--red); font-weight: 800; font-size: 1.1rem; }
.price del { color: var(--gray-4); font-size: .85rem; }
.price-lg .now { font-size: 1.7rem; } .price-lg del { font-size: 1.05rem; }

/* ---------- Info cards / footer ---------- */
.info-cards { display: grid; gap: 12px; padding-top: 32px; padding-bottom: 32px; }
.info-card { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.info-card .ic { color: var(--red); width: 30px; height: 30px; margin-bottom: 6px; }
.info-card p { margin: 0 0 8px; color: var(--gray-6); }
.info-card a { color: var(--red); font-weight: 700; }
.site-footer { background: var(--black); color: #fff; padding-top: 34px; }
.footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.site-footer h3 { font-size: 1rem; margin-bottom: 10px; color: #fff; }
.muted-light { color: #b9b9be; margin: 6px 0; }
.contact-list, .links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #ddd; }
.contact-list li { display: flex; gap: 8px; align-items: center; } .contact-list .ic { color: var(--red); width: 20px; height: 20px; }
.links a:hover, .contact-list a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 8px; margin-top: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; }
.socials a:hover { background: var(--red); }
.copy { text-align: center; color: #8d8d93; font-size: .85rem; padding: 18px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 28px; }

.wa-float { position: fixed; left: 14px; bottom: 76px; width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 45; }
.wa-float .ic { width: 30px; height: 30px; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 62px; background: #fff; border-top: 1px solid var(--gray-2); display: grid; grid-template-columns: repeat(3, 1fr); z-index: 50; padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .75rem; font-weight: 700; color: var(--gray-6); position: relative; }
.bottom-nav a.on { color: var(--red); }
.bottom-nav .cart-count { top: 4px; left: calc(50% - 24px); border-color: #fff; }

.toast { position: fixed; bottom: 80px; left: 50%; transform: translate(-50%, 20px); background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: .25s; z-index: 80; max-width: 92vw; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: var(--red); }
.toast a { text-decoration: underline; margin-inline-start: 10px; color: #fff; font-weight: 800; }

/* ---------- Shop listing ---------- */
.page-head { padding-top: 18px; padding-bottom: 6px; }
.page-head h1 { margin-bottom: 2px; } .page-head p { margin: 0; }
.crumbs { font-size: .85rem; color: var(--gray-6); margin: 14px 0 8px; } .crumbs a:hover { color: var(--red); }
.shop-layout { display: grid; gap: 14px; padding-bottom: 32px; }
.filter-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-box summary { padding: 12px 16px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; list-style: none; }
.filter-box summary::-webkit-details-marker { display: none; }
.filter-box summary .ic { color: var(--red); }
.filter-form { padding: 0 16px 16px; display: grid; gap: 12px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
input[type=text], input[type=search], input[type=number], input[type=tel], input:not([type]), select, textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--gray-2); border-radius: var(--radius-s); background: #fff; font-weight: 500; outline: none; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--black); }
input.invalid, select.invalid { border-color: var(--red); background: var(--red-l); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--red); }
.sort-bar { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.sort-bar a { white-space: nowrap; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--gray-2); font-size: .85rem; font-weight: 700; }
.sort-bar a.on { background: var(--black); color: #fff; border-color: var(--black); }
.pager { display: flex; justify-content: center; gap: 6px; margin: 24px 0; flex-wrap: wrap; }
.pager a { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; background: #fff; font-weight: 700; border: 1.5px solid var(--gray-2); }
.pager a.on { background: var(--red); color: #fff; border-color: var(--red); }
.empty { background: #fff; border-radius: var(--radius); padding: 40px 20px; text-align: center; box-shadow: var(--shadow); }
.empty .ic { width: 56px; height: 56px; color: var(--gray-4); margin: 0 auto 10px; }
.empty.big { margin: 40px 0; }
.loading { padding: 30px; text-align: center; color: var(--gray-6); }

/* ---------- Product page ---------- */
.pdp { display: grid; gap: 18px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.gallery-main { display: block; position: relative; width: 100%; aspect-ratio: 1; background: var(--gray-1); border-radius: var(--radius-s); overflow: hidden; border: 0; padding: 0; cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.zoom-hint { position: absolute; bottom: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: var(--shadow); }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs button { flex: none; width: 70px; height: 70px; border-radius: 10px; overflow: hidden; border: 2px solid var(--gray-2); padding: 0; cursor: pointer; background: var(--gray-1); }
.thumbs button.on { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info h1 { font-size: 1.45rem; margin: 4px 0 6px; }
.stock-line { margin: 0 0 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.stock-line .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; } .stock-line .ok .ic { width: 18px; }
.stock-line .warn { color: var(--warn); } .stock-line .bad { color: var(--red); }
.opt { border: 0; padding: 0; margin: 0 0 14px; }
.opt legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--gray-2); background: #fff; border-radius: 10px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.chip.on { border-color: var(--black); background: var(--black); color: #fff; }
.chip.na { opacity: .45; text-decoration: line-through; }
.buy-row { display: flex; gap: 10px; align-items: stretch; margin: 6px 0 12px; }
.qty { display: flex; align-items: center; border: 2px solid var(--gray-2); border-radius: 999px; overflow: hidden; background: #fff; }
.qty button { border: 0; background: transparent; width: 42px; height: 46px; cursor: pointer; display: grid; place-items: center; }
.qty button:hover { color: var(--red); }
.qty input { width: 46px; border: 0; text-align: center; font-weight: 800; padding: 0; -moz-appearance: textfield; background: transparent; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty.sm button { width: 34px; height: 36px; } .qty.sm input { width: 36px; } .qty.sm .ic { width: 16px; height: 16px; }
.wa-ask { color: #128C4A; } .wa-ask .ic { color: #25D366; }
.mini-perks { list-style: none; padding: 14px; margin: 14px 0; background: var(--gray-1); border-radius: var(--radius-s); display: grid; gap: 8px; font-size: .9rem; }
.mini-perks li { display: flex; gap: 8px; align-items: flex-start; } .mini-perks .ic { color: var(--red); width: 20px; }
.mini-perks a { text-decoration: underline; }
.desc { border-top: 1px solid var(--gray-2); padding-top: 14px; } .desc p { margin: 0 0 .8em; color: var(--gray-9); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 100; display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lb-stage { width: 100%; height: 100%; overflow: auto; display: flex; align-items: center; justify-content: center; touch-action: pinch-zoom; }
.lb-stage img { max-width: 96vw; max-height: 88vh; object-fit: contain; cursor: zoom-in; transition: transform .2s; }
.lb-stage.zoomed img { max-width: none; max-height: none; width: 180vw; cursor: zoom-out; }
.lightbox button { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-close { top: 14px; right: 14px; } .lb-prev { right: 14px; top: 50%; } .lb-next { left: 14px; top: 50%; }

/* ---------- Cart & checkout ---------- */
.cart-layout { display: grid; gap: 16px; padding-bottom: 32px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-line { background: #fff; border-radius: var(--radius); padding: 12px; display: grid; grid-template-columns: 76px 1fr; gap: 12px; box-shadow: var(--shadow); }
.cart-line img, .cart-line .noimg { width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--gray-1); }
.cart-line h3 { font-size: .95rem; margin: 0; } .cart-line h3 a:hover { color: var(--red); }
.cart-line .meta { font-size: .82rem; color: var(--gray-6); }
.cart-line .line-err { color: var(--red); font-size: .85rem; font-weight: 700; }
.cart-line .line-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .lt { font-weight: 800; }
.icon-btn { border: 0; background: var(--gray-1); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--gray-6); }
.icon-btn:hover { background: var(--red-l); color: var(--red); } .icon-btn .ic { width: 18px; height: 18px; }
.summary, .card-box { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card-box { margin-bottom: 14px; }
.summary h2 { margin-bottom: 12px; }
.coupon { display: flex; gap: 8px; } .coupon input { flex: 1; text-transform: uppercase; }
.coupon-msg { font-size: .85rem; font-weight: 700; min-height: 1.3em; margin: 6px 0; }
.coupon-msg.ok { color: var(--ok); } .coupon-msg.err { color: var(--red); }
.totals { margin: 8px 0 14px; display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; gap: 10px; }
.totals dt { color: var(--gray-6); } .totals dd { margin: 0; font-weight: 700; }
.totals .disc dd { color: var(--ok); }
.totals .grand { border-top: 2px dashed var(--gray-2); padding-top: 10px; margin-top: 4px; font-size: 1.15rem; }
.totals .grand dt { color: var(--ink); font-weight: 800; } .totals .grand dd { color: var(--red); font-weight: 800; }
.free-note { background: var(--red-l); color: var(--red-d); padding: 8px 12px; border-radius: 10px; font-size: .85rem; font-weight: 700; margin-bottom: 10px; }
.checkout { display: grid; gap: 12px; margin: 0; }
.checkout h2 { margin: 6px 0 0; }
.err { color: var(--red); font-size: .8rem; font-weight: 700; min-height: 0; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; }
.pay-opt > span { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 2px solid var(--gray-2); border-radius: var(--radius-s); padding: 12px 14px; }
.pay-opt .ic { grid-row: span 2; color: var(--red); width: 28px; height: 28px; }
.pay-opt small { color: var(--gray-6); font-weight: 500; }
.pay-opt input:checked + span { border-color: var(--red); background: var(--red-l); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--red); }
.bank-box { background: var(--gray-1); border-radius: var(--radius-s); padding: 14px; display: grid; gap: 8px; }
.bank-box h3 { margin: 0; font-size: 1rem; } .bank-box p { margin: 0; }
.form-error { color: var(--red); font-weight: 700; margin: 0; min-height: 0; }
.mini-lines { display: grid; gap: 8px; margin-bottom: 12px; max-height: 320px; overflow: auto; }
.mini-line { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; }
.mini-line img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: var(--gray-1); }
.mini-line small { display: block; color: var(--gray-6); }
.alert { padding: 12px 14px; border-radius: var(--radius-s); background: #fff7e6; color: #7a4b00; font-weight: 600; }
.alert.ok { background: #e8f6ee; color: #11683a; } .alert.err { background: var(--red-l); color: var(--red-d); }

/* ---------- Order page ---------- */
.success-hero { text-align: center; padding: 28px 10px 10px; }
.check-circle { width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; animation: pop .5s ease; }
.check-circle .ic { width: 42px; height: 42px; stroke-width: 3; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
.keep { border: 2px solid var(--black); }
.order-no { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-no b { font-size: 1.7rem; color: var(--red); font-weight: 800; }
.keep-note { display: flex; gap: 8px; align-items: flex-start; color: var(--gray-9); font-size: .9rem; } .keep-note .ic { color: var(--red); }
.copy-row { display: flex; gap: 8px; } .copy-row input { flex: 1; font-size: .85rem; background: var(--gray-1); }
.steps { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: s; }
.steps li { text-align: center; font-size: .75rem; color: var(--gray-6); position: relative; }
.steps li::before { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; background: var(--gray-2); z-index: 0; }
.steps li:first-child::before { display: none; }
.steps li.done::before, .steps li.cur::before { background: var(--red); }
.steps span { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; background: var(--gray-2); display: grid; place-items: center; margin: 0 auto 6px; font-weight: 800; color: var(--gray-6); }
.steps .ic { width: 18px; height: 18px; stroke-width: 3; }
.steps li.done span { background: var(--red); color: #fff; }
.steps li.cur span { background: var(--black); color: #fff; box-shadow: 0 0 0 4px var(--red-l); }
.steps li.cur b, .steps li.done b { color: var(--ink); }
.status-final { font-size: 1.3rem; font-weight: 800; padding: 12px; border-radius: 10px; text-align: center; background: var(--gray-1); }
.status-final.cancelled { color: var(--red); background: var(--red-l); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .88rem; }
.timeline li { display: flex; gap: 10px; border-right: 3px solid var(--gray-2); padding-right: 10px; }
.timeline time { color: var(--gray-6); white-space: nowrap; font-size: .8rem; }
.order-lines { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.order-lines li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.order-lines img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--gray-1); }
.order-lines small { display: block; color: var(--gray-6); }
.order-lines .lt { font-weight: 800; }
.grid2 { display: grid; gap: 14px; } .grid2 .card-box { margin: 0; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--gray-2); }
.pay-paid { background: #e3f5ea; color: #11683a; } .pay-pending_review { background: #fff1d6; color: #8a5200; } .pay-rejected { background: var(--red-l); color: var(--red-d); }
.proof-form { display: grid; gap: 8px; margin-top: 10px; }
.prose p { margin: 0 0 1em; color: var(--gray-9); }

/* ---------- Responsive ---------- */
@media (min-width: 600px) {
  .grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .perks { grid-template-columns: repeat(4, 1fr); }
  .cats { grid-template-columns: repeat(7, 1fr); }
  .info-cards { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 340px; }
  .slide-text h1 { font-size: 2.4rem; }
}
@media (min-width: 900px) {
  body { padding-bottom: 0; }
  .bottom-nav { display: none; }
  .wa-float { bottom: 22px; left: 22px; }
  .toast { bottom: 28px; }
  .header-row { grid-template-columns: auto 1fr auto; grid-template-areas: "logo search cart"; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
  .search { max-width: 620px; justify-self: center; width: 100%; }
  .cart-label { display: inline; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .shop-layout { grid-template-columns: 260px 1fr; align-items: start; }
  .filters { position: sticky; top: 140px; }
  .shop-main .grid { grid-template-columns: repeat(3, 1fr); }
  .pdp { grid-template-columns: 1fr 1fr; gap: 32px; padding: 24px; }
  .pdp-info h1 { font-size: 1.8rem; }
  .cart-layout { grid-template-columns: 1fr 380px; }
  .summary { position: sticky; top: 140px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .hero { min-height: 420px; }
  .slide-inner { padding-top: 70px; padding-bottom: 80px; }
  .slide-text h1 { font-size: 3rem; }
  .slide-text p { font-size: 1.2rem; }
  .perks { margin-top: -34px; }
  .perks > div { padding: 16px; }
}
@media (min-width: 1200px) { .shop-main .grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 380px) { .logo { font-size: 1.15rem; } .logo-mark svg { width: 34px; height: 34px; } .card-body { padding: 8px 9px 10px; } .price .now { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
[hidden] { display: none !important; }
.hero .dots { bottom: 30px; }
@media (min-width: 900px) { .hero .dots { bottom: 44px; } }
.hero { display: grid; }
.slide.on { min-height: inherit; }
