/* Shared storefront content, category, wishlist and state-page layouts. */
.cps-product-page-shell { padding-block: 20px 40px; }
.cps-content-page { padding-block: 22px 60px; }
.cps-content-page__inner { max-inline-size: 980px; margin-inline: auto; }
.cps-content-page__title { margin: 0; font-size: clamp(1.75rem, 4vw, 2rem); font-weight: 1000; }
.cps-content-page__meta { margin-block-start: 10px; }
.cps-content-page__card { margin-block-start: 18px; padding: 18px; }
.cps-content-page__empty { font-weight: 800; }
.cps-link-reset { color: inherit; text-decoration: none; }
.cps-page-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cps-page-actions--center { justify-content: center; margin-block-start: 24px; }
.cps-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-block-end: 14px; color: var(--kimo-muted); font-size: 13px; font-weight: 800; }
.cps-breadcrumb__sep { opacity: .7; }
.cps-page-heading { margin: 0; font-size: clamp(1.6rem, 4vw, 1.9rem); font-weight: 1000; }
.cps-page-description { max-inline-size: 72ch; margin-block-start: 8px; font-weight: 800; }

.cps-order-success { padding-block: 36px 48px; }
.cps-order-success__panel { max-inline-size: 760px; margin-inline: auto; text-align: center; }
.cps-order-success__title { margin: 18px 0 10px; font-size: clamp(1.6rem, 4vw, 1.9rem); font-weight: 1000; }
.cps-order-success__reference { display: inline-flex; margin-block-end: 18px; padding: 10px 18px; border-color: var(--kimo-accent); color: var(--kimo-accent); font-size: 15px; font-weight: 1000; }
.cps-order-success__message { max-inline-size: 520px; margin-inline: auto; font-size: 16px; line-height: 1.8; }
.cps-order-success__action { min-inline-size: 180px; min-block-size: 48px; font-size: 15px; text-decoration: none; }

.cps-category-page { padding-block: 20px 48px; }
.cps-category-page__head { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.cps-category-page__lead { margin-block-start: 8px; font-size: 15px; font-weight: 800; }
.cps-category-page__all { min-block-size: 44px; padding-inline: 22px; text-decoration: none; }
.cps-category-page__section { padding-block-start: 18px; }
.cps-category-page__section-title { font-size: 20px; }
.cps-category-card { color: inherit; text-decoration: none; }
.cps-category-card__media { aspect-ratio: 16/10; background: #fff; }
.cps-category-card__media img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.cps-category-card__media--cover img { object-fit: cover; padding: 0; }
.cps-category-card__title { height: auto; font-size: 15px; font-weight: 1000; }
.cps-category-card__count { color: var(--kimo-accent); font-size: 12.5px; font-weight: 800; }
.cps-subcategory-group { margin-block-start: 14px; overflow: hidden; border-radius: var(--kimo-radius); }
.cps-subcategory-group__title { padding: 12px 16px; background: var(--kimo-yellow-soft); color: var(--kimo-accent); font-size: 14px; font-weight: 1000; }
.cps-subcategory-group__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px; }
.cps-subcategory-group__links a { color: inherit; text-decoration: none; }

.cps-wishlist-page { padding-block: 24px 48px; }
.cps-wishlist-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.kimo-wishlist-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-block-start: 24px; }
.kimo-wl-card { overflow: hidden; border: 1px solid var(--kimo-border, #eaeaea); border-radius: var(--kimo-radius, 16px); background: var(--kimo-surface, #fff); box-shadow: 0 2px 12px rgb(0 0 0 / 4%); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.kimo-wl-card:hover { transform: translateY(-4px); border-color: rgb(255 193 7 / 25%); box-shadow: 0 12px 40px rgb(0 0 0 / 8%); }
.kimo-wl-card-img { aspect-ratio: 1; overflow: hidden; background: #fff; }
.kimo-wl-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .3s ease; }
.kimo-wl-card:hover .kimo-wl-card-img img { transform: scale(1.035); }
.kimo-wl-card-body { padding: 16px; }
.kimo-wl-card-name { display: -webkit-box; overflow: hidden; margin-block-end: 8px; color: var(--kimo-text); font-family: var(--kimo-font-heading); font-size: 14px; font-weight: 800; line-height: 1.35; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.kimo-wl-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 12px; }
.kimo-wl-empty { padding: 60px 20px; text-align: center; }
.kimo-wl-empty-icon { margin-block-end: 20px; font-size: 64px; opacity: .35; }
.kimo-wl-empty h2 { margin: 0 0 10px; font-family: var(--kimo-font-heading); font-size: 24px; font-weight: 900; }
.kimo-wl-empty p { margin-block-end: 24px; color: var(--kimo-muted); }

.cps-404 { position: relative; display: flex; min-block-size: 80vh; align-items: center; justify-content: center; overflow: hidden; }
.cps-404__inner { position: relative; z-index: 2; text-align: center; }
.cps-404__number { margin: 0 0 12px; background: linear-gradient(135deg, #ffc107, #ff9800 50%, #ffc107); background-size: 200% 200%; background-clip: text; color: transparent; font-size: clamp(100px, 18vw, 220px); font-weight: 1000; line-height: 1; user-select: none; animation: cps404-gradient 3s ease infinite, cps404-float 4s ease-in-out infinite; }
.cps-404__title { margin: 0 0 12px; color: var(--kimo-text); font-family: var(--kimo-font-heading); font-size: clamp(24px, 4vw, 36px); font-weight: 900; }
.cps-404__text { max-inline-size: 460px; margin-inline: auto; color: var(--kimo-muted); font-size: 16px; line-height: 1.7; }
.cps-404__search { max-inline-size: 480px; margin: 28px auto 0; }
.cps-404__form { display: flex; overflow: hidden; border: 2px solid var(--kimo-border, #eaeaea); border-radius: var(--kimo-radius, 14px); background: var(--kimo-surface, #fff); transition: border-color .2s ease; }
.cps-404__form:focus-within { border-color: var(--kimo-accent, #ffc107); }
.cps-404__form input { flex: 1; min-inline-size: 0; padding: 14px 18px; border: 0; outline: 0; background: transparent; color: var(--kimo-text); font: 15px var(--kimo-font-body); }
.cps-404__form button { padding: 14px 22px; border: 0; background: var(--kimo-accent, #ffc107); color: #1a1a1a; cursor: pointer; font: 800 16px var(--kimo-font-body); }
.cps-404__form button:hover { opacity: .85; }
.cps-404__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-block-start: 32px; }
.cps-404__actions .kimo-btn { min-inline-size: 200px; min-block-size: 50px; text-decoration: none; }
.cps-404__particles { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.cps-404__particle { position: absolute; left: var(--particle-x); top: var(--particle-y); width: 10px; height: 10px; border-radius: 50%; background: var(--kimo-accent, #ffc107); opacity: .25; animation: cps404-particle var(--particle-duration) ease-in-out var(--particle-delay) infinite; }
.cps-404__particle:nth-child(2) { width: 14px; height: 14px; opacity: .18; }
.cps-404__particle:nth-child(3) { width: 8px; height: 8px; opacity: .3; }
.cps-404__particle:nth-child(4) { width: 12px; height: 12px; opacity: .2; }
.cps-404__particle:nth-child(5) { width: 6px; height: 6px; opacity: .35; }
.cps-404__particle:nth-child(6) { width: 16px; height: 16px; opacity: .15; }
.cps-404__particle:nth-child(7) { width: 9px; height: 9px; opacity: .28; }
.cps-404__particle:nth-child(8) { width: 11px; height: 11px; opacity: .22; }
.cps-404__particle--1 { --particle-x: 10%; --particle-y: 20%; --particle-duration: 3s; --particle-delay: 0s; }
.cps-404__particle--2 { --particle-x: 80%; --particle-y: 15%; --particle-duration: 4s; --particle-delay: .5s; }
.cps-404__particle--3 { --particle-x: 25%; --particle-y: 70%; --particle-duration: 3.5s; --particle-delay: 1s; }
.cps-404__particle--4 { --particle-x: 70%; --particle-y: 65%; --particle-duration: 4.5s; --particle-delay: 1.5s; }
.cps-404__particle--5 { --particle-x: 50%; --particle-y: 30%; --particle-duration: 5s; --particle-delay: .8s; }
.cps-404__particle--6 { --particle-x: 15%; --particle-y: 50%; --particle-duration: 3.8s; --particle-delay: 2s; }
.cps-404__particle--7 { --particle-x: 90%; --particle-y: 45%; --particle-duration: 4.2s; --particle-delay: 1.2s; }
.cps-404__particle--8 { --particle-x: 40%; --particle-y: 85%; --particle-duration: 3.2s; --particle-delay: .3s; }

.cps-item-group-page { padding: 20px 16px 40px; }
.cps-item-group-page .kimo-layout { margin-block-start: 14px; }
.cps-item-group-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cps-item-group-filter-block { margin-block-start: 12px; }
.cps-item-group-filter-search { margin-block-start: 10px; }
.cps-item-group-price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cps-item-group-controls { margin-block-start: 14px; }
.cps-control-label { display: flex; align-items: center; gap: 8px; font-weight: 900; }
.cps-listing-pager { display: flex; justify-content: center; margin-block-start: 16px; }

@keyframes cps404-gradient { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes cps404-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes cps404-particle { 0%, 100% { transform: translate(0) scale(1); } 25% { transform: translate(12px, -30px) scale(1.2); } 50% { transform: translate(-8px, -15px) scale(.8); } 75% { transform: translate(5px, -40px) scale(1.1); } }

@media (max-width: 768px) {
  .kimo-wishlist-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cps-category-page__head { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .cps-404__number, .cps-404__particle, .kimo-wl-card, .kimo-wl-card-img img { animation: none; transition: none; }
}

/* Home-page utilities replacing template inline declarations. */
.cps-home-link { color: inherit; text-decoration: none; }
.cps-home-section-muted { background: var(--kimo-bg); }
.cps-home-view-all { color: var(--kimo-primary-dark); text-decoration: none; font-family: var(--kimo-font-heading); text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.cps-home-category-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items:stretch; inline-size:100%; }
.cps-home-category-card { color: inherit; text-decoration: none; }
.cps-home-category-media { aspect-ratio: 1; background: #fff; }
.cps-home-category-media img, .cps-home-product-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; background: #fff; }
.cps-home-category-title { min-height: auto; max-height: none; height: auto; font-size: 12px; text-align: center; }
.cps-home-noimage { height: 100%; }
.cps-home-contact-price { font-weight: 900; }

.cps-home-category-grid > .kimo-card { inline-size:100%; max-inline-size:none; }
.cps-home-category-grid .cps-home-category-media { min-block-size:170px; }
.cps-home-category-card, .cps-home-category-card .kimo-card-body { inline-size:100%; }
.cps-home-contact-price { min-block-size:24px; display:flex; align-items:center; }
.kimo-card-contact-overlay .kimo-btn { text-decoration:none; }
@media (min-width: 1100px) { .cps-home-category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px) { .cps-home-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; } }

/* Category media fallback: preserve the visual category grid even when an
   existing Item Group has an icon but no image attachment. */
.cps-home-noimage,
.kimo-noimg-fill {
  display: grid;
  place-items: center;
  min-block-size: 100%;
  background: #fff;
  color: var(--kimo-primary-dark);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}
.cps-home-noimage i,
.kimo-noimg-fill i { font-size: .9em; }


/* Full parent/child hierarchy on Shop by Category. */
.cps-category-parent-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cps-category-parent-card { overflow: hidden; }
.cps-category-parent-card__main { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px; color: inherit; text-decoration: none; border-block-end: 1px solid var(--kimo-border, #e8e8ec); }
.cps-category-parent-card__media { inline-size: 76px; block-size: 76px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: #fff; font-size: 34px; }
.cps-category-parent-card__media img { inline-size: 100%; block-size: 100%; object-fit: contain; background: #fff; }
.cps-category-parent-card__main h3 { margin: 0 0 5px; font-size: 18px; }
.cps-category-parent-card__main span { color: var(--kimo-accent, #9a7612); font-size: 12px; font-weight: 800; }
.cps-category-parent-card__children { padding: 13px 16px 16px; }
.cps-category-tree-list, .cps-category-tree-list__children { list-style: none; margin: 0; padding: 0; }
.cps-category-tree-list__item > a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 9px; color: inherit; text-decoration: none; font-weight: 700; }
.cps-category-tree-list__item > a:hover { color: var(--kimo-accent, #9a7612); background: var(--kimo-yellow-soft, #fff8dc); }
.cps-category-tree-list__children { margin-inline-start: 12px; padding-inline-start: 10px; border-inline-start: 1px solid var(--kimo-border, #e8e8ec); }
.cps-category-tree-list__children .cps-category-tree-list__item > a { font-size: .92rem; font-weight: 600; }
@media (max-width: 1100px) { .cps-category-parent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .cps-category-parent-grid { grid-template-columns: 1fr; } }
