/* ========================================
   ALPY 2.0 — Shop detail page
   Loaded only on shop.html (after the core stack).
   Reuses the town sidebar cards (.sb-card, .search-panel, .review-mini,
   .sb-hotline, .sb-pay) and the shared map modal (.alpy-modal).
   ======================================== */

/* ---- Layout (matches the town/country sidebar width) ---- */
.shop-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 64px;
}
.shop-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.shop-main { display: flex; flex-direction: column; gap: 36px; min-width: 0; }

/* ---- Hero: photo gallery + tilted title banner ---- */
.shop-hero { position: relative; }
.shop-gallery {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #0d1318;
}
.shop-gallery-track { display: flex; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1); }
.shop-gallery-slide {
  flex: 0 0 100%;
  height: 380px;
  background-size: cover;
  background-position: center;
}
.shop-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  color: var(--color-fg-primary);
  transition: background var(--transition-fast);
}
.shop-gallery-nav:hover { background: #fff; }
.shop-gallery-nav.prev { left: 14px; }
.shop-gallery-nav.next { right: 14px; }
.shop-gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.shop-gallery-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background var(--transition-fast);
}
.shop-gallery-dots button.active { background: #fff; }
.shop-photo-count {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.shop-title-banner {
  position: absolute;
  top: 22px;
  left: -6px;
  z-index: 3;
  transform: rotate(-4deg);
  background: var(--color-primary-red);
  color: #fff;
  font-family: var(--font-family-display);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.15;
  text-transform: uppercase;
  padding: 12px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 72%;
}

/* ---- Section headings ---- */
.shop-main h2.sec-title {
  font-family: var(--font-family-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-fg-primary);
  margin: 0 0 16px;
}

/* ---- Top row: gallery (left, 50%) + info column (right, 50%) ---- */
.shop-top { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.shop-info-col { display: flex; flex-direction: column; gap: 28px; }
.shop-info .addr-line { margin: 0 0 12px; font-size: 14px; color: var(--color-fg-primary); }
.shop-contact { display: flex; flex-direction: column; gap: 9px; }
.shop-contact a,
.shop-contact .map-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-fg-primary);
  width: fit-content;
}
.shop-contact .map-link {
  color: var(--color-primary-red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.shop-contact alpy-icon { color: var(--color-primary-red); flex-shrink: 0; }

.shop-hours .oh-season { color: var(--color-fg-secondary); font-size: 13px; margin: 0 0 8px; }
.shop-hours .oh-row { font-size: 14px; color: var(--color-fg-primary); margin: 0 0 4px; font-weight: 600; }
.shop-hours .oh-note { color: var(--color-primary-red); font-weight: 700; font-size: 13px; margin: 12px 0 4px; }
.shop-hours .oh-dates { font-size: 13px; color: var(--color-fg-secondary); margin: 0 0 2px; display: flex; gap: 12px; }
.shop-hours .oh-pickup { font-size: 13px; color: var(--color-fg-secondary); margin: 10px 0 0; line-height: 1.5; }

/* ---- Shop benefits ---- */
.shop-benefits { border-top: 1px solid var(--color-border); padding-top: 28px; }
/* Multi-column (masonry-like) so each block takes only the height it needs —
   a short block next to the tall "Top-shop advantages" doesn't inherit its height. */
.benefits-grid { columns: 2; column-gap: 40px; }
.benefit-block { display: flex; gap: 14px; break-inside: avoid; margin-bottom: 30px; }
.benefit-block:last-child { margin-bottom: 0; }
.benefit-block .bf-ic {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(202, 77, 0, 0.1);
  color: var(--color-primary-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.benefit-block h3 { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--color-fg-primary); }
.benefit-block p { font-size: 13px; color: var(--color-fg-secondary); line-height: 1.55; margin: 0; }
.benefit-block .bf-list { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.benefit-block .bf-list li { font-size: 13px; color: var(--color-fg-primary); display: flex; gap: 8px; align-items: flex-start; line-height: 1.4; }
.benefit-block .bf-list li alpy-icon { color: var(--color-primary-red); flex-shrink: 0; margin-top: 1px; }

/* ---- Best-price guarantee + CTA ---- */
.shop-price { border-top: 1px solid var(--color-border); padding-top: 24px; }
/* heading + pricing + CTA live in a centred half-width column */
.shop-price .sp-inner { max-width: 50%; margin: 0 auto; }
.shop-price .sp-head {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: var(--color-primary-red);
  font-weight: 800;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 20px;
}
.shop-price .sp-head alpy-icon { flex-shrink: 0; margin-top: 2px; }
.sp-pricing { display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.sp-pricing .sp-cell { padding: 0 24px; text-align: center; }
.sp-pricing .sp-cell + .sp-cell { border-left: 1px solid var(--color-border); }
.sp-pricing .sp-label { font-size: 13px; color: var(--color-fg-secondary); }
.sp-pricing .sp-val { font-weight: 700; font-size: 15px; color: var(--color-fg-primary); }
.sp-pricing .sp-save .sp-val { color: var(--color-primary-red); }
.lowest-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--color-primary-red);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 16px 24px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: var(--shadow-md);
  transition: background var(--transition-fast);
}
.lowest-cta:hover { background: var(--color-action-primary-hover); }
.lowest-cta .lc-amt { font-family: var(--font-family-display); font-size: 24px; font-weight: 900; font-style: italic; letter-spacing: 0; }
.sp-fineprint { text-align: center; font-size: 12px; color: var(--color-fg-tertiary); margin-top: 14px; line-height: 1.5; }

/* ---- Shop-closed warning (unavailable for the chosen period) ---- */
.shop-closed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 14px;
  background: #fff4e5;
  border: 1px solid #ffd9a8;
  border-radius: var(--radius-md);
  color: #8a5200;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}
.shop-closed alpy-icon { color: #d98300; flex-shrink: 0; }

/* Mobile top search bar — hidden on desktop (sidebar carries the search there),
   shown on mobile so search sits at the very top, like the town page. */
.town-searchbar { display: none; }

/* ---- Mobile ---- */
@media (max-width: 1024px) {
  .shop-layout { grid-template-columns: 1fr; gap: 24px; }
  /* shop content first, the (reused) sidebar trust cards below it */
  .shop-main { order: 1; }
  .shop-sidebar { order: 2; position: static; }
  /* search moves to the top bar — drop the duplicate in the sidebar */
  .shop-sidebar .search-panel { display: none; }
  .town-searchbar { display: block; }
  .shop-top { grid-template-columns: 1fr; gap: 24px; }
  .shop-info-col { gap: 22px; }
  .benefits-grid { columns: 1; }
  .shop-price .sp-inner { max-width: 100%; }
}
@media (max-width: 640px) {
  .shop-gallery-slide { height: 240px; }
  .shop-title-banner { font-size: 16px; padding: 9px 14px; top: 14px; }
  .lowest-cta { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; }
  .sp-pricing { justify-content: center; }
}
