/* KONCIWA restrained global UI layer for the published Modern1 theme. */

body.kc-site-ui-modern1 {
  --kc-ui-brand: #556e46;
  --kc-ui-brand-dark: #405237;
  --kc-ui-brand-soft: #f2f5ef;
  --kc-ui-surface: #ffffff;
  --kc-ui-surface-soft: #f7f9f6;
  --kc-ui-ink: #263125;
  --kc-ui-muted: #687266;
  --kc-ui-line: #d9e1d5;
  --kc-ui-line-strong: #bdc9b8;
  --kc-ui-sale: #c92f35;
  --kc-ui-card-radius: 12px;
  --kc-ui-control-radius: 8px;
  --kc-ui-ease: cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--kc-ui-ink);
  background: var(--kc-ui-surface);
  color-scheme: light;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.kc-site-ui-modern1 ::selection {
  color: #ffffff;
  background: var(--kc-ui-brand);
}

body.kc-site-ui-modern1 .content-for-layout {
  color: var(--kc-ui-ink);
  background: var(--kc-ui-surface);
}

body.kc-site-ui-modern1 .content-for-layout .page-width {
  width: 100%;
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

body.kc-site-ui-modern1 .content-for-layout .rte :where(p, li) {
  color: #4f5b4d;
}

body.kc-site-ui-modern1 .breadcrumb {
  margin-bottom: 16px;
  color: var(--kc-ui-muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

body.kc-site-ui-modern1 .breadcrumb a {
  color: inherit;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

body.kc-site-ui-modern1 .breadcrumb a:hover {
  color: var(--kc-ui-brand);
}

body.kc-site-ui-modern1 :where(a, button, summary, input, select, textarea):focus-visible {
  outline: 2px solid var(--kc-ui-brand);
  outline-offset: 3px;
}

/* Header tools keep the current labels, icons and behavior. */
@media screen and (min-width: 960px) {
  body.kc-site-ui-modern1 .header .header__container {
    max-width: 1480px;
  }

  body.kc-site-ui-modern1 .header.tile-search .search-modal__field {
    min-width: 250px;
    border: 1px solid var(--kc-ui-line-strong);
    border-radius: var(--kc-ui-control-radius);
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(50, 72, 43, 0.04);
    transition: border-color 180ms ease, box-shadow 180ms ease;
  }

  body.kc-site-ui-modern1 .header.tile-search .search-modal__field:hover {
    border-color: var(--kc-ui-brand);
    box-shadow: 0 5px 16px rgba(64, 82, 55, 0.08);
  }

  body.kc-site-ui-modern1 .header.tile-search .search-modal__input {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  body.kc-site-ui-modern1 .header .header__icon-button {
    border-radius: var(--kc-ui-control-radius);
    transition: color 180ms ease, background-color 180ms ease, transform 180ms var(--kc-ui-ease);
  }

  body.kc-site-ui-modern1 .header .header__icon-button:hover {
    color: var(--kc-ui-brand-dark);
    background: var(--kc-ui-brand-soft);
  }

  body.kc-site-ui-modern1 .header .header__icon-button:active {
    transform: translateY(1px);
  }
}

/* Product cards: hierarchy is carried by the media surface, not a large box. */
body.kc-site-ui-modern1 .product-list-content {
  column-gap: clamp(18px, 2vw, 30px);
  row-gap: clamp(38px, 4vw, 64px);
}

body.kc-site-ui-modern1 .product-card-wrapper {
  min-width: 0;
  transition: transform 220ms var(--kc-ui-ease);
}

body.kc-site-ui-modern1 .product-card-wrapper .card__inner--wrapper,
body.kc-site-ui-modern1 .product-card-wrapper .card__media {
  overflow: hidden;
  border-radius: var(--kc-ui-card-radius);
}

body.kc-site-ui-modern1 .product-card-wrapper .card__inner--wrapper {
  border: 1px solid #e3e8e0;
  background: var(--kc-ui-surface-soft);
  box-shadow: 0 1px 0 rgba(50, 72, 43, 0.04);
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

body.kc-site-ui-modern1 .product-card-wrapper:hover {
  transform: translateY(-2px);
}

body.kc-site-ui-modern1 .product-card-wrapper:hover .card__inner--wrapper {
  border-color: #cad5c6;
  box-shadow: 0 10px 24px rgba(64, 82, 55, 0.09);
}

body.kc-site-ui-modern1 .product-card-wrapper .card__media img {
  transition: transform 360ms var(--kc-ui-ease);
}

body.kc-site-ui-modern1 .product-card-wrapper:hover .card__media img {
  transform: scale(1.015);
}

body.kc-site-ui-modern1 .product-card-wrapper .card__content {
  margin-top: 16px;
}

body.kc-site-ui-modern1 .product-card-wrapper .product__title {
  margin-bottom: 8px;
  color: var(--kc-ui-ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

body.kc-site-ui-modern1 .product-card-wrapper .product__title a:hover {
  color: var(--kc-ui-brand);
}

body.kc-site-ui-modern1 .product-card-wrapper .price,
body.kc-site-ui-modern1 .product__info-wrapper .price {
  color: var(--kc-ui-sale);
  font-variant-numeric: tabular-nums;
}

body.kc-site-ui-modern1 .product-card-wrapper :where(.price__sale, .price__regular),
body.kc-site-ui-modern1 .product__info-wrapper :where(.price__sale, .price__regular) {
  font-weight: 700;
}

body.kc-site-ui-modern1 .product-card-wrapper .card__badge > * {
  border-radius: 4px;
}

/* Collection pages keep their own title typography. */
body.kc-site-ui-modern1[data-template="collection"] .collection-hero {
  padding-top: clamp(28px, 3vw, 48px);
  padding-bottom: clamp(36px, 4vw, 64px);
}

body.kc-site-ui-modern1[data-template="collection"] .collection-hero__title {
  margin-bottom: 18px;
  color: var(--kc-ui-ink);
}

body.kc-site-ui-modern1[data-template="collection"] .collection-hero__description,
body.kc-site-ui-modern1[data-template="collection"] .collection-hero .rte {
  max-width: 92ch;
  color: #4f5b4d;
}

body.kc-site-ui-modern1[data-template="collection"] .facets-container {
  padding: 14px 0;
  border-top: 1px solid var(--kc-ui-line);
  border-bottom: 1px solid var(--kc-ui-line);
  background: rgba(255, 255, 255, 0.96);
}

body.kc-site-ui-modern1[data-template="collection"] :where(.facet-filters__field, .facets__summary, .mobile-facets__open) {
  color: var(--kc-ui-ink);
  font-weight: 500;
}

/* Product pages preserve existing title size and line-height settings. */
body.kc-site-ui-modern1[data-template="product"] .product__info-wrapper {
  padding-left: clamp(24px, 3vw, 52px);
}

body.kc-site-ui-modern1[data-template="product"] .product-title {
  max-width: 28ch;
  color: var(--kc-ui-ink);
  letter-spacing: 0.015em;
}

body.kc-site-ui-modern1[data-template="product"] .product__media,
body.kc-site-ui-modern1[data-template="product"] .product__media img,
body.kc-site-ui-modern1[data-template="product"] .thumbnail {
  border-radius: var(--kc-ui-control-radius);
}

body.kc-site-ui-modern1[data-template="product"] .thumbnail[aria-current="true"],
body.kc-site-ui-modern1[data-template="product"] .thumbnail.is-active {
  outline: 2px solid var(--kc-ui-brand);
  outline-offset: 2px;
}

body.kc-site-ui-modern1[data-template="product"] :where(.product__tax, .tax-text, .product__vendor) {
  color: var(--kc-ui-muted);
}

body.kc-site-ui-modern1[data-template="product"] .accordion {
  border-color: var(--kc-ui-line);
}

body.kc-site-ui-modern1[data-template="product"] .accordion__title {
  color: var(--kc-ui-ink);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Forms and selectors */
body.kc-site-ui-modern1 :where(.field__input, .select__select, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select) {
  border-color: var(--kc-ui-line-strong);
  border-radius: var(--kc-ui-control-radius);
  color: var(--kc-ui-ink);
  background: #ffffff;
  box-shadow: none;
}

body.kc-site-ui-modern1 :where(.field__input, .select__select, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select)::placeholder {
  color: #6d786b;
  opacity: 1;
}

body.kc-site-ui-modern1 :where(.field__input, .select__select, input[type="text"], input[type="email"], input[type="search"], input[type="tel"], textarea, select):focus {
  border-color: var(--kc-ui-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(85, 110, 70, 0.14);
}

body.kc-site-ui-modern1 .quantity,
body.kc-site-ui-modern1 .quantity__input {
  border-radius: var(--kc-ui-control-radius);
}

body.kc-site-ui-modern1 .quantity {
  overflow: hidden;
  border-color: var(--kc-ui-line-strong);
  background: #ffffff;
}

/* Drawers and modal surfaces */
body.kc-site-ui-modern1 :where(.drawer__inner, .cart-drawer, .modal__content, .predictive-search) {
  border-color: var(--kc-ui-line);
}

body.kc-site-ui-modern1 :where(.cart-drawer__heading, .modal__content h2) {
  color: var(--kc-ui-ink);
  font-weight: 600;
}

/* Editorial pages */
body.kc-site-ui-modern1[data-template="article"] :where(.article-template__header, .article-template__content),
body.kc-site-ui-modern1[data-template="blog"] :where(.main-blog__title, .blog-articles) {
  max-width: 980px;
  margin-right: auto;
  margin-left: auto;
}

body.kc-site-ui-modern1[data-template="article"] .article-template__content {
  color: #455143;
}

@media screen and (max-width: 959px) {
  body.kc-site-ui-modern1 .content-for-layout .page-width {
    padding-right: 20px;
    padding-left: 20px;
  }

  body.kc-site-ui-modern1[data-template="product"] .product__info-wrapper {
    padding: 24px 20px 0;
  }

  body.kc-site-ui-modern1[data-template="product"] .product-title {
    max-width: none;
  }

  body.kc-site-ui-modern1[data-template="collection"] .collection-hero {
    padding-top: 24px;
    padding-bottom: 36px;
  }

  body.kc-site-ui-modern1 .product-list-content {
    column-gap: 14px;
    row-gap: 36px;
  }

  body.kc-site-ui-modern1 .product-card-wrapper .card__content {
    margin-top: 12px;
  }

  body.kc-site-ui-modern1 .product-card-wrapper .product__title {
    font-size: 14px;
    line-height: 1.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.kc-site-ui-modern1 .product-card-wrapper,
  body.kc-site-ui-modern1 .product-card-wrapper .card__inner--wrapper,
  body.kc-site-ui-modern1 .product-card-wrapper .card__media img,
  body.kc-site-ui-modern1 .breadcrumb a,
  body.kc-site-ui-modern1 .header .header__icon-button,
  body.kc-site-ui-modern1 .header.tile-search .search-modal__field {
    transition: none !important;
  }

  body.kc-site-ui-modern1 .product-card-wrapper:hover,
  body.kc-site-ui-modern1 .product-card-wrapper:hover .card__media img {
    transform: none;
  }
}
