/*
 * KATYA WEBER CERAMICS storefront skin.
 * Scoped to native commerce templates; it does not replace InSales widgets,
 * product forms, variant selection, cart handlers or outside widgets.
 */


body[data-kw-shop-template="true"] {
  --kw-shop-ink: #262625;
  --kw-shop-muted: #686865;
  --kw-shop-line: #2a2a27;
  --kw-shop-soft: #f6f6f3;
  --kw-shop-gutter: 48px;
  --kw-shop-max-width: 1280px;
  --bg: #ffffff;
  --color-btn-bg: #262625;
  --color-accent-text: #262625;
  --color-text-dark: #262625;
  --color-text-light: #ffffff;
  --controls-btn-border-radius: 0px;
  margin: 0;
  background: #ffffff;
  color: var(--kw-shop-ink);
  font-family: Arial, Helvetica, sans-serif;
}

body[data-kw-shop-template="true"] *,
body[data-kw-shop-template="true"] *::before,
body[data-kw-shop-template="true"] *::after {
  box-sizing: border-box;
}

body[data-kw-shop-template="true"] :where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--kw-shop-ink);
  outline-offset: 3px;
}

.kw-shop {
  min-height: 100vh;
  overflow-x: clip;
  background: #ffffff;
  color: var(--kw-shop-ink);
}

.kw-shop-container {
  width: min(calc(100% - var(--kw-shop-gutter) * 2), var(--kw-shop-max-width));
  margin-inline: auto;
}

.kw-shop-layout {
  min-height: 100vh;
  background: #ffffff;
}

.kw-shop-layout > :where(.kw-shop-header, .kw-shop-footer) {
  grid-column: 1 / -1;
  width: 100%;
}

.kw-shop-content,
.kw-shop-sidebar,
.kw-shop-section-top {
  min-width: 0;
}

.kw-shop-content {
  scroll-margin-block-start: 24px;
}

.kw-shop-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: var(--kw-shop-gutter);
  padding: 10px 14px;
  border: 1px solid var(--kw-shop-line);
  background: #ffffff;
  color: var(--kw-shop-ink);
  font-size: 14px;
  line-height: 1.2;
  transform: translateY(-180%);
}

.kw-shop-skip-link:focus {
  transform: translateY(0);
}

.kw-shop-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kw-shop-rule {
  display: block;
  width: 100%;
  height: 20px;
  object-fit: fill;
  opacity: 0.76;
}

/* Header */

.kw-shop-header {
  position: relative;
  z-index: 20;
  padding-block: 28px 8px;
  background: #ffffff;
}

.kw-shop-header__bar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  min-height: 50px;
}

.kw-shop-wordmark {
  display: inline-flex;
  flex-direction: column;
  width: fit-content;
  color: var(--kw-shop-ink);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.kw-shop-wordmark__craft {
  font-size: 10px;
  letter-spacing: 0.21em;
}

.kw-shop-navigation__list {
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.kw-shop-navigation a,
.kw-shop-footer a {
  color: var(--kw-shop-ink);
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.kw-shop-navigation a {
  font-size: 13px;
  line-height: 1.25;
}

.kw-shop-navigation a[aria-current="page"] {
  text-decoration-color: currentColor;
}

.kw-shop-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--kw-shop-ink);
  cursor: pointer;
}

.kw-shop-menu-toggle[hidden],
.kw-shop-navigation[hidden] {
  display: none !important;
}

.kw-shop-menu-toggle__icon {
  display: grid;
  gap: 5px;
}

.kw-shop-menu-toggle__icon span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.kw-shop--menu-open .kw-shop-menu-toggle__icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.kw-shop--menu-open .kw-shop-menu-toggle__icon span:nth-child(2) {
  opacity: 0;
}

.kw-shop--menu-open .kw-shop-menu-toggle__icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Native widget presentation. Commerce behavior stays inside system widgets. */

.kw-shop-section-top,
.kw-shop-native,
.kw-shop-sidebar > section {
  color: var(--kw-shop-ink);
  font-family: Arial, Helvetica, sans-serif;
}

.kw-shop :where(h1, h2, h3, h4, p) {
  text-wrap: pretty;
}

.kw-shop :where(h1, h2, h3, h4) {
  color: var(--kw-shop-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.kw-shop :where(a) {
  color: var(--kw-shop-ink);
}

.kw-shop-section-top {
  padding-block-start: 16px;
}

.kw-shop-native {
  min-width: 0;
  max-width: 100%;
  padding-block-end: 32px;
}

/* The cart, shared-cart and product recommendation widgets are rendered by
 * InSales after the shell.  Their rows contain long titles, prices and native
 * controls; allow those flex/grid children to shrink instead of widening the
 * page or covering neighbouring controls. */
.kw-shop-native--cart,
.kw-shop-native--shared-cart,
.kw-shop-native--favorite {
  min-width: 0;
  max-width: 100%;
}

.kw-shop-native--cart :where(
  [data-cart-item],
  [class*="cart-item"],
  [class*="cart__"],
  [class*="cart-"],
  [class*="quantity"],
  [class*="counter"],
  [class*="remove"],
  [class*="delete"],
  [class*="recommend"],
  [class*="related"],
  [class*="similar"]
),
.kw-shop-native--shared-cart :where(
  [data-cart-item],
  [class*="cart-item"],
  [class*="cart__"],
  [class*="cart-"],
  [class*="quantity"],
  [class*="counter"],
  [class*="remove"],
  [class*="delete"]
) {
  min-width: 0;
  max-width: 100%;
}

.kw-shop-native--cart :where(
  [class*="title"],
  [class*="name"],
  [class*="description"],
  [class*="price"],
  [class*="total"],
  [class*="summary"]
),
.kw-shop-native--shared-cart :where(
  [class*="title"],
  [class*="name"],
  [class*="description"],
  [class*="price"],
  [class*="total"],
  [class*="summary"]
) {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Cart actions are injected by the native widget. Keep the favorite control
 * and removal link as separate tap targets when the row becomes narrow. */
.kw-shop-native--cart .widget-type_system_widget_v4_cart_2 .item-delete {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.kw-shop-native--cart .widget-type_system_widget_v4_cart_2 .item-delete > :where(a, button, [role="button"]) {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

@media (min-width: 551px) {
  .kw-shop-native--cart .widget-type_system_widget_v4_cart_2 .cart-item .item-delete {
    grid-column: 2 / 4;
  }
}

.kw-shop-native :where([data-product-card], [class*="product-card"]) {
  color: var(--kw-shop-ink);
}

.kw-shop-native :where([data-product-card], [class*="product-card"]) img {
  background: var(--kw-shop-soft);
}

.kw-shop-native :where([data-product-card-price], [data-product-card-sku]) {
  font-variant-numeric: tabular-nums;
}

.kw-shop-native :where([data-item-add], button[type="submit"], input[type="submit"], .button) {
  min-height: 44px;
  border-radius: 0;
}

body[data-kw-shop-template="true"] :where([data-item-add], button[type="submit"], input[type="submit"], .button) {
  border-color: var(--kw-shop-line);
  border-radius: 0;
}

body[data-kw-shop-template="true"] :where(
  .kw-shop-native .add-cart-counter__btn,
  .kw-shop-native .add-cart-counter__controls-btn,
  .kw-shop-native [data-item-add],
  .kw-shop-native button[type="submit"],
  .kw-shop-native input[type="submit"],
  .kw-shop-native a.button,
  .kw-shop-native button.button
) {
  border: 1px solid var(--kw-shop-line) !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: var(--kw-shop-ink) !important;
  transition: background-color 140ms ease, color 140ms ease;
}

body[data-kw-shop-template="true"] :where(
  .product-preview__compare-btn,
  [data-compare-trigger],
  .navigation-bar__item-compare
) {
  display: none !important;
}

body[data-kw-shop-template="true"] .favorites_btn {
  min-width: 44px;
  min-height: 44px;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--kw-shop-ink) !important;
  opacity: 0.72;
}

body[data-kw-shop-template="true"] .favorites_btn.favorites-added,
body[data-kw-shop-template="true"] .favorites_btn:hover,
body[data-kw-shop-template="true"] .favorites_btn:focus-visible {
  opacity: 1;
}

body[data-kw-shop-template="true"] :where(.noUi-target, .noUi-base, .noUi-connects) {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body[data-kw-shop-template="true"] .noUi-target,
body[data-kw-shop-template="true"] .noUi-connects {
  background: #dfdfda !important;
}

body[data-kw-shop-template="true"] .noUi-connect {
  background: var(--kw-shop-ink) !important;
}

body[data-kw-shop-template="true"] .noUi-handle {
  border: 1px solid var(--kw-shop-line) !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: none !important;
  color: var(--kw-shop-ink) !important;
}

body[data-kw-shop-template="true"] .noUi-handle::before,
body[data-kw-shop-template="true"] .noUi-handle::after {
  display: none !important;
}

body[data-kw-shop-template="true"] :where(.navigation-bar__bage, [data-ui-cart-counter]) {
  background: var(--kw-shop-ink) !important;
  color: #ffffff !important;
}

.kw-shop-native :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.outside-widgets :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 44px;
  border-radius: 0;
}

.kw-shop-native [data-product-variants] {
  color: var(--kw-shop-ink);
}

/* Product imagery/title keep their native links and controls keep their own
 * actions. Clicking the remaining blank card area follows the same product. */
.kw-shop-native .product-preview {
  cursor: pointer;
}

.kw-shop-native .product-preview :where(a, button, input, select, textarea, label, [role="button"]) {
  cursor: pointer;
}

.kw-shop--load-more-ready .kw-shop-native--collection .widget-type_system_widget_v4_pagination_3 {
  display: none !important;
}

.kw-catalog-load-more {
  display: flex;
  justify-content: center;
  padding: 30px var(--kw-shop-gutter) 56px;
}

.kw-catalog-load-more[hidden] {
  display: none !important;
}

.kw-catalog-load-more__button {
  position: relative;
  min-width: 190px;
}

.kw-catalog-load-more__button[hidden] {
  display: none !important;
}

.kw-catalog-load-more__button.is-loading {
  padding-right: 46px;
  cursor: wait;
}

.kw-catalog-load-more__button.is-loading::after {
  position: absolute;
  top: 50%;
  right: 20px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border: 1px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: kw-shop-load-more-spin 650ms linear infinite;
  content: "";
}

@keyframes kw-shop-load-more-spin {
  to { transform: rotate(360deg); }
}

body[data-theme-template="favorite"] .product-preview__area-title,
body[data-theme-template="favorite"] .product-preview__title,
body[data-theme-template="favorite"] .product-preview__price {
  min-width: 0;
  overflow-wrap: anywhere;
}

body[data-theme-template="favorite"] .product-preview__area-bottom,
body[data-theme-template="favorite"] .product-preview__controls,
body[data-theme-template="favorite"] .product-preview__controls-left {
  min-width: 0;
}

body[data-theme-template="favorite"] .favorites_btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  margin: 0 !important;
}

@media (max-width: 430px) {
  body[data-theme-template="favorite"] .kw-shop-native--favorite :where(
    .grid-list__item,
    [data-product-card],
    [data-ajax-products-list-item],
    [data-ajax-products-list-item-form],
    .product-preview
  ) {
    min-width: 0;
    max-width: 100%;
  }
}

/* Catalog hierarchy comes from native InSales collections. Empty leaves,
 * including the reserved discount section, are not shown. */

.kw-collection-navigation {
  padding-block: 28px 44px;
}

.kw-collection-navigation__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 16px 0 0;
  border-top: 1px solid color-mix(in srgb, var(--kw-shop-line) 55%, transparent);
  list-style: none;
}

.kw-collection-navigation__item {
  min-width: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--kw-shop-line) 55%, transparent);
}

.kw-collection-navigation__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  min-height: 64px;
  padding: 20px 16px 18px 0;
  color: var(--kw-shop-ink);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
}

.kw-collection-navigation__count {
  color: var(--kw-shop-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

/* Native widgets own price, variants, stock and cart submission. This block
 * only explains the handmade variation and the catalog policy around repeats. */

.kw-product-craft-note {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: clamp(40px, 7vw, 96px);
  padding-block: 48px 64px;
  border-top: 1px solid color-mix(in srgb, var(--kw-shop-line) 55%, transparent);
}

.kw-product-craft-note h2 {
  max-width: 620px;
  margin: 12px 0 18px;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
}

.kw-product-craft-note__copy > p:not(.kw-shop-eyebrow),
.kw-product-repeatable {
  max-width: 620px;
  margin: 0;
  color: var(--kw-shop-muted);
  font-size: 15px;
  line-height: 1.55;
}

.kw-product-craft-note__status {
  align-self: end;
  padding-top: 12px;
}

.kw-product-status {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kw-product-status--available::before,
.kw-product-status--sold-out::before {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.kw-product-craft-note__status .kw-shop-button,
.kw-product-craft-note__status .kw-shop-text-link {
  margin-top: 22px;
}

.kw-shop-sidebar > section {
  border-top: 1px solid color-mix(in srgb, var(--kw-shop-line) 55%, transparent);
}

/* Empty catalog fallback is public-only; editor keeps the native empty widget. */

.kw-shop-empty {
  width: min(calc(100% - var(--kw-shop-gutter) * 2), 760px);
  margin: 64px auto 96px;
  text-align: center;
}

.kw-shop-empty h2 {
  margin: 12px 0 22px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
}

.kw-shop-empty > p:not(.kw-shop-eyebrow) {
  max-width: 530px;
  margin: 0 auto;
  color: var(--kw-shop-muted);
  font-size: 17px;
  line-height: 1.55;
}

.kw-shop-eyebrow {
  margin: 0;
  color: var(--kw-shop-muted);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.kw-shop-empty__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

/* A parent collection is a navigation page, not an empty search result. */
body[data-kw-shop-template="true"] .kw-shop-native--has-subcollections .empty-catalog-message {
  display: none;
}

.kw-shop-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 11px 24px;
  border: 1px solid var(--kw-shop-line);
  background: transparent;
  color: var(--kw-shop-ink);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: none;
}

.kw-shop-text-link {
  color: var(--kw-shop-ink);
  font-size: 13px;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

/* Footer */

.kw-shop-footer {
  padding-block: 22px 40px;
  background: #ffffff;
}

.kw-shop-footer__grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) 1fr minmax(190px, 0.8fr);
  gap: 48px;
  padding-top: 34px;
}

.kw-shop-wordmark--footer {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 0.025em;
}

.kw-shop-footer__description,
.kw-shop-footer__contacts p {
  margin: 14px 0 0;
  color: var(--kw-shop-muted);
  font-size: 13px;
  line-height: 1.45;
}

.kw-shop-footer__navigation,
.kw-shop-footer__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.35;
}

.kw-shop-footer__contacts[hidden] {
  display: none !important;
}

.kw-shop-footer__contacts p {
  margin: 0 0 2px;
}

.kw-shop-footer__social-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.kw-shop-footer .kw-legal-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.35;
}

.kw-shop-footer .kw-legal-links a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 32px;
  color: var(--kw-shop-muted);
}

@media (hover: hover) {
  .kw-shop-navigation a:hover,
  .kw-shop-footer a:hover {
    text-decoration-color: currentColor;
  }

  .kw-shop-button:hover,
  body[data-kw-shop-template="true"] [data-item-add]:hover,
  body[data-kw-shop-template="true"] .kw-shop-native .add-cart-counter__btn:hover,
  body[data-kw-shop-template="true"] .kw-shop-native .add-cart-counter__controls-btn:hover,
  body[data-kw-shop-template="true"] .kw-shop-native button[type="submit"]:hover,
  body[data-kw-shop-template="true"] .kw-shop-native input[type="submit"]:hover,
  body[data-kw-shop-template="true"] .kw-shop-native a.button:hover,
  body[data-kw-shop-template="true"] .kw-shop-native button.button:hover {
    background: var(--kw-shop-ink) !important;
    color: #ffffff !important;
  }
}

body[data-kw-shop-template="true"] :where(
  .kw-shop-native .add-cart-counter__btn,
  .kw-shop-native .add-cart-counter__controls-btn,
  .kw-shop-native [data-item-add],
  .kw-shop-native button[type="submit"],
  .kw-shop-native input[type="submit"],
  .kw-shop-native a.button,
  .kw-shop-native button.button
):focus-visible {
  background: var(--kw-shop-ink) !important;
  color: #ffffff !important;
}

body[data-kw-shop-template="true"] :where(
  .kw-shop-native .add-cart-counter__btn,
  .kw-shop-native .add-cart-counter__controls-btn,
  .kw-shop-native [data-item-add],
  .kw-shop-native button[type="submit"],
  .kw-shop-native input[type="submit"],
  .kw-shop-native a.button,
  .kw-shop-native button.button
):active {
  background: #ecece8 !important;
  color: var(--kw-shop-ink) !important;
}

@media (max-width: 1023px) {
  body[data-kw-shop-template="true"] {
    --kw-shop-gutter: 36px;
  }

  .kw-shop-header__bar {
    gap: 20px;
  }

  .kw-shop-navigation__list {
    gap: 20px;
  }

  .kw-shop-footer__grid {
    gap: 32px;
  }

  .kw-collection-navigation__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  body[data-kw-shop-template="true"] {
    --kw-shop-gutter: 24px;
  }

  .kw-shop-header {
    padding-block-start: 18px;
  }

  .kw-shop-header__bar {
    position: relative;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 4px;
  }

  .kw-shop-menu-toggle {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .kw-shop-wordmark {
    grid-column: 2;
    grid-row: 1;
    font-size: 15px;
  }

  .kw-shop-wordmark__craft {
    font-size: 9px;
  }

  .kw-shop--enhanced .kw-shop-menu-toggle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
  }

  .kw-shop-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-block: 12px 6px;
  }

  .kw-shop-navigation__list {
    display: grid;
    gap: 0;
  }

  .kw-shop-navigation a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border-top: 1px solid color-mix(in srgb, var(--kw-shop-line) 40%, transparent);
    font-size: 15px;
  }

  .kw-shop-header .kw-header-utilities {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .kw-shop-empty {
    margin-block: 48px 72px;
  }

  .kw-shop-empty__actions {
    flex-direction: column;
    gap: 16px;
  }

  .kw-collection-navigation {
    padding-block: 18px 34px;
  }

  .kw-collection-navigation__list {
    grid-template-columns: 1fr;
  }

  .kw-collection-navigation__link {
    min-height: 56px;
    padding-block: 16px;
  }

  .kw-product-craft-note {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 38px 50px;
  }

  .kw-product-craft-note__status {
    align-self: auto;
    padding-top: 0;
  }

  .kw-shop-button {
    width: 100%;
    max-width: 320px;
  }

  .kw-shop-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-top: 26px;
  }

  .kw-shop-footer__grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 399px) {
  body[data-kw-shop-template="true"] {
    --kw-shop-gutter: 16px;
  }

  .kw-shop-footer__grid {
    grid-template-columns: 1fr;
  }

  .kw-shop-footer__grid > :first-child {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .kw-shop *,
  .kw-shop *::before,
  .kw-shop *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
