/*
Theme Name: HomeMöbel Deutschland
Theme URI: https://meble.designsphere.art
Description: German WooCommerce storefront based on the HomeMeble visual identity.
Author: DesignSphere
Version: 1.0.0
Template: blocksy
Text Domain: designsphere-meble
*/

:root {
    --hm-orange: #f5a400;
    --hm-orange-dark: #dc9000;
    --hm-ink: #25282b;
    --hm-muted: #70757a;
    --hm-line: #e6e6e3;
    --hm-soft: #f4f4f2;
    --hm-paper: #ffffff;
    --hm-navy: #123b5d;
    --hm-radius: 3px;
    --theme-palette-color-1: var(--hm-orange);
    --theme-palette-color-2: var(--hm-orange-dark);
    --theme-palette-color-3: var(--hm-ink);
    --theme-palette-color-4: #111315;
    --theme-palette-color-5: var(--hm-muted);
    --theme-palette-color-6: var(--hm-line);
    --theme-palette-color-7: var(--hm-soft);
    --theme-palette-color-8: var(--hm-paper);
    --theme-button-background-initial-color: var(--hm-orange);
    --theme-button-background-hover-color: var(--hm-orange-dark);
    --theme-button-border-radius: var(--hm-radius);
    --theme-font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
    color: var(--hm-ink);
    background: var(--hm-paper);
    font-family: var(--theme-font-family);
}

.ct-header,
#main-container > footer.ct-footer {
    display: none;
}

.hm-shell {
    width: min(1460px, calc(100% - 48px));
    margin-inline: auto;
}

.hm-header {
    position: relative;
    z-index: 50;
    border-bottom: 1px solid var(--hm-line);
    background: var(--hm-paper);
}

.hm-header__top {
    display: grid;
    grid-template-columns: 280px 1fr minmax(280px, 390px);
    gap: 32px;
    align-items: center;
    min-height: 112px;
}

.hm-logo {
    display: inline-flex;
    align-items: center;
    width: 242px;
}

.hm-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.hm-utility,
.hm-nav__links,
.hm-benefits__inner,
.hm-footer__legal {
    display: flex;
    align-items: center;
}

.hm-utility {
    justify-content: flex-end;
    gap: 30px;
}

.hm-utility a,
.hm-nav a {
    color: var(--hm-ink);
    font-size: 14px;
    text-decoration: none;
}

.hm-utility a:hover,
.hm-nav a:hover,
.hm-footer a:hover {
    color: var(--hm-orange-dark);
}

.hm-search .woocommerce-product-search {
    position: relative;
    margin: 0;
}

.hm-search input[type="search"] {
    width: 100%;
    height: 46px;
    padding: 0 46px 0 18px;
    border: 1px solid #d9d9d6;
    border-radius: var(--hm-radius);
    background: #fff;
    font-size: 14px;
}

.hm-search button {
    position: absolute;
    inset: 0 0 0 auto;
    width: 46px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hm-muted);
    font-size: 0;
}

.hm-search button::before {
    content: "⌕";
    font-size: 27px;
    font-weight: 400;
}

.hm-nav {
    background: var(--hm-soft);
}

.hm-nav__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 66px;
    gap: 30px;
}

.hm-nav-menu {
    flex: 1;
    min-width: 0;
}

.hm-nav__links {
    gap: clamp(18px, 2vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-nav__links a {
    display: block;
    padding-block: 23px;
    white-space: nowrap;
}

.hm-nav__links a:hover {
    box-shadow: inset 0 -3px 0 var(--hm-orange);
}

.hm-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

.hm-actions a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
}

.hm-actions svg,
.hm-benefit svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.hm-mobile-summary {
    display: none;
}

.hm-benefits {
    background: #e7e7e5;
    color: #292b2d;
}

.hm-benefits__inner {
    justify-content: center;
    min-height: 48px;
    gap: clamp(45px, 8vw, 150px);
}

.hm-benefit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
}

.hm-store-hero {
    overflow: hidden;
    margin: 0 0 54px;
    background: linear-gradient(112deg, #f4f1eb 0%, #ece7dd 54%, #dad4c8 100%);
}

.hm-store-hero__inner {
    display: grid;
    grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 1.15fr);
    align-items: center;
    min-height: 430px;
}

.hm-store-hero__content {
    padding: 64px 30px 64px 0;
}

.hm-eyebrow {
    margin: 0 0 14px;
    color: var(--hm-orange-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.hm-store-hero h1 {
    max-width: 720px;
    margin: 0 0 20px;
    color: #222426;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.02;
}

.hm-store-hero p:not(.hm-eyebrow) {
    max-width: 570px;
    margin: 0 0 30px;
    color: #55595c;
    font-size: 18px;
    line-height: 1.65;
}

.hm-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: var(--hm-radius) !important;
    background: var(--hm-orange) !important;
    color: #fff !important;
    font-weight: 750;
    text-decoration: none;
}

.hm-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--hm-orange-dark) !important;
}

.hm-store-hero__visual {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 35px 0 0;
}

.hm-store-hero__visual svg {
    width: min(760px, 100%);
    height: auto;
    color: #303234;
}

.hm-store-hero__visual .hm-sofa-fill {
    fill: #d7a45b;
    stroke: currentColor;
}

.hm-store-hero__visual .hm-sofa-shadow {
    fill: rgba(40, 42, 43, .12);
}

.woocommerce .woocommerce-products-header,
.woocommerce .page-description {
    text-align: left;
}

.woocommerce .woocommerce-products-header__title.page-title {
    margin-bottom: 34px;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.03em;
}

.woocommerce ul.products {
    gap: 34px 22px;
}

.woocommerce ul.products li.product {
    overflow: hidden;
    border: 1px solid #ececea;
    border-radius: var(--hm-radius);
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(34, 36, 38, .1);
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products li.product > .button {
    margin-inline: 18px;
}

.woocommerce ul.products li.product img {
    width: 100%;
    aspect-ratio: 1.42 / 1;
    margin: 0 0 18px;
    object-fit: cover;
    background: var(--hm-soft);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--hm-ink);
    font-size: 17px;
    font-weight: 650;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--hm-orange-dark);
    font-weight: 750;
}

.woocommerce ul.products li.product > .button {
    margin-bottom: 20px;
}

.woocommerce span.onsale {
    min-width: 0;
    min-height: 0;
    padding: 7px 11px;
    border-radius: 0;
    background: var(--hm-orange);
    color: #fff;
    font-size: 12px;
    line-height: 1;
}

.single-product div.product .woocommerce-product-gallery,
.single-product div.product .summary {
    margin-top: 25px;
}

.single-product .product_title {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -.035em;
}

.hm-footer {
    margin-top: 90px;
    padding: 68px 0 24px;
    background: #efefed;
    color: #55595c;
}

.hm-footer__grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr 1.15fr;
    gap: 55px;
}

.hm-footer h2 {
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #dcdcd8;
    color: #525659;
    font-size: 18px;
    font-weight: 500;
}

.hm-footer p,
.hm-footer li,
.hm-footer a {
    color: inherit;
    font-size: 13px;
    line-height: 1.8;
}

.hm-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hm-footer__legal {
    justify-content: space-between;
    gap: 20px;
    margin-top: 54px;
    padding-top: 22px;
    border-top: 1px solid #dcdcd8;
}

.hm-footer__legal nav {
    display: flex;
    gap: 20px;
}

@media (max-width: 1100px) {
    .hm-header__top {
        grid-template-columns: 220px 1fr;
    }

    .hm-utility {
        display: none;
    }

    .hm-search {
        grid-column: 2;
    }

    .hm-nav__links {
        gap: 16px;
        overflow-x: auto;
    }

    .hm-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 780px) {
    .hm-shell {
        width: min(100% - 30px, 680px);
    }

    .hm-header__top {
        grid-template-columns: 1fr auto;
        min-height: 80px;
        gap: 15px;
    }

    .hm-logo {
        width: 188px;
    }

    .hm-search {
        grid-column: 1 / -1;
        padding-bottom: 16px;
    }

    .hm-nav__inner {
        display: block;
        min-height: 0;
    }

    .hm-mobile-summary {
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 52px;
        cursor: pointer;
        font-weight: 700;
        list-style: none;
    }

    .hm-mobile-summary::-webkit-details-marker {
        display: none;
    }

    .hm-nav__links {
        display: grid;
        gap: 0;
        padding-bottom: 12px;
        overflow: visible;
    }

    .hm-nav__links a {
        padding: 11px 0;
        border-bottom: 1px solid #ddd;
    }

    .hm-actions {
        justify-content: flex-end;
        padding: 12px 0;
    }

    .hm-actions .hm-account span,
    .hm-actions .hm-cart__label {
        display: none;
    }

    .hm-benefits__inner {
        justify-content: flex-start;
        gap: 24px;
        overflow-x: auto;
    }

    .hm-benefit {
        flex: 0 0 auto;
        font-size: 11px;
    }

    .hm-store-hero__inner {
        display: block;
        min-height: 0;
    }

    .hm-store-hero__content {
        padding: 48px 0 10px;
    }

    .hm-store-hero__visual {
        padding-top: 5px;
    }

    .hm-footer__grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .hm-footer__legal {
        display: block;
    }

    .hm-footer__legal nav {
        flex-wrap: wrap;
        margin-top: 12px;
    }
}
