.slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.slide::before {
  z-index: 1;
}

.slide-fallback {
  background:
    linear-gradient(135deg, #101012 0%, #1c1c21 50%, #080809 100%),
    #080809;
}

.filter-row a.active {
  border-color: var(--red);
  color: #fff;
  background: var(--red-soft);
}
.filter-row .btn,
.filter-row .btn-outline {
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 0.82rem;
}
.inline-form { display: inline; }
.price { color: var(--red); font-size: 1.05rem; display: block; margin: 8px 0 12px; }
.product-detail { display: grid; gap: 32px; grid-template-columns: 1.1fr 1fr; }
.product-gallery { display: grid; gap: 14px; }
.gallery-stage {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
}
.gallery-zoom {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.product-main-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.15s ease;
  background: #ffff;
}
.product-main-image.is-zooming {
  transform: scale(1.08);
}
.gallery-zoom-lens {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  background-repeat: no-repeat;
  z-index: 2;
  background: #ffff;
}
.gallery-zoom-lens.show { opacity: 1; }
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(8, 8, 9, 0.72);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.gallery-nav:disabled {
  opacity: 0.35;
  cursor: default;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-zoom-btn {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  border: 1px solid var(--border);
  background: rgba(8, 8, 9, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.gallery-thumb {
  width: 74px;
  height: 74px;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--card);
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #ffff;
}
.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--red);
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}
.gallery-lightbox[hidden] { display: none !important; }
.gallery-lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: 12px;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(8,8,9,0.7);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.gallery-lightbox .gallery-prev { left: 20px; }
.gallery-lightbox .gallery-next { right: 20px; }
body.lightbox-open { overflow: hidden; }
.attr-list { list-style: none; margin: 16px 0; display: grid; gap: 8px; }
.attr-list li { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; color: var(--muted); }
.attr-list strong { color: var(--text); }
.qty-row { display: flex; gap: 12px; align-items: center; margin: 18px 0; }
.qty-row input { width: 90px; background: var(--elevated); border: 1px solid var(--border); color: var(--text); border-radius: 10px; padding: 12px; }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.cart-summary, .checkout-grid { display: grid; gap: 24px; grid-template-columns: 1.4fr 1fr; }
.summary-box, .auth-panel, .booking-form, .contact-form { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); }
.summary-row.total { color: var(--text); font-weight: 700; font-size: 1.1rem; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.account-nav { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.account-nav a { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.account-nav a.active { background: var(--red); border-color: var(--red); }
.status-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--elevated); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; }
/* Products pagination */
.pagination-wrap {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.shop-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.shop-pagination__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.01em;
}

.shop-pagination__meta strong {
  color: var(--text);
  font-weight: 600;
}

.shop-pagination__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.shop-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.shop-pagination__btn--nav {
  min-width: auto;
  padding: 0 14px;
  color: var(--muted);
}

.shop-pagination__btn--ellipsis {
  min-width: 32px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: default;
  padding: 0 4px;
}

.shop-pagination__item:not(.is-disabled):not(.is-active):not(.is-ellipsis) .shop-pagination__btn:hover {
  border-color: rgba(225, 6, 0, 0.45);
  background: var(--elevated);
  color: #fff;
  transform: translateY(-1px);
}

.shop-pagination__item.is-active .shop-pagination__btn {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 8px 20px rgba(225, 6, 0, 0.28);
  cursor: default;
}

.shop-pagination__item.is-disabled .shop-pagination__btn {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-pagination__btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .shop-pagination {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .shop-pagination__list {
    justify-content: center;
  }

  .shop-pagination__btn--nav span {
    display: none;
  }

  .shop-pagination__btn--nav {
    min-width: 40px;
    padding: 0;
  }
}
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
@media (max-width: 900px) {
  .product-detail, .cart-summary, .checkout-grid { grid-template-columns: 1fr; }
}
