/* Armocom shop: additions on top of the main site's style.css */
.shop-section { padding-top: clamp(32px, 5vw, 56px); }
.shop-head { margin-bottom: 28px; }
.shop-head h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 720; }

.cart-btn { cursor: pointer; font: inherit; font-weight: 600; font-size: .94rem; display: inline-flex !important; }
.cart-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--on-accent); color: var(--accent); font-size: .8rem; font-weight: 700; }

.field { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; }
.field:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.search { max-width: 460px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: inherit; font-size: .92rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.pcard { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pcard-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-alt); border: 0; padding: 0; cursor: pointer; width: 100%; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: .85rem; }
.badge { position: absolute; top: 10px; inset-inline-start: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: var(--surface); color: var(--text); border: 1px solid var(--line); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.pcard-cat { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.pcard-name { font-size: 1.04rem; font-weight: 650; line-height: 1.3; background: none; border: 0; padding: 0; color: var(--text); font-family: inherit; text-align: start; cursor: pointer; }
.pcard-name:hover { color: var(--accent); }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 1.2rem; font-weight: 720; white-space: nowrap; }
.price.ask { font-size: .95rem; font-weight: 600; color: var(--muted); }
.stock { font-size: .82rem; font-weight: 600; color: #15803d; }
.stock.out { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stock { color: #4ade80; } :root:not([data-theme="light"]) .stock.out { color: var(--muted); } }
.btn-add { font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; padding: 8px 16px; border-radius: 999px; background: var(--accent); color: var(--on-accent); border: 1px solid var(--accent); white-space: nowrap; }
.btn-add:hover { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-add[disabled] { background: transparent; color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.empty { color: var(--muted); padding: 40px 0; text-align: center; }

/* Dialogs */
.dlg { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); padding: 28px; width: min(760px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: auto; box-shadow: var(--shadow); }
.dlg::backdrop { background: rgba(5, 12, 24, .6); }
.dlg h2 { font-size: 1.5rem; margin-bottom: 18px; padding-inline-end: 40px; }
.dlg-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dlg-close:hover { border-color: var(--accent); }
.dlg-cart { width: min(620px, calc(100% - 24px)); }

.pd-body { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.pd-gallery .main { aspect-ratio: 4 / 3; background: var(--bg-alt); border-radius: 12px; overflow: hidden; }
.pd-gallery .main img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { width: 62px; height: 62px; padding: 0; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: var(--bg-alt); }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd-info h2 { margin-bottom: 8px; }
.pd-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.pd-desc { white-space: pre-line; color: var(--muted); font-size: .98rem; }
.pd-buy { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }

/* Cart */
.citem { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.citem img, .citem .noimg { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg-alt); font-size: .6rem; }
.citem-name { font-weight: 600; line-height: 1.3; }
.citem-price { color: var(--muted); font-size: .9rem; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.qty button:hover { border-color: var(--accent); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; }
.cart-total { font-size: 1.15rem; font-weight: 700; margin: 16px 0 20px; text-align: end; }
.cart-total small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: grid; gap: 6px; font-size: .9rem; font-weight: 600; }
.form-grid .wide { grid-column: 1 / -1; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-hint { color: var(--muted); font-size: .9rem; margin: 14px 0; }
.form-error { color: #b91c1c; font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #f87171; } }
.done-title { font-size: 1.2rem; font-weight: 700; }
#orderSubmit { cursor: pointer; font: inherit; font-weight: 600; width: 100%; }
#orderSubmit[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 1100px) { .cart-btn { margin-inline-start: 0; } }
@media (max-width: 700px) {
  .pd-body { grid-template-columns: 1fr; }
  .dlg { padding: 22px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .pcard-body { padding: 12px; }
  .pcard-foot { flex-direction: column; align-items: stretch; }
  .btn-add { text-align: center; }
}
@media (max-width: 480px) {
  .cart-btn span[data-i18n] { display: none; }
  .cart-btn { padding: 8px 10px; }
  .bar { gap: 8px; }
  .actions { gap: 6px; }
  .brand { gap: 8px; min-width: 0; }
  .brand img { width: 40px; }
  .brand-name { font-size: 1.02rem; letter-spacing: .1em; }
  .brand-tag { display: none; }
  .lang { padding: 6px 9px; font-size: .84rem; }
  .burger { width: 38px; height: 38px; }
}
.pd-report { margin-top: 12px; font-weight: 600; }
.pd-report a { color: var(--accent); }
