/* WDevCMS store */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-cart { margin-left: 4px; padding: 8px; }
.site-header .header-cart .cms-cart-count { top: -2px; right: -4px; }

/* grid */
.shop-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.shop-cats a { padding: 6px 14px; border-radius: 99px; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); font-size: 15px; }
.shop-cats a.active, .shop-cats a:hover { background: var(--primary); color: #fff; }
.shop-archive { padding-bottom: 70px; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px; }
.shop-card-thumb { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.shop-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.shop-card:hover .shop-card-thumb img { transform: scale(1.04); }
.shop-noimg { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 48px; opacity: .35; }
.shop-badge { position: absolute; top: 12px; left: 12px; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.shop-badge.is-out { background: #4b5563; }
.shop-card-body h2 { font-size: 1.05rem; margin: 12px 0 4px; line-height: 1.35; }
.shop-card-body h2 a { color: var(--text); text-decoration: none; }
.shop-card-price { font-weight: 700; }

/* product */
.shop-product { padding: 28px 20px 40px; }
.shop-crumbs { font-size: 14px; margin-bottom: 18px; opacity: .8; }
.shop-crumbs a { color: inherit; } .shop-crumbs span { margin: 0 6px; opacity: .5; }
.shop-product-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.shop-gallery-main { border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--text) 5%, var(--bg)); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.shop-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-gallery-main.shop-noimg { font-size: 80px; }
.shop-thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.shop-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; }
.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb.active { border-color: var(--primary); }
.shop-title { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 10px; }
.shop-price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-price { font-size: 1.6rem; font-weight: 800; }
.shop-tax-note { font-size: 14px; opacity: .6; }
.shop-short { opacity: .85; }
.shop-option { border: 0; padding: 0; margin: 0 0 16px; }
.shop-option legend { font-size: 14px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.shop-option legend b { font-weight: 400; opacity: .75; }
.shop-option-values { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-chip { position: relative; cursor: pointer; }
.shop-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.shop-chip span { display: inline-block; padding: 8px 16px; border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 8px; font-size: 15px; }
.shop-chip input:checked + span { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, transparent); font-weight: 600; }
.shop-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.shop-chip.is-unavailable span { opacity: .45; text-decoration: line-through; }
.shop-stock { font-size: 14px; min-height: 1.4em; margin-bottom: 10px; }
.shop-stock.low { color: #b45309; } .shop-stock.out { color: #b91c1c; }
.shop-add-row { display: flex; gap: 12px; flex-wrap: wrap; }
.shop-qty { display: inline-flex; align-items: stretch; border: 1.5px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 10px; overflow: hidden; }
.shop-qty button { width: 40px; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--text); }
.shop-qty input { width: 48px; border: 0; text-align: center; font: inherit; background: none; color: var(--text); -moz-appearance: textfield; }
.shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.shop-add-btn { flex: 1; min-width: 180px; justify-content: center; }
.shop-add-btn[disabled] { opacity: .5; cursor: not-allowed; }
.shop-added { margin-top: 12px; padding: 10px 14px; border-radius: 8px; background: #ecfdf5; color: #065f46; font-size: 15px; }
.shop-added a { color: inherit; font-weight: 600; }
.shop-kind-note { margin-top: 16px; font-size: 15px; opacity: .8; }
.shop-meta { font-size: 14px; opacity: .75; }
.shop-description { margin-top: 20px; }

/* cart / checkout / order */
.shop-page { padding: 36px 20px 80px; }
.shop-page h1 { margin: 0 0 22px; }
.shop-loading { opacity: .6; }
.shop-lines { width: 100%; border-collapse: collapse; }
.shop-lines td { padding: 14px 8px; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); vertical-align: middle; }
.shop-line-img { width: 72px; } .shop-line-img img, .shop-line-img span { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--text) 5%, var(--bg)); }
.shop-line-title a { color: var(--text); font-weight: 600; text-decoration: none; }
.shop-line-title small { display: block; opacity: .65; }
.shop-line-total { text-align: right; font-weight: 600; white-space: nowrap; }
.shop-remove { border: 0; background: none; color: inherit; opacity: .55; cursor: pointer; font-size: 13px; text-decoration: underline; padding: 4px 0 0; }
.shop-cart-foot { display: flex; justify-content: flex-end; margin-top: 24px; }
.shop-cart-totals { min-width: 300px; }
.shop-cart-totals .row { display: flex; justify-content: space-between; gap: 20px; padding: 4px 0; }
.shop-cart-totals .total { font-size: 1.25rem; font-weight: 800; border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent); margin-top: 6px; padding-top: 10px; }
.shop-cart-totals .muted, .shop-muted { opacity: .6; font-size: 14px; }
.shop-cart-totals .cms-btn { width: 100%; justify-content: center; margin-top: 14px; }
.shop-alert, .shop-error { padding: 12px 16px; border-radius: 8px; background: #fef3c7; color: #92400e; margin-bottom: 18px; }
.shop-error { background: #fee2e2; color: #991b1b; }
.shop-checkout-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.shop-checkout-form section { margin-bottom: 26px; }
.shop-checkout-form h2 { font-size: 1.15rem; margin: 0 0 14px; }
.shop-checkout-form h2 small { font-weight: 400; opacity: .6; }
.shop-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; flex: 1; }
.shop-field input, .shop-field select, .shop-field textarea { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid color-mix(in srgb, var(--text) 22%, transparent); border-radius: 8px; background: var(--bg); color: var(--text); width: 100%; }
.shop-field.invalid input, .shop-field.invalid select { border-color: #dc2626; }
.shop-row { display: flex; gap: 14px; }
.shop-shipping-options { display: flex; flex-direction: column; gap: 8px; }
.shop-ship { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid color-mix(in srgb, var(--text) 16%, transparent); border-radius: 10px; cursor: pointer; }
.shop-ship:has(input:checked) { border-color: var(--primary); background: color-mix(in srgb, var(--primary) 6%, transparent); }
.shop-ship b { margin-left: auto; }
.shop-terms { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; }
.shop-pay-card { width: 100%; justify-content: center; margin-bottom: 12px; }
.shop-paypal { min-height: 50px; }
.shop-secure { font-size: 13px; opacity: .65; margin-top: 10px; }
.shop-summary { position: sticky; top: 100px; padding: 22px; border-radius: 14px; background: color-mix(in srgb, var(--text) 4%, var(--bg)); }
.shop-summary h2 { font-size: 1.1rem; margin: 0 0 12px; }
.shop-sum-line { display: flex; gap: 12px; align-items: center; padding: 8px 0; font-size: 15px; }
.shop-sum-line .q { opacity: .6; } .shop-sum-line b { margin-left: auto; white-space: nowrap; }
.shop-order-no { margin: 0; font-weight: 600; opacity: .6; }
.shop-lead { font-size: 1.1rem; }
.shop-box { padding: 16px 20px; border-radius: 12px; background: color-mix(in srgb, var(--text) 4%, var(--bg)); margin: 18px 0; }
.shop-box h2 { margin: 0 0 10px; font-size: 1.1rem; }
.shop-downloads ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.shop-order-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; margin: 20px 0 30px; }
.shop-table { width: 100%; border-collapse: collapse; }
.shop-table td, .shop-table th { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 10%, transparent); text-align: left; font-weight: 400; }
.shop-table td:last-child, .shop-table th + td { text-align: right; white-space: nowrap; }
.shop-qty-cell { opacity: .7; padding: 0 12px !important; }
.shop-table .shop-total th, .shop-table .shop-total td { font-weight: 800; font-size: 1.1rem; }
.shop-table .shop-tax-row th, .shop-table .shop-tax-row td { opacity: .6; font-size: 14px; border: 0; }

@media (max-width: 860px) {
  .shop-product-grid, .shop-checkout-grid, .shop-order-grid { grid-template-columns: 1fr; gap: 26px; }
  .shop-summary { position: static; order: -1; }
  .shop-row { flex-direction: column; gap: 0; }
  .shop-cart-totals { min-width: 0; width: 100%; }
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
