/* CASCO Store */
.sp-hero-art { position: relative; width: 260px; height: 190px; flex: none; }
.sp-box { position: absolute; width: 120px; height: 150px; background: #FBF4E3; border: 2px solid #003366; box-shadow: 6px 6px 0 #D4A017; display: grid; place-items: center; }
.sp-box .gl-ic { width: 64px; height: 64px; font-size: 1.3rem; }
.sp-box.b1 { inset-inline-start: 0; top: 24px; transform: rotate(-7deg); }
.sp-box.b2 { inset-inline-start: 70px; top: 6px; transform: rotate(3deg); z-index: 1; }
.sp-box.b3 { inset-inline-start: 140px; top: 30px; transform: rotate(9deg); }
@media (max-width: 760px) { .sp-hero-art { display: none; } }

.sp-bar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; }
.sp-curl { width: 11rem; }
.sp-note { margin-top: .8rem; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1.3rem; margin-top: 1.6rem; }
.sp-card { background: var(--card); border: var(--line); box-shadow: var(--shadow); padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; min-width: 0; scroll-margin-top: 110px; }
.sp-card.sp-hl { outline: 3px solid var(--gold); outline-offset: 3px; }
.sp-bundle { background: var(--soft); box-shadow: 6px 6px 0 var(--gold); }
.sp-top { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: .8rem; align-items: center; }
.sp-top h3 { font-size: 1.08rem; line-height: 1.3; }
.sp-meta { font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.sp-tag { font-weight: 600; }
.sp-in { font-size: .88rem; }
.sp-var { display: grid; grid-template-columns: 1fr 1fr; border: var(--line); margin-top: auto; }
.sp-var button { font: inherit; font-weight: 700; font-size: .9rem; padding: .55rem .4rem; background: var(--card); color: var(--ink); border: 0; cursor: pointer; min-height: 44px; }
.sp-var button + button { border-inline-start: var(--line); }
.sp-var button[aria-checked="true"] { background: var(--navy); color: #fff; }
.sp-var button:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
.sp-kit { min-height: 2.6em; }
.sp-buy { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: .8rem; }
.sp-price { font-size: 1.25rem; font-variant-numeric: tabular-nums; }

/* drawer */
.sp-drawer { position: fixed; inset: 0; z-index: 80; background: rgba(0, 20, 40, .5); display: flex; justify-content: flex-end; }
#site[dir="rtl"] .sp-drawer { justify-content: flex-start; }
.sp-panel { width: min(440px, 100%); height: 100%; background: var(--ground); border-inline-start: 2px solid var(--navy); box-shadow: -6px 0 0 var(--gold); display: flex; flex-direction: column; gap: 1rem; padding: calc(1rem + env(safe-area-inset-top, 0px)) max(1.1rem, env(safe-area-inset-right, 0px)) calc(1rem + env(safe-area-inset-bottom, 0px)) max(1.1rem, env(safe-area-inset-left, 0px)); overflow-y: auto; }
#site[dir="rtl"] .sp-panel { border-inline-start: 0; border-inline-end: 2px solid var(--navy); box-shadow: 6px 0 0 var(--gold); }
.sp-ph { display: flex; justify-content: space-between; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: .6rem; }
.sp-ph h2 { font-size: 1.3rem; }
.sp-close { width: 44px; height: 44px; border: var(--line); background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.sp-empty { color: var(--muted); padding: 1.5rem 0; }
.sp-line { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ic nm qt" "ic nm lt"; gap: .2rem .7rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--hair); }
.sp-line .gl-ic { grid-area: ic; width: 40px; height: 40px; font-size: .78rem; }
.sp-ln { grid-area: nm; min-width: 0; } .sp-ln b { display: block; font-size: .95rem; } .sp-ln small { color: var(--muted); font-size: .8rem; }
.sp-qty { grid-area: qt; display: flex; align-items: center; border: var(--line); justify-self: end; }
.sp-qty button { width: 34px; height: 34px; border: 0; background: var(--card); color: var(--ink); font-size: 1.1rem; font-weight: 800; cursor: pointer; }
.sp-qty span { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-lt { grid-area: lt; justify-self: end; font-variant-numeric: tabular-nums; }
.sp-foot { display: grid; gap: .6rem; margin-top: .6rem; }
.sp-sum { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; }
.btn.wide { width: 100%; }
.sp-form { display: grid; gap: .9rem; }
.sp-form .in[aria-invalid="true"] { border-color: var(--red); outline: 2px solid var(--red); }
.sp-actions { display: grid; grid-template-columns: auto 1fr; gap: .7rem; }
.sp-ok { text-align: center; display: grid; justify-items: center; gap: .5rem; }
.sp-ok .disc { background: var(--teal); font-size: 1.4rem; margin: 0; }
.sp-pay { border: var(--line); background: var(--soft); padding: .7rem .9rem; display: grid; gap: .2rem; font-size: .9rem; margin-top: .6rem; }
.sp-pay.note { background: var(--card); }

/* product visuals */
.sp-thumb { border: 0; padding: .9rem 0 .3rem; margin: -1.1rem -1.1rem 0; background: var(--soft); background-image: radial-gradient(rgba(212,160,23,.35) 1px, transparent 1.4px); background-size: 10px 10px; cursor: zoom-in; display: grid; place-items: center; border-bottom: var(--line); }
.sp-boxv { --bc: #1236A5; width: 210px; aspect-ratio: 4 / 3; background: #fff; border: 2px solid #003366; box-shadow: 6px 6px 0 #003366; display: grid; grid-template-rows: auto 1fr auto auto; text-align: center; color: #003366; font-family: "Montserrat", "Tajawal", sans-serif; transform: rotate(-2deg); }
.sp-boxv.mini { width: 170px; box-shadow: 5px 5px 0 #003366; margin-bottom: .6rem; }
.sp-boxv.c-red { --bc: #B3261E; } .sp-boxv.c-teal { --bc: #006765; } .sp-boxv.c-blue { --bc: #1236A5; } .sp-boxv.c-gold { --bc: #D4A017; } .sp-boxv.c-navy { --bc: #003366; }
.bx-band { background: var(--bc); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 4px 8px; font-size: .6rem; font-weight: 800; letter-spacing: .08em; }
.sp-boxv.c-gold .bx-band { color: #003366; }
.bx-band img { height: 12px; width: auto; }
.sp-boxv.c-gold .bx-band img { filter: brightness(0) saturate(100%) invert(13%) sepia(60%) saturate(2500%) hue-rotate(196deg); }
.bx-code { font-weight: 800; font-size: 2.3rem; color: var(--bc); align-self: center; line-height: 1; }
.bx-name { font-weight: 800; font-size: .95rem; padding: 0 6px; }
.bx-foot { font-size: .7rem; border-top: 1.5px dashed #003366; margin: 6px 10px 6px; padding-top: 3px; }
.sp-btns { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

/* detail modal */
.sp-modal { position: fixed; inset: 0; z-index: 85; background: rgba(0, 20, 40, .55); display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(12px, env(safe-area-inset-right, 0px)) max(12px, env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
.sp-dialog { width: min(760px, 100%); max-height: 100%; background: var(--ground); border: 2px solid var(--navy); box-shadow: 8px 8px 0 var(--gold); display: flex; flex-direction: column; min-height: 0; }
#detBody { overflow-y: auto; padding: 1rem 1.2rem 1.3rem; display: grid; gap: .9rem; }
.sp-dh { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: .8rem; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: .6rem; }
.sp-dh h2 { font-size: 1.35rem; margin: 0; }
.sp-gal { display: grid; gap: .7rem; }
.sp-shot { background: var(--soft); background-image: radial-gradient(rgba(212,160,23,.35) 1px, transparent 1.4px); background-size: 10px 10px; border: var(--line); padding: 1.6rem 1.2rem; display: grid; place-items: center; min-height: 230px; }
.sp-shot .sp-boxv { width: 260px; }
.sp-shot .gl-props { width: 100%; justify-content: center; }
.sp-shot .gl-stage { width: 100%; max-width: 520px; }
.sp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.sp-tabs button { font: inherit; font-weight: 700; font-size: .88rem; padding: .55rem; min-height: 44px; border: var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.sp-tabs button[aria-selected="true"] { background: var(--gold); color: var(--navy); }
.sp-dbuy { position: sticky; bottom: -1.3rem; background: var(--ground); border-top: 2px solid var(--navy); padding: .8rem 0 .2rem; display: grid; gap: .7rem; margin-top: .4rem; }
.sp-dbuy .sp-buy { border: 0; padding: 0; }
.sp-mini { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .5rem; }
.sp-mini button { display: flex; align-items: center; gap: .6rem; font: inherit; font-weight: 700; text-align: start; padding: .4rem .6rem; border: var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.sp-mini .gl-ic { width: 34px; height: 34px; font-size: .72rem; flex: none; }
@media (max-width: 600px) { .sp-dialog { height: 100%; } .gl-facts { grid-template-columns: 1fr; } .gl-facts div:nth-child(odd) { border-inline-end: 0; } .sp-shot { min-height: 190px; padding: 1.2rem .6rem; } }
.sp-photo { display: block; width: 210px; aspect-ratio: 4 / 3; object-fit: cover; border: 2px solid #003366; box-shadow: 6px 6px 0 #003366; background: #fff; }
.sp-photo.big { width: min(100%, 420px); }
