/* Kinlig — tienda / producto / carrito (sobre shop.css) */

.sh-page {
  padding: 36px 0 72px;
}

.sh-page-head {
  margin-bottom: 28px;
}

.sh-page-head h1 {
  margin: 0 0 8px;
  font-family: var(--sh-serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
}

.sh-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--sh-muted);
}

.sh-breadcrumbs a:hover { color: var(--sh-olive); }
.sh-breadcrumbs li[hidden] {
  display: none !important;
}
.sh-breadcrumbs li:has(+ li:not([hidden]))::after {
  content: "/";
  margin-left: 8px;
  opacity: .5;
}

/* Shop PC: sidebar filtros + grid */
.sh-shop-body {
  display: block;
}

.sh-shop-sidebar {
  margin-bottom: 24px;
}

.sh-shop-filter-trigger {
  display: none;
}

.sh-shop-filter-title {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sh-muted, rgba(17, 17, 17, 0.55));
}

.sh-shop-filter-sheet {
  display: contents;
}

.sh-shop-filter-backdrop {
  display: none;
}

.sh-shop-filter-sheet-head,
.sh-shop-filter-sheet-foot {
  display: none;
}

.sh-shop-filter-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 4px 0 0;
}

.sh-shop-filter-sheet-body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sh-shop-filter-sheet-body .sh-shop-filter-title:not(:first-child) {
  margin-top: 22px;
}

.sh-filter-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--sh-cream-deep, #f4f4f4);
  padding: 4px;
}

.sh-filter-options-stock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.sh-filter-options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.sh-filter-options-chips .sh-filter-opt {
  width: auto;
  flex: 1 1 calc(50% - 4px);
  min-width: calc(50% - 4px);
  text-align: center;
  padding: 11px 12px;
}

.sh-filter-options-chips .sh-filter-opt.is-active::after {
  display: none;
}

/* Slider doble de precio */
.sh-price-range {
  background: var(--sh-cream-deep, #f4f4f4);
  padding: 14px 14px 18px;
}

.sh-price-range-values {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 650;
  color: var(--sh-ink, #111);
  letter-spacing: 0.01em;
}

.sh-price-range-sep {
  color: var(--sh-muted, #888);
  font-weight: 500;
}

.sh-price-range-slider {
  position: relative;
  height: 28px;
}

.sh-price-range-rail,
.sh-price-range-fill {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 999px;
  pointer-events: none;
}

.sh-price-range-rail {
  background: color-mix(in srgb, var(--sh-ink, #111) 18%, transparent);
}

.sh-price-range-fill {
  left: 0;
  width: 100%;
  background: var(--sh-btn-bg, #111);
}

.sh-price-range-input {
  position: absolute;
  left: 0;
  width: 100%;
  top: 50%;
  margin: 0;
  padding: 0;
  transform: translateY(-50%);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  height: 28px;
  pointer-events: none;
}

.sh-price-range-input::-webkit-slider-runnable-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.sh-price-range-input::-moz-range-track {
  height: 3px;
  background: transparent;
  border: 0;
}

.sh-price-range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  margin-top: -7.5px;
  border-radius: 50%;
  border: 2px solid var(--sh-btn-bg, #111);
  background: var(--sh-card, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sh-price-range-input::-moz-range-thumb {
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--sh-btn-bg, #111);
  background: var(--sh-card, #fff);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  cursor: grab;
}

.sh-price-range-input:active::-webkit-slider-thumb,
.sh-price-range-input:focus-visible::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.sh-price-range-input:active::-moz-range-thumb,
.sh-price-range-input:focus-visible::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.08);
}

.sh-price-range-input:focus {
  outline: none;
}

.sh-price-range-input--max {
  z-index: 2;
}

.sh-price-range-input--min {
  z-index: 3;
}

.sh-shop-count {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--sh-muted, #777);
}

.sh-shop-count[hidden] {
  display: none !important;
}

.sh-filter-opt {
  appearance: none;
  position: relative;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--sh-ink, #222);
  padding: 13px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.sh-filter-opt:hover {
  background: color-mix(in srgb, var(--sh-ink, #111) 8%, transparent);
}

.sh-filter-opt.is-active {
  background: var(--sh-btn-bg, #111);
  color: var(--sh-btn-text, #fff);
  font-weight: 650;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.sh-filter-opt.is-active::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--sh-btn-text, #fff);
  border-bottom: 2px solid var(--sh-btn-text, #fff);
  transform: translateY(-60%) rotate(45deg);
}

.sh-filter-options-stock .sh-filter-opt {
  text-align: center;
  padding: 12px 10px;
}

.sh-filter-options-stock .sh-filter-opt.is-active::after {
  display: none;
}

.sh-filter-reset,
.sh-filter-apply {
  appearance: none;
  font: inherit;
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease, transform 0.18s ease;
}

.sh-filter-reset {
  margin-top: 20px;
  width: 100%;
  border: 1px solid var(--sh-line-strong, #111);
  background: transparent;
  color: var(--sh-ink, #111);
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sh-filter-reset:hover {
  background: var(--sh-btn-bg, #111);
  color: var(--sh-btn-text, #fff);
  border-color: var(--sh-btn-bg, #111);
}

.sh-filter-apply {
  display: none;
}

/* legacy category chips (ocultos si quedan) */
.sh-filter-group,
.sh-filter-chip,
.sh-filter-toggle,
.sh-filter-children {
  display: none !important;
}

@media (min-width: 721px) {
  .sh-shop-body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 36px;
    align-items: start;
  }

  .sh-shop-sidebar {
    position: sticky;
    top: 100px;
    margin-bottom: 0;
  }

  .sh-shop-sidebar .sh-shop-search {
    width: 100%;
    max-width: none;
    margin-bottom: 8px;
  }

  .sh-shop-filter-trigger {
    display: none !important;
  }

  .sh-shop-filter-sheet[hidden] {
    display: contents !important;
  }

  .sh-shop-filter-panel {
    border: 1px solid var(--sh-line, #ececec);
    background: var(--sh-card, #fff);
    padding: 18px 16px 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  }

  .sh-shop-toolbar {
    display: none;
  }
}

@media (max-width: 720px) {
  .sh-shop-sidebar {
    display: block;
    margin-bottom: 14px;
  }

  .sh-shop-sidebar .sh-shop-search {
    width: 100%;
    margin-bottom: 10px;
  }

  .sh-shop-filter-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 10px 14px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
    color: #111;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  }

  .sh-shop-filter-trigger:active {
    transform: scale(0.985);
  }

  .sh-shop-filter-trigger-ico {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: #111;
    color: #fff;
  }

  .sh-shop-filter-trigger-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
  }

  .sh-shop-filter-trigger-text strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
  }

  .sh-shop-filter-trigger-text em {
    font-style: normal;
    font-size: 12px;
    color: rgba(17, 17, 17, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sh-shop-filter-trigger-chev {
    width: 8px;
    height: 8px;
    border-right: 1.6px solid #111;
    border-bottom: 1.6px solid #111;
    transform: rotate(-45deg);
    margin-right: 4px;
    flex: 0 0 auto;
    opacity: 0.7;
  }

  .sh-shop-filter-sheet {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
  }

  .sh-shop-filter-sheet:not([hidden]) {
    pointer-events: auto;
    visibility: visible;
  }

  .sh-shop-filter-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: rgba(10, 10, 10, 0.42);
    opacity: 0;
    transition: opacity 0.28s ease;
    cursor: pointer;
  }

  .sh-shop-filter-sheet.is-open .sh-shop-filter-backdrop {
    opacity: 1;
  }

  .sh-shop-filter-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    max-height: min(86dvh, 640px);
    padding: 0;
    background: var(--sh-card, #fff);
    color: var(--sh-ink, #111);
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.18);
    transform: translateY(104%);
    transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
  }

  .sh-shop-filter-sheet.is-open .sh-shop-filter-panel {
    transform: none;
  }

  .sh-shop-filter-sheet-head {
    display: block;
    padding: 12px 18px 10px;
    border-bottom: 1px solid rgba(17, 17, 17, 0.06);
    flex: 0 0 auto;
  }

  .sh-shop-filter-handle {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
  }

  .sh-shop-filter-sheet-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .sh-shop-filter-sheet-title-row h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
  }

  .sh-shop-filter-sheet-x {
    appearance: none;
    width: 36px;
    height: 36px;
    border: 0;
    background: var(--sh-cream-deep, #f3f3f3);
    color: var(--sh-ink, #111);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .sh-shop-filter-sheet-body {
    flex: 1 1 auto;
    overflow: auto;
    padding: 16px 16px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .sh-shop-filter-sheet-body .sh-shop-filter-title {
    margin-bottom: 10px;
  }

  .sh-filter-options {
    background: var(--sh-cream-deep, #f2f2f2);
  }

  .sh-filter-opt {
    padding: 14px 40px 14px 14px;
    font-size: 15px;
  }

  .sh-filter-options-stock .sh-filter-opt {
    padding: 13px 12px;
  }

  .sh-shop-filter-sheet-foot {
    display: grid;
    grid-template-columns: 0.9fr 1.2fr;
    gap: 8px;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    background: #fff;
    flex: 0 0 auto;
  }

  .sh-filter-reset {
    margin-top: 0;
    min-height: 48px;
    letter-spacing: 0.08em;
  }

  .sh-filter-apply {
    display: block;
    min-height: 48px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    padding: 13px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .sh-filter-apply:active,
  .sh-filter-reset:active {
    transform: scale(0.985);
  }

  body.shop-filter-sheet-open {
    overflow: hidden;
  }

  body.shop-filter-sheet-open .sh-app-nav,
  body.shop-filter-sheet-open .sh-cart-fab,
  body.shop-filter-sheet-open .sh-cats-fab {
    visibility: hidden;
    pointer-events: none;
  }
}

.sh-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.sh-filters a,
.sh-filter-chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
  font-family: var(--sh-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sh-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.sh-filters a:hover,
.sh-filters a.is-active,
.sh-filter-chip:hover,
.sh-filter-chip.is-active {
  background: var(--sh-olive);
  border-color: var(--sh-olive);
  color: #fff;
}

/* Toolbar: buscador + categorías */
.sh-shop-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.sh-shop-search {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
}

.sh-shop-search-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sh-muted);
  pointer-events: none;
  display: grid;
  place-items: center;
}

.sh-shop-search input {
  width: 100%;
  box-sizing: border-box;
  height: 46px;
  padding: 0 42px 0 42px;
  border: 1px solid var(--sh-line-strong, rgba(0, 0, 0, 0.18));
  border-radius: 999px;
  background: var(--sh-card, #fff);
  font-family: var(--sh-sans);
  font-size: 16px;
  color: var(--sh-ink);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.sh-shop-search input::placeholder {
  color: var(--sh-muted);
}

.sh-shop-search input:focus {
  border-color: var(--sh-ink, rgba(0, 0, 0, 0.45));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sh-ink, #111) 12%, transparent);
}

.sh-shop-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--sh-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.sh-shop-search-clear:hover {
  color: var(--sh-olive);
}

.sh-shop-toolbar .sh-filters {
  margin-bottom: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  gap: 8px;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  mask-image: linear-gradient(90deg, #000 0%, #000 calc(100% - 28px), transparent 100%);
}

.sh-shop-toolbar .sh-filters::-webkit-scrollbar {
  display: none;
}

.sh-filter-chip {
  scroll-snap-align: start;
}

.sh-shop-empty {
  margin: 0 0 18px;
  color: var(--sh-muted);
  font-size: 14px;
}

.sh-card[hidden] {
  display: none !important;
}

@media (min-width: 900px) {
  .sh-shop-toolbar {
    gap: 16px;
  }

  .sh-shop-search {
    max-width: 480px;
  }

  .sh-shop-toolbar .sh-filters {
    mask-image: none;
    padding-bottom: 4px;
  }
}

/* Cart drawer */
.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 420px;
  height: 100%;
  z-index: 10001;
  background: var(--sh-cream) !important;
  color: var(--sh-ink);
  font-family: var(--sh-sans);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-cart-open .cart-modal {
  transform: translateX(0);
}

.modal-cart-open {
  overflow: hidden;
}

.site-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}

.modal-cart-open .site-modal-backdrop,
.modal-cats-open .site-modal-backdrop {
  opacity: 1;
  visibility: visible;
}

.cart-modal .cart-modal-header {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--sh-line, rgba(0, 0, 0, 0.12));
  position: relative;
}

.cart-modal .modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  border: 0;
  cursor: pointer;
  color: #fff;
}

.cart-modal .cart-modal-header .main-title {
  display: block;
  font-size: 15px;
  line-height: 22px;
  font-weight: 400;
  color: var(--sh-muted);
  margin: 0;
  padding-right: 48px;
}

.cart-page-empty .cart-empty {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 650;
}

.cart-page-empty .cart-empty-hint {
  margin: 0;
  font-size: 14px;
  color: var(--sh-muted, #777);
  line-height: 1.45;
}

.cart-modal .cart-empty-block {
  display: none;
  text-align: center;
  padding: 12px 8px 8px;
}

.cart-modal .cart-empty {
  display: none;
  color: var(--sh-muted);
  opacity: 0;
  transform: translateY(8px);
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 650;
  color: var(--sh-text, #111);
}

.cart-modal .cart-empty-hint {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--sh-muted, #777);
}

.cart-modal .cart-empty-cta {
  display: inline-block;
}

.cart-modal.is-empty .cart-empty-block {
  display: block;
  animation: sh-cart-empty-in .42s cubic-bezier(.22, 1, .36, 1) forwards;
}

.cart-modal.is-empty .cart-empty {
  display: block;
  opacity: 1;
  transform: none;
}

.cart-modal.is-empty .cart-list { display: none; }
.cart-modal.is-empty .cart-totals-breakdown,
.cart-modal.is-empty #cart-eta-note { display: none; }

@keyframes sh-cart-empty-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cart-modal .cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cart-modal .cart-list li {
  display: flex;
  align-items: flex-start;
  position: relative;
  margin: 0 0 28px;
  padding: 0 28px 0 0;
  overflow: hidden;
  transition:
    opacity .36s cubic-bezier(.22, 1, .36, 1),
    transform .36s cubic-bezier(.22, 1, .36, 1),
    max-height .42s cubic-bezier(.22, 1, .36, 1),
    margin .42s cubic-bezier(.22, 1, .36, 1),
    padding .42s cubic-bezier(.22, 1, .36, 1);
}

.cart-modal .cart-list li.is-leaving {
  opacity: 0;
  transform: translateX(14px) scale(0.98);
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}

.cart-modal .cart-list .image {
  width: 72px;
  flex-shrink: 0;
  margin: 0 18px 0 0;
  overflow: hidden;
  border-radius: 10px;
  background: var(--sh-cream-deep);
}

.cart-modal .cart-list .image img {
  max-width: 100%;
  display: block;
}

.cart-modal .cart-list .description { flex: 1; min-width: 0; }

.cart-modal .cart-modal-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
}

.cart-modal .total-price-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 20px;
}

.cart-modal .total-price-area .title-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-muted);
}

.cart-modal .total-price-area .price {
  font-family: var(--sh-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--sh-olive);
}

.cart-modal .cart-actions {
  display: grid;
  gap: 8px;
}

.cart-modal .btn-primary,
.cart-modal .sh-btn {
  background: var(--sh-btn-bg, var(--sh-olive));
  color: var(--sh-btn-text, #fff);
}

.cart-num {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--sh-gold);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sh-icon-btn { position: relative; }

/* Product detail overrides */
body.kinlig-body .main-heading,
body.kinlig-body .product-title,
body.kinlig-body h1.main-heading {
  font-family: var(--sh-serif) !important;
  color: var(--sh-ink);
}

body.kinlig-body .btn-primary,
body.kinlig-body button.btn-primary,
body.kinlig-body .add-to-cart,
body.kinlig-body [data-add-to-cart].btn {
  background: var(--sh-olive) !important;
  border-color: var(--sh-olive) !important;
  border-radius: 999px !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.kinlig-body .price,
body.kinlig-body .product-price {
  color: var(--sh-olive) !important;
  font-family: var(--sh-serif);
}

.sh-empty-note {
  padding: 48px 24px;
  text-align: center;
  color: var(--sh-muted);
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: var(--sh-radius);
  background: rgba(255,255,255,0.35);
  grid-column: 1 / -1;
}

/* Cart page */
.sh-cart-page {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 320px);
  gap: 32px;
  align-items: start;
}

.sh-cart-table {
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--sh-radius);
  overflow: hidden;
}

.sh-cart-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.sh-cart-head {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-muted);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
}

.sh-cart-product {
  display: flex;
  gap: 14px;
  align-items: center;
}

.sh-cart-thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--sh-cream-deep);
}

.sh-cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-cart-name {
  font-family: var(--sh-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--sh-olive);
  line-height: 1.25;
}

.sh-cart-product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.sh-cart-product-meta .sh-cart-name {
  flex: 1;
  min-width: 0;
}

.sh-cart-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--sh-muted);
}

.sh-cart-line-total {
  font-family: var(--sh-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--sh-olive);
}

.sh-cart-remove {
  display: none;
}

.sh-cart-qty {
  justify-content: center;
}

.cart-modal .cart-list .product-name {
  display: block;
  font-family: var(--sh-serif);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}

.cart-modal .cart-list .product-name a {
  color: var(--sh-olive);
  text-decoration: none;
}

.cart-modal .cart-list .product-name a:hover {
  color: var(--sh-olive-dark);
}

.cart-modal .cart-list .price {
  display: block;
  font-family: var(--sh-serif);
  font-size: 18px;
  color: var(--sh-olive);
  font-weight: 700;
  margin-bottom: 10px;
}

.cart-modal .cart-list .icon-close {
  display: none;
}

.cart-modal .modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid transparent;
  background: var(--sh-olive);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.cart-modal .modal-close:hover {
  color: #fff;
  background: var(--sh-olive-dark);
  border-color: transparent;
}

.cart-modal .cart-modal-header .main-title i {
  font-family: var(--sh-serif);
  font-style: normal;
  font-size: 18px;
  color: var(--sh-olive);
  font-weight: 700;
}

.sh-cart-summary {
  position: sticky;
  top: 100px;
  padding: 24px;
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--sh-radius);
}

.sh-cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sh-muted);
}

.sh-cart-summary-total strong {
  font-family: var(--sh-serif);
  font-size: 28px;
  color: var(--sh-olive);
}

.sh-cart-summary-note {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--sh-muted);
  line-height: 1.6;
}

.sh-cart-summary-actions {
  display: grid;
  gap: 10px;
}

.sh-btn-ghost {
  background: transparent;
  color: var(--sh-olive);
  border: 1px solid rgba(0, 0, 0, 0.35);
}

.sh-btn-ghost:hover {
  background: rgba(0, 0, 0, 0.06);
}

@media (max-width: 900px) {
  .sh-cart-page {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sh-cart-row:not(.sh-cart-head) {
    grid-template-columns: 64px 1fr;
    grid-template-areas:
      "thumb meta"
      "thumb price"
      "thumb qty"
      "total total";
    gap: 10px 14px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    border-bottom: 0;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-product {
    display: contents;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-thumb {
    grid-area: thumb;
    width: 64px;
    height: 64px;
    flex: none;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-product-meta {
    grid-area: meta;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-unit {
    grid-area: price;
    font-size: 13px;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-unit::before {
    content: "Precio: ";
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 10px;
    color: var(--sh-gold);
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-qty {
    grid-area: qty;
    justify-content: flex-start;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-line-total {
    grid-area: total;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 22px;
  }
  .sh-cart-row:not(.sh-cart-head) .sh-cart-line-total::before {
    content: "Total";
    font-family: var(--sh-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--sh-muted);
  }
  .sh-cart-head { display: none; }
  .sh-cart-table {
    background: transparent;
    border: 0;
  }
  .sh-cart-summary { position: static; }
}

/* Carrito móvil — bottom sheet tipo app */
@media (max-width: 720px) {
  .sh-shop-toolbar {
    gap: 12px;
    margin-bottom: 22px;
  }

  .sh-shop-search {
    max-width: none;
  }

  .sh-shop-search input {
    height: 44px;
    font-size: 16px;
  }

  .sh-shop-toolbar .sh-filters {
    margin-left: -4px;
    margin-right: -4px;
    padding-left: 4px;
    padding-right: 20px;
  }

  .cart-modal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: auto;
    max-height: calc(100dvh - 56px);
    max-height: calc(100vh - 56px);
    border-radius: 22px 22px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.16);
  }

  .modal-cart-open .cart-modal {
    transform: none;
  }

  .cart-modal .cart-modal-header {
    padding: 18px 18px 14px;
  }

  .cart-modal .cart-modal-header::before {
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
  }

  .cart-modal .cart-modal-header .main-title {
    font-size: 18px;
    padding-right: 36px;
  }

  .cart-modal .cart-modal-body {
    padding: 12px 16px;
  }

  .cart-modal .cart-modal-footer {
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  }

  .cart-modal .cart-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cart-modal .cart-actions .sh-btn {
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    font-size: 11px;
  }

  .cart-modal .cart-list li {
    padding: 12px 0;
    gap: 10px;
  }
}
