* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

.woocommerce img,
.woocommerce-page img {
    width: fit-content;
    height: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: calc(100% - (var(--page-gutter) * 2));
    max-width: calc(var(--container) - (var(--page-gutter) * 2));
    margin: 0 auto;
    padding: 0;
}

.icon,
.icon-sm {
    display: inline-block;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon {
    width: 22px;
    height: 22px;
}

.icon-sm {
    width: 18px;
    height: 18px;
}

.icon *,
.icon-sm * {
    fill: none;
    stroke: currentColor;
}

.mg-icon-svg {
    flex: 0 0 auto;
    pointer-events: none;
}

.mg-fav.added .mg-icon-svg--heart path,
.mg-btn.added .mg-icon-svg--heart path {
    fill: currentColor;
}

.btn {
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 15px;
    font-weight: 780;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(130, 1, 0, .14);
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.btn-danger {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
    display: grid;
    place-items: center;
    color: var(--icon);
}

.hide {
    display: none !important;
}

.site-main {
    min-height: 60vh;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.ml-page {
    padding: 32px 0;
}

.ml-page__grid {
    display: grid;
    gap: 18px;
}

.ml-page__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
}

.ml-page__header {
    margin-bottom: 16px;
}

.ml-page__title {
    margin: 0;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: 0;
}

.ml-page__title a {
    color: inherit;
    text-decoration: none;
}

.ml-page__thumb {
    display: block;
    margin-bottom: 18px;
    overflow: hidden;
    border-radius: 14px;
}

.ml-page__thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.ml-utility-page p {
    color: var(--muted);
    margin: 8px 0 0;
}

.ml-compare-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.ml-compare-list li {
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
}

.ml-compare-list li a {
    font-weight: 720;
}

.ml-compare-list li.list_empty {
    color: var(--muted);
}

.ml-utility-page__actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
