/* ============================================================
   LR Doces Gourmet - Estilos Globais
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Nunito:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #00a5c2;
  --primary-dark: #0089a3;
  --primary-light: #33bcd1;
  --primary-ultra-light: #e0f7fa;
  --secondary: #f6f6f6;
  --dark: #1a1a2e;
  --text: #333344;
  --text-muted: #777788;
  --white: #ffffff;
  --border: #e0e0e8;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
  --shadow-sm: 0 2px 8px rgba(0,165,194,0.10);
  --shadow-md: 0 4px 20px rgba(0,165,194,0.15);
  --shadow-lg: 0 8px 40px rgba(0,165,194,0.20);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--secondary);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* ---- NAVBAR ---- */
.lr-navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.5rem 0;
}

.lr-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--primary) !important;
  font-weight: 600;
}

.lr-navbar .navbar-brand img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.lr-navbar .nav-link {
  color: var(--text) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.5rem 1.2rem !important;
  border-radius: 50px;
  transition: var(--transition);
  position: relative;
}

.lr-navbar .nav-link:hover,
.lr-navbar .nav-link.active {
  color: var(--primary) !important;
  background: var(--primary-ultra-light);
}

/* ---- STATUS LOJA ---- */
.loja-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.loja-status-badge.aberta {
  background: #d4edda;
  color: #155724;
}

.loja-status-badge.fechada {
  background: #f8d7da;
  color: #721c24;
}

.loja-status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
}

.loja-status-badge.aberta .dot { background: #28a745; }
.loja-status-badge.fechada .dot { background: #dc3545; animation: none; }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ---- HERO ---- */
.lr-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 60%, #005f73 100%);
  color: var(--white);
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.lr-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  pointer-events: none;
}

.lr-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}

.lr-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.lr-hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 500px;
}

/* ---- CARDS PRODUTO ---- */
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: none;
  height: 100%;
}

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

.product-card .card-img-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: var(--primary-ultra-light);
}

.product-card .card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.08);
}

.product-card .card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-ultra-light), #fff);
}

.product-card .card-body {
  padding: 1.2rem;
}

.product-card .card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}

.product-card .card-text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.product-card .price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
}

.badge-destaque {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ---- SECTION TITLES ---- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.8rem;
}

/* ---- BTN PRIMARY ---- */
.btn-lr {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 0.6rem 1.8rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-lr:hover {
  background: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-lr-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 0.55rem 1.8rem;
  font-weight: 700;
  font-family: 'Nunito', sans-serif;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-lr-outline:hover {
  background: var(--primary);
  color: white;
}

/* ---- FOOTER ---- */
.lr-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 50px 0 20px;
}

.lr-footer h5 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-light);
  margin-bottom: 1.2rem;
}

.lr-footer a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.92rem;
}

.lr-footer a:hover { color: var(--primary-light); }

.lr-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  margin-top: 30px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---- MODAL CLIENTE ---- */
.modal-lr .modal-content {
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-lr .modal-header {
  background: var(--primary);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
  border: none;
}

.modal-lr .form-control,
.modal-lr .form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border);
  font-family: 'Nunito', sans-serif;
  padding: 0.55rem 1rem;
}

.modal-lr .form-control:focus,
.modal-lr .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,165,194,0.15);
}

/* ---- CATEGORIAS FILTER ---- */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.category-filter .filter-btn {
  background: var(--white);
  border: 2px solid var(--border);
  color: var(--text);
  border-radius: 50px;
  padding: 0.45rem 1.3rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Nunito', sans-serif;
}

.category-filter .filter-btn:hover,
.category-filter .filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* ---- HORÁRIOS ---- */
.horario-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-sm);
  background: var(--white);
  margin-bottom: 0.5rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
}

.horario-item.hoje {
  border-left: 4px solid var(--primary);
  background: var(--primary-ultra-light);
  font-weight: 700;
}

.horario-item .dia { font-weight: 600; color: var(--dark); }
.horario-item .hora { color: var(--primary); font-weight: 700; }
.horario-item .fechado { color: var(--text-muted); font-style: italic; }

/* ---- TOAST ---- */
.lr-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  min-width: 280px;
}

/* ---- LOADING ---- */
.lr-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-muted);
  flex-direction: column;
  gap: 16px;
}

.lr-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--primary-ultra-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---- UTILITIES ---- */
.text-primary-lr { color: var(--primary) !important; }
.bg-primary-lr { background: var(--primary) !important; }
.rounded-lr { border-radius: var(--radius) !important; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .lr-hero h1 { font-size: 2rem; }
  .section-title { font-size: 1.6rem; }
  .product-card .card-img-wrapper { height: 160px; }
}
