/* =============================================
   SHOP DROPDOWN — Figma node 36:1108
   Floating popover anchored below the header pill,
   triggered by "COSMÉTICOS" menu or "COMPRE AGORA"
   hero CTA. Dark overlay over the whole page +
   cream rounded panel with sidebar + product grid.
   ============================================= */

.shop-dropdown {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 108px;          /* Header pill (~70 + paddings) so it sits below */
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
}

.shop-dropdown.is-open { opacity: 1; pointer-events: auto; }

/* Backdrop — Figma: bg rgba(79,52,27,0.68), border rgba(110,84,70,0.75) */
.shop-dropdown__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(79, 52, 27, 0.68);
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* Floating panel — cream rounded card */
.shop-dropdown__panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100vw - 48px));
  background: var(--color-bg, #f3ece3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(79, 52, 27, 0.28);
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 32px 32px 32px 36px;
  transform: translateY(-12px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}

.shop-dropdown.is-open .shop-dropdown__panel {
  transform: translateY(0);
  opacity: 1;
}

/* ── LEFT: Comprar title + categories ─────────── */
.shop-dropdown__sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.shop-dropdown__title {
  font-family: var(--font-display, 'Cormorant Garamond', serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--color-brown, #6e5446);
  margin: 0;
  line-height: 1;
}

.shop-dropdown__categories {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-dropdown__cat-link {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-brown, #6e5446);
  text-decoration: none;
  line-height: 1;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
  transition: color .15s ease, border-color .15s ease;
}

.shop-dropdown__cat-link.is-active {
  border-bottom-color: var(--color-brown, #6e5446);
}

.shop-dropdown__cat-link:hover {
  color: var(--color-dark, #4f341b);
}

/* ── RIGHT: product grid ──────────────────────── */
.shop-dropdown__products {
  min-width: 0;
}

.shop-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.shop-dropdown__grid[hidden] {
  display: none !important;
}

.shop-dropdown__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-brown, #6e5446);
  opacity: .65;
  padding: 32px 0;
  margin: 0;
}

/* Slightly smaller product cards inside the dropdown vs homepage */
.shop-dropdown__grid .product-card {
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(79, 52, 27, 0.08);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .shop-dropdown {
    padding-top: 96px;
    align-items: stretch;
  }
  .shop-dropdown__panel {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
  .shop-dropdown__title { font-size: 28px; }
  .shop-dropdown__categories {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
}

@media (max-width: 480px) {
  .shop-dropdown__grid { grid-template-columns: 1fr; }
}
