/* RGS Associates — accessories shop (shop.html). Builds on styles.css tokens. */
.shop-hero { padding: 54px 0 18px; }
.shop-hero .row { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
.shop-hero h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.shop-hero p { color: var(--muted); font-size: clamp(15.5px, 1.8vw, 18px); margin-top: 12px; max-width: 640px; }

.acct { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  min-width: 270px; box-shadow: 0 6px 20px -12px rgba(30, 55, 20, 0.25); }
.acct .who { font-weight: 700; font-size: 15px; }
.acct .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.acct .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn.sm { font-size: 14px; padding: 8px 16px; box-shadow: none; }
.btn.sm:hover { transform: none; box-shadow: none; filter: brightness(1.05); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 10px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.pill.in { color: #2e7d32; background: #edf7e6; border-color: rgba(46,125,50,.25); }
.pill.low { color: #a15c00; background: #fff4df; border-color: rgba(161,92,0,.25); }
.pill.out { color: #8a8f86; background: #f1f2ee; }
.pill.price { color: #33691e; background: #edf7e6; border-color: rgba(51,105,30,.25); }

.shop-tools { position: sticky; top: var(--nav-h); z-index: 20; background: rgba(246, 248, 241, 0.92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); padding: 12px 0; }
.shop-tools .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.shop-tools input[type=search] { flex: 1 1 240px; min-width: 0; font: inherit; font-size: 15px; padding: 11px 16px;
  border-radius: 100px; border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.shop-tools input[type=search]:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(124,179,66,.18); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; font: inherit; font-size: 13.5px; font-weight: 600; padding: 8px 14px; border-radius: 100px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); }
.chip.on { background: #33691e; border-color: #33691e; color: #fff; }
.instock { display: inline-flex; gap: 7px; align-items: center; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; }

.grid-shop { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 26px 0 40px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.pcard:hover { box-shadow: 0 18px 40px -22px rgba(30,55,20,.35); transform: translateY(-2px); }
.pcard .ph { aspect-ratio: 4 / 3; background: var(--bg-2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph svg { width: 64px; height: 64px; color: #7cb342; opacity: .75; }
.pcard .bd { padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .cat { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); }
.pcard h3 { font-size: 16.5px; line-height: 1.25; letter-spacing: -0.01em; }
.pcard .meta { font-size: 12.5px; color: var(--muted); }
.pcard .desc { font-size: 13.5px; color: var(--muted); }
.pcard .pr { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.pcard .amt { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.pcard .amt small { font-weight: 600; font-size: 12px; color: var(--muted); }
.pcard .lock { font-size: 12.5px; color: var(--muted); }
.pcard .lock a { font-weight: 600; }
.addrow { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; background: var(--surface); }
.qty button { width: 34px; height: 36px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--text); }
.qty input { width: 54px; height: 36px; border: 0; text-align: center; font: inherit; font-size: 15px; background: transparent; color: var(--text); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.addrow .btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: 14.5px; box-shadow: none; }
.addrow .btn.added { background: #33691e; }
.skel { background: linear-gradient(90deg, var(--bg-2) 0%, #f7faf2 50%, var(--bg-2) 100%); background-size: 200% 100%;
  animation: sk 1.3s linear infinite; border-radius: 18px; height: 330px; }
@keyframes sk { to { background-position: -200% 0; } }
.notice { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; text-align: center; color: var(--muted); margin: 26px 0 40px; }
.notice h3 { color: var(--text); margin-bottom: 6px; }

.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: none; align-items: center; gap: 10px;
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 15.5px; color: #fff; background: #33691e;
  padding: 14px 20px; border-radius: 100px; box-shadow: 0 14px 34px -10px rgba(30,55,20,.6); }
.cart-fab.show { display: inline-flex; }
.cart-fab b { background: #ffce4d; color: #1f2a1b; border-radius: 100px; min-width: 24px; height: 24px; display: inline-flex;
  align-items: center; justify-content: center; font-size: 13px; padding: 0 7px; }

.sheet-bg { position: fixed; inset: 0; background: rgba(20, 30, 15, .45); z-index: 200; display: none; }
.sheet-bg.show { display: block; }
.sheet { position: fixed; z-index: 210; background: var(--surface); display: none; flex-direction: column; overflow: hidden;
  top: 0; right: 0; height: 100%; width: min(480px, 100%); box-shadow: -20px 0 50px -20px rgba(0,0,0,.35); }
.sheet.show { display: flex; }
.sheet.center { top: 50%; left: 50%; right: auto; height: auto; max-height: min(92vh, 760px); transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 24px)); border-radius: 20px; }
.sheet header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet header h3 { font-size: 18px; }
.sheet .x { border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); width: 36px; height: 36px; border-radius: 50%; }
.sheet .x:hover { background: var(--bg-2); }
.sheet .body { padding: 16px 20px 20px; overflow-y: auto; flex: 1; }
.sheet .form { max-width: none; gap: 12px; }
.sheet .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sheet .field input, .sheet .field select, .sheet .field textarea { padding: 11px 13px; font-size: 15px; }
.sheet .field textarea { min-height: 70px; }
.err { color: #b3261e; font-size: 13.5px; min-height: 18px; }
.okmsg { color: #2e7d32; font-size: 14px; }
.line { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 600; font-size: 14.5px; }
.line .nm small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.line .rm { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.tot { display: flex; justify-content: space-between; font-weight: 700; margin: 12px 0 2px; }
.tot small { color: var(--muted); font-weight: 500; }
.asacct { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 12px 0 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 18px 4px; }
.done .big { font-size: 46px; }
.done h4 { font-size: 20px; margin: 6px 0; }
.done p { color: var(--muted); }
.ord { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.ord .t { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; }
.ord ul { margin: 8px 0 0 18px; color: var(--muted); font-size: 13.5px; }
.st { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.st.new { background: #fff4df; color: #a15c00; }
.st.converted { background: #edf7e6; color: #2e7d32; }
.st.declined { background: #fbe9e7; color: #b3261e; }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 6px 0 46px; }
.how div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.how b { display: block; margin-bottom: 4px; }
.how p { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .shop-tools { position: static; }
  .how { grid-template-columns: 1fr; }
  .acct { width: 100%; }
  .grid-shop { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pcard h3 { font-size: 15px; }
  .pcard .desc { display: none; }
  .addrow { flex-wrap: wrap; }
  .addrow .qty { width: 100%; justify-content: space-between; }
  .addrow .qty input { flex: 1; }
  .sheet .frow { grid-template-columns: 1fr; }
  .cart-fab { left: 16px; right: 16px; justify-content: center; }
}

/* ---- v16: packs and the product window ---- */
.pcard a.ph { display: flex; cursor: zoom-in; }
.pcard h3 a { color: inherit; }
.pcard h3 a:hover { color: var(--green-2); text-decoration: none; }
.packtag { color: #8a5a00; font-weight: 700; }
.qty .qunit { font-size: 12.5px; font-weight: 700; color: var(--muted); padding-right: 2px; }
.qty .qunit ~ button { margin-left: -2px; }
.pcard .qty:has(.qunit) input { width: 40px; }
.sheet.product { width: min(940px, calc(100% - 24px)); max-height: min(92vh, 900px); }
.pdetail .pd-top { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.pdetail .pd-ph { aspect-ratio: 1 / 1; background: var(--bg-2); border-radius: 16px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.pdetail .pd-ph img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pdetail .pd-ph svg { width: 110px; height: 110px; color: #7cb342; opacity: .7; }
.pdetail .cat { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); }
.pdetail h2 { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.15; letter-spacing: -0.02em; margin: 6px 0 4px; }
.pdetail .meta { font-size: 13.5px; color: var(--muted); }
.pdetail .pd-lead { margin-top: 10px; font-size: 15.5px; }
.pdetail .pr { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pdetail .amt { font-weight: 800; font-size: 22px; letter-spacing: -0.02em; }
.pdetail .amt small { font-weight: 600; font-size: 13px; color: var(--muted); }
.pdetail .lock { font-size: 13.5px; color: var(--muted); }
.pdetail .addrow { margin-top: 16px; }
.pdetail .addrow .btn { padding: 12px 18px; font-size: 15.5px; }
.pdetail .pd-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.pd-sec { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
.pd-sec h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--green-2); margin-bottom: 8px; }
.pd-sec p { color: var(--text); font-size: 15px; margin-bottom: 8px; }
table.specs { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.specs th, table.specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.specs th { width: 42%; color: var(--muted); font-weight: 600; }
table.specs tr:nth-child(odd) { background: var(--surface-2); }
@media (max-width: 760px) {
  .sheet.product { top: 0; left: 0; transform: none; width: 100%; height: 100%; max-height: none; border-radius: 0; }
  .pdetail .pd-top { grid-template-columns: 1fr; gap: 14px; }
  .pdetail .pd-ph { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .addrow .qty { width: 100%; }
  .addrow .btn { flex: 1 1 100%; }
}
.cat.brand { text-transform: none; letter-spacing: .01em; font-size: 13px; color: var(--muted); font-weight: 600; }
.cat.brand b { color: var(--green-2); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
