:root {
  --kk-cream: #fff6ea;
  --kk-navy: #000022;
  --kk-blue: #23c9ff;
  --kk-blue-soft: #7cc6fe;
  --kk-blue-tint: #eaf6ff;
  --kk-border: #eadfcc;
  --kk-card: #fffdf8;
  --kk-muted: #4d4d66;
  --kk-font-heading: 'Poppins', Arial, Helvetica, sans-serif;
  --kk-font-body: 'Karla', Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--kk-font-body); color: var(--kk-navy); background: var(--kk-cream); overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--kk-font-heading); font-weight: 700; letter-spacing: 0.25px; }
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; border-bottom: 1px solid var(--kk-border); }
.site-header .logo img { height: 36px; width: auto; }
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a { font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; color: var(--kk-muted); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--kk-navy); }
.site-nav a[aria-current="page"] { color: var(--kk-navy); border-bottom-color: var(--kk-blue); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: none; border-radius: 999px; color: var(--kk-navy); cursor: pointer; }
.nav-toggle:hover { background: var(--kk-blue-tint); }
@media (max-width: 640px) {
  .site-header { flex-wrap: wrap; gap: 0.5rem 0.75rem; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .site-nav { display: none; order: 3; width: 100%; }
  .site-nav.open { display: flex; flex-direction: column; align-items: center; gap: 0.9rem; padding: 0.25rem 0 0.75rem; }
}
main { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem 4rem; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.product-card { background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.product-card h3 { margin: 0; font-size: 1.1rem; }
.product-card .fabric { color: var(--kk-muted); font-size: 0.9rem; }
.product-card .price { font-weight: 600; }
.editor { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; }
.editor canvas { width: 100%; max-width: 720px; background: #fff; border: 1px solid var(--kk-border); border-radius: 8px; touch-action: none; }
.editor .panel { display: flex; flex-direction: column; gap: 1rem; }
.upload-zone { border: 2px dashed var(--kk-blue-soft); border-radius: 8px; padding: 2rem; text-align: center; color: var(--kk-muted); }
.upload-zone.dragover { background: var(--kk-blue-tint); border-color: var(--kk-blue); }
.upload-zone button.primary { padding: 0.45rem 1rem; text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.terms-block { background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 1rem 1.1rem; margin-bottom: 1rem; }
.terms-label { display: flex; gap: 0.6rem; align-items: flex-start; cursor: pointer; font-size: 0.9rem; line-height: 1.45; color: var(--kk-navy); }
.terms-label input[type="checkbox"] { margin-top: 0.2rem; flex-shrink: 0; transform: scale(1.1); }
.fabric-options label { display: block; padding: 0.5rem; border: 1px solid var(--kk-border); border-radius: 6px; margin-bottom: 0.5rem; cursor: pointer; background: var(--kk-card); }
.fabric-options label.selected { border-color: var(--kk-blue); background: var(--kk-blue-tint); }
.artwork .fabric-options label { display: flex; align-items: center; gap: 0.5rem; }
.artwork .opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.artwork .opt-price { white-space: nowrap; }
button.primary, a.primary, .product-card a.cta {
  padding: 0.8rem 1.8rem; background: var(--kk-blue); color: var(--kk-navy);
  border: 1px solid var(--kk-blue); border-radius: 4px;
  font-family: var(--kk-font-heading); font-size: 0.95rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
  text-decoration: none; display: inline-block; cursor: pointer;
}
button.primary:not([disabled]):hover, a.primary:hover, .product-card a.cta:hover { background: var(--kk-blue-soft); border-color: var(--kk-blue-soft); }
button.primary[disabled] { opacity: 0.5; cursor: not-allowed; }
.product-card a.cta { margin-top: 0.5rem; }
.error { color: #b00020; }
.back-link { display: inline-block; margin-bottom: 0.75rem; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; color: var(--kk-muted); }
.back-link:hover { color: var(--kk-navy); }

/* ---- Header cart icon + badge ---- */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; background: transparent; border: none; border-radius: 999px; color: var(--kk-navy); cursor: pointer; }
.cart-btn:hover { background: var(--kk-blue-tint); }
.cart-badge { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; display: none; align-items: center; justify-content: center; font-family: var(--kk-font-heading); font-size: 0.7rem; font-weight: 700; line-height: 1; color: var(--kk-cream); background: var(--kk-navy); border-radius: 999px; }
.cart-btn.has-items .cart-badge { display: inline-flex; }

/* ---- Slide-out cart drawer ---- */
.cart-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 34, 0.4); opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease; z-index: 50; }
.cart-drawer-backdrop.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; height: 100%; width: 400px; max-width: 90vw; background: var(--kk-cream); border-left: 1px solid var(--kk-border); box-shadow: -8px 0 24px rgba(0, 0, 34, 0.12); transform: translateX(100%); transition: transform 0.25s ease; z-index: 51; display: flex; flex-direction: column; }
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--kk-border); }
.cart-drawer-head h2 { margin: 0; font-size: 1.3rem; }
.cart-drawer-close { background: transparent; border: none; font-size: 1.8rem; line-height: 1; color: var(--kk-navy); cursor: pointer; padding: 0 0.25rem; }
.cart-drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.5rem 1.5rem; }
.cart-drawer-empty { text-align: center; padding: 2rem 0; color: var(--kk-muted); }
.cart-drawer-empty .primary { margin-top: 1rem; }
.cart-drawer .cart-items { list-style: none; padding: 0; margin: 0; }
.cart-drawer .cart-item { align-items: flex-start; }
.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.cart-remove { background: transparent; border: none; color: var(--kk-muted); font-size: 0.8rem; text-decoration: underline; cursor: pointer; padding: 0; }
.cart-drawer .cart-qty-field { margin-top: 0.35rem; }
.cart-drawer-checkout { width: 100%; }
.cart-items { list-style: none; padding: 0; }
.cart-item { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--kk-border); }
.cart-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }
.cart-item-meta { display: flex; flex-direction: column; flex: 1; }
.cart-totals { margin: 1rem 0; }
.cart-totals > div { display: flex; justify-content: space-between; padding: 0.25rem 0; }
.cart-total { font-weight: 700; border-top: 1px solid var(--kk-border); margin-top: 0.25rem; padding-top: 0.5rem; }
.cart-gst-note { color: var(--kk-muted); font-size: 0.85rem; }
.qty-field { display: block; margin: 0.5rem 0; font-size: 0.9rem; }
.qty-field input { width: 4rem; margin-left: 0.4rem; }
.qty-hint { display: block; margin-top: 0.25rem; font-size: 0.8rem; color: var(--kk-muted); }
.cart-qty-field { font-size: 0.85rem; color: var(--kk-muted); }
.cart-qty { width: 3.5rem; margin-left: 0.3rem; }
.cart-line-total { font-weight: 600; min-width: 4rem; text-align: right; }

/* ---- Landing page (Custom Printing / Bespoke) ---- */
.kk-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.kk-hero h1 { font-size: 2.8rem; line-height: 1.15; margin: 0.5rem 0 0.25rem; }
.kk-hero-sub { font-family: var(--kk-font-heading); font-size: 1.4rem; margin: 0 0 0.75rem; }
.kk-hero-intro { color: var(--kk-muted); font-size: 1.1rem; max-width: 38em; margin: 0 auto 1.5rem; }
.kk-banner { margin: 2rem auto 0; max-width: 1100px; }
.kk-banner img { width: 100%; height: auto; display: block; border-radius: 8px; }
.kk-props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; text-align: center; }
.kk-prop img { width: 96px; height: 96px; }
.kk-prop-title { font-family: var(--kk-font-heading); font-weight: 700; letter-spacing: 0.25px; margin: 0.5rem 0 0.25rem; font-size: 1.15rem; }
.kk-prop p { margin: 0; color: var(--kk-muted); font-size: 0.95rem; }
.kk-bespoke { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 3rem 0; }
.kk-bespoke-block { background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 1.5rem; }
.kk-bespoke-block h2 { margin-top: 0; font-size: 1.3rem; }
.kk-bespoke-block p { color: var(--kk-muted); line-height: 1.5; }
.kk-bespoke-block a { color: var(--kk-navy); }
.kk-aus-made { text-align: center; }
.kk-aus-made img { width: 120px; height: auto; margin-bottom: 0.5rem; }
.kk-cta-band { text-align: center; background: var(--kk-blue-soft); border-radius: 8px; padding: 2.5rem 1.5rem; margin: 3rem 0; }
.kk-cta-band h2 { margin: 0 0 0.25rem; font-size: 1.8rem; }
.kk-cta-band p { margin: 0 0 1.25rem; font-size: 1.1rem; }
.kk-products-section { margin-top: 3rem; }
.kk-products-section h2 { font-size: 1.8rem; }
.kk-about { margin-top: 3.5rem; max-width: 44em; }
.kk-about h2 { font-size: 1.8rem; margin-bottom: 0.25rem; }
.kk-about h3 { font-size: 1.15rem; margin-top: 0; }
.kk-about p { line-height: 1.6; color: var(--kk-muted); }
.kk-footer { border-top: 1px solid var(--kk-border); padding: 2rem 1.5rem 3rem; text-align: center; font-size: 0.95rem; }
.kk-footer p { margin: 0.3rem 0; color: var(--kk-muted); }
.kk-footer a { color: var(--kk-navy); }
@media (max-width: 900px) { .kk-props, .kk-bespoke { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .kk-props, .kk-bespoke { grid-template-columns: 1fr; }
  .kk-hero h1 { font-size: 2.1rem; }
  .editor { grid-template-columns: 1fr; }
}

/* ---- Home landing ---- */
.home-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 3rem 0; }
.home-path { display: flex; flex-direction: column; gap: 0.5rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 2rem; text-decoration: none; color: inherit; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.home-path:hover { box-shadow: 0 8px 24px rgba(0, 0, 34, 0.1); transform: translateY(-2px); }
.home-path-icon { width: 48px; height: 48px; color: var(--kk-blue); margin-bottom: 0.5rem; }
.home-path h2 { margin: 0; font-size: 1.5rem; }
.home-path p { margin: 0; color: var(--kk-muted); line-height: 1.5; flex: 1; }
.home-path .primary { margin-top: 1rem; align-self: flex-start; }
@media (max-width: 600px) { .home-paths { grid-template-columns: 1fr; } }

/* ---- Home ---- */
.home-hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.75rem; }

/* Hero with animated image marquee */
.home-hero-marquee { position: relative; min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; overflow: hidden; padding: 3.5rem 1rem 0; }
.home-hero-content { position: relative; z-index: 1; max-width: 40rem; }
.home-hero-tag { display: inline-block; margin-bottom: 1.25rem; padding: 0.4rem 1rem; border: 1px solid var(--kk-border); background: var(--kk-card); border-radius: 999px; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.85rem; color: var(--kk-muted); }
.home-hero-title { font-size: 3.2rem; line-height: 1.05; letter-spacing: -0.5px; margin: 0 0 1rem; }
.home-hero-desc { color: var(--kk-muted); font-size: 1.15rem; line-height: 1.5; max-width: 36em; margin: 0 auto 1.75rem; }
@media (max-width: 600px) { .home-hero-title { font-size: 2.2rem; } .home-hero-marquee { min-height: 80vh; } }

/* Staggered entrance for the hero content */
@keyframes home-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.home-hero-content > * { opacity: 0; animation: home-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.home-hero-tag { animation-delay: 0.05s; }
.home-hero-title { animation-delay: 0.15s; }
.home-hero-desc { animation-delay: 0.3s; }
.home-hero-content .home-hero-cta { animation-delay: 0.45s; }

/* Bottom image marquee */
.home-marquee { position: absolute; left: 0; bottom: 0; width: 100%; height: 40%; display: flex; align-items: center; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent); }
/* Per-item margin (not container gap) so the duplicated half is exactly one
   repeat unit and translateX(-50%) loops with no jump. */
.home-marquee-track { display: flex; width: max-content; will-change: transform; }
.home-marquee-track.is-ready { animation: home-marquee-scroll 40s linear infinite; }
@keyframes home-marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.home-marquee-item { flex: 0 0 auto; height: 16rem; aspect-ratio: 3 / 4; margin-right: 1rem; border-radius: 16px; overflow: hidden; box-shadow: 0 8px 24px rgba(0, 0, 34, 0.18); transform: rotate(var(--tilt, 0deg)); }
.home-marquee-item img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .home-marquee-item { height: 11rem; } }
@media (prefers-reduced-motion: reduce) {
  .home-hero-content > * { opacity: 1; animation: none; }
  .home-marquee-track.is-ready { animation: none; }
}

.btn-glass {
  display: inline-block; padding: 0.8rem 1.8rem;
  background: rgba(255, 255, 255, 0.6); color: var(--kk-navy);
  border: 1px solid rgba(255, 255, 255, 0.85); border-radius: 4px;
  font-family: var(--kk-font-heading); font-size: 0.95rem; font-weight: 400;
  text-decoration: none; cursor: pointer;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s ease;
}
.btn-glass:hover { background: rgba(255, 255, 255, 0.85); }

/* Full-bleed band: escapes main's 1100px max-width + padding to span the viewport. */
.home-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.home-bleed-inner { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; }

.home-section { margin: 3.5rem 0; }
.home-section-title { font-size: 1.8rem; margin: 0 0 1.5rem; text-align: center; }
.home-section-link {
  display: inline-block; margin-top: 1.25rem; font-family: var(--kk-font-heading);
  font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.5px;
  text-decoration: none; color: var(--kk-muted);
}
.home-section-link:hover { color: var(--kk-navy); }
.home-trust { background: var(--kk-blue-tint); border-top: 1px solid var(--kk-border); border-bottom: 1px solid var(--kk-border); }
.home-trust-inner { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; padding-top: 1.5rem; padding-bottom: 1.5rem; }
.home-trust-item { display: flex; align-items: center; gap: 0.6rem; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.95rem; color: var(--kk-navy); }
.home-trust-item svg { width: 24px; height: 24px; color: var(--kk-blue); flex-shrink: 0; }
@media (max-width: 600px) { .home-trust-inner { flex-direction: column; align-items: center; gap: 1rem; } }

.home-theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.home-theme-tile { position: relative; display: block; border-radius: 8px; overflow: hidden; text-decoration: none; border: 1px solid var(--kk-border); }
.home-theme-tile:hover { box-shadow: 0 8px 24px rgba(0, 0, 34, 0.1); }
.home-tile-ph { display: block; aspect-ratio: 1 / 1; background-color: var(--kk-blue-tint); background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-theme-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.6rem 0.8rem; font-family: var(--kk-font-heading); font-weight: 700; color: var(--kk-cream); background: linear-gradient(transparent, rgba(0, 0, 34, 0.65)); }

/* 3D theme carousel (home.js swaps this in for .home-theme-grid).
   Stage height must exceed the front card's rendered height: perspective scales
   the front card by perspective/(perspective - radius) (~1.22x at radius 360). */
.home-theme-carousel { position: relative; width: 100%; height: 440px; perspective: 2000px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.home-theme-carousel:active { cursor: grabbing; }
.home-theme-ring { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.home-theme-card { position: absolute; left: 50%; top: 50%; display: block; border-radius: 10px; overflow: hidden; text-decoration: none; border: 1px solid var(--kk-border); background: var(--kk-card); box-shadow: 0 12px 32px rgba(0, 0, 34, 0.25); }
.home-theme-card-img { position: absolute; inset: 0; background-color: var(--kk-blue-tint); background-size: cover; background-position: center; background-repeat: no-repeat; }
.home-theme-card-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.7rem 0.9rem; font-family: var(--kk-font-heading); font-weight: 700; color: var(--kk-cream); background: linear-gradient(transparent, rgba(0, 0, 34, 0.75)); }
.home-theme-browse { text-align: center; margin-top: 1.25rem; }
@media (max-width: 700px) { .home-theme-carousel { height: 280px; } }

.home-artist-row { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x proximity; justify-content: center; }
.home-artist { flex: 0 0 auto; width: 160px; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--kk-navy); scroll-snap-align: start; }
.home-artist-ph { width: 160px; height: 160px; border-radius: 50%; background-color: var(--kk-blue-tint); background-size: cover; background-position: center; background-repeat: no-repeat; border: 3px solid var(--kk-blue-soft); }
.home-artist:hover .home-artist-ph { border-color: var(--kk-blue); }
.home-artist-name { font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.95rem; text-align: center; }
@media (max-width: 600px) { .home-artist-row { justify-content: flex-start; } }

.home-wholesale { background: var(--kk-navy); color: var(--kk-cream); margin-top: 3.5rem; }
.home-wholesale-inner { text-align: center; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.home-wholesale-inner h2 { color: var(--kk-cream); font-size: 1.8rem; margin: 0 0 1rem; }
.home-wholesale-inner p { color: var(--kk-blue-soft); font-size: 1.1rem; line-height: 1.55; max-width: 40em; margin: 0 auto 1.75rem; }

/* ---- Artist showcase ---- */
.artist-showcase { margin: 1.5rem 0 0.5rem; }
.artist-showcase h2 { font-size: 1.4rem; margin: 0 0 1.1rem; }
.artist-showcase-grid { display: flex; flex-wrap: nowrap; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.75rem; scroll-snap-type: x proximity; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.artist-chip-btn { flex: 0 0 auto; scroll-snap-align: start; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; width: 225px; max-width: 40vw; padding: 0; background: none; border: none; font-family: inherit; color: inherit; cursor: pointer; }
.artist-chip-btn img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; background: #f0f0f3; border: 3px solid var(--kk-blue-soft); transition: border-color 0.15s ease, transform 0.15s ease; }
.artist-chip-btn:hover img, .artist-chip-btn:focus-visible img { border-color: var(--kk-blue); transform: translateY(-2px); }
.artist-chip-name { font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.9rem; text-align: center; }

/* ---- Catalogue homepage ---- */
.catalogue-heading { font-size: 1.4rem; margin: 2rem 0 1rem; }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; }
.design-card { display: block; text-decoration: none; color: inherit; }
.design-card img, .design-card .no-image { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #f0f0f3; }
.design-card .artist { display: block; font-size: 0.8rem; color: #4d4d66; margin-top: 0.25rem; }
.catalogue-filters { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; margin: 1rem 0; }
/* Search + Clear share the dropdown trigger's look so the filter row is cohesive. */
.catalogue-filters #search { min-width: 220px; padding: 0.5rem 0.7rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 6px; font-family: var(--kk-font-body); font-size: 0.95rem; color: var(--kk-navy); }
.catalogue-filters #search::placeholder { color: var(--kk-muted); }
.catalogue-filters #search:hover { border-color: var(--kk-blue-soft); }
.catalogue-filters #search:focus { outline: none; border-color: var(--kk-blue); box-shadow: 0 0 0 2px var(--kk-blue-tint); }
.catalogue-filters #clear-filters { padding: 0.5rem 0.9rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 6px; font-family: var(--kk-font-body); font-size: 0.95rem; color: var(--kk-navy); cursor: pointer; }
.catalogue-filters #clear-filters:hover { border-color: var(--kk-blue-soft); background: var(--kk-blue-tint); }
.catalogue-filters #clear-filters:focus-visible { outline: 2px solid var(--kk-blue); outline-offset: 1px; }

/* ---- Custom select dropdown (filters) ---- */
.kk-select { position: relative; }
.kk-select-trigger { display: inline-flex; align-items: center; gap: 0.5rem; min-width: 160px; padding: 0.5rem 0.7rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 6px; font-family: var(--kk-font-body); font-size: 0.95rem; color: var(--kk-navy); cursor: pointer; }
.kk-select-trigger:hover { border-color: var(--kk-blue-soft); }
.kk-select-trigger[aria-expanded="true"] { border-color: var(--kk-blue); }
.kk-select-trigger:focus-visible { outline: 2px solid var(--kk-blue); outline-offset: 1px; }
.kk-select-value { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-select-value.is-placeholder { color: var(--kk-muted); }
.kk-select-chevron { flex-shrink: 0; color: var(--kk-muted); transition: transform 0.15s ease; }
.kk-select-trigger[aria-expanded="true"] .kk-select-chevron { transform: rotate(180deg); }
.kk-select-menu { position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 320px; overflow-y: auto; margin: 0; padding: 0.3rem; list-style: none; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; box-shadow: 0 10px 28px rgba(0, 0, 34, 0.12); }
.kk-select-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.45rem 0.5rem; border-radius: 5px; font-size: 0.92rem; line-height: 1.3; white-space: nowrap; cursor: pointer; outline: none; }
.kk-select-item:hover, .kk-select-item:focus { background: var(--kk-blue-tint); }
.kk-select-check { flex-shrink: 0; color: var(--kk-blue); visibility: hidden; }
.kk-select-item[aria-selected="true"] .kk-select-check { visibility: visible; }
.kk-select-item-label { flex: 1; }

/* ---- Artwork / design detail page ---- */
.artwork { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.artwork-image img { width: 100%; border-radius: 8px; }
.artwork-zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom-hint { margin: 0.35rem 0 0; text-align: center; color: var(--kk-muted); font-size: 0.85rem; }
@media (max-width: 720px) {
  .artwork { grid-template-columns: 1fr; }
  .artwork-image img { max-height: 60vh; object-fit: contain; }
}

.similar { margin-top: 2.5rem; }
.similar h2 { margin: 0 0 1rem; }
.similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.similar-card { display: block; text-decoration: none; color: inherit; }
.similar-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.similar-artist { margin: 0.35rem 0 0; font-size: 0.85rem; color: var(--kk-muted); }
@media (max-width: 720px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Wholesale ---- */
.wholesale-wrap { max-width: 840px; margin: 0 auto; }
.ws-hero { text-align: center; padding: 1.5rem 0 0.5rem; }
.ws-hero h1 { font-size: 2.8rem; line-height: 1.15; margin: 0.5rem 0 0.75rem; }
.ws-lead { color: var(--kk-muted); font-size: 1.1rem; line-height: 1.55; max-width: 38em; margin: 0 auto 1.5rem; }
.ws-cta-row { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.ws-info { margin: 2.5rem 0; }
.ws-info h2 { font-size: 1.4rem; margin: 0 0 0.5rem; }
.ws-info p { color: var(--kk-muted); line-height: 1.6; }
.ws-info a { color: var(--kk-navy); }
.ws-products { color: var(--kk-muted); line-height: 1.9; padding-left: 1.25rem; margin: 0.5rem 0 0; }
.btn-outline {
  padding: 0.8rem 1.8rem; background: transparent; color: var(--kk-navy);
  border: 1px solid var(--kk-navy); border-radius: 4px;
  font-family: var(--kk-font-heading); font-size: 0.95rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 0.5px; text-align: center;
  text-decoration: none; display: inline-block; cursor: pointer;
}
.btn-outline:hover { background: var(--kk-blue-tint); }
.ws-card { background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 1.5rem; max-width: 420px; margin: 1.5rem auto 0.75rem; }
.ws-card h2 { margin-top: 0; font-size: 1.3rem; }
.ws-card label { display: block; margin: 0.75rem 0; font-size: 0.9rem; }
.ws-card input,
.ws-card textarea { display: block; width: 100%; margin-top: 0.3rem; padding: 0.55rem 0.7rem; background: #fff; border: 1px solid var(--kk-border); border-radius: 6px; font-family: var(--kk-font-body); font-size: 0.95rem; color: var(--kk-navy); }
.ws-card textarea { resize: vertical; line-height: 1.45; }
.ws-card input:focus,
.ws-card textarea:focus { outline: none; border-color: var(--kk-blue); box-shadow: 0 0 0 2px var(--kk-blue-tint); }
.ws-optional { color: var(--kk-muted); font-weight: 400; font-size: 0.8rem; }
.ws-card .primary { width: 100%; margin-top: 0.75rem; }
.ws-card > p { text-align: center; margin-bottom: 0; }
#ws-auth-msg { text-align: center; color: var(--kk-muted); min-height: 1.2em; }
.ws-dash-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ws-order { background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; padding: 1.25rem; margin: 1rem 0; }
.ws-order-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.ws-order ul { padding-left: 1.1rem; }
.ws-order li { margin: 0.5rem 0; line-height: 1.5; }
.ws-order img { display: block; max-height: 64px; margin-top: 4px; border-radius: 4px; }
.ws-thumb { display: inline-block; padding: 0; margin-top: 4px; background: none; border: 1px solid transparent; border-radius: 5px; cursor: zoom-in; line-height: 0; }
.ws-thumb:hover { border-color: var(--kk-blue); }
.ws-thumb:focus-visible { outline: none; border-color: var(--kk-blue); box-shadow: 0 0 0 2px var(--kk-blue-tint); }
.ws-thumb img { margin-top: 0; }

.ws-lightbox { max-width: min(90vw, 900px); max-height: 90vh; padding: 1rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 8px; }
.ws-lightbox::backdrop { background: rgba(0, 0, 0, 0.7); }
.ws-lightbox img { display: block; max-width: 100%; max-height: calc(90vh - 5rem); margin: 0 auto; border-radius: 4px; object-fit: contain; }
.ws-lightbox-caption, #ws-lightbox-caption { margin: 0.75rem 0 0; text-align: center; color: var(--kk-muted); font-size: 0.9rem; }
.ws-lightbox-close { position: absolute; top: 0.5rem; right: 0.5rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 50%; color: var(--kk-navy); cursor: pointer; }
.ws-lightbox-close:hover { border-color: var(--kk-blue); color: var(--kk-blue); }
.ws-qty { width: 5rem; margin-left: 0.4rem; }
.ws-order-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }
.ws-order-msg { min-height: 1.2em; color: var(--kk-muted); margin: 0.5rem 0 0; }

/* Checkout upsell — shown between the Checkout button and Stripe for
   catalogue-only carts. See web/js/upsell.js. */
.upsell { position: relative; max-width: min(92vw, 440px); padding: 2rem; text-align: center; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 10px; }
.upsell::backdrop { background: rgba(0, 0, 0, 0.6); }
.upsell h2 { margin: 0 0 0.75rem; font-size: 1.5rem; }
.upsell-tag { display: inline-block; margin: 0 0 1rem; padding: 0.3rem 0.85rem; background: var(--kk-blue-tint); border-radius: 999px; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--kk-blue); }
.upsell-lead { margin: 0 0 1.5rem; color: var(--kk-muted); line-height: 1.6; }
.upsell-explore { display: block; width: 100%; text-align: center; text-decoration: none; }
.upsell-rule { margin: 1.5rem 0; border: 0; border-top: 1px solid var(--kk-border); }
.upsell-continue { width: 100%; }
.upsell-close { position: absolute; top: 0.75rem; right: 0.75rem; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; background: none; border: 1px solid transparent; border-radius: 50%; color: var(--kk-muted); cursor: pointer; }
.upsell-close:hover { border-color: var(--kk-border); color: var(--kk-navy); }

/* ---------------------------------------------------------------------------
   Order Confirmed page (web/success.html + web/js/receipt.js)
   --------------------------------------------------------------------------- */
.confirm-wrap { max-width: 640px; margin: 0 auto; padding: 3rem 1.25rem 4rem; }

.confirm-hero { text-align: center; margin-bottom: 2.5rem; }
.confirm-tick { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 1.25rem; background: var(--kk-blue-tint); border-radius: 50%; color: var(--kk-blue); }
.confirm-hero h1 { margin: 0 0 0.75rem; font-size: 2.25rem; }
.confirm-lead { margin: 0 auto; max-width: 34rem; color: var(--kk-muted); line-height: 1.65; }

.confirm-card { padding: 1.75rem; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 10px; }
.confirm-card h2 { margin: 0 0 1.25rem; font-size: 1.15rem; }

.receipt-items { list-style: none; margin: 0; padding: 0; }
.receipt-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--kk-border); }
.receipt-item:first-child { border-top: 0; padding-top: 0; }
.receipt-thumb { flex: 0 0 auto; width: 64px; height: 64px; object-fit: cover; background: var(--kk-cream); border: 1px solid var(--kk-border); border-radius: 6px; }
.receipt-thumb-empty { background: var(--kk-blue-tint); }
.receipt-item-text { flex: 1 1 auto; min-width: 0; }
.receipt-item-name { margin: 0; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.95rem; line-height: 1.35; }
.receipt-item-sub { margin: 0.15rem 0 0; color: var(--kk-muted); font-size: 0.8rem; overflow-wrap: anywhere; }
.receipt-item-qty { margin: 0.35rem 0 0; color: var(--kk-muted); font-size: 0.85rem; }
.receipt-item-price { flex: 0 0 auto; margin: 0; font-family: var(--kk-font-heading); font-weight: 700; }

.receipt-totals { margin: 0; padding-top: 1rem; border-top: 1px solid var(--kk-border); }
.receipt-totals div { display: flex; justify-content: space-between; gap: 1rem; margin: 0.4rem 0; }
.receipt-totals dt, .receipt-totals dd { margin: 0; color: var(--kk-muted); }
.receipt-total-row { margin-top: 0.75rem !important; padding-top: 0.75rem; border-top: 1px solid var(--kk-border); }
.receipt-total-row dt, .receipt-total-row dd { color: var(--kk-navy); font-family: var(--kk-font-heading); font-weight: 700; font-size: 1.05rem; }

.confirm-steps { margin-top: 2.5rem; }
.confirm-steps h2 { margin: 0 0 1.25rem; font-size: 1.15rem; }
.confirm-steps ol { list-style: none; margin: 0; padding: 0; }
.confirm-steps li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.confirm-step-n { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; background: var(--kk-card); border: 1px solid var(--kk-border); border-radius: 50%; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.85rem; color: var(--kk-blue); }
.confirm-step-t { margin: 0.25rem 0 0; font-family: var(--kk-font-heading); font-weight: 700; font-size: 0.95rem; }
.confirm-step-d { margin: 0.2rem 0 0; color: var(--kk-muted); font-size: 0.9rem; line-height: 1.55; }

.confirm-actions { display: flex; gap: 0.75rem; margin-top: 2.5rem; }
.confirm-actions a { flex: 1 1 0; text-align: center; text-decoration: none; }
.confirm-help { margin-top: 2rem; text-align: center; color: var(--kk-muted); font-size: 0.9rem; }

@media (max-width: 560px) {
  .confirm-actions { flex-direction: column; }
  .receipt-item { flex-wrap: wrap; }
  .receipt-item-price { width: 100%; text-align: right; }
}
