/* ==========================================================================
   Mizrahnik Shop — Travel Magazine edition
   Visual language: topographic contours, oversized numbers, luggage tags,
   editorial typography. Scoped under .mz-shop-wrap. Dark-mode + RTL.
   ========================================================================== */

.mz-shop-wrap {
    --mz-shop-primary: #5FA886;
    --mz-shop-secondary: #FFEEAD;
    --mz-shop-ink: #0f1a2e;
    --mz-shop-paper: #fbf9f4;
    --mz-shop-paper-2: #ffffff;
    --mz-shop-text: var(--mz-text, #0f1a2e);
    --mz-shop-muted: var(--mz-muted, #6b7280);
    --mz-shop-border: rgba(15, 26, 46, .12);
    --mz-shop-line: rgba(15, 26, 46, .08);

    position: relative;
    direction: rtl;
    font-family: 'Fredoka', 'Assistant', system-ui, -apple-system, sans-serif;
    color: var(--mz-shop-text);
    background: var(--mz-shop-paper);
    padding: clamp(48px, 8vw, 120px) clamp(16px, 4vw, 56px);
    overflow: hidden;
    isolation: isolate;
}

html[data-theme="dark"] .mz-shop-wrap {
    --mz-shop-paper: #0b1220;
    --mz-shop-paper-2: #111827;
    --mz-shop-text: #e7eaf0;
    --mz-shop-muted: #9ca3af;
    --mz-shop-border: rgba(231, 234, 240, .16);
    --mz-shop-line: rgba(231, 234, 240, .09);
}

/* ---------- Dark mode link color overrides ----------
   Mizrahnik dark-mode plugin forces green on all <a> unless excluded via :not().
   Override with high specificity so our custom cards stay readable.
   ========================================================================== */
html[data-theme="dark"] .mz-shop-wrap a,
html[data-theme="dark"] .mz-shop-wrap a:hover,
html[data-theme="dark"] .mz-shop-wrap a:visited {
    color: var(--mz-shop-text) !important;
}
html[data-theme="dark"] .mz-shop-wrap .mz-shop-product__title a:hover,
html[data-theme="dark"] .mz-shop-wrap .mz-shop-product__title a:focus-visible {
    color: var(--mz-card-accent, #5FA886) !important;
}

/* ---------- Aurora (kept subtle) ---------- */
.mz-shop-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
.mz-shop-aurora__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .18;
}
.mz-shop-aurora__blob--1 {
    width: 520px; height: 520px;
    background: radial-gradient(circle, #5FA886, transparent 70%);
    top: -180px; right: -120px;
}
.mz-shop-aurora__blob--2 {
    width: 440px; height: 440px;
    background: radial-gradient(circle, #FFEEAD, transparent 70%);
    bottom: -160px; left: -80px;
}
.mz-shop-aurora__blob--3 { display: none; }
html[data-theme="dark"] .mz-shop-aurora__blob { opacity: .12; }

/* ==========================================================================
   Editorial header
   ========================================================================== */
.mz-shop-header {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto clamp(48px, 7vw, 96px);
    padding: 0 clamp(8px, 2vw, 24px);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px 28px;
    align-items: end;
}
.mz-shop-kicker {
    grid-column: 1 / -1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--mz-shop-primary);
    margin: 0 0 8px;
}
.mz-shop-kicker::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
}
.mz-shop-title {
    font-size: clamp(40px, 7vw, 96px);
    font-weight: 700;
    line-height: .95;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--mz-shop-text);
    max-width: 14ch;
}
.mz-shop-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--mz-shop-primary);
}
.mz-shop-sub {
    font-size: clamp(15px, 1.4vw, 19px);
    color: var(--mz-shop-muted);
    margin: 0;
    max-width: 38ch;
    line-height: 1.6;
    justify-self: start;
    align-self: end;
    padding-bottom: 8px;
}
@media (max-width: 768px) {
    .mz-shop-header { grid-template-columns: 1fr; }
    .mz-shop-sub { padding-bottom: 0; }
}

/* ==========================================================================
   Category cards — editorial bento
   ========================================================================== */
.mz-shop-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(var(--mz-shop-cols, 4), 1fr);
    grid-auto-rows: 260px;
    gap: 18px;
    max-width: 1280px;
    margin: 0 auto;
}

.mz-shop-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 28px 24px;
    border-radius: 22px;
    background: var(--mz-shop-paper-2);
    border: 1px solid var(--mz-shop-border);
    text-decoration: none !important;
    color: var(--mz-shop-text) !important;
    overflow: hidden;
    isolation: isolate;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1),
                border-color .4s ease,
                box-shadow .5s ease;
    box-shadow: 0 2px 0 var(--mz-shop-border);
    will-change: transform;
}

/* Topographic contour lines — concentric ellipses radiating from bottom-right */
.mz-shop-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 140% 90% at 85% 115%, transparent 34%, var(--mz-card-accent, #5FA886) 34.4%, transparent 35.2%),
        radial-gradient(ellipse 115% 75% at 85% 115%, transparent 42%, var(--mz-card-accent, #5FA886) 42.4%, transparent 43.2%),
        radial-gradient(ellipse 92% 60% at 85% 115%, transparent 50%, var(--mz-card-accent, #5FA886) 50.4%, transparent 51.2%),
        radial-gradient(ellipse 70% 45% at 85% 115%, transparent 58%, var(--mz-card-accent, #5FA886) 58.4%, transparent 59.2%),
        radial-gradient(ellipse 50% 32% at 85% 115%, transparent 66%, var(--mz-card-accent, #5FA886) 66.4%, transparent 67.2%);
    opacity: .18;
    z-index: 0;
    pointer-events: none;
    transition: opacity .5s ease, transform .8s cubic-bezier(.2, .8, .2, 1);
}
html[data-theme="dark"] .mz-shop-card::before { opacity: .28; }

.mz-shop-card:hover::before,
.mz-shop-card:focus-visible::before {
    opacity: .38;
    transform: scale(1.08);
}
html[data-theme="dark"] .mz-shop-card:hover::before,
html[data-theme="dark"] .mz-shop-card:focus-visible::before { opacity: .5; }

.mz-shop-card:hover,
.mz-shop-card:focus-visible {
    transform: translateY(-6px);
    border-color: var(--mz-card-accent, #5FA886);
    box-shadow:
        0 2px 0 var(--mz-card-accent, #5FA886),
        0 30px 60px -25px rgba(15, 26, 46, .25);
}
html[data-theme="dark"] .mz-shop-card:hover,
html[data-theme="dark"] .mz-shop-card:focus-visible {
    box-shadow:
        0 2px 0 var(--mz-card-accent, #5FA886),
        0 30px 60px -25px rgba(0, 0, 0, .8);
}
.mz-shop-card:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 55%, transparent);
    outline-offset: 4px;
}

/* Number (01, 02…) — oversized editorial */
.mz-shop-card__num {
    position: relative;
    z-index: 2;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .15em;
    color: var(--mz-shop-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mz-shop-card__num::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mz-shop-line);
    max-width: 60px;
}

/* Icon stamp — small, in top-right corner */
.mz-shop-card__icon {
    position: absolute;
    top: 24px;
    inset-inline-start: 24px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mz-shop-paper);
    color: var(--mz-card-accent, #5FA886);
    border: 1px solid var(--mz-shop-border);
    z-index: 3;
    transition: transform .5s cubic-bezier(.2, .8, .2, 1),
                background .3s ease, border-color .3s ease;
}
.mz-shop-card__icon svg { width: 24px; height: 24px; }
.mz-shop-card__icon svg path {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: mz-shop-draw 1.6s ease forwards;
    animation-delay: calc(var(--mz-shop-delay, 0s) + .2s);
}
.mz-shop-card:hover .mz-shop-card__icon {
    transform: rotate(-8deg) scale(1.1);
    background: var(--mz-card-accent, #5FA886);
    color: #ffffff;
    border-color: var(--mz-card-accent, #5FA886);
}
@keyframes mz-shop-draw { to { stroke-dashoffset: 0; } }

.mz-shop-card__body {
    position: relative;
    z-index: 2;
    margin-top: auto;
    max-width: 90%;
}
.mz-shop-card__title {
    font-size: clamp(26px, 3vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
    color: var(--mz-shop-text) !important;
}
.mz-shop-card__desc {
    font-size: 14px;
    color: var(--mz-shop-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 36ch;
}

.mz-shop-card__foot {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mz-shop-line);
}
.mz-shop-card__count {
    font-size: 12px;
    font-weight: 600;
    color: var(--mz-shop-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.mz-shop-card__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--mz-shop-text) !important;
    border: 1px solid var(--mz-shop-border);
    transition: background .3s ease,
                color .3s ease,
                border-color .3s ease,
                transform .4s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-card__cta svg { width: 18px; height: 18px; transition: transform .4s ease; }
.mz-shop-card:hover .mz-shop-card__cta {
    background: var(--mz-card-accent, #5FA886);
    color: #ffffff !important;
    border-color: var(--mz-card-accent, #5FA886);
    transform: rotate(-45deg);
}
.mz-shop-card:hover .mz-shop-card__cta svg { transform: rotate(45deg); }
.mz-shop-card__cta-text { display: none; }

/* Hide bg image by default — too noisy */
.mz-shop-card__bg { display: none; }
.mz-shop-card__glow { display: none; }

/* Bento sizes */
.mz-shop-card--small  { grid-column: span 1; grid-row: span 1; }
.mz-shop-card--medium { grid-column: span 2; grid-row: span 1; }
.mz-shop-card--large  { grid-column: span 2; grid-row: span 2; }
.mz-shop-card--large .mz-shop-card__title { font-size: clamp(40px, 4.5vw, 64px); }
.mz-shop-card--large .mz-shop-card__desc { font-size: 16px; max-width: 44ch; }

/* ==========================================================================
   Grouped view — category sections with horizontal product rails
   ========================================================================== */
.mz-shop-nav {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 1280px;
    margin: -32px auto clamp(56px, 8vw, 96px);
    padding: 0 clamp(8px, 2vw, 24px);
}
.mz-shop-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--mz-shop-border);
    color: var(--mz-shop-text) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color .3s ease, background .3s ease;
}
.mz-shop-nav__link:hover,
.mz-shop-nav__link:focus-visible {
    border-color: var(--mz-card-accent, #5FA886);
    background: color-mix(in srgb, var(--mz-card-accent, #5FA886) 8%, transparent);
}
.mz-shop-nav__link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 50%, transparent);
    outline-offset: 2px;
}
.mz-shop-nav__count {
    font-size: 11px;
    font-weight: 700;
    color: var(--mz-card-accent, #5FA886);
    padding: 2px 8px;
    border-radius: 50px;
    background: color-mix(in srgb, var(--mz-card-accent, #5FA886) 14%, transparent);
}

.mz-shop-group {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto clamp(72px, 10vw, 128px);
    padding: 0 clamp(8px, 2vw, 24px);
    scroll-margin-top: 100px;
}
.mz-shop-group__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px 24px;
    align-items: end;
    margin-bottom: clamp(28px, 4vw, 48px);
    padding-bottom: 24px;
    border-bottom: 1px solid var(--mz-shop-border);
    position: relative;
}
.mz-shop-group__header::after {
    content: "";
    position: absolute;
    bottom: -1px;
    inset-inline-start: 0;
    width: 120px;
    height: 3px;
    background: var(--mz-card-accent, #5FA886);
    border-radius: 2px;
}
.mz-shop-group__icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: var(--mz-shop-paper-2);
    color: var(--mz-card-accent, #5FA886);
    border: 1px solid var(--mz-shop-border);
    flex-shrink: 0;
}
.mz-shop-group__icon svg { width: 38px; height: 38px; }
.mz-shop-group__text { min-width: 0; }
.mz-shop-group__title {
    font-size: clamp(32px, 4.5vw, 64px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: var(--mz-shop-text);
}
.mz-shop-group__desc {
    font-size: 15px;
    color: var(--mz-shop-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 56ch;
}
.mz-shop-group__all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    border-radius: 50px;
    background: var(--mz-shop-text);
    color: var(--mz-shop-paper) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), gap .3s ease;
    white-space: nowrap;
}
.mz-shop-group__all:hover,
.mz-shop-group__all:focus-visible {
    transform: translateY(-2px);
    gap: 12px;
}
.mz-shop-group__all:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 50%, transparent);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .mz-shop-group__header {
        grid-template-columns: auto 1fr;
    }
    .mz-shop-group__all {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .mz-shop-group__icon { width: 56px; height: 56px; }
    .mz-shop-group__icon svg { width: 28px; height: 28px; }
}

/* ==========================================================================
   Product cards — image-dominant, luggage-tag price
   ========================================================================== */
.mz-shop-grid--products {
    grid-auto-rows: auto;
    gap: 28px 22px;
}
.mz-shop-product {
    grid-column: span 1;
    grid-row: auto;
    padding: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    background: transparent;
    border: none;
    box-shadow: none;
}
.mz-shop-product::before { display: none; }
.mz-shop-product::after { display: none; }
.mz-shop-product:hover,
.mz-shop-product:focus-within {
    transform: translateY(-4px);
    box-shadow: none;
}

.mz-shop-product__media-link {
    display: block;
    text-decoration: none !important;
    color: inherit !important;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: var(--mz-shop-paper-2);
    border: 1px solid var(--mz-shop-border);
    box-shadow: 0 2px 0 var(--mz-shop-border);
    transition: border-color .4s ease, box-shadow .4s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-product__media-link:hover,
.mz-shop-product:hover .mz-shop-product__media-link,
.mz-shop-product__media-link:focus-visible {
    border-color: var(--mz-card-accent, #5FA886);
    box-shadow: 0 2px 0 var(--mz-card-accent, #5FA886);
}
.mz-shop-product__media-link:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 55%, transparent);
    outline-offset: 3px;
}
.mz-shop-product__media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.mz-shop-product__media::after {
    /* topographic contour */
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 120% 80% at 20% 90%, transparent 44%, var(--mz-card-accent, #5FA886) 44.5%, transparent 45.5%),
        radial-gradient(ellipse 90% 60% at 20% 90%, transparent 54%, var(--mz-card-accent, #5FA886) 54.5%, transparent 55.5%),
        radial-gradient(ellipse 65% 42% at 20% 90%, transparent 64%, var(--mz-card-accent, #5FA886) 64.5%, transparent 65.5%);
    opacity: .12;
    z-index: 1;
    pointer-events: none;
    transition: opacity .5s ease;
}
.mz-shop-product:hover .mz-shop-product__media::after { opacity: .25; }

.mz-shop-product__media img {
    position: relative;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-product:hover .mz-shop-product__media img {
    transform: scale(1.06);
}

/* Luggage-tag price — hangs from top-right of image */
.mz-shop-product__price {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px 10px 22px;
    background: var(--mz-shop-paper-2);
    color: var(--mz-shop-text);
    font-size: 15px;
    font-weight: 700;
    border-radius: 6px 30px 30px 6px;
    border: 1px solid var(--mz-shop-border);
    box-shadow: 0 4px 16px rgba(15, 26, 46, .12);
    direction: rtl;
    unicode-bidi: isolate;
    margin: 0;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-product__price::before {
    /* tag hole */
    content: "";
    position: absolute;
    top: 50%;
    inset-inline-end: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mz-shop-paper);
    border: 1px solid var(--mz-shop-border);
    transform: translateY(-50%);
}
.mz-shop-product:hover .mz-shop-product__price {
    transform: rotate(-2deg) scale(1.04);
}
.mz-shop-product__price del {
    color: var(--mz-shop-muted);
    font-weight: 500;
    font-size: 13px;
    margin-inline-end: 6px;
}
.mz-shop-product__price ins {
    text-decoration: none;
    color: var(--mz-card-accent, #5FA886);
}

.mz-shop-product__badge {
    position: absolute;
    top: 16px;
    inset-inline-start: 16px;
    z-index: 3;
    padding: 6px 12px;
    background: var(--mz-shop-primary);
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 50px;
}
.mz-shop-product__icon {
    position: absolute;
    bottom: 16px;
    inset-inline-start: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--mz-shop-paper-2);
    color: var(--mz-card-accent, #5FA886);
    border: 1px solid var(--mz-shop-border);
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-product__icon svg { width: 22px; height: 22px; }
.mz-shop-product:hover .mz-shop-product__icon {
    transform: rotate(-8deg) scale(1.08);
}

/* Body below image */
.mz-shop-product__body {
    padding: 18px 4px 0;
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.mz-shop-product__title {
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 6px;
    line-height: 1.25;
    letter-spacing: -0.01em;
}
.mz-shop-product__title a {
    color: var(--mz-shop-text) !important;
    text-decoration: none !important;
    transition: color .3s ease;
    background: none !important;
}
.mz-shop-product__title a:hover,
.mz-shop-product__title a:focus-visible {
    color: var(--mz-card-accent, #5FA886) !important;
}
.mz-shop-product__desc {
    font-size: 13px;
    color: var(--mz-shop-muted);
    margin: 0;
    line-height: 1.55;
}

/* "פרטים נוספים «" inline text link beneath the description */
.mz-shop-product__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    background: none !important;
    border: none !important;
    font-size: 13px;
    font-weight: 700;
    color: var(--mz-card-accent, #5FA886) !important;
    text-decoration: none !important;
    transition: gap .3s ease, color .3s ease;
    align-self: flex-start;
}
.mz-shop-product__more svg {
    transition: transform .3s ease;
    flex-shrink: 0;
}
.mz-shop-product__more:hover,
.mz-shop-product__more:focus-visible {
    gap: 10px;
    color: var(--mz-card-accent, #5FA886) !important;
}
.mz-shop-product__more:hover svg,
.mz-shop-product__more:focus-visible svg {
    transform: translateX(-4px);
}
.mz-shop-product__more:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 50%, transparent);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Foot — cart button only */
.mz-shop-product__foot {
    padding: 16px 4px 0;
    margin-top: auto;
    position: relative;
    z-index: 2;
}
.mz-shop-product .mz-shop-product__cart,
.mz-shop-product a.mz-shop-product__cart {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px !important;
    border-radius: 50px !important;
    background: #5FA886 !important;
    color: #ffffff !important;
    border: 1.5px solid #5FA886 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: 0 6px 18px -6px rgba(95, 168, 134, .5) !important;
    cursor: pointer;
    min-height: 48px;
    transition: background .3s ease, border-color .3s ease, gap .3s ease, transform .3s ease, box-shadow .3s ease !important;
    position: relative;
    overflow: hidden;
    line-height: 1 !important;
}
.mz-shop-product .mz-shop-product__cart svg,
.mz-shop-product a.mz-shop-product__cart svg,
.mz-shop-product .mz-shop-product__cart span,
.mz-shop-product a.mz-shop-product__cart span {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
.mz-shop-product__cart::before { display: none !important; }
.mz-shop-product .mz-shop-product__cart:hover,
.mz-shop-product .mz-shop-product__cart:focus-visible,
.mz-shop-product a.mz-shop-product__cart:hover,
.mz-shop-product a.mz-shop-product__cart:focus-visible {
    background: #4e9173 !important;
    color: #ffffff !important;
    border-color: #4e9173 !important;
    gap: 14px;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(95, 168, 134, .65) !important;
}
html[data-theme="dark"] .mz-shop-product .mz-shop-product__cart,
html[data-theme="dark"] .mz-shop-product a.mz-shop-product__cart {
    background: #5FA886 !important;
    color: #ffffff !important;
    border-color: #5FA886 !important;
}
html[data-theme="dark"] .mz-shop-product .mz-shop-product__cart svg,
html[data-theme="dark"] .mz-shop-product a.mz-shop-product__cart svg,
html[data-theme="dark"] .mz-shop-product .mz-shop-product__cart span,
html[data-theme="dark"] .mz-shop-product a.mz-shop-product__cart span {
    color: #ffffff !important;
    stroke: #ffffff !important;
}
.mz-shop-product__cart:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mz-card-accent, #5FA886) 50%, transparent);
    outline-offset: 3px;
}
.mz-shop-product__cart svg {
    flex-shrink: 0;
    width: 18px; height: 18px;
    transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.mz-shop-product__cart:hover svg {
    transform: translateX(-4px);
}
.mz-shop-product__cart.loading { opacity: .6; pointer-events: none; }
.mz-shop-product__cart.loading svg { animation: mz-shop-spin 1s linear infinite; }
.mz-shop-product__cart.added {
    background: var(--mz-card-accent, #5FA886) !important;
    color: #ffffff !important;
    border-color: var(--mz-card-accent, #5FA886) !important;
}
.mz-shop-product__cart.added::after {
    content: "✓";
    font-weight: 900;
    font-size: 16px;
}
.mz-shop-product .added_to_cart { display: none !important; }
@keyframes mz-shop-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   Category archive hero
   ========================================================================== */
.mz-shop-wrap--category .mz-shop-cat-hero {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto clamp(56px, 8vw, 96px);
    padding: 0 clamp(8px, 2vw, 24px);
    text-align: start;
}
.mz-shop-wrap--category .mz-shop-kicker {
    margin-bottom: 20px;
}
.mz-shop-cat-hero__icon {
    width: 96px;
    height: 96px;
    margin: 0 0 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--mz-shop-paper-2);
    color: var(--mz-card-accent, #5FA886);
    border: 1px solid var(--mz-shop-border);
    box-shadow: 0 2px 0 var(--mz-card-accent, #5FA886);
}
.mz-shop-cat-hero__icon svg { width: 52px; height: 52px; }
.mz-shop-cat-hero__title {
    font-size: clamp(44px, 8vw, 120px);
    font-weight: 700;
    line-height: .9;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: var(--mz-shop-text);
}
.mz-shop-cat-hero__desc {
    font-size: clamp(16px, 1.6vw, 20px);
    color: var(--mz-shop-muted);
    margin: 0 0 20px;
    line-height: 1.6;
    max-width: 54ch;
}
.mz-shop-cat-hero__count {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 50px;
    background: transparent;
    border: 1px solid var(--mz-shop-border);
    color: var(--mz-shop-muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.mz-shop-cat-hero__count::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mz-card-accent, #5FA886);
}

/* ==========================================================================
   Empty + responsive
   ========================================================================== */
.mz-shop-empty {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 80px 20px;
    color: var(--mz-shop-muted);
    font-size: 17px;
}

@media (max-width: 1024px) {
    .mz-shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .mz-shop-card--large { grid-column: span 3; grid-row: span 1; }
    .mz-shop-grid--products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .mz-shop-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 220px;
        gap: 14px;
    }
    .mz-shop-card--medium,
    .mz-shop-card--large { grid-column: span 2; grid-row: span 1; }
    .mz-shop-card { padding: 22px 22px 20px; }
    .mz-shop-card__title { font-size: clamp(22px, 5vw, 30px); }
    .mz-shop-grid--products {
        grid-template-columns: 1fr;
        grid-auto-rows: auto !important;
        gap: 48px;
    }
    .mz-shop-product {
        padding-bottom: 8px;
    }
    .mz-shop-product__media-link {
        aspect-ratio: auto !important;
        height: 340px !important;
        max-width: 480px;
        width: 100%;
        margin-left: auto;
        margin-right: auto;
        flex-shrink: 0;
        display: block;
    }
    .mz-shop-product__media {
        height: 100%;
        width: 100%;
    }
    .mz-shop-product__media img {
        object-fit: contain !important;
        width: 100% !important;
        height: 100% !important;
    }
    .mz-shop-product__body {
        padding: 20px 16px 0 !important;
        flex: 0 0 auto !important;
    }
    .mz-shop-product__foot {
        padding: 18px 16px 0 !important;
        flex: 0 0 auto !important;
    }
    .mz-shop-product__title { font-size: 19px; text-align: center; }
    .mz-shop-product__desc { text-align: center; }
    .mz-shop-product__more { align-self: center; }
    .mz-shop-product__body { align-items: center; }
}
@media (max-width: 480px) {
    .mz-shop-grid { grid-template-columns: 1fr; }
    .mz-shop-card--small,
    .mz-shop-card--medium,
    .mz-shop-card--large { grid-column: span 1; }
    .mz-shop-product__media-link {
        max-width: 100%;
        height: 300px !important;
        aspect-ratio: auto !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mz-shop-card,
    .mz-shop-card::before,
    .mz-shop-card__icon,
    .mz-shop-product__media img,
    .mz-shop-product__price,
    .mz-shop-card__cta,
    .mz-shop-card__cta svg {
        animation: none !important;
        transition: none !important;
    }
    .mz-shop-card__icon svg path {
        stroke-dasharray: none;
        stroke-dashoffset: 0;
    }
}

/* ==========================================================================
   Tag Filter — pill chips above each products grid
   RTL + dark mode + scoped under .mz-shop-wrap
   ========================================================================== */

.mz-shop-wrap .mz-shop-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin: 0 0 28px;
    padding: 0;
    direction: rtl;
}

.mz-shop-wrap .mz-shop-tags__chip {
    appearance: none;
    -webkit-appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font: 500 14px/1.2 'Fredoka', 'Assistant', system-ui, sans-serif;
    color: var(--mz-shop-text);
    background: var(--mz-shop-paper-2);
    border: 1px solid var(--mz-shop-border);
    border-radius: 999px;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
    text-decoration: none;
    white-space: nowrap;
}

.mz-shop-wrap .mz-shop-tags__chip:hover {
    border-color: var(--mz-card-accent, var(--mz-shop-primary));
    color: var(--mz-card-accent, var(--mz-shop-primary));
    transform: translateY(-1px);
}

.mz-shop-wrap .mz-shop-tags__chip:focus-visible {
    outline: 3px solid var(--mz-focus, rgba(95, 168, 134, .35));
    outline-offset: 2px;
}

.mz-shop-wrap .mz-shop-tags__chip.is-active {
    background: var(--mz-card-accent, var(--mz-shop-primary));
    border-color: var(--mz-card-accent, var(--mz-shop-primary));
    color: #ffffff;
}

/* Required: .mz-shop-card defines display: flex which overrides the
   user-agent [hidden] { display: none } rule. Force-hide filtered cards. */
.mz-shop-wrap .mz-shop-card[hidden],
.mz-shop-wrap .mz-shop-product[hidden] {
    display: none !important;
}

/* Dark mode — beat the global [data-theme="dark"] a color rule's specificity,
   in case chip is rendered as <a> in a future variant. Currently it's <button>,
   but we defend against regression. */
html[data-theme="dark"] .mz-shop-wrap .mz-shop-tags__chip {
    background: var(--mz-shop-paper-2);
    color: var(--mz-shop-text);
    border-color: var(--mz-shop-border);
}

html[data-theme="dark"] .mz-shop-wrap .mz-shop-tags__chip:hover {
    color: var(--mz-card-accent, var(--mz-shop-primary));
}

html[data-theme="dark"] .mz-shop-wrap .mz-shop-tags__chip.is-active {
    color: #ffffff !important;
    background: var(--mz-card-accent, var(--mz-shop-primary));
    border-color: var(--mz-card-accent, var(--mz-shop-primary));
}

@media (max-width: 560px) {
    .mz-shop-wrap .mz-shop-tags {
        gap: 6px 8px;
        margin-bottom: 20px;
    }
    .mz-shop-wrap .mz-shop-tags__chip {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mz-shop-wrap .mz-shop-tags__chip {
        transition: none;
    }
    .mz-shop-wrap .mz-shop-tags__chip:hover {
        transform: none;
    }
}
