/* ── Emma Internazionale — Products & Detail Pages (shared) ── */

.emma-products-page {
  --emma-red: #e80505;
  --emma-gold: #414042;
  --emma-black: #151719;
  --emma-white: #151719;
  --emma-white-dim: rgba(23, 23, 23, 0.64);
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Almarai', 'Montserrat', sans-serif;
}

.emma-products-page .section-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--emma-red);
}

.emma-products-page .section-badge::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--emma-red);
}

.emma-products-page .section-heading {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--emma-white);
}

.emma-products-page .red-line {
  display: block;
  width: 64px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(to right, var(--emma-red), var(--emma-gold));
}

/* ═══════════════════════════════════════════════════════════
   PAGE BASE (overrides reset.css cursor: none for sub-pages)
═══════════════════════════════════════════════════════════ */
.emma-products-page * {
  cursor: auto !important;
}

.emma-products-page a,
.emma-products-page button,
.emma-products-page [role="button"] {
  cursor: pointer !important;
}

/* ═══════════════════════════════════════════════════════════
   PAGE NAVIGATION BAR
═══════════════════════════════════════════════════════════ */
.emma-page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  background: rgba(255,255,255,0);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}

.emma-page-nav.nav-scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid rgba(17,17,17,0.08);
}

/* Logo */
.page-nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.page-nav-logo-img {
  height: 26px;
  filter: none;
  opacity: 0.9;
}

/* Nav center links */
.page-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
}

.page-nav-link {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.62);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s ease;
}

.page-nav-link:hover {
  color: var(--emma-white);
}

.page-nav-link svg {
  opacity: 0.5;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(17,17,17,0.42);
  background: transparent;
  border: 1px solid transparent;
  padding: 5px 9px;
  cursor: pointer !important;
  border-radius: 2px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  line-height: 1;
}

.lang-btn .lang-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}

.lang-btn:hover {
  color: var(--emma-white);
}

.lang-btn--active {
  color: #fff !important;
  background: var(--emma-red);
  border-color: var(--emma-red);
}

/* ═══════════════════════════════════════════════════════════
   PAGE HERO (products + detail pages)
═══════════════════════════════════════════════════════════ */
.page-hero {
  position: relative;
  min-height: 40vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 52px 64px;
  background: linear-gradient(160deg, #fff1f3 0%, #fafafa 38%, #f2f2f2 100%);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 80% at 10% 0%, rgba(232, 5, 5,0.12) 0%, transparent 60%);
  pointer-events: none;
}

/* Ghost number behind heading */
.page-hero-ghost {
  position: absolute;
  right: 52px; bottom: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(120px, 20vw, 260px);
  line-height: 0.85;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 5, 5,0.06);
  user-select: none;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.page-hero-heading {
  font-size: clamp(36px, 5.5vw, 80px);
  margin: 8px 0 0;
  line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   PRODUCT CARD (pg-card) — used in products.html and detail related
═══════════════════════════════════════════════════════════ */
.pg-card {
  position: relative;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid rgba(17,17,17,0.10);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.28s ease, transform 0.32s ease, box-shadow 0.32s ease;
  opacity: 0;
  transform: translateY(24px);
}

.pg-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pg-card:hover {
  border-color: rgba(232, 5, 5,0.3);
  transform: translateY(-3px);
  box-shadow: 0 14px 44px rgba(31,31,31,0.12);
}

/* red corner accent top-right */
.pg-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 32px; height: 2px;
  background: var(--emma-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.pg-card:hover::before {
  transform: scaleX(1);
}

/* Bottom red line */
.pg-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(to right, var(--emma-red), var(--emma-gold));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}

.pg-card:hover::after {
  transform: scaleX(1);
}

/* Card visual placeholder */
.pg-card-visual {
  position: relative;
  height: 160px;
  background: #f2f2f2;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pg-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../UI/pattern.png');
  background-size: 120px auto;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.pg-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px 28px 14px;
  z-index: 2;
  filter: drop-shadow(0 14px 12px rgba(21,23,25,.18));
  transition: transform 0.4s ease;
}

.pg-card-system {
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 4;
  color: rgba(17,17,17,.46);
  font: 700 9px/1 var(--font-display);
  letter-spacing: .2em;
}

.pg-card:hover .pg-card-image {
  transform: scale(1.04);
}

.pg-card-visual::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.88));
  pointer-events: none;
  z-index: 3;
}

.pg-card-num {
  font-family: var(--font-display);
  font-size: clamp(64px, 10vw, 110px);
  font-weight: 900;
  line-height: 1;
  color: rgba(232, 5, 5,0.09);
  user-select: none;
  pointer-events: none;
  transition: color 0.3s ease;
  position: relative;
  z-index: 2;
}

.pg-card:hover .pg-card-num {
  color: rgba(232, 5, 5,0.16);
}

/* Card body */
.pg-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.pg-card-cat {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--emma-red);
  margin-bottom: 4px;
}

.pg-card-name {
  font-family: var(--font-display);
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 700;
  color: var(--emma-white);
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.pg-card-description {
  margin-top: 7px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(17,17,17,0.62);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.pg-card-alt {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pg-card-alt-name {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 300;
  color: rgba(17,17,17,0.46);
  line-height: 1.4;
}

.pg-card-alt-name--ar {
  direction: rtl;
  text-align: right;
}

.pg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17,17,17,0.08);
}

.pg-card-view {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--emma-red);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.pg-card:hover .pg-card-view {
  gap: 10px;
}

/* ═══════════════════════════════════════════════════════════
   REDUCED-MOTION
═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .pg-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .pg-card::before,
  .pg-card::after {
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE NAV
═══════════════════════════════════════════════════════════ */
@media (max-width: 760px) {
  .emma-page-nav { padding: 0 20px; height: 56px; }
  .page-nav-links { display: none; }
  .page-hero { padding: 100px 20px 48px; }
  .page-hero-ghost { display: none; }
}
