/* =========================================================
   Casa de Rezo — Design System
   Paleta: Verde Esmeralda #059669, Verde Musgo #3B533E
   Fundo branco, tipografia clara, visual moderno
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variáveis de Design ─────────────────────────────────── */
:root {
  --primary:        #1a6b3a;   /* Verde Esmeralda principal */
  --primary-dark:   #124b29;   /* Verde Esmeralda escuro hover */
  --primary-light:  #f0f7f3;   /* Verde Esmeralda claríssimo bg */
  --accent:         #5a7a3a;   /* Verde Musgo */
  --accent-dark:    #435b2b;   /* Verde Musgo escuro */
  --accent-light:   #f2f5f1;   /* Verde Musgo claríssimo bg */
  --success:        #27AE60;
  --warning:        #F39C12;
  --danger:         #E74C3C;

  --bg:             #FFFFFF;
  --bg-gray:        #F5F5F5;
  --bg-light:       #FAFAFA;
  --border:         #E0E0E0;
  --border-light:   #F0F0F0;

  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --text-muted:     #999999;
  --text-white:     #FFFFFF;

  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
  --shadow:     0 4px 16px rgba(0,0,0,.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.12);
  --shadow-green: 0 4px 20px rgba(26,107,58,.18);
}

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

html, body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-gray);
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}

body { min-height: 100vh; overflow-x: hidden; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Utilities ───────────────────────────────────────────── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

.container { max-width: 1280px; margin: 0 auto; }

/* ── Loading Screen ──────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #2D3F2F 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.logo-container {
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

.logo-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle, rgba(5,150,105,.6) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(20px);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    opacity: 0.6; }
  50%       { transform: scale(1.05); opacity: 0.9; }
}

.logo-image {
  position: relative;
  z-index: 2;
  width: 180px;
  height: auto;
  animation: logoFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,.3));
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,.2);
  border-top: 3px solid #ECFDF5;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* ── Animações Utilitárias ───────────────────────────────── */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Header — Topbar (Studio Orion style) ───────────────── */
.section-topbar {
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  padding: 7px 0;
}

.social-icon {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin-right: 10px;
  transition: color .2s;
}
.social-icon:hover { color: #fff; }

/* ── Header — Main Bar ───────────────────────────────────── */
.head-main {
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.text-primary { color: var(--primary) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.bg-primary { background-color: var(--primary) !important; }
.hover\:bg-primary-dark:hover { background-color: var(--primary-dark) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.hover\:bg-primary-light:hover { background-color: var(--primary-light) !important; }
.bg-accent { background-color: var(--accent) !important; }
.bg-accent-dark { background-color: var(--accent-dark) !important; }
.hover\:bg-accent-dark:hover { background-color: var(--accent-dark) !important; }
.border-primary { border-color: var(--primary) !important; }
.text-primary-light { color: var(--primary-light) !important; }
.hover\:text-primary-light:hover { color: var(--primary-light) !important; }

/* ── Search Bar ─────────────────────────────────────────── */
.search-container {
  display: flex;
  align-items: center;
  border: 2px solid var(--primary);
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .2s;
}
.search-container:focus-within {
  box-shadow: 0 0 0 3px rgba(5,150,105,.15);
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
}

.search-input-submit {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-input-submit:hover { background: var(--primary-dark); }

/* ── Desktop Nav Bar (Studio Orion style) ───────────────── */
.nav-desktop {
  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.15);
}

.nav-desktop-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0;
  padding: 0;
  margin: 0;
}

.nav-item-desktop {
  position: relative;
}

.nav-list-link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .2s;
  cursor: pointer;
  text-decoration: none;
}
.nav-list-link:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}

.nav-list-arrow {
  font-size: 10px;
  margin-left: 4px;
  opacity: .8;
  transition: transform .2s;
}

/* Dropdown */
.desktop-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 200;
  list-style: none;
  min-width: 220px;
  padding: 8px 0;
  animation: fadeIn .15s ease;
}

.nav-item-desktop:hover .desktop-dropdown {
  display: block;
}

.nav-item-desktop:hover .nav-list-arrow {
  transform: rotate(180deg);
}

.desktop-dropdown a {
  display: block;
  padding: 8px 16px;
  font-size: 13px;
  color: var(--text-primary);
  transition: background .15s, color .15s;
}
.desktop-dropdown a:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-main {
  background: var(--accent);
  color: #fff;
  padding: 60px 0 0;
}

.footer-main .h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.15);
}

.footer-main p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu-item { margin-bottom: 8px; }

.footer-menu-link {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color .2s, padding-left .2s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-menu-link:hover {
  color: #fff;
  padding-left: 4px;
}

.contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
}
.contact-item-icon {
  color: var(--primary-light);
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-link {
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.contact-link:hover { color: #fff; }

/* ── Product Cards ───────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Section Titles ──────────────────────────────────────── */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a1a1a;
  position: relative;
  padding-left: 12px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.section-link {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap .2s;
}
.section-link:hover { gap: 8px; }

/* ── Banners & Carousels ─────────────────────────────────── */
.banner-section { margin-bottom: 24px; }

.swiper-pagination-bullet-active { background: var(--primary) !important; }
.swiper-button-next, .swiper-button-prev {
  color: var(--primary) !important;
}

/* ── Category Pills ──────────────────────────────────────── */
.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.category-pill:hover,
.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── WhatsApp Button ─────────────────────────────────────── */
.whatsapp-btn-fixed {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
}
.whatsapp-btn-fixed:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
}
.whatsapp-btn-fixed i { color: #fff; font-size: 28px; }

/* ── Alerts & Badges ─────────────────────────────────────── */
.badge-new {
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: .4px;
}
.badge-sale {
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
.badge-featured {
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

/* ── Transition Utility ──────────────────────────────────── */
.transition-soft { transition: all .3s ease; }

/* ── Cart Sidebar ────────────────────────────────────────── */
.cart-sidebar {
  position: fixed;
  top: 0; right: -420px;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 500;
  box-shadow: -4px 0 32px rgba(0,0,0,.15);
  transition: right .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { right: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 499;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.cart-overlay.show { opacity: 1; pointer-events: auto; }

/* ── Forms ───────────────────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5,150,105,.12);
}

/* ── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.pagination a,
.pagination span {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: #fff;
  transition: all .2s;
}
.pagination a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}
.pagination span.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Responsive Helpers ──────────────────────────────────── */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ── Product Rating Stars ────────────────────────────────── */
.star-filled { color: #f5a623; }
.star-empty  { color: #ddd; }

/* ── Page Hero ───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  padding: 40px 0;
  margin-bottom: 32px;
}
.page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
}
.page-hero p {
  font-size: 14px;
  opacity: .8;
}

/* ── Table ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  background: var(--bg-gray);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid var(--border);
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}
.data-table tr:hover td { background: var(--bg-light); }

/* ── Notification Toast ──────────────────────────────────── */
.toast-container {
  position: fixed;
  top: 80px;
  right: 16px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  max-width: 360px;
  animation: slideUp .3s ease;
  border-left: 4px solid var(--primary);
}
.toast.error  { border-left-color: var(--danger); }
.toast.warning{ border-left-color: var(--warning); }
.toast.success{ border-left-color: var(--success); }
