/* Mojooshop — light flex redesign, Scandinavian shop feel */
:root {
  --bg: #f7f5f2;
  --bg-elevated: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e2ddd6;
  --accent: #2c4a3e;
  --accent-soft: #e8efe9;
  --price: #1a1a1a;
  --max: 1080px;
  --font: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #e5ebe4 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #efe8df 0%, transparent 50%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-wrap {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.brand-text {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}

.shipping-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.shipping-note strong {
  color: var(--accent);
  font-weight: 600;
}

/* Nav */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: var(--bg-elevated);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  flex-wrap: wrap;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.35rem;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  display: block;
  padding: 0.55rem 0.7rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 4px;
}

.nav-list a:hover,
.nav-list a:focus {
  background: var(--accent-soft);
  text-decoration: none;
  color: var(--accent);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
  border-radius: 4px;
}

.has-dropdown > button.dropdown-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.7rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  border-radius: 4px;
}

.has-dropdown > button.dropdown-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 200px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.08);
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  z-index: 50;
}

.has-dropdown:hover > .dropdown,
.has-dropdown:focus-within > .dropdown,
.has-dropdown.open > .dropdown {
  display: block;
}

.dropdown a {
  padding: 0.45rem 0.9rem;
  font-weight: 400;
}

/* Layout shell */
.page-shell {
  display: flex;
  gap: 2rem;
  padding: 1.75rem 0 3rem;
  flex: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 200px;
  position: sticky;
  top: 5.5rem;
}

.sidebar-block {
  margin-bottom: 1.5rem;
}

.sidebar-block h3 {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 0.6rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.sidebar-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-block a {
  display: block;
  padding: 0.28rem 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.sidebar-block a:hover {
  color: var(--accent);
}

.main-col {
  flex: 1;
  min-width: 0;
}

.page-header {
  margin: 0 0 1.25rem;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.page-header .lead {
  margin: 0;
  color: var(--muted);
}

/* Content */
.content-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.5rem 1.6rem;
}

.content-card p {
  margin: 0 0 0.9rem;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card .lead {
  color: var(--muted);
  font-size: 1.05rem;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.product-card {
  flex: 1 1 calc(50% - 0.65rem);
  min-width: 240px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.product-card a {
  color: inherit;
  text-decoration: none;
}

.product-card a:hover {
  text-decoration: none;
}

.product-card .name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.product-card .price {
  font-weight: 600;
  color: var(--price);
}

.product-card .desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.product-detail {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-detail .price {
  font-size: 1.25rem;
  font-weight: 600;
}

.product-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-home {
  margin-bottom: 1.5rem;
}

.hero-home h1 {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin: 0 0 0.5rem;
  font-weight: 600;
}

.hero-home p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 36rem;
}

.featured-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}

/* Blog list */
.blog-container {
  width: 100%;
}

.blog-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.2rem 1.35rem;
}

.blog-title {
  margin: 0 0 0.4rem;
  font-family: var(--display);
  font-size: 1.2rem;
}

.blog-preview {
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-preview p {
  margin: 0;
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: #1f2421;
  color: #d5d8d4;
  padding: 2rem 0 1.5rem;
}

.site-footer a {
  color: #c5d4cb;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  align-items: center;
}

.footer-meta .sep {
  opacity: 0.4;
}

.footer-note {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Utilities */
.notice {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

@media (max-width: 800px) {
  .page-shell {
    flex-direction: column;
    gap: 1.25rem;
  }

  .sidebar {
    flex: none;
    width: 100%;
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .sidebar-block {
    flex: 1 1 160px;
    margin-bottom: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-list {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-list.is-open {
    display: flex;
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    margin-left: 0.5rem;
  }

  .product-card {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
