/* Soulful Steppers shop and Shop Admin */
.shop-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(239, 184, 91, 0.32), transparent 23rem),
    linear-gradient(135deg, var(--forest-deep), #246b4d 62%, #315e49);
}
.shop-hero p:not(.eyebrow) { max-width: 720px; }
.shop-member-sign-in { display: inline-flex; margin-top: 1rem; align-items: center; gap: 0.4rem; color: var(--gold); font-size: 0.82rem; font-weight: 900; }
.shop-member-sign-in:hover,
.shop-member-sign-in:focus-visible { color: #fff; }
.shop-section { min-height: 560px; padding: clamp(3rem, 7vw, 5.5rem) 0; background: #ebe9e4; }
.shop-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(200px, 0.32fr); margin-bottom: 0.75rem; padding: 1rem; gap: 0.9rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.shop-toolbar label { display: grid; gap: 0.45rem; color: var(--ink); font-size: 0.79rem; font-weight: 850; }
.shop-toolbar input,
.shop-toolbar select { width: 100%; min-height: 3.1rem; padding: 0 0.85rem; border: 1px solid var(--line); border-radius: 0.75rem; outline: none; color: var(--ink); background: #fff; }
.shop-toolbar input:focus,
.shop-toolbar select:focus { border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216, 120, 66, 0.14); }
.shop-results-count { min-height: 1.25rem; margin: 0 0 1.2rem; color: var(--muted); font-size: 0.78rem; font-weight: 750; }
.shop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.25rem; }
.shop-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--paper); box-shadow: 0 14px 36px rgba(19, 53, 41, 0.08); }
.shop-card.is-featured { border-color: rgba(216, 120, 66, 0.45); box-shadow: 0 18px 48px rgba(19, 53, 41, 0.12); }
.shop-card-visual { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #dfe8e1; }
.shop-card-visual > img { width: 100%; height: 100%; object-fit: cover; transition: transform 240ms ease; }
.shop-card:hover .shop-card-visual > img { transform: scale(1.025); }
.shop-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: #fff; background: linear-gradient(135deg, var(--forest-deep), var(--forest)); }
.shop-image-placeholder span { display: grid; width: 5.2rem; height: 5.2rem; place-items: center; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 50%; font: 900 1.55rem Georgia, serif; }
.shop-featured-badge,
.shop-stock-badge { position: absolute; top: 0.8rem; display: inline-flex; padding: 0.42rem 0.62rem; border-radius: 999px; font-size: 0.62rem; font-weight: 900; letter-spacing: 0.045em; text-transform: uppercase; box-shadow: 0 5px 16px rgba(0, 0, 0, 0.14); }
.shop-featured-badge { left: 0.8rem; color: var(--forest-deep); background: var(--gold); }
.shop-stock-badge { right: 0.8rem; color: var(--forest-deep); background: rgba(255, 255, 255, 0.94); }
.shop-stock-badge.stock-low_stock { color: #79520f; background: #fff0ce; }
.shop-stock-badge.stock-out_of_stock { color: #7f352f; background: #f7e3df; }
.shop-stock-badge.stock-coming_soon { color: #fff; background: var(--terracotta); }
.shop-thumbnails { display: flex; padding: 0.65rem 0.8rem 0; gap: 0.5rem; overflow-x: auto; }
.shop-thumbnail { width: 3.2rem; height: 3.2rem; padding: 0; flex: 0 0 auto; overflow: hidden; border: 2px solid transparent; border-radius: 0.55rem; background: #fff; cursor: pointer; }
.shop-thumbnail.is-active { border-color: var(--terracotta); }
.shop-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.shop-card-content { display: flex; min-height: 330px; padding: 1.25rem; flex-direction: column; }
.shop-card-content .detail-kicker { color: var(--terracotta); }
.shop-card-content h2 { margin: 0.65rem 0 0; color: var(--forest-deep); font: clamp(1.7rem, 3vw, 2.2rem)/1.06 Georgia, serif; }
.shop-description { margin: 0.85rem 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.62; }
.shop-price-block { display: grid; margin-top: auto; padding-top: 1.25rem; gap: 0.25rem; }
.shop-price-label { color: var(--muted); font-size: 0.62rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.shop-price { color: var(--forest-deep); font: 2rem/1 Georgia, serif; }
.shop-price.member-price { color: var(--terracotta); }
.shop-public-comparison { color: var(--muted); font-size: 0.73rem; }
.shop-member-saving { justify-self: start; color: var(--terracotta); font-size: 0.72rem; font-weight: 850; text-decoration: underline; text-underline-offset: 0.18em; }
.shop-card-action { margin-top: 1rem; }
.shop-buy-button { width: 100%; justify-content: center; }
.shop-buy-button.is-disabled { cursor: not-allowed; opacity: 0.62; color: var(--muted); background: #e5e6e2; }
.shop-empty { grid-column: 1 / -1; padding: clamp(2rem, 5vw, 3rem); border: 1px dashed var(--line); border-radius: 1.2rem; background: rgba(255, 253, 248, 0.7); text-align: center; }
.shop-empty h2 { margin: 0.7rem 0 0; color: var(--forest-deep); font: clamp(2rem, 5vw, 3.2rem)/1 Georgia, serif; }
.shop-empty p:last-child { max-width: 520px; margin: 1rem auto 0; color: var(--muted); line-height: 1.65; }

.shop-admin-hero { background: linear-gradient(135deg, #173f31, var(--forest-deep) 55%, #315e49); }
.shop-admin-filters { grid-template-columns: minmax(260px, 1fr) 190px 220px; }
.admin-shop-list { display: grid; gap: 0.85rem; }
.admin-shop-list[aria-busy="true"] { opacity: 0.65; }
.admin-shop-card { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto; padding: 0.85rem 1.1rem 0.85rem 0.85rem; align-items: center; gap: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 24px rgba(19, 53, 41, 0.06); }
.admin-shop-card-image { display: grid; width: 112px; aspect-ratio: 1; overflow: hidden; place-items: center; border-radius: 0.78rem; color: #fff; background: linear-gradient(135deg, var(--forest-deep), var(--forest)); font: 900 1.15rem Georgia, serif; }
.admin-shop-card-image img { width: 100%; height: 100%; object-fit: cover; }
.admin-shop-card h3 { margin: 0.7rem 0 0; color: var(--forest-deep); font: 1.55rem/1.12 Georgia, serif; }
.admin-badge.shop-stock-low_stock { color: #79520f; background: #fff0ce; }
.admin-badge.shop-stock-out_of_stock { color: #7f352f; background: #f7e3df; }
.admin-badge.shop-stock-coming_soon { color: #fff; background: var(--terracotta); }
.admin-badge.shop-featured-admin-badge { color: var(--forest-deep); background: var(--gold); }
.shop-checkbox-label { display: flex !important; min-height: 3.1rem; padding: 0.8rem; align-items: flex-start; gap: 0.7rem !important; border: 1px solid var(--line); border-radius: 0.8rem; background: #fff; cursor: pointer; }
.admin-event-form .shop-checkbox-label input[type="checkbox"] { width: 1.1rem; min-width: 1.1rem; height: 1.1rem; min-height: 0; margin: 0.1rem 0 0; padding: 0; accent-color: var(--terracotta); box-shadow: none; }
.shop-checkbox-label > span { display: grid; gap: 0.25rem; }
.shop-checkbox-label strong { color: var(--forest-deep); font-size: 0.82rem; }
.shop-checkbox-label small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.shop-featured-control { align-self: end; }
.shop-current-images { display: grid; gap: 0.55rem; }
.shop-current-images-label { color: var(--ink); font-size: 0.79rem; font-weight: 850; }
.shop-current-image-grid { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.shop-current-image-grid img { width: 76px; height: 76px; object-fit: cover; border: 1px solid var(--line); border-radius: 0.65rem; background: #fff; }

@media (max-width: 900px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-shop-card { grid-template-columns: 90px minmax(0, 1fr); }
  .admin-shop-card-image { width: 90px; }
  .admin-shop-card .admin-event-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .shop-toolbar,
  .shop-grid { grid-template-columns: 1fr; }
  .shop-card-content { min-height: 0; }
  .shop-admin-filters { grid-template-columns: 1fr; }
  .admin-shop-card { grid-template-columns: 76px minmax(0, 1fr); padding: 0.75rem; gap: 0.85rem; }
  .admin-shop-card-image { width: 76px; }
  .admin-shop-card h3 { font-size: 1.3rem; }
  .admin-shop-card .admin-event-actions { justify-content: stretch; }
  .admin-shop-card .admin-event-actions .button { flex: 1; }
}

/* Basket, variants and order management */
.shop-basket-link { display: inline-flex; margin-top: 1rem; padding: 0.68rem 0.9rem; align-items: center; gap: 0.55rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 900; text-decoration: none; }
.shop-basket-link span,
.shop-toolbar-basket span { display: inline-grid; min-width: 1.55rem; height: 1.55rem; padding: 0 .35rem; place-items: center; border-radius: 999px; color: var(--forest-deep); background: var(--gold); font-size: .7rem; }
.shop-toolbar { grid-template-columns: minmax(260px, 1fr) minmax(190px, .35fr) auto; align-items: end; }
.shop-toolbar-basket { min-height: 3.1rem; justify-content: center; gap: .55rem; }
.shop-add-form { display: grid; grid-template-columns: minmax(0, 1fr) 90px; gap: .7rem; }
.shop-add-form label { display: grid; gap: .38rem; color: var(--ink); font-size: .68rem; font-weight: 850; }
.shop-add-form select,
.shop-add-form input { width: 100%; min-height: 2.9rem; padding: 0 .72rem; border: 1px solid var(--line); border-radius: .7rem; color: var(--ink); background: #fff; }
.shop-add-form select:focus,
.shop-add-form input:focus { outline: 0; border-color: var(--terracotta); box-shadow: 0 0 0 3px rgba(216,120,66,.14); }
.shop-add-form .shop-buy-button,
.shop-card-message { grid-column: 1 / -1; }
.shop-card-message { min-height: 1.1rem; margin: 0; color: var(--muted); font-size: .7rem; font-weight: 750; }
.shop-card-message.is-success { color: #21633f; }
.shop-card-message.is-error { color: #9a342d; }
.shop-buy-button:disabled { cursor: wait; opacity: .65; }

.shop-basket-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 1.4rem; }
.shop-basket-layout > .shop-notice { grid-column: 1 / -1; }
.shop-notice { margin: 0; padding: .9rem 1rem; border: 1px solid #e0c88a; border-radius: .8rem; color: #6c5116; background: #fff4d6; font-size: .8rem; }
.shop-notice.is-success { border-color: #a8d3b7; color: #205f3b; background: #eaf7ee; }
.shop-notice.is-error { border-color: #e3aca6; color: #87352f; background: #fbecea; }
.shop-basket-items { display: grid; gap: .85rem; }
.shop-basket-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) 170px auto; padding: 1rem; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 26px rgba(19,53,41,.06); }
.shop-basket-image { display: grid; width: 96px; aspect-ratio: 1; overflow: hidden; place-items: center; border-radius: .75rem; color: #fff; background: linear-gradient(135deg,var(--forest-deep),var(--forest)); font: 900 1.1rem Georgia,serif; }
.shop-basket-image img { width: 100%; height: 100%; object-fit: cover; }
.shop-basket-item-copy h2 { margin: 0; color: var(--forest-deep); font: 1.45rem/1.1 Georgia,serif; }
.shop-basket-item-copy p { margin: .35rem 0; color: var(--muted); font-size: .75rem; }
.shop-basket-item-copy strong { font-size: .72rem; }
.shop-basket-quantity { display: grid; grid-template-columns: 75px 1fr; align-items: end; gap: .45rem; }
.shop-basket-quantity label { display: grid; gap: .3rem; color: var(--muted); font-size: .65rem; font-weight: 850; }
.shop-basket-quantity input { width: 100%; min-height: 2.65rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: .65rem; }
.shop-basket-quantity .button { min-height: 2.65rem; padding: .65rem; }
.shop-remove-link,
.shop-clear-link { padding: 0; justify-self: start; border: 0; color: #963c35; background: transparent; font: inherit; font-size: .68rem; font-weight: 800; text-decoration: underline; cursor: pointer; }
.shop-basket-line-total { color: var(--forest-deep); white-space: nowrap; font: 1.25rem Georgia,serif; }
.shop-basket-summary,
.shop-checkout-summary { position: sticky; top: 6rem; display: grid; padding: 1.35rem; gap: .85rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 12px 34px rgba(19,53,41,.08); }
.shop-basket-summary > div,
.shop-checkout-total-row { display: flex; justify-content: space-between; gap: 1rem; }
.shop-basket-summary > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.55; }

.shop-checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); align-items: start; gap: 1.4rem; }
.shop-checkout-form { display: grid; gap: 1rem; }
.shop-checkout-form fieldset { margin: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.shop-checkout-form legend { padding: 0 .45rem; color: var(--forest-deep); font: 1.25rem Georgia,serif; }
.shop-checkout-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.shop-checkout-fields label { display: grid; gap: .38rem; color: var(--ink); font-size: .75rem; font-weight: 850; }
.shop-checkout-fields input { width: 100%; min-height: 3rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: .7rem; }
.shop-field-wide { grid-column: 1 / -1; }
.shop-fulfilment-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.shop-fulfilment-choice { display: flex; padding: 1rem; align-items: center; gap: .7rem; border: 1px solid var(--line); border-radius: .8rem; cursor: pointer; }
.shop-fulfilment-choice:has(input:checked) { border-color: var(--terracotta); background: #fff6ef; box-shadow: 0 0 0 2px rgba(216,120,66,.12); }
.shop-fulfilment-choice > span { display: grid; gap: .18rem; }
.shop-fulfilment-choice small { color: var(--muted); }
.shop-payment-placeholder { padding: 1.1rem; border: 1px dashed var(--terracotta); border-radius: .9rem; background: #fff8f1; }
.shop-payment-placeholder p { color: var(--muted); font-size: .78rem; line-height: 1.55; }
.shop-payment-placeholder .button { width: 100%; justify-content: center; }
.shop-checkout-line { display: flex; padding-bottom: .72rem; justify-content: space-between; gap: .9rem; border-bottom: 1px solid var(--line); font-size: .76rem; }
.shop-checkout-line span { display: grid; gap: .18rem; }
.shop-checkout-line small { color: var(--muted); }
.shop-checkout-grand-total { display: flex; padding-top: .75rem; justify-content: space-between; border-top: 2px solid var(--forest-deep); color: var(--forest-deep); font: 1.25rem Georgia,serif; }

.shop-settings-card { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); margin-bottom: 1.5rem; padding: 1.2rem; gap: 1rem 1.4rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); }
.shop-settings-card h2 { margin: .45rem 0 0; color: var(--forest-deep); font: 1.7rem Georgia,serif; }
.shop-settings-card p { color: var(--muted); font-size: .76rem; line-height: 1.55; }
.shop-settings-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .75rem; }
.shop-settings-controls > label:last-child { display: grid; grid-column: 1 / -1; gap: .35rem; color: var(--ink); font-size: .75rem; font-weight: 850; }
.shop-settings-controls input[name=uk_delivery_price] { min-height: 3rem; padding: 0 .8rem; border: 1px solid var(--line); border-radius: .7rem; }
.shop-settings-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; align-items: center; gap: 1rem; }
.admin-field-help { margin: 0 0 1rem; color: var(--muted); font-size: .76rem; line-height: 1.55; }
.shop-variant-list { display: grid; gap: .75rem; }
.shop-variant-row { display: grid; grid-template-columns: repeat(2,minmax(110px,1fr)) minmax(100px,.8fr) 90px 110px 105px 75px auto; padding: .85rem; align-items: end; gap: .6rem; border: 1px solid var(--line); border-radius: .85rem; background: #f7f5f0; }
.shop-variant-row label { display: grid; gap: .3rem; color: var(--ink); font-size: .64rem; font-weight: 850; }
.shop-variant-row input,
.shop-variant-row select { width: 100%; min-height: 2.65rem; padding: 0 .55rem; border: 1px solid var(--line); border-radius: .6rem; background: #fff; }
.shop-remove-variant-button { min-height: 2.65rem; padding: .6rem; color: #8f332d; }
.shop-add-variant-button { margin-top: .8rem; }

.shop-order-filters { grid-template-columns: minmax(260px,1fr) 180px 180px; }
.shop-order-list { display: grid; gap: 1rem; }
.shop-order-list[aria-busy=true] { opacity: .6; }
.shop-order-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: var(--paper); box-shadow: 0 8px 26px rgba(19,53,41,.06); }
.shop-order-heading { display: flex; justify-content: space-between; gap: 1rem; }
.shop-order-heading h2 { margin: .35rem 0; color: var(--forest-deep); font: 1.6rem Georgia,serif; }
.shop-order-meta,
.shop-order-customer,
.shop-order-address { color: var(--muted); font-size: .75rem; }
.shop-order-total { color: var(--forest-deep); font: 1.6rem Georgia,serif; }
.shop-order-items { margin: .9rem 0; padding: .8rem 1rem .8rem 2rem; border-radius: .75rem; background: #f5f3ee; color: var(--ink); font-size: .76rem; line-height: 1.7; }

@media (max-width: 1100px) {
  .shop-variant-row { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .shop-remove-variant-button { align-self: end; }
}
@media (max-width: 900px) {
  .shop-toolbar { grid-template-columns: 1fr 1fr; }
  .shop-toolbar-basket { grid-column: 1 / -1; }
  .shop-basket-layout,
  .shop-checkout-layout { grid-template-columns: 1fr; }
  .shop-basket-summary,
  .shop-checkout-summary { position: static; }
  .shop-basket-item { grid-template-columns: 82px minmax(0,1fr) auto; }
  .shop-basket-image { width: 82px; }
  .shop-basket-quantity { grid-column: 2 / 3; }
  .shop-settings-card { grid-template-columns: 1fr; }
  .shop-settings-actions { grid-column: auto; }
  .shop-order-filters { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shop-toolbar,
  .shop-add-form,
  .shop-checkout-fields,
  .shop-fulfilment-options,
  .shop-settings-controls,
  .shop-variant-row { grid-template-columns: 1fr; }
  .shop-add-form .shop-buy-button,
  .shop-card-message,
  .shop-field-wide,
  .shop-settings-controls > label:last-child { grid-column: auto; }
  .shop-basket-item { grid-template-columns: 68px minmax(0,1fr); }
  .shop-basket-image { width: 68px; }
  .shop-basket-quantity { grid-column: 1 / -1; }
  .shop-basket-line-total { grid-column: 2; justify-self: end; }
  .shop-settings-actions { align-items: stretch; flex-direction: column; }
  .shop-settings-actions .button { width: 100%; justify-content: center; }
}
