/* ===== Virgin Megastore – custom UI (modals, drawers, slider tweaks) ===== */

/* Swiper: make card carousels use natural slide widths and show grab cursor */
.swiper { overflow: hidden; }
.swiper-grab { cursor: grab; }
.swiper-grab:active { cursor: grabbing; }

/* Banner pagination dots (injected by app.js) */
.swiper-pagination-bullet {
  background: #ffffff;
  opacity: .6;
}
.swiper-pagination-bullet-active {
  background: #e0173c;
  opacity: 1;
}

/* ===== Generic modal ===== */
.vm-modal[hidden] { display: none; }
.vm-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.vm-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  animation: vm-fade .18s ease;
}
.vm-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  overflow: hidden;
  animation: vm-pop .18s ease;
}
.vm-modal__panel--top {
  align-self: flex-start;
  margin-top: 8vh;
  max-width: 640px;
}
.vm-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #eee;
}
.vm-modal__head h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #262626;
}
.vm-modal__x {
  font-size: 1.6rem;
  line-height: 1;
  color: #737373;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0 .25rem;
}
.vm-modal__x:hover { color: #e0173c; }

/* Country list */
.vm-country-list { padding: .5rem 0; }
.vm-country-list a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1.25rem;
  font-weight: 600;
  color: #262626;
}
.vm-country-list a:hover { background: #f7f7f7; }
.vm-country-list img,
.vm-country-list .vm-flag {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 22px;
  text-align: center;
}
.vm-country-list small {
  margin-inline-start: auto;
  color: #a3a3a3;
  font-weight: 500;
}

/* Search overlay */
.vm-search {
  display: flex;
  gap: .5rem;
  padding: 1.25rem;
}
.vm-search input {
  flex: 1;
  height: 46px;
  padding: 0 1rem;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
}
.vm-search input:focus { border-color: #e0173c; }
.vm-search button {
  height: 46px;
  padding: 0 1.25rem;
  background: #e0173c;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
.vm-search__hint {
  padding: 0 1.25rem 1.25rem;
  color: #a3a3a3;
  font-size: .85rem;
}

/* ===== Drawer (categories) ===== */
.vm-drawer { justify-content: flex-start; padding: 0; }
.vm-drawer__panel {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 320px;
  height: 100%;
  background: #fff;
  box-shadow: 2px 0 24px rgba(0, 0, 0, .2);
  animation: vm-slide-in .22s ease;
  overflow-y: auto;
}
.vm-menu-list { padding: .5rem 0; }
.vm-menu-list a {
  display: block;
  padding: .95rem 1.25rem;
  font-weight: 600;
  color: #262626;
  border-bottom: 1px solid #f2f2f2;
}
.vm-menu-list a:hover { background: #f7f7f7; color: #e0173c; }

@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes vm-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes vm-slide-in { from { transform: translateX(-100%); } to { transform: none; } }

body.vm-modal-open { overflow: hidden; }

/* Hero slider arrows: the compiled CSS points the arrow background at an
   absolute /_next path that 404s under a subfolder — restore with a path
   relative to this stylesheet (assets/css/ -> project root). */
#prev-slide { background-image: url("../../_next/static/media/hero-arrow-left.e3ae3a37.svg") !important; background-repeat: no-repeat !important; background-position: center !important; }
#next-slide { background-image: url("../../_next/static/media/hero-arrow-right.0ad1bd1e.svg") !important; background-repeat: no-repeat !important; background-position: center !important; }

/* CTA arrow for gradient / outline buttons.
   The compiled mask points at an absolute /_next path that 404s under a
   subfolder install, so restore the arrow with an inline SVG mask. */
:root {
  --cta-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 10'%3E%3Cpath d='M0 5h16M12 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.ui-btn--default::after,
.ui-btn--outline::after,
.virgin-gradient-border::after {
  content: "" !important;
  display: inline-block !important;
  flex: none !important;
  width: 20px !important; height: 10px !important; margin-left: 8px !important;
  background-color: currentColor !important;
  -webkit-mask: var(--cta-arrow) center / contain no-repeat !important;
  mask: var(--cta-arrow) center / contain no-repeat !important;
  transition: transform .2s ease;
}
/* gradient-border button: arrow uses the brand gradient */
.virgin-gradient-border::after {
  background: var(--primary-gradient) !important;
  background-color: transparent !important;
}
.ui-btn--default:hover::after,
.ui-btn--outline:hover::after,
.virgin-gradient-border:hover::after { transform: translateX(3px); }
/* action-bar buttons (Add to cart / Checkout) have no trailing arrow */
.vt-bar-action .ui-btn--default::after { display: none !important; }

/* ===== SVG seat map (fan layout) ===== */
.vm-svgmap { width: 100%; height: 100%; }
.vm-svgmap svg { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; }
.vm-sec text, .vm-sec rect, .vm-sec path { transition: opacity .28s ease; }
.vm-seatc { transition: transform .13s cubic-bezier(.34,1.56,.64,1); cursor: pointer; transform-box: fill-box; transform-origin: center; }
.vm-seatc:hover:not(.is-taken) { transform: scale(1.45); }
.vm-seatc.is-taken { cursor: not-allowed; }
.vm-seatc.is-sel { transform: scale(1.22); }
.vm-checks .vm-check { animation: vm-check-pop .18s ease; }
@keyframes vm-check-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }

.vm-zoom {
  position: absolute; left: 14px; bottom: 14px; z-index: 5;
  display: inline-flex; align-items: center; gap: 2px;
  background: #fff; border-radius: 999px; padding: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.vm-zoom button {
  width: 30px; height: 30px; border: 0; background: transparent;
  border-radius: 50%; font-size: 17px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: #333;
}
.vm-zoom button:hover { background: #f0f0f0; }
.vm-hint {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(17,17,17,.78); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px; pointer-events: none; white-space: nowrap;
}

/* ===== (legacy grid seat map — kept for fallback) ===== */
.vm-seatmap {
  width: 100%;
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.vm-stage {
  width: 70%;
  max-width: 520px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 6px;
  font-size: 12px;
  color: #555;
  background: linear-gradient(#dcdcdc, #efefef);
  border-radius: 0 0 60% 60% / 0 0 100% 100%;
  padding: 8px 0 14px;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12);
  margin-bottom: .25rem;
}
.vm-section { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.vm-section__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; color: #404040; margin: 8px 0 4px;
}
.vm-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.vm-row { display: flex; align-items: center; gap: 4px; }
.vm-rowlabel { width: 16px; font-size: 10px; font-weight: 700; color: #a3a3a3; text-align: center; }

.vm-seat {
  width: 16px; height: 16px;
  border: 0; padding: 0; cursor: pointer;
  border-radius: 4px 4px 2px 2px;
  background: var(--seat, #999);
  opacity: .82;
  transition: transform .08s ease, opacity .12s ease, box-shadow .12s ease;
}
.vm-seat:hover { opacity: 1; transform: translateY(-1px); }
.vm-seat--sel {
  opacity: 1;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--seat, #111);
  transform: translateY(-1px);
}
.vm-seat--taken {
  background: #d4d4d4 !important;
  opacity: 1; cursor: not-allowed;
}
.vm-seat--taken:hover { transform: none; }

.vm-legend2 {
  display: flex; gap: 1.25rem; flex-wrap: wrap; justify-content: center;
  margin-top: .5rem; font-size: 12px; color: #525252;
}
.vm-legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.vm-swatch { width: 14px; height: 14px; border-radius: 4px; background: #6b7280; display: inline-block; opacity: .82; }
.vm-swatch--sel { background: #111827; box-shadow: 0 0 0 2px #fff, 0 0 0 3px #111827; }
.vm-swatch--taken { background: #d4d4d4; }
