:root {
    --msm-red: #c62828;
    --msm-dark: #1a1a1a;
    --msm-gray: #f5f5f5;
    --msm-text: #212121;
    --msm-max: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--msm-text);
    line-height: 1.5;
    background: #fff;
}

a {
    color: var(--msm-red);
}

.site-header {
    background: var(--msm-dark);
    color: #fff;
}

.home-hero {
    padding: 2rem 0 1rem;
}

.home-hero h1 {
    margin-top: 0;
}

.home-hero p {
    max-width: 42rem;
}

.home-hero .msm-button {
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
}

.home-newsletter {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--msm-gray);
    border-radius: 8px;
}

.content-area--home,
.content-area {
    max-width: var(--msm-max);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.site-header__inner {
    max-width: var(--msm-max);
    margin: 0 auto;
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}

.site-phone {
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.lang-switcher {
    position: relative;
    flex-shrink: 0;
}

.lang-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    font: inherit;
    line-height: 1;
}

.lang-switcher__toggle img {
    display: block;
    width: 1.35rem;
    height: auto;
}

.lang-switcher__caret {
    width: 0.35rem;
    height: 0.35rem;
    border-right: 1.5px solid #fff;
    border-bottom: 1.5px solid #fff;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.75;
}

.lang-switcher.is-open .lang-switcher__caret {
    transform: rotate(225deg) translateY(-1px);
}

.lang-switcher__menu {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0.4rem 0;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 10.5rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
    z-index: 130;
}

.lang-switcher__menu[hidden] {
    display: none;
}

.lang-switcher__option-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.85rem;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.lang-switcher__option-link:hover {
    background: rgba(198, 40, 40, 0.08);
    color: var(--msm-dark);
}

.lang-switcher__option.is-current .lang-switcher__option-link {
    font-weight: 700;
}

.lang-switcher__option-link img {
    display: block;
    width: 1.25rem;
    height: auto;
}

.lang-switcher__code {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: #fff;
    text-decoration: none;
}

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

.site-footer {
    background: var(--msm-gray);
    border-top: 1px solid #e0e0e0;
}

.site-footer__inner {
    max-width: var(--msm-max);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.page-header h1 {
    margin-top: 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.woocommerce .button,
.woocommerce button.button {
    background: var(--msm-red) !important;
    color: #fff !important;
}

@media (max-width: 640px) {
    .site-header__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-phone {
        margin-left: 0;
    }

    .lang-switcher {
        align-self: flex-end;
    }
}
