/**
 * Holowitz Customizer & Visual Studio Frontend Stylesheet
 */

/* Announcement Bar */
.hw-announcement-bar {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.hw-announcement-bar.is-hidden {
  display: none !important;
}

/* Sticky Header Effect */
.header.js-sticky-header {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: var(--hw-bg, #ffffff);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.js-sticky-header.is-scrolled {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

/* Enhanced Product Miniature & Image Hover Crossfade */
.product-miniature {
  background: var(--hw-card-bg, #ffffff);
  border-radius: var(--hw-border-radius, 8px);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.product-miniature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.09);
}

.product-miniature__image-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--hw-border-radius, 8px);
}

.product-miniature__image-hover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.product-miniature:hover .product-miniature__image-hover {
  opacity: 1;
}

/* Product Flags / Badges */
.product-flags .product-flag {
  border-radius: var(--hw-border-radius, 4px);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 4px 8px;
}

.product-flag--discount,
.product-flag--on-sale {
  background-color: var(--hw-accent, #2563eb) !important;
  color: #ffffff !important;
}

.product-flag--new {
  background-color: var(--hw-primary, #18181b) !important;
  color: #ffffff !important;
}

/* =========================================================
   ELEMENT 1: HERO ACCORDION SLIDER
   ========================================================= */
.hw-accordion-slider {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  border-radius: var(--hw-border-radius, 12px);
}

@media (min-width: 768px) {
  .hw-accordion-slider {
    flex-direction: row;
    height: 560px;
  }
}

.hw-accordion-slider__panel {
  position: relative;
  flex: 1;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  min-height: 220px;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s ease;
}

@media (min-width: 768px) {
  .hw-accordion-slider__panel:hover,
  .hw-accordion-slider__panel.is-active {
    flex: 3.2;
  }
}

.hw-accordion-slider__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.65) 100%);
  transition: background 0.4s ease;
}

.hw-accordion-slider__content {
  position: absolute;
  bottom: 0;
  inset-x: 0;
  padding: 24px;
  color: #ffffff;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hw-accordion-slider__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}

.hw-accordion-slider__title {
  font-family: var(--hw-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hw-accordion-slider__desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hw-accordion-slider__btn {
  align-self: flex-start;
  border-radius: 20px;
  font-size: 0.875rem;
}

/* =========================================================
   ELEMENT 2: HERO HOTSPOTS
   ========================================================= */
.hw-hotspots-canvas {
  position: relative;
}

.hw-hotspot-pin {
  transform: translate(-50%, -50%);
  z-index: 10;
}

.hw-hotspot-trigger {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  color: #18181b;
  border: none;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hw-hotspot-trigger:hover {
  transform: scale(1.15);
  background: var(--hw-primary, #18181b);
  color: #ffffff;
}

.hw-hotspot-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  animation: hw-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes hw-pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  50% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.hw-hotspot-popover {
  display: none;
  position: absolute;
  bottom: 42px;
  left: 50%;
  transform: translateX(-50%);
  width: 220px;
  z-index: 30;
  border-radius: var(--hw-border-radius, 8px);
}

.hw-hotspot-pin:hover .hw-hotspot-popover,
.hw-hotspot-pin:focus-within .hw-hotspot-popover {
  display: block;
}

/* =========================================================
   ELEMENT 3: CATEGORY CARDS
   ========================================================= */
.hw-category-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.hw-category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px -8px rgba(0, 0, 0, 0.12);
}

.hw-category-card:hover .hw-category-card__img-wrap img {
  transform: scale(1.06);
}

.hw-category-card__img-wrap img {
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.bg-gradient-to-t {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.75) 100%);
}
