/* ==========================================================================
   Kreeative — shop page (digital templates, checkout handled by Beacons)
   ========================================================================== */
.sh-list { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 76px var(--pad-x) 100px; }
.sh-list__head { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: var(--container); margin-bottom: 20px; }
.sh-list__head .t-caption { max-width: 560px; }

.product { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; width: 100%; max-width: var(--container); padding: 24px; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-card); }
.product__media { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product__cover { overflow: hidden; border-radius: var(--r-md); box-shadow: var(--sh-photo); aspect-ratio: 16 / 9; background: var(--c-line); }
.product__cover img { width: 100%; height: 100%; object-fit: cover; }
.product__pages { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.product__pages img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; box-shadow: var(--sh-card); background: var(--c-line); }

.product__info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 12px 8px; }
.product__kicker { color: var(--c-text-40); font-size: 14px; }
.product__title em { font-style: italic; color: var(--accent, var(--c-black)); }
.product__meta { display: flex; flex-wrap: wrap; gap: 8px; }
.product__meta span { padding: 5px 12px; border-radius: 999px; background: var(--tint, var(--c-line)); color: var(--c-black); font-family: var(--f-sans); font-size: 13px; font-weight: 500; letter-spacing: -0.02em; }
.product__price { font-family: var(--f-serif); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -0.06em; color: var(--c-black); }
.product__price small { margin-left: 6px; font-family: var(--f-mono); font-size: 14px; letter-spacing: -0.02em; color: var(--c-text-40); }
.product__info .btn { margin-top: auto; }
.product__secure { display: flex; align-items: center; gap: 6px; color: var(--c-muted); }
.product__secure svg { width: 14px; height: 14px; }

.sh-free { position: relative; display: flex; flex-direction: column; align-items: center; padding: 88px var(--pad-x); overflow: hidden; background: var(--c-black); color: var(--c-white); scroll-margin-top: 16px; }
.sh-free__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 48px; width: 100%; max-width: var(--container); }
.sh-free__text { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.sh-free__kicker { color: var(--c-pink); }
.sh-free .t-h3 { color: var(--c-white); max-width: 720px; }
.sh-free .t-body-l { color: var(--c-white-60); max-width: 640px; }
.sh-free__list { display: flex; flex-direction: column; gap: 10px; color: var(--c-white); }
.sh-free__list li { position: relative; padding-left: 26px; color: var(--c-white); }
.sh-free__list li svg { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--c-pink); }
.sh-free__media { position: relative; height: 460px; }
.sh-free__media img { position: absolute; width: 58%; border-radius: var(--r-md); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6); }
.sh-free__media img:first-child { right: 4%; top: 0; transform: rotate(5deg); }
.sh-free__media img:last-child { left: 6%; top: 40px; transform: rotate(-4deg); }

/* ---- product grid (top of shop) ---------------------------------------- */
.sh-grid { display: flex; flex-direction: column; align-items: center; padding: 48px var(--pad-x); }
.sh-grid__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: var(--container); }
.tile { display: flex; flex-direction: column; overflow: hidden; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-card); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.25); }
.tile__img { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 18px; background: var(--tint); }
.tile__img img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: var(--sh-photo); }
.tile__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tile__kicker { font-size: 12px; }
.tile__name { font-family: var(--f-serif); font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: -0.05em; color: var(--c-black); }
.tile__price { margin-top: 6px; font-family: var(--f-sans); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; color: var(--c-black); }
.tile--free { background: var(--c-black); border-color: var(--c-black); }
.tile--free .tile__name { color: var(--c-white); }
.tile--free .tile__kicker { color: var(--c-pink); }
.tile--free .tile__price { color: var(--c-white); }
.tile--free .tile__price::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--c-pink); vertical-align: 1px; }
.product { scroll-margin-top: 16px; }

@media (max-width: 1199.98px) {
  .sh-grid__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sh-free__inner { grid-template-columns: 1fr; }
  .sh-free__media { height: 380px; max-width: 480px; width: 100%; }
  .product { grid-template-columns: 1fr; gap: 24px; }
  .product__info { padding: 0 4px 8px; }
}
@media (max-width: 809.98px) {
  .sh-list { padding: 64px var(--pad-x) 80px; }
  .sh-free { padding: 64px var(--pad-x); }
  .sh-grid { padding: 24px 12px; }
  .sh-grid__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile__img { padding: 10px; }
  .tile__body { padding: 10px 12px 12px; }
  .tile__name { font-size: 17px; }
  .sh-free__media { height: 300px; }
  .product { padding: 12px; }
  .product__pages { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product__pages img:nth-child(n+5) { display: none; }
  .product__price { font-size: 48px; }
}

/* ---- after-payment access pages (unlisted) ------------------------------ */
.access { gap: 28px; padding-bottom: 72px; }
.access__cover { width: 100%; max-width: 720px; overflow: hidden; border-radius: var(--r-md); box-shadow: var(--sh-photo); }
.access__steps { display: flex; flex-direction: column; gap: 10px; max-width: 560px; padding-left: 1.3em; list-style: decimal; text-align: left; }
.access__note { max-width: 520px; }
.btn--soon { margin-top: auto; background: var(--c-line); cursor: default; }
.btn--soon::after { border-color: var(--c-line-3); }
.btn--soon .btn__label { color: var(--c-text-60) !important; }
.btn--soon:hover .btn__label { transform: none; opacity: 1; }

/* ---- search + category filter ------------------------------------------ */
.sh-grid { gap: 32px; }
.sh-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; width: 100%; max-width: var(--container); }
.sh-search { position: relative; display: flex; align-items: center; flex: 1 1 320px; max-width: 480px; }
.sh-search svg { position: absolute; left: 16px; width: 18px; height: 18px; color: var(--c-text-40); pointer-events: none; }
.sh-search input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-surface-2); font: 400 16px/1 var(--f-sans); letter-spacing: -0.02em; color: var(--c-black); outline: none; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.sh-search input::placeholder { color: var(--c-text-40); }
.sh-search input:focus { border-color: var(--c-pink); box-shadow: 0 0 0 3px var(--c-pink-border); }
.sh-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-white); font: 500 14px/1 var(--f-sans); letter-spacing: -0.02em; color: var(--c-text); transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.sh-chip span { font-family: var(--f-mono); font-size: 12px; color: var(--c-text-40); }
.sh-chip:hover { border-color: var(--c-black); }
.sh-chip[aria-pressed="true"] { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); }
.sh-chip[aria-pressed="true"] span { color: var(--c-white-60); }
.sh-group { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: var(--container); }
.sh-group[hidden], .tile[hidden] { display: none; }
.sh-group__title { font-size: 28px; }
.sh-empty { width: 100%; max-width: var(--container); color: var(--c-muted); }
@media (max-width: 809.98px) {
  .sh-tools { flex-direction: column; align-items: stretch; }
  .sh-search { max-width: none; flex-basis: auto; }
  .sh-group__title { font-size: 24px; }
}
.tile__img { overflow: hidden; min-height: 0; }
.tile--free .tile__img img { height: 100%; width: auto; }
.sh-free__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 4px; }
.sh-free__dl { color: var(--c-white-60); text-decoration: underline; text-underline-offset: 3px; }
.sh-free__dl:hover { color: var(--c-white); }

/* ---- motion: shop -------------------------------------------------------- */
.tile__img img { transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s; }
.tile:hover .tile__img img { transform: translateY(-4px) scale(1.05) rotate(-1deg); box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .45); }
.tile__price { transition: color .25s, letter-spacing .25s; }
.tile:hover .tile__price { color: var(--c-pink); }
.tile--free:hover .tile__price { color: #ff66be; }
.product__cover { transition: transform .6s cubic-bezier(.22, 1, .36, 1), box-shadow .6s; }
.product__cover img { transition: transform 1.2s cubic-bezier(.22, 1, .36, 1); }
.product:hover .product__cover img { transform: scale(1.04); }
.product__pages img { transition: transform .35s cubic-bezier(.34, 1.4, .64, 1), box-shadow .35s; }
.product__pages img:hover { transform: translateY(-6px) scale(1.12); box-shadow: 0 14px 22px -12px rgba(0, 0, 0, .4); position: relative; z-index: 1; }
.product__meta span { transition: transform .25s; }
.product:hover .product__meta span { transform: translateY(-2px); }
.product:hover .product__meta span:nth-child(2) { transition-delay: .05s; }
.product:hover .product__meta span:nth-child(3) { transition-delay: .1s; }
.product .btn--accent { position: relative; overflow: hidden; }
.product .btn--accent::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sh-shine 3.2s ease-in-out infinite; pointer-events: none; }
@keyframes sh-shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.sh-free__media img { transition: transform .6s cubic-bezier(.22, 1, .36, 1); }
.sh-free__media:hover img:first-child { transform: rotate(8deg) translate(12px, -8px); }
.sh-free__media:hover img:last-child { transform: rotate(-7deg) translate(-12px, 6px); }
.sh-free__media img:last-child { animation: sh-float 6s ease-in-out infinite; }
.sh-free__media img:first-child { animation: sh-float2 7s ease-in-out infinite; }
@keyframes sh-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes sh-float2 { 0%, 100% { translate: 0 0; } 50% { translate: 0 8px; } }
.sh-chip { transition: background .2s, color .2s, border-color .2s, transform .2s; }
.sh-chip:active { transform: scale(.95); }
.tile.is-filtering { animation: sh-in .45s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes sh-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .product .btn--accent::before, .sh-free__media img, .tile.is-filtering { animation: none !important; }
  .tile:hover .tile__img img, .product:hover .product__cover img, .product__pages img:hover { transform: none; }
}

/* shop: big category rectangles */
.sh-cats { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 48px var(--pad-x); }
.sh-cat { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 40px; width: 100%; max-width: var(--container); padding: 40px; overflow: hidden; background: var(--c-surface-2); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--sh-card); color: inherit; text-decoration: none; }
.sh-cat--dark { background: var(--c-black); border-color: var(--c-black); color: var(--c-white); transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease; }
.sh-cat--dark:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(0, 0, 0, 0.45); }
.sh-cat__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.sh-cat__kicker { color: var(--c-pink); }
.sh-cat .t-h3 { color: inherit; }
.sh-cat .t-body-l { color: var(--c-text); max-width: 520px; }
.sh-cat--dark .t-body-l { color: var(--c-white-60); }
.sh-cat__names { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-cat__names a { display: inline-block; padding: 6px 14px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-white); color: var(--c-text); transition: border-color 0.2s ease, color 0.2s ease; }
.sh-cat__names a:hover { border-color: var(--c-black); color: var(--c-black); }
.sh-cat__price { font-family: var(--f-serif); font-weight: 300; font-size: 40px; line-height: 1.1; letter-spacing: -0.05em; color: var(--c-black); }
.sh-cat__price small { font-family: var(--f-sans); font-size: 14px; letter-spacing: -0.02em; color: var(--c-muted); margin-left: 6px; }
.sh-cat__rows { display: flex; flex-direction: column; width: 100%; max-width: 520px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.sh-cat__rows li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: var(--c-white); }
.sh-cat__rows b { font-weight: 600; color: var(--c-pink); white-space: nowrap; }
.sh-cat__more { color: var(--c-pink); }
.sh-cat__media { position: relative; height: 360px; }
.sh-cat__media img { position: absolute; border-radius: 10px; box-shadow: 0 18px 36px -14px rgba(0, 0, 0, 0.45); }
.sh-cat__media--fan img { left: 50%; top: 50%; width: 66%; aspect-ratio: 16 / 9; object-fit: cover; transform-origin: 50% 160%; transform: translate(-50%, -50%) rotate(calc((var(--i) - 2.5) * 7deg)); z-index: calc(10 - var(--i)); }
.sh-cat__media--guide img { width: 46%; }
.sh-cat__media--guide img:first-child { right: 8%; top: 4%; transform: rotate(6deg); }
.sh-cat__media--guide img:last-child { left: 10%; top: 12%; transform: rotate(-5deg); }
.sh-list { scroll-margin-top: 16px; }
@media (max-width: 1199.98px) {
  .sh-cat { grid-template-columns: 1fr; padding: 32px; }
  .sh-cat__media { height: 300px; max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 809.98px) {
  .sh-cats { padding: 24px 12px; gap: 12px; }
  .sh-cat { padding: 24px 20px; gap: 24px; }
  .sh-cat__media { height: 230px; }
  .sh-cat__price { font-size: 32px; }
}
