/* --- TIPOGRAFIAS --- */
@font-face {
  font-family: 'Jedira';
  src: url('../../media/font/jedira-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Jedira';
  src: url('../../media/font/jedira-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Optima';
  src: url('../../media/font/Optima.ttc') format('truetype');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ─── RESET & BASE ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:      #f5f3f0;
  --clr-surface: #ffffff;
  --clr-text:    #1a1a1a;
  --clr-muted:   #777;
  --topbar-h:    36px;
  --header-h:    92px;
  --sidebar-w:   280px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Optima', system-ui, sans-serif; font-weight: 700;
  background: var(--clr-bg);
  color: var(--clr-text);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* ─── TOPBAR ────────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  z-index: 910;
  background: var(--clr-bg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar--hidden { transform: translateY(-100%); }

.topbar-left,
.topbar-center {
  font-family: 'Optima', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-muted);
  display: flex;
  align-items: center;
  gap: 7px;
}

.topbar-center { position: absolute; left: 50%; transform: translateX(-50%); }
.topbar-right { display: flex; align-items: center; gap: 14px; }

.topbar-right a {
  color: var(--clr-muted);
  font-size: 1.2rem;
  transition: color var(--transition);
}

.topbar-right a:hover { color: var(--clr-text); }

@media (max-width: 768px) {
  .topbar { padding: 0 20px; }
  .topbar-center { display: none; }
}

/* ─── HEADER ────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: var(--topbar-h); left: 0; right: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: rgba(245, 243, 240, 0.95);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: top 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.logo-link { display: flex; }

.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-nav { display: none; }
.header-actions { display: flex; align-items: center; gap: 20px; }

@media (min-width: 769px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 36px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .header-nav a {
    font-family: 'Optima', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-muted);
    white-space: nowrap;
    transition: color var(--transition);
  }

  .header-nav a:hover,
  .header-nav a.active { color: var(--clr-text); }
}

@media (max-width: 768px) {
  .header { padding: 0 20px; }
  .hamburger { display: flex; }
  .logo-link { position: absolute; left: 50%; transform: translateX(-50%); }
}

.action-btn {
  font-size: 1.2rem;
  color: var(--clr-text);
  transition: color var(--transition);
  position: relative;
}

.action-btn:hover { color: var(--clr-muted); }

.cart-badge {
  position: absolute;
  top: -6px; right: -8px;
  background: var(--clr-text);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ─── SIDEBAR ───────────────────────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.overlay.active { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100%;
  background: #faf8f5;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 24px 0;
  transform: translateX(-100%);
  transition: transform var(--transition);
}

.sidebar.open { transform: translateX(0); }

.sidebar-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 20px 16px;
  transition: color var(--transition);
}

.sidebar-close:hover { color: #1a1a1a; }

.sidebar-nav { list-style: none; }

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 28px;
  font-family: 'Optima', sans-serif; font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
}

.sidebar-nav li a:hover,
.sidebar-nav li a.active {
  color: #1a1a1a;
  background: rgba(0,0,0,0.06);
}

.sidebar-nav li a i { width: 18px; text-align: center; }
.sidebar-nav--secondary li a { font-size: 0.76rem; padding: 10px 28px; }

.sidebar-section-label {
  font-family: 'Optima', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ccc;
  padding: 20px 28px 6px;
}

.sidebar-social { padding-bottom: 8px; }
.sidebar-social-links { display: flex; gap: 4px; padding: 6px 24px; }

.sidebar-social-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #aaa;
  border-radius: 50%;
  transition: color var(--transition), background var(--transition);
}

.sidebar-social-links a:hover { color: #1a1a1a; background: rgba(0,0,0,0.05); }

.sidebar-footer {
  margin-top: auto;
  padding: 20px 28px;
  border-top: 1px solid rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sidebar-footer a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Optima', sans-serif; font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #888;
  transition: color var(--transition);
}

.sidebar-footer a:hover { color: var(--clr-text); }

/* ─── BREADCRUMB ─────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 96px;
  margin-top: calc(var(--topbar-h) + var(--header-h) + 32px);
  margin-bottom: 40px;
  font-family: 'Optima', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-muted);
}

.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--clr-text); }
.breadcrumb span:last-child { color: var(--clr-text); }

/* ─── INFO PAGE ──────────────────────────────────────────────────────── */
.info-main {
  padding-bottom: 120px;
}

.info-hero {
  padding: 0 96px;
  max-width: 900px;
  margin-bottom: 56px;
}

.info-hero-label {
  font-family: 'Optima', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 14px;
}

.info-hero-title {
  font-family: 'Jedira', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--clr-text);
}

.info-body {
  padding: 0 96px;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-body p {
  font-family: 'Optima', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--clr-muted);
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.footer {
  background: #141414;
  color: rgba(255,255,255,0.55);
  font-family: 'Optima', sans-serif; font-weight: 700;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  padding: 80px 96px 64px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-left: -20px;
}

.footer-tagline {
  font-size: 0.88rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,0.45);
}

.footer-social { display: flex; gap: 14px; }

.footer-social a {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.45);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  transition: color var(--transition), border-color var(--transition);
}

.footer-social a:hover { color: #fff; border-color: rgba(255,255,255,0.4); }

.footer-col-title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.footer-col ul li a {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.82rem;
  font-weight: 300;
  white-space: nowrap;
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: #fff; }
.footer-col ul li a i { font-size: 0.8rem; width: 14px; text-align: center; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 96px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
}

.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: rgba(255,255,255,0.25); transition: color var(--transition); }
.footer-legal a:hover { color: rgba(255,255,255,0.6); }

.footer-dev { color: rgba(255,255,255,0.25); padding-left: 8px; border-left: 1px solid rgba(255,255,255,0.1); }
.footer-dev a { color: rgba(255,255,255,0.45); text-decoration: underline; text-underline-offset: 3px; }
.footer-dev a:hover { color: #fff; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .breadcrumb { padding: 0 28px; margin-top: calc(var(--topbar-h) + var(--header-h) + 20px); margin-bottom: 24px; }
  .info-hero { padding: 0 28px; margin-bottom: 40px; }
  .info-body { padding: 0 28px; }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 56px 28px 48px;
  }

  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 20px 28px;
  }
}

/* ─── NAV GREETING (auth) ───────────────────────────────────── */
.nav-greeting {
  font-family: 'Optima', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
