/* =========================
   Sne's Cozy Bakes - Shared Styles
   ========================= */

:root{
  --primary:#D4A574;
  --primary2:#C4956A;
  --text:#5D4037;
  --muted:#8D6E63;
  --border:#E8D4C4;
  --bg1:#FFF8F0;
  --bg2:#FFE4D6;
  --bg3:#FFF0E8;
}

*{ box-sizing:border-box; }
html, body { height:100%; }
body{ font-family:"Nunito", sans-serif; }

.font-display{ font-family:"Playfair Display", serif; }

/* Page background */
.app-bg{
  background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
}

/* Header */
.site-header{
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-link{
  color: var(--text);
  font-size: 14px;
  transition: all .25s ease;
  cursor: pointer;
}

.nav-link:hover{ opacity:.85; }
.nav-link.active{
  border-bottom: 3px solid var(--primary);
  font-weight: 600;
}

/* Mobile menu */
.burger-btn{
  display:none;
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  background: white;
}

@media (max-width: 768px){
  .desktop-nav{ display:none !important; }
  .burger-btn{ display:inline-flex; align-items:center; gap:8px; }
  .mobile-panel{
    display:none;
    background: white;
    border-top: 1px solid var(--border);
  }
  .mobile-panel.open{ display:block; }
}

/* Gallery */
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (min-width:768px){
  .gallery-grid{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}
.gallery-item{
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,0.9);
  border: 1px solid rgba(232,212,196,.7);
  cursor:pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.gallery-item:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}
.gallery-item img{
  width:100%;
  height:180px;
  object-fit:cover;
  display:block;
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.75);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 9999;
  padding: 18px;
}
.lightbox.open{ display:flex; }
.lightbox-card{
  max-width: 980px;
  width: 100%;
  border-radius: 18px;
  overflow:hidden;
  background: white;
}
.lightbox-card img{
  width:100%;
  max-height: 80vh;
  object-fit: contain;
  background: #111;
}
.lightbox-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding: 10px 12px;
}
.lightbox-btn{
  border:1px solid var(--border);
  background:white;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--text);
}
.lightbox-btn:hover{ opacity:.9; }

/* WhatsApp floating button */
.wa-float{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary2) 100%);
  color: white;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}
.wa-float:hover{ opacity:.95; transform: translateY(-1px); }

/* Toast */
.toast{
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 9998;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--text);
  color: white;
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all .25s ease;
}
.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.site-header img {
  height: 60px;
  width: auto;
}

@media (max-width: 768px) {
  .site-header img {
    height: 48px;
  }
}