/* React public pages do not run the original PHP page scripts, so keep their visual states explicit. */

[data-aos] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  animation: public-theme-fade-up 700ms cubic-bezier(0.22, 0.61, 0.36, 1) both;
  transition-duration: 700ms;
  transition-property: opacity, transform;
  transition-timing-function: cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}

[data-aos="zoom-in"] {
  animation-name: public-theme-zoom-in;
  transform: scale(0.96);
}

[data-aos].aos-animate {
  opacity: 1;
  transform: none;
  will-change: auto;
}

[data-aos-delay="60"] {
  animation-delay: 60ms;
  transition-delay: 60ms;
}

[data-aos-delay="70"] {
  animation-delay: 70ms;
  transition-delay: 70ms;
}

[data-aos-delay="80"] {
  animation-delay: 80ms;
  transition-delay: 80ms;
}

[data-aos-delay="90"] {
  animation-delay: 90ms;
  transition-delay: 90ms;
}

[data-aos-delay="100"] {
  animation-delay: 100ms;
  transition-delay: 100ms;
}

[data-aos-delay="140"] {
  animation-delay: 140ms;
  transition-delay: 140ms;
}

[data-aos-delay="160"] {
  animation-delay: 160ms;
  transition-delay: 160ms;
}

[data-aos-delay="180"] {
  animation-delay: 180ms;
  transition-delay: 180ms;
}

[data-aos-delay="210"] {
  animation-delay: 210ms;
  transition-delay: 210ms;
}

[data-aos-delay="240"] {
  animation-delay: 240ms;
  transition-delay: 240ms;
}

[data-aos-delay="270"] {
  animation-delay: 270ms;
  transition-delay: 270ms;
}

@keyframes public-theme-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes public-theme-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.public-theme-slider.swiper {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.public-theme-slider .swiper-wrapper {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  transform: none !important;
}

.public-theme-slider .swiper-slide {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.public-theme-slider .swiper-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.public-theme-slider .swiper-button-next,
.public-theme-slider .swiper-button-prev {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.18);
  transform: translateY(-50%);
}

.public-theme-slider .swiper-button-prev {
  left: 24px;
}

.public-theme-slider .swiper-button-next {
  right: 24px;
}

.public-theme-slider .swiper-button-next::after,
.public-theme-slider .swiper-button-prev::after {
  content: "";
}

.public-theme-slider .swiper-pagination {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 28px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.public-theme-slider .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.42);
}

.public-theme-slider .swiper-pagination-bullet-active {
  background: #fff;
}

.print-pack-track,
.related-track {
  scroll-behavior: smooth;
}

.theme-domino .products-gallery-section .print-pack-track,
.theme-domino .category-print-pack-section .print-pack-track {
  -webkit-mask-image: none;
  mask-image: none;
}

@media (max-width: 768px) {
  .public-theme-slider .swiper-button-next,
  .public-theme-slider .swiper-button-prev {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
}

/* Premium Catalog Button Styling & Hover Effects */
.menu-button {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-button::after {
  display: none !important;
}

.menu-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 184, 29, 0.35) !important;
  background: var(--secondary) !important;
  color: var(--primary) !important;
  opacity: 0.95;
  border-color: var(--secondary) !important;
}

.site-header.is-scrolled .menu-button {
  background: var(--primary) !important;
  color: #fff !important;
  border-color: var(--primary) !important;
}

.site-header.is-scrolled .menu-button:hover {
  background: var(--secondary) !important;
  color: var(--primary) !important;
  border-color: var(--secondary) !important;
  box-shadow: 0 4px 12px rgba(255, 184, 29, 0.35) !important;
}

/* Domino's fixed eight-item navigation keeps the logo on the viewport centerline. */
.theme-domino .header-shell {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.theme-domino .desktop-nav {
  min-width: 0;
  gap: 12px;
}

.theme-domino .menu-link {
  font-size: 0.84rem;
  gap: 4px;
}

.theme-domino .menu-icon {
  width: 13px;
  height: 13px;
}

.theme-domino .logo-image {
  max-width: 240px;
}

.theme-domino .mobile-link.is-active {
  color: #0f2340;
  background: rgba(255, 184, 29, 0.16);
  border-radius: 10px;
  padding-inline: 10px;
}

.theme-domino .domino-breadcrumbs {
  margin-bottom: 12px;
}

.theme-domino .domino-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  line-height: 1.4;
}

.theme-domino .domino-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.theme-domino .domino-breadcrumbs li + li::before {
  content: "/";
  color: rgba(255, 255, 255, 0.5);
}

.theme-domino .domino-breadcrumbs a {
  color: inherit;
  transition: color 0.2s ease;
}

.theme-domino .domino-breadcrumbs a:hover,
.theme-domino .domino-breadcrumbs [aria-current="page"] {
  color: var(--secondary);
}

@media (max-width: 1180px) {
  .theme-domino .desktop-nav {
    display: none;
  }

  .theme-domino .header-shell,
  .theme-domino .site-header.is-scrolled .header-shell {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 74px;
    padding: 0 6px;
  }

  .theme-domino .brand-logo,
  .theme-domino .site-header.is-scrolled .brand-logo {
    position: static;
    grid-column: 2;
    justify-self: center;
    width: auto;
    min-height: auto;
    transform: none;
  }

  .theme-domino .logo-image {
    width: min(230px, 52vw);
    max-width: 100%;
    max-height: 78px;
  }

  .theme-domino .mobile-menu-toggle {
    display: block;
    grid-column: 3;
    justify-self: end;
    margin-left: 0;
  }

  .theme-domino .mobile-panel {
    display: block;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .theme-domino .mobile-panel.is-open {
    max-height: 720px;
  }

  .theme-domino .mobile-inner {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0;
    border-top: 1px solid rgba(20, 44, 77, 0.08);
    padding: 16px;
    box-shadow: none;
  }

  .theme-domino .mobile-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-block: 9px;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid rgba(15, 36, 51, 0.08);
  }
}

/* Premium Hero Ghost Button Hover & Transition */
.btn-ghost {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.btn-ghost:hover {
  transform: translateY(-2px) !important;
  border-color: var(--secondary) !important;
  color: var(--secondary) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 15px rgba(255, 184, 29, 0.25) !important;
}
