/* Shared light shop / checkout styles (Apple Store inspired) */

.shop-page {
  background: #fff;
  color: #1d1d1f;
}

.global-nav--light {
  background: rgba(251, 251, 253, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.global-nav--light .global-nav__logo,
.global-nav--light .global-nav__links a,
.global-nav--light .global-nav__icons {
  color: #1d1d1f;
  opacity: 0.88;
}

.global-nav--light .global-nav__links a:hover {
  color: #000;
  opacity: 1;
}

.global-nav__icons .icon-btn {
  position: relative;
  text-decoration: none;
}

.shop-local {
  border-bottom: 1px solid #d2d2d7;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  position: sticky;
  top: 44px;
  z-index: 80;
}

.shop-local__inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.shop-local h1 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.011em;
}

.shop-local__price {
  font-size: 14px;
  color: #6e6e73;
  text-align: right;
}

.gift-pill {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #0071e3;
}

.strike {
  text-decoration: line-through;
  color: #86868b;
  font-weight: 400;
}

/* ===== Apple-like buy layout ===== */
.rf-buy {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  display: grid;
  gap: 40px;
}

@media (min-width: 834px) {
  .rf-buy {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
}

.rf-gallery {
  position: relative;
}

@media (min-width: 834px) {
  .rf-gallery {
    position: sticky;
    top: 120px;
  }
}

.rf-gallery__stage {
  background: #fbfbfd;
  border-radius: 18px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.buy-paid {
  justify-content: center;
  margin-top: 16px;
}

.rf-gallery__stage img {
  width: min(100%, 420px);
  height: auto;
  image-rendering: auto;
}

/* ===== Floating settings gear + modal (fortnite/wolverine style) ===== */
.gifter-settings {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1200;
}

.gifter-settings__toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d2d2d7;
  background: #fff;
  color: #1d1d1f;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gifter-settings__toggle:hover {
  border-color: #86868b;
  transform: rotate(30deg);
}

.gifter-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.gifter-settings-overlay.hidden {
  display: none;
}

.gifter-settings-modal {
  width: min(100%, 520px);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #1d1d1f;
  color: #f5f5f7;
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  padding: 20px 20px 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.gifter-settings-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.gifter-settings-modal__header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.gifter-settings-modal__close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.gifter-settings-modal__close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.gifter-settings-modal__section + .gifter-settings-modal__section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gifter-settings-modal__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 245, 247, 0.65);
}

.gifter-settings-modal__hint {
  margin: 4px 0 12px;
  font-size: 13px;
  color: rgba(245, 245, 247, 0.45);
}

.gifter-phone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .gifter-phone-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gifter-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #f5f5f7;
  cursor: pointer;
  font: inherit;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gifter-phone:hover {
  background: rgba(255, 255, 255, 0.08);
}

.gifter-phone.is-selected {
  border-color: #2997ff;
  background: rgba(41, 151, 255, 0.14);
  box-shadow: 0 0 0 1px #2997ff;
}

.gifter-phone__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  overflow: hidden;
}

.gifter-phone__img-wrap img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.gifter-phone__badge {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 2px 5px;
  border-radius: 980px;
}

.gifter-phone__name {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.gifter-phone__price {
  font-size: 10px;
  color: rgba(245, 245, 247, 0.5);
}

.gifter-bg__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gifter-bg__swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.gifter-bg__swatch.is-selected {
  border-color: #2997ff;
  box-shadow: 0 0 0 2px rgba(41, 151, 255, 0.35);
}

.gifter-settings-modal__save {
  width: 100%;
  margin-top: 20px;
}

.gift-tag--preorder {
  background: #1d1d1f;
  color: #f5f5f7;
}

.rf-banner {
  background: #f5f5f7;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  color: #6e6e73;
  margin-bottom: 36px;
  line-height: 1.4;
}

.rf-banner strong {
  display: block;
  color: #1d1d1f;
  margin-bottom: 2px;
}

.config-block {
  margin-bottom: 44px;
}

.config-block h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.009em;
  margin-bottom: 16px;
}

.config-block h2 span {
  color: #6e6e73;
  font-weight: 400;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  padding: 18px 20px;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.option-card.is-selected {
  border-color: #0071e3;
  box-shadow: 0 0 0 1px #0071e3;
}

.option-card.is-locked {
  cursor: default;
}

.option-card strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.option-card p {
  color: #6e6e73;
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.4;
}

.option-card__price {
  font-size: 14px;
  color: #1d1d1f;
  white-space: nowrap;
}

.finish-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.finish-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 12px;
  border: 1px solid #d2d2d7;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: #1d1d1f;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.finish-card img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.finish-card span {
  font-size: 14px;
  font-weight: 600;
}

.finish-card:hover {
  border-color: #86868b;
}

.finish-card.is-selected {
  border-color: #0071e3;
  box-shadow: 0 0 0 1px #0071e3;
}

.rf-summary {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 28px;
  margin-top: 8px;
}

.rf-summary__product {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d2d2d7;
}

.rf-summary__product img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.rf-summary__product h3 {
  font-size: 17px;
  font-weight: 600;
}

.rf-summary__product p {
  font-size: 12px;
  color: #6e6e73;
  margin-top: 4px;
}

.rf-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 6px 0;
}

.rf-total {
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  font-weight: 600;
  margin: 12px 0 20px;
  padding-top: 12px;
  border-top: 1px solid #d2d2d7;
}

.rf-cta {
  width: 100%;
  padding: 14px 22px;
  font-size: 17px;
}

.rf-note {
  margin-top: 12px;
  text-align: center;
  font-size: 12px;
  color: #6e6e73;
}

.shop-footer {
  background: #f5f5f7;
}

.checkout-nav-title {
  font-size: 12px;
  font-weight: 600;
  color: #1d1d1f;
}

.checkout-nav-help {
  font-size: 12px;
  color: #0066cc;
}

.gift-checkout {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 24px 100px;
}

.gift-kicker {
  text-align: center;
  color: #0071e3;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.bag-empty {
  text-align: center;
  padding: 80px 20px;
}

.bag-empty h1 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 12px;
}

.bag-empty p {
  color: #6e6e73;
  margin-bottom: 28px;
}

.bag-empty a:not(.btn) {
  color: #0066cc;
}

.bag-header h1 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 600;
  text-align: center;
}

.bag-header__sub {
  text-align: center;
  color: #6e6e73;
  margin: 8px auto 40px;
  max-width: 480px;
}

.bag-grid {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .bag-grid {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

.bag-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid #d2d2d7;
}

.bag-item__img {
  width: 140px;
  height: auto;
  object-fit: contain;
}

.bag-item__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.bag-item__top h2 {
  font-size: 24px;
  font-weight: 600;
}

.bag-item__price {
  font-size: 17px;
  white-space: nowrap;
  text-align: right;
}

.bag-item__price strong {
  display: block;
  margin-top: 2px;
}

.bag-item__specs {
  color: #6e6e73;
  font-size: 14px;
  margin-top: 6px;
}

.gift-tag {
  display: inline-block;
  margin-top: 14px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
}

.bag-delivery {
  margin-top: 20px;
  font-size: 14px;
}

.bag-delivery p {
  color: #6e6e73;
  margin-top: 4px;
  line-height: 1.4;
}

.text-btn {
  background: none;
  border: none;
  color: #0066cc;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  padding: 0;
  margin-top: 16px;
  display: inline-block;
  text-decoration: none;
}

.order-summary {
  background: #f5f5f7;
  border-radius: 18px;
  padding: 28px;
}

.order-summary h2 {
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 20px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  font-size: 24px;
  font-weight: 600;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #d2d2d7;
  margin-bottom: 20px;
}

.summary-cta {
  width: 100%;
  margin-bottom: 12px;
}

.claim-hint {
  font-size: 12px;
  color: #6e6e73;
  text-align: center;
  line-height: 1.4;
}

.confirm-wrap {
  padding-top: 20px;
}

.confirm {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 40px 0;
}

.confirm__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #07c160;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.confirm h1 {
  font-size: 40px;
  font-weight: 600;
  margin-bottom: 12px;
}

.confirm__order {
  margin-bottom: 12px;
  color: #6e6e73;
}

.confirm > p {
  color: #6e6e73;
  line-height: 1.5;
}

.confirm__img {
  width: 200px;
  margin: 32px auto;
}

.confirm-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

/* Checkout steps */
.step-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d2d2d7;
  list-style: none;
}

.step-rail li {
  font-size: 12px;
  color: #86868b;
  font-weight: 600;
}

.step-rail li.is-active {
  color: #1d1d1f;
}

.step-rail li.is-done {
  color: #0066cc;
  cursor: pointer;
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
  animation: fadeUp 0.35s ease both;
}

.paid-with {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 13px;
  color: #6e6e73;
}

.apple-pay-mark {
  width: 72px;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.apple-pay-btn {
  width: 100%;
  background: #000;
  border: none;
  border-radius: 980px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  opacity: 0.92;
  margin-bottom: 10px;
}

.apple-pay-btn:disabled {
  cursor: default;
}

.apay-lockup {
  display: block;
}

.pickup-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pickup-form label,
.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #6e6e73;
}

.pickup-form input,
.pickup-form select,
.checkout-form input,
.checkout-form select {
  border: 1px solid #d2d2d7;
  border-radius: 10px;
  padding: 14px 12px;
  font: inherit;
  font-size: 17px;
  color: #1d1d1f;
  background: #fff;
}

.pickup-form input:focus,
.pickup-form select:focus {
  outline: none;
  border-color: #0071e3;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.hint {
  color: #86868b;
  font-weight: 400;
}

.form-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 600px) {
  .form-row {
    grid-template-columns: 1.2fr 1fr;
  }
}

.pickup-type {
  border: none;
  padding: 0;
}

.pickup-type legend {
  font-size: 12px;
  color: #6e6e73;
  margin-bottom: 10px;
}

.pickup-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 6px !important;
  border: 1px solid #d2d2d7;
  border-radius: 980px;
  padding: 8px 14px;
  font-size: 13px;
  color: #1d1d1f;
  cursor: pointer;
  background: #fff;
}

.chip input {
  accent-color: #0071e3;
}

.chip.is-selected {
  border-color: #0071e3;
  box-shadow: 0 0 0 1px #0071e3;
  background: #f5f9ff;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
}

.review-block {
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #d2d2d7;
}

.review-block h3 {
  font-size: 17px;
  margin-bottom: 12px;
}

.review-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.review-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.review-item p {
  font-size: 14px;
  color: #6e6e73;
}

.review-item span {
  margin-left: auto;
  font-weight: 600;
}

.review-copy {
  font-size: 15px;
  line-height: 1.5;
  color: #1d1d1f;
}

.pickup-place {
  color: #0066cc;
  font-weight: 600;
}

.mini-item {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #d2d2d7;
}

.mini-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.mini-item p {
  font-size: 12px;
  color: #6e6e73;
}

.sticky-summary {
  position: sticky;
  top: 80px;
}

.confirm-card {
  text-align: left;
  background: #f5f5f7;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 8px auto 28px;
  max-width: 420px;
}

.confirm-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  padding: 8px 0;
  border-bottom: 1px solid #e8e8ed;
}

.confirm-row:last-child {
  border-bottom: none;
}

.confirm-row span {
  color: #6e6e73;
}

.confirm-row strong {
  text-align: right;
  color: #1d1d1f;
}
