:root {
  --yellow: #f3d314;
  --yellow-deep: #e0bc0a;
  --yellow-soft: #fbf0a8;
  --yellow-light: #fff9d4;
  --black: #121212;
  --dark: #1d1d1d;
  --gray: #6a6a6a;
  --white: #ffffff;
  --shadow-sm: 0 6px 14px rgb(0 0 0 / 10%);
  --shadow-md: 0 12px 30px rgb(0 0 0 / 16%);
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  line-height: 1.5;
  color: var(--black);
  background: #ffd400;
}

.container {
  width: min(1060px, 92%);
  margin: 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.site-header {
  position: relative;
  z-index: 100;
}

.header-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1300;
  will-change: transform;
}

.top-contact-bar {
  background: linear-gradient(90deg, #101010 0%, #1f1f1f 100%);
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 130;
}

.top-contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.45rem 0;
}

.top-contact-primary {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.top-contact-right {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.top-contact-right a {
  color: var(--yellow);
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.7rem;
  flex-wrap: wrap;
}

.mobile-menu-toggle {
  display: none;
  border: 1px solid rgb(255 212 0 / 45%);
  background: rgb(0 0 0 / 40%);
  color: #ffd400;
  border-radius: 8px;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.top-nav a,
.nav-menu__toggle {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  text-decoration: none;
  color: var(--yellow-soft);
  font-weight: 700;
  padding: 0.2rem 0;
}

.top-nav a.active,
.top-nav a:hover,
.nav-menu__toggle.active,
.nav-menu__toggle:hover,
.nav-menu.is-open .nav-menu__toggle {
  color: #ffd400;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.user-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--yellow-soft);
  font-weight: 700;
  font-size: inherit;
  font-family: inherit;
  padding: 0.2rem 0;
  cursor: pointer;
  line-height: 1.2;
}

.user-menu__toggle:hover,
.user-menu.is-open .user-menu__toggle {
  color: #ffd400;
}

.user-menu__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: rgb(255 212 0 / 18%);
  border: 1px solid rgb(255 212 0 / 45%);
}

.user-menu__avatar svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.user-menu__name {
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1600;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid rgb(255 212 0 / 28%);
  border-radius: 10px;
  background: rgb(0 0 0 / 94%);
  box-shadow: 0 12px 24px rgb(0 0 0 / 38%);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.user-menu__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

.user-menu.is-open .user-menu__dropdown,
.nav-menu.is-open .nav-menu__dropdown {
  display: flex;
}

.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-menu__toggle {
  cursor: default;
}

.nav-menu__dropdown {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  z-index: 1600;
  min-width: 11.5rem;
  padding: 0.35rem;
  border: 1px solid rgb(255 212 0 / 28%);
  border-radius: 10px;
  background: rgb(0 0 0 / 94%);
  box-shadow: 0 12px 24px rgb(0 0 0 / 38%);
  display: none;
  flex-direction: column;
  gap: 0.15rem;
}

.nav-menu__dropdown::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -0.55rem;
  height: 0.55rem;
}

@media (hover: hover) and (min-width: 761px) {
  .user-menu:hover .user-menu__dropdown,
  .nav-menu:hover .nav-menu__dropdown {
    display: flex;
  }

  .user-menu:hover .user-menu__toggle,
  .nav-menu:hover .nav-menu__toggle {
    color: #ffd400;
  }
}

.user-menu__dropdown a,
.nav-menu__dropdown a {
  text-decoration: none;
  color: #ffd400;
  font-weight: 700;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
}

.user-menu__dropdown a:hover,
.nav-menu__dropdown a:hover,
.user-menu__dropdown a.active,
.nav-menu__dropdown a.active {
  background: rgb(255 212 0 / 12%);
  text-decoration: none;
}

.main-header-bar {
  position: relative;
  z-index: 120;
  width: 100%;
  background: #ffd400;
  box-shadow: 0 8px 18px rgb(0 0 0 / 14%);
}

.main-header-spacer {
  display: block;
  height: var(--header-total-height, 190px);
}

.main-header-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.1rem;
  align-items: center;
  padding: 0.6rem 0;
}

.main-header-grid--logo-only {
  grid-template-columns: 1fr;
}

.main-header-grid--partner {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.header-partner-logo {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 12%));
}

.brand picture,
.brand img {
  display: block;
  max-height: 64px;
  width: auto;
  height: auto;
}

.brand img {
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 18%));
}

.brand-fallback {
  background: var(--white);
  border: 2px solid var(--black);
  padding: 0.4rem 0.7rem;
  font-weight: 800;
  border-radius: 8px;
}

.header-search {
  display: flex;
  border: 2px solid var(--black);
  background: var(--white);
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%);
}

.header-search input {
  border: 0;
  padding: 0.58rem 0.85rem;
  width: 100%;
  font-size: 0.95rem;
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--black);
  color: var(--yellow);
  font-weight: 800;
  padding: 0 1rem;
  cursor: pointer;
}

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 2px solid var(--black);
  background: linear-gradient(180deg, #1f1f1f 0%, #111 100%);
  color: #f8dc3e;
  text-decoration: none;
  font-weight: 800;
  padding: 0.58rem 0.95rem;
  white-space: nowrap;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cart-icon {
  font-size: 1rem;
  line-height: 1;
}

.cart-text {
  display: none;
}

.cart-link:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.site-main {
  padding: 1rem 0 2.8rem;
}

#etusivu,
#myynnissa,
#yhteystiedot {
  scroll-margin-top: var(--header-total-height, 190px);
}

.section-heading {
  margin: 0 0 1rem;
  text-align: center;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.4rem;
  max-width: 580px;
  margin: 0 auto;
}

.sales-section .product-cards-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.45rem;
  max-width: none;
  margin: 0;
}

.sales-section .product-card {
  position: relative;
  flex: 0 0 120px;
  width: 120px;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card {
  position: relative;
  display: block;
  color: inherit;
  text-decoration: none;
  background: var(--white);
  border: 2px solid var(--black);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.sales-section .product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.product-card:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 120px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #e8e8e8;
}

.sales-section .product-card__image {
  width: 120px;
  height: 120px;
}

.product-card__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  margin: 0;
  padding: 0.85rem 0.15rem 0.22rem;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  background: linear-gradient(transparent, rgb(0 0 0 / 88%) 62%);
}

@media (max-width: 900px) {
  .sales-section .product-cards-grid {
    flex-wrap: wrap;
    max-width: 320px;
    margin: 0 auto;
  }

  .sales-section .product-card {
    flex: 0 0 calc(33.333% - 0.35rem);
    width: calc(33.333% - 0.35rem);
  }

  .sales-section .product-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .product-cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 360px;
  }

  .product-card__title {
    font-size: 0.58rem;
  }
}

@media (max-width: 560px) {
  .sales-section .product-cards-grid {
    max-width: 220px;
  }

  .sales-section .product-card {
    flex: 0 0 calc(50% - 0.25rem);
    width: calc(50% - 0.25rem);
  }

  .product-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 240px;
  }
}

.sales-empty {
  margin: 1rem 0 0;
  text-align: center;
  font-weight: 600;
  color: rgb(18 18 18 / 75%);
}

.contact-section .follow-text {
  margin-bottom: 1rem;
}

.contact-block {
  margin: 0 auto;
  max-width: 420px;
  font-style: normal;
  font-size: 1.05rem;
  line-height: 1.75;
}

.contact-block strong {
  font-size: 1.12rem;
}

.contact-block a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.poster-top {
  background: #ffd400;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  text-align: center;
  padding: 1.9rem 0 1.6rem;
  margin-bottom: 1.35rem;
}

.product-showcase {
  background: #ffd400;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.35rem;
  padding: 1.35rem 0 1.7rem;
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.05rem;
  padding: 0.4rem 0 0.9rem;
}

.product-shot {
  min-height: 145px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 35%) 0%, rgb(255 255 255 / 5%) 100%),
    linear-gradient(180deg, #3a3a3a 0%, #161616 100%);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgb(255 255 255 / 16%);
  position: relative;
  overflow: hidden;
}

.product-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgb(255 212 0 / 30%) 0%, transparent 55%),
    linear-gradient(120deg, transparent 0%, rgb(255 255 255 / 12%) 45%, transparent 100%);
}

.product-shot span {
  position: absolute;
  left: 0.7rem;
  bottom: 0.65rem;
  z-index: 1;
  color: #ffe76f;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.showcase-info {
  padding: 0.95rem 0 0.25rem;
}

.showcase-info p {
  margin: 0 auto;
  max-width: 940px;
  text-align: center;
  font-size: 1.06rem;
}

.tilt-left {
  transform: none;
}

.tilt-right {
  transform: none;
}

.tilt-left-soft {
  transform: none;
}

.tilt-right-soft {
  transform: none;
}

.poster-kicker {
  margin: 0 0 0.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

.poster-top h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4.7vw, 3.35rem);
  line-height: 1.1;
  text-wrap: balance;
}

.poster-sub {
  margin: 0.45rem 0 0;
  font-weight: 600;
  color: rgb(18 18 18 / 85%);
}

.poster-strip {
  background: #ffd400;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 0.95rem 0;
  margin-bottom: 1rem;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
}

.strip-grid article {
  background: linear-gradient(180deg, #232323 0%, #111 100%);
  color: #f7df59;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0.82rem 0.5rem;
  border-radius: 10px;
  border: 1px solid rgb(255 255 255 / 12%);
}

.poster-strip-secondary {
  background: #ffd400;
}

.poster-bottom-cta {
  background: #ffd400;
  text-align: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.7rem 0 2rem;
}

.follow-text {
  margin: 0 0 0.75rem;
  font-size: clamp(1.25rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.15;
}

.cta-row {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  text-decoration: none;
  font-weight: 800;
  border: 2px solid var(--black);
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #202020 0%, #111 100%);
  color: var(--yellow-soft);
  box-shadow: var(--shadow-sm);
}

.btn-ghost.dark {
  background: var(--white);
  color: var(--black);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.page-content {
  padding: 1rem 0;
}

.content-block {
  background: #ffd400;
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow-sm);
}

.contact-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.contact-page__title {
  margin: 0 0 1.2rem;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  text-align: left;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-details {
  margin: 0 0 1rem;
  font-style: normal;
  line-height: 1.75;
}

.contact-details a {
  color: inherit;
  font-weight: 700;
}

.contact-people p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.contact-people a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-ytunnus {
  margin: 0 0 0.85rem;
  line-height: 1.6;
}

.contact-map {
  margin-top: 0.25rem;
  border: 2px solid var(--black);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 180px;
  border: 0;
}

.contact-form__heading {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form--narrow {
  width: 100%;
  max-width: 28rem;
}

.contact-form__field {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

.contact-form__field input,
.contact-form__field textarea,
.contact-form__field select,
.password-field input {
  width: 100%;
  border: 2px solid var(--black);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  background: var(--white);
  color: var(--black);
}

.contact-form__field select {
  appearance: none;
  padding-right: 2.2rem;
  cursor: pointer;
  background-color: var(--white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23121212' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  background-size: 1.1rem;
}

.contact-form__field select:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 2px;
}

.password-field {
  position: relative;
  display: block;
  width: 100%;
}

.password-field input {
  padding-right: 2.75rem;
}

.password-field__toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--gray);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-field__toggle:hover {
  color: var(--black);
  background: rgb(0 0 0 / 6%);
}

.password-field__toggle svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: currentColor;
}

.password-field__toggle .password-field__icon--hidden {
  display: none;
}

.password-field__toggle.is-visible .password-field__icon--show {
  display: none;
}

.password-field__toggle.is-visible .password-field__icon--hidden {
  display: block;
}

.contact-form__field textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__submit {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error {
  color: #8b0000;
  font-style: normal;
  font-weight: 600;
  font-size: 0.88rem;
}

.form-alert {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.8rem;
  border-radius: 10px;
  font-weight: 700;
}

.form-alert--success {
  background: #e8ffe8;
  border: 2px solid #1f6b1f;
  color: #1f4d1f;
}

.form-alert--error {
  background: #fff0f0;
  border: 2px solid #8b0000;
  color: #5a0000;
}

.form-alert--info {
  background: #fff9d4;
  border: 2px solid #c9a800;
  color: #4a3d00;
}

.toast-container {
  position: fixed;
  top: calc(var(--header-total-height, 190px) + 1rem);
  right: 1rem;
  z-index: 2100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}

.toast {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  line-height: 1.45;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(-0.4rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success {
  background: #e8ffe8;
  border: 2px solid #1f6b1f;
  color: #1f4d1f;
}

.toast--error {
  background: #fff0f0;
  border: 2px solid #8b0000;
  color: #5a0000;
}

.toast--info {
  background: #fff9d4;
  border: 2px solid #c9a800;
  color: #4a3d00;
}

.admin-page-loading {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: grid;
  place-items: center;
  background: rgb(0 0 0 / 40%);
}

.admin-page-loading[hidden] {
  display: none !important;
}

.admin-page-loading__panel {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  padding: 1.25rem 1.5rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: #ffd400;
  box-shadow: var(--shadow-md);
}

.admin-page-loading__spinner {
  width: 2.5rem;
  height: 2.5rem;
  border: 4px solid rgb(0 0 0 / 15%);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: admin-page-spin 0.75s linear infinite;
}

.admin-page-loading__text {
  margin: 0;
  font-weight: 700;
}

@keyframes admin-page-spin {
  to {
    transform: rotate(360deg);
  }
}

body.admin-page-busy {
  overflow: hidden;
}

.admin-card__lead {
  margin: 0 0 1rem;
  color: rgb(18 18 18 / 75%);
}

.admin-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.admin-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 9.5rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.admin-card:focus-visible {
  outline: 3px solid var(--black);
  outline-offset: 3px;
}

.admin-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #ffd400;
  border: 2px solid var(--black);
}

.admin-card__icon svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--black);
}

.admin-card__title {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.admin-card__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgb(18 18 18 / 78%);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.9rem;
}

.admin-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgb(0 0 0 / 12%);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  font-weight: 800;
}

.admin-table__actions {
  text-align: right;
  white-space: nowrap;
}

.admin-table--categories th,
.admin-table--categories td {
  padding: 0.3rem 0.5rem;
}

.admin-table--categories .admin-table__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.admin-table--categories .btn-sm {
  padding: 0.18rem 0.4rem;
  font-size: 0.78rem;
  line-height: 1.25;
}

.admin-table--categories .category-tree-item {
  min-height: 1.65rem;
}

.admin-table--categories code {
  font-size: 0.85em;
}

.admin-table--categories .admin-badge {
  font-size: 0.78rem;
  padding: 0.1rem 0.4rem;
}

.category-tree-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.category-tree-header .contact-form__heading {
  margin: 0;
}

.category-tree-add-link {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}

.category-tree-add-link:hover {
  color: rgb(18 18 18 / 65%);
}

.category-tree-cell {
  padding-top: 0;
  padding-bottom: 0;
}

.category-tree-item {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
}

.category-tree-lines {
  display: flex;
  align-self: stretch;
  flex-shrink: 0;
}

.category-tree-guide {
  position: relative;
  width: 1.25rem;
  flex-shrink: 0;
  align-self: stretch;
}

.category-tree-guide--continue::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px solid rgb(0 0 0 / 28%);
  transform: translateX(-50%);
}

.category-tree-guide--branch::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 2px solid rgb(0 0 0 / 28%);
  transform: translateX(-50%);
}

.category-tree-guide--branch.category-tree-guide--last::before {
  bottom: 50%;
}

.category-tree-guide--branch::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  border-top: 2px solid rgb(0 0 0 / 28%);
}

.category-tree-label {
  padding-left: 0.15rem;
}

.contact-form__field--checkbox {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.contact-form__field--checkbox input {
  width: auto;
}

.contact-page code {
  font-size: 0.9em;
  word-break: break-word;
}

.admin-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: #e8ffe8;
  border: 1px solid #1f6b1f;
  color: #1f4d1f;
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-badge--muted {
  background: #f3f3f3;
  border-color: #888;
  color: #444;
}

.admin-badge--created {
  background: #fff9d4;
  border-color: #c9a800;
  color: #4a3d00;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.admin-modal[hidden] {
  display: none !important;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 55%);
}

.admin-modal__dialog {
  position: relative;
  width: min(100%, 32rem);
  max-height: min(92vh, 720px);
  overflow: auto;
  padding: 1.2rem 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: #ffd400;
  box-shadow: var(--shadow-md);
}

.admin-modal__close {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--black);
}

.admin-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 860px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: #111;
  color: #f4da4d;
  box-shadow: 0 -6px 18px rgb(0 0 0 / 12%);
}

.footer-row {
  padding: 1.35rem 0 1.55rem;
  text-align: center;
}

.footer-row p {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  line-height: 1.8;
}

.footer-row a {
  color: inherit;
  font-weight: 400;
  text-underline-offset: 3px;
}

.scroll-top-btn {
  position: fixed;
  right: 1.15rem;
  bottom: 1.8rem;
  width: 44px;
  height: 44px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #111;
  color: #ffd400;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 120;
}

body.hallinta-page .scroll-top-btn {
  z-index: 2050;
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
}

@media (max-width: 980px) {
  .main-header-grid {
    grid-template-columns: 1fr;
    background: #ffd400;
  }

  .cart-link {
    display: inline-block;
    width: fit-content;
  }

  .collage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .top-contact-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }

  .top-contact-primary {
    order: 1;
    width: 100%;
    margin-left: 0;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .top-contact-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
  }

  .top-contact-right a {
    width: 100%;
    color: #ffd400;
    font-size: 1rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    width: 2.9rem;
    height: 2.9rem;
    font-size: 1.55rem;
    padding: 0;
    border-radius: 10px;
  }

  .top-nav {
    position: fixed;
    top: var(--mobile-menu-top, 14px);
    right: var(--mobile-menu-right, 14px);
    width: min(70vw, 270px);
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.75rem 0.95rem;
    border: 1px solid rgb(255 212 0 / 30%);
    border-radius: 12px;
    background: rgb(0 0 0 / 94%);
    box-shadow: 0 14px 28px rgb(0 0 0 / 42%);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transform: translate(0, -0.35rem) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
  }

  .top-contact-bar.menu-open .top-nav {
    opacity: 1;
    visibility: visible;
    transform: translate(0, 0) scale(1);
    pointer-events: auto;
  }

  .top-nav a {
    width: auto;
    color: #ffd400;
    font-size: 1.16rem;
    font-weight: 800;
    padding: 0.26rem 0.08rem;
  }

  .user-menu,
  .nav-menu {
    width: 100%;
  }

  .user-menu__toggle,
  .nav-menu__toggle {
    width: 100%;
    justify-content: flex-start;
    font-size: 1.16rem;
    font-weight: 800;
    padding: 0.26rem 0.08rem;
    cursor: pointer;
  }

  .user-menu__dropdown,
  .nav-menu__dropdown {
    position: static;
    width: 100%;
    margin-top: 0.15rem;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 0 2rem;
  }

  .user-menu__dropdown a,
  .nav-menu__dropdown a {
    font-size: 1.05rem;
    padding: 0.35rem 0.08rem;
  }

  .main-header-grid {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand cart"
      "search search";
    gap: 0.7rem;
  }

  .main-header-grid--logo-only {
    grid-template-columns: 1fr;
    grid-template-areas: "brand";
  }

  .main-header-grid--partner {
    grid-template-columns: 1fr auto;
    grid-template-areas: "brand partner";
    gap: 0.7rem;
  }

  .header-partner-logo {
    grid-area: partner;
    justify-self: end;
    max-height: 46px;
  }

  .brand {
    grid-area: brand;
  }

  .header-search {
    grid-area: search;
  }

  .cart-link {
    grid-area: cart;
    justify-self: end;
    padding: 0.5rem 0.7rem;
  }

  .showcase-info p {
    font-size: 1rem;
  }

  .collage-grid {
    grid-template-columns: 1fr;
  }
}
