:root {
  --kgl-bft-ink: #171717;
  --kgl-bft-muted: #666;
  --kgl-bft-line: #e4e4e4;
  --kgl-bft-paper: #fff;
  --kgl-bft-soft: #f6f5f3;
  --kgl-bft-orange: #d35400;
  --kgl-bft-green: #1b2631;
}

html { scroll-behavior: smooth; }
body { color: var(--kgl-bft-ink); background: var(--kgl-bft-paper); }
body::before, body::after { pointer-events: none !important; }
.udp-overlay, .udp-backdrop, .shopify-pc__banner__dialog, #shopify-pc__banner,
dialog-component, quick-add-dialog, cart-drawer-component { display: none !important; }

.kgl-site-header {
  width: min(100% - 48px, 1384px);
  min-height: 84px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}
.kgl-site-logo { display: block; width: 68px; }
.kgl-site-logo img { display: block; width: 68px; height: 48px; object-fit: contain; }
.kgl-site-nav { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.kgl-site-nav a,
.kgl-mobile-nav a { color: #1d1d1d; text-decoration: none; font-size: 14px; white-space: nowrap; }
.kgl-site-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.kgl-header-actions { display: flex; align-items: center; gap: 8px; }
.kgl-icon-link,
.kgl-menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #222;
  cursor: pointer;
}
.kgl-icon-link svg,
.kgl-menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.kgl-icon-link .kgl-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--kgl-bft-green);
  color: #fff;
  font-size: 10px;
}
.kgl-menu-toggle { display: none; }
.kgl-mobile-nav { display: none; padding: 4px 24px 24px; border-top: 1px solid var(--kgl-bft-line); }
.kgl-mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px solid #eee; }
.kgl-mobile-nav.is-open { display: block; }

.kgl-loading {
  grid-column: 1 / -1;
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--kgl-bft-muted);
}

.kgl-catalog,
.kgl-cart-page,
.kgl-contact-page,
.kgl-product-page {
  width: min(100% - 48px, 1320px);
  margin-inline: auto;
  padding-block: clamp(46px, 7vw, 92px);
}

.kgl-page-kicker {
  margin: 0 0 12px;
  color: var(--kgl-bft-orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.kgl-page-title {
  max-width: 920px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.kgl-page-lead {
  max-width: 820px;
  margin: 22px 0 0;
  color: #474747;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
}

.kgl-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 56px 0 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--kgl-bft-line);
}

.kgl-search {
  width: min(100%, 420px);
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background: #fff;
  color: var(--kgl-bft-ink);
  font: inherit;
}

.kgl-result-count { color: var(--kgl-bft-muted); font-size: 14px; }

.kgl-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

.kgl-card { min-width: 0; }
.kgl-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  background: #f3f3f3;
}
.kgl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.kgl-card:hover .kgl-card__media img { transform: scale(1.025); }
.kgl-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: 999px;
  background: #198754;
  color: #fff;
  font-size: 11px;
  font-weight: 750;
}
.kgl-card__body { padding: 14px 2px 0; }
.kgl-card__title {
  margin: 0 0 7px;
  font-size: 16px;
  font-weight: 520;
  line-height: 1.35;
}
.kgl-card__title a { color: inherit; text-decoration: none; }
.kgl-card__price { color: var(--kgl-bft-orange); font-size: 16px; font-weight: 750; }
.kgl-card__price s { margin-left: 5px; color: #888; font-size: 13px; font-weight: 400; }

.kgl-product-top {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, .72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.kgl-product-gallery { min-width: 0; }
.kgl-product-main-image {
  width: 100%;
  aspect-ratio: 1.16 / 1;
  display: block;
  object-fit: cover;
  background: #f3f3f3;
}
.kgl-product-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.kgl-product-thumb {
  padding: 0;
  border: 1px solid transparent;
  background: #f3f3f3;
  cursor: pointer;
}
.kgl-product-thumb.is-active { border-color: #222; }
.kgl-product-thumb img { width: 100%; aspect-ratio: 1; display: block; object-fit: cover; }
.kgl-product-info { position: sticky; top: 28px; }
.kgl-product-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 480;
  letter-spacing: -.045em;
  line-height: 1.03;
}
.kgl-product-price { margin: 0 0 30px; font-size: 17px; }
.kgl-product-price s { margin-left: 7px; color: #888; }
.kgl-field-label { display: block; margin: 18px 0 8px; font-size: 13px; }
.kgl-variant-select {
  width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid #aaa;
  background: #fff;
  color: #222;
  font: inherit;
}
.kgl-buy-row { display: grid; grid-template-columns: 118px 1fr; gap: 12px; margin-top: 26px; }
.kgl-qty { display: grid; grid-template-columns: 36px 1fr 36px; border: 1px solid #aaa; min-height: 52px; }
.kgl-qty button, .kgl-qty input { border: 0; background: #fff; text-align: center; font: inherit; }
.kgl-qty button { cursor: pointer; }
.kgl-buy-button,
.kgl-checkout-button,
.kgl-form-button {
  min-height: 52px;
  padding: 12px 20px;
  border: 0;
  background: var(--kgl-bft-green);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.kgl-buy-button:disabled { cursor: not-allowed; opacity: .55; }
.kgl-product-description {
  max-width: 1000px;
  margin: 76px 0 0;
  font-size: 16px;
  line-height: 1.75;
}
.kgl-product-description h2,
.kgl-related > h2,
.kgl-cart-page h1,
.kgl-contact-copy h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 480;
  letter-spacing: -.045em;
  line-height: 1.04;
}
.kgl-faq { max-width: 1080px; margin: 80px auto 0; }
.kgl-faq h2 { text-align: center; font-size: clamp(30px, 4vw, 44px); font-weight: 480; }
.kgl-faq details { border: 1px solid var(--kgl-bft-line); margin-top: 12px; padding: 0 20px; }
.kgl-faq summary { cursor: pointer; padding: 20px 0; }
.kgl-faq p { color: #555; line-height: 1.65; }
.kgl-related { margin-top: 90px; }

.kgl-cart-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr); gap: 50px; margin-top: 42px; }
.kgl-cart-item { display: grid; grid-template-columns: 126px 1fr auto; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--kgl-bft-line); align-items: center; }
.kgl-cart-item img { width: 126px; height: 126px; object-fit: cover; background: #f3f3f3; }
.kgl-cart-item h2 { margin: 0 0 8px; font-size: 18px; }
.kgl-cart-meta { color: var(--kgl-bft-muted); font-size: 13px; }
.kgl-cart-actions { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.kgl-remove { border: 0; background: none; text-decoration: underline; cursor: pointer; }
.kgl-cart-summary { align-self: start; padding: 28px; background: var(--kgl-bft-soft); }
.kgl-cart-summary h2 { margin-top: 0; }
.kgl-summary-line { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid #ddd; }
.kgl-summary-total { font-size: 20px; font-weight: 750; }
.kgl-checkout-button { width: 100%; margin-top: 22px; }
.kgl-empty { padding: 70px 0; text-align: center; }
.kgl-empty a { display: inline-block; margin-top: 18px; color: #fff; background: var(--kgl-bft-green); padding: 13px 20px; text-decoration: none; }

.kgl-order-form,
.kgl-contact-form { display: grid; gap: 16px; }
.kgl-order-form { margin-top: 22px; }
.kgl-order-form[hidden] { display: none; }
.kgl-order-form input,
.kgl-order-form textarea,
.kgl-contact-form input,
.kgl-contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #bbb;
  background: #fff;
  color: #222;
  font: inherit;
}
.kgl-order-form textarea,
.kgl-contact-form textarea { min-height: 125px; resize: vertical; }

.kgl-contact-page { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(42px, 7vw, 100px); }
.kgl-contact-copy p { max-width: 560px; color: #555; font-size: 17px; line-height: 1.7; }
.kgl-contact-form-wrap { padding: clamp(24px, 4vw, 46px); background: var(--kgl-bft-soft); }
.kgl-form-status { min-height: 22px; margin: 0; font-size: 14px; }

.kgl-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 18px;
  background: #161e27;
  color: #fff;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: .2s ease;
}
.kgl-toast.is-visible { opacity: 1; transform: translateY(0); }
.kgl-chat {
  position: fixed;
  right: 24px;
  bottom: 22px;
  z-index: 90;
  padding: 12px 18px;
  border-radius: 999px;
  background: #111820;
  color: #fff !important;
  text-decoration: none;
  font-size: 13px;
  box-shadow: 0 8px 28px #0002;
}
.kgl-chat::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #2f9f59; }

@media (max-width: 990px) {
  .kgl-site-header { grid-template-columns: auto 1fr auto; min-height: 70px; }
  .kgl-site-nav { display: none; }
  .kgl-menu-toggle { display: grid; }
  .kgl-site-logo { justify-self: start; }
  .kgl-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kgl-product-top { grid-template-columns: 1fr; }
  .kgl-product-info { position: static; }
  .kgl-cart-layout, .kgl-contact-page { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .kgl-site-header { width: min(100% - 24px, 1384px); gap: 7px; }
  .kgl-site-logo, .kgl-site-logo img { width: 58px; }
  .kgl-header-actions { gap: 0; }
  .kgl-icon-link { width: 36px; }
  .kgl-catalog, .kgl-cart-page, .kgl-contact-page, .kgl-product-page { width: min(100% - 32px, 1320px); }
  .kgl-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
  .kgl-catalog-toolbar { align-items: stretch; flex-direction: column; }
  .kgl-search { width: 100%; }
  .kgl-product-thumbs { grid-template-columns: repeat(4, 1fr); }
  .kgl-buy-row { grid-template-columns: 1fr; }
  .kgl-cart-item { grid-template-columns: 92px 1fr; }
  .kgl-cart-item img { width: 92px; height: 92px; }
  .kgl-cart-item > strong { grid-column: 2; }
  .kgl-chat { right: 12px; bottom: 12px; }
}

/* ==========================================================================
   Cart drawer (added 2026-09-16)
   kougouleu-store.js builds #kgl-cart-overlay on the first add-to-cart, but
   no stylesheet in this project ever defined those classes, so the drawer
   rendered as an unstyled block at the bottom of the page on every page of
   the site. These are the missing rules. Purely additive - no existing
   selector is changed.
   ========================================================================== */
.kgl-cart-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(26, 18, 14, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}
.kgl-cart-drawer-overlay.is-visible { opacity: 1; visibility: visible; }

.kgl-cart-drawer {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(420px, 92vw);
  display: flex;
  flex-direction: column;
  background: #fcf9f5;
  box-shadow: -18px 0 46px rgba(26, 18, 14, 0.24);
  transform: translateX(100%);
  transition: transform 260ms ease;
}
.kgl-cart-drawer-overlay.is-visible .kgl-cart-drawer { transform: none; }

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #d9cbbd;
}
.cart-drawer-header h2 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  color: #1a120e;
}
.cart-drawer-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 26px;
  line-height: 1;
  color: #1a120e;
  cursor: pointer;
}

.cart-drawer-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; }
.cart-drawer-empty { padding: 40px 0; text-align: center; color: #74645a; }
.cart-drawer-empty h3 {
  margin: 0 0 8px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  color: #1a120e;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid #ece3da;
}
.cart-drawer-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #ece3da;
}
.cart-drawer-item h4 { margin: 0 0 3px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-drawer-item h4 a { color: #1a120e; text-decoration: none; }
.cart-drawer-item .item-variant { font-size: 12.5px; color: #74645a; }
.cart-drawer-item .item-price { font-size: 14px; font-weight: 600; color: #1a120e; white-space: nowrap; }

.cart-drawer-item .qty-controls { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid #d9cbbd; }
.cart-drawer-item .qty-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  font-size: 16px;
  line-height: 1;
  color: #1a120e;
  cursor: pointer;
}
.cart-drawer-item .qty-input {
  width: 38px;
  height: 32px;
  border: 0;
  border-inline: 1px solid #d9cbbd;
  background: none;
  text-align: center;
  font: inherit;
  font-size: 13px;
  color: #1a120e;
  -moz-appearance: textfield;
}
.cart-drawer-item .qty-input::-webkit-outer-spin-button,
.cart-drawer-item .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-drawer-item .item-remove {
  display: block;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 12.5px;
  color: #74645a;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cart-drawer-item .item-remove:hover { color: #8b4f32; }

.cart-drawer-footer { flex: none; padding: 16px 20px 22px; border-top: 1px solid #d9cbbd; background: #f2e8dc; }
.promo-cart-banner {
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px dashed #b7784c;
  background: #fcf9f5;
  font-size: 12.5px;
  color: #33261f;
}
.drawer-summary-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: #74645a; padding: 4px 0; }
.drawer-summary-total { font-size: 15px; color: #1a120e; }
.kgl-cart-drawer .kgl-checkout-button {
  background: #1a120e;
  border: 1px solid #b7784c;
  border-radius: 2px;
  color: #fcf9f5;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 13px;
  min-height: 52px;
}
.kgl-cart-drawer .kgl-checkout-button:hover { background: #8b4f32; border-color: #8b4f32; }
.kgl-drawer-basket-link {
  display: block;
  margin-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #33261f;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.kgl-drawer-basket-link:hover { color: #8b4f32; }
.cart-drawer-footer .checkout-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.5; color: #74645a; text-align: center; }

@media (max-width: 480px) {
  .kgl-cart-drawer { width: 100vw; }
}
