/* Lucemagnifica — UX polish for desire & conversion */

:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 4.5rem;
}

::selection {
  background: rgba(17, 17, 17, 0.12);
  color: var(--ink);
}

:focus-visible {
  outline: 1.5px solid var(--ink);
  outline-offset: 3px;
}

/* Softer announcement */
.announce {
  padding: 0.7rem 1.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.announce a {
  margin-left: 0.35rem;
  font-weight: 600;
}

/* Header elegance + scrolled state */
.site-header {
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
}

.site-header.is-scrolled {
  background: rgba(245, 241, 232, 0.98);
  box-shadow: 0 8px 28px rgba(17, 17, 17, 0.06);
  border-bottom-color: transparent;
}

.site-header.is-scrolled .nav {
  min-height: 3.75rem;
}

.nav__brand img {
  transition: transform 0.45s var(--ease-out);
}

.site-header.is-scrolled .nav__brand img {
  transform: scale(0.88);
}

.luce-cart-link {
  gap: 0.5rem;
}

.luce-cart-link__icon {
  display: block;
  flex-shrink: 0;
}

.luce-cart-link__count {
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.luce-cart-link.has-items .luce-cart-link__count {
  background: var(--ink);
  animation: bagPulse 0.55s var(--ease-out);
}

@keyframes bagPulse {
  0% { transform: scale(0.7); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Buttons — more tactile, less generic */
.btn {
  min-height: 3.15rem;
  padding: 0.9rem 1.9rem;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
}

.btn--light {
  box-shadow: 0 10px 30px rgba(17, 17, 17, 0.12);
}

.btn--light:hover {
  box-shadow: 0 14px 36px rgba(17, 17, 17, 0.16);
}

.btn--dark {
  letter-spacing: 0.16em;
}

.btn--ghost {
  backdrop-filter: blur(4px);
}

/* Hero — stronger emotional hierarchy */
.hero__veil {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.15) 0%, rgba(17, 17, 17, 0.08) 35%, rgba(17, 17, 17, 0.82) 100%);
}

.hero__lead {
  max-width: 22ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

@media (min-width: 960px) {
  .hero__lead {
    max-width: 18ch;
  }
}

/* Trust promises */
.promises {
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
  background: var(--paper);
}

.promises__list {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.15rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
  list-style: none;
}

.promises__item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.promises__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  flex-shrink: 0;
  opacity: 0.55;
}

@media (min-width: 800px) {
  .promises__list {
    grid-template-columns: repeat(4, 1fr);
    padding: 1.35rem 1.5rem;
    text-align: center;
  }

  .promises__item {
    justify-content: center;
  }
}

/* Section head refinement */
.section-head__sub {
  margin-top: 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 32rem;
}

.section-head--center .section-head__sub {
  margin-left: auto;
  margin-right: auto;
}

/* Product cards — desire + clear next step */
.bestsellers {
  padding-top: clamp(3.5rem, 7vw, 6rem);
}

.product-grid {
  gap: 2rem 1.15rem;
}

.product__link {
  display: block;
  height: 100%;
}

.product__media {
  margin-bottom: 1rem;
  background:
    linear-gradient(145deg, var(--mist) 0%, var(--sand) 100%);
  overflow: hidden;
  isolation: isolate;
}

.product__media img {
  transform: scale(1) translate3d(0, 0, 0);
  transition:
    transform 0.9s var(--ease-out),
    filter 0.9s var(--ease-out);
  will-change: transform;
}

.product:hover .product__media img,
.product:focus-within .product__media img {
  transform: scale(1.1) translate3d(0, -2%, 0);
  filter: brightness(1.04) contrast(1.03);
}

.product__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 17, 17, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.product:hover .product__media::after,
.product:focus-within .product__media::after {
  opacity: 1;
}

.product__cta {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  min-height: 2.65rem;
  background: rgba(245, 241, 232, 0.96);
  color: var(--ink);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  pointer-events: none;
}

.product:hover .product__cta,
.product:focus-within .product__cta {
  opacity: 1;
  transform: none;
}

.product__tag {
  z-index: 2;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(4px);
}

.product__tag--muted {
  background: rgba(110, 104, 94, 0.92);
}

.product__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.product h3,
.product .woocommerce-loop-product__title {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: opacity 0.3s var(--ease-out);
}

.product:hover h3,
.product:hover .woocommerce-loop-product__title {
  opacity: 0.72;
}

.product__price {
  font-size: 0.84rem;
  letter-spacing: 0.02em;
}

.product--soldout .product__media img {
  opacity: 0.55;
  filter: grayscale(0.15);
}

@media (hover: none) {
  .product__cta {
    opacity: 1;
    transform: none;
    background: rgba(245, 241, 232, 0.92);
  }
}

@media (min-width: 720px) {
  .product-grid {
    gap: 2.5rem 1.5rem;
  }
}

/* Reviews — warmer social proof */
.reviews__rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
}

.reviews__stars,
.review__stars {
  color: var(--ink);
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  opacity: 0.7;
}

.reviews__rating-text {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.review__stars {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.68rem;
}

.review p {
  font-size: clamp(1.25rem, 2.5vw, 1.7rem);
}

/* Story — more inviting */
.story__copy p:not(.eyebrow) {
  font-size: 1.06rem;
  line-height: 1.75;
}

/* Community CTA more commercial */
.instagram {
  background:
    linear-gradient(180deg, rgba(17, 17, 17, 0.68), rgba(17, 17, 17, 0.9)),
    var(--community-bg, none) center / cover no-repeat;
}

/* Footer quieter elegance */
.footer {
  padding: 4rem 1.5rem 2.75rem;
}

.footer__brand img {
  transition: transform 0.45s var(--ease-out);
}

.footer__brand:hover img {
  transform: scale(1.04);
}

/* Soft page content rhythm */
.luce-content__inner {
  max-width: 720px;
}

/* Touch-friendly nav cart on mobile */
@media (max-width: 560px) {
  .product-grid {
    gap: 1.75rem 0.85rem;
  }

  .product__cta {
    font-size: 0.6rem;
    min-height: 2.4rem;
  }

  .promises__item {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
  }
}

/* Contact + social + WhatsApp */
.nav__phone {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .nav__phone {
    display: none;
  }
}

.footer__contact,
.footer__social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin: 0 auto 1.5rem;
  max-width: 640px;
}

.footer__contact a,
.footer__contact span,
.footer__social a {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}

.footer__contact a:hover,
.footer__social a:hover {
  color: var(--ink);
}

.luce-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  width: 3.35rem;
  height: 3.35rem;
  display: grid;
  place-items: center;
  background: #111111;
  color: var(--paper);
  border-radius: 50%;
  box-shadow: 0 12px 32px rgba(17, 17, 17, 0.22);
  transition: transform 0.35s var(--ease-out), background 0.35s var(--ease-out);
}

.luce-wa:hover {
  transform: translateY(-3px) scale(1.04);
  background: #2a2a2a;
  color: var(--paper);
}

/* Isolate hero from Elementor / Hostinger card styles */
.hero,
.hero__media,
.hero__img,
.hero__veil {
  border-radius: 0 !important;
}

.hero {
  display: grid !important;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--ink);
}

.hero__content {
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

.luce-front .elementor,
body.luce-front .elementor-location-header,
body.luce-front .elementor-location-footer {
  /* keep theme header/footer primary on front */
}

body.home .hero .elementor-widget-container {
  background: transparent !important;
}
