/* MIRKA SHOP REFERENCE LAYOUT V1.0 */
body.post-type-archive-product,
body.tax-product_cat,
body.tax-product_tag {
    background: #f4efe4;
}

.mirka-shop-page {
    --cream: #f4efe4;
    --cream-2: #eee6d8;
    --ink: #302f28;
    --olive: #42492f;
    --olive-soft: #5b6441;
    --gold: #b9a276;
    width: min(1540px, calc(100% - 32px));
    margin: 0 auto;
    color: var(--ink);
    background: var(--cream);
    overflow: hidden;
}

.mirka-shop-page * { box-sizing: border-box; }

.mirka-shop-hero {
    position: relative;
    min-height: 570px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(25,28,19,.18), rgba(25,28,19,.04)),
        var(--mirka-shop-hero) center/cover no-repeat,
        #77705c;
    isolation: isolate;
}

.mirka-shop-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20,23,16,.45) 0%, rgba(20,23,16,.18) 40%, rgba(20,23,16,.04) 72%);
    z-index: -1;
}

.mirka-shop-hero__content {
    width: min(560px, 86%);
    margin-right: clamp(24px, 7vw, 105px);
    color: #fffdf7;
    text-shadow: 0 2px 16px rgba(0,0,0,.16);
}

.mirka-shop-hero__content span,
.mirka-section-heading span,
.mirka-editorial__copy > span {
    display: block;
    font-size: 13px;
    opacity: .78;
    margin-bottom: 9px;
}

.mirka-shop-hero__content h1 {
    margin: 0 0 10px;
    font-size: clamp(38px, 5vw, 78px);
    font-weight: 400;
    line-height: 1.1;
}

.mirka-shop-hero__content p {
    max-width: 500px;
    margin: 0 0 26px;
    font-size: 15px;
    line-height: 2;
}

.mirka-shop-hero__content a,
.mirka-editorial__copy a,
.mirka-gallery-band a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 45px;
    padding: 0 26px;
    border: 1px solid rgba(255,255,255,.66);
    color: #fff;
    text-decoration: none;
    background: rgba(42,48,31,.24);
    backdrop-filter: blur(8px);
    transition: .22s ease;
}

.mirka-shop-hero__content a:hover,
.mirka-gallery-band a:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-2px);
}

.mirka-shop-filter {
    border-top: 1px solid rgba(48,47,40,.18);
    border-bottom: 1px solid rgba(48,47,40,.18);
    background: #efe8da;
}

.mirka-shop-filter form {
    min-height: 106px;
    display: grid;
    grid-template-columns: 1.2fr 1.15fr 1fr 1fr .8fr .8fr auto;
    align-items: end;
    gap: 14px;
    padding: 18px 28px;
}

.mirka-filter-title {
    align-self: center;
}

.mirka-filter-title strong,
.mirka-filter-title small {
    display: block;
}

.mirka-filter-title small {
    margin-top: 5px;
    opacity: .58;
    font-size: 11px;
}

.mirka-shop-filter label {
    display: grid;
    gap: 6px;
    font-size: 11px;
}

.mirka-shop-filter input,
.mirka-shop-filter select {
    width: 100%;
    height: 42px;
    border: 0;
    border-bottom: 1px solid rgba(48,47,40,.36);
    background: transparent;
    outline: none;
    color: var(--ink);
    font: inherit;
}

.mirka-shop-filter button,
.mirka-filter-reset {
    height: 42px;
    padding: 0 18px;
    border: 1px solid var(--olive);
    background: var(--olive);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.mirka-filter-reset {
    background: transparent;
    color: var(--olive);
}

.mirka-products-section {
    padding: 55px 16px 70px;
}

.mirka-section-heading {
    text-align: center;
    margin: 0 auto 34px;
}

.mirka-section-heading h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 3vw, 43px);
    font-weight: 400;
}

.mirka-section-heading p {
    margin: 0;
    opacity: .65;
    font-size: 13px;
}

.mirka-shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 46px 14px;
}

.mirka-shop-card {
    margin: 0 !important;
    width: auto !important;
    float: none !important;
    background: transparent;
    list-style: none;
}

.mirka-shop-card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #e5ddcf;
}

.mirka-shop-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}

.mirka-shop-card:hover .mirka-shop-card__media img {
    transform: scale(1.025);
}

.mirka-shop-card__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 9px;
    background: rgba(66,73,47,.9);
    color: #fff;
    font-size: 11px;
}

.mirka-shop-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
    padding: 11px 2px 0;
}

.mirka-shop-card__title {
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    line-height: 1.8;
}

.mirka-shop-card__price {
    white-space: nowrap;
    font-size: 12px;
    color: var(--ink);
}

.mirka-shop-card__price del { opacity: .45; }
.mirka-shop-card__price ins { text-decoration: none; }

.mirka-shop-pagination {
    padding-top: 45px;
}

.mirka-shop-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 7px;
}

.mirka-shop-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(48,47,40,.22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
}

.mirka-shop-pagination .page-numbers.current {
    background: var(--olive);
    color: #fff;
}

.mirka-shop-empty {
    padding: 60px 20px;
    text-align: center;
}

.mirka-shop-empty strong,
.mirka-shop-empty a {
    display: block;
    margin: 8px auto;
}

.mirka-editorial {
    display: grid;
    grid-template-columns: 1.55fr .8fr;
    gap: 28px;
    padding: 34px 24px 75px;
    align-items: stretch;
}

.mirka-editorial__visuals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.mirka-editorial__visuals img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.mirka-editorial__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 34px clamp(10px, 3vw, 42px);
}

.mirka-editorial__copy h2 {
    margin: 0 0 16px;
    font-size: clamp(30px, 3.2vw, 50px);
    font-weight: 400;
    line-height: 1.35;
}

.mirka-editorial__copy p {
    margin: 0 0 24px;
    font-size: 13px;
    line-height: 2.05;
    opacity: .72;
}

.mirka-editorial__copy a {
    align-self: flex-start;
    color: var(--olive);
    border-color: rgba(66,73,47,.45);
    background: transparent;
}

.mirka-ethos {
    padding: 55px 24px 82px;
    border-top: 1px solid rgba(48,47,40,.12);
}

.mirka-ethos__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mirka-ethos article {
    text-align: center;
}

.mirka-ethos img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

.mirka-ethos h3 {
    margin: 15px 0 7px;
    font-size: 17px;
    font-weight: 500;
}

.mirka-ethos p {
    margin: 0 auto;
    max-width: 320px;
    line-height: 1.9;
    font-size: 12px;
    opacity: .68;
}

.mirka-gallery-band {
    min-height: 310px;
    margin: 0 24px 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(42,48,31,.72), rgba(42,48,31,.72)),
        var(--mirka-gallery-bg) center/cover no-repeat,
        var(--olive);
}

.mirka-gallery-band > div {
    width: min(650px, 86%);
}

.mirka-gallery-band span {
    font-size: 12px;
    opacity: .78;
}

.mirka-gallery-band h2 {
    margin: 7px 0 10px;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 400;
}

.mirka-gallery-band p {
    margin: 0 auto 20px;
    max-width: 480px;
    font-size: 13px;
    line-height: 2;
}

.mirka-world {
    padding: 18px 24px 42px;
}

.mirka-world__title {
    text-align: center;
    margin-bottom: 13px;
}

.mirka-world__title strong,
.mirka-world__title small {
    display: block;
}

.mirka-world__title small {
    margin-top: 5px;
    opacity: .62;
    font-size: 11px;
}

.mirka-world__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.mirka-world__grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .mirka-shop-filter form {
        grid-template-columns: repeat(3, 1fr);
    }
    .mirka-filter-title { grid-column: 1 / -1; }
    .mirka-shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
    .mirka-shop-page {
        width: 100%;
    }

    .mirka-shop-hero {
        min-height: 440px;
    }

    .mirka-shop-filter form {
        grid-template-columns: 1fr 1fr;
        padding: 18px 16px;
    }

    .mirka-filter-title {
        grid-column: 1 / -1;
    }

    .mirka-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 9px;
    }

    .mirka-products-section {
        padding: 42px 10px 55px;
    }

    .mirka-editorial {
        grid-template-columns: 1fr;
        padding: 26px 12px 55px;
    }

    .mirka-editorial__visuals img {
        height: 300px;
    }

    .mirka-editorial__copy {
        padding: 18px 8px;
    }

    .mirka-ethos {
        padding: 45px 12px 60px;
    }

    .mirka-ethos__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mirka-ethos article {
        display: grid;
        grid-template-columns: 110px 1fr;
        grid-template-rows: auto auto;
        text-align: right;
        gap: 2px 14px;
        align-items: center;
    }

    .mirka-ethos img {
        grid-row: 1 / 3;
        width: 110px;
        height: 110px;
    }

    .mirka-ethos h3,
    .mirka-ethos p { margin: 0; }

    .mirka-gallery-band {
        margin: 0 12px 22px;
    }

    .mirka-world {
        padding: 14px 12px 30px;
    }

    .mirka-world__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 560px) {
    .mirka-shop-hero {
        min-height: 390px;
        background-position: center center;
    }

    .mirka-shop-hero__content {
        width: 86%;
        margin-right: 20px;
    }

    .mirka-shop-hero__content h1 {
        font-size: 37px;
    }

    .mirka-shop-filter form {
        grid-template-columns: 1fr;
    }

    .mirka-shop-filter button,
    .mirka-filter-reset {
        width: 100%;
    }

    .mirka-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mirka-shop-card__meta {
        display: block;
    }

    .mirka-shop-card__price {
        margin-top: 4px;
    }

    .mirka-editorial__visuals img {
        height: 220px;
    }

    .mirka-gallery-band {
        min-height: 250px;
    }
}

/* ===== MIRKA PREMIUM SHOP FILTER V2.0 ===== */
.mirka-shop-filter--premium{
  padding:26px 22px 18px!important;border:0!important;
  background:radial-gradient(circle at 8% 0%,rgba(184,162,118,.14),transparent 32%),linear-gradient(180deg,#f5efe4,#f1eadc)!important
}
.mirka-filter-shell{
  border:1px solid rgba(94,91,72,.12);border-radius:26px;padding:24px;
  background:rgba(255,255,255,.42);backdrop-filter:blur(14px);
  box-shadow:0 18px 45px rgba(68,66,53,.08),inset 0 1px 0 rgba(255,255,255,.7)
}
.mirka-filter-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.mirka-filter-kicker{display:block;margin-bottom:5px;color:#9b865f;font-size:11px}
.mirka-filter-head h2{margin:0;font-size:22px;font-weight:600;color:#34362b}
.mirka-filter-head p{margin:6px 0 0;color:rgba(52,54,43,.58);font-size:12px}
.mirka-filter-mobile-toggle{display:none;border:1px solid rgba(65,75,48,.15);border-radius:999px;background:#f8f3e9;color:#465032;padding:10px 14px;font:inherit}
.mirka-filter-form{
  display:grid!important;grid-template-columns:1.4fr 1fr 1fr 1.45fr auto!important;
  gap:14px!important;align-items:stretch!important;padding:0!important;min-height:0!important
}
.mirka-filter-field{
  display:flex!important;flex-direction:column;gap:8px;padding:14px 15px 13px;
  border:1px solid rgba(67,73,50,.12);border-radius:18px;background:rgba(250,247,240,.8);
  transition:.2s ease;min-width:0
}
.mirka-filter-field:hover,.mirka-filter-field:focus-within{
  border-color:rgba(169,147,101,.5);transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(83,78,62,.07);background:#fffaf2
}
.mirka-filter-field label{font-size:11px!important;color:rgba(53,55,44,.62);font-weight:500}
.mirka-filter-input-wrap,.mirka-filter-select-wrap{display:flex;align-items:center;gap:8px;position:relative}
.mirka-filter-symbol{color:#927d56;font-size:20px;line-height:1}
.mirka-filter-field input,.mirka-filter-field select{
  width:100%;height:38px!important;border:0!important;background:transparent!important;
  color:#34362b!important;font:inherit!important;outline:none!important;box-shadow:none!important
}
.mirka-filter-field select{appearance:none;-webkit-appearance:none;padding-left:24px}
.mirka-filter-chevron{position:absolute;left:0;top:50%;transform:translateY(-50%);color:#8f7f60;pointer-events:none}
.mirka-price-values{display:grid;grid-template-columns:1fr auto 1fr;gap:8px;align-items:end}
.mirka-price-values small{display:block;font-size:9px;color:rgba(52,54,43,.45)}
.mirka-price-values input{height:28px!important;font-size:11px!important;padding:0!important}
.mirka-price-values>span{padding-bottom:7px;color:#a08b63}
.mirka-range-track{position:relative;height:20px}
.mirka-range-track:before{
  content:"";position:absolute;top:9px;left:0;right:0;height:3px;border-radius:99px;
  background:linear-gradient(90deg,#d8ccb5,#9f8d65,#d8ccb5)
}
.mirka-range-track input[type=range]{
  position:absolute;inset:0;width:100%;height:20px!important;margin:0;
  appearance:none;-webkit-appearance:none;background:transparent!important;pointer-events:none
}
.mirka-range-track input[type=range]::-webkit-slider-thumb{
  appearance:none;-webkit-appearance:none;width:15px;height:15px;border-radius:50%;
  background:#465032;border:3px solid #f7f1e6;box-shadow:0 2px 8px rgba(45,50,34,.22);pointer-events:auto;cursor:pointer
}
.mirka-filter-actions{display:flex;flex-direction:column;gap:8px;justify-content:center}
.mirka-filter-submit,.mirka-filter-reset{
  min-width:132px;border-radius:14px!important;display:flex!important;align-items:center;justify-content:center;
  text-decoration:none;transition:.2s ease
}
.mirka-filter-submit{
  height:48px!important;border:1px solid #465032!important;
  background:linear-gradient(135deg,#4c5736,#3e482d)!important;color:#fff!important;
  box-shadow:0 9px 20px rgba(63,73,45,.16)
}
.mirka-filter-submit:hover{transform:translateY(-2px);box-shadow:0 13px 26px rgba(63,73,45,.22)}
.mirka-filter-reset{height:32px!important;border:0!important;background:transparent!important;color:#6d745b!important;font-size:10px}
.mirka-filter-chips{
  grid-column:1/-1;display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-top:3px
}
.mirka-filter-chips>span{font-size:10px;color:rgba(52,54,43,.48)}
.mirka-filter-chips a{
  display:inline-flex;align-items:center;min-height:30px;padding:0 12px;border-radius:999px;
  border:1px solid rgba(74,81,54,.12);background:rgba(255,255,255,.55);
  color:#4a4d3d;text-decoration:none;font-size:10px;transition:.18s ease
}
.mirka-filter-chips a:hover,.mirka-filter-chips a.is-active{background:#465032;color:#fff;border-color:#465032;transform:translateY(-1px)}

@media(max-width:1180px){
  .mirka-filter-form{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .mirka-filter-field--search,.mirka-filter-field--price{grid-column:span 2}
  .mirka-filter-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-start}
}
@media(max-width:720px){
  .mirka-shop-filter--premium{padding:12px 10px 8px!important}
  .mirka-filter-shell{border-radius:20px;padding:16px}
  .mirka-filter-head{margin-bottom:12px}
  .mirka-filter-head h2{font-size:18px}
  .mirka-filter-head p{display:none}
  .mirka-filter-mobile-toggle{display:inline-flex}
  .mirka-filter-form{display:none!important;grid-template-columns:1fr!important}
  .mirka-filter-form.is-open{display:grid!important;animation:mirkaFilterOpen .22s ease both}
  .mirka-filter-field--search,.mirka-filter-field--price,.mirka-filter-actions{grid-column:auto}
  .mirka-filter-actions{flex-direction:column}
  .mirka-filter-submit,.mirka-filter-reset{width:100%}
}
@keyframes mirkaFilterOpen{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* ===== MIRKA PREMIUM FILTER COMPACT V2.1 ===== */

/* Overall filter: more conventional, tighter vertical rhythm */
.mirka-shop-filter--premium{
    padding: 16px 22px 14px !important;
}

.mirka-filter-shell{
    padding: 17px 20px 16px !important;
    border-radius: 22px !important;
}

.mirka-filter-head{
    margin-bottom: 14px !important;
    align-items: center !important;
}

.mirka-filter-kicker{
    margin-bottom: 3px !important;
    font-size: 10px !important;
}

.mirka-filter-head h2{
    font-size: 20px !important;
    line-height: 1.45 !important;
}

.mirka-filter-head p{
    margin-top: 3px !important;
    font-size: 11px !important;
    line-height: 1.7 !important;
}

/* Critical fix: grid children must NOT stretch to height of price card */
.mirka-filter-form{
    align-items: start !important;
    gap: 11px !important;
}

/* Normal filter cards */
.mirka-filter-field{
    height: 86px !important;
    min-height: 86px !important;
    padding: 10px 13px !important;
    gap: 3px !important;
    border-radius: 15px !important;
    justify-content: center !important;
}

.mirka-filter-field label{
    line-height: 1.35 !important;
    margin: 0 !important;
    font-size: 10px !important;
}

/* Inputs/selects stay compact and centered */
.mirka-filter-input-wrap,
.mirka-filter-select-wrap{
    min-height: 34px !important;
}

.mirka-filter-field input,
.mirka-filter-field select{
    height: 34px !important;
    min-height: 34px !important;
    line-height: 34px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Price card gets a little more room, but remains visually aligned */
.mirka-filter-field--price{
    height: 86px !important;
    min-height: 86px !important;
    padding-top: 8px !important;
    padding-bottom: 7px !important;
    justify-content: flex-start !important;
}

.mirka-price-values{
    gap: 5px !important;
    align-items: center !important;
}

.mirka-price-values small{
    margin: 0 0 1px !important;
    line-height: 1.15 !important;
}

.mirka-price-values input{
    height: 23px !important;
    min-height: 23px !important;
    line-height: 23px !important;
}

.mirka-price-values > span{
    padding-bottom: 0 !important;
}

.mirka-range-track{
    height: 14px !important;
    margin-top: 0 !important;
}

.mirka-range-track::before{
    top: 6px !important;
}

.mirka-range-track input[type="range"]{
    height: 14px !important;
}

/* Action button aligned with the compact cards */
.mirka-filter-actions{
    height: 86px !important;
    min-height: 86px !important;
    justify-content: center !important;
    align-self: start !important;
}

.mirka-filter-submit{
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 12px !important;
}

.mirka-filter-reset{
    height: 26px !important;
    min-height: 26px !important;
}

/* Quick chips closer to controls */
.mirka-filter-chips{
    padding-top: 0 !important;
    margin-top: -1px !important;
    gap: 6px !important;
}

.mirka-filter-chips a{
    min-height: 28px !important;
    padding: 0 11px !important;
}

/* Tablet/mobile: don't force desktop heights when cards stack */
@media (max-width:1180px){
    .mirka-filter-field,
    .mirka-filter-field--price,
    .mirka-filter-actions{
        height: auto !important;
        min-height: 78px !important;
    }
}

@media (max-width:720px){
    .mirka-shop-filter--premium{
        padding: 10px 8px 8px !important;
    }

    .mirka-filter-shell{
        padding: 14px !important;
        border-radius: 18px !important;
    }

    .mirka-filter-head{
        margin-bottom: 9px !important;
    }

    .mirka-filter-field,
    .mirka-filter-field--price{
        min-height: 72px !important;
        padding: 9px 12px !important;
    }

    .mirka-filter-actions{
        min-height: auto !important;
        height: auto !important;
    }

    .mirka-filter-submit{
        height: 42px !important;
    }
}

/* ===== END MIRKA PREMIUM FILTER COMPACT V2.1 ===== */
