/* ═══════════════════════════════════════════════════════
   Komorebi Art — Tulen Template Overrides + Custom Styles
   ═══════════════════════════════════════════════════════ */

/* ── Brand color: replace Tulen's #2916e0 blue with warm earthy bronze ── */
:root {
  --brand:       #7a5c2e;
  --brand-light: #9a7440;
  --brand-dark:  #5c3d1e;
  --ink:         #252525;
  --ink-muted:   #636363;
  --paper:       #faf8f4;
}

/* Tulen blue overrides */
.site-btn,
.site-btn:focus { background: var(--brand); color: #fff; }
.site-btn:hover  { background: var(--brand-light); color: #fff; }

.main-menu ul li a:hover,
.main-menu ul li a.active { color: var(--brand); }

.site-logo { background: var(--brand-dark); padding: 0 16px; }
.site-logo img { height: 52px; width: auto; object-fit: contain; }

/* menu-switch and menu-close styles are set below in SIDE MENU section */

.pa-tag { color: var(--brand) !important; }

/* Gallery filter active */
.gallery-filter li.active,
.gallery-filter li:hover { color: var(--brand); border-color: var(--brand); }

/* Body background: warm off-white */
body { background: var(--paper); }

/* ── Site logo: use image properly ── */
.site-logo { display: flex; align-items: center; justify-content: center; }

/* ── Preloader: match brand ── */
#preloder { background: var(--paper); }
.loader {
  border-color: var(--brand) !important;
  border-left-color: transparent !important;
}

/* ── Cart badge in nav ── */
.nav-cart-link { position: relative; display: inline-block; }
.cart-count {
  display: none;
  position: absolute;
  top: -6px; right: -10px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  line-height: 18px;
  text-align: center;
}
.cart-count.has-items { display: block; }

/* ── Gallery page — full-viewport, properly scrollable ── */
.gallery-section {
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 30px 0 110px; /* 90px sidebar + 20px gap */
}
.gallery-header  { flex-shrink: 0; padding: 32px 0 20px; }
.gallery-header h4 { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 20px; }

.gallery-filter { list-style: none; display: flex; gap: 0; flex-wrap: wrap; }
.gallery-filter li {
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.gallery-filter li.active,
.gallery-filter li:hover { color: var(--brand); border-color: var(--brand); }

.gallery-warp { }
.grid-sizer, .gallery-item { width: 33.333%; padding: 6px; }
.gallery-item.gi-big   { width: 66.666%; }
.gallery-item.gi-long  { }

@media (max-width: 768px) {
  .grid-sizer, .gallery-item { width: 50%; }
  .gallery-item.gi-big { width: 100%; }
}
@media (max-width: 480px) {
  .grid-sizer, .gallery-item { width: 100%; }
  .gallery-item.gi-big { width: 100%; }
}

.gallery-item a, .gallery-item-link {
  display: block;
  overflow: hidden;
  position: relative;
  background: #111;
  text-decoration: none;
}
.gallery-item a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease, opacity 0.3s;
  aspect-ratio: 4/3;
}
.gallery-item.gi-big a img  { aspect-ratio: 16/9; }
.gallery-item.gi-long a img { aspect-ratio: 3/4; }

.gallery-item a:hover img { transform: scale(1.06); opacity: 0.85; }

.gi-hover {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,0.72));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}
.gallery-item a:hover .gi-hover { opacity: 1; pointer-events: auto; }

.gi-hover .gi-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  flex: 1;
}
.gi-hover .gi-meta {
  font-size: 12px;
  color: rgba(255,255,255,0.75);
  margin-top: 2px;
}
.gi-hover .gi-price {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.gi-status-sold { font-size: 11px; background: rgba(255,255,255,0.2); padding: 2px 8px; border-radius: 2px; color: #fff; }

/* Placeholder (no image) */
.gi-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #2a2018, #3d3020);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.gi-placeholder-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 0 16px;
}
.gi-placeholder-cat {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* ── Artwork detail page ── */
.artwork-page {
  padding: 60px 60px 100px 120px;
  max-width: 1300px;
}
@media (max-width: 768px) { .artwork-page { padding: 60px 24px 80px 24px; } }

.artwork-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 900px) {
  .artwork-detail { grid-template-columns: 1fr; gap: 40px; }
}

.artwork-img-wrap {
  position: sticky;
  top: 40px;
  background: var(--paper);
  overflow: hidden;
}
.artwork-img-wrap img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 75vh;
}
.artwork-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #1a150d, #2d2318);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

.artwork-info { }

.artwork-eyebrow {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 12px;
}
.artwork-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.2;
}
.artwork-price-original {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 4px;
}
.artwork-price-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.artwork-desc {
  font-size: 15px;
  color: var(--ink-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.artwork-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(0,0,0,0.03);
  border-left: 3px solid var(--brand);
}
.meta-row-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 3px;
}
.meta-row-value { font-size: 14px; font-weight: 500; color: var(--ink); }

.artwork-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.artwork-actions .site-btn { min-width: 140px; }
.btn-outline {
  display: inline-block;
  font-size: 14px;
  padding: 16px 24px;
  min-width: 140px;
  color: var(--brand);
  background: transparent;
  border: 2px solid var(--brand);
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.sold-notice {
  background: rgba(122,92,46,0.08);
  border: 1px solid rgba(122,92,46,0.2);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--brand-dark);
  margin-bottom: 20px;
  font-style: italic;
}

/* ── Print options section (on original page) ── */
.prints-section-divider {
  margin: 48px 0 32px;
  border: none;
  border-top: 1px solid rgba(0,0,0,0.1);
}
.prints-section-heading {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.print-option-card {
  border: 1px solid rgba(0,0,0,0.1);
  padding: 20px;
  margin-bottom: 12px;
  background: var(--paper);
}
.print-option-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.size-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.size-btn-k {
  padding: 8px 16px;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--ink);
}
.size-btn-k.active,
.size-btn-k:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.finish-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.print-add-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qty-ctrl { display: flex; align-items: center; gap: 10px; }
.qty-ctrl button {
  width: 32px; height: 32px;
  border: 1px solid rgba(0,0,0,0.2);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.qty-ctrl button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty-ctrl span { font-size: 16px; font-weight: 600; min-width: 24px; text-align: center; }

/* ── About page ── */
.about-section { height: 100vh; overflow-y: auto; padding: 60px 80px 80px 120px; }
@media (max-width: 768px) { .about-section { padding: 60px 24px 60px 24px; } }

.about-content { max-width: 680px; }
.about-eyebrow { font-size: 11px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.about-content h1 { font-size: clamp(32px,5vw,56px); font-weight: 700; margin-bottom: 28px; line-height: 1.15; }
.about-content blockquote {
  border-left: 3px solid var(--brand);
  padding-left: 24px;
  margin: 32px 0;
  font-size: 18px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.7;
}
.about-content p { font-size: 15px; color: var(--ink-muted); line-height: 1.9; margin-bottom: 20px; }
.about-content h2 { font-size: 22px; font-weight: 700; margin: 36px 0 14px; color: var(--ink); }
.about-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

/* ── Contact page ── */
.contact-section { height: 100vh; overflow-y: auto; padding: 60px 80px 80px 120px; }
@media (max-width: 768px) { .contact-section { padding: 60px 24px 60px 24px; } }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; max-width: 1000px; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-panel-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand); margin-bottom: 20px; }

.form-group-k { margin-bottom: 20px; }
.form-group-k label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 7px; }
.form-control-k {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.2s;
}
.form-control-k:focus { outline: none; border-color: var(--brand); }
textarea.form-control-k { min-height: 110px; resize: vertical; }
select.form-control-k { appearance: none; cursor: pointer; }

.contact-info-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; max-width: 1000px; }
@media (max-width: 640px) { .contact-info-row { grid-template-columns: 1fr; } }
.info-cell { border-top: 2px solid var(--brand); padding-top: 16px; }
.info-cell-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 6px; }
.info-cell-value { font-size: 16px; font-weight: 600; color: var(--ink); }

/* ── Cart / Checkout ── */
.cart-page { height: 100vh; overflow-y: auto; padding: 60px 80px 80px 120px; }
@media (max-width: 768px) { .cart-page { padding: 60px 24px 60px 24px; } }
.page-h1 { font-size: 13px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 8px; }
.page-h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: var(--ink); margin-bottom: 40px; }

.cart-grid { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; max-width: 1000px; }
@media (max-width: 800px) { .cart-grid { grid-template-columns: 1fr; } }

.cart-panel { border: 1px solid rgba(0,0,0,0.08); padding: 28px; background: var(--paper); }
.cart-panel-title { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 20px; }

.cart-item-k {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.cart-item-k-info { flex: 1; }
.cart-item-k-title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.cart-item-k-meta  { font-size: 13px; color: var(--ink-muted); }
.cart-item-k-price { font-size: 16px; font-weight: 700; color: var(--brand-dark); white-space: nowrap; }
.cart-item-k-remove { background: none; border: none; color: var(--ink-muted); font-size: 12px; cursor: pointer; padding: 4px 0; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 6px; display: block; }
.cart-item-k-remove:hover { color: #c0392b; }

.qty-ctrl-sm { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-ctrl-sm button { width: 26px; height: 26px; border: 1px solid rgba(0,0,0,0.15); background: none; cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.qty-ctrl-sm button:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.qty-ctrl-sm span { font-size: 14px; font-weight: 600; min-width: 20px; text-align: center; }

.summary-section { }
.summary-row-k { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-muted); padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.summary-total-k { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; color: var(--ink); padding: 14px 0 0; margin-top: 4px; }
.discount-row-k { color: #2e7d46; }

.promo-row { display: flex; gap: 8px; margin-bottom: 16px; }
.promo-row input { flex: 1; padding: 10px 12px; border: 1px solid rgba(0,0,0,0.15); font-size: 13px; font-family: inherit; }
.promo-row button { padding: 10px 16px; background: var(--brand); color: #fff; border: none; cursor: pointer; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.promo-row button:hover { background: var(--brand-light); }
.promo-msg { font-size: 12px; font-style: italic; color: var(--ink-muted); margin-bottom: 12px; }

/* ── Toast ── */
.toast-k {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  z-index: 99999;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  white-space: nowrap;
}
.toast-k.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-k.error { background: #c0392b; }

/* ── Scrollable page wrapper (for non-hero pages) ── */
.page-wrapper {
  height: 100vh;
  overflow-y: auto;
}

/* ── Loading state ── */
.loading-msg { text-align: center; padding: 80px 24px; font-size: 15px; color: var(--ink-muted); font-style: italic; }

/* ── Nicescroll custom style for gallery — fill remaining space ── */
.nice-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) transparent;
}
.nice-scroll::-webkit-scrollbar { width: 6px; }
.nice-scroll::-webkit-scrollbar-track { background: transparent; }
.nice-scroll::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 3px; opacity: 0.7; }

/* ═══════════════════════════════════════════════════════
   SIDE MENU — slim, refined over Tulen's 30px/270px defaults
   ═══════════════════════════════════════════════════════ */
.side-menu-wrapper {
  background: var(--paper) !important;
  border-right: 1px solid rgba(0,0,0,0.08) !important;
  width: 210px !important;
  left: -210px !important;
}
.side-menu-wrapper.active { left: 0 !important; }
@media (max-width: 420px) { .side-menu-wrapper { width: 100% !important; left: -100% !important; } }

.sm-header { height: 60px !important; min-height: 0 !important; padding: 0 !important; }
.menu-close {
  width: 60px !important;
  height: 60px !important;
  line-height: 60px !important;
  background: transparent !important;
  color: var(--ink-muted) !important;
  font-size: 18px !important;
}
.menu-close:hover { color: var(--brand) !important; }

/* Logo inside side menu header */
.sm-header .site-logo {
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 12px !important;
  background: transparent !important;
  flex: 1 !important;
  min-width: 0 !important;
}
.sm-header .site-logo img {
  height: 34px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
}

.main-menu { padding: 28px 0 !important; height: auto !important; }
.main-menu ul { text-align: left !important; padding: 0 !important; }
.main-menu ul li { margin-bottom: 0 !important; }
.main-menu ul li a {
  font-size: 11px !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  font-weight: 500 !important;
  padding: 11px 22px !important;
  color: var(--ink-muted) !important;
  display: block !important;
  transition: color 0.2s, padding-left 0.2s !important;
  text-decoration: none !important;
}
.main-menu ul li a:hover { color: var(--brand) !important; padding-left: 30px !important; }
.main-menu ul li a.active { color: var(--brand) !important; font-weight: 600 !important; }
.sm-footer { padding: 18px 22px !important; border-top: 1px solid rgba(0,0,0,0.08) !important; }
.sm-footer .sm-socail a { color: var(--ink-muted) !important; font-size: 15px !important; margin-right: 12px !important; }
.sm-footer .sm-socail a:hover { color: var(--brand) !important; }
.sm-footer .copyright-text p { font-size: 10px !important; color: var(--ink-muted) !important; letter-spacing: 0.05em !important; margin: 8px 0 0 !important; }
/* Left hamburger bar */
.menu-wrapper { background: var(--paper) !important; border-right: 1px solid rgba(0,0,0,0.06) !important; }
.menu-switch { background: transparent !important; color: var(--ink-muted) !important; font-size: 16px !important; }
.menu-switch:hover { color: var(--brand) !important; }
.menu-close { color: var(--ink-muted) !important; }
.menu-close:hover { color: var(--brand) !important; }
/* Social icons in hamburger bar */
.menu-social a { color: var(--ink-muted) !important; font-size: 14px !important; }
.menu-social a:hover { color: var(--brand) !important; }
/* Footer social icons in side menu */
.sm-footer .sm-socail a { color: var(--ink-muted) !important; font-size: 14px !important; }
.sm-footer .sm-socail a:hover { color: var(--brand) !important; }

/* ═══════════════════════════════════════════════════════
   DARK THEME
   Toggled by adding class 'dark-theme' to <html>
   ═══════════════════════════════════════════════════════ */
html.dark-theme {
  --paper:       #1c1812;
  --ink:         #f0ece4;
  --ink-muted:   #a8988a;
  --brand:       #c49a50;
  --brand-light: #d4aa60;
  --brand-dark:  #a07840;
}

/* ── Logo: white version in dark mode ── */
html.dark-theme .site-logo img { content: url('../komorebi-logo.png'); }

/* ── Body + global ── */
html.dark-theme body                   { background: var(--paper); color: var(--ink); }
html.dark-theme #preloder             { background: #1c1812; }

/* ── Side menu + hamburger bar ── */
html.dark-theme .side-menu-wrapper     { background: #110e0a !important; border-right-color: rgba(255,255,255,0.08) !important; }
html.dark-theme .menu-wrapper          { background: #110e0a !important; border-right-color: rgba(255,255,255,0.08) !important; }
html.dark-theme .menu-switch           { color: var(--ink-muted) !important; }
html.dark-theme .sm-footer            { border-top-color: rgba(255,255,255,0.08) !important; }
html.dark-theme .sm-footer .copyright-text p { color: var(--ink-muted) !important; }

/* ── Nav links ── */
html.dark-theme .main-menu ul li a    { color: var(--ink-muted) !important; }
html.dark-theme .main-menu ul li a:hover,
html.dark-theme .main-menu ul li a.active { color: var(--brand) !important; }

/* ── Social icons (hamburger bar + footer) ── */
html.dark-theme .menu-social a,
html.dark-theme .sm-footer .sm-socail a { color: var(--ink-muted) !important; }
html.dark-theme .menu-social a:hover,
html.dark-theme .sm-footer .sm-socail a:hover { color: var(--brand) !important; }

/* ── Gallery / page sections ── */
html.dark-theme .gallery-section       { background: var(--paper); }
html.dark-theme .gallery-header h4    { color: var(--ink-muted); }
html.dark-theme .gallery-filter li    { color: var(--ink-muted); }
html.dark-theme .about-section,
html.dark-theme .contact-section,
html.dark-theme .cart-page             { background: var(--paper); }
html.dark-theme .page-wrapper          { background: var(--paper); }

/* ── Headings + text (catch any Tulen defaults) ── */
html.dark-theme h1, html.dark-theme h2,
html.dark-theme h3, html.dark-theme h4,
html.dark-theme h5, html.dark-theme h6 { color: var(--ink); }
html.dark-theme p                      { color: var(--ink-muted); }
html.dark-theme a                      { color: var(--brand); }
html.dark-theme a:hover                { color: var(--brand-light); }

/* ── Artwork page ── */
html.dark-theme .artwork-meta          { background: rgba(255,255,255,0.04); border-left-color: var(--brand); }
html.dark-theme .artwork-meta          { background: rgba(255,255,255,0.05); }
html.dark-theme .meta-row-label        { color: var(--ink-muted); }
html.dark-theme .meta-row-value        { color: var(--ink); }
html.dark-theme .artwork-title         { color: var(--ink); }
html.dark-theme .artwork-desc          { color: var(--ink-muted); }
html.dark-theme .artwork-price-label   { color: var(--ink-muted); }
html.dark-theme .sold-notice           { background: rgba(196,154,80,0.08); border-color: rgba(196,154,80,0.2); color: var(--brand); }
html.dark-theme .prints-section-divider { border-top-color: rgba(255,255,255,0.1); }
html.dark-theme .prints-section-heading { color: var(--ink-muted); }

/* ── Print option cards ── */
html.dark-theme .print-option-card     { background: #231d14; border-color: rgba(255,255,255,0.1); }
html.dark-theme .print-option-title    { color: var(--ink); }
html.dark-theme .size-btn-k            { color: var(--ink); border-color: rgba(255,255,255,0.18); background: transparent; }
html.dark-theme .size-btn-k.active,
html.dark-theme .size-btn-k:hover      { background: var(--brand); color: #1c1812; border-color: var(--brand); }
html.dark-theme .qty-ctrl button       { border-color: rgba(255,255,255,0.18); color: var(--ink); }
html.dark-theme .qty-ctrl span         { color: var(--ink); }

/* ── Cart / checkout ── */
html.dark-theme .cart-panel            { background: #231d14; border-color: rgba(255,255,255,0.1); }
html.dark-theme .cart-panel-title      { color: var(--ink-muted); }
html.dark-theme .cart-item-k           { border-bottom-color: rgba(255,255,255,0.08); }
html.dark-theme .cart-item-k-title     { color: var(--ink); }
html.dark-theme .cart-item-k-meta      { color: var(--ink-muted); }
html.dark-theme .cart-item-k-price     { color: var(--brand); }
html.dark-theme .cart-item-k-remove    { color: var(--ink-muted); }
html.dark-theme .qty-ctrl-sm button    { border-color: rgba(255,255,255,0.15); color: var(--ink); }
html.dark-theme .qty-ctrl-sm span      { color: var(--ink); }
html.dark-theme .qty-ctrl-btn          { border-color: rgba(255,255,255,0.15); color: var(--ink); }
html.dark-theme .qty-ctrl-btn:hover    { background: var(--brand); color: #1c1812; border-color: var(--brand); }
html.dark-theme .summary-row-k         { border-bottom-color: rgba(255,255,255,0.07); color: var(--ink-muted); }
html.dark-theme .summary-total-k       { color: var(--ink); }
html.dark-theme .promo-row input       { background: #1a1510; color: var(--ink); border-color: rgba(255,255,255,0.15); }
html.dark-theme .promo-msg             { color: var(--ink-muted); }

/* ── Contact form ── */
html.dark-theme .form-control-k        { background: #1a1510; color: var(--ink); border-color: rgba(255,255,255,0.15); }
html.dark-theme .form-control-k:focus  { border-color: var(--brand); }
html.dark-theme select.form-control-k  { background: #1a1510; }
html.dark-theme .form-group-k label    { color: var(--ink-muted); }
html.dark-theme .info-cell             { border-top-color: var(--brand); }
html.dark-theme .info-cell-label       { color: var(--ink-muted); }
html.dark-theme .info-cell-value       { color: var(--ink); }

/* ── Buttons ── */
html.dark-theme .btn-outline           { color: var(--brand); border-color: var(--brand); }
html.dark-theme .btn-outline:hover     { background: var(--brand); color: #1c1812; }
html.dark-theme .site-btn             { background: var(--brand); color: #1c1812; }
html.dark-theme .site-btn:hover       { background: var(--brand-light); color: #1c1812; }

/* ── Loading state ── */
html.dark-theme .loading-msg          { color: var(--ink-muted); }

/* ═══════════════════════════════════════════════════════
   CART ITEM THUMBNAIL
   ═══════════════════════════════════════════════════════ */
.cart-item-k-thumb {
  width: 68px; height: 68px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.cart-item-k-thumb-empty {
  width: 68px; height: 68px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2a2018, #3d3020);
}
html.dark-theme .cart-item-k-thumb-empty { background: linear-gradient(135deg, #1a1510, #2a1e10); }

/* ── Contact page content wrapper ── */
.contact-content { max-width: 1000px; }
.contact-section h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--ink); margin-bottom: 10px; }

/* ── Cart / checkout content wrapper ── */
.cart-content { max-width: 1000px; }
.cart-content h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 700; color: var(--ink); margin-bottom: 36px; }

/* ── Qty button in cart list ── */
.qty-ctrl-btn {
  width: 28px; height: 28px;
  border: 1px solid rgba(0,0,0,0.15);
  background: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.qty-ctrl-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ═══════════════════════════════════════════════════════
   ARTWORK LIGHTBOX / MAGNIFIER
   ═══════════════════════════════════════════════════════ */

/* Zoom hint on the artwork image */
.artwork-img-wrap {
  cursor: zoom-in;
  position: relative;
}
.artwork-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
  display: flex;
  align-items: center;
  gap: 6px;
}
.artwork-img-wrap:hover .artwork-zoom-hint { opacity: 1; }

/* Lightbox overlay */
.ka-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.ka-lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* Stage: clips the image; cursor changes with zoom state */
.ka-lb-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.ka-lb-stage.zoomed    { cursor: grab; }
.ka-lb-stage.dragging  { cursor: grabbing; }

/* The image inside lightbox */
.ka-lb-stage img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  display: block;
  transform-origin: 0 0;
  transition: transform 0.12s ease;
  user-select: none;
  pointer-events: none;
  will-change: transform;
}
.ka-lb-stage.dragging img { transition: none; }

/* Close button */
.ka-lb-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 100000;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  transition: color 0.15s;
}
.ka-lb-close:hover { color: #fff; }

/* Zoom controls */
.ka-lb-controls {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0,0,0,0.55);
  padding: 8px 18px;
  border-radius: 30px;
  z-index: 100000;
}
.ka-lb-controls button {
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 20px;
  cursor: pointer;
  padding: 2px 8px;
  line-height: 1;
  transition: color 0.15s;
}
.ka-lb-controls button:hover { color: #fff; }
.ka-lb-zoom-level {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  min-width: 42px;
  text-align: center;
}

/* ═══════════════════════════════════════════════════════
   IMAGE PROTECTION — prevent casual download / drag
   ═══════════════════════════════════════════════════════ */
img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;   /* clicks fall through to parent <a> */
}
/* Artwork detail + lightbox images need pointer-events for zoom click */
.artwork-img-wrap img,
.ka-lb-stage img {
  pointer-events: auto;
}
