/**
 * Mataram Web Templates — showcase UI.
 * Scoped to .mwt-archive, .mwt-single, and .mwt-shortcode.
 */

.mwt-archive,
.mwt-single,
.mwt-shortcode {
    --mwt-primary: var(--mw-primary, #0d5ce8);
    --mwt-primary-dark: var(--mw-primary-dark, #0a49b8);
    --mwt-primary-deep: var(--mw-primary-deep, #072a75);
    --mwt-accent: var(--mw-secondary, #f59e0b);
    --mwt-ink: var(--mw-dark, #0f172a);
    --mwt-body: var(--mw-text, #334155);
    --mwt-muted: var(--mw-muted, #64748b);
    --mwt-line: var(--mw-border, #e6ecf5);
    --mwt-surface: var(--mw-surface, #ffffff);
    --mwt-bg: var(--mw-bg, #f8fafc);
    --mwt-radius: var(--mw-radius, 16px);
    --mwt-shadow: 0 18px 40px -22px rgba(7, 42, 117, 0.32);
    color: var(--mwt-body);
    font-family: inherit;
}

.mwt-archive a,
.mwt-single a,
.mwt-shortcode a,
.mwt-archive a:hover,
.mwt-single a:hover,
.mwt-shortcode a:hover,
.mwt-archive a:focus,
.mwt-single a:focus,
.mwt-shortcode a:focus {
    text-decoration: none;
}

.mwt-archive :focus-visible,
.mwt-single :focus-visible,
.mwt-shortcode :focus-visible {
    outline: 3px solid color-mix(in srgb, var(--mwt-primary) 45%, transparent);
    outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */

.mwt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mwt-btn svg {
    flex: 0 0 auto;
}

.mwt-btn--primary {
    background: var(--mwt-primary);
    color: #fff;
    box-shadow: 0 12px 24px -14px color-mix(in srgb, var(--mwt-primary) 65%, transparent);
}

.mwt-btn--primary:hover,
.mwt-btn--primary:focus-visible {
    background: var(--mwt-primary-dark);
    color: #fff;
    transform: translateY(-1px);
}

.mwt-btn--ghost {
    background: var(--mwt-surface);
    border-color: var(--mwt-line);
    color: var(--mwt-ink);
}

.mwt-btn--ghost:hover,
.mwt-btn--ghost:focus-visible {
    border-color: var(--mwt-primary);
    color: var(--mwt-primary);
    background: color-mix(in srgb, var(--mwt-primary) 6%, #fff);
}

.mwt-btn--light {
    background: #fff;
    color: var(--mwt-primary-dark);
}

.mwt-btn--light:hover,
.mwt-btn--light:focus-visible {
    background: #f1f6ff;
    color: var(--mwt-primary-deep);
    transform: translateY(-1px);
}

.mwt-btn--outline-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.mwt-btn--outline-light:hover,
.mwt-btn--outline-light:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.mwt-btn--lg {
    padding: 15px 26px;
    font-size: 15px;
}

.mwt-btn--sm {
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 12.5px;
}

.mwt-btn--block {
    width: 100%;
}

/* ---------------------------------------------------------------
   Shared type
   --------------------------------------------------------------- */

.mwt-kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--mwt-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mwt-kicker--light {
    color: color-mix(in srgb, #fff 82%, var(--mwt-accent));
}

.mwt-section-head {
    margin-bottom: 28px;
}

.mwt-section-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.mwt-section-head--center {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.mwt-section-title {
    margin: 0 0 10px;
    color: var(--mwt-ink);
    font-family: var(--mw-serif, inherit);
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mwt-section-desc {
    margin: 0;
    color: var(--mwt-muted);
    font-size: 15.5px;
    line-height: 1.7;
}

.mwt-text-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--mwt-primary);
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.mwt-text-link:hover,
.mwt-text-link:focus-visible {
    color: var(--mwt-primary-dark);
}

/* ---------------------------------------------------------------
   Breadcrumbs
   --------------------------------------------------------------- */

.mwt-crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    font-size: 13px;
}

.mwt-crumbs a {
    color: var(--mwt-muted);
    font-weight: 600;
    transition: color 0.18s ease;
}

.mwt-crumbs a:hover,
.mwt-crumbs a:focus-visible {
    color: var(--mwt-primary);
}

.mwt-crumbs > span[aria-hidden] {
    color: #cbd5e1;
}

.mwt-crumbs > span[aria-current] {
    color: var(--mwt-ink);
    font-weight: 700;
}

/* ---------------------------------------------------------------
   Archive hero
   --------------------------------------------------------------- */

.mw-main.mwt-archive {
    padding: 0;
}

.mwt-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(28px, 3.6vw, 44px) 0 clamp(58px, 6.4vw, 88px);
    background:
        radial-gradient(1100px 620px at 84% -18%, rgba(45, 118, 255, 0.56), transparent 62%),
        radial-gradient(760px 460px at -12% 118%, rgba(29, 78, 216, 0.36), transparent 60%),
        linear-gradient(152deg, #050b1c 0%, #071a3f 48%, #0a2a63 100%);
    color: #e2e8f0;
}

.mwt-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(148, 178, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 178, 255, 0.075) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 80% 72% at 30% 0%, #000 20%, transparent 76%);
    mask-image: radial-gradient(ellipse 80% 72% at 30% 0%, #000 20%, transparent 76%);
    pointer-events: none;
}

.mwt-hero::after {
    content: "";
    position: absolute;
    top: -220px;
    right: -180px;
    z-index: -1;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(255, 255, 255, 0.025),
        0 0 0 160px rgba(255, 255, 255, 0.018);
    pointer-events: none;
}

.mwt-hero .mw-container {
    position: relative;
    z-index: 1;
}

.mwt-hero .mwt-crumbs {
    margin-bottom: clamp(26px, 3.4vw, 40px);
}

.mwt-hero .mwt-crumbs a {
    color: rgba(203, 213, 225, 0.72);
}

.mwt-hero .mwt-crumbs a:hover,
.mwt-hero .mwt-crumbs a:focus-visible {
    color: #fff;
}

.mwt-hero .mwt-crumbs > span[aria-hidden] {
    color: rgba(148, 163, 184, 0.42);
}

.mwt-hero .mwt-crumbs > span[aria-current] {
    color: #f1f5f9;
    font-weight: 600;
}

.mwt-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.mwt-hero__copy {
    max-width: 720px;
}

.mwt-hero .mwt-kicker,
.mwt-hero .mwt-kicker--hero {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: #93bdff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.mwt-hero .mwt-kicker::before {
    content: "";
    width: 26px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.mwt-hero h1.mwt-hero__title {
    margin: 0 0 18px;
    color: #f8fafc;
    font-family: var(--mw-serif, inherit);
    font-size: clamp(2.25rem, 4.4vw, 3.7rem);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.035em;
}

.mwt-accent {
    color: #8ab4ff;
}

.mwt-hero__desc {
    max-width: 56ch;
    margin: 0 0 22px;
    color: rgba(226, 232, 240, 0.78);
    font-size: clamp(0.98rem, 1.15vw, 1.075rem);
    line-height: 1.75;
}

.mwt-hero__points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.mwt-hero__points li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e2e8f0;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
}

.mwt-hero__points svg {
    flex: none;
    color: #60a5fa;
}

.mwt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.mwt-hero .mwt-btn--light {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    background: #ffffff;
    color: #0b2a63;
    box-shadow: 0 16px 34px -18px rgba(2, 10, 30, 0.72);
}

.mwt-hero .mwt-btn--light svg {
    transition: transform 0.2s ease;
}

.mwt-hero .mwt-btn--light:hover,
.mwt-hero .mwt-btn--light:focus-visible {
    background: #eaf1ff;
    color: var(--mwt-primary-deep);
    box-shadow: 0 20px 40px -18px rgba(2, 10, 30, 0.82);
    transform: translateY(-2px);
}

.mwt-hero .mwt-btn--light:hover svg {
    transform: translateX(3px);
}

.mwt-hero .mwt-btn--ghost {
    min-height: 50px;
    padding: 0 24px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.24);
    color: #e2e8f0;
}

.mwt-hero .mwt-btn--ghost:hover,
.mwt-hero .mwt-btn--ghost:focus-visible {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.mwt-hero__aside {
    position: relative;
    overflow: hidden;
    padding: clamp(22px, 2.4vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 22px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 30px 60px -34px rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
}

.mwt-hero__aside::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(360px 160px at 88% -20%, rgba(138, 180, 255, 0.28), transparent 70%);
    pointer-events: none;
}

.mwt-hero__aside-label {
    position: relative;
    display: block;
    margin-bottom: 16px;
    color: #93bdff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.mwt-stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mwt-stat {
    min-width: 0;
    padding: 0;
    border-left: 0;
}

.mwt-stat + .mwt-stat {
    padding-left: 16px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.mwt-stat strong {
    display: block;
    color: #ffffff;
    font-size: clamp(1.85rem, 2.5vw, 2.3rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.mwt-stat span {
    display: block;
    margin-top: 5px;
    color: rgba(203, 213, 225, 0.74);
    font-size: 0.8125rem;
    line-height: 1.35;
}

.mwt-stat-price {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(147, 189, 255, 0.24);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.mwt-stat-price__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mwt-stat-price__label {
    color: #dbeafe;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
}

.mwt-stat-price__sub {
    color: rgba(203, 213, 225, 0.68);
    font-size: 0.72rem;
    line-height: 1.3;
}

.mwt-stat-price__val {
    flex: none;
    color: #ffffff;
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    white-space: nowrap;
}

.mwt-hero__note {
    position: relative;
    margin: 16px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(203, 213, 225, 0.7);
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ---------------------------------------------------------------
   Catalogue (Clean WordPress Theme Directory Library Style)
   --------------------------------------------------------------- */

.mwt-catalog {
    padding: 52px 0 72px;
    background: #f0f2f5;
}

.mwt-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 14px;
    margin-bottom: 22px;
    padding: 0 14px;
    min-height: 50px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.mwt-toolbar__main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    overflow-x: auto;
    scrollbar-width: none;
}

.mwt-toolbar__main::-webkit-scrollbar {
    display: none;
}

.mwt-toolbar__count {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 23px;
    padding: 0 9px;
    border-radius: 999px;
    background: #50575e;
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1;
}

.mwt-tabs {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 2px 12px;
    min-width: 0;
}

.mwt-tab {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 14px 1px 11px;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #475569;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.mwt-tab:hover,
.mwt-tab:focus-visible {
    color: var(--mwt-primary);
}

.mwt-tab.is-active {
    border-bottom-color: var(--mwt-primary);
    color: #0f172a;
    font-weight: 700;
}

.mwt-toolbar__aside {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
}

.mwt-search {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.mwt-search__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mwt-search__input {
    width: 156px;
    height: 32px;
    box-sizing: border-box;
    padding: 0 10px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1.2;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mwt-search__input::placeholder {
    color: #64748b;
}

.mwt-search__input:focus {
    outline: none;
    border-color: var(--mwt-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mwt-primary) 20%, transparent);
}

.mwt-sort {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.mwt-sort select {
    height: 32px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 24px 0 9px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    background-color: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 500;
    line-height: 30px;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .mwt-toolbar {
        flex-wrap: wrap;
        padding: 8px 14px 10px;
    }

    .mwt-toolbar__aside {
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #eceef1;
    }
}

/* Grid */

.mwt-grid {
    display: grid;
    gap: 24px;
}

.mwt-grid [hidden] {
    display: none !important;
}

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

.mwt-grid--cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mwt-grid--cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 1024px) {
    .mwt-grid--cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .mwt-grid--cols-3,
    .mwt-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

/* Card — Clean WordPress Theme Library Card */

.mwt-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 0.18s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.mwt-card:hover,
.mwt-card:focus-within {
    border-color: #94a3b8;
    box-shadow: 0 14px 30px -18px rgba(15, 23, 42, 0.3);
    transform: translateY(-2px);
}

.mwt-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f6f7f7;
    border-bottom: 1px solid #eceef1;
}

.mwt-card__screen {
    display: block;
    width: 100%;
    height: 100%;
}

.mwt-card__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.35s ease;
}

.mwt-card:hover .mwt-card__screen img {
    transform: scale(1.03);
}

.mwt-card__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-left: 4px solid #16a34a;
    border-bottom: 1px solid rgba(22, 163, 74, 0.16);
    background: rgba(236, 253, 245, 0.96);
    color: #14532d;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    pointer-events: none;
}

.mwt-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mwt-card:hover .mwt-card__overlay,
.mwt-card:focus-within .mwt-card__overlay {
    opacity: 1;
}

.mwt-card__overlay-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 136px;
    padding: 9px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition: background-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.mwt-card__overlay-btn--pri {
    background: var(--mwt-primary);
    color: #ffffff !important;
    box-shadow: 0 8px 18px -8px rgba(0, 0, 0, 0.45);
}

.mwt-card__overlay-btn--pri:hover,
.mwt-card__overlay-btn--pri:focus-visible {
    background: var(--mwt-primary-dark);
    color: #ffffff !important;
}

.mwt-card__overlay-btn--sec {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a !important;
}

.mwt-card__overlay-btn--sec:hover,
.mwt-card__overlay-btn--sec:focus-visible {
    background: #ffffff;
    color: var(--mwt-primary-dark) !important;
}

/* Shared browser frame used on single-template hero */
.mwt-shot {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 12px 12px 0 0;
    background: #fff;
}

.mwt-shot__bar {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 30px;
    padding: 0 11px;
    background: #0f172a;
}

.mwt-shot__dots {
    display: inline-flex;
    gap: 4px;
}

.mwt-shot__dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
}

.mwt-shot__dots span:first-child {
    background: #f87171;
}

.mwt-shot__dots span:nth-child(2) {
    background: #fbbf24;
}

.mwt-shot__dots span:nth-child(3) {
    background: #34d399;
}

.mwt-shot__url {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.55);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mwt-shot__screen {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f9;
}

.mwt-shot__screen img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    background: #eef2f9;
}

.mwt-shot__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 600;
}

.mwt-card__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 46px;
    padding: 11px 12px;
    background: #ffffff;
}

.mwt-card__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: #1d2327;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mwt-card__title a {
    color: inherit;
    transition: color 0.15s ease;
}

.mwt-card__title a:hover,
.mwt-card__title a:focus-visible {
    color: var(--mwt-primary);
}

.mwt-card__price {
    flex: 0 0 auto;
    color: var(--mwt-primary-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mwt-card__demo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--mwt-primary);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.mwt-card__demo-link:hover,
.mwt-card__demo-link:focus-visible {
    color: var(--mwt-primary-dark);
}

.mwt-card__bar-actions {
    display: none;
    align-items: center;
    gap: 6px;
}

.mwt-bar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 11px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.mwt-bar-btn--pri {
    background: var(--mwt-primary);
    color: #ffffff !important;
}

.mwt-bar-btn--ghost {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b !important;
}

/* Empty + pagination */

.mwt-empty {
    margin: 28px 0 0;
    color: var(--mwt-muted);
    font-size: 14px;
    text-align: center;
}

.mwt-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.mwt-grid.mwt-motion .mwt-card {
    will-change: transform, opacity;
}

.mwt-empty-state {
    padding: 56px 24px;
    border: 1px dashed var(--mwt-line);
    border-radius: 20px;
    background: var(--mwt-surface);
    text-align: center;
}

.mwt-empty-state__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--mwt-primary) 9%, #fff);
    color: var(--mwt-primary);
}

.mwt-empty-state h2 {
    margin: 0 0 8px;
    color: var(--mwt-ink);
    font-size: 22px;
}

.mwt-empty-state p {
    max-width: 480px;
    margin: 0 auto 20px;
    color: var(--mwt-muted);
    font-size: 14px;
    line-height: 1.65;
}

.mwt-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 34px;
}

.mwt-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid var(--mwt-line);
    border-radius: 10px;
    background: var(--mwt-surface);
    color: var(--mwt-body);
    font-size: 13px;
    font-weight: 700;
}

.mwt-pagination .page-numbers:hover,
.mwt-pagination .page-numbers:focus-visible {
    border-color: var(--mwt-primary);
    color: var(--mwt-primary);
}

.mwt-pagination .page-numbers.current {
    border-color: var(--mwt-primary);
    background: var(--mwt-primary);
    color: #fff;
}

/* ---------------------------------------------------------------
   Included / features
   --------------------------------------------------------------- */

.mwt-included {
    padding: 68px 0;
    background: var(--mwt-surface);
}

.mwt-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 34px;
}

.mwt-feature {
    padding: 24px 22px;
    border: 1px solid var(--mwt-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.mwt-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--mwt-primary) 9%, #fff);
    color: var(--mwt-primary);
}

.mwt-feature h3 {
    margin: 0 0 7px;
    color: var(--mwt-ink);
    font-size: 15.5px;
    font-weight: 800;
    line-height: 1.35;
}

.mwt-feature p {
    margin: 0;
    color: var(--mwt-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

/* Steps */

.mwt-steps {
    padding: 68px 0;
    background: var(--mwt-bg);
}

.mwt-steps__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 52px;
    align-items: start;
}

.mwt-steps__copy .mwt-section-desc {
    margin-bottom: 22px;
}

.mwt-steps__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.mwt-steps__list li {
    display: flex;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid var(--mwt-line);
    border-radius: 16px;
    background: var(--mwt-surface);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mwt-steps__list li:hover {
    border-color: color-mix(in srgb, var(--mwt-primary) 26%, var(--mwt-line));
    box-shadow: 0 14px 30px -24px rgba(7, 42, 117, 0.35);
}

.mwt-steps__num {
    flex: 0 0 auto;
    color: color-mix(in srgb, var(--mwt-primary) 26%, #fff);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mwt-steps__list h3 {
    margin: 0 0 5px;
    color: var(--mwt-ink);
    font-size: 15.5px;
    font-weight: 800;
}

.mwt-steps__list p {
    margin: 0;
    color: var(--mwt-muted);
    font-size: 13.5px;
    line-height: 1.65;
}

/* ---------------------------------------------------------------
   Dark CTA
   --------------------------------------------------------------- */

.mwt-cta {
    padding: 0 0 72px;
    background: var(--mwt-bg);
}

.mwt-included + .mwt-steps + .mwt-cta {
    padding-top: 0;
}

.mwt-cta__box {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 40px 44px;
    border-radius: 24px;
    background:
        radial-gradient(560px 260px at 92% -30%, color-mix(in srgb, var(--mwt-accent) 22%, transparent), transparent 65%),
        radial-gradient(480px 280px at 0% 130%, color-mix(in srgb, var(--mwt-primary) 45%, transparent), transparent 65%),
        linear-gradient(135deg, var(--mwt-primary-dark) 0%, var(--mwt-primary-deep) 60%, #0b132b 100%);
    color: #fff;
}

.mwt-cta__copy {
    max-width: 680px;
}

.mwt-cta__copy h2 {
    margin: 0 0 10px;
    color: #fff;
    font-family: var(--mw-serif, inherit);
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.mwt-cta__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14.5px;
    line-height: 1.7;
}

.mwt-cta__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 10px;
}

/* ---------------------------------------------------------------
   Single — hero + purchase card
   --------------------------------------------------------------- */

.mwt-single {
    padding: 36px 0 0;
    background: var(--mwt-bg);
}

.mwt-single__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 38px;
    align-items: center;
    padding: 10px 0 46px;
}

.mwt-single__media {
    min-width: 0;
}

.mwt-single__panel {
    padding: 28px 30px;
    border: 1px solid var(--mwt-line);
    border-radius: 22px;
    background: var(--mwt-surface);
    box-shadow: 0 26px 54px -38px rgba(7, 42, 117, 0.42);
}

.mwt-single__media-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 440px;
    margin: 12px 2px 0;
    color: var(--mwt-muted);
    font-size: 11.5px;
    line-height: 1.55;
}

.mwt-single__media-note svg {
    flex: 0 0 auto;
    margin-top: 1px;
}

.mwt-single__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mwt-single__cat {
    color: var(--mwt-primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mwt-single__cat:hover,
.mwt-single__cat:focus-visible {
    color: var(--mwt-primary-dark);
}

.mwt-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mwt-accent) 16%, #fff);
    color: #925900;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mwt-single__title {
    margin: 0 0 12px;
    color: var(--mwt-ink);
    font-family: var(--mw-serif, inherit);
    font-size: clamp(27px, 2.9vw, 38px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.mwt-single__tagline {
    margin: 0 0 18px;
    color: var(--mwt-body);
    font-size: 15.5px;
    line-height: 1.7;
}

.mwt-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.mwt-single__meta li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 11px;
    border: 1px solid var(--mwt-line);
    border-radius: 9px;
    background: var(--mwt-bg);
}

.mwt-single__meta span {
    color: var(--mwt-muted);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mwt-single__meta strong {
    color: var(--mwt-ink);
    font-size: 11.5px;
    font-weight: 700;
}

.mwt-single__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mwt-single__actions .mwt-btn {
    flex: 1 1 150px;
    justify-content: center;
}

/* Price + panel extras */

.mwt-single__price {
    display: grid;
    gap: 3px;
    margin: 0 0 18px;
    padding: 15px 0 16px;
    border-top: 1px solid var(--mwt-line);
    border-bottom: 1px solid var(--mwt-line);
}

.mwt-single__price-label {
    color: var(--mwt-muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.mwt-single__price-value {
    color: var(--mwt-ink);
    font-size: clamp(24px, 2.4vw, 30px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.mwt-single__price small {
    color: var(--mwt-muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.mwt-single__wa {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    margin-top: 14px;
    color: var(--mwt-body);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.16s ease;
}

.mwt-single__wa strong {
    color: var(--mwt-primary);
    font-weight: 800;
    transition: color 0.16s ease;
}

.mwt-single__wa:hover strong,
.mwt-single__wa:focus-visible strong {
    color: var(--mwt-primary-dark);
}

.mwt-single__note {
    margin: 10px 0 0;
    color: var(--mwt-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

/* Product preview */

.mwt-shot--hero {
    max-width: 620px;
    margin: 0;
    border-radius: 18px;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 30px 60px -34px rgba(7, 42, 117, 0.42);
}

.mwt-shot--hero .mwt-shot__bar {
    height: 36px;
    padding: 0 14px;
}

.mwt-shot--hero .mwt-shot__dots span {
    width: 7px;
    height: 7px;
}

.mwt-shot--hero .mwt-shot__url {
    font-size: 10.5px;
}

.mwt-shot--hero .mwt-shot__screen {
    aspect-ratio: 4 / 3;
}

.mwt-shot--hero .mwt-shot__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.mwt-shot--hero .mwt-shot__placeholder {
    aspect-ratio: 4 / 3;
    gap: 12px;
    font-size: 13px;
}

/* Body */

.mwt-single__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
    padding-bottom: 64px;
}

.mwt-single__main {
    padding: 34px 36px;
    border: 1px solid var(--mwt-line);
    border-radius: 20px;
    background: var(--mwt-surface);
}

.mwt-single__main h2 {
    margin: 0 0 14px;
    color: var(--mwt-ink);
    font-family: var(--mw-serif, inherit);
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mwt-prose {
    margin-bottom: 34px;
}

.mwt-prose p,
.mwt-prose li {
    color: var(--mwt-body);
    font-size: 15.5px;
    line-height: 1.8;
}

.mwt-prose p {
    margin: 0 0 1em;
}

.mwt-prose ul,
.mwt-prose ol {
    margin: 0 0 1.2em;
    padding-left: 1.25em;
}

.mwt-prose a {
    color: var(--mwt-primary);
    font-weight: 600;
}

.mwt-prose a:hover,
.mwt-prose a:focus-visible {
    color: var(--mwt-primary-dark);
}

.mwt-prose h3 {
    margin: 1.4em 0 0.5em;
    color: var(--mwt-ink);
    font-size: 19px;
    font-weight: 800;
}

.mwt-features-block,
.mwt-fit,
.mwt-faq {
    padding-top: 30px;
    border-top: 1px solid var(--mwt-line);
}

.mwt-features-block {
    margin-bottom: 34px;
}

.mwt-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mwt-checks li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--mwt-body);
    font-size: 14px;
    line-height: 1.55;
}

.mwt-checks svg {
    flex: 0 0 auto;
    margin-top: 3px;
    color: #16a34a;
}

.mwt-fit {
    margin-bottom: 34px;
}

.mwt-fit p {
    margin: 0;
    color: var(--mwt-body);
    font-size: 15px;
    line-height: 1.75;
}

.mwt-faq__list {
    display: grid;
    gap: 0;
}

.mwt-faq__item {
    border-bottom: 1px solid var(--mwt-line);
}

.mwt-faq__item:first-child {
    border-top: 1px solid var(--mwt-line);
}

.mwt-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 2px;
    color: var(--mwt-ink);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
}

.mwt-faq__item summary::-webkit-details-marker {
    display: none;
}

.mwt-faq__item summary svg {
    flex: 0 0 auto;
    color: var(--mwt-muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.mwt-faq__item[open] summary {
    color: var(--mwt-primary);
}

.mwt-faq__item[open] summary svg {
    color: var(--mwt-primary);
    transform: rotate(45deg);
}

.mwt-faq__item p {
    margin: 0 0 18px;
    color: var(--mwt-muted);
    font-size: 14px;
    line-height: 1.75;
}

/* Side */

.mwt-single__side {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.mwt-side-card,
.mwt-side-help {
    padding: 22px;
    border: 1px solid var(--mwt-line);
    border-radius: 18px;
    background: var(--mwt-surface);
}

.mwt-side-card h2,
.mwt-side-help h2 {
    margin: 0 0 14px;
    color: var(--mwt-ink);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
}

.mwt-side-facts {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
}

.mwt-side-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 9px;
    border-bottom: 1px dashed var(--mwt-line);
}

.mwt-side-facts > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mwt-side-facts dt {
    color: var(--mwt-muted);
    font-size: 12px;
    font-weight: 600;
}

.mwt-side-facts dd {
    margin: 0;
    color: var(--mwt-ink);
    font-size: 12.5px;
    font-weight: 700;
    text-align: right;
}

.mwt-side-card__link {
    display: block;
    margin-top: 12px;
    color: var(--mwt-body);
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    transition: color 0.16s ease;
}

.mwt-side-card__link:hover,
.mwt-side-card__link:focus-visible {
    color: var(--mwt-primary);
}

.mwt-side-help p {
    margin: 0 0 12px;
    color: var(--mwt-muted);
    font-size: 13px;
    line-height: 1.65;
}

/* Related */

.mwt-related {
    padding: 58px 0 66px;
    background: var(--mwt-surface);
}

/* Shortcode */

.mwt-shortcode {
    margin: 0;
}

.mwt-shortcode .mwt-section-head {
    margin-top: 0;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 1100px) {
    .mwt-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .mwt-hero__aside {
        max-width: 560px;
    }

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

    .mwt-single__hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
        gap: 28px;
    }

    .mwt-single__actions .mwt-btn {
        flex-basis: 100%;
    }
}

@media (max-width: 900px) {
    .mwt-single__hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 26px;
        padding-bottom: 40px;
    }

    .mwt-shot--hero {
        margin: 0 auto;
    }

    .mwt-single__panel {
        padding: 24px;
    }

    .mwt-single__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .mwt-single__side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mwt-steps__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .mwt-section-head--split {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .mwt-cta__box {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 34px;
    }
}

@media (max-width: 640px) {
    .mwt-hero {
        padding: 32px 0 48px;
    }

    .mwt-hero h1.mwt-hero__title {
        font-size: clamp(1.9rem, 7.2vw, 2.5rem);
        line-height: 1.12;
    }

    .mwt-hero__desc {
        font-size: 15px;
    }

    .mwt-hero__actions .mwt-btn {
        width: 100%;
    }

    .mwt-hero__aside {
        padding: 20px;
    }

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

    .mwt-stat strong {
        font-size: 1.65rem;
    }

    .mwt-stat-price {
        padding: 12px 14px;
    }

    .mwt-stat-price__val {
        font-size: 1.1rem;
    }

    .mwt-catalog {
        padding: 40px 0 54px;
    }

    .mwt-toolbar {
        padding: 10px 14px 12px;
        gap: 10px;
    }

    .mwt-toolbar__main {
        width: 100%;
        gap: 12px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .mwt-toolbar__main::-webkit-scrollbar {
        display: none;
    }

    .mwt-tabs {
        flex-wrap: nowrap;
        gap: 14px;
    }

    .mwt-tab {
        padding: 10px 2px 9px;
    }

    .mwt-toolbar__aside {
        width: 100%;
        flex-wrap: wrap;
        padding: 4px 0 0;
        border-top: 1px solid #eceef1;
    }

    .mwt-search {
        flex: 1 1 180px;
    }

    .mwt-search__label {
        display: none;
    }

    .mwt-search__input {
        width: 100%;
    }

    .mwt-grid--cols-2,
    .mwt-grid--cols-3,
    .mwt-grid--cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .mwt-feature-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mwt-feature {
        padding: 20px;
    }

    .mwt-included,
    .mwt-steps {
        padding: 50px 0;
    }

    .mwt-card__overlay {
        display: none;
    }

    .mwt-card__bar {
        flex-wrap: wrap;
        padding: 9px 9px 10px;
        gap: 4px 6px;
    }

    .mwt-card__title {
        font-size: 13px;
    }

    .mwt-card__demo-link {
        display: none;
    }

    .mwt-card__bar-actions {
        display: inline-flex;
        width: 100%;
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #f1f5f9;
    }

    .mwt-bar-btn {
        flex: 1 1 0%;
        padding: 6px 4px;
        font-size: 11px;
    }

    .mwt-more {
        margin-top: 22px;
    }

    .mwt-more .mwt-btn {
        width: 100%;
    }

    .mwt-single {
        padding-top: 24px;
    }

    .mwt-single__title {
        font-size: clamp(25px, 7.4vw, 32px);
    }

    .mwt-single__tagline {
        font-size: 15px;
    }

    .mwt-single__panel {
        padding: 20px;
        border-radius: 18px;
    }

    .mwt-single__media-note {
        font-size: 11px;
    }

    .mwt-shot--hero {
        border-radius: 14px;
    }

    .mwt-single__actions .mwt-btn {
        width: 100%;
    }

    .mwt-single__main {
        padding: 24px 20px;
    }

    .mwt-single__side {
        grid-template-columns: minmax(0, 1fr);
    }

    .mwt-checks {
        grid-template-columns: minmax(0, 1fr);
    }

    .mwt-cta__box {
        padding: 26px 22px;
        border-radius: 18px;
    }

    .mwt-cta__actions {
        width: 100%;
    }

    .mwt-cta__actions .mwt-btn {
        width: 100%;
    }

    .mwt-crumbs {
        margin-bottom: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mwt-card,
    .mwt-card:hover,
    .mwt-card .mwt-card__screen img,
    .mwt-card:hover .mwt-card__screen img,
    .mwt-card__overlay,
    .mwt-card .mwt-shot__screen img,
    .mwt-card:hover .mwt-shot__screen img,
    .mwt-btn,
    .mwt-btn:hover,
    .mwt-steps__list li,
    .mwt-faq__item summary svg {
        transform: none;
        transition: none;
    }
}


/* ==========================================================================
   Tall Scrollable Template Grid — Native Theme Color Style (--mw-*)
   & Single Template Full-Width Hero + Consolidated Dense Sidebar Panel
   ========================================================================== */

.mwt-catalog {
    background: var(--mw-bg, #f8fafc);
}

.mwt-toolbar {
    border: 1px solid var(--mw-border, #e6ecf5);
    border-radius: 10px;
    background: var(--mw-surface, #ffffff);
    box-shadow: var(--mw-shadow-xs, 0 1px 2px rgba(11, 19, 43, 0.04));
}

.mwt-toolbar__count {
    background: var(--mw-primary, #0D5CE8);
    color: #ffffff;
}

.mwt-tab {
    color: var(--mw-muted, #64748b);
}

.mwt-tab:hover,
.mwt-tab:focus-visible {
    color: var(--mw-primary, #0D5CE8);
}

.mwt-tab.is-active {
    border-bottom-color: var(--mw-primary, #0D5CE8);
    color: var(--mw-dark, #0f172a);
}

.mwt-search__input,
.mwt-sort select {
    border: 1px solid var(--mw-border, #e6ecf5);
    background-color: var(--mw-surface, #ffffff);
    color: var(--mw-dark, #0f172a);
}

.mwt-search__input::placeholder {
    color: var(--mw-muted, #64748b);
}

.mwt-search__input:focus {
    border-color: var(--mw-primary, #0D5CE8);
    box-shadow: var(--mw-ring, 0 0 0 3.5px rgba(13, 92, 232, 0.15));
}

.mwt-grid {
    gap: 28px 22px;
}

.mwt-card,
.mwt-card.mwt-card--kirki {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--mw-border, #e6ecf5);
    border-radius: var(--mw-radius, 16px);
    background-color: var(--mw-surface, #ffffff);
    box-shadow: var(--mw-shadow-xs, 0 1px 2px rgba(11, 19, 43, 0.04));
    transition: border-color 0.22s ease, box-shadow 0.24s ease;
}

.mwt-card:hover,
.mwt-card:focus-within,
.mwt-card.is-scrolling {
    border-color: var(--mw-primary-border, #DBE8FE);
    box-shadow: var(--mw-shadow-sm, 0 10px 24px -6px rgba(7, 42, 117, 0.08));
    transform: none;
}

.mwt-card__media {
    position: relative;
    display: block;
    width: 100%;
    padding: 6px 6px 0 6px;
    aspect-ratio: auto;
    overflow: visible;
    background: var(--mw-surface, #ffffff);
    border-bottom: 0;
}

.mwt-card__screen {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 317 / 348;
    overflow: hidden;
    border: 1px solid var(--mw-border, #e6ecf5);
    border-radius: calc(var(--mw-radius, 16px) - 5px) calc(var(--mw-radius, 16px) - 5px) 4px 4px;
    background: var(--mw-bg, #f8fafc);
    cursor: pointer;
}

.mwt-card .mwt-card__screen img,
.mwt-card__screen img.mwt-shot__img {
    display: block;
    width: 100%;
    height: auto !important;
    max-width: 100%;
    object-fit: cover;
    object-position: top center;
    will-change: transform;
    transform-style: preserve-3d;
    transform: translate3d(0, 0%, 0);
    transition: transform 1000ms ease-in-out;
}

.mwt-card:hover .mwt-card__screen img,
.mwt-card:focus-within .mwt-card__screen img,
.mwt-card.is-scrolling .mwt-card__screen img {
    transform: translate3d(0, var(--mwt-scroll-y, -42%), 0);
}

.mwt-card__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 14px 16px 16px 16px;
    background: var(--mw-surface, #ffffff);
}

.mwt-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}

.mwt-card__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    color: var(--mw-dark, #0f172a);
    font-family: var(--mw-font-sans, inherit);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.015em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mwt-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.16s ease;
}

.mwt-card__title a:hover,
.mwt-card__title a:focus-visible {
    color: var(--mw-primary, #0D5CE8);
}

.mwt-card__subtitle {
    margin: 0;
    color: var(--mw-muted, #64748b);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mwt-card__demo-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--mw-primary-soft, #EFF5FF);
    border: 1px solid var(--mw-primary-border, #DBE8FE);
    color: var(--mw-primary, #0D5CE8);
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.mwt-card__demo-link:hover,
.mwt-card__demo-link:focus-visible {
    background: var(--mw-primary, #0D5CE8);
    border-color: var(--mw-primary, #0D5CE8);
    color: #ffffff;
}

/* ==========================================================================
   Single Template: Full-Container Hero Shot & Consolidated Sidebar Panel
   ========================================================================== */

.mwt-single__hero,
.mwt-single__hero--full {
    display: block;
    grid-template-columns: none;
    padding: 8px 0 36px;
}

.mwt-single__media {
    width: 100%;
    max-width: 100%;
}

.mwt-shot--hero {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: var(--mw-radius, 16px);
    border: 1px solid var(--mw-border, #e6ecf5);
    box-shadow: var(--mw-shadow, 0 22px 48px -14px rgba(7, 42, 117, 0.12));
}

.mwt-shot--hero .mwt-shot__screen {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--mw-bg, #f8fafc);
    cursor: pointer;
}

.mwt-shot--hero .mwt-shot__screen img {
    width: 100%;
    height: auto !important;
    object-fit: cover;
    object-position: top center;
    will-change: transform;
    transform: translate3d(0, 0%, 0);
    transition: transform 1200ms ease-in-out;
}

.mwt-shot--hero:hover .mwt-shot__screen img,
.mwt-shot--hero.is-scrolling .mwt-shot__screen img {
    transform: translate3d(0, var(--mwt-scroll-y, -44%), 0);
}

.mwt-single__media-note {
    max-width: none;
}

.mwt-single__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 36px;
    align-items: start;
    padding-bottom: 64px;
}

.mwt-single__side {
    position: sticky;
    top: 90px;
    display: grid;
    gap: 16px;
}

.mwt-single__side .mwt-single__panel {
    position: relative;
    overflow: hidden;
    padding: 22px 24px 20px;
    border: 1px solid var(--mw-border, #e6ecf5);
    border-top: 3px solid var(--mw-primary, #0D5CE8);
    border-radius: var(--mw-radius, 16px);
    background: var(--mw-surface, #ffffff);
    box-shadow: var(--mw-shadow-sm, 0 10px 24px -6px rgba(7, 42, 117, 0.08));
}

.mwt-single__side .mwt-single__eyebrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.mwt-single__cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--mw-primary-soft, #EFF5FF);
    border: 1px solid var(--mw-primary-border, #DBE8FE);
    color: var(--mw-primary, #0D5CE8);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mwt-single__cat-pill:hover,
.mwt-single__cat-pill:focus-visible {
    background: var(--mw-primary, #0D5CE8);
    color: #ffffff;
}

.mwt-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #15803d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.mwt-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
}

.mwt-single__side .mwt-single__title {
    margin: 0 0 8px;
    color: var(--mw-dark, #0f172a);
    font-size: clamp(20px, 1.8vw, 23px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.mwt-single__side .mwt-single__tagline {
    margin: 0 0 16px;
    color: var(--mw-muted, #64748b);
    font-size: 13.5px;
    line-height: 1.55;
}

/* Dense 2-Column Spec Grid */
.mwt-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid var(--mw-border, #e6ecf5);
    border-radius: 12px;
    background: var(--mw-bg, #f8fafc);
}

.mwt-spec-item {
    min-width: 0;
}

.mwt-spec-item--full {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid var(--mw-border, #e6ecf5);
}

.mwt-spec-item dt {
    margin: 0 0 2px;
    color: var(--mw-muted, #64748b);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.mwt-spec-item dd {
    margin: 0;
    color: var(--mw-dark, #0f172a);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.mwt-tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px !important;
}

.mwt-tech-chip {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid var(--mw-border, #e6ecf5);
    background: var(--mw-surface, #ffffff);
    color: var(--mw-text, #334155);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.25;
}

/* Compact Value Perks */
.mwt-panel-perks {
    display: grid;
    gap: 7px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.mwt-panel-perks li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--mw-text, #334155);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.45;
}

.mwt-panel-perks svg {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--mw-primary, #0D5CE8);
}

/* Action Stack */
.mwt-single__side .mwt-single__actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.mwt-single__side .mwt-single__actions .mwt-btn {
    flex: none;
    width: 100%;
    padding: 12px 18px;
    font-size: 14px;
    border-radius: 10px;
}

.mwt-btn--wa-outline {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.mwt-btn--wa-outline:hover,
.mwt-btn--wa-outline:focus-visible {
    background: #16a34a;
    border-color: #16a34a;
    color: #ffffff;
    transform: translateY(-1px);
}

.mwt-single__side .mwt-single__note {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px dashed var(--mw-border, #e6ecf5);
    color: var(--mw-muted, #64748b);
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
}

/* Compact Portfolio Help Card */
.mwt-side-help--compact {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 16px 18px;
    border: 1px solid var(--mw-border, #e6ecf5);
    border-radius: var(--mw-radius, 16px);
    background: var(--mw-surface, #ffffff);
    box-shadow: var(--mw-shadow-xs, 0 1px 2px rgba(11, 19, 43, 0.04));
}

.mwt-side-help__icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--mw-primary-soft, #EFF5FF);
    color: var(--mw-primary, #0D5CE8);
}

.mwt-side-help__body {
    min-width: 0;
}

.mwt-side-help--compact h2 {
    margin: 0 0 4px;
    color: var(--mw-dark, #0f172a);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.mwt-side-help--compact p {
    margin: 0 0 8px;
    color: var(--mw-muted, #64748b);
    font-size: 12.5px;
    line-height: 1.5;
}

.mwt-side-help--compact .mwt-text-link {
    font-size: 12.5px;
}

@media (max-width: 960px) {
    .mwt-single__body {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .mwt-single__side {
        position: static;
        order: -1;
    }

    .mwt-shot--hero .mwt-shot__screen {
        aspect-ratio: 4 / 3;
    }
}

@media (max-width: 640px) {
    .mwt-grid,
    .mwt-grid--cols-2,
    .mwt-grid--cols-3,
    .mwt-grid--cols-4 {
        gap: 12px;
    }

    .mwt-card,
    .mwt-card.mwt-card--kirki {
        border-radius: 12px;
    }

    .mwt-card__media {
        padding: 4px 4px 0 4px;
        box-sizing: border-box;
    }

    .mwt-card__screen {
        border-radius: 8px 8px 4px 4px;
    }

    .mwt-card__bar {
        padding: 10px 10px 12px;
        gap: 6px;
        box-sizing: border-box;
    }

    .mwt-card__head {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
    }

    .mwt-card__title {
        flex: none;
        width: 100%;
        font-size: 14px;
        line-height: 1.3;
        white-space: normal;
        overflow-wrap: break-word;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .mwt-card__subtitle {
        font-size: 12px;
        line-height: 1.45;
    }

    .mwt-card__demo-link {
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 11px;
    }
}

