/**
 * Marca laperfumeriacostarica: negro y oro, a partir del logo.
 */
:root {
  --color-bg: #f7f1e6;
  --color-surface: #fffdf8;
  --color-text: #141414;
  --color-text-muted: #6d6456;
  --color-accent: #141414;
  --color-accent-hover: #2a2a2a;
  --color-border: #e4d7bc;
  --color-gold: #b8956c;
  --color-btn: #141414;
  --color-btn-hover: #2a2a2a;
  --color-price: #6e5428;
  --header-top-bg: #141414;
  --header-top-text: #f3e6c4;
  --header-top-link: #f3e6c4;
  --font-sans: "Outfit", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
}

body.alt-layout {
  font-family: var(--font-sans);
}

body.alt-layout h1,
body.alt-layout h2,
body.alt-layout .page-title,
body.alt-layout .product-card-title,
body.alt-layout .product-single-title {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: 0.01em;
}

body.alt-layout .fg-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 0;
  color: #141414;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}

body.alt-layout .fg-count-note {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c7340;
}

body.alt-layout .fg-count-total {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #6d6456;
}

body.alt-layout.page-categoria .toolbar,
body.alt-layout.page-shop .toolbar {
  border-bottom: 0;
  margin-bottom: 0.35rem;
  padding-top: 0;
}

body.alt-layout {
  --alt-dark: #141414;
  --alt-border: #e4d7bc;
  --alt-muted: #6d6456;
  --alt-wholesale-red: #8c3a2f;
  --alt-wholesale-red-deep: #6d2c24;
  --alt-wholesale-red-border: rgba(140, 58, 47, 0.4);
  --alt-stores-blue: #141414;
  --alt-stores-blue-deep: #0c0c0c;
  background: #f7f1e6;
  color: #141414;
}

body.alt-layout .alt-header-top {
  background: #141414;
  color: #f3e6c4;
}

body.alt-layout .alt-site-header,
body.alt-layout .alt-header-main {
  background: #0c0c0c;
  border-bottom-color: #0c0c0c;
}

body.alt-layout .fg-social {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-right: 0.15rem;
}

body.alt-layout .fg-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: 1px solid rgba(212, 188, 122, 0.55);
  border-radius: 999px;
  color: #f3e6c4;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

body.alt-layout .fg-social-link:hover {
  background: #d4bc7a;
  border-color: #d4bc7a;
  color: #141414;
  text-decoration: none;
  transform: translateY(-1px);
}

body.alt-layout .fg-social-link svg {
  display: block;
}

body.alt-layout .fg-social--drawer {
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0;
}

body.alt-layout .fg-social--drawer .fg-social-link {
  width: auto;
  height: auto;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  color: #141414;
  border-color: rgba(184, 149, 108, 0.45);
  background: #fffdf8;
  font-size: 0.92rem;
  font-weight: 500;
}

body.alt-layout .fg-social--drawer .fg-social-link:hover {
  background: #141414;
  border-color: #141414;
  color: #f3e6c4;
  transform: none;
}

body.alt-layout .fg-social-drawer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(184, 149, 108, 0.35);
}

body.alt-layout .fg-social-drawer-label {
  margin: 0 0 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8c7340;
}

body.alt-layout .fg-cart {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.35rem 0.45rem 0.35rem 0.7rem;
  border: 1px solid #d4bc7a;
  border-radius: 999px;
  background: transparent;
  color: #f3e6c4;
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
}

body.alt-layout .fg-cart:hover {
  background: #d4bc7a;
  color: #141414;
  text-decoration: none;
}

body.alt-layout .fg-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #d4bc7a;
  color: #141414;
  font-size: 0.75rem;
  font-weight: 700;
}

body.alt-layout .fg-cart:hover .fg-cart-count {
  background: #141414;
  color: #f3e6c4;
}

body.alt-layout .alt-mini-cart-drawer {
  background: #141414;
  color: #f7f1e6;
}

body.alt-layout .alt-mini-cart-header,
body.alt-layout .alt-mini-cart-footer,
body.alt-layout .alt-mini-cart-item {
  border-color: rgba(212, 188, 122, 0.35);
}

body.alt-layout .alt-mini-cart-header h3,
body.alt-layout .alt-mini-cart-item-name,
body.alt-layout .alt-mini-cart-subtotal,
body.alt-layout .alt-mini-cart-subtotal strong {
  color: #f7f1e6;
}

body.alt-layout .alt-mini-cart-close,
body.alt-layout .alt-mini-cart-item-info small,
body.alt-layout .alt-mini-cart-empty {
  color: #d4bc7a;
}

body.alt-layout .alt-mini-cart-btn-light {
  background: transparent;
  color: #f3e6c4;
  border-color: #d4bc7a;
}

body.alt-layout .alt-mini-cart-btn-primary {
  background: #d4bc7a;
  color: #141414;
  border-color: #d4bc7a;
}

body.alt-layout .fg-mini-wa {
  margin-bottom: 0;
}

body.alt-layout .alt-logo-img {
  height: auto;
  width: 180px;
  max-width: 200px;
}

body.alt-layout .alt-nav-drawer-logo .alt-logo-img {
  width: auto;
  max-width: 180px;
  height: 68px;
}

@media (max-width: 768px) {
  body.alt-layout .alt-logo-img {
    width: 132px;
    max-width: 150px;
    height: auto;
  }

  body.alt-layout .alt-nav-drawer-logo .alt-logo-img {
    width: auto;
    max-width: 150px;
    height: 58px;
  }
}

body.alt-layout .alt-header-search {
  max-width: none;
  width: 100%;
  min-height: 58px;
  border-radius: 999px;
  border-color: #d4bc7a;
  background: #fffdf8;
}

body.alt-layout .alt-header-search-input {
  font-size: 1.08rem;
  padding: 1rem 1.2rem;
  min-height: 56px;
}

body.alt-layout .alt-header-search-btn {
  padding: 0 1.25rem;
  background: #141414;
  color: #f3e6c4;
}

@media (min-width: 769px) {
  body.alt-layout .alt-header-search {
    max-width: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  body.alt-layout .alt-header-main-inner {
    grid-template-columns: 42px minmax(0, 1fr) 46px;
    grid-template-areas:
      "menu logo cart"
      "search search search";
  }

  /* Anula display:contents del layout base: el bloque completo va al slot del carrito */
  body.alt-layout .alt-header-end {
    display: flex;
    grid-area: cart;
    justify-self: end;
    align-items: center;
    justify-content: flex-end;
    gap: 0;
    width: 46px;
    min-width: 46px;
  }

  /* Redes solo en el drawer mobile; el header queda limpio con el carrito */
  body.alt-layout .alt-header-end > .fg-social,
  body.alt-layout .alt-header-end > .alt-header-wholesale-session {
    display: none;
  }

  body.alt-layout .fg-cart {
    position: relative;
    grid-area: unset;
    justify-self: end;
    width: 42px;
    min-width: 42px;
    min-height: 42px;
    height: 42px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 999px;
  }

  body.alt-layout .fg-cart-label {
    display: none;
  }

  body.alt-layout .fg-cart-count {
    position: absolute;
    top: -0.2rem;
    right: -0.2rem;
    min-width: 1.15rem;
    height: 1.15rem;
    padding: 0 0.2rem;
    font-size: 0.65rem;
  }
}

body.alt-layout .alt-header-search-btn:hover {
  background: #2a2a2a;
}

body.alt-layout .alt-header-search:focus-within {
  border-color: #d4bc7a;
  box-shadow: 0 0 0 3px rgba(212, 188, 122, 0.28);
}

body.alt-layout .alt-header-search-input::placeholder {
  color: #a89878;
}

body.alt-layout .search-autocomplete-panel {
  background: #fffdf8;
  border: 1px solid #d4bc7a;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.18);
}

body.alt-layout .search-autocomplete-item {
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  border-bottom-color: rgba(212, 188, 122, 0.35);
}

body.alt-layout .search-autocomplete-item:hover,
body.alt-layout .search-autocomplete-item:focus-visible {
  background: #f7f1e6;
}

body.alt-layout .search-autocomplete-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #f7f1e6;
  border: 1px solid rgba(212, 188, 122, 0.45);
}

body.alt-layout .search-autocomplete-name {
  color: #141414;
  font-weight: 600;
  letter-spacing: 0.01em;
}

body.alt-layout .search-autocomplete-price-current {
  color: #8c7340;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.alt-layout .search-autocomplete-empty {
  color: #6d6456;
}

body.alt-layout .search-autocomplete-footer {
  background: #141414;
  color: #d4bc7a;
  border-top: 1px solid #d4bc7a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

body.alt-layout .search-autocomplete-footer:hover {
  background: #d4bc7a;
  color: #141414;
}

body.alt-layout .price-old,
body.alt-layout .search-autocomplete-price-old {
  display: none;
}

body.alt-layout .product-card-nav {
  display: none;
}

body.alt-layout .fg-card-ver {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 4;
  width: 72px;
  height: 72px;
  overflow: hidden;
  pointer-events: none;
}

body.alt-layout .fg-card-ver::before,
body.alt-layout .fg-card-ver::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
}

body.alt-layout .fg-card-ver::before {
  border-width: 0 72px 72px 0;
  border-color: transparent #d4bc7a transparent transparent;
}

body.alt-layout .fg-card-ver::after {
  border-width: 0 68px 68px 0;
  border-color: transparent #141414 transparent transparent;
}

body.alt-layout .fg-card-ver span {
  position: absolute;
  top: 16px;
  right: -2px;
  z-index: 1;
  transform: rotate(45deg);
  color: #f6efe4;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  body.alt-layout .fg-card-ver {
    width: 58px;
    height: 58px;
  }

  body.alt-layout .fg-card-ver::before {
    border-width: 0 58px 58px 0;
  }

  body.alt-layout .fg-card-ver::after {
    border-width: 0 54px 54px 0;
  }

  body.alt-layout .fg-card-ver span {
    top: 13px;
    right: -4px;
    font-size: 0.54rem;
  }
}

body.alt-layout .product-card-cart-icon {
  width: auto;
  height: auto;
  min-height: 36px;
  padding: 0.4rem 0.95rem;
  gap: 0.4rem;
  border: 1px solid #d4bc7a;
  border-radius: 999px;
  background: #141414;
  color: #f3e6c4;
  box-shadow: none;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

body.alt-layout .product-card-cart-icon:hover {
  background: #d4bc7a;
  color: #141414;
}

body.alt-layout.page-categoria .shop-layout {
  grid-template-columns: 1fr;
}

.fg-footer {
  background: #0c0c0c;
  color: #f3e6c4;
  margin-top: 3rem;
  padding: 2.25rem 1.25rem 1.75rem;
  text-align: center;
}

.fg-footer-inner {
  width: min(640px, 100%);
  margin: 0 auto;
}

.fg-footer-logo {
  display: inline-flex;
  line-height: 0;
}

.fg-footer-logo img {
  width: 116px;
  height: auto;
  display: block;
}

.fg-footer-name {
  margin: 0.85rem 0 0;
  font-family: Cinzel, "Times New Roman", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #f7f1e6;
  overflow-wrap: anywhere;
}

.fg-footer-place {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #d4bc7a;
}

.fg-footer-copy {
  margin: 1.15rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 188, 122, 0.35);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(243, 230, 196, 0.72);
}
