/* Public authentication and booking surfaces */
body:has(.booking-page),
body:has(.login-page) {
    min-height: 100vh;
}

.login-page {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 100vh;
    padding: var(--space-6);
    background: transparent;
}

.login-card {
    width: 100%;
    min-width: 0;
    max-width: 440px;
    padding: var(--space-8);
    overflow: hidden;
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.login-card > p {
    color: var(--muted);
}

.login-card form {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.login-card form .btn {
    margin-top: var(--space-2);
}

.booking-page input::placeholder,
.booking-page textarea::placeholder,
.login-page input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.forgot-password {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
}

.forgot-password summary {
    min-height: var(--control-md);
    display: flex;
    align-items: center;
}

.forgot-password .form-stack {
    margin-top: var(--space-3);
}

.auth-back-link,
.auth-status {
    margin-top: var(--space-4);
}

body:has(.booking-page) {
    display: grid;
    place-items: start center;
    padding: clamp(var(--space-4), 4vw, var(--space-10));
}

.booking-page {
    width: min(100%, 760px);
    min-height: 520px;
    margin: 0 auto;
    padding: clamp(var(--space-5), 4vw, var(--space-8));
    border-radius: var(--radius-2xl);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.booking-page > .brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
}

.booking-page .brand-copy {
    flex: 1;
    min-width: 0;
}

.booking-page .brand-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    object-fit: cover;
    color: var(--primary-ink);
    background: var(--primary);
    font-weight: var(--weight-bold);
}

.booking-page img.brand-avatar {
    object-fit: contain;
    background: var(--surface-subtle);
    padding: 4px;
}

.booking-page .brand-avatar.is-fallback {
    display: grid;
    place-items: center;
}

.booking-page .brand-copy p {
    margin: 0 0 var(--space-1);
    color: var(--muted);
    font-size: var(--fs-sm);
}

.booking-page .brand-copy h1 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--fs-xl);
    letter-spacing: -0.025em;
}

.progress {
    position: relative;
    height: 6px;
    margin-bottom: var(--space-7);
    overflow: hidden;
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
}

.progress > span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
    transition: width var(--duration-normal) var(--ease-standard);
}

.booking-step {
    min-height: 330px;
}

.phase-title {
    margin: 0 0 var(--space-5);
    font-size: clamp(1.25rem, 4vw, var(--fs-2xl));
    font-weight: var(--weight-bold);
    letter-spacing: -0.025em;
}

.booking-step > .phase-title + .form-stack,
.booking-step > .phase-title + .quote-choices,
.booking-step > .phase-title + .logistics-block,
.booking-step > .hint + .form-stack,
.booking-step > .hint + .quote-choices,
.booking-step > .hint + .logistics-block {
    margin-top: var(--space-2);
}

.booking-step > .phase-title {
    margin-bottom: var(--space-6);
}

.phase-title[tabindex="-1"]:focus {
    outline: none;
}

.phase-title-centered,
.hint-centered {
    text-align: center;
}

.phase-title-compact {
    margin-top: var(--space-6);
}

.booking-step > .hint {
    margin: 0 0 var(--space-5);
    overflow-wrap: anywhere;
}

.booking-step .form-stack {
    gap: var(--space-5);
}

.booking-step .form-stack > .hint {
    margin: 0;
}

.booking-step .form-stack label {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.quote-phone-row {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: var(--space-3);
    align-items: stretch;
}

.quote-phone-row select,
.quote-phone-row input {
    min-width: 0;
}

.booking-step .actions {
    margin-top: var(--space-6);
}

.quote-location-hint {
    margin: 0 0 var(--space-5);
}

.quote-cep-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
}

.quote-cep-btn i,
.quote-cep-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.booking-step .btn-primary,
.booking-step .btn-ghost,
.cookie .btn-primary,
.cookie .btn-ghost,
.btn-reservar,
.btn-nav,
.slot-day,
.slot-time,
.pro-pick,
.svc-cat-toggle {
    min-height: var(--control-lg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    padding: var(--space-2) var(--space-4);
    color: var(--text-soft);
    background: var(--surface);
    font-weight: var(--weight-semibold);
    transition:
        color var(--duration-fast) var(--ease-standard),
        background-color var(--duration-fast) var(--ease-standard),
        border-color var(--duration-fast) var(--ease-standard),
        transform var(--duration-fast) var(--ease-standard);
}

.booking-step .btn-primary,
.cookie .btn-primary,
.btn-reservar,
.slot-time.is-active {
    color: var(--primary-ink);
    border-color: var(--primary);
    background: var(--primary);
}

.booking-step .btn-primary:hover:not(:disabled),
.cookie .btn-primary:hover:not(:disabled),
.btn-reservar:hover:not(:disabled) {
    border-color: var(--primary-hover);
    background: var(--primary-hover);
}

.booking-step .btn-ghost,
.cookie .btn-ghost {
    background: transparent;
}

.booking-step button:disabled,
.cookie button:disabled {
    opacity: 0.48;
    cursor: not-allowed;
}

.error {
    min-height: 20px;
    margin-top: var(--space-3);
    color: var(--danger-text);
    font-size: var(--fs-sm);
}

.svc-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.svc-cat,
.svc-item {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.svc-cat {
    overflow: hidden;
}

.svc-cat-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 0;
    text-align: left;
}

.svc-cat-toggle:hover {
    background: var(--surface-subtle);
}

.svc-cat-chevron {
    transition: transform var(--duration-fast) var(--ease-standard);
}

.svc-cat.is-open .svc-cat-chevron {
    transform: rotate(180deg);
}

.svc-cat-body {
    display: none;
    padding: 0 var(--space-3) var(--space-3);
}

.svc-cat.is-open .svc-cat-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.svc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4);
}

.svc-item-main {
    min-width: 0;
}

.svc-item-main strong {
    display: block;
    margin-bottom: var(--space-1);
    color: var(--text);
}

.svc-meta {
    color: var(--muted);
    font-size: var(--fs-sm);
}

.btn-reservar {
    flex: 0 0 auto;
}

.btn-reservar.is-selected {
    outline: 3px solid var(--focus-ring);
}

.selected-service {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: var(--radius-lg);
    color: var(--primary);
    background: var(--primary-subtle);
    font-weight: var(--weight-semibold);
}

.schedule-summary {
    margin: 0 0 var(--space-5);
    padding: var(--space-4);
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--line));
    border-radius: var(--radius-lg);
    background: var(--primary-subtle);
}

.schedule-summary-kicker {
    margin: 0 0 var(--space-2);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schedule-summary-title {
    margin: 0;
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: var(--weight-semibold);
}

.schedule-summary-list {
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text);
    font-weight: var(--weight-semibold);
}

.schedule-summary-list li + li {
    margin-top: var(--space-1);
}

.schedule-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
    color: var(--primary);
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
}

.schedule-pros,
.schedule-calendar,
.schedule-times {
    margin-top: var(--space-5);
}

.schedule-pros:first-child,
.schedule-calendar:first-child,
.schedule-times:first-child,
.schedule-summary + .schedule-pros,
.schedule-summary + .schedule-calendar {
    margin-top: 0;
}

.pro-prompt,
.slot-times-title,
.cal-month {
    margin: 0;
    color: var(--text);
    font-weight: var(--weight-semibold);
}

.pro-prompt {
    margin-bottom: var(--space-3);
}

.pro-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-3);
}

.pro-pick {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
}

.pro-pick:hover,
.pro-pick.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.pro-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    border-radius: var(--radius-pill);
    color: var(--primary);
    background: var(--primary-soft);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
}

.cal-head {
    display: grid;
    grid-template-columns: var(--control-md) 1fr var(--control-md);
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.cal-month {
    text-align: center;
    font-size: var(--fs-md);
}

.cal-nav {
    display: grid;
    grid-template-columns: var(--control-lg) 1fr var(--control-lg);
    align-items: stretch;
    gap: var(--space-2);
}

.btn-nav {
    display: grid;
    place-items: center;
    width: var(--control-md);
    min-height: var(--control-md);
    padding: 0;
}

.slot-days {
    display: grid;
    grid-template-columns: repeat(var(--slot-days, 7), minmax(0, 1fr));
    gap: var(--space-2);
}

.slot-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-height: 4.25rem;
    padding: var(--space-2) 0;
}

.slot-day:hover,
.slot-day.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.slot-day-label {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.slot-day.is-active .slot-day-label {
    color: var(--primary);
}

.slot-day-date {
    font-size: var(--fs-lg);
    font-weight: var(--weight-bold);
    line-height: 1.1;
}

.slot-times-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: var(--space-3);
}

.slot-times-date {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.slot-group + .slot-group {
    margin-top: var(--space-4);
}

.slot-group-label {
    margin: 0 0 var(--space-2);
    color: var(--muted);
    font-size: var(--fs-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.slot-times {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.slot-time {
    min-width: 5.25rem;
    flex: 0 0 auto;
}

.slot-time:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.schedule-actions {
    margin-top: var(--space-6);
}

.quote-choices {
    display: grid;
    gap: var(--space-5);
}

.booking-step > .quote-choices {
    margin-top: 0;
}

.quote-choice {
    display: grid;
    gap: 2px;
    justify-items: start;
    min-height: var(--control-md);
    padding: var(--space-3) var(--space-4);
    text-align: left;
    font: inherit;
    font-weight: var(--weight-semibold);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    cursor: pointer;
}

.quote-choice:hover,
.quote-choice.is-active {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.logistics-block {
    display: grid;
    gap: var(--space-3);
}

.logistics-block + .logistics-block {
    margin-top: var(--space-6);
}

.logistics-label {
    margin: 0;
    font-size: var(--fs-md);
    font-weight: var(--weight-semibold);
}

.quote-choice em {
    font-style: normal;
    font-weight: var(--weight-regular);
    font-size: var(--fs-sm);
    color: var(--muted);
}

.quote-choice.is-active em,
.quote-choice:hover em {
    color: inherit;
    opacity: 0.85;
}

.quote-choice-fee {
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
}

.schedule-summary-logistics {
    margin: var(--space-2) 0 0;
    font-size: var(--fs-sm);
    color: var(--muted);
}

.quote-file-actions {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.quote-file-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    min-height: 52px;
    padding: var(--space-3) var(--space-4);
    border: 1px dashed var(--line-strong, var(--line));
    border-radius: var(--radius-lg);
    background: var(--surface);
    font: inherit;
    font-weight: var(--weight-semibold);
    color: var(--text);
    cursor: pointer;
}

.quote-file-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-subtle);
}

.quote-file-btn i {
    width: 18px;
    height: 18px;
}

.quote-file-list {
    list-style: none;
    margin: 0 0 var(--space-3);
    padding: 0;
    display: grid;
    gap: var(--space-2);
}

.quote-file-item {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.quote-file-item img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.quote-file-item span {
    font-size: var(--fs-sm);
    word-break: break-word;
}

.quote-file-remove {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: var(--text-muted, var(--muted));
    cursor: pointer;
    display: grid;
    place-items: center;
}

.success {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
}

.success .check {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    margin-bottom: var(--space-4);
    border-radius: var(--radius-pill);
    color: var(--success-text);
    background: var(--success-subtle);
}

.success .check svg {
    width: 32px;
    height: 32px;
}

.footnote {
    margin: var(--space-5) 0 0;
    color: var(--muted);
    font-size: var(--fs-xs);
    text-align: center;
}

.booking-page .footnote[hidden] {
    display: none;
}

.cookie {
    position: fixed;
    z-index: var(--z-modal);
    right: var(--space-5);
    bottom: var(--space-5);
    left: var(--space-5);
    width: min(720px, calc(100vw - var(--space-10)));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-5);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    color: var(--text);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.cookie-title {
    margin: 0 0 var(--space-1);
    font-size: var(--fs-md);
}

.cookie-copy p {
    margin: 0;
    color: var(--muted);
    font-size: var(--fs-sm);
}

.cookie-actions {
    display: flex;
    flex: 0 0 auto;
    gap: var(--space-2);
}

.embed-booking-frame {
    width: 100%;
    min-height: 520px;
    border: 0;
}

body:has(.booking-page.is-catalog) {
    padding: clamp(12px, 2.4vw, 32px);
}

.booking-page.is-catalog {
    width: min(100%, 1120px);
    padding: clamp(16px, 2.4vw, 32px);
    padding-bottom: calc(clamp(16px, 2.4vw, 32px) + 96px);
}

.booking-page.is-catalog > .brand {
    position: sticky;
    top: 0;
    z-index: 6;
    background: var(--surface-raised);
}

.booking-page.is-catalog .progress {
    margin-bottom: var(--space-4);
}

.booking-page.is-catalog .booking-step {
    min-height: 0;
}

.shop-search {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-3);
    padding: 0 var(--space-3);
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
}

.shop-search i,
.shop-search svg {
    width: 18px;
    height: 18px;
    color: var(--muted);
    flex: 0 0 auto;
}

.shop-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    color: var(--text);
}

.shop-search input:focus {
    outline: none;
}

.shop-chips {
    display: flex;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shop-chips::-webkit-scrollbar {
    display: none;
}

.shop-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 var(--space-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.shop-chip.is-active {
    color: var(--primary-ink);
    border-color: var(--primary);
    background: var(--primary);
}

.vehicle-select {
    position: relative;
}

.vehicle-select-trigger {
    width: 100%;
    min-height: var(--control-lg, 48px);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-muted);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vehicle-select-trigger > span {
    flex: 1;
    min-width: 0;
}

.vehicle-select-placeholder {
    color: var(--muted);
}

.vehicle-select-trigger .vehicle-icon {
    flex: 0 0 24px;
}

.vehicle-select-trigger [data-lucide] {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: var(--muted);
}

.vehicle-select.is-open .vehicle-select-trigger {
    border-color: var(--primary);
}

.vehicle-select-menu {
    position: absolute;
    z-index: 8;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    margin: 0;
    padding: var(--space-1);
    list-style: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.vehicle-select-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-3);
    border: 0;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.vehicle-select-option:hover,
.vehicle-select-option[aria-selected="true"] {
    background: var(--surface-muted);
}

.vehicle-select-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vehicle-select-copy strong {
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
}

.vehicle-select-copy em {
    color: var(--muted);
    font-size: var(--fs-xs);
    font-style: normal;
}

.vehicle-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.vehicle-selected-kicker {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
}

.vehicle-selected-name {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.vehicle-selected-name .vehicle-icon {
    width: 20px;
    height: 20px;
}

.vehicle-change {
    padding: 0;
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
    cursor: pointer;
}

.shop-kicker {
    margin: 0 0 var(--space-3);
    color: var(--muted);
    font-size: var(--fs-sm);
    font-weight: var(--weight-semibold);
}

.shop-featured {
    display: flex;
    gap: var(--space-3);
    margin: 0 0 var(--space-5);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.shop-featured::-webkit-scrollbar {
    display: none;
}

.shop-feature-card {
    position: relative;
    flex: 0 0 220px;
    min-width: 0;
    height: 148px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: var(--radius-xl);
    background: var(--surface-muted);
    text-align: left;
}

.shop-feature-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.shop-feature-img.is-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    font-weight: var(--weight-bold);
    background: linear-gradient(160deg, var(--surface-muted), var(--line));
}

.shop-feature-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-4) var(--space-3) var(--space-3);
    color: #fff;
    background: linear-gradient(180deg, transparent, rgb(0 0 0 / 82%));
}

.shop-feature-copy strong,
.shop-feature-copy span {
    display: block;
    overflow-wrap: anywhere;
}

.shop-groups {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.shop-group-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin: 0 0 var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--line);
}

.shop-group-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--text);
    font-size: 1.125rem;
    font-weight: var(--weight-bold);
    letter-spacing: -0.02em;
}

.shop-group-title::before {
    content: "";
    width: 3px;
    height: 1.05em;
    border-radius: var(--radius-pill);
    background: var(--primary);
}

.shop-group-count {
    flex: 0 0 auto;
    padding: 2px 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--text-soft);
    background: var(--surface-muted);
    font-size: var(--fs-xs);
    font-weight: var(--weight-semibold);
    white-space: nowrap;
}

.shop-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.shop-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface-subtle);
}

.shop-row-main {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    flex: 1;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    font: inherit;
    color: inherit;
}

.shop-row-img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.shop-row-img.is-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface-muted);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
}

.shop-row-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-row-copy strong {
    color: var(--text);
    overflow-wrap: anywhere;
}

.shop-price {
    color: var(--text);
    font-weight: var(--weight-semibold);
    font-size: var(--fs-sm);
}

.shop-details {
    color: var(--text-soft);
    font-size: var(--fs-xs);
}

.shop-add {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--primary-ink);
    background: var(--primary);
}

.shop-add i,
.shop-add svg {
    width: 18px;
    height: 18px;
    color: inherit;
    stroke: currentColor;
}

.shop-add.is-on {
    color: #fff;
    background: var(--success, #1f8a4c);
}

.shop-actions {
    margin-bottom: var(--space-3);
}

.shop-cart-btn {
    position: relative;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    margin-left: auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-pill);
    color: var(--text);
    background: var(--surface-muted);
    cursor: pointer;
}

.shop-cart-btn[hidden] {
    display: none !important;
}

.shop-cart-btn i,
.shop-cart-btn svg {
    width: 20px;
    height: 20px;
    color: inherit;
    stroke: currentColor;
}

.shop-cart-btn.is-open,
.shop-cart-btn[aria-expanded="true"] {
    color: var(--primary-ink);
    border-color: var(--primary);
    background: var(--primary);
}

.shop-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-pill);
    color: var(--primary-ink);
    background: var(--primary);
    font-size: 11px;
    font-weight: var(--weight-bold);
    line-height: 1;
}

.shop-cart-btn.is-open .shop-cart-badge,
.shop-cart-btn[aria-expanded="true"] .shop-cart-badge {
    color: var(--primary);
    background: var(--surface-raised);
}

.shop-cart-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: var(--overlay);
}

.shop-cart-overlay[hidden],
.shop-cart-panel[hidden] {
    display: none !important;
}

.shop-cart-panel {
    position: fixed;
    z-index: 31;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    display: flex;
    flex-direction: column;
    width: min(400px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    color: var(--text);
    background: var(--surface-raised);
    box-shadow: var(--shadow-lg);
}

.shop-cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--line);
}

.shop-cart-panel-head h2 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: var(--weight-bold);
}

.shop-cart-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--text);
    background: var(--surface-muted);
}

.shop-cart-close i,
.shop-cart-close svg,
.shop-cart-item-remove i,
.shop-cart-item-remove svg {
    width: 18px;
    height: 18px;
    color: inherit;
    stroke: currentColor;
}

.shop-cart-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    min-height: 0;
    overflow-y: auto;
    padding: var(--space-3);
}

.shop-cart-empty {
    margin: var(--space-6) var(--space-3);
    color: var(--muted);
    text-align: center;
}

.shop-cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-width: 0;
    padding: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface-subtle);
}

.shop-cart-item-img {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border-radius: var(--radius-lg);
    object-fit: cover;
}

.shop-cart-item-img.is-fallback {
    display: grid;
    place-items: center;
    color: var(--muted);
    background: var(--surface-muted);
    font-size: var(--fs-sm);
    font-weight: var(--weight-bold);
}

.shop-cart-item-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.shop-cart-item-copy strong {
    overflow-wrap: anywhere;
}

.shop-cart-item-copy span {
    color: var(--text-soft);
    font-size: var(--fs-sm);
}

.shop-cart-item-remove {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--danger-text, var(--danger));
    background: var(--danger-subtle, var(--surface-muted));
}

.shop-cart-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-3);
    border-top: 1px solid var(--line);
    color: var(--primary-ink);
    background: var(--primary);
}

.shop-cart-bar {
    position: sticky;
    bottom: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-top: var(--space-4);
    padding: var(--space-3);
    border-radius: var(--radius-xl);
    color: var(--primary-ink);
    background: var(--primary);
}

.shop-cart-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.shop-cart-copy span {
    font-size: var(--fs-sm);
    opacity: 0.82;
}

.shop-cart-go,
.shop-add-cta {
    min-height: 44px;
    padding: 0 var(--space-4);
    border: 0;
    border-radius: var(--radius-pill);
    color: var(--primary);
    background: var(--surface-raised);
    font: inherit;
    font-weight: var(--weight-bold);
    cursor: pointer;
    flex: 0 0 auto;
}

.shop-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 0 var(--space-3);
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font: inherit;
    font-weight: var(--weight-semibold);
}

.shop-hero {
    margin: 0 0 var(--space-4);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--surface-muted);
}

.shop-hero-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.shop-hero-img.is-fallback {
    display: grid;
    place-items: center;
    height: 160px;
    color: var(--muted);
    font-size: var(--fs-xl);
    font-weight: var(--weight-bold);
}

.shop-detail-title {
    margin-bottom: var(--space-2);
}

.shop-detail-price {
    margin: 0 0 var(--space-4);
    font-size: var(--fs-xl);
    font-weight: var(--weight-bold);
}

.shop-detail-body {
    margin: 0 0 var(--space-4);
    color: var(--text-soft);
    line-height: 1.5;
}

.shop-detail-meta {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-5);
    color: var(--muted);
}

.shop-add-bar {
    position: sticky;
    bottom: 0;
    margin-top: var(--space-5);
}

.shop-add-cta {
    width: 100%;
    min-height: 52px;
    border-radius: var(--radius-xl);
    color: var(--primary-ink);
    background: var(--primary);
}

.shop-add-cta.is-on {
    color: #fff;
    background: var(--success, #1f8a4c);
}

@media (max-width: 720px) {
    body:has(.booking-page.is-catalog) {
        display: block;
        padding: 0;
    }

    .booking-page.is-catalog {
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        border-radius: 0;
        box-shadow: none;
        padding: 16px 16px calc(16px + 108px);
    }

    .shop-feature-card {
        flex: 0 0 min(78vw, 260px);
        height: 150px;
    }

    .shop-row-img {
        width: 56px;
        height: 56px;
        flex-basis: 56px;
    }

    .shop-cart-bar {
        margin-inline: -4px;
    }
}

@media (min-width: 721px) {
    .shop-chips {
        flex-wrap: wrap;
        overflow: visible;
    }

    .shop-feature-card {
        flex: 0 0 min(46vw, 320px);
        height: 180px;
    }
}

@media (min-width: 900px) {
    .shop-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-3);
    }
}

@media (min-width: 1024px) {
    .booking-page.is-catalog {
        width: min(100%, 1120px);
    }

    .shop-feature-card {
        flex: 0 0 280px;
        height: 200px;
    }

    .shop-hero-img {
        height: 280px;
    }
}

@media (min-width: 1400px) {
    .booking-page.is-catalog {
        width: min(100%, 1240px);
    }
}

.shop-success-list {
    margin: var(--space-4) 0 0;
    padding-left: 1.1em;
    text-align: left;
    color: var(--text);
}

.shop-success-total {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    margin: var(--space-3) 0 0;
    color: var(--text);
}
