/* TechBites Store — Software keys pages (/software, /software/<slug>)
   Brand tokens: canvas #0B0B0D, surfaces #151518/#1A1A1E, primary #F39125, cyan/emerald accents. */
.sw-hero { padding: 6px 0 22px; }
.sw-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #22d3ee; }
.sw-h1 { font-family: Outfit, Cairo, sans-serif; font-weight: 900; font-size: clamp(1.75rem, 4vw, 2.6rem); line-height: 1.1; color: #fff; margin: 8px 0 10px; }
.sw-lead { color: #9ca3af; font-size: 14px; max-width: 62ch; line-height: 1.65; }
.sw-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(34, 211, 238, .07); border: 1px solid rgba(34, 211, 238, .25); margin: 16px 0; }
.sw-notice-icon { color: #22d3ee; margin-top: 3px; }
.sw-notice-title { font-weight: 800; color: #fff; font-size: 13.5px; }
.sw-notice-body { color: #9ca3af; font-size: 12.5px; line-height: 1.6; margin-top: 2px; }
.sw-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 20px 0 18px; }
.sw-search { flex: 1 1 240px; max-width: 360px; min-height: 44px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 999px; padding: 0 16px; color: #fff; font-size: 16px; outline: none; }
.sw-search:focus { border-color: #F39125; box-shadow: 0 0 0 3px rgba(243,145,37,.18); }
.sw-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.sw-filter { min-height: 44px; padding: 0 16px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: #d1d5db; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); cursor: pointer; transition: all .15s; }
.sw-filter:hover { color: #fff; background: rgba(255,255,255,.1); }
.sw-filter.is-active { background: #F39125; color: #000; border-color: #F39125; }
.sw-filter:focus-visible, .sw-btn:focus-visible, .sw-thumb:focus-visible, .sw-card:focus-visible, .sw-qty-select:focus-visible { outline: 2px solid #F39125; outline-offset: 2px; }

.sw-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sw-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #151518; border: 1px solid rgba(255,255,255,.08); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sw-card:hover { transform: translateY(-3px); border-color: rgba(243,145,37,.5); box-shadow: 0 14px 34px rgba(0,0,0,.45); }
.sw-card-media { position: relative; aspect-ratio: 16 / 10; background: #1A1A1E; overflow: hidden; }
.sw-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-brand-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; background: rgba(11,11,13,.78); color: #22d3ee; border: 1px solid rgba(34,211,238,.35); backdrop-filter: blur(6px); }
[dir="rtl"] .sw-brand-tag { left: auto; right: 12px; }
.sw-brand-inline { position: static; display: inline-block; align-self: flex-start; }
.sw-card-body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.sw-card-title { font-family: Outfit, Cairo, sans-serif; font-weight: 800; font-size: 16px; color: #fff; line-height: 1.3; }
.sw-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-chip { padding: 3px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; color: #d1d5db; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.sw-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; }
.sw-price { font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 800; font-size: 18px; color: #F39125; font-variant-numeric: tabular-nums; }
.sw-price-lg { font-size: 30px; }
.sw-price-off { color: #6b7280; }
.sw-badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sw-badge-ok { color: #34d399; background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.sw-badge-off { color: #f87171; background: rgba(248,113,113,.1); border: 1px solid rgba(248,113,113,.3); }
.sw-card-cta { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: #F39125; }
[dir="rtl"] .sw-flip { transform: scaleX(-1); }
.sw-skeleton { aspect-ratio: 4 / 5; border-radius: 20px; background: linear-gradient(100deg, #151518 30%, #1f1f24 50%, #151518 70%); background-size: 200% 100%; animation: swShimmer 1.3s linear infinite; }
@keyframes swShimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sw-skeleton { animation: none; } .sw-card { transition: none; } }
.sw-message { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border-radius: 20px; background: #151518; border: 1px dashed rgba(255,255,255,.14); }
.sw-message-icon { font-size: 30px; color: #F39125; margin-bottom: 12px; display: block; }
.sw-message-title { font-weight: 800; color: #fff; font-size: 16px; }
.sw-message-body { color: #9ca3af; font-size: 13px; margin: 6px 0 16px; }

.sw-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 14px; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; transition: all .15s; border: 1px solid transparent; }
.sw-btn-primary { background: #F39125; color: #000; box-shadow: 0 8px 22px rgba(243,145,37,.25); }
.sw-btn-primary:hover { background: #FF9A28; }
.sw-btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.14); }
.sw-btn-ghost:hover { background: rgba(255,255,255,.12); }
.sw-btn:disabled { opacity: .55; cursor: wait; }

.sw-crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: #9ca3af; margin-bottom: 16px; }
.sw-crumbs a { color: #9ca3af; text-decoration: none; }
.sw-crumbs a:hover { color: #F39125; }
.sw-product-top { display: grid; gap: 28px; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .sw-product-top { grid-template-columns: 1fr; } }
.sw-gallery-main { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; background: #1A1A1E; border: 1px solid rgba(255,255,255,.08); display: block; }
.sw-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.sw-thumb { width: 84px; min-height: 44px; padding: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #1A1A1E; cursor: pointer; }
.sw-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sw-buy { display: flex; flex-direction: column; gap: 14px; }
.sw-title { font-family: Outfit, Cairo, sans-serif; font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.15; color: #fff; }
.sw-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sw-qty { display: flex; align-items: center; gap: 12px; }
.sw-qty-label { font-size: 13px; font-weight: 700; color: #d1d5db; }
.sw-qty-select { min-height: 44px; min-width: 84px; padding: 0 12px; border-radius: 12px; background: #1A1A1E; border: 1px solid rgba(255,255,255,.14); color: #fff; font-size: 16px; }
.sw-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sw-actions .sw-btn { flex: 1 1 160px; }
.sw-unavailable-note { color: #fca5a5; font-size: 13px; padding: 12px 14px; border-radius: 12px; background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); }
.sw-remedy { font-size: 12.5px; color: #9ca3af; line-height: 1.65; }
.sw-remedy i { color: #34d399; }
.sw-link { color: #F39125; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.sw-sections { display: grid; gap: 18px; margin-top: 32px; }
.sw-section { padding: 20px; border-radius: 20px; background: #151518; border: 1px solid rgba(255,255,255,.08); }
.sw-h2 { font-family: Outfit, Cairo, sans-serif; font-weight: 800; font-size: 17px; color: #fff; margin-bottom: 12px; }
.sw-prose { color: #d1d5db; font-size: 14px; line-height: 1.75; white-space: pre-line; }
.sw-details { display: grid; gap: 0; }
.sw-detail-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; }
.sw-detail-row:last-child { border-bottom: 0; }
.sw-detail-label { color: #9ca3af; }
.sw-detail-value { color: #fff; font-weight: 700; text-align: end; }

/* ============================ v1.1 redesign ============================ */
/* Hero panel */
.sw-hero-panel { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 24px; padding: clamp(22px, 4vw, 40px); margin-bottom: 18px; border-radius: 28px; overflow: hidden; background: linear-gradient(135deg, #151518 0%, #1a1a1e 100%); border: 1px solid rgba(255,255,255,.08); }
.sw-hero-panel::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 260px at 92% 0%, rgba(34,211,238,.18), transparent 62%), radial-gradient(460px 280px at 0% 115%, rgba(243,145,37,.16), transparent 62%); }
.sw-hero-panel .sw-h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 10px 0 10px; }
.sw-hero-panel .sw-lead { font-size: 15px; }
.sw-hero-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 170px; }
.sw-hero-key { position: relative; font-size: clamp(92px, 13vw, 150px); color: #F39125; transform: rotate(-28deg); filter: drop-shadow(0 0 26px rgba(243,145,37,.55)); }
.sw-orb { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .55; }
.sw-orb-a { width: 160px; height: 160px; background: #22d3ee; top: 4%; inset-inline-end: 6%; opacity: .28; }
.sw-orb-b { width: 130px; height: 130px; background: #F39125; bottom: 0; inset-inline-start: 10%; opacity: .3; }
.sw-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; padding: 0; }
.sw-trust li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #d1d5db; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); }
.sw-trust li:nth-child(1) i { color: #34d399; } .sw-trust li:nth-child(2) i { color: #F39125; }
@media (max-width: 820px) { .sw-hero-panel { grid-template-columns: 1fr; } .sw-hero-art { display: none; } }

/* Search + filter card */
.sw-toolbar-card { margin-bottom: 22px; padding: 14px; border-radius: 22px; background: rgba(21,21,24,.9); border: 1px solid rgba(255,255,255,.09); box-shadow: 0 12px 34px rgba(0,0,0,.35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
@media (min-width: 900px) { .sw-toolbar-card { position: sticky; top: 84px; z-index: 20; } }
.sw-toolbar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.sw-toolbar-row-foot { margin-top: 12px; justify-content: space-between; }
.sw-search-wrap { position: relative; flex: 1 1 340px; }
.sw-search { flex: none; width: 100%; max-width: none; min-height: 54px; padding: 0 56px 0 50px; padding-inline-start: 50px; padding-inline-end: 56px; border-radius: 16px; background: #0f0f12; border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 16px; -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.sw-search::-webkit-search-cancel-button, .sw-search::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.sw-search::placeholder { color: #6b7280; }
.sw-search:hover { border-color: rgba(255,255,255,.22); }
.sw-search:focus { border-color: #F39125; box-shadow: 0 0 0 4px rgba(243,145,37,.16); outline: none; }
.sw-search-icon { position: absolute; top: 50%; inset-inline-start: 18px; transform: translateY(-50%); color: #9ca3af; font-size: 15px; pointer-events: none; transition: color .15s; }
.sw-search-wrap:focus-within .sw-search-icon { color: #F39125; }
.sw-kbd { position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%); min-width: 26px; padding: 3px 8px; border-radius: 7px; text-align: center; font: 600 11px/1.3 "JetBrains Mono", ui-monospace, monospace; color: #9ca3af; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); pointer-events: none; }
@media (hover: none) { .sw-kbd { display: none; } }
.sw-search-clear { position: absolute; top: 50%; inset-inline-end: 7px; transform: translateY(-50%); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 12px; background: rgba(255,255,255,.07); color: #d1d5db; cursor: pointer; transition: background .15s, color .15s; }
.sw-search-clear:hover { background: rgba(243,145,37,.2); color: #fff; }
.sw-search-clear:focus-visible { outline: 2px solid #F39125; outline-offset: 2px; }
.sw-search-clear[hidden], .sw-kbd[hidden] { display: none; }
.sw-sort-wrap { display: flex; align-items: center; gap: 10px; }
.sw-sort-label { font-size: 12.5px; font-weight: 700; color: #9ca3af; }
.sw-sort { min-height: 54px; min-width: 180px; padding: 0 14px; border-radius: 16px; background: #0f0f12; border: 1px solid rgba(255,255,255,.12); color: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.sw-sort:focus-visible { outline: 2px solid #F39125; outline-offset: 2px; }
.sw-count { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: #9ca3af; }
.sw-filters[hidden] { display: none; }
.sw-filter { display: inline-flex; align-items: center; gap: 8px; }
.sw-filter-n { padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: rgba(255,255,255,.1); color: inherit; }
.sw-filter.is-active .sw-filter-n { background: rgba(0,0,0,.18); }
@media (max-width: 640px) { .sw-sort-wrap { width: 100%; } .sw-sort { flex: 1; } }

/* Cards */
.sw-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.sw-card { position: relative; border-radius: 22px; }
.sw-card:hover { transform: translateY(-4px); border-color: rgba(243,145,37,.55); box-shadow: 0 18px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(243,145,37,.15); }
.sw-card-media img { transition: transform .4s ease, filter .3s ease; }
.sw-card:hover .sw-card-media img { transform: scale(1.05); }
.sw-card-off .sw-card-media img { filter: grayscale(.55) brightness(.72); }
.sw-card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(21,21,24,.75)); pointer-events: none; }
.sw-badge-float { position: absolute; z-index: 2; top: 12px; inset-inline-end: 12px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background-color: rgba(11,11,13,.72); }
.sw-brand-tag { z-index: 2; }
.sw-card-body { padding: 18px; gap: 12px; }
.sw-card-title { font-size: 17px; }
.sw-card-foot { align-items: flex-end; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.06); }
.sw-card .sw-price { font-size: 22px; }
.sw-card-cta { font-size: 12.5px; padding: 8px 12px; border-radius: 12px; background: rgba(243,145,37,.1); transition: background .15s, gap .15s; }
.sw-card:hover .sw-card-cta { background: #F39125; color: #000; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .sw-card-media img, .sw-card-cta { transition: none; } .sw-card:hover { transform: none; } .sw-card:hover .sw-card-media img { transform: none; } }

/* Product page */
@media (min-width: 861px) { .sw-buy { position: sticky; top: 92px; } }
.sw-gallery-main { border-radius: 24px; box-shadow: 0 18px 44px rgba(0,0,0,.45); }
.sw-price-row { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.sw-section { border-radius: 22px; }
