/* Shopify-style single-product bag + checkout */

.shop-main {
  padding: 28px 5vw 80px;
  max-width: auto;
  margin: 0 auto;
}

.shop-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0 0 1.75rem;
  font-size: 0.92rem;
  color: #666;
}

.shop-breadcrumb a {
  color: #111;
  text-decoration: none;
}

.shop-breadcrumb a:hover {
  text-decoration: underline;
}

.shop-bag {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .shop-bag {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
    gap: 3rem;
  }
}

.shop-gallery {
  background: #f5f5f5;
  border-radius: 4px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shop-gallery img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  mix-blend-mode: multiply;
  display: block;
}

.shop-left .shop-price {
  margin-top: 1rem;
}

.shop-panel h1,
.shop-title-mobile {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.15;
}

.shop-title-mobile {
  display: none;
  margin-top: 1rem;
}

@media (max-width: 959px) {
  .shop-title-desktop {
    display: none;
  }
  .shop-title-mobile {
    display: block;
  }
}

@media (min-width: 960px) {
  .shop-panel .shop-primary-btn {
    margin-top: 1.25rem;
  }
}

.shop-price {
  margin: 0 0 1.25rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.shop-price .muted {
  font-weight: 400;
  font-size: 0.95rem;
}

.shop-field-label {
  display: block;
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #444;
}

.shop-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.shop-swatch {
  min-width: 88px;
  padding: 0.65rem 1rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: #fff;
  color: #555;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.shop-swatch:hover,
.shop-swatch:focus-visible {
  border-color: #111;
  color: #111;
  outline: none;
}

.shop-swatch.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.shop-qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
}

.shop-qty-row input[type="number"] {
  width: 4.5rem;
  padding: 0.65rem 0.5rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font: inherit;
  text-align: center;
}

.shop-primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.shop-primary-btn:hover {
  background: #333;
}

.shop-primary-btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.shop-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.45;
}

.shop-summary-card {
  margin-top: 1.5rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #fafafa;
}

.shop-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}

.shop-summary-row.is-total {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.shop-pick h1 {
  margin: 0 0 0.5rem;
}

.shop-pick-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 700px) {
  .shop-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.shop-pick-card {
  display: block;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  background: #fff;
}

.shop-pick-card:hover {
  border-color: #111;
}

.shop-pick-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  font-weight: 560;
}

.shop-pick-card p {
  margin: 0;
  color: #666;
  font-size: 0.92rem;
}

/* Checkout */
.shop-checkout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 960px) {
  .shop-checkout {
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: start;
    gap: 2.75rem;
  }
}

.shop-checkout-form {
  min-width: 0;
}

.shop-checkout-form h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
}

.shop-checkout-form .lede {
  margin: 0 0 1.75rem;
  max-width: 36rem;
  color: #555;
  line-height: 1.45;
}

.shop-checkout-form fieldset {
  border: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  min-width: 0;
}

.shop-checkout-form legend {
  display: block;
  width: 100%;
  margin: 0 0 0.9rem;
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #111;
}

.shop-form {
  width: 100%;
  max-width: none;
  display: block;
}

.shop-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.1rem;
  align-items: start;
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  margin: 0;
  font: inherit;
  color: inherit;
}

.shop-field--full {
  grid-column: 1 / -1;
}

.shop-form .shop-field-label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #555;
}

.shop-form input,
.shop-form textarea,
.shop-form select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: 1rem;
  line-height: 1.35;
  appearance: none;
  -webkit-appearance: none;
}

.shop-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.shop-form select {
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 12px 8px;
  cursor: pointer;
}

.shop-form input:focus,
.shop-form textarea:focus,
.shop-form select:focus {
  outline: none;
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.shop-form .shop-primary-btn {
  margin-top: 0.35rem;
  width: 100%;
  max-width: none;
}

.shop-form .form-status {
  margin-top: 0.75rem;
}

.shop-payment-heading {
  margin: 0 0 0.75rem;
}

.shop-payment-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.shop-payment-card {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
  cursor: pointer;
}

.shop-payment-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  pointer-events: none;
  appearance: none;
}

.shop-payment-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-height: 5.25rem;
  padding: 0.95rem 1rem 0.95rem 2.65rem;
  border: 1.5px solid #d5d5d5;
  border-radius: 10px;
  background: #fff;
  color: #111;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.shop-payment-card-body::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 1rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid #bbb;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
}

.shop-payment-card-title {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.25;
}

.shop-payment-card-desc {
  font-size: 0.86rem;
  line-height: 1.4;
  color: #666;
}

.shop-payment-card:hover:not(.is-disabled) .shop-payment-card-body {
  border-color: #111;
}

.shop-payment-card:focus-within:not(.is-disabled) .shop-payment-card-body {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.shop-payment-card input:checked + .shop-payment-card-body {
  border-color: #111;
  background: #fafafa;
  box-shadow: inset 0 0 0 1px #111;
}

.shop-payment-card input:checked + .shop-payment-card-body::before {
  border-color: #111;
  background: #111;
  box-shadow: inset 0 0 0 3px #fff;
}

.shop-payment-card.is-disabled {
  cursor: not-allowed;
}

.shop-payment-card.is-disabled .shop-payment-card-body {
  border-color: #e4e4e4;
  background: #f3f3f3;
  color: #9a9a9a;
  box-shadow: none;
}

.shop-payment-card.is-disabled .shop-payment-card-body::before {
  border-color: #d2d2d2;
  background: #ebebeb;
}

.shop-payment-card.is-disabled .shop-payment-card-desc {
  color: #a0a0a0;
}

.shop-payment-notes {
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .shop-form-grid {
    grid-template-columns: 1fr;
  }

  .shop-payment-cards {
    grid-template-columns: 1fr;
  }
}

.shop-checkout-summary {
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  background: #f7f7f7;
  position: sticky;
  top: 88px;
  min-width: 0;
}

.shop-checkout-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.shop-line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
}

.shop-line img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}

.shop-line strong {
  display: block;
  font-size: 0.95rem;
}

.shop-phone {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #d0d0d0;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.shop-phone:focus-within {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}

.shop-phone-prefix {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 0 0.85rem;
  border-right: 1px solid #e2e2e2;
  background: #f7f7f7;
  color: #333;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  user-select: none;
}

.shop-form .shop-phone input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 2.75rem;
  background: transparent;
}

.shop-form .shop-phone input:focus {
  box-shadow: none;
  outline: none;
}

.shop-field-hint {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #777;
}

.shop-success {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 4rem;
}

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

.shop-success-card {
  width: 100%;
  max-width: 560px;
  padding: 2.25rem 1.75rem 2rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #fafafa 0%, #fff 42%);
  text-align: center;
}

.shop-success-icon {
  display: inline-flex;
  color: #0f6b3c;
  margin: 0 0 1rem;
}

.shop-success-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f6b3c;
}

.shop-success h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 500;
}

.shop-success-order {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.shop-success .lede {
  margin: 0 auto 1.35rem;
  max-width: 34rem;
  color: #444;
  line-height: 1.5;
}

.shop-success-steps {
  margin: 0 auto 1.75rem;
  padding: 0;
  max-width: 28rem;
  list-style: none;
  text-align: left;
}

.shop-success-steps li {
  position: relative;
  margin: 0 0 0.7rem;
  padding-left: 1.35rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.45;
}

.shop-success-steps li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #111;
}

.shop-success-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.shop-success-btn {
  width: auto;
  min-width: min(100%, 260px);
  text-decoration: none;
}

.shop-success-secondary {
  color: #333;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-success-secondary:hover {
  color: #111;
}

.muted {
  opacity: 0.72;
  font-size: 0.92rem;
}
