/**
 * KNESKO site shell — shared layout fixes for all customer pages
 */

.brand-layout.knesko-layout {
  --knesko-font: 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-family: var(--knesko-font);
}

/* Hide legacy promo bar when KNESKO header + announce is active */
.brand-layout.knesko-layout .brand-promo-banner,
.brand-layout.knesko-layout .top-bar {
  display: none !important;
}

.brand-layout.knesko-layout.knesko-inner-page {
  background: #f7f3ee;
}

.brand-layout.knesko-layout.knesko-inner-page .brand-top-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Legacy content pages (contact, help, policy, etc.) */
.brand-layout.knesko-layout.knesko-content-page {
  background: #faf8f5;
  font-family: var(--knesko-font, 'Montserrat', 'Plus Jakarta Sans', system-ui, sans-serif);
  color: #111;
}

.brand-layout.knesko-layout.knesko-content-page .container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 32px);
  padding-right: clamp(16px, 3vw, 32px);
}

.brand-layout.knesko-layout.knesko-content-page .breadcrumb {
  max-width: 1200px;
  margin: 20px auto 0;
  padding: 0 clamp(16px, 3vw, 32px);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  color: #666;
}

.brand-layout.knesko-layout.knesko-content-page .breadcrumb a {
  color: #333;
  text-decoration: none;
}

.brand-layout.knesko-layout.knesko-content-page .header h1,
.brand-layout.knesko-layout.knesko-content-page .page-header h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}

/* Cart / checkout main sections */
.brand-layout.knesko-layout .cart-section,
.brand-layout.knesko-layout .checkout-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 32px);
}

/* Shop & product list grid (shared) */
.product-list-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 3vw, 40px);
}

.shop-page-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: 0.02em;
  color: #111;
}

.product-list-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.product-list-card {
  background: #faf8f5;
  border: 1px solid #e8e4df;
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-list-card:hover {
  border-color: #bbb;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

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

.product-list-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.product-list-card-info {
  padding: 14px;
}

.product-list-card-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-list-card-price {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.product-list-empty,
.product-list-loading {
  text-align: center;
  padding: 60px 20px;
  color: #888;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

@media (min-width: 768px) {
  .product-list-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .product-list-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* 404 — align with KNESKO when shell is active */
.brand-layout.knesko-layout.knesko-content-page.page-404 {
  background: #faf8f5;
  min-height: 100vh;
}

.brand-layout.knesko-layout.knesko-content-page .page-404-main {
  min-height: calc(100vh - 160px);
  padding: clamp(32px, 6vw, 64px) 20px;
}

.brand-layout.knesko-layout.knesko-content-page .error-container {
  border: 1px solid #e8e4df;
  border-radius: 8px;
  box-shadow: none;
  background: #fff;
}

.brand-layout.knesko-layout.knesko-content-page .error-code {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 400;
  color: #111;
}

.brand-layout.knesko-layout.knesko-content-page .error-title {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
}

.brand-layout.knesko-layout.knesko-content-page .error-message {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

.brand-layout.knesko-layout.knesko-content-page .btn-home {
  background: #111;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
}

/* ── Cookie consent bar (knesko.com style) ── */
.knesko-cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  background: #111;
  color: #fff;
  padding: 1rem 1.25rem;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  font-family: var(--knesko-font);
  font-size: 0.8125rem;
  line-height: 1.5;
}

.knesko-cookie-bar.is-visible {
  transform: translateY(0);
}

.knesko-cookie-bar__inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.knesko-cookie-bar__text a {
  color: #fff;
  text-decoration: underline;
}

.knesko-cookie-bar__actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.knesko-cookie-bar__btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.knesko-cookie-bar__btn--accept {
  background: #fff;
  color: #111;
  border-color: #fff;
}

/* ── Sign Up & Save modal ── */
.knesko-signup-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.knesko-signup-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.knesko-signup-modal__panel {
  position: relative;
  width: min(480px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  font-family: var(--knesko-font);
}

.knesko-signup-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.knesko-signup-modal__title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.knesko-signup-modal__body {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #333;
  margin: 0 0 1.25rem;
}

.knesko-signup-modal__form {
  display: grid;
  gap: 0.75rem;
  text-align: left;
}

.knesko-signup-modal__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #111;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
}

.knesko-signup-modal__submit {
  width: 100%;
  background: #111;
  color: #fff;
  border: none;
  padding: 1rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.knesko-signup-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #555;
  line-height: 1.4;
}

.knesko-signup-modal__fine {
  font-size: 0.6875rem;
  color: #888;
  margin: 0.75rem 0 0;
}

@media (max-width: 640px) {
  .knesko-cookie-bar__inner {
    flex-direction: column;
    align-items: stretch;
  }
}
