/* ==========================================================================
   Shops & services — the customer pages (shops/index, shop, orders).
   Loaded after style.css; uses its colour tokens, so it follows the theme
   (the public pages are always light, "My orders" follows the person's).
   ========================================================================== */

/* ----- The list ----- */
.shop-kind-tabs { margin: 4px 0 10px; }
.shop-kind-tabs .chip { display: inline-flex; align-items: center; gap: 6px; }
.shop-filters { grid-template-columns: minmax(200px, 2fr) minmax(150px, 1fr); }
.shop-categories { margin: 8px 0 18px; flex-wrap: wrap; }
.shop-categories .chip { display: inline-flex; align-items: center; gap: 6px; }

.shop-picture { width: 100%; height: 100%; }
.shop-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.shop-picture-icon {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  font-size: 54px; color: var(--lime-dark);
}
.shop-card .picture-tag { gap: 5px; }
.shop-card .picture-tag.shop-featured-tag { left: auto; right: 10px; background: rgba(212, 238, 79, 0.9); }
.shop-verified { color: var(--green); display: inline-flex; align-items: center; gap: 3px; }

/* ----- One shop ----- */
.shop-hero { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: center; margin: 14px 0 10px; }
.shop-hero-picture {
  height: 170px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #edf4d4 0%, #f5f8ea 100%);
}
.shop-category { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--grey-text); font-size: 13.5px; }
.shop-hero-text .page-title { margin: 4px 0 6px; }
.shop-hero-text .property-location { margin-bottom: 4px; }
.shop-contact { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.shop-description { max-width: 720px; margin: 6px 0 14px; white-space: pre-line; overflow-wrap: anywhere; }

.shop-columns { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.shop-columns > div { display: grid; gap: 16px; }
.shop-section .section-title { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.shop-items { display: grid; gap: 8px; }
.shop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 16px;
  background: rgba(var(--paper-rgb), 0.45);
}
.shop-item.in-cart { background: var(--lime-soft); }
.shop-item-photo { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.shop-item-text { flex: 1; min-width: 0; display: grid; gap: 2px; overflow-wrap: anywhere; }
.shop-item-text .grey-text { font-size: 13px; }
.shop-item-price { font-weight: 600; }
.shop-item-price small { font-weight: 400; color: var(--grey-text); }
.qty-box { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.qty-number { min-width: 22px; text-align: center; font-weight: 600; }

.field-label { display: block; margin: 0 0 6px 4px; font-size: 13px; font-weight: 500; color: var(--dark-grey); }
.shop-modes { display: grid; gap: 8px; }
.shop-mode {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 10px 14px; border-radius: 999px;
  background: rgba(var(--paper-rgb), 0.5);
}
.shop-mode:has(input:checked) { background: var(--lime-soft); }
.shop-mode span { display: inline-flex; align-items: center; gap: 6px; }

.order-lines { display: grid; gap: 4px; margin: 4px 0; }
.order-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; overflow-wrap: anywhere; }
.order-line small { color: var(--grey-text); }
.order-line-total { font-weight: 700; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 4px; }
.order-total { margin: 14px 0 6px; }
.shop-order-form .btn-full { margin-top: 10px; }
.shop-small-print { font-size: 12.5px; margin-top: 8px; }

.pay-methods { display: grid; gap: 8px; }
.pay-method {
  display: grid; gap: 4px;
  padding: 10px 14px; border-radius: 16px;
  background: rgba(var(--paper-rgb), 0.45);
}
.pay-method-name { font-weight: 600; }
.pay-method-number { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.shop-reviews { display: grid; gap: 10px; }
.shop-review { padding-bottom: 10px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.shop-review:last-child { border-bottom: 0; padding-bottom: 0; }
.shop-stars { color: #c99a06; letter-spacing: 1px; margin-right: 6px; }

/* ----- My orders ----- */
.shop-order-list { display: grid; gap: 14px; }
.shop-order { display: grid; gap: 10px; }
.shop-order-closed { opacity: 0.86; }
.shop-order-open { box-shadow: 0 0 0 2px var(--lime), var(--glass-shine); }
.shop-order-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.shop-order-head > div { flex: 1; min-width: 160px; }
.shop-order-head h3 { font-size: 16px; overflow-wrap: anywhere; }
.shop-order-icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime-soft); color: var(--lime-dark); font-size: 20px;
}
.order-steps { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; padding: 0; margin: 0; font-size: 13px; color: var(--grey-text); }
.order-steps li { display: inline-flex; align-items: center; gap: 4px; }
.order-steps li.reached { color: var(--green); font-weight: 500; }
.order-note, .order-reply { overflow-wrap: anywhere; white-space: pre-line; }
.order-reply { padding: 10px 14px; border-radius: 16px; background: var(--lime-soft); }
.order-pay { display: grid; gap: 8px; }
.order-pay-form, .order-review-form { display: grid; gap: 8px; }
.order-pay-form textarea, .order-review-form textarea {
  width: 100%; min-height: 64px; resize: vertical;
  border-radius: 16px; border: 0; padding: 10px 14px;
  background: rgba(var(--paper-rgb), 0.6); font: 400 14px var(--font); color: var(--black);
}
.order-pay-form .btn, .order-review-form .btn { justify-self: start; }
.star-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.star-pick input { position: absolute; opacity: 0; pointer-events: none; }
.star-pick span {
  display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 999px;
  background: rgba(var(--paper-rgb), 0.6); cursor: pointer; font-weight: 600;
}
.star-pick label:has(input:checked) span { background: var(--lime); color: #15181d; }
.star-pick label:has(input:focus-visible) span { outline: 2px solid var(--lime-dark); }

/* ----- Phones ----- */
@media (max-width: 760px) {
  .shop-filters { grid-template-columns: 1fr; }
  .shop-hero { grid-template-columns: 1fr; gap: 12px; }
  .shop-hero-picture { height: 180px; }
  .shop-columns { grid-template-columns: 1fr; }
  .shop-card .picture-tag.shop-featured-tag { top: 44px; left: 10px; right: auto; }
}
