.picture-categories {
    padding-block: clamp(14px, 1.6vw, 24px) clamp(14px, 1.5vw, 21px);
    color: #192337;
}
.picture-categories-heading, .picture-categories-actions, .picture-categories-buttons,
.picture-categories-all, .picture-category-caption { display: flex; align-items: center; }
.picture-categories-heading { justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.picture-categories-heading h2 { margin: 0; font-size: clamp(1.16rem, 1.8vw, 1.62rem); letter-spacing: -.045em; line-height: 1.14; }
.picture-categories-actions { gap: 15px; }
.picture-categories-all { gap: 6px; min-height: 34px; color: #3d4759; font-size: .82rem; font-weight: 650; }
.picture-categories-all .shop-icon { width: 16px; height: 16px; color: #bd440a; }
.picture-categories-all:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.picture-categories-buttons { gap: 5px; padding-left: 14px; border-left: 1px solid #dfe1e5; }
.picture-categories-buttons[hidden] { display: none; }
.picture-categories-buttons button {
    display: grid; place-items: center;
    width: 32px; height: 32px; padding: 0;
    border: 1px solid #c7cdd3; border-radius: 50%; color: #263248; background: #fff;
}
.picture-categories-buttons .shop-icon { width: 15px; height: 15px; stroke-width: 2; }
.picture-categories-buttons [data-picture-prev] .shop-icon { transform: rotate(180deg); }
.picture-categories-buttons button:hover:enabled { background: #233147; border-color: #233147; color: #fff; }
.picture-categories-buttons button:disabled { border-color: #e4e6e8; color: #a9aeb5; cursor: default; }
.picture-category-list {
    position: relative; display: grid; grid-auto-flow: column;
    grid-auto-columns: clamp(126px, 11.3vw, 156px);
    gap: clamp(8px, .9vw, 13px);
    margin: 0; padding: 3px 1px 5px; list-style: none;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity;
    scrollbar-color: #b5bec7 transparent; scrollbar-width: thin;
}
.has-picture-controls .picture-category-list { scrollbar-width: none; }
.has-picture-controls .picture-category-list::-webkit-scrollbar { display: none; }
.picture-category-list li { display: flex; min-width: 0; scroll-snap-align: start; }
.picture-category-card {
    --size: clamp(82px, 7.3vw, 94px);
    position: relative; isolation: isolate; display: flex; flex: 1; flex-direction: column;
    min-width: 0; overflow: hidden; border-radius: 13px; background: white;
    box-shadow: 0 2px 4px #1c2b3e0d;
}
.picture-category-card::after {
    position: absolute; inset: 0; z-index: 1; border: 1px solid #1a29351b; border-radius: inherit;
    pointer-events: none; content: '';
}
.picture-category-card:focus-visible { outline: 3px solid #a73f17; outline-offset: -3px; }
.picture-category-card:focus-visible::after { border: 3px solid #9c3a11; }
.picture-category-stage {
    position: relative; isolation: isolate; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center;
    height: clamp(75px, 6.4vw, 92px); overflow: hidden;
    background: radial-gradient(ellipse at 27% 0%, #ffffff80, transparent 70%), linear-gradient(130deg, var(--light), var(--tone));
}
.picture-category-stage::before {
    position: absolute; z-index: -1; top: -85%; left: 56%; width: 110%; aspect-ratio: 1;
    border: 1px solid #ffffff61; border-radius: 50%; box-shadow: 0 0 0 9px #ffffff15, 0 0 0 10px #ffffff45;
    content: '';
}
.picture-category-image {
    width: var(--size); max-width: 84%; aspect-ratio: 1;
    transform: translateY(var(--drop, 0%));
    filter: drop-shadow(1px 4px 2px #16202b40);
}
.picture-category-image::after {
    display: block; width: 100%; height: 100%;
    background: url('../assets/kategori-baskilari.webp') var(--photo-x, 0%) var(--photo-y, 0%) / 400% 400% no-repeat;
    clip-path: var(--cut); content: '';
}
.picture-category-caption {
    flex: 1; justify-content: space-between; gap: 4px; min-height: 47px;
    padding: 7px 10px 8px 12px; background: #fff;
}
.picture-category-name { max-width: 17ch; text-wrap: balance; font-size: clamp(.8rem, 1vw, .92rem); font-weight: 700; line-height: 1.14; letter-spacing: -.023em; }
.picture-category-caption .shop-icon { width: 13px; height: 13px; color: #737d89; }
@media (hover: hover) {
    .picture-category-card:hover::after { border-color: #c26a32; }
    .picture-category-card:hover .picture-category-image { transform: translateY(calc(var(--drop, 0%) - 2%)) scale(1.06); }
    .picture-category-card:hover .picture-category-caption .shop-icon { color: #ac410e; transform: translateX(2px); }
}
@media (prefers-reduced-motion: no-preference) {
    .picture-category-list { scroll-behavior: smooth; }
    .picture-category-image, .picture-category-caption .shop-icon { transition: transform .24s ease; }
}
@media (max-width: 600px) {
    .picture-categories { padding-block: 10px 12px; }
    .picture-categories-heading { gap: 6px; margin-bottom: 6px; }
    .picture-categories-heading h2 { font-size: 1.09rem; }
    .picture-categories-actions { gap: 8px; }
    .picture-categories-buttons { gap: 2px; padding-left: 7px; }
    .picture-categories-buttons button { width: 34px; height: 34px; }
    .picture-categories-all { gap: 3px; font-size: .74rem; }
    .picture-categories-all .shop-icon { display: none; }
    .picture-category-list { grid-auto-columns: clamp(101px, 28vw, 116px); gap: 8px; }
    .picture-category-stage { height: 70px; }
    .picture-category-image { width: min(var(--size), 77px); }
    .picture-category-caption { min-height: 42px; padding: 6px 8px 7px; }
    .picture-category-card { border-radius: 10px; }
    .picture-category-caption .shop-icon { width: 11px; }
}
@media (max-width: 360px) {
    .picture-categories-heading h2 { font-size: 1rem; }
    .picture-categories-actions { gap: 5px; }
    .picture-categories-all { white-space: nowrap; font-size: .7rem; }
    .picture-categories-buttons { gap: 2px; padding-left: 5px; }
    .picture-categories-buttons button { width: 28px; height: 32px; }
}
/* Isolate each printed item from its photographed setting in the catalog sheet. */
.picture-category-card[data-tile="0"] { --tone: #f6d475; --light: #fff2c5; --cut: polygon(48% 14%, 51% 13%, 54% 15%, 87% 81%, 88% 85%, 85% 87%, 17% 90%, 14% 88%, 14% 85%); }
.picture-category-card[data-tile="1"] { --tone: #9dccb6; --light: #e8f5e9; --photo-x: 33.3333%; --cut: polygon(10% 29%, 91% 32%, 92% 33%, 92% 77%, 10% 80%, 9% 78%); }
.picture-category-card[data-tile="2"] { --tone: #eeb0a1; --light: #ffe8da; --photo-x: 66.6667%; --cut: polygon(26% 13%, 75% 14%, 78% 16%, 78% 86%, 76% 89%, 26% 90%, 24% 88%, 24% 16%); }
.picture-category-card[data-tile="3"] { --tone: #d5c4af; --light: #f2e8db; --size: 104px; --photo-x: 100%; --cut: polygon(14% 30%, 80% 37%, 80% 74%, 13% 78%); }
.picture-category-card[data-tile="4"] { --tone: #a9c6e7; --light: #e8f2ff; --photo-y: 33.3333%; --cut: polygon(19% 14%, 84% 14%, 85% 15%, 85% 82%, 83% 84%, 19% 84%, 17% 82%, 17% 16%); }
.picture-category-card[data-tile="5"] { --tone: #dec2bc; --light: #fbebe6; --photo-x: 33.3333%; --photo-y: 33.3333%; --cut: polygon(20% 12%, 83% 12%, 85% 14%, 84% 85%, 82% 86%, 19% 86%, 18% 84%, 18% 14%); }
.picture-category-card[data-tile="6"] { --tone: #a5bed5; --light: #e1edf5; --drop: 9%; --photo-x: 66.6667%; --photo-y: 33.3333%; --cut: polygon(27% 9%, 75% 12%, 78% 15%, 78% 65%, 76% 68%, 28% 70%, 25% 68%, 25% 12%); }
.picture-category-card[data-tile="8"] { --tone: #f1c590; --light: #fff0d3; --photo-y: 66.6667%; --cut: polygon(9% 22%, 13% 15%, 50% 9%, 56% 11%, 60% 17%, 69% 52%, 72% 66%, 79% 75%, 94% 87%, 65% 96%, 58% 91%, 49% 80%, 44% 69%, 27% 72%, 19% 69%, 12% 62%, 8% 47%); }
.picture-category-card[data-tile="10"] { --tone: #c4bddb; --light: #edeaf7; --photo-x: 66.6667%; --photo-y: 66.6667%; --cut: polygon(4% 24%, 46% 8%, 51% 15%, 70% 12%, 96% 75%, 42% 89%, 38% 81%, 33% 83%); }
.picture-category-card[data-tile="11"] { --tone: #e3cbb9; --light: #f9ede3; --photo-x: 100%; --photo-y: 66.6667%; --cut: polygon(5% 35%, 63% 21%, 76% 32%, 75% 40%, 87% 47%, 96% 79%, 35% 89%, 30% 63%, 20% 66%, 6% 58%); }
.picture-category-card[data-tile="13"] { --tone: #bccdc4; --light: #eaf4ed; --photo-x: 33.3333%; --photo-y: 100%; --cut: polygon(14% 16%, 76% 19%, 79% 22%, 86% 77%, 20% 90%, 7% 84%); }
.picture-category-card[data-tile="14"] { --tone: #a7c9c9; --light: #e1f1ef; --photo-x: 66.6667%; --photo-y: 100%; --cut: polygon(2% 36%, 8% 34%, 10% 29%, 65% 15%, 98% 52%, 98% 64%, 42% 90%, 22% 78%); }
