/* ============================================================
   Mira v2 — Page-Specific Styles
   ============================================================ */

.page-transition { animation: fadeIn 300ms ease-out; }

/* ===================== HERO ===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.hero__video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero__content {
  position: relative;
  z-index: 1;
  color: var(--color-white);
  max-width: 800px;
  padding: 2rem;
}
.hero__logo {
  font-family: var(--font-script);
  font-size: var(--fs-hero);
  color: var(--color-white);
  font-weight: 400;
  margin-bottom: 0.25rem;
  line-height: 1;
}
.hero__tagline {
  font-family: var(--font-body);
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--color-white);
  margin-bottom: 3rem;
  letter-spacing: 2px;
  line-height: 1.2;
}
.hero__ctas {
  display: flex;
  gap: 3rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__cta-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.5px;
  transition: opacity var(--transition-fast);
}
.hero__cta-link:hover { opacity: 0.5; }

/* ===================== PROMO BANNER ===================== */
.promo-banner {
  padding: 2.5rem 0;
  text-align: center;
  border-bottom: 1px solid var(--color-border-light);
}
.promo-banner__title {
  font-family: var(--font-script);
  font-size: var(--fs-5xl);
  color: var(--color-text);
  font-weight: 400;
  line-height: 1;
}
.promo-banner__subtitle {
  font-family: var(--font-script);
  font-size: var(--fs-2xl);
  color: var(--color-text-light);
  font-style: italic;
  margin-top: -0.25rem;
}

/* ===================== PRODUCTS CAROUSEL ===================== */
.products-carousel {
  padding: 2.5rem 0 3rem;
}
.products-carousel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}
.products-carousel__title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.products-carousel__link {
  font-size: 0.82rem;
  color: var(--color-text-light);
}
.products-carousel__wrapper {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 1rem;
}
.products-carousel__wrapper::-webkit-scrollbar { display: none; }
.products-carousel__item {
  flex: 0 0 calc(20% - 1.2rem);
  scroll-snap-align: start;
  min-width: 180px;
}

/* ===================== ESSENCE SECTION ===================== */
.essence-section {
  background: var(--color-black);
  color: var(--color-white);
  padding: 5rem 0;
}
.essence__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.essence__video-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background: #111;
}
.essence__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.essence__video-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.essence__content { padding: 1rem 0; }
.essence__title {
  font-family: var(--font-script);
  font-size: var(--fs-4xl);
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.essence__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.7);
}
.essence__text strong {
  color: var(--color-white);
  font-weight: 600;
}
.essence__link {
  color: var(--color-white);
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 1.5rem;
  display: inline-block;
  font-size: 0.88rem;
}
.essence__link:hover { opacity: 0.6; }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--color-bg-light);
  padding: 3rem 0 1.5rem;
}
.footer__inner { /* uses .container */ }
.footer__content { margin-bottom: 2rem; }
.footer__logo {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--color-black);
  margin-bottom: 0.25rem;
}
.footer__tagline {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}
.footer__contact-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--color-text);
}
.footer__contact-item {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}
.footer__contact-item a {
  color: inherit;
  text-decoration: none;
}
.footer__contact-item a:hover { text-decoration: underline; opacity: 1; }
.footer__divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: 2rem 0 1.5rem;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer__copyright {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.footer__social {
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-black);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}
.footer__social-link:hover { opacity: 0.7; }
.footer__social-link svg { width: 16px; height: 16px; fill: currentColor; }

/* ===================== PRODUCTS PAGE ===================== */
.products-page {
  padding-top: calc(var(--navbar-height) + 2rem);
  min-height: 100vh;
  padding-bottom: 4rem;
}
.products-page__header {
  text-align: center;
  margin-bottom: 2rem;
}
.products-page__title {
  font-family: var(--font-script);
  font-size: var(--fs-5xl);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.products-page__filters {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}
.filter-btn {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: 8px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: var(--font-body);
  color: var(--color-text-light);
}
.filter-btn:hover { border-color: var(--color-black); color: var(--color-text); }
.filter-btn--active {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}
.filter-select {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  cursor: pointer;
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.products-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text-muted);
  grid-column: 1 / -1;
}
.products-empty svg { width: 48px; height: 48px; opacity: 0.3; margin: 0 auto 1rem; }

/* ===================== PRODUCT DETAIL ===================== */
.product-detail {
  padding-top: calc(var(--navbar-height) + 2rem);
  min-height: 100vh;
  padding-bottom: 4rem;
}
.product-detail__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--color-text-light);
  text-decoration: none;
  margin-bottom: 2rem;
}
.product-detail__back:hover { color: var(--color-text); opacity: 1; }
.product-detail__back svg { width: 16px; height: 16px; }
.product-detail__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.product-detail__gallery { position: relative; }
.product-detail__gallery-inner {
  display: flex;
  gap: 0.75rem;
}
.product-detail__thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-shrink: 0;
}
.product-detail__thumb {
  width: 70px;
  height: 88px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  background: var(--color-bg-gray);
}
.product-detail__thumb:hover { opacity: 0.7; }
.product-detail__thumb--active { border-color: var(--color-black); }
.product-detail__main-image {
  flex: 1;
  overflow: hidden;
  background: var(--color-bg-gray);
}
.product-detail__main-image img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.product-detail__info { padding: 1rem 0; }
.product-detail__name {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-detail__price {
  font-size: 1.2rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.product-detail__description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border-light);
}
.product-detail__section { margin-bottom: 1.5rem; }
.product-detail__section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}
.product-detail__actions { margin-top: 2rem; }
.product-detail__not-found {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--color-text-muted);
}

/* ===================== CONTACT PAGE ===================== */
.contact-page {
  padding-top: calc(var(--navbar-height) + 3rem);
  min-height: 100vh;
  padding-bottom: 4rem;
}
.contact-page__header {
  text-align: center;
  margin-bottom: 3rem;
}
.contact-page__title {
  font-family: var(--font-script);
  font-size: var(--fs-5xl);
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.contact-page__subtitle {
  font-size: 0.9rem;
  color: var(--color-text-light);
}
.contact-page__content {
  max-width: 600px;
  margin: 0 auto;
}
.contact-page__info {
  margin-bottom: 2.5rem;
}
.contact-page__info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--color-border-light);
}
.contact-page__info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
}
.contact-page__info-icon svg { width: 20px; height: 20px; }
.contact-page__info-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}
.contact-page__info-value {
  font-size: 0.95rem;
  color: var(--color-text);
}
.contact-page__whatsapp {
  text-align: center;
  margin-top: 2rem;
}
.contact-page__faq { margin-top: 4rem; }
.contact-page__faq-title {
  font-family: var(--font-script);
  font-size: var(--fs-3xl);
  text-align: center;
  margin-bottom: 2rem;
}
.faq-item { border-bottom: 1px solid var(--color-border-light); }
.faq-item__question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  user-select: none;
  transition: color var(--transition-fast);
}
.faq-item__question:hover { color: var(--color-text-light); }
.faq-item__icon {
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.faq-item__icon svg { width: 18px; height: 18px; }
.faq-item--open .faq-item__icon { transform: rotate(180deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 500ms ease;
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.7;
}
.faq-item--open .faq-item__answer {
  max-height: 500px;
  padding-bottom: 1.25rem;
}

/* ===================== ABOUT PAGE ===================== */
.about-page {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}
.about-hero {
  padding: 4rem 0 3rem;
}
.about-hero__title {
  font-size: var(--fs-5xl);
  font-weight: 300;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.about-hero__subtitle {
  font-family: var(--font-script);
  font-size: var(--fs-3xl);
  color: var(--color-text-light);
}
.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
}
.about__text {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--color-text-light);
}
.about__text p { margin-bottom: 1.5rem; }
.about__text strong { color: var(--color-text); font-weight: 600; }
.about__images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.about__image {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  background: var(--color-bg-gray);
}

/* ===================== ADMIN PAGE ===================== */
.admin-page {
  padding-top: calc(var(--navbar-height) + 2rem);
  min-height: 100vh;
  padding-bottom: 3rem;
}
.admin-login {
  max-width: 400px;
  margin: 4rem auto;
  text-align: center;
  padding: 0 1.5rem;
}
.admin-login__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.5rem;
  color: var(--color-text-light);
}
.admin-login__icon svg { width: 48px; height: 48px; }
.admin-login__title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.admin-login__subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.admin-login__error {
  font-size: 0.82rem;
  color: var(--color-danger);
  margin-top: 0.75rem;
  display: none;
}
.admin-login__error--visible { display: block; }
.admin-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.admin-panel__title {
  font-size: 1.2rem;
  font-weight: 500;
}
.admin-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.admin-empty {
  text-align: center;
  padding: 3rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  grid-column: 1 / -1;
}
.admin-section { margin-bottom: 2rem; }
.admin-section__title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}
.admin-list {
  border: 1px solid var(--color-border-light);
}
.admin-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.88rem;
}
.admin-list__item:last-child { border-bottom: none; }
.admin-list__item-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.admin-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.admin-coupon-status {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.admin-coupon-status--active { background: #e6f9ed; color: #28a745; }
.admin-coupon-status--inactive { background: #fde8e8; color: var(--color-danger); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .products-carousel__item { flex: 0 0 calc(25% - 1.2rem); }
  .product-detail__container { gap: 2rem; }
}

@media (max-width: 768px) {
  .hero__logo { font-size: 3.5rem; }
  .hero__tagline { font-size: 1.5rem; margin-bottom: 2rem; }
  .hero__ctas { gap: 1.5rem; }

  .promo-banner__title { font-size: var(--fs-3xl); }
  .promo-banner__subtitle { font-size: var(--fs-lg); }

  .products-carousel__item { flex: 0 0 calc(40% - 0.75rem); }

  .essence__container { grid-template-columns: 1fr; }
  .essence__title { font-size: var(--fs-3xl); }

  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .products-page__title { font-size: var(--fs-4xl); }

  .product-detail__container { grid-template-columns: 1fr; }
  .product-detail__gallery-inner { flex-direction: column-reverse; }
  .product-detail__thumbs { flex-direction: row; overflow-x: auto; }
  .product-detail__thumb { width: 60px; height: 75px; }

  .about__content { grid-template-columns: 1fr; }
  .about-hero__title { font-size: var(--fs-4xl); }

  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero__logo { font-size: 2.5rem; }
  .hero__tagline { font-size: 1.2rem; }
  .hero__ctas { flex-direction: column; gap: 1rem; }

  .products-carousel__item { flex: 0 0 calc(65%); }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .product-detail__name { font-size: 1.2rem; }

  .contact-page__title { font-size: var(--fs-4xl); }
  .about-hero__title { font-size: var(--fs-3xl); }
}
