/* Shared TIC shell wraps the existing organizer checkout on this surface. */
body:has(.tic-shop-main) { background: var(--paper); color: var(--ink); font-family: inherit; }
.tic-shop-main { min-width: 0; }
.tic-shop-page { min-height: 62vh; padding: 40px 0 64px; color: var(--ink); }
.tic-shop-page:focus { outline: none; }
#tic-checkout .tic-shop-checkout-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.tic-shop-intro { margin-bottom: 28px; }
.tic-shop-title { margin: 0; max-width: none; font-size: 38px; line-height: 1.15; font-weight: 650; letter-spacing: -.035em; overflow-wrap: anywhere; }
.tic-shop-intro-text { margin: 0; max-width: 62ch; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tic-shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tic-shop-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.tic-shop-filter { min-height: 44px; border: 1px solid var(--line); border-radius: 6px; padding: 8px 14px; background: white; font-size: 14px; font-weight: 550; }
.tic-shop-filter:hover { background: var(--soft); }
.tic-shop-filter[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); font-weight: 650; }
.tic-shop-search { width: min(100%, 300px); flex: 0 1 300px; }
.tic-shop-main input:not([type=radio]):not([type=checkbox]), .tic-shop-main select { border-color: #888980; border-radius: 6px; font-size: 16px; }
.tic-shop-main :is(a,button,select,input,summary):focus-visible, .tic-shop-cart-link:focus-visible { outline: 3px solid #8f6e00; outline-offset: 3px; box-shadow: none; }
.tic-shop-main .shop-action-primary, .tic-shop-primary { border-radius: 6px; background: var(--yellow); color: var(--ink); font-weight: 650; }
.tic-shop-main .shop-action-primary:hover:not(:disabled), .tic-shop-primary:hover { background: #efd021; }
.tic-shop-secondary { border: 1px solid #888980; border-radius: 6px; background: white; }
.tic-shop-secondary:hover { background: var(--soft); }

.tic-shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tic-shop-card, .tic-shop-skeleton-card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.tic-shop-card:hover { border-color: #b8b9ae; }
.tic-shop-card-link { display: block; flex: 1; min-width: 0; border-radius: 9px 9px 0 0; }
.tic-shop-card-image { aspect-ratio: 16 / 9; border-radius: 9px 9px 0 0; background: var(--soft); }
.tic-shop-card-image img, .tic-shop-hero-image img { min-width: 0; min-height: 0; }
.tic-shop-card-copy { padding: 16px 18px; }
.tic-shop-card-type { margin: 0 0 6px; font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--muted); }
.tic-shop-card-copy h2 { margin: 0; font-size: 18px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.tic-shop-card-link:hover h2 { text-decoration: underline; text-underline-offset: 3px; }
.tic-shop-card-fulfillment { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.tic-shop-translation-note { display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.tic-shop-translation-note button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; cursor: pointer; text-align: start; text-decoration: underline; text-underline-offset: 4px; }
.tic-shop-translation-note.tic-shop-card-translation { margin: 0; padding: 0 18px 12px; }
.tic-shop-card-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; border-top: 1px dashed #d8d9cd; padding: 12px 18px; }
.tic-shop-card-price { margin: 0; font-size: 16px; font-weight: 650; }
.tic-shop-card-action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; font-size: 14px; text-align: center; }
.tic-shop-card-action svg { width: 16px; height: 16px; }
.tic-shop-sold-out { color: var(--muted); padding: 6px 8px; background: var(--soft); border-radius: 4px; font-size: 13px; }

.tic-shop-back { display: inline-flex; min-height: 44px; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 550; margin: -8px 0 20px; }
.tic-shop-back:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.tic-shop-detail { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-areas: "media title" "media purchase" "description purchase"; grid-template-rows: auto auto 1fr; gap: 20px 40px; align-items: start; }
.tic-shop-detail-title { grid-area: title; min-width: 0; }
.tic-shop-detail-title > p:first-child { margin: 0 0 8px; color: var(--muted); font-size: 13px; font-weight: 550; }
.tic-shop-gallery { grid-area: media; min-width: 0; }
.tic-shop-hero-image { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.tic-shop-purchase-column { grid-area: purchase; align-self: stretch; min-width: 0; }
.tic-shop-purchase { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fbfbf6; }
.tic-shop-total { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.tic-shop-total-label { font-size: 14px; font-weight: 650; }
.tic-shop-total-detail { margin-top: 2px; color: var(--muted); font-size: 13px; }
.tic-shop-price { max-width: 100%; font-size: 24px; line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tic-shop-options { display: grid; gap: 16px; }
.tic-shop-add-row > button { min-width: min(100%, 145px); }
.tic-shop-fulfillment { border-top: 1px dashed #d8d9cd; margin-top: 24px; padding-top: 16px; }
.tic-shop-fulfillment h2 { margin: 0; }
.tic-shop-description { grid-area: description; min-width: 0; padding: 24px 0 0; margin-top: 8px; border-top: 1px solid var(--line); }
.tic-shop-description h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; font-weight: 600; }
.tic-shop-organizer-details:not(:has(> section)) { display: none; }
.tic-shop-organizer-details > .organizer-reviews:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.tic-shop-main .storefront-safe-dock { bottom: var(--tic-cookie-bar-height, 0px); }
.tic-shop-main [role=status].fixed { top: auto; bottom: calc(12px + max(var(--tic-cookie-bar-height, 0px), env(safe-area-inset-bottom, 0px))); }
.tic-shop-cart-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; gap: 8px; padding: 0 8px; border-radius: 6px; font-size: 14px; font-weight: 650; }
.tic-shop-cart-link:hover, .tic-shop-cart-link[aria-current] { background: var(--soft); }
.tic-shop-cart-count { min-width: 20px; min-height: 20px; display: inline-grid; place-items: center; border-radius: 12px; background: var(--yellow); font-size: 11px; font-weight: 700; padding: 0 3px; }

.tic-shop-skeleton { background: linear-gradient(100deg, var(--soft) 28%, #efefe8 50%, var(--soft) 72%) 0 0 / 210% 100%; animation: tic-shop-skeleton 1.6s linear infinite; }
.tic-shop-skeleton-title { width: min(100%, 250px); height: 36px; margin-bottom: 28px; border-radius: 5px; }
.tic-shop-skeleton-catalog-intro { width: min(100%, 275px); height: 18px; margin: 3px 0 31px; border-radius: 4px; }
.tic-shop-skeleton-line { height: 14px; margin: 16px 18px 0; border-radius: 4px; }
.tic-shop-skeleton-short { width: 40%; margin-bottom: 18px; }
.tic-shop-skeleton-detail .tic-shop-purchase { grid-area: purchase; min-height: 210px; }
.tic-shop-skeleton-summary { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 16px; }
.tic-shop-checkout-skeleton { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); gap: 64px; align-items: start; }
.tic-shop-checkout-skeleton-form { height: 340px; }
.tic-shop-checkout-skeleton-summary { height: 250px; }
@media (max-width: 1100px) {
    .tic-shop-checkout-skeleton { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 32px; }
}
@media (max-width: 820px) {
    .tic-shop-checkout-skeleton { grid-template-columns: minmax(0, 1fr); }
    .tic-shop-checkout-skeleton-summary { grid-row: 1; }
}
@keyframes tic-shop-skeleton { to { background-position-x: -210%; } }
@media (prefers-reduced-motion: reduce) { .tic-shop-skeleton { animation: none; } }

@media (max-width: 1100px) {
    .tic-shop-grid { gap: 16px; }
    .tic-shop-detail { column-gap: 24px; }
    .tic-shop-cart-label { display: none; }
}
@media (max-width: 820px) {
    .tic-shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tic-shop-toolbar { flex-direction: column-reverse; align-items: stretch; }
    .tic-shop-search { width: 100%; flex: auto; }
    .tic-shop-detail { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "media" "purchase" "description"; grid-template-rows: auto; }
    .tic-shop-hero-image { aspect-ratio: 16 / 10; }
    body:has(#cookies-policy) .tic-shop-purchase.purchase-sticky { max-height: none; overflow: visible; }
}
@media (max-width: 520px) {
    .tic-shop-page { padding: 24px 0 48px; }
    .tic-shop-title { font-size: 30px; }
    .tic-shop-grid { grid-template-columns: minmax(0, 1fr); }
    .tic-shop-filters { gap: 6px; }
    .tic-shop-filter { padding-inline: 10px; }
    .tic-shop-back { margin-bottom: 12px; }
    .tic-shop-purchase { padding: 16px; }
    .tic-shop-description h2 { font-size: 22px; }
    .tic-shop-cart-link { position: relative; padding: 0; }
    .tic-shop-cart-count { position: absolute; inset: 0 0 auto auto; }
}
