/* BuyOrganic mobile shop helper - Release A (navigation only). Added 2026-11-15. Rollback: remove this file + its two Head.cshtml lines. */

/* ---- Compact mobile header ---- */
@media (max-width: 768px) {
  .header { padding-bottom: 0; }
  .header-upper { padding: 6px 10px; }
  .header-logo { margin: 0 auto; }
  .header-logo img { max-height: 42px; width: auto; }
  .header-selectors-wrapper { padding: 4px 0; }
  .header-selectors-wrapper select { font-size: 12px; padding: 2px; }
  .header-links-wrapper .header-links a { font-size: 13px; }
  .header-lower { padding: 4px 10px; }
  .search-box.store-search-box { margin: 4px 0; }
}

/* ---- Category page: products before sidebar on mobile ---- */
@media (max-width: 768px) {
  .master-column-wrapper { display: flex; flex-direction: column; }
  .master-column-wrapper > .breadcrumb { order: 0; }
  .master-column-wrapper > .center-2 { order: 1; width: 100%; float: none; }
  .master-column-wrapper > .side-2 { order: 2; width: 100%; float: none; }
}

/* ---- Persistent Search / Cart / Pay bar (phones + small tablets) ---- */
.bosh-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  display: none;
  background: #ffffff;
  border-top: 1px solid #c8e6c9;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.12);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)) 8px;
}
@media (max-width: 1024px) {
  .bosh-bar { display: flex; gap: 8px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important; }
}
.bosh-btn {
  flex: 1 1 0;
  min-height: 48px;
  border: 2px solid #2e7d32;
  border-radius: 10px;
  background: #ffffff;
  color: #1b5e20;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  position: relative;
}
.bosh-btn:focus-visible { outline: 3px solid #81c784; outline-offset: 2px; }
.bosh-btn:active { background: #e8f5e9; }
.bosh-btn .bosh-ico { display: block; font-size: 18px; line-height: 1; }

/* ---- Shared sheet (search + pay) ---- */
.bosh-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.45);
  display: none;
}
.bosh-backdrop.bosh-open { display: block; }
.bosh-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1001;
  background: #ffffff;
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.25);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)) 16px;
  max-height: 82vh;
  overflow-y: auto;
  display: none;
}
.bosh-sheet.bosh-open { display: block; }
@media (min-width: 1025px) {
  .bosh-sheet {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 480px;
    border-radius: 14px;
    padding: 20px;
  }
}
.bosh-sheet h2 { margin: 0 44px 10px 0; font-size: 19px; color: #1b5e20; }
.bosh-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: #eeeeee;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #333333;
}
.bosh-close:focus-visible { outline: 3px solid #81c784; outline-offset: 2px; }
.bosh-sheet form { display: flex; gap: 8px; margin: 8px 0; }
.bosh-sheet form .bosh-action { flex: 0 0 auto; }
.bosh-sheet input[type="text"] {
  flex: 1 1 auto;
  min-width: 0; /* let the field shrink on 320px so the submit button stays on screen */
  min-height: 48px;
  font-size: 16px;
  padding: 8px 10px;
  border: 2px solid #a5d6a7;
  border-radius: 8px;
}
.bosh-action {
  display: inline-block;
  min-height: 48px;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: #2e7d32;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}
.bosh-action:focus-visible { outline: 3px solid #1b5e20; outline-offset: 2px; }
.bosh-suggest { margin: 6px 0 0 0; font-size: 15px; display: none; }
.bosh-suggest button {
  border: none;
  background: none;
  color: #2e7d32;
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 6px 2px;
}
.bosh-choices { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.bosh-choices .bosh-action { display: block; width: 100%; }
.bosh-note { font-size: 14px; color: #555555; margin: 4px 0 0 0; }
.bosh-warn {
  margin-top: 12px;
  padding: 10px 12px;
  background: #fff8e1;
  border-left: 4px solid #f9a825;
  font-size: 14px;
  color: #5d4037;
}

/* ---- Hologram payment-marks panel on the Pay button ---- */
.bosh-holo {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  z-index: 950;
  min-width: 220px;
  max-width: 86vw;
  background: linear-gradient(160deg, rgba(6, 34, 12, 0.92), rgba(16, 68, 30, 0.92));
  border: 1px solid rgba(129, 199, 132, 0.65);
  border-radius: 12px;
  box-shadow: 0 0 18px rgba(76, 175, 80, 0.55), 0 0 42px rgba(76, 175, 80, 0.25);
  padding: 12px 14px 10px 14px;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}
.bosh-holo::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  border-radius: 12px;
  background: repeating-linear-gradient(0deg, rgba(129, 199, 132, 0.06) 0 2px, transparent 2px 5px);
  pointer-events: none;
}
.bosh-holo.bosh-holo-open { opacity: 1; visibility: visible; transform: translateY(0); }
.bosh-holo-imgs { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.bosh-holo-imgs img {
  display: block;
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 6px rgba(129, 199, 132, 0.85));
  animation: bosh-float 3.2s ease-in-out infinite alternate;
}
.bosh-holo-imgs img:nth-child(2) { animation-delay: 0.8s; }
.bosh-holo-caption { margin: 8px 0 0 0; font-size: 12.5px; color: #c8e6c9; }
@keyframes bosh-float {
  from { transform: translateY(2px); }
  to { transform: translateY(-3px); }
}
/* ---- desktop banner-link hologram variant (drops below its anchor) ---- */
.bosh-pay-anchor { position: relative; }
.bosh-holo-top { bottom: auto; top: calc(100% + 8px); }
#bp div.bosh-holo { position: absolute !important; } /* banner wrapper forces divs relative; holo must stay out of flow */

@media (prefers-reduced-motion: reduce) {
  .bosh-holo-imgs img { animation: none; }
  .bosh-holo { transition: none; }
}
