/* avionicsworks.com shop (catalog + product pages). Built by projects/aw-website/shop. */
.sp { --sp-y: var(--brand-yellow, #FCD462); --sp-line: rgba(255,255,255,0.08); --sp-mute: rgba(255,255,255,0.62); --sp-card: rgba(255,255,255,0.03); }
.sp .container { box-sizing: border-box; }
.sp [hidden], .sp-modal [hidden], [data-before-change][hidden] { display: none !important; }
.sp-hero { padding: 120px 0 28px; text-align: center; background: linear-gradient(135deg, rgba(252,212,98,0.06) 0%, transparent 55%); }
.sp-hero h1 { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; margin: 1rem 0; }
.sp-hero h1 span { color: var(--sp-y); }
.sp-hero p { color: var(--sp-mute); font-size: 1.08rem; max-width: 680px; margin: 0 auto 1.5rem; line-height: 1.55; }
.sp-badge { display: inline-flex; align-items: center; background: rgba(252,212,98,0.1); border: 1px solid rgba(252,212,98,0.3); border-radius: 100px; padding: 7px 18px; font-size: 0.82rem; color: var(--sp-y); font-weight: 600; }
.sp-hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.sp-btn-ghost { background: transparent; border: 1px solid rgba(252,212,98,0.45); color: var(--sp-y); }
.sp-btn-ghost:hover { background: rgba(252,212,98,0.1); }
.sp-search { max-width: 620px; margin: 0 auto; }
.sp-search input { width: 100%; box-sizing: border-box; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; font-size: 1rem; font-family: 'Inter', sans-serif; }
.sp-search input:focus { outline: none; border-color: rgba(252,212,98,0.6); box-shadow: 0 0 0 3px rgba(252,212,98,0.15); }
.sp-price-note { margin: 1rem auto 0; max-width: 620px; font-size: 0.88rem; color: var(--sp-mute); }
.sp-price-note b { color: var(--sp-y); }

.sp-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 0.5rem; }
.sp-chip { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.75); padding: 7px 15px; border-radius: 100px; font-size: 0.82rem; font-family: 'Inter', sans-serif; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.sp-chip:hover, .sp-chip.active { background: rgba(252,212,98,0.15); border-color: rgba(252,212,98,0.4); color: var(--sp-y); }
.sp-empty { text-align: center; color: var(--sp-mute); margin: 2rem 0; }
.sp-empty a { color: var(--sp-y); }

.sp-group { margin-top: 2.5rem; }
.sp-group-head h2 { font-family: 'Outfit', sans-serif; font-size: 1.9rem; margin: 0 0 0.4rem; }
.sp-group-head p { color: var(--sp-mute); margin: 0 0 0.5rem; max-width: 760px; line-height: 1.5; }
.sp-section { scroll-margin-top: 90px; }
.sp-section-title { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 700; margin: 2.2rem 0 0.3rem; padding-bottom: 0.6rem; border-bottom: 2px solid rgba(252,212,98,0.2); color: #fff; }
.sp-section-blurb { color: var(--sp-mute); font-size: 0.92rem; margin: 0.6rem 0 1.1rem; }

.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.1rem; }
.sp-card { display: flex; flex-direction: column; background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; }
.sp-card:hover { border-color: rgba(252,212,98,0.35); transform: translateY(-3px); box-shadow: 0 12px 36px rgba(0,0,0,0.3); }
.sp-card-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.sp-card-tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; margin-bottom: 5px; }
.sp-tag-install { color: var(--sp-y); }
.sp-tag-ship { color: #8fd3ff; }
.sp-card-title { font-family: 'Outfit', sans-serif; font-size: 1.08rem; font-weight: 600; color: #fff; margin-bottom: 6px; }
.sp-card-desc { font-size: 0.84rem; color: var(--sp-mute); line-height: 1.45; flex: 1; margin-bottom: 0.9rem; }
.sp-card-foot { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid rgba(255,255,255,0.06); padding-top: 0.8rem; }
.sp-card-price { font-family: 'Outfit', sans-serif; font-size: 1.22rem; font-weight: 700; color: #fff; }
.sp-card-price small { display: block; font-family: 'Inter', sans-serif; font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.45); }
.sp-card-go { background: var(--sp-y); color: #111; padding: 7px 16px; border-radius: 8px; font-weight: 600; font-size: 0.82rem; }

/* typographic product tile (no photo) */
.sp-tile { position: relative; height: 150px; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 14px; box-sizing: border-box;
  background: radial-gradient(120% 90% at 50% 0%, rgba(252,212,98,0.14), transparent 60%), linear-gradient(160deg, #1d1f24, #121316); border-bottom: 1px solid var(--sp-line); }
.sp-tile-cat { position: absolute; top: 12px; left: 14px; font-size: 0.62rem; letter-spacing: 1.3px; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.sp-tile-brand { position: absolute; bottom: 10px; right: 14px; font-size: 0.6rem; letter-spacing: 2.5px; color: rgba(252,212,98,0.55); font-weight: 700; }
.sp-tile-model { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.35rem; line-height: 1.15; color: #fff; max-width: 92%; }
.sp-tile-lg { height: auto; min-height: 280px; border-radius: 16px; border: 1px solid var(--sp-line); }
.sp-tile-lg .sp-tile-model { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* product page */
.sp-product { padding-top: 100px; }
.sp-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 0.85rem; color: var(--sp-mute); margin-bottom: 1.2rem; }
.sp-crumbs a { color: var(--sp-mute); text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-y); }
.sp-pp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
.sp-pp-cat { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; color: var(--sp-y); font-weight: 600; }
.sp-pp-info h1 { font-family: 'Outfit', sans-serif; font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0.4rem 0 0.6rem; }
.sp-pp-sum { color: rgba(255,255,255,0.75); font-size: 1.05rem; line-height: 1.55; margin: 0 0 0.8rem; }
.sp-pn { font-size: 0.85rem; color: var(--sp-mute); margin-bottom: 0.8rem; }
.sp-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.85em; }
.sp-badge-inst, .sp-badge-ship { display: inline-block; font-size: 0.78rem; font-weight: 600; padding: 5px 12px; border-radius: 100px; margin-bottom: 1rem; }
.sp-badge-inst { color: var(--sp-y); background: rgba(252,212,98,0.1); border: 1px solid rgba(252,212,98,0.3); }
.sp-badge-ship { color: #8fd3ff; background: rgba(143,211,255,0.08); border: 1px solid rgba(143,211,255,0.3); }
.sp-pp-price { font-family: 'Outfit', sans-serif; font-size: 2.2rem; font-weight: 700; color: #fff; margin-bottom: 0.3rem; }
.sp-pp-price small { display: block; font-family: 'Inter', sans-serif; font-size: 0.78rem; font-weight: 400; color: var(--sp-mute); }
.sp-p27 { font-size: 0.85rem; color: var(--sp-mute); margin-bottom: 0.4rem; }
.sp-p27 b { color: var(--sp-y); }
.sp-pp-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 1rem 0 1.1rem; }
.sp-hl { list-style: disc; margin: 0; padding-left: 1.2rem; color: rgba(255,255,255,0.8); line-height: 1.7; }
.sp-pp-details { margin-top: 2rem; display: grid; gap: 1.1rem; }
.sp-box { background: var(--sp-card); border: 1px solid var(--sp-line); border-radius: 14px; padding: 1.2rem 1.3rem; }
.sp-box h3 { font-family: 'Outfit', sans-serif; font-size: 1.15rem; margin: 0 0 0.7rem; }
.sp-box p, .sp-box li { color: rgba(255,255,255,0.78); line-height: 1.55; font-size: 0.93rem; }
.sp-box ul { list-style: disc; margin: 0; padding-left: 1.2rem; }
.sp-how ol { list-style: decimal; }
.sp-upbox a { color: var(--sp-y); }
.sp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.sp-table th { text-align: left; font-weight: 600; color: var(--sp-mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.8px; padding: 0 10px 8px 0; border-bottom: 1px solid var(--sp-line); }
.sp-table td { padding: 9px 10px 9px 0; border-bottom: 1px solid rgba(255,255,255,0.05); vertical-align: top; color: rgba(255,255,255,0.85); }
.sp-table .sp-num { text-align: right; white-space: nowrap; padding-right: 0; }
.sp-sub { font-size: 0.8rem; color: var(--sp-mute); margin-top: 2px; }
.sp-parts { list-style: none; padding: 0 !important; }
.sp-parts li { padding: 4px 0; }
.sp-parts .sp-mono { color: var(--sp-y); margin-right: 6px; }
.sp-fin { color: rgba(255,255,255,0.85) !important; }
.sp-fine { font-size: 0.8rem !important; color: rgba(255,255,255,0.5) !important; margin: 0.6rem 0 0; }
.sp-related { margin: 3rem 0 4rem; }
.sp-related h2 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin-bottom: 1rem; }

.sp-how { margin: 3.5rem 0 4rem; background: linear-gradient(135deg, rgba(252,212,98,0.08), rgba(252,212,98,0.02)); border: 1px solid rgba(252,212,98,0.2); border-radius: 16px; padding: 2rem; }
.sp-how h2 { font-family: 'Outfit', sans-serif; font-size: 1.4rem; margin: 0 0 1rem; }
.sp-how ol { margin: 0 0 1rem; padding-left: 1.2rem; line-height: 1.8; color: rgba(255,255,255,0.82); }

/* inquiry modal */
.sp-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sp-modal[hidden] { display: none; }
.sp-modal-box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: #17181c; border: 1px solid rgba(252,212,98,0.25); border-radius: 16px; padding: 1.6rem; box-sizing: border-box; }
.sp-modal-box h3 { font-family: 'Outfit', sans-serif; margin: 0 0 0.3rem; font-size: 1.3rem; }
.sp-modal-sub { color: var(--sp-mute); font-size: 0.9rem; margin: 0 0 1rem; }
.sp-modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
#spForm label { display: block; font-size: 0.82rem; color: var(--sp-mute); margin-bottom: 0.7rem; }
#spForm input, #spForm textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; font: inherit; font-size: 0.95rem; }
#spForm input:focus, #spForm textarea:focus { outline: none; border-color: rgba(252,212,98,0.6); }
.sp-row { display: flex; gap: 10px; }
.sp-row .sp-qty { flex: 0 0 90px; }
.sp-row .sp-ac { flex: 1; }
.sp-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; }
.sp-form-err { color: #ff9b8f; font-size: 0.88rem; margin-bottom: 0.6rem; }
.sp-submit { width: 100%; }
.sp-submit[disabled] { opacity: 0.6; cursor: wait; }
.sp-ok { text-align: center; padding: 1rem 0; }
.sp-ok p { color: var(--sp-mute); }

@media (max-width: 860px) {
  .sp-pp { grid-template-columns: 1fr; gap: 1.2rem; }
  .sp-tile-lg { min-height: 180px; }
}
@media (max-width: 768px) {
  .sp-hero { padding: 100px 0 20px; }
  .sp-grid { grid-template-columns: 1fr; }
  .sp-chips { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sp-chips::-webkit-scrollbar { display: none; }
  .sp-chip { flex: 0 0 auto; }
  .sp-product { padding-top: 88px; }
  .sp-how { padding: 1.3rem; }
  .sp-pp-buy .btn { flex: 1 1 100%; text-align: center; }
  .sp-row { flex-direction: column; gap: 0; }
  .sp-row .sp-qty { flex: none; }
  .sp-table { font-size: 0.84rem; }
}

/* official Garmin product photos (white studio background) */
.sp-photo { height: 190px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; box-sizing: border-box; border-bottom: 1px solid var(--sp-line, rgba(255,255,255,0.08)); }
.sp-photo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.sp-photo-lg { height: auto; aspect-ratio: 1 / 1; max-height: 460px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.08); padding: 28px; }
@media (max-width: 860px) { .sp-photo-lg { aspect-ratio: 4 / 3; max-height: 320px; } }
/* site CSS (aw-premium.css) hides img[loading=lazy] until its script adds .loaded; shop photos always show */
.sp-photo img { opacity: 1 !important; }

/* cart */
.sp-cartbox { background: rgba(255,255,255,0.03); border: 1px solid rgba(252,212,98,0.25); border-radius: 14px; padding: 14px 16px; margin: 1rem 0 0.4rem; }
.sp-choice-l { display: block; font-size: 0.8rem; color: rgba(255,255,255,0.62); margin-bottom: 10px; }
.sp-choice-l select, .sp-qtyl input, .sp-cartq { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: #1b1c20; color: #fff; font: inherit; font-size: 0.95rem; }
.sp-cartrow { display: flex; gap: 10px; align-items: flex-end; }
.sp-qtyl { flex: 0 0 84px; font-size: 0.8rem; color: rgba(255,255,255,0.62); }
.sp-addcart { flex: 1; }
.sp-cart-msg { margin-top: 10px; font-size: 0.88rem; color: #9fe3a8; }
.sp-cart-msg a { color: var(--brand-yellow, #FCD462); font-weight: 600; }
.sp-cart-warn { color: #ff9b8f; }
.sp-cart-note { font-size: 0.78rem; color: rgba(255,255,255,0.5); margin: 10px 0 0; }
.sp-cartbtn { position: fixed; left: 16px; bottom: 16px; z-index: 9000; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 100px;
  background: var(--brand-yellow, #FCD462); color: #111; font-weight: 700; font-size: 0.9rem; text-decoration: none; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }
.sp-cartbtn[hidden] { display: none; }
.sp-cartbtn b { background: #111; color: var(--brand-yellow, #FCD462); border-radius: 100px; padding: 1px 8px; font-size: 0.8rem; }
.sp-cartpage h1 { font-family: 'Outfit', sans-serif; font-size: clamp(1.7rem, 4vw, 2.3rem); margin: 0 0 1rem; }
.sp-cartpage #spCartWrap, .sp-cartpage .sp-cartform { display: grid; gap: 1.1rem; }
.sp-cartpage #spCartWrap[hidden], .sp-cartpage [hidden] { display: none !important; }
.sp-carttable td { vertical-align: middle; }
.sp-carttable th, .sp-carttable td { padding-right: 18px; }
.sp-carttable th:nth-child(3), .sp-carttable td:nth-child(3) { width: 90px; }
.sp-carttable th:last-child, .sp-carttable td:last-child { width: 28px; padding-right: 0; }
.sp-carttable td a { color: #fff; font-weight: 600; text-decoration: none; }
.sp-cartq { width: 70px; margin: 0; padding: 7px 8px; }
.sp-cartrm { background: none; border: 0; color: rgba(255,255,255,0.5); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.sp-cartrm:hover { color: #ff9b8f; }
.sp-cartform label { display: block; font-size: 0.82rem; color: rgba(255,255,255,0.62); margin-bottom: 0.7rem; }
.sp-cartform input, .sp-cartform textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 10px 12px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.15); background: rgba(255,255,255,0.05); color: #fff; font: inherit; font-size: 0.95rem; }
.sp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.sp-cartpage { padding-bottom: 4rem; }
@media (max-width: 768px) {
  .sp-grid2 { grid-template-columns: 1fr; }
  .sp-carttable thead { display: none; }
  .sp-carttable tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .sp-carttable td { border: 0; padding: 0; }
  .sp-carttable td:first-child { grid-column: 1 / -1; }
  .sp-carttable tfoot tr { display: flex; justify-content: space-between; }
  .sp-carttable tfoot td:last-child { display: none; }
  .sp-carttable th, .sp-carttable td { padding-right: 0; width: auto !important; }
  .sp-cartbtn { left: 12px; bottom: 12px; }
}
