/* Azuri Modern overrides to neutralize Unishop container sizing in header. */
.azuri-topbar .container,
.azuri-header .container {
  width: 100% !important;
  max-width: 1536px !important;
  margin-left: auto;
  margin-right: auto;
}

.azuri-topbar .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 1024px) {
  .azuri-main-nav {
    display: flex !important;
  }
}

@media (min-width: 640px) {
  .azuri-header-icon {
    display: inline-flex !important;
  }
}

/* Catalog dropdown fallback when group-hover utilities are missing. */
.azuri-catalog-group:hover .azuri-catalog-dropdown,
.azuri-catalog-group:focus-within .azuri-catalog-dropdown {
  display: block !important;
}

.azuri-catalog-group:hover .azuri-catalog-chevron,
.azuri-catalog-group:focus-within .azuri-catalog-chevron {
  transform: rotate(180deg);
}

#app-root .aspect-\[2\/3\] {
  aspect-ratio: 2 / 3;
}

/* Neutralize UniShop card chrome on Azuri product cards. */
#app-root .product-card.uni-item,
#app-root .product-card.uni-item-bg {
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

#app-root .product-card.uni-item:hover,
#app-root .product-card.uni-item-bg:hover {
  box-shadow: none;
}

/* Live search dropdown for Azuri search overlay. */
.header-search {
  position: relative;
}

.header-search .live-search {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: 0.25rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  display: none;
  max-height: 420px;
  overflow-y: auto;
  z-index: 40;
}

.header-search .live-search__ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.live-search__section {
  padding: 10px 16px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  background: hsl(var(--secondary));
  border-top: 1px solid hsl(var(--border));
}

.live-search__category {
  padding: 8px 16px 12px;
  border-top: 1px solid hsl(var(--border));
}

.live-search__category-item {
  display: inline-flex;
  align-items: center;
  margin: 4px 6px 0 0;
  padding: 4px 12px;
  border: 1px solid hsl(var(--border));
  border-radius: 999px;
  font-size: 12px;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.live-search__category-item:hover {
  background: hsl(var(--secondary));
  border-color: hsl(var(--foreground));
}

.live-search__item {
  border-top: 1px solid hsl(var(--border));
}

.live-search__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}

.live-search__link:hover {
  background: hsl(var(--secondary));
}

.live-search__image img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 0.25rem;
  border: 1px solid hsl(var(--border));
}

.live-search__wrapper {
  flex: 1 1 auto;
  min-width: 0;
}

.live-search__name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 2px;
}

.live-search__model {
  font-size: 12px;
  color: hsl(var(--muted-foreground));
}

.live-search__price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.live-search__more {
  border-top: 1px solid hsl(var(--border));
}

.live-search__more a {
  display: block;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: hsl(var(--foreground));
  text-decoration: none;
}

.live-search__more a:hover {
  background: hsl(var(--secondary));
}

.live-search__loading {
  height: 56px;
  margin: 10px 16px;
  border-radius: 0.25rem;
  background: linear-gradient(90deg, hsl(var(--secondary)), hsl(var(--background)), hsl(var(--secondary)));
  background-size: 200% 100%;
  animation: azuri-live-search-shimmer 1.2s infinite;
}

@keyframes azuri-live-search-shimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

/* Product color and size controls (Lovable sync) */
.azuri-color-option {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.azuri-color-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.azuri-color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.azuri-color-option:hover .azuri-color-swatch {
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), inset 0 1px 2px rgba(255, 255, 255, 0.3);
}

.azuri-color-input:checked + .azuri-color-swatch {
  transform: scale(1.1);
  box-shadow:
    0 3px 16px rgba(0, 0, 0, 0.2),
    0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(0, 0, 0, 0.08);
}

.azuri-color-check {
  font-size: 12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  mix-blend-mode: difference;
}

.azuri-color-input:checked + .azuri-color-swatch .azuri-color-check {
  opacity: 1;
}

.azuri-color-option.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.azuri-size-option {
  position: relative;
  display: inline-flex;
}

.azuri-size-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.azuri-size-label {
  min-width: 48px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid hsl(var(--border));
  border-radius: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.azuri-size-option:hover .azuri-size-label {
  border-color: hsl(var(--foreground));
}

.azuri-size-input:checked + .azuri-size-label {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

.azuri-size-option.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.azuri-size-option.is-disabled .azuri-size-label::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, 0.3);
  transform: rotate(-20deg);
}

/* Product card sync with Lovable design. */
#app-root .azuri-card {
  border: 1px solid hsl(var(--border) / 0.5);
  background: hsl(var(--card));
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#app-root .azuri-card:hover {
  border-color: hsl(var(--border));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

#app-root .azuri-card-image {
  transition: transform 0.7s ease;
}

#app-root .azuri-card:hover .azuri-card-image {
  transform: scale(1.05);
}

#app-root .azuri-card-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background) / 0.9);
  color: hsl(var(--muted-foreground));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(8px);
}

#app-root .azuri-card-wishlist:hover {
  background: hsl(var(--background));
  color: hsl(var(--destructive));
}

#app-root .azuri-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

#app-root .azuri-card-category {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

#app-root .azuri-card-title {
  display: -webkit-box;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  min-height: 2.5rem;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

#app-root .azuri-card-title:hover {
  color: hsl(var(--primary));
}

#app-root .azuri-card-price {
  font-size: 1rem;
  font-weight: 600;
}

#app-root .azuri-card-buy {
  width: 100%;
  margin-top: 12px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid hsl(var(--foreground) / 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#app-root .azuri-card-buy:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

#app-root .azuri-card-colors {
  display: flex;
  align-items: center;
  gap: 8px;
}

#app-root .azuri-card-swatch {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-block;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#app-root .azuri-card-swatch:hover {
  transform: scale(1.1);
}

#app-root .azuri-card-swatch.is-active {
  transform: scale(1.1);
  box-shadow:
    0 0 0 2px hsl(var(--foreground) / 0.2),
    0 0 0 4px hsl(var(--background)),
    0 2px 10px rgba(0, 0, 0, 0.18);
}

#app-root .azuri-card-sizes {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

#app-root .azuri-card:hover .azuri-card-sizes {
  max-height: 3rem;
  opacity: 1;
}

#app-root .azuri-card-sizes__list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
}

#app-root .azuri-card-size {
  position: relative;
  min-width: 36px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--secondary));
  color: hsl(var(--foreground));
  font-size: 12px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#app-root .azuri-card-size.is-available:hover {
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border-color: hsl(var(--foreground));
}

#app-root .azuri-card-size.is-unavailable {
  background: hsl(var(--secondary) / 0.3);
  border-color: transparent;
  color: hsl(var(--muted-foreground) / 0.4);
  cursor: not-allowed;
}

#app-root .azuri-card-size__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(239, 68, 68, 0.6) calc(50% - 0.5px), rgba(239, 68, 68, 0.6) calc(50% + 0.5px), transparent calc(50% + 0.5px));
  pointer-events: none;
}

/* Simple accordion styling for returns FAQ. */
.azuri-accordion summary {
  list-style: none;
}

.azuri-accordion summary::-webkit-details-marker {
  display: none;
}

.azuri-accordion[open] .azuri-accordion-icon {
  transform: rotate(180deg);
}

#app-root .azuri-media-shell {
  cursor: zoom-in;
  touch-action: pan-y pinch-zoom;
}

#app-root .azuri-media-shell.azuri-zoomed {
  cursor: zoom-out;
  touch-action: none;
}

#app-root .azuri-media-shell img,
#app-root .azuri-media-shell video {
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
  will-change: transform;
  pointer-events: none;
}

#app-root .azuri-gallery-dots {
  pointer-events: none;
}

#app-root .azuri-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: hsl(var(--foreground) / 0.35);
  opacity: 0.6;
  transition: width 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

#app-root .azuri-gallery-dot.is-active {
  width: 18px;
  background: hsl(var(--foreground) / 0.9);
  opacity: 1;
}

#app-root .azuri-media-controls {
  pointer-events: none;
  z-index: 20;
}

#app-root .azuri-media-controls button {
  pointer-events: auto;
  touch-action: manipulation;
}

#app-root .azuri-fullscreen-button {
  position: relative;
  z-index: 21;
}

#app-root .azuri-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: hsl(var(--background) / 0.9);
  backdrop-filter: blur(8px);
  color: hsl(var(--foreground));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: opacity 0.2s ease, transform 0.2s ease;
  opacity: 0.85;
  z-index: 12;
}

#app-root .azuri-gallery-prev {
  left: 1rem;
}

#app-root .azuri-gallery-next {
  right: 1rem;
}

#app-root .azuri-media-shell:fullscreen .azuri-gallery-nav {
  display: flex;
}

#app-root .azuri-media-shell:fullscreen .azuri-gallery-nav:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.02);
}

#app-root .azuri-gallery-fullscreen .azuri-thumbs {
  display: none;
}

#app-root .azuri-gallery-fullscreen .azuri-sale-badge {
  display: none;
}

#app-root .azuri-gallery-fullscreen .azuri-play-button {
  display: none;
}

#app-root .azuri-media-shell:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app-root .azuri-media-shell:fullscreen img,
#app-root .azuri-media-shell:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app-root .azuri-media-shell:fullscreen .azuri-media-controls {
  bottom: 1.25rem;
}

#app-root .azuri-media-shell:fullscreen .azuri-gallery-dots {
  bottom: 1.25rem;
}

#app-root .azuri-media-shell.azuri-pseudo-fullscreen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10050;
}

#app-root .azuri-media-shell.azuri-pseudo-fullscreen img,
#app-root .azuri-media-shell.azuri-pseudo-fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#app-root .azuri-media-shell.azuri-pseudo-fullscreen .azuri-media-controls {
  bottom: 1.25rem;
}

#app-root .azuri-media-shell.azuri-pseudo-fullscreen .azuri-gallery-dots {
  bottom: 1.25rem;
}

#app-root .azuri-media-shell.azuri-pseudo-fullscreen .azuri-gallery-nav {
  display: flex;
}

html.azuri-lock-scroll,
html.azuri-lock-scroll body {
  overflow: hidden;
  touch-action: none;
}

@media (max-width: 767px) {
  #app-root .azuri-media-shell:fullscreen .azuri-gallery-nav {
    display: none;
  }
  #app-root .azuri-media-shell.azuri-pseudo-fullscreen .azuri-gallery-nav {
    display: none;
  }
}

#app-root .azuri-hero-slider .uni-slideshow_v2 {
  width: 100%;
  margin: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

#app-root .azuri-hero-slider .uni-slideshow_v2__item {
  width: 100%;
  height: auto;
  min-height: 70vh;
  align-items: center;
  justify-content: flex-start;
  background: transparent;
  border-radius: 0;
}

#app-root .azuri-hero-slider .uni-slideshow_v2__item::before {
  display: none;
}

#app-root .azuri-hero-slider .uni-slideshow_v2 .owl-stage-outer,
#app-root .azuri-hero-slider .uni-slideshow_v2 .owl-stage {
  width: 100%;
}

@media (min-width: 1024px) {
  #app-root .azuri-hero-slider .uni-slideshow_v2__item {
    min-height: 85vh;
  }
}
