/* ================================
   Yantuo Shared Header & Footer
   Used by Grav + Modified-Shop
================================ */

:root {
  --yt-primary: #b8338a;
  --yt-primary-dark: #9f2877;
  --yt-dark: #171717;
  --yt-text: #202020;
  --yt-muted: #666666;
  --yt-border: rgba(0,0,0,0.08);
  --yt-light-pink: #f7e5f1;
}

.yt-site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--yt-border);
}

.yt-header-container {
  width: min(1180px, 92%);
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.yt-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.yt-logo img {
  max-height: 42px;
  width: auto;
  display: block;
}

.yt-logo-text {
  color: var(--yt-text);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
}

.yt-main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex: 1;
}

.yt-main-nav a {
  color: #303030;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.yt-main-nav a:hover,
.yt-main-nav a.active {
  color: var(--yt-primary);
}

.yt-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.yt-shop-btn,
.yt-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--yt-primary);
  color: #ffffff !important;
  font-weight: 900;
  font-size: 14px;
  text-decoration: none !important;
  box-shadow: 0 10px 22px rgba(184,51,138,0.22);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.yt-shop-btn:hover,
.yt-cart-btn:hover {
  background: var(--yt-primary-dark);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.yt-mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--yt-border);
  border-radius: 12px;
  background: #ffffff;
  color: var(--yt-text);
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.yt-mobile-nav {
  display: none;
  width: min(1180px, 92%);
  margin: 0 auto;
  padding: 0 0 18px;
}

.yt-mobile-nav a {
  display: block;
  color: var(--yt-text);
  text-decoration: none;
  font-weight: 800;
  padding: 12px 0;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.yt-mobile-nav a:hover {
  color: var(--yt-primary);
}

.yt-site-footer {
  background: var(--yt-dark);
  color: rgba(255,255,255,0.78);
  padding: 72px 0 0;
}

.yt-footer-container {
  width: min(1180px, 92%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.15fr;
  gap: 42px;
}

.yt-footer-logo {
  color: #ffffff !important;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none !important;
}

.yt-footer-brand p {
  margin-top: 18px;
  line-height: 1.75;
  max-width: 360px;
}

.yt-footer-col h3 {
  color: #ffffff;
  font-size: 16px;
  margin: 0 0 18px;
}

.yt-footer-col a {
  display: block;
  color: rgba(255,255,255,0.74) !important;
  text-decoration: none !important;
  margin-bottom: 11px;
  transition: color 0.2s ease;
}

.yt-footer-col a:hover {
  color: #f7b7df !important;
}

.yt-footer-col p {
  margin: 0 0 11px;
  line-height: 1.65;
}

.yt-footer-contact-btn {
  display: inline-flex !important;
  width: fit-content;
  margin-top: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--yt-primary);
  color: #ffffff !important;
  font-weight: 800;
}

.yt-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 54px;
  padding: 22px 0;
  text-align: center;
}

.yt-footer-bottom p {
  width: min(1180px, 92%);
  margin: 0 auto;
  color: rgba(255,255,255,0.58);
}

@media (max-width: 1080px) {
  .yt-main-nav {
    gap: 14px;
  }

  .yt-main-nav a {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .yt-header-container {
    min-height: 68px;
  }

  .yt-main-nav,
  .yt-header-actions {
    display: none;
  }

  .yt-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .yt-mobile-nav.is-open {
    display: block;
  }
}

@media (max-width: 900px) {
  .yt-footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .yt-footer-container {
    grid-template-columns: 1fr;
  }

  .yt-site-footer {
    padding-top: 54px;
  }
}
