/* Party Boulevard — Premium UI layer (professional polish) */

@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;0,700;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap");

:root {
  --pb-ink: #14121a;
  --pb-muted: rgba(20, 18, 26, 0.68);
  --pb-surface: #ffffff;
  --pb-line: rgba(20, 18, 26, 0.08);
  --pb-pink: #e91e8c;
  --pb-pink-soft: rgba(233, 30, 140, 0.12);
  --pb-gold: #c9a227;
  --pb-radius: 16px;
  --pb-radius-lg: 24px;
  --pb-shadow: 0 4px 24px rgba(20, 18, 26, 0.06);
  --pb-shadow-lg: 0 20px 60px rgba(20, 18, 26, 0.1);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", Poppins, system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--pb-ink);
  background: #faf8f6;
}

/* Calmer page background */
.bg-aurora .blob {
  opacity: 0.45;
  filter: blur(80px);
}

.section {
  padding: clamp(48px, 8vw, 80px) 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(250, 248, 246, 0.4));
}

.glass {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--pb-line);
  box-shadow: var(--pb-shadow);
}

/* Side menu */
.side-menu {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px);
}

.menu-link {
  border-radius: 12px;
  font-weight: 500;
}

.menu-link:hover {
  background: var(--pb-pink-soft);
  color: var(--pb-pink);
}

/* Chips & search */
.shop-search .search-bar {
  border: 1px solid var(--pb-line);
  box-shadow: var(--pb-shadow);
  background: #fff;
}

.chip {
  font-weight: 500;
  border: 1px solid var(--pb-line);
  background: #fff;
}

.chip:hover,
.chip:focus-visible {
  border-color: var(--pb-pink);
  color: var(--pb-pink);
}

.chip.is-active {
  background: var(--pb-pink-soft);
  border-color: var(--pb-pink);
  color: var(--pb-pink);
  font-weight: 600;
}

.shop-search__chips {
  margin-bottom: 8px;
}

.shop-search__chips .chip {
  text-decoration: none;
  cursor: pointer;
}

.shop-category-sections {
  margin-top: 8px;
}

.shop-category-block {
  scroll-margin-top: 88px;
  padding: 28px 0 8px;
  border-top: 1px solid rgba(20, 18, 26, 0.08);
}

.shop-category-block:first-child {
  border-top: none;
  padding-top: 12px;
}

#shop-products {
  scroll-margin-top: 88px;
}

.shop-category-block__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.shop-category-block__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.shop-category-block__count {
  margin: 0;
  font-size: 0.9rem;
}

.shop-results-head {
  margin: 20px 0 12px;
}

.shop-results-head h2 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 1.5rem;
}

.shop-results-head .muted {
  margin: 0;
}

.shop-product-grid {
  margin-top: 4px;
}

/* Steps, locations, newsletter */
.step-card,
.location-card,
.newsletter {
  border: 1px solid var(--pb-line);
  background: #fff;
  box-shadow: var(--pb-shadow);
}

.location-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pb-shadow-lg);
}

.newsletter {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--pb-radius-lg);
}

@media (min-width: 768px) {
  .newsletter {
    grid-template-columns: 1fr 1fr;
  }
}

.newsletter h2 {
  font-family: var(--font-display);
  margin: 0 0 8px;
}

.newsletter-form input {
  border: 1px solid var(--pb-line);
  background: #fff;
}

/* Shop hero layout */
.shop-hero {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--pb-radius-lg);
}

.shop-hero--simple {
  padding: clamp(20px, 3vw, 28px);
}

@media (min-width: 900px) {
  .shop-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  .shop-trust-strip {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 8px;
  }
}

.shop-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 8px 0 12px;
}

.hero-float {
  display: none;
}

@media (min-width: 1100px) {
  .hero-float {
    display: block;
  }
}

/* Compact footer */
.site-footer--compact {
  margin-top: 0;
  padding: 28px 0 32px;
  background: #fff;
  border-top: 1px solid var(--pb-line);
}

.footer-compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.footer-compact__logo img {
  height: 40px;
  width: auto;
  margin: 0 auto;
}

.footer-compact__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-compact__nav a {
  color: var(--pb-ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
  transition: color 0.15s ease;
}

.footer-compact__nav a:hover {
  color: var(--pb-pink);
  opacity: 1;
}

.footer-compact__hours {
  margin: 0;
  font-size: 0.8rem;
  color: var(--pb-muted);
}

.footer-compact__copy {
  margin: 0;
  font-size: 0.78rem;
  color: var(--pb-muted);
}

@media (min-width: 768px) {
  .footer-compact {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    text-align: left;
    column-gap: 32px;
    row-gap: 6px;
  }

  .footer-compact__logo {
    grid-row: 1 / 3;
  }

  .footer-compact__nav {
    justify-content: flex-start;
  }

  .footer-compact__hours,
  .footer-compact__copy {
    grid-column: 2;
  }
}

/* WhatsApp float */
.whatsapp-float {
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
}

/* Cart page */
.cart-page__summary,
.cart-item {
  border: 1px solid var(--pb-line);
  background: #fff;
  box-shadow: var(--pb-shadow);
  border-radius: var(--pb-radius);
}

h1,
h2,
h3,
.hero-title,
.section-head h2,
.shop-title,
.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Header — cleaner sticky bar */
.site-header {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--pb-line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.brand-logo {
  height: 44px;
  width: auto;
}

/* Hero */
.hero {
  min-height: min(88vh, 720px);
}

.hero-overlay {
  background: linear-gradient(105deg, rgba(20, 18, 26, 0.72) 0%, rgba(20, 18, 26, 0.35) 55%, rgba(233, 30, 140, 0.15) 100%);
}

.hero-copy h1,
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.08;
  color: #fff;
  max-width: 14ch;
}

.hero-title__line {
  display: block;
  font-weight: 500;
  opacity: 0.95;
}

.typewriter-line {
  display: inline;
  color: #ffd56a;
  border-right: 2px solid rgba(255, 213, 106, 0.9);
  padding-right: 4px;
  min-height: 1.1em;
}

.typewriter-line.is-typing {
  animation: pb-cursor 1s step-end infinite;
}

@keyframes pb-cursor {
  50% {
    border-color: transparent;
  }
}

.hero-copy p {
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.9);
}

.pill--hero {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-trust {
  gap: 20px;
}

.trust-item {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Buttons */
.btn--primary {
  background: linear-gradient(135deg, var(--pb-pink), #ff5eb0);
  border: none;
  box-shadow: 0 8px 24px rgba(233, 30, 140, 0.35);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(233, 30, 140, 0.4);
}

/* Section polish */
.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.section-head .muted {
  font-size: 1rem;
  color: var(--pb-muted);
}

/* Product cards — clearer images + descriptions */
.product {
  background: var(--pb-surface);
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius);
  box-shadow: var(--pb-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: var(--pb-shadow-lg);
}

.product-media {
  aspect-ratio: 1 / 1;
  background: #f5f3f1;
  border-radius: var(--pb-radius) var(--pb-radius) 0 0;
}

.product-media::after {
  opacity: 0.15;
}

.product-media--gallery {
  overflow: hidden;
}

.product-media--gallery .product-gallery {
  height: 100%;
  border-radius: inherit;
}

.product-media--gallery .product-gallery__track {
  height: 100%;
}

.product-media--gallery .product-gallery__slide {
  height: 100%;
  cursor: zoom-in;
}

.product-media--gallery .product-gallery__hint {
  display: none;
}

/* Fullscreen image lightbox (from modal or carousel tap) */
.pb-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(12, 10, 18, 0.92);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.pb-image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pb-image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.pb-image-lightbox__stage {
  width: min(96vw, 900px);
  max-height: 92vh;
}

.pb-image-lightbox__stage .product-gallery__slide {
  aspect-ratio: 1 / 1;
  max-height: 82vh;
}

.pb-image-lightbox__stage .product-gallery__img,
.pb-image-lightbox__stage .product-img {
  max-height: 82vh;
  object-fit: contain !important;
}

html.lightbox-open {
  overflow: hidden;
}

.product-img,
.modal__img,
.product-gallery__img {
  object-fit: contain !important;
  background: #f8f6f4;
}

.product-body {
  padding: 14px 16px 16px;
}

.product-title-btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-excerpt {
  margin: 6px 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--pb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-photo-badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(20, 18, 26, 0.72);
  color: #fff;
  backdrop-filter: blur(8px);
}

.price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--pb-pink);
}

/* Product gallery (modal + cards) */
.product-gallery {
  position: relative;
  width: 100%;
  border-radius: var(--pb-radius);
  overflow: hidden;
  background: #f5f3f1;
  touch-action: pan-x pinch-zoom;
}

.product-gallery__track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  cursor: grab;
}

.product-gallery__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.product-gallery__track::-webkit-scrollbar {
  display: none;
}

.product-gallery__slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f3f1;
}

.product-gallery__slide .product-img,
.product-gallery__slide .product-gallery__img {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 auto;
  width: 100%;
  height: 100%;
  max-height: 420px;
  object-fit: contain !important;
  background: #f8f6f4;
  opacity: 1;
  transition: opacity 0.15s ease;
}

.product-gallery__slide .product-img:not(.is-loaded) {
  opacity: 0.85;
  background: linear-gradient(110deg, #f0eeec 8%, #faf8f6 18%, #f0eeec 33%);
  background-size: 200% 100%;
  animation: pb-shimmer 1.2s ease-in-out infinite;
}

@keyframes pb-shimmer {
  to {
    background-position: -200% 0;
  }
}

.product-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--pb-ink);
  box-shadow: var(--pb-shadow);
  cursor: pointer;
  z-index: 4;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-gallery__nav:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--pb-shadow-lg);
}

.product-gallery__nav:active {
  transform: translateY(-50%) scale(0.97);
}

.product-gallery__nav--prev {
  left: 10px;
}

.product-gallery__nav--next {
  right: 10px;
}

.product-gallery__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px;
}

.product-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(20, 18, 26, 0.2);
  cursor: pointer;
  padding: 0;
}

.product-gallery__dot.is-active {
  background: var(--pb-pink);
  transform: scale(1.2);
}

.product-gallery__hint {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.78rem;
  color: var(--pb-muted);
  text-align: center;
}

.product-gallery__hint i {
  color: var(--pb-pink);
  margin-right: 4px;
}

.price--variable,
.price--slide-active {
  transition: color 0.2s ease, transform 0.2s ease;
}

.price--slide-active {
  color: var(--pb-pink);
}

.product-photo-price-note {
  margin: 4px 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product--variable-price .product-photo-badge {
  background: rgba(236, 72, 153, 0.92);
}

/* Modal — larger, clearer, scrollable */
.modal.is-open {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 12px max(24px, env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.modal__panel {
  max-width: min(960px, 96vw);
  width: 100%;
  margin: auto 0;
  border-radius: var(--pb-radius-lg);
  border: 1px solid var(--pb-line);
  transform: translateY(8px);
  opacity: 0;
  animation: pb-modal-in 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes pb-modal-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .modal__body {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.modal__media {
  min-height: auto;
  aspect-ratio: auto;
  border-radius: var(--pb-radius);
  overflow: hidden;
  background: #f5f3f1;
}

.modal__media .product-gallery {
  border-radius: var(--pb-radius);
}

.modal__media .product-gallery__slide {
  aspect-ratio: 1 / 1;
}

.modal__info {
  max-height: min(72vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.modal__desc {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--pb-ink);
  white-space: pre-wrap;
  max-height: none;
  overflow: visible;
}

.modal__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--pb-pink);
  margin-bottom: 12px;
}

.modal__kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pb-pink);
}

/* Shop */
.shop-hero {
  border: 1px solid var(--pb-line);
  box-shadow: var(--pb-shadow);
}

.shop-browse-hint {
  background: var(--pb-pink-soft);
  border-radius: var(--pb-radius);
  padding: 20px !important;
}

.category {
  border: 1px solid var(--pb-line);
  border-radius: var(--pb-radius-lg);
  background: var(--pb-surface);
  box-shadow: var(--pb-shadow);
}

.category__head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

/* Cart */
.cart-item__img img {
  object-fit: contain;
  background: #f5f3f1;
}

/* Trust strip on shop */
.shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  justify-content: center;
  padding: 20px 0 0;
  font-size: 0.88rem;
  color: var(--pb-muted);
}

.shop-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.shop-trust-strip i {
  color: var(--pb-pink);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .product:hover {
    transform: none;
  }

  .typewriter-line {
    border-right: none;
    animation: none;
  }
}

@media (max-width: 767px) {
  .product-gallery__nav {
    width: 36px;
    height: 36px;
  }
}
