/* Componentes Compartilhados — Aquele Xêro Ateliê */

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(249, 247, 242, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav__inner {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav__logo-img {
  height: 120px;
  width: auto;
  display: block;
  mix-blend-mode: multiply;
}

@media (max-width: 480px) {
  .nav__logo-img {
    height: 50px;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.nav__links a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-olive);
  transition: var(--transition-fast);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-terracota);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav__cart {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-olive);
  font-size: 20px;
}

.nav__cart-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  background: var(--color-terracota);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  display: none;
}

.nav__cart-badge.visible {
  display: flex;
}

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

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-olive);
  border-radius: 2px;
  transition: var(--transition);
}

.nav--open .nav__hamburger span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
}

.nav--open .nav__drawer {
  max-height: 500px;
}

.nav__drawer a {
  padding: var(--space-sm) 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-olive);
  border-bottom: 1px solid var(--color-border);
}

.nav__drawer a:last-child { border-bottom: none; }
.nav__drawer a.active { color: var(--color-terracota); }

@media (min-width: 768px) {
  .nav__links { display: flex; }
  .nav__hamburger { display: none; }
  .nav__drawer { display: none !important; }
  .nav__inner { padding: 0 var(--space-lg); }
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-terracota);
  color: rgba(255,255,255,0.9);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand h2 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.footer__brand .affective {
  color: var(--color-mustard);
  font-size: 1.2rem;
}

.footer__brand p {
  font-size: 13px;
  margin-top: var(--space-sm);
  opacity: 0.8;
  line-height: 1.7;
}

.footer__notice {
  margin-top: var(--space-md);
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  font-size: 12px;
  opacity: 0.85;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-md);
}

.footer__col a {
  display: block;
  font-size: 14px;
  margin-bottom: var(--space-sm);
  opacity: 0.85;
  transition: var(--transition-fast);
}

.footer__col a:hover { opacity: 1; text-decoration: underline; }

.footer__insta-icon-link {
  display: inline-block;
  margin-top: var(--space-sm);
  color: rgba(255,255,255,0.6);
  transition: var(--transition-fast);
}

.footer__insta-icon-link:hover { color: #fff; opacity: 1; }

.footer__spotify {
  margin-top: var(--space-md);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.footer__spotify iframe {
  display: block;
  border-radius: var(--radius-md);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 12px;
  opacity: 0.6;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-terracota);
  color: #fff;
  border-color: var(--color-terracota);
}

.btn-primary:hover {
  background: var(--color-terracota-dark);
  border-color: var(--color-terracota-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(182, 93, 59, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-olive);
  border-color: var(--color-olive);
}

.btn-secondary:hover {
  background: var(--color-olive);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--color-olive);
  border-color: transparent;
  padding: 12px 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-ghost:hover { color: var(--color-terracota); }

.btn-white {
  background: #fff;
  color: var(--color-terracota);
  border-color: #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

.btn-lg {
  padding: 16px 40px;
  font-size: 14px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ==================== PRODUCT CARD ==================== */
.card-produto {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card-produto:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-produto__img {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ede9e0;
}

.card-produto__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-produto:hover .card-produto__img img {
  transform: scale(1.04);
}

.card-produto__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-rose);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.card-produto__out-of-stock {
  position: absolute;
  inset: 0;
  background: rgba(249,247,242,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.card-produto__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-produto__collection {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-mustard);
  margin-bottom: var(--space-xs);
}

.card-produto__name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-olive);
  margin-bottom: var(--space-sm);
  flex: 1;
}

.card-produto__price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-terracota);
  margin-bottom: var(--space-sm);
}

.card-produto__actions { display: flex; gap: var(--space-sm); }

.card-produto__btn-cart {
  flex: 1;
  background: var(--color-terracota);
  color: #fff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-fast);
}

.card-produto__btn-cart:hover:not(:disabled) { background: var(--color-terracota-dark); }
.card-produto__btn-cart:disabled { background: #ccc; cursor: not-allowed; }

.card-produto__btn-detail {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--color-olive);
  background: transparent;
  color: var(--color-olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.card-produto__btn-detail:hover { background: var(--color-olive); color: #fff; }

/* ==================== BREADCRUMB ==================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  color: var(--color-text-muted);
  padding: var(--space-md) 0;
}

.breadcrumb a:hover { color: var(--color-olive); }
.breadcrumb__sep { opacity: 0.4; }

/* ==================== COLLECTION CARDS ==================== */
.collection-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  text-align: center;
  padding: var(--space-lg) var(--space-md);
}

.collection-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.collection-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.collection-card__name {
  font-family: var(--font-title);
  font-size: 1.2rem;
  color: var(--color-olive);
  margin-bottom: var(--space-xs);
}

.collection-card__tagline {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ==================== DIVIDER ==================== */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.divider__text {
  font-family: var(--font-affective);
  color: var(--color-rose);
  font-size: 1.2rem;
  white-space: nowrap;
}
