/* Category discovery and filter panel. Kept local to urunler.php. */
.cat-description img { max-width: 100%; height: auto; }
.cat-shelf {
    display: block;
    padding: 13px 16px 10px;
    margin-top: 14px;
    border: 1px solid #e6e9e1;
    border-radius: 16px;
    background: linear-gradient(115deg, #f4f6ef, #fbfcf9 65%, #f0f4ec);
}
.cat-shelf-label { justify-content: space-between; margin-bottom: 7px; white-space: normal; }
.cat-shelf-label::after { display: none; }
.cat-shelf-label > div { display: grid; gap: 7px; }
.cat-shelf-label > div > span { font-size: 10px; letter-spacing: 2px; }
.cat-shelf-track { gap: 10px; padding: 4px 2px 5px; scrollbar-width: thin; scrollbar-color: #c4cdbd transparent; }
.cat-shelf-track::-webkit-scrollbar { display: block; height: 3px; }
.cat-shelf-track::-webkit-scrollbar-thumb { background: #c4cdbd; border-radius: 4px; }
.cat-tile {
    position: relative;
    flex: 1 0 210px;
    min-width: 0;
    height: 76px;
    padding: 10px 12px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 10px;
    overflow: hidden;
    border: 1px solid #e2e7dc;
    border-radius: 12px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 3px 7px rgba(36,58,31,.025);
}
.cat-tile-media { width: 58px; height: 54px; border-radius: 0; background: transparent; overflow: visible; justify-content: center; }
.cat-tile-media img { width: 58px; max-width: 100%; height: 54px; object-fit: contain; mix-blend-mode: multiply; }
.cat-tile-name { min-width: 0; padding-right: 0; font-size: 11px; letter-spacing: .15px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.cat-tile-arrow { position: relative; flex: 0 0 23px; margin-left: auto; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid #e2e8dd; border-radius: 50%; color: #36532f; font-size: 16px; transition: background .2s, color .2s; }
.cat-tile:hover { border-color: #9aae8c; box-shadow: 0 8px 18px -10px #708966; transform: translateY(-3px); }
.cat-tile:hover .cat-tile-arrow { background: #254d20; color: #fff; border-color: #254d20; }
.cat-tile-deal { background: linear-gradient(130deg, #2e5826, #153811); border-color: #24491d; color: #fff; }
.cat-tile-deal::before, .cat-tile-deal::after { content: ""; position: absolute; width: 160px; height: 160px; border: 1px solid rgba(218,231,189,.15); border-radius: 50%; right: -66px; top: -75px; pointer-events: none; }
.cat-tile-deal::after { width: 208px; height: 208px; right: -90px; top: -99px; }
.cat-tile-deal .cat-tile-media { width: 36px; height: 36px; border: 1px solid #708663; border-radius: 10px; color: #e0e9bd; background: rgba(255,255,255,.07); }
.cat-tile-deal .cat-tile-name { font-size: 16px; letter-spacing: -.3px; text-transform: none; }
.cat-tile-name small { display: block; margin-bottom: 3px; font-size: 7px; letter-spacing: .7px; font-weight: 500; color: #d3dfbb; }
.cat-tile-deal .cat-tile-arrow { border-color: #6a805d; color: #e0e9bd; background: rgba(255,255,255,.06); }
.cat-tile:focus-visible, .fs button:focus-visible, .fs-clear:focus-visible { outline: 3px solid #92ae70; outline-offset: 3px; }
.cat-body { grid-template-columns: 268px minmax(0, 1fr); gap: 0 30px; }
.fs { padding: 0 12px 12px; border: 0; border-radius: 16px; background: #f5f6f3; box-shadow: none; }
.fs-head { margin: 0 -12px; padding: 18px; border: 0; border-radius: 16px 16px 0 0; background: #e7ede2; }
.fs-title { font-size: 13px; letter-spacing: .65px; color: #425b3c; }
.fs-title svg { width: 24px; height: 24px; padding: 3px; border: 0; border-radius: 0; color: #617856; }
.fs-head .fs-badge { background: #d4e0cc; color: #425b3c; }
.fs-clear { color: #526b49; font-size: 9px; letter-spacing: .2px; }
.fs-clear:hover { color: #2e4827; text-decoration: underline; }
.fs-intro { float: none; width: auto; margin: 13px 5px; color: #737e6c; font-size: 10px; line-height: 1.6; }
.fs-group { margin: 0 0 10px; padding: 14px 10px 10px; border: 0; border-radius: 10px; background: #fff; }
.fs-group:last-child { margin-bottom: 0; }
.fs-group-title { padding: 1px 3px 5px; font-size: 10px; letter-spacing: .65px; color: #52624b; }
.fs-chev { width: 21px; height: 21px; padding: 4px; background: transparent; border-radius: 0; color: #899581; }
.fs-check, .fs-switch { margin: 0; min-height: 39px; padding: 8px 6px; gap: 9px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; }
.fs-check:hover, .fs-switch:hover { background: #f3f6ee; }
.fs-check:has(input:checked), .fs-switch:has(input:checked) { border-color: transparent; background: #eaf0e5; }
.fs-check:has(input:focus-visible), .fs-switch:has(input:focus-visible) { outline: 2px solid #789b59; outline-offset: -2px; }
.fs-box { width: 17px; height: 17px; border-color: #c5cebf; }
.fs-box::after { left: 5px; top: 1px; }
.fs-count { display: inline-flex; justify-content: center; min-width: 25px; padding: 3px 6px; border-radius: 5px; background: #f3f5f0; color: #77816f; font-size: 10px; }
.fs-switch { font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.fs-knob { width: 32px; height: 18px; background: #dce2d5; }
.fs-knob::after { width: 14px; height: 14px; box-shadow: 0 1px 3px #89977b; }
.fs-switch input:checked ~ .fs-knob::after { transform: translateX(14px); }
@media (min-width: 992px) { .fs { position: sticky; top: var(--fs-sticky-top, 116px); max-height: none; overflow: visible; } }
@media (min-width: 992px) and (max-width: 1199px) { .cat-body { grid-template-columns: 240px minmax(0, 1fr); gap: 0 24px; } }
@media (max-width: 991px) {
    .cat-body { grid-template-columns: minmax(0, 1fr); }
    .fs { padding: 0 14px 20px; border-radius: 0 20px 20px 0; }
    .fs-head { top: 0; margin: 0 -14px; padding: 18px; border-radius: 0; background: #e7ede2; }
    .fs-close { background: #dce5d6; border: 0; color: #425b3c; }
    .fs-open { background: #e7ede2; color: #425b3c; border: 0; border-radius: 11px; }
}
@media (max-width: 767px) {
    .cat-shelf { padding: 10px 10px 7px; border-radius: 14px; margin-top: 12px; }
    .cat-shelf-label { margin: 0 3px 5px; }
    .cat-shelf-label > div > span { font-size: 9px; letter-spacing: 1.5px; }
    .cat-shelf-track { gap: 9px; padding-right: 2px; scroll-snap-type: x mandatory; }
    .cat-tile { flex: 0 0 205px; height: 66px; padding: 8px 10px; border-radius: 10px; scroll-snap-align: start; }
    .cat-tile-name { font-size: 10px; }
    .cat-tile-media { width: 46px; height: 46px; }
    .cat-tile-media img { width: 46px; height: 46px; }
    .cat-tile-deal .cat-tile-name { font-size: 15px; }
    .cat-tile-name small { font-size: 7px; letter-spacing: .7px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .cat-tile-arrow, .fs-check, .fs-switch { transition: none; }
    .cat-tile:hover { transform: none; }
}

/* Touch layouts: price and purchase action always occupy separate rows. */
.cat-main .product-name a { float: none; color: inherit; text-decoration: none; }
@media (max-width: 991px), (hover: none) {
    .cat-main .product-info { grid-template-columns: minmax(0, 1fr); }
    .cat-main .price-row { grid-column: 1; }
    .cat-main .actions { grid-column: 1; width: 100%; margin-top: 12px; }
    .cat-main .product-container .add-to-cart,
    .cat-main .product-container .product-card:hover .add-to-cart,
    .cat-main .product-container .add-to-cart:focus-visible {
        width: 100%; max-width: none; min-height: 44px; height: 44px;
        justify-content: center; padding: 0 8px; gap: 7px;
        border-radius: 10px; font-size: 10px; letter-spacing: .25px;
        background: #254b1e; transition: background .2s;
    }
    .cat-main .product-container .add-to-cart svg { width: 16px; height: 16px; flex-basis: 16px; }
}
@media (hover: none) {
    .cat-main .product-container .product-card:hover .image-container,
    .cat-main .product-container .product-card:hover .image-container img { transform: none; box-shadow: none; }
}
@media (max-width: 991px) {
    .fs { width: min(420px, 100vw); padding-bottom: max(24px, env(safe-area-inset-bottom)); overflow-x: hidden; overscroll-behavior: contain; }
    .fs-head { z-index: 2; }
    .fs-close { width: 44px; height: 44px; flex-shrink: 0; }
    .fs-group-title { min-height: 44px; font-size: 11px; }
    .fs-check, .fs-switch { min-height: 44px; font-size: 13px; }
    .fs-box { width: 20px; height: 20px; }
    .fs-box::after { left: 6px; top: 3px; }
    .fs-knob { width: 38px; height: 22px; }
    .fs-knob::after { width: 18px; height: 18px; }
    .fs-switch input:checked ~ .fs-knob::after { transform: translateX(16px); }
}
@media (max-width: 767px) {
    .category-page > .w100 > .wrap { padding: 0 8px; }
    .cat-head { margin: 22px 0 14px; }
    .cat-title { font-size: 24px; line-height: 1.2; letter-spacing: -.7px; }
    .fs-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 10px; padding: 0 0 14px; margin-bottom: 16px; }
    .fs-result { grid-row: 1; grid-column: 1 / -1; font-size: 10px; letter-spacing: .6px; }
    .fs-result b { font-size: 12px; }
    .fs-open { grid-row: 2; grid-column: 1; width: 100%; height: 44px; justify-content: center; padding: 0 10px; font-size: 11px; }
    .fs-sort { grid-row: 2; grid-column: 2; width: 100%; min-width: 0; margin: 0; }
    .fs-sort .sort-label { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .fs-sort .sort-select { width: 100%; min-width: 0; max-width: none; height: 44px; border-radius: 11px; font-size: 12px; padding-left: 12px; }
    .fs-sel { grid-column: 1 / -1; width: fit-content; max-width: 100%; height: auto; min-height: 36px; flex-wrap: wrap; }
    .cat-main .product-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
    .cat-main .product-card { min-width: 0; }
    .cat-main .product-container .image-container { padding: 0; border-radius: 18px; }
    .cat-main .product-container .discount-badge { border-radius: 18px 0 14px 0; }
    .cat-main .product-info { padding: 10px 6px 0; grid-template-rows: auto minmax(38px, auto) auto auto; align-content: start; align-items: start; gap: 6px 0; }
    .cat-main .tags-row { min-height: 0; gap: 3px; margin: 0; align-content: start; }
    .cat-main .product-container .tag { font-size: 7px; letter-spacing: 0; padding: 2px 5px; line-height: 13px; }
    .cat-main .product-name { margin: 0; font-size: 12px; line-height: 1.55; letter-spacing: 0; }
    .cat-main .price-row { gap: 4px; align-self: end; min-width: 0; }
    .cat-main .product-container .price.price-ask { font-size: 12px; letter-spacing: .3px; }
    .cat-main .product-container .price { font-size: clamp(15px, 4.4vw, 20px); line-height: 1.2; white-space: nowrap; letter-spacing: -.65px; }
    .cat-main .price .currency { font-size: 10px; margin-left: 2px; }
    .cat-main .unprice { font-size: 10px; line-height: 1.2; }
    .cat-main .actions { margin: 4px 0 0; align-self: end; }
    .cat-main .product-container .add-to-cart { text-transform: none; }
}
@media (max-width: 359px) {
    .category-page > .w100 > .wrap { padding: 0 12px; }
    .cat-main .product-info { padding: 8px; }
    .cat-main .product-container .price { font-size: 15px; }
    .cat-main .product-container .add-to-cart { font-size: 9px; gap: 5px; }
}
