/* Homepage — hero slider & Glotelho-style showcase */

.home-promo-strip {
  background: linear-gradient(90deg, var(--pc-violet-dark), var(--pc-violet));
  color: #fff;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-promo-strip__track {
  display: flex;
  gap: 0.65rem;
  padding: 0.55rem 0;
  width: max-content;
  animation: home-promo-scroll 35s linear infinite;
}

.home-promo-strip:hover .home-promo-strip__track {
  animation-play-state: paused;
}

@keyframes home-promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.home-promo-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.home-promo-pill:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.home-promo-pill.is-hot {
  background: var(--pc-gold);
  color: var(--pc-dark) !important;
  border-color: transparent;
}

/* Showcase grid */
.home-showcase {
  background: var(--pc-cream);
  padding: 1rem 1rem 1.5rem;
}

.home-showcase__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 200px 1fr 220px;
  gap: 1rem;
  align-items: stretch;
}

.home-showcase__nav {
  background: #fff;
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  border: 1px solid var(--pc-lavender);
  overflow: hidden;
}

.home-showcase__nav ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.home-showcase__nav a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  text-decoration: none;
  color: var(--pc-dark);
  font-size: 0.88rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.home-showcase__nav a:hover {
  background: var(--pc-lavender);
  color: var(--pc-violet-dark);
  padding-left: 1.15rem;
}

.home-showcase__nav-icon {
  font-size: 1.1rem;
  width: 1.4rem;
  text-align: center;
}

/* Slider */
.home-slider {
  position: relative;
  border-radius: calc(var(--pc-radius) + 4px);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(74, 44, 114, 0.18);
  min-height: 360px;
}

.home-slider__viewport {
  position: relative;
  height: 100%;
  min-height: 360px;
}

.home-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.65s ease, visibility 0.65s;
  display: flex;
  align-items: center;
}

.home-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.home-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.home-slide.is-active .home-slide__bg {
  transform: scale(1);
}

.home-slide--wax .home-slide__bg {
  background-image:
    linear-gradient(125deg, rgba(45, 27, 61, 0.82) 0%, rgba(107, 63, 160, 0.55) 50%, rgba(212, 168, 83, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A8E8' fill-opacity='0.15'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40z'/%3E%3C/g%3E%3C/svg%3E");
}

.home-slide--tailor .home-slide__bg {
  background-image:
    linear-gradient(135deg, rgba(74, 44, 114, 0.9) 0%, rgba(155, 111, 212, 0.7) 100%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='%23EDE4F7' fill-opacity='0.12'/%3E%3C/svg%3E");
}

.home-slide--pay .home-slide__bg {
  background-image:
    linear-gradient(120deg, rgba(45, 27, 61, 0.88) 0%, rgba(107, 63, 160, 0.75) 40%, rgba(45, 106, 79, 0.45) 100%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='2' fill='%23fff' fill-opacity='0.15'/%3E%3C/svg%3E");
}

.home-slide__content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.75rem;
  color: #fff;
  max-width: 520px;
  animation: home-slide-in 0.7s ease both;
}

.home-slide:not(.is-active) .home-slide__content {
  animation: none;
}

@keyframes home-slide-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-slide__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.home-slide__title {
  font-family: var(--pc-font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

.home-slide__text {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  font-size: 1rem;
  line-height: 1.55;
}

.home-slide__cta {
  animation: home-pulse-cta 2.5s ease-in-out infinite;
}

@keyframes home-pulse-cta {
  0%, 100% { box-shadow: 0 8px 24px rgba(107, 63, 160, 0.35); }
  50% { box-shadow: 0 8px 32px rgba(212, 168, 83, 0.45); }
}

.home-slider__controls {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(45, 27, 61, 0.55);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.home-slider__arrow {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.home-slider__arrow:hover {
  background: var(--pc-violet-light);
}

.home-slider__dots {
  display: flex;
  gap: 0.35rem;
}

.home-slider__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.home-slider__dot.is-active {
  background: var(--pc-gold);
  transform: scale(1.25);
}

/* Side cards */
.home-showcase__side {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.home-side-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  border-radius: var(--pc-radius);
  text-decoration: none;
  color: #fff !important;
  min-height: 170px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s;
  box-shadow: var(--pc-shadow);
}

.home-side-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 40px rgba(74, 44, 114, 0.22);
}

.home-side-card--delivery {
  background: linear-gradient(145deg, #2d6a4f 0%, #40916c 100%);
}

.home-side-card--vendors {
  background: linear-gradient(145deg, var(--pc-violet-dark) 0%, var(--pc-violet-light) 100%);
}

.home-side-card__title {
  font-family: var(--pc-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.home-side-card__text {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-bottom: 0.75rem;
}

.home-side-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Category deals */
.home-deals {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 1rem;
}

.home-deals__title {
  font-family: var(--pc-font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  text-align: center;
  margin: 0 0 1.5rem;
  color: var(--pc-dark);
}

.home-deals__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
}

.home-deal-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem 1rem;
  background: #fff;
  border-radius: var(--pc-radius);
  border: 1px solid var(--pc-lavender);
  text-decoration: none;
  color: var(--pc-dark) !important;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 4px 16px rgba(74, 44, 114, 0.06);
}

.home-deal-card:hover {
  transform: translateY(-6px);
  border-color: var(--pc-violet-light);
  box-shadow: 0 14px 32px rgba(107, 63, 160, 0.15);
}

.home-deal-card__icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
}

.home-deal-card:hover .home-deal-card__icon {
  transform: scale(1.15) rotate(-4deg);
}

.home-deal-card__label {
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 0.75rem;
  color: var(--pc-violet-dark);
}

.home-deal-card__btn {
  display: inline-block;
  background: linear-gradient(135deg, #c45c26, #e07a3a);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Trust bar */
.home-trust {
  max-width: 1280px;
  margin: 0 auto 1rem;
  padding: 0 1rem;
}

.home-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: #fff;
  border-radius: var(--pc-radius);
  border: 1px solid var(--pc-lavender);
  padding: 1.25rem;
  box-shadow: var(--pc-shadow);
}

.home-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #5a4a6a;
}

.home-trust__item strong {
  color: var(--pc-violet-dark);
  font-size: 0.92rem;
}

.home-trust__icon {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.home-products.woocommerce ul.products {
  grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 1024px) {
  .home-products.woocommerce ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .home-products.woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Scroll reveal */
.pc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.pc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
  .home-showcase__grid {
    grid-template-columns: 1fr 200px;
  }
  .home-showcase__nav {
    display: none;
  }
  .home-deals__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .home-showcase__grid {
    grid-template-columns: 1fr;
  }
  .home-showcase__side {
    flex-direction: row;
  }
  .home-side-card {
    min-height: 140px;
  }
  .home-slider,
  .home-slider__viewport {
    min-height: 300px;
  }
  .home-slide__content {
    padding: 1.75rem 1.25rem 3rem;
  }
  .home-deals__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-trust__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .home-promo-strip__track {
    animation-duration: 28s;
  }
}

@media (max-width: 480px) {
  .home-showcase__side {
    flex-direction: column;
  }
  .home-trust__grid {
    grid-template-columns: 1fr;
  }
}
