/* AgriTwin shop / buy pages */
.shop-page-content {
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--landing-text, #1b2631);
  line-height: 1.6;
  padding: 2rem 1.5rem 2.5rem;
  background: #fff;
}

.shop-page-content .shop-wrap {
  max-width: 1120px;
  margin: 0 auto;
}

.shop-page-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e8ecea;
}

.shop-page-header__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.shop-page-header__lead {
  margin: 0 0 1rem;
  max-width: 40rem;
  color: #5c6b7a;
  font-size: 1.1rem;
}

.shop-product-block {
  padding: 2rem 0;
}

.shop-product-block--alt {
  background: #f8faf9;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.shop-product-block + .shop-product-block {
  padding-top: 2rem;
  border-top: 1px solid #e8ecea;
}

.shop-product-block__label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2d6a4f;
}

.shop-product-block__footer {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: #5c6b7a;
}

.shop-price__suffix {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #5c6b7a;
}

.shop-hero__image .shop-hero__img--landscape {
  max-width: 420px;
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
}

.shop-plan-picker {
  border: none;
  margin: 0 0 1rem;
  padding: 0;
}

.shop-plan-picker__legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #5c6b7a;
  margin-bottom: 0.5rem;
  padding: 0;
}

.shop-plan-row-break {
  display: none;
}

.shop-plan-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.shop-plan-picker label.shop-plan-card {
  display: block;
  padding: 0.65rem 0.75rem;
  border: 2px solid #e8ecea;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0;
  font-weight: normal;
}

.shop-plan-picker label.shop-plan-card:hover {
  border-color: #95d5b2;
}

.shop-plan-card--selected {
  border-color: #2d6a4f !important;
  box-shadow: 0 0 0 1px #2d6a4f;
}

.shop-plan-card__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.shop-plan-card__price {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 0.15rem;
}

.shop-plan-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: #1b2631;
}

.shop-plan-card__summary {
  display: block;
  font-size: 0.75rem;
  color: #5c6b7a;
  line-height: 1.35;
}

.shop-hero__details .shop-hero__tagline {
  margin-bottom: 0.85rem;
  font-size: 1rem;
}

.shop-hero__details .shop-price-block {
  margin-bottom: 0.85rem;
}

.shop-hero__details .shop-price {
  font-size: 1.5rem;
}

.shop-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.shop-hero__image img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(27, 38, 49, 0.1);
  display: block;
  margin: 0 auto;
}

.shop-hero__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.shop-hero__tagline {
  margin: 0 0 1.25rem;
  font-size: 1.125rem;
  color: #5c6b7a;
  max-width: 36rem;
}

.shop-price-block {
  margin-bottom: 1.25rem;
}

.shop-price {
  font-size: 2rem;
  font-weight: 700;
  color: #2d6a4f;
}

.shop-price__regular {
  font-size: 1.1rem;
  color: #5c6b7a;
  text-decoration: line-through;
  margin-left: 0.5rem;
}

.shop-badge {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1b4332;
  background: #d8f3dc;
  border-radius: 999px;
}

.shop-badge.is-hidden {
  display: none;
}

.shop-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem;
}

.shop-form__qty label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #5c6b7a;
}

.shop-form__qty input {
  width: 5rem;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  border: 1px solid #cfd8dc;
  border-radius: 6px;
}

.shop-btn {
  padding: 0.65rem 1.35rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.shop-btn--primary {
  background: #2d6a4f;
  color: #fff;
}

.shop-btn--primary:hover {
  background: #40916c;
}

.shop-btn--secondary {
  background: #fff;
  color: #2d6a4f;
  border: 1px solid #2d6a4f;
  text-decoration: none;
  display: inline-block;
}

.shop-btn--secondary:hover {
  background: #f8faf9;
}

.shop-alert {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: none;
}

.shop-alert.is-visible {
  display: block;
}

.shop-alert--success {
  background: #d8f3dc;
  color: #1b4332;
}

.shop-alert--error {
  background: #fde8e8;
  color: #9b2226;
}

.shop-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.shop-card {
  background: #f8faf9;
  border: 1px solid #e8ecea;
  border-radius: 10px;
  padding: 1.25rem;
}

.shop-card__icon {
  font-size: 1.5rem;
  color: #2d6a4f;
  margin-bottom: 0.5rem;
}

.shop-card__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.shop-card__text {
  margin: 0;
  font-size: 0.95rem;
  color: #5c6b7a;
}

.shop-cart-summary {
  background: #f8faf9;
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid #e8ecea;
}

.shop-cart-summary h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.shop-cart-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e8ecea;
}

.shop-cart-line__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.shop-cart-line__price {
  font-weight: 700;
  white-space: nowrap;
}

.shop-btn--danger {
  background: #fff;
  color: #c1121f;
  border: 1px solid #c1121f;
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.shop-btn--danger:hover {
  background: #fde8e8;
}

.shop-cart-line:last-of-type {
  border-bottom: none;
}

.shop-cart-total {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid #2d6a4f;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
}

.shop-cart-empty {
  color: #5c6b7a;
}

.shop-section-heading {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

@media (min-width: 640px) {
  .shop-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .shop-page-content {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .shop-product-block--alt {
    margin-left: -2rem;
    margin-right: -2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .shop-hero {
    grid-template-columns: minmax(260px, 420px) 1fr;
    align-items: start;
    gap: 1.5rem;
  }

  .shop-hero__image img {
    margin: 0;
  }

  #cloud .shop-hero {
    grid-template-columns: minmax(280px, 38%) 1fr;
  }

  .shop-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .shop-cards .shop-card:nth-child(4),
  .shop-cards .shop-card:nth-child(5) {
    grid-column: span 1;
  }
}

@media (min-width: 1024px) {
  .shop-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}
