/**
 * Minimal above-the-fold styles loaded before async main.css.
 * Keep :root / .header colors aligned with main.css when changing the theme.
 */
:root {
  --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Montserrat", sans-serif;
  --nav-font: "Poppins", sans-serif;
  --background-color: #ffffff;
  --default-color: #444444;
  --heading-color: #000000;
  --accent-color: #252223;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: rgba(255, 255, 255, 0.8);
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #444444;
  --nav-dropdown-hover-color: #252223;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

.session-flash-banner {
  display: block;
  width: 100%;
  padding: 12px 16px;
  background-color: #ffe135;
  color: #000000;
  text-align: center;
  font-size: 1rem;
  margin: 0;
}

.header {
  color: var(--default-color);
  background-color: #2fccff;
  transition: all 0.5s;
  z-index: 997;
}

.header .top-bar {
  background: #ff699d;
  font-size: 14px;
}

.header .top-bar .top-bar-mobile-user {
  background-color: #1a1a1a;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
  box-sizing: border-box;
}

@media (min-width: 992px) {
  .header .top-bar .top-bar-mobile-user {
    margin: 0;
    width: auto;
  }
}

.header .top-bar .announcement-rotator {
  color: var(--accent-color);
  font-weight: 500;
  height: 24px;
  overflow: hidden;
  position: relative;
}

.header .top-bar .announcement-rotator__track {
  display: flex;
  flex-direction: column;
  animation: announcementRotatorCycle 12s ease-in-out infinite;
}

.header .top-bar .announcement-rotator__line {
  text-align: center;
  height: 24px;
  line-height: 24px;
  flex-shrink: 0;
}

@keyframes announcementRotatorCycle {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-24px); }
  66%, 94% { transform: translateY(-48px); }
  100% { transform: translateY(0); }
}

.header .main-header {
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.header .main-header .logo img.site-logo {
  max-height: 98px;
  width: auto;
  margin-right: 0;
  display: block;
}

/* Product details gallery — reserve space before async main.css (CLS) */
.product-details .product-gallery .main-showcase {
  position: relative;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-color);
}

.product-details .product-gallery .main-showcase .product-image-container {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.product-details .product-gallery .main-showcase .product-image-container .main-product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-details .product-gallery .thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (min-width: 769px) {
  .product-details .product-gallery .thumbnail-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.product-details .product-gallery .thumbnail-grid .thumbnail-wrapper {
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-color);
}

.product-details .product-gallery .thumbnail-grid .thumbnail-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
