:root {
  --bg: #ffffff;
  --text: #101215;
  --muted: #5f6972;
  --line: #e6eaee;
  --chip: #f6f8fa;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap { width: min(1400px, 94vw); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  overflow: visible;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 92px;
  padding: 0.5rem 0;
}
.brand { display: flex; align-items: center; }
.brand-logo-full { height: 88px; width: auto; display: block; }
.brand-logo-mark { display: none; height: 56px; width: auto; }
.site-nav { display: flex; gap: 0.95rem; align-items: center; }
.site-nav a { text-decoration: none; color: #2f353b; font-size: 0.94rem; }
.site-nav a:hover, .cta-link { color: #000; font-weight: 600; }
.menu-btn { display: none; }
.link-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #2f353b;
  font: inherit;
  font-size: 0.94rem;
  padding: 0.45rem 0.5rem;
  cursor: pointer;
  border-radius: 2px;
  line-height: 1;
}
.link-btn:hover {
  color: #000;
  border-color: #20242a;
}
.cart-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 2px;
  width: 42px;
  height: 42px;
  padding: 0;
  font: inherit;
  color: #2f353b;
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  position: relative;
}
.cart-icon {
  font-size: 1.05rem;
  line-height: 1;
}
.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid #fff;
}

.hero { border-bottom: 1px solid var(--line); }
.hero-inner { padding: 2.2rem 0 1.8rem; }
.eyebrow { margin: 0; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.78rem; color: var(--muted); }
h1 { margin: 0.55rem 0 0.8rem; font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: 1.06; letter-spacing: 0; }
.lead { margin: 0; max-width: 70ch; color: #323940; }

.section { padding: 1.4rem 0 3rem; }
.tools {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #30363b;
  border-radius: 2px;
  font: inherit;
  padding: 0.42rem 0.72rem;
  cursor: pointer;
}
.filter-btn.active {
  background: transparent;
  border-color: #1d2228;
  color: #111;
  font-weight: 600;
}
.sort { display: grid; gap: 0.25rem; min-width: 200px; color: var(--muted); font-size: 0.84rem; }
select {
  border: 1px solid #1f2329;
  border-radius: 2px;
  background: #fff;
  padding: 0.55rem 0.65rem;
  font: inherit;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2.2rem 1.2rem;
}
.card {
  border: none;
  border-radius: 0;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.meta { padding: 0.75rem; }
.meta p { margin: 0; color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; }
.meta h3 {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 500;
  line-height: 1.3;
}
.price { color: #131313; font-weight: 700; margin: 0; }
.actions { display: none !important; }
.actions button, .actions a, .modal-buy {
  border: 1px solid #1f2329;
  border-radius: 2px;
  background: transparent;
  color: #14181b;
  text-decoration: none;
  font: inherit;
  text-align: center;
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.actions a, .modal-buy { background: transparent; color: #111; border-color: #1f2329; }

.details { border-top: 1px solid var(--line); }
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.grid-two article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: #fff;
}

.quick-modal {
  border: none;
  background: transparent;
  width: min(95vw, 1220px);
  padding: 0;
}
.quick-modal::backdrop { background: rgba(12, 16, 20, 0.72); }
.quick-card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 0;
  padding: 0.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 0.75rem;
  align-items: start;
}
.quick-media-wrap {
  border: 1px solid #111;
  background: #fff;
  padding: 0.75rem;
  position: relative;
}
.quick-info {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  border: 1px solid #111;
  padding: 0.7rem;
  min-height: 100%;
  background: #fff;
}
.quick-close {
  position: absolute;
  right: 0.9rem;
  top: 0.9rem;
  border: 1px solid #1f2329;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.88);
  padding: 0.35rem 0.6rem;
  font: inherit;
  z-index: 2;
}
.quick-image {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 2px;
  border: 1px solid var(--line);
  display: block;
  margin: 0;
}
.quick-card #quickCollection {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.quick-card #quickTitle {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1.1;
}
.quick-card #quickPrice {
  margin: 0;
  font-size: 1.25rem;
}
.quick-ratio {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.modal-buy {
  width: fit-content;
  padding: 0.62rem 0.9rem;
}
.modal-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.modal-options label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  padding: 1rem 0 1.5rem;
}
.footer-kp-logo {
  display: block;
  width: clamp(36px, 4.2vw, 54px);
  height: auto;
  margin: 0 auto 0.45rem;
  opacity: 0.9;
}
.footer-link {
  color: var(--muted);
  font-size: 0.88rem;
}

.info-modal {
  border: none;
  background: transparent;
  width: min(94vw, 920px);
  padding: 0;
}
.info-modal::backdrop { background: rgba(12, 16, 20, 0.72); }
.info-card {
  background: #fff;
  border: 2px solid #111;
  border-radius: 0;
  padding: 0.85rem;
  max-height: min(88vh, 900px);
  overflow: auto;
}
.info-card h2 {
  margin: 0 0 0.8rem;
  font-size: 1.5rem;
}
.faq-list {
  display: grid;
  gap: 0.75rem;
}
.faq-list section {
  border: 1px solid #111;
  border-radius: 0;
  padding: 0.7rem;
}
.faq-list h3 {
  margin: 0 0 0.35rem;
  font-size: 0.98rem;
}
.faq-list p,
.policy-copy p {
  margin: 0;
  color: #333b43;
  line-height: 1.5;
}
.policy-copy {
  display: grid;
  gap: 0.7rem;
}
.about-card h2 {
  text-align: center;
  margin-top: 0.2rem;
}
.about-accent-logo {
  display: block;
  margin: 0.15rem auto 0.25rem;
  width: clamp(68px, 9vw, 94px);
  height: auto;
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  width: min(420px, 100vw);
  height: 100vh;
  background: #fff;
  border-left: 2px solid #111;
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  padding: 0.85rem;
  transform: translateX(102%);
  transition: transform 0.22s ease;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.8rem;
  overflow: hidden;
}
.cart-body {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding-right: 0.2rem;
}
.cart-panel.open { transform: translateX(0); }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-head .quick-close {
  position: static;
  margin: 0;
}
.cart-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: visible;
  max-height: none;
  display: grid;
  gap: 0.7rem;
}
.cart-item {
  border: 1px solid #111;
  border-radius: 0;
  padding: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
}
.cart-item-title {
  margin: 0 0 0.15rem;
  font-weight: 600;
}
.cart-item-meta,
.cart-item-price {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.cart-item-price {
  color: #111;
  font-weight: 600;
}
.cart-remove {
  border: 1px solid #1f2329;
  border-radius: 2px;
  background: transparent;
  font: inherit;
  height: fit-content;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
}
.cart-empty {
  margin: 0;
  color: var(--muted);
}
.cart-total {
  margin: 0;
  font-size: 1rem;
}
.cart-checkout {
  width: 100%;
  min-height: 44px;
}
.checkout-form {
  display: grid;
  gap: 0.55rem;
  overflow: visible;
}
.checkout-form label {
  display: grid;
  gap: 0.22rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.checkout-form input,
.checkout-form select {
  border: 1px solid #1f2329;
  border-radius: 2px;
  padding: 0.55rem 0.62rem;
  font: inherit;
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.checkout-success {
  margin: 0;
  color: #175e2f;
  font-size: 0.82rem;
}

@media (max-width: 1100px) {
  .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  body.cart-open { overflow: hidden; }
  .gallery-grid, .grid-two { grid-template-columns: 1fr; }
  .nav {
    min-height: 72px;
    padding: 0.45rem 0;
  }
  .brand-logo-full { display: none; }
  .brand-logo-mark { display: block; height: 46px; }
  .menu-btn {
    display: inline-block;
    border: 1px solid #1f2329;
    border-radius: 2px;
    background: transparent;
    color: #2f353b;
    font: inherit;
    font-size: 0.94rem;
    line-height: 1;
    padding: 0.45rem 0.5rem;
    cursor: pointer;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 4rem;
    right: 3vw;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.55rem;
    flex-direction: column;
    align-items: stretch;
    min-width: 220px;
  }
  .site-nav a,
  .site-nav .link-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.55rem 0.5rem;
    border: 1px solid transparent;
  }
  .site-nav a { font-size: 0.96rem; }
  .site-nav a:hover,
  .site-nav .link-btn:hover { border-color: #20242a; }
  .link-btn { width: 100%; text-align: left; }
  .cart-toggle {
    width: 42px;
    margin-top: 0.25rem;
    justify-self: start;
  }
  .site-nav.open { display: flex; }
  .tools { flex-direction: column; align-items: start; }
  .sort { width: 100%; }
  .hero-inner { padding: 1.35rem 0 1.2rem; }
  h1 { font-size: clamp(1.8rem, 7.2vw, 2.2rem); }
  .lead { font-size: 0.98rem; line-height: 1.45; }
  .section { padding: 1.1rem 0 2.2rem; }
  .gallery-grid { gap: 1.15rem 0.9rem; }
  .meta h3 {
    font-size: 0.95rem;
    letter-spacing: 0.08em;
  }
  .quick-card {
    grid-template-columns: 1fr;
    padding: 0.6rem;
  }
  .quick-media-wrap { padding: 0.6rem; }
  .quick-info { padding: 0.6rem; }
  .quick-close {
    right: 0.7rem;
    top: 0.7rem;
  }
  .quick-image { max-height: 58vh; }
  .cart-panel {
    width: 100vw;
    height: 100dvh;
    border-left: none;
    border-top: 2px solid #111;
    padding: max(0.7rem, env(safe-area-inset-top)) 0.7rem max(0.7rem, env(safe-area-inset-bottom));
    box-shadow: none;
  }
  .cart-head {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 2;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #111;
  }
  .cart-head h2 { font-size: 1.08rem; }
  .cart-body {
    gap: 0.7rem;
    padding-top: 0.2rem;
    padding-right: 0;
    overscroll-behavior: contain;
  }
  .cart-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    align-items: start;
  }
  .cart-remove {
    width: 100%;
    min-height: 40px;
  }
  .checkout-form {
    gap: 0.48rem;
  }
  .checkout-form input,
  .checkout-form select {
    min-height: 42px;
    font-size: 16px;
  }
  .checkout-row {
    grid-template-columns: 1fr;
  }
}
