@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Nunito+Sans:wght@400;500;600;700&display=swap');

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
}

:root {
  --background: #EDE8F5;
  --card-bg: #F5F7FF;
  --card: var(--card-bg);
  --primary: #7091E6;
  --accent: #3D52A0;
  --text-dark: #1B2A4D;
  --primary-soft: rgba(112, 145, 230, 0.18);
  --accent-dark: #2F3A7A;
  --accent-soft: rgba(61, 82, 160, 0.14);
  --shadow: rgba(27, 42, 77, 0.16);
  --text-muted: rgba(27, 42, 77, 0.72);
  --border: #ADBBD6;
  --nav-height: 0px;
  --header-height: 64px;
  --breadcrumb-height: 0px;
}

* {
  box-sizing: border-box;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: "Nunito Sans", "Segoe UI", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(180deg, var(--background) 0%, #eef2ff 100%);
  scrollbar-gutter: stable both-edges;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

header {
  background: linear-gradient(135deg, var(--accent-dark), var(--accent));
  color: white;
  padding: 0 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  view-transition-name: site-header;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1120;
}

.header-inner {
  width: 90%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.header-logo {
  width: clamp(34px, 3.5vw, 50px);
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.header-text h1 {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(0.88rem, 1.2vw, 1.25rem);
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.header-text p {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.66rem;
  letter-spacing: 0.3px;
}

#pageShell {
  padding-top: calc(var(--header-height) + var(--nav-height) + var(--breadcrumb-height));
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  padding: 8px 13px;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.4px;
  line-height: 1.1;
  white-space: nowrap;
  transition: all 0.2s;
  position: relative;
  display: block;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-links a.nav-current,
.nav-links a[aria-current="page"] {
  color: #fff;
}

.nav-links a.nav-current::after,
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 4px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-icon-btn,
.nav-cart-link,
.nav-login-link,
.nav-cart-btn,
.nav-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
}

.nav-icon-btn:hover,
.nav-cart-link:hover,
.nav-login-link:hover,
.nav-cart-btn:hover,
.nav-login-btn:hover {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.nav-icon-btn svg,
.nav-cart-link svg,
.nav-login-link svg,
.nav-cart-btn svg,
.nav-login-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fff;
  color: var(--accent-dark);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1.5px solid var(--accent);
  pointer-events: none;
  line-height: 1;
}

.breadcrumb-wrap {
  background: rgba(238, 245, 244, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  position: fixed;
  top: calc(var(--header-height) + var(--nav-height));
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1100;
  backdrop-filter: blur(3px);
}

.breadcrumb {
  width: 90%;
  margin: 0 auto;
  padding: 8px 0;
  font-size: 0.84rem;
  color: #6a5a4b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

footer {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 32px 16px;
  margin-top: 40px;
  border-top: 2px solid var(--border);
  view-transition-name: site-footer;
}

.footer-container {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.footer-col h4 {
  font-family: "Cinzel", Georgia, serif;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 8px;
}

.footer-col p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.88);
}

.footer-col a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  display: block;
  margin: 6px 0;
  font-size: 0.9rem;
  transition: all 0.2s;
  padding: 2px 0;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: transparent;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.footer-social .social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-social .social-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

.footer-social .social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.footer-social .social-btn[title="WhatsApp"] { background: #25D366; }
.footer-social .social-btn[title="Facebook"] { background: #1877F2; }
.footer-social .social-btn[title="Instagram"] { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.footer-bottom {
  width: 90%;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
}

.footer-bottom a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
}

.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer a {
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  transition: all 0.2s;
}

footer a:hover {
  color: #fff;
}

footer.footer-simple {
  text-align: center;
  padding: 16px;
  margin-top: 28px;
}

footer.footer-simple p {
  margin: 0;
}

/* ── Hamburger button (hidden on desktop) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 8px 9px;
  border-radius: 4px;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-burger:hover {
  background: rgba(255, 255, 255, 0.22);
}
.nav-burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.92);
  transition: all 0.25s ease;
  border-radius: 1px;
}
header.nav-open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
header.nav-open .nav-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
header.nav-open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 700px) {
  body {
    scrollbar-gutter: auto; /* no left-side gutter on mobile */
    overflow-x: clip;
  }

  .nav-burger {
    display: flex;
  }

  .header-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 0;
    min-height: 56px;
  }

  .header-brand {
    flex: 1;
  }

  .nav-actions {
    flex-shrink: 0;
  }

  /* Nav collapses to a dropdown on mobile */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    flex: none;
    background: var(--accent-dark, #2F3A7A);
    padding: 4px 0 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
    z-index: 1110;
    overflow-x: visible;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  header.nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 13px 20px;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    white-space: normal;
    width: 100%;
    flex: 0 0 auto;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-links a.nav-current::after,
  .nav-links a[aria-current="page"]::after {
    left: 20px;
    right: 20px;
    bottom: 8px;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .header-text h1 {
    font-size: 0.84rem;
  }

  .header-text p {
    font-size: 0.62rem;
  }

  .breadcrumb {
    font-size: 0.78rem;
    gap: 6px;
  }
}
