/*
Theme Name: Storely Child Rei do ABC (Gourmet Cream & Black Mode)
Theme URI: https://reidoabc.com.br
Description: Tema filho oficial para o Rei do ABC com fundo preto (#07070a), paleta Creme Gourmet / Dourado Champagne (#d8b456), coroa alinhada à faixa 'Somos todos Reis do ABC', favicons de imagem gourmet (motoboy e telefone), login nativo WooCommerce, auto-preenchimento de CEP via ViaCEP, QR Code PIX do estabelecimento e checkout Mercado Pago.
Author: Rei do ABC Team
Author URI: https://reidoabc.com.br
Template: storely
Version: 12.0.0
Requires PHP: 8.2
Text Domain: storely-child
*/

:root {
  --primary-color: #d8b456; /* Creme Dourado Gourmet */
  --primary-dark: #231d13; /* Escuro Gourmet */
  --primary-light: #f3e3b3; /* Creme Claro */
  --cream-accent: #fdf8eb; /* Creme Luxo */
  --accent-gold: #e6c875;
  --accent-gold-light: #faf3de;
  --bg-color: #07070a; /* Fundo Preto */
  --surface-color: #121118; /* Surface dos cards */
  --surface-border: #2c251a;
  --text-dark: #ffffff;
  --text-muted: #b8b0a0;
  --border-radius: 12px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body, html {
  background-color: var(--bg-color) !important;
  color: var(--text-dark) !important;
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin: 0;
  padding: 0;
}

/* Icone da Coroa na proporcao exata das letras */
.brand-crown-icon-sm {
  width: 1.1em;
  height: 1.1em;
  max-width: 18px;
  max-height: 18px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.brand-crown-icon {
  width: 1em;
  height: 1em;
  max-width: 16px;
  max-height: 16px;
  object-fit: contain;
  display: inline-block;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

.footer-top-strip span.strip-title .footer-crown-logo {
  width: calc((1em + 5px) * 1030 / 570);
  height: calc(1em + 5px);
  max-width: calc((1em + 5px) * 1030 / 570);
  max-height: calc(1em + 5px);
  object-fit: contain;
  vertical-align: middle;
  display: block;
  margin-right: 8px;
  flex-shrink: 0;
}

/* Top Header Bar & Brand */
.top-header-bar {
  background-color: #030305;
  padding: 0.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(216, 180, 86, 0.4);
}

.top-crown-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  text-decoration: none;
}

.top-crown-brand img {
  width: clamp(96px, 8vw, 120px);
  height: clamp(53px, 4.43vw, 66px);
  object-fit: contain;
}

.top-user-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  position: absolute;
  right: 2rem;
}

.reidoabc-lang-switch {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
  padding: 4px 10px;
  border: 1px solid #2c251a;
  border-radius: 999px;
  background: #121118;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.reidoabc-lang-switch a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b8b0a0;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}

.reidoabc-lang-switch a.is-active,
.reidoabc-lang-switch a:hover,
.reidoabc-lang-switch a:focus-visible {
  color: #d8b456;
}

.reidoabc-lang-switch__sep {
  color: #b8b0a0;
  font-weight: 700;
}

.reidoabc-lang-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.reidoabc-lang-switch a.is-active .reidoabc-lang-flag {
  box-shadow: 0 0 0 1px #d8b456;
}

.top-user-actions a {
  color: var(--cream-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Search Navigation Bar */
.search-nav-bar {
  background: var(--surface-color);
  padding: 0.75rem 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid var(--surface-border);
}

.search-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-category-dropdown {
  background: var(--primary-color);
  color: #000000;
  padding: 0.65rem 1.2rem 0.65rem 0.85rem;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-produtos-logo {
  display: block;
  width: auto;
  height: 24px;
  max-width: 48px;
  max-height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-category-dropdown:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.search-form {
  display: flex;
  flex: 1;
  border: 1px solid var(--surface-border);
  border-radius: 6px;
  overflow: hidden;
  background: #0a0907;
}

.search-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: #ffffff;
}

.search-form select {
  padding: 0 1rem;
  border: none;
  border-left: 1px solid var(--surface-border);
  background: #15130d;
  outline: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-form button {
  background: var(--primary-color);
  color: #000000;
  border: none;
  padding: 0 1.25rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 800;
  transition: var(--transition);
}

/* Hero Carousel Gourmet Styling */
.hero-carousel-section {
  max-width: 1200px;
  margin: 1.5rem auto;
  padding: 0 1rem;
}

.carousel-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
  height: 400px;
  background: #000000;
  border: 1px solid var(--surface-border);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.carousel-container:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 45px rgba(216, 180, 86, 0.3), 0 0 30px rgba(243, 227, 179, 0.25), 0 0 0 2px var(--primary-color);
}

.carousel-slide {
  display: none;
  position: relative;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.carousel-container:hover .carousel-slide img {
  transform: scale(1.04);
}

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 7, 10, 0.95) 0%, rgba(35, 29, 19, 0.4) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 2.5rem;
  color: #ffffff;
  text-align: left;
}

.carousel-overlay h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--cream-accent);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
  line-height: 1.2;
}

.carousel-overlay p {
  font-size: 1.05rem;
  max-width: 650px;
  color: var(--accent-gold-light);
  font-weight: 600;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  line-height: 1.4;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(216, 180, 86, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  user-select: none;
}

.carousel-arrow.prev { left: 15px; }
.carousel-arrow.next { right: 15px; }

.carousel-container:hover .carousel-arrow {
  background: rgba(35, 29, 19, 0.85);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.carousel-arrow:hover {
  background: var(--primary-color) !important;
  color: #000000 !important;
  transform: translateY(-50%) scale(1.15) !important;
  box-shadow: 0 0 15px rgba(216, 180, 86, 0.8);
}

/* Callout Row Banners 3D Elevation */
.delivery-row-section {
  max-width: 1200px;
  margin: 3.5rem auto;
  padding: 0.75rem 1rem 1.5rem;
  overflow: visible;
}

.delivery-row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.callout-card {
  position: relative;
  background: linear-gradient(135deg, #1f1910 0%, #3a2e19 50%, #17120a 100%);
  background-size: 200% 200%;
  color: #ffffff;
  border-radius: 20px;
  padding: 2.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 0 1px var(--surface-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.callout-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(216, 180, 86, 0.2) 0%, rgba(58, 46, 25, 0.3) 40%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.6s ease;
  transform: scale(0.8);
  pointer-events: none;
}

.callout-card:hover {
  transform: translateY(-8px) scale(1.02);
  background-position: 100% 100%;
  box-shadow: 0 20px 45px rgba(216, 180, 86, 0.35), 0 0 30px rgba(243, 227, 179, 0.3), 0 0 0 2px var(--primary-color);
}

.callout-card:hover::before {
  opacity: 1;
  transform: scale(1.1) rotate(15deg);
}

.callout-card span.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--primary-color);
  font-weight: 800;
  margin-bottom: 0.75rem;
  transition: var(--transition);
}

.callout-card:hover span.tag {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(216, 180, 86, 0.8);
}

.callout-card h3 {
  font-size: 1.9rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
  line-height: 1.2;
}

.callout-card p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
}

.btn-callout {
  align-self: flex-start;
  background: var(--primary-color);
  color: #000000;
  padding: 0.85rem 1.8rem;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.btn-callout .arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.callout-card:hover .btn-callout {
  background: var(--primary-light);
  color: #000000;
  box-shadow: 0 6px 20px rgba(216, 180, 86, 0.6);
}

.callout-card:hover .btn-callout .arrow {
  transform: translateX(6px);
}

/* Footer Section */
.main-site-footer {
  position: relative;
  background: #08070c;
  color: #ffffff;
  padding: 3rem 1rem 1.5rem;
  margin-top: 4rem;
  border-top: 1px solid var(--surface-border);
}

.footer-top-strip {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(216, 180, 86, 0.2);
  font-weight: 700;
}

.footer-top-strip span.strip-title {
  display: inline-flex;
  align-items: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-color);
}

.footer-top-strip a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.footer-top-strip a:hover {
  color: var(--primary-color);
}

.strip-icon-img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 4px rgba(216, 180, 86, 0.4));
  transition: transform 0.3s ease;
}

.footer-top-strip a:hover .strip-icon-img {
  transform: scale(1.18);
}

/* Modais Customizados Gourmet */
.custom-modal-wrapper {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeInModal 0.3s ease;
}

.custom-modal-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  border-radius: 20px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(216, 180, 86, 0.15);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header-gourmet {
  background: #09080c;
  padding: 1.25rem 1.75rem;
  border-bottom: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header-gourmet h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body-gourmet {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

.btn-gourmet-pay {
  padding: 0.9rem 1.25rem;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.btn-gourmet-mp {
  background: linear-gradient(135deg, #009ee3 0%, #007bb5 100%);
  color: #ffffff;
}

.btn-gourmet-pix {
  background: linear-gradient(135deg, #00bdae 0%, #008f83 100%);
  color: #ffffff;
}

.btn-primary-gourmet {
  width: 100%;
  background: var(--primary-color);
  color: #000000;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.gourmet-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--surface-color);
  border: 1px solid var(--primary-color);
  color: #ffffff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.4s ease;
}

.gourmet-toast.show {
  transform: translateY(0);
  opacity: 1;
}
