/* === 포근타래 Common Styles === */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@300;400;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Noto Serif KR', serif; color: #5a4638; background: #fff; }

/* Nav */
nav { background: #fff; border-bottom: 1px solid #e8e0d6; position: sticky; top: 0; z-index: 100; }
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 64px;
}
.nav-logo { font-size: 22px; font-weight: 700; letter-spacing: 4px; color: #5a4638; text-decoration: none; }
.nav-logo span { font-size: 12px; font-weight: 300; letter-spacing: 2px; color: #a89585; margin-left: 8px; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  font-size: 13px; font-weight: 400; color: #7a6555; text-decoration: none;
  letter-spacing: 1px; padding: 6px 0; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.nav-links a:hover { color: #5a4638; border-bottom-color: #c4a882; }
.nav-links a.highlight {
  background: #5a4638; color: #f7f3ee; padding: 6px 16px; border-radius: 20px;
  border-bottom: none; font-weight: 500;
}
.nav-links a.highlight:hover { background: #7a6555; }
.nav-links a.active-page { color: #5a4638; border-bottom-color: #5a4638; font-weight: 500; }

/* Cart Badge */
.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #d44; color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 50%; margin-left: 4px; padding: 0 4px;
}

/* Logout Button */
.btn-logout {
  display: none; padding: 6px 16px; border: 1px solid #d4c4b0; border-radius: 20px;
  background: none; font-size: 12px; color: #7a6555; cursor: pointer; font-family: inherit;
}
.btn-logout.show { display: inline-block; }
.btn-logout:hover { background: #5a4638; color: #f7f3ee; border-color: #5a4638; }

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; font-size: 24px;
  color: #5a4638; cursor: pointer; padding: 4px 8px; line-height: 1;
}

/* Contact Floating Button */
.contact-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: #5a4638; color: #f7f3ee; font-size: 24px; font-weight: 700;
  cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: background 0.2s, transform 0.2s;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Serif KR', serif;
}
.contact-fab:hover { background: #7a6555; transform: scale(1.08); }

/* Contact Popup */
.contact-popup-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3);
  z-index: 300; justify-content: center; align-items: center;
}
.contact-popup-overlay.open { display: flex; }
.contact-popup {
  background: #fff; border-radius: 16px; padding: 36px 32px; max-width: 440px; width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); position: relative;
}
.contact-popup-close {
  position: absolute; top: 12px; right: 16px; background: none; border: none;
  font-size: 22px; color: #a89585; cursor: pointer; line-height: 1;
}
.contact-popup-close:hover { color: #5a4638; }
.contact-popup h3 { font-size: 20px; font-weight: 600; letter-spacing: 2px; margin-bottom: 8px; }
.contact-popup .contact-desc { font-size: 13px; color: #9a8575; margin-bottom: 20px; line-height: 1.7; }
.contact-popup label {
  display: block; font-size: 12px; font-weight: 500; color: #7a6555;
  letter-spacing: 1px; margin-bottom: 4px; margin-top: 12px;
}
.contact-popup input, .contact-popup textarea {
  width: 100%; padding: 10px 14px; border: 1px solid #d4c4b0; border-radius: 8px;
  font-size: 13px; font-family: 'Noto Serif KR', serif; color: #5a4638;
  background: #faf8f5; outline: none; transition: border-color 0.2s;
}
.contact-popup input:focus, .contact-popup textarea:focus { border-color: #c4a882; }
.contact-popup textarea { resize: vertical; min-height: 100px; }
.contact-popup .contact-submit {
  display: block; width: 100%; margin-top: 20px; padding: 12px;
  background: #5a4638; color: #f7f3ee; border: none; border-radius: 24px;
  font-size: 14px; font-weight: 500; letter-spacing: 2px; cursor: pointer;
  font-family: 'Noto Serif KR', serif; transition: background 0.2s;
}
.contact-popup .contact-submit:hover { background: #7a6555; }
.contact-popup .contact-msg { font-size: 12px; text-align: center; margin-top: 10px; display: none; }

/* Recently Viewed Sidebar */
.recent-sidebar {
  position: fixed; right: 12px; top: 50%; transform: translateY(-50%);
  width: 90px; background: #fff; border: 1px solid #e8e0d6; border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06); z-index: 50; padding: 10px 8px;
  display: none; flex-direction: column; align-items: center; gap: 8px;
}
.recent-sidebar-title {
  font-size: 12px; font-weight: 600; color: #a89585; letter-spacing: 1px;
  text-align: center; margin-bottom: 4px; white-space: nowrap;
}
.recent-sidebar a {
  display: block; width: 68px; height: 68px; border-radius: 8px; overflow: hidden;
  border: 1px solid #e8e0d6; transition: border-color 0.2s; flex-shrink: 0;
}
.recent-sidebar a:hover { border-color: #c4a882; }
.recent-sidebar img { width: 100%; height: 100%; object-fit: cover; }
.recent-sidebar .no-img {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: #f0ebe3; font-size: 8px; color: #b09880; text-align: center; padding: 4px;
}

/* Footer */
.common-footer {
  background: #eee6dc; padding: 40px 24px; text-align: center; border-top: 1px solid #e0d6ca;
}
.common-footer .f-logo { font-size: 18px; font-weight: 700; letter-spacing: 4px; margin-bottom: 16px; }
.common-footer .f-biz { font-size: 11px; color: #b09880; line-height: 2; margin-bottom: 16px; }
.common-footer .f-biz span { margin: 0 6px; }
.common-footer p { font-size: 12px; color: #a89585; line-height: 1.8; }
.common-footer a { color: #7a6555; text-decoration: none; border-bottom: 1px solid #c4b09a; }
.common-footer a:hover { color: #5a4638; }
.common-footer .f-links { margin-top: 12px; font-size: 11px; }
.common-footer .f-links a { color: #a89585; border-bottom: none; }
.common-footer .f-links a:hover { color: #5a4638; }

/* Mobile */
@media (max-width: 640px) {
  .nav-inner { padding: 0 16px; }
  .hamburger { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid #e8e0d6; padding: 16px 24px; gap: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block !important; }
  .nav-links .btn-logout.show { display: block; width: fit-content; }
  .recent-sidebar { display: none !important; }
  .contact-fab { bottom: 20px; right: 20px; width: 48px; height: 48px; font-size: 20px; }
}
