/**
 * Trampolino shop: ticket archive, single product, cart.
 * Same visual language as the booking pages: yellow #FFC700, Poppins / Mona, star motif.
 */
:root {
  --tr-yellow: #FFC700;
  --tr-yellow-soft: rgba(255, 199, 0, .10);
  --tr-ink: #fff;
  --tr-on-yellow: #000;
  --tr-muted: #A9A9B3;
  --tr-line: rgba(255, 255, 255, .12);
  --tr-surface: #1C1C1C;
  --tr-radius: 24px;
  --tr-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.tr-shop,
.tr-product,
.tr-cart {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 80px;
  color: var(--tr-ink);
  font-family: "Poppins", Sans-serif;
  box-sizing: border-box;
}
.tr-shop *,
.tr-product *,
.tr-cart * {
  box-sizing: border-box;
}

/* Buttons ------------------------------------------------------------ */
body .tr-btn,
body .tr-cart .checkout-button,
body .tr-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
body .tr-product .single_add_to_cart_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 28px;
  border: 1px solid var(--tr-yellow);
  border-radius: 8px;
  background: transparent;
  color: var(--tr-ink);
  font-family: "Poppins", Sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
body .tr-btn--filled,
body .tr-cart .checkout-button,
body .tr-cart .cart_totals .wc-proceed-to-checkout a.checkout-button,
body .tr-product .single_add_to_cart_button,
.woocommerce .tr-product button.single_add_to_cart_button.button.alt,
.woocommerce .tr-cart a.checkout-button.button.alt {
  background: var(--tr-yellow);
  border-color: var(--tr-yellow);
  color: var(--tr-on-yellow);
}
body .tr-btn:hover,
body .tr-cart .checkout-button:hover,
body .tr-product .single_add_to_cart_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(255, 199, 0, .25);
}
body .tr-btn--filled:hover,
.woocommerce .tr-product button.single_add_to_cart_button.button.alt:hover,
.woocommerce .tr-cart a.checkout-button.button.alt:hover {
  background: var(--tr-yellow);
  color: var(--tr-on-yellow);
}
body .tr-btn--ghost {
  color: var(--tr-ink);
}
body .tr-btn--ghost:hover {
  background: var(--tr-yellow-soft);
  color: var(--tr-ink);
}
body .tr-btn.loading {
  opacity: .6;
  pointer-events: none;
}
body .tr-btn.added::after {
  content: "\2713";
  margin-left: 8px;
  font-weight: 700;
}
.tr-card .added_to_cart {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--tr-ink);
  text-decoration: underline;
  text-decoration-color: var(--tr-yellow);
  text-underline-offset: 3px;
}

/* Header + category pills ------------------------------------------------ */
.tr-shop__head {
  margin: 20px 0 10px;
}
.tr-shop__intro {
  max-width: 720px;
  margin: 0 auto 10px;
  text-align: center;
  color: var(--tr-muted);
}
.tr-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 26px 0 40px;
}
.tr-pill {
  padding: 8px 20px;
  border: 1px solid var(--tr-line);
  border-radius: 999px;
  background: var(--tr-surface);
  color: var(--tr-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease;
}
.tr-pill:hover,
.tr-pill.is-active {
  background: var(--tr-yellow);
  border-color: var(--tr-yellow);
  color: var(--tr-on-yellow);
}

/* Product grid + cards ------------------------------------------------ */
.tr-shop ul.products,
.tr-product .related ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
}
.tr-shop ul.products::before,
.tr-shop ul.products::after,
.tr-product ul.products::before,
.tr-product ul.products::after {
  display: none;
}
.tr-card {
  display: flex;
  flex-direction: column;
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  overflow: hidden;
  border: 1px solid var(--tr-line);
  border-radius: var(--tr-radius);
  background: var(--tr-surface);
  box-shadow: var(--tr-shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tr-card:hover {
  transform: translateY(-4px);
  border-color: var(--tr-yellow);
  box-shadow: 0 16px 36px rgba(20, 20, 40, .12);
}
.tr-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin: 10px 10px 0;
  overflow: hidden;
  border-radius: 18px 18px 18px 54px;
  background: var(--tr-yellow-soft);
}
.tr-card__media img {
  margin: 0 !important;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.tr-card:hover .tr-card__media img {
  transform: scale(1.05);
}
.tr-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.tr-card__placeholder .star {
  height: 72px;
}
.tr-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--tr-yellow);
  color: var(--tr-on-yellow);
  font-size: 12px;
  font-weight: 600;
}
.tr-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 22px 22px;
}
.tr-card__title {
  margin: 0 0 6px;
  font-family: "Mona", Sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.tr-card__title a {
  color: var(--tr-ink);
  text-decoration: none;
}
.tr-card__excerpt {
  margin: 0 0 16px;
  color: var(--tr-muted);
  font-size: 14px;
  line-height: 1.55;
}
.tr-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dashed var(--tr-yellow);
}
.tr-card__foot .tr-btn {
  margin: 0;
  height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
.tr-card .added_to_cart {
  flex-basis: 100%;
}

.tr-price {
  font-family: "Mona", Sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
}
.tr-price del {
  margin-right: 6px;
  color: var(--tr-muted);
  font-size: .7em;
  opacity: .8;
}
.tr-price ins {
  background: none;
  text-decoration: none;
}

.tr-shop nav.woocommerce-pagination {
  text-align: center;
}
.tr-shop nav.woocommerce-pagination ul {
  display: inline-flex;
  gap: 8px;
  padding: 0;
  border: 0;
}
.tr-shop nav.woocommerce-pagination ul li {
  border: 0;
}
.tr-shop nav.woocommerce-pagination .page-numbers {
  display: block;
  min-width: 42px;
  padding: 10px 14px;
  border: 1px solid var(--tr-line);
  border-radius: 8px;
  background: var(--tr-surface);
  color: var(--tr-ink);
  text-align: center;
  text-decoration: none;
}
.tr-shop nav.woocommerce-pagination .page-numbers.current,
.tr-shop nav.woocommerce-pagination .page-numbers:hover {
  border-color: var(--tr-yellow);
  background: var(--tr-yellow);
  color: var(--tr-on-yellow);
}

/* Empty states --------------------------------------------------------- */
.tr-empty {
  color: var(--tr-ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 60px 20px;
  text-align: center;
  border: 1px dashed var(--tr-yellow);
  border-radius: var(--tr-radius);
  background: var(--tr-surface);
}
.tr-empty p {
  margin: 0;
  font-family: "Mona", Sans-serif;
  font-size: 22px;
  font-weight: 500;
}
.tr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

/* Single product ------------------------------------------------------- */
.tr-back {
  display: inline-block;
  margin: 10px 0 24px;
  color: var(--tr-ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 2px solid var(--tr-yellow);
}
.tr-product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.tr-product .woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
.tr-product .woocommerce-product-gallery__wrapper > div,
.tr-product .woocommerce-product-gallery__image {
  overflow: hidden;
  border-radius: 28px 28px 28px 80px;
  background: var(--tr-yellow-soft);
}
.tr-product .woocommerce-product-gallery img {
  display: block;
  width: 100%;
  height: auto;
}
.tr-product .flex-control-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.tr-product .flex-control-thumbs li {
  width: auto !important;
  float: none !important;
}
.tr-product .flex-control-thumbs img {
  border-radius: 14px;
  opacity: .6;
  cursor: pointer;
}
.tr-product .flex-control-thumbs img.flex-active,
.tr-product .flex-control-thumbs img:hover {
  opacity: 1;
}
.tr-product .woocommerce-product-gallery__trigger {
  display: none;
}
.tr-product__summary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tr-product__cat {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tr-product__cat a {
  color: var(--tr-muted);
  text-decoration: none;
}
.tr-product__title {
  margin: 0;
  font-family: "Mona", Sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.05;
}
.tr-product__price {
  font-size: 36px;
}
.tr-product__short {
  color: var(--tr-muted);
  font-size: 16px;
  line-height: 1.65;
}
.tr-product__short p {
  margin: 0 0 .6em;
}
.tr-product__buy form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 8px 0 0;
  padding: 20px 0 0;
  border-top: 1px dashed var(--tr-yellow);
}
.tr-product__buy .single_add_to_cart_button {
  flex: 1 1 200px;
  height: 56px;
  margin: 0;
}
.tr-product__buy .quantity,
.tr-cart .quantity {
  flex: 0 0 auto;
}
.tr-product__buy .stock {
  font-weight: 500;
}
.tr-note {
  padding: 22px 24px;
  border: 1px dashed var(--tr-yellow);
  border-radius: 18px;
  background: var(--tr-yellow-soft);
}
.tr-note p {
  margin: 0 0 14px;
}
.tr-product__details {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--tr-line);
}
.tr-product__details h2,
.tr-product .related > h2 {
  margin: 0 0 20px;
  font-family: "Mona", Sans-serif;
  font-size: 32px;
  font-weight: 700;
}
.tr-prose {
  max-width: 780px;
  font-size: 16px;
  line-height: 1.75;
}
.tr-product .related {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--tr-line);
}

/* Cart ----------------------------------------------------------------- */
.tr-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  align-items: start;
  padding-top: 10px;
}
.tr-cart__items {
  margin: 0;
  padding: 0;
  list-style: none;
}
.tr-cart-item {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto auto 32px;
  align-items: center;
  gap: 18px;
  margin: 0 0 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid var(--tr-line);
  border-radius: 20px;
  background: var(--tr-surface);
  box-shadow: var(--tr-shadow);
}
.tr-cart-item__media img {
  display: block;
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 14px 14px 14px 30px;
}
.tr-cart-item__name,
.tr-cart-item__name a {
  color: var(--tr-ink);
  font-family: "Mona", Sans-serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}
.tr-cart-item__unit {
  margin-top: 4px;
  color: var(--tr-muted);
  font-size: 14px;
}
.tr-cart-item__subtotal {
  min-width: 90px;
  font-family: "Mona", Sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-align: right;
}
body .tr-cart-item__remove a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tr-yellow-soft);
  color: var(--tr-ink) !important;
  font-size: 20px;
  line-height: 1;
  text-decoration: none;
}
body .tr-cart-item__remove a.remove:hover {
  background: var(--tr-yellow);
  color: var(--tr-on-yellow) !important;
}
.tr-cart__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}
.tr-cart__actions button[disabled] {
  opacity: .45;
  cursor: default;
}
.tr-cart__totals .cart_totals {
  float: none;
  width: 100%;
  padding: 26px;
  border: 1px solid var(--tr-yellow);
  border-radius: var(--tr-radius);
  background: var(--tr-surface);
}
.tr-cart__totals .cart_totals h2 {
  margin: 0 0 14px;
  font-family: "Mona", Sans-serif;
  font-size: 26px;
  font-weight: 700;
}
.tr-cart__totals table {
  width: 100%;
  margin: 0;
  border: 0;
}
.tr-cart__totals table th,
.tr-cart__totals table td {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--tr-line);
  background: transparent;
  font-size: 15px;
}
.tr-cart__totals table td {
  text-align: right;
}
.tr-cart__totals tr.order-total th,
.tr-cart__totals tr.order-total td {
  border-bottom: 0;
  font-family: "Mona", Sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.tr-cart__totals .wc-proceed-to-checkout {
  padding: 18px 0 0;
}
body .tr-cart__totals .wc-proceed-to-checkout a.checkout-button {
  display: flex;
  width: 100%;
  height: 56px;
  margin: 0;
}

/* Quantity stepper: reuse the site's yellow pill, just roomier here */
.tr-product .quantity,
.tr-cart .quantity {
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
}
.tr-product .quantity input.qty,
.tr-cart .quantity input.qty {
  width: 40px !important;
  height: 28px;
}
.tr-product .quantity .minus,
.tr-product .quantity .plus,
.tr-cart .quantity .minus,
.tr-cart .quantity .plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  cursor: pointer;
}

/* Notices on shop pages */
.tr-shop .woocommerce-message,
.tr-shop .woocommerce-error,
.tr-shop .woocommerce-info,
.tr-product .woocommerce-message,
.tr-product .woocommerce-error,
.tr-product .woocommerce-info,
.tr-cart .woocommerce-message,
.tr-cart .woocommerce-error,
.tr-cart .woocommerce-info {
  margin: 0 0 24px;
  padding: 16px 22px;
  list-style: none;
  border: 1px solid var(--tr-yellow);
  border-radius: 14px;
  background: var(--tr-yellow-soft);
  color: var(--tr-ink);
}

/* Booking-only blocks (checkout page copy) are hidden for ticket buyers.
   Add the class pg-booking-only to the Elementor widget. */
body.pg-no-room .pg-booking-only {
  display: none !important;
}

@media (max-width: 900px) {
  .tr-product__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .tr-product__title {
    font-size: 40px;
  }
  .tr-cart {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .tr-shop,
  .tr-product,
  .tr-cart {
    padding: 0 16px 60px;
  }
  .tr-shop ul.products,
  .tr-product .related ul.products {
    grid-template-columns: 1fr;
  }
  .tr-cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 32px;
    gap: 12px;
  }
  .tr-cart-item__media img {
    width: 64px;
    height: 64px;
  }
  .tr-cart-item__qty,
  .tr-cart-item__subtotal {
    grid-column: 2 / 3;
    text-align: left;
  }
  .tr-cart-item__remove {
    grid-column: 3;
    grid-row: 1;
  }
  .tr-cart__actions .tr-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tr-card,
  .tr-card__media img,
  .tr-btn {
    transition: none;
  }
}

/* Dark site: the theme's body text colour is #333, set ours explicitly */
.tr-shop h1, .tr-shop h2, .tr-product h1, .tr-product h2, .tr-cart h2,
.tr-price, .tr-price .amount, .tr-cart-item__subtotal, .tr-cart__totals,
.tr-cart__totals th, .tr-cart__totals td, .tr-prose, .tr-note, .tr-product .stock {
  color: var(--tr-ink);
}
.tr-shop .woocommerce-message a, .tr-cart .woocommerce-message a, .tr-product .woocommerce-message a {
  color: var(--tr-yellow);
}
.tr-product .tr-product__short, .tr-card__excerpt, .tr-product__cat a, .tr-cart-item__unit {
  color: var(--tr-muted);
}
.tr-product .woocommerce-product-gallery__wrapper > div,
.tr-product .woocommerce-product-gallery__image {
  background: var(--tr-surface);
}
/* Cart page title (page template heading) */
body.woocommerce-cart .heading h1.entry-title {
  color: #fff;
}
