/* Site-wide rules. Component styling lives inline on each element (from the design artboards). */
html { scroll-behavior: smooth; }
body { margin: 0; background: #FBF3E4; font-family: 'Albert Sans', system-ui, sans-serif; color: #1F2A22; }
a { color: #1F3D2B; }
a:hover { color: #B7305F; }
* { box-sizing: border-box; }
img { max-width: 100%; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid #2C3E7A; outline-offset: 2px; }
[hidden] { display: none !important; }

@media (max-width: 640px) { [data-decor] { display: none; } }

/* ---- nav ---- */
.kwc-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 20px 28px; max-width: 1400px; width: 100%; margin: 0 auto;
}
.kwc-nav-logo { display: flex; align-items: center; }
.kwc-nav-logo img { height: 46px; width: auto; }
.kwc-nav-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 30px; font-size: 16px; font-weight: 600; }
.kwc-nav-menu a { text-decoration: none; padding: 10px 0; color: #1F3D2B; }
.kwc-nav-menu a:hover, .kwc-nav-menu a[aria-current="page"] { color: #B7305F; }
.kwc-nav-basket {
  display: inline-flex; align-items: center; gap: 10px;
  background: #1F3D2B; color: #FBF3E4 !important; font-weight: 700; padding: 12px 22px !important; border-radius: 999px;
}
.kwc-nav-basket:hover { background: #2E5A41; }
.kwc-nav-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: #F2C230; color: #1F2A22; font-size: 13px; font-weight: 700;
}
.kwc-nav-toggle {
  display: none; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  border: 2px solid #1F3D2B; border-radius: 999px; background: transparent; color: #1F3D2B;
  font-weight: 700; font-size: 15px; cursor: pointer;
}
.kwc-nav-bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.kwc-nav-bars span { display: block; height: 2px; background: currentColor; border-radius: 2px; }

@media (max-width: 760px) {
  .kwc-nav { padding: 16px 20px; gap: 12px; }
  .kwc-nav-logo img { height: 40px; }
  .kwc-nav-toggle { display: inline-flex; }
  .kwc-nav-menu {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 0 12px; border-top: 1px solid #E8DEC6;
  }
  .kwc-nav[data-open] .kwc-nav-menu { display: flex; }
  .kwc-nav-menu a { padding: 14px 4px; border-bottom: 1px solid #E8DEC6; font-size: 18px; }
  .kwc-nav-menu a:last-child { border-bottom: 0; }
  .kwc-nav-basket { margin-top: 12px; justify-content: center; padding: 14px 22px !important; }
}

/* ---- basket ---- */
.kwc-line {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid #E8DEC6;
}
.kwc-line img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px 12px 36px 12px; display: block; }
.kwc-line-name { font-family: 'Gloock', Georgia, serif; font-size: 22px; color: #1F3D2B; text-decoration: none; }
.kwc-line-price { font-size: 14px; color: #5A6A60; }
.kwc-line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.kwc-qty { display: inline-flex; align-items: center; border: 2px solid #1F3D2B; border-radius: 999px; overflow: hidden; }
.kwc-qty button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: #1F3D2B; }
.kwc-qty span { min-width: 32px; text-align: center; font-weight: 700; }
.kwc-line-total { font-weight: 700; font-size: 18px; }
.kwc-remove { background: none; border: 0; color: #B7305F; font-weight: 600; cursor: pointer; padding: 4px 0; font-size: 14px; }
@media (max-width: 520px) {
  .kwc-line { grid-template-columns: 72px 1fr; }
  .kwc-line img { width: 72px; height: 72px; }
  .kwc-line-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* ---- toast ---- */
.kwc-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: #1F3D2B; color: #FBF3E4; padding: 14px 20px; border-radius: 999px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(31,61,43,0.25); opacity: 0; transition: opacity .2s, transform .2s; z-index: 50;
  display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px);
}
.kwc-toast[data-show] { opacity: 1; transform: translateX(-50%) translateY(0); }
.kwc-toast a { color: #F2C230; font-weight: 700; }
