/* =========================================
   HOME PAGE
   ========================================= */

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ── Carousel ── */
.carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.carousel__track {
  display: flex;
  width: 100%;
  height: 100%;
}

.carousel__slide {
  min-width: 100%;
  height: 100%;
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  position: absolute;
  inset: 0;
  transition: opacity 1.8s ease;
}

.carousel__slide--active {
  opacity: 1;
  z-index: 2;
  animation: kenBurns 9s ease-in-out forwards;
}

.carousel__slide--leaving {
  opacity: 0;
  z-index: 3;
  animation-play-state: paused;
  transition: opacity 1.8s ease;
}

/* Ken Burns variations — cada slide anima diferente */
@keyframes kenBurns {
  0%   { background-size: 110%; background-position: center center; }
  100% { background-size: 125%; background-position: 55% 45%; }
}

.carousel__slide:nth-child(2).carousel__slide--active  { animation-name: kenBurns2; }
.carousel__slide:nth-child(3).carousel__slide--active  { animation-name: kenBurns3; }
.carousel__slide:nth-child(4).carousel__slide--active  { animation-name: kenBurns4; }
.carousel__slide:nth-child(5).carousel__slide--active  { animation-name: kenBurns; }
.carousel__slide:nth-child(6).carousel__slide--active  { animation-name: kenBurns2; }
.carousel__slide:nth-child(7).carousel__slide--active  { animation-name: kenBurns3; }
.carousel__slide:nth-child(8).carousel__slide--active  { animation-name: kenBurns4; }

@keyframes kenBurns2 {
  0%   { background-size: 120%; background-position: 60% 50%; }
  100% { background-size: 108%; background-position: 40% 55%; }
}

@keyframes kenBurns3 {
  0%   { background-size: 108%; background-position: 50% 60%; }
  100% { background-size: 122%; background-position: 45% 40%; }
}

@keyframes kenBurns4 {
  0%   { background-size: 115%; background-position: 40% 45%; }
  100% { background-size: 128%; background-position: 55% 50%; }
}

.carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10,10,8,.65) 0%,
    rgba(10,10,8,.35) 50%,
    rgba(10,10,8,.2) 100%
  );
  z-index: 2;
}

.carousel__nav {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.carousel__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}
.carousel__btn:hover {
  background: rgba(255,255,255,.3);
  border-color: rgba(255,255,255,.6);
}

.carousel__dots {
  display: flex;
  gap: 8px;
}

.carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.carousel__dot--active {
  background: var(--white);
  width: 24px;
  border-radius: 3px;
}

.hero__content {
  position: relative;
  z-index: 5;
  width: 90%;
  max-width: 1240px;
  margin: 0 auto;
  padding-top: var(--nav-h);
}

.hero__label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
}

.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 28px;
  opacity: 0;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255,255,255,.75);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 480px;
  opacity: 0;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  opacity: 0;
}

.hero__btn-outline {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.hero__btn-outline:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  opacity: 0;
  z-index: 10;
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLinePulse 2s ease-in-out infinite;
}

@keyframes scrollLinePulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.1); }
}

/* ── Section labels ── */
.section-label {
  display: block;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 { margin-bottom: 0; }

/* ── Categories ── */
.categories__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: start;
}

.category-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow var(--transition);
}
.category-card:hover { box-shadow: var(--shadow-lg); }

.category-card__image {
  overflow: hidden;
  aspect-ratio: 3/4;
}

.category-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1);
}
.category-card:hover .category-card__image img { transform: scale(1.06); }

.category-card__body {
  padding: 24px;
}

.category-card__body h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.category-card__body p {
  font-size: .88rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.category-card__link {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--gold-dark);
  text-transform: uppercase;
  transition: gap var(--transition);
}

/* ── Featured products ── */
.section--cream { background: var(--cream-mid); }

.featured__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ── Brand story ── */
.brand-story__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.brand-story__desc {
  margin-top: 24px;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 460px;
}

.brand-story__image {
  position: relative;
}

.brand-story__image img {
  width: 100%;
  height: 540px;
  object-fit: cover;
  border-radius: var(--radius);
}

.brand-story__quote {
  position: absolute;
  bottom: -24px;
  right: -24px;
  max-width: 260px;
  padding: 24px 28px;
  background: var(--charcoal);
  border-radius: var(--radius);
}

.brand-story__quote p {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.6;
}

/* ── Gift banner ── */
.gift-banner {
  background: var(--charcoal);
  padding: 80px 0;
}

.gift-banner__inner {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 640px;
}

/* ── Scent teaser ── */
.scent-teaser__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.scent-teaser__inner p {
  margin-top: 20px;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Store Expand ── */
.store-expand {
  background: var(--charcoal);
  height: 420vh;
  position: relative;
}

.store-expand__intro {
  text-align: center;
  padding: 100px 24px 60px;
}

.store-expand__intro .section-label { color: var(--gold); }

.store-expand__intro h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.store-expand__intro > p {
  color: rgba(250,248,245,.45);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.store-expand__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.store-expand__frame {
  position: absolute;
  inset: 0;
  clip-path: inset(15% 14% 15% 14% round 20px);
  will-change: clip-path;
}

.store-img--from,
.store-img--to {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.store-img--to { opacity: 0; }

.store-expand__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .6s ease;
  z-index: 2;
}

/* ── Hotspots ── */
.hotspots {
  position: absolute;
  inset: 0;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease;
}

.hotspots.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.hotspot {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.hotspot__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid rgba(255,255,255,.9);
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
  transition: transform .2s ease;
}
.hotspot:hover .hotspot__dot { transform: scale(1.4); }

.hotspot__pulse {
  position: absolute;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(196,168,130,.35);
  animation: hotspotPulse 2.4s ease-out infinite;
}

.hotspot:nth-child(2) .hotspot__pulse { animation-delay: .6s; }
.hotspot:nth-child(3) .hotspot__pulse { animation-delay: 1.2s; }
.hotspot:nth-child(4) .hotspot__pulse { animation-delay: 1.8s; }

@keyframes hotspotPulse {
  0%   { transform: scale(.4); opacity: .8; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(.4); opacity: 0; }
}

.hotspot__tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(28,28,26,.92);
  backdrop-filter: blur(8px);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  font-size: .82rem;
  border: 1px solid rgba(196,168,130,.2);
  text-align: center;
}

.hotspot__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(28,28,26,.92);
}

.hotspot:hover .hotspot__tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.hotspot__name {
  display: block;
  font-weight: 500;
  margin-bottom: 2px;
  letter-spacing: .04em;
}

.hotspot__price {
  display: block;
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .06em;
}

/* ── Hotspot debut: tooltips briefly visible on first appear ── */
.hotspots--debut .hotspot__tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* ── Store hint pill ── */
.store-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,28,26,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.9);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: .78rem;
  font-family: var(--sans);
  letter-spacing: .08em;
  z-index: 15;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  border: 1px solid rgba(196,168,130,.3);
  transition: opacity .5s ease;
  overflow: hidden;
}

.store-hint.is-visible { opacity: 1; }

.store-hint::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--gold);
  border-radius: 0 0 50px 50px;
  transition: none;
}

.store-hint.is-counting::after {
  width: 100%;
  transition: width 2.8s linear;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .categories__grid { grid-template-columns: 1fr 1fr; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-story__inner { grid-template-columns: 1fr; gap: 48px; }
  .brand-story__image img { height: 400px; }
  .brand-story__quote { right: 0; }
}

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .categories__grid { grid-template-columns: 1fr; }
  .featured__header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: clamp(2.8rem, 8vw, 4rem); }
  .store-expand__frame { clip-path: inset(20% 8% 20% 8% round 16px); }
  .store-expand__intro { padding: 80px 24px 40px; }
}
