/*
 * Copyright (c) 2026 Smekker24 GmbH. Original work.
 * Scoped refinements to the approved 0.5.0 storefront; load after theme CSS.
 */

.smekker-contact-strip {
    border-bottom: 1px solid #e3ece7;
    background: #f2f8f4;
    color: #496860;
    font-size: 12px;
    line-height: 1.4;
}

.smekker-contact-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px 18px;
    min-height: 30px;
    padding-block: 5px;
}

.smekker-contact-label {
    font-weight: 600;
}

.smekker-contact-inner a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-decoration: none;
}

.smekker-contact-inner svg {
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.smekker-contact-inner a:hover,
.smekker-contact-inner a:focus-visible {
    color: var(--smekker-teal-dark);
    text-decoration: underline;
}

/* Keep the native details control, with a compact mint indicator after the label. */
.smekker-mega-group > ul > li > a,
.smekker-mega-group > ul > li > .smekker-mega-branch > summary,
.smekker-mega-branch > ul > li > a,
.smekker-mega-branch > ul > li > .smekker-mega-branch > summary {
    font-weight: 400;
}

.smekker-mega-root > summary,
.smekker-mega-branch > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    list-style: none;
}

.smekker-mega-root > summary::-webkit-details-marker,
.smekker-mega-branch > summary::-webkit-details-marker {
    display: none;
}

.smekker-mega-root > summary::marker,
.smekker-mega-branch > summary::marker {
    content: '';
}

.smekker-mega-root > summary::after,
.smekker-mega-branch > summary::after {
    display: grid;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    place-items: center;
    border: 1px solid var(--smekker-mint);
    border-radius: 5px;
    background: var(--smekker-mint-soft);
    color: var(--smekker-teal-dark);
    font-size: 15px;
    font-weight: 650;
    line-height: 1;
    content: '›';
    transition: transform 180ms ease;
}

.smekker-mega-group .smekker-mega-branch[open] > summary {
    font-weight: 700;
}

.smekker-mega-root[open] > summary::after,
.smekker-mega-branch[open] > summary::after {
    content: '›';
    transform: rotate(90deg);
}

.smekker-mega-branch > summary:focus-visible {
    outline: 3px solid var(--smekker-pink);
    outline-offset: 2px;
}

/* Closed details remain visible only while their cancellable exit motion runs. */
.smekker-mega-root.is-menu-closing > .smekker-mega-panel,
.smekker-mega-branch.is-menu-closing > ul {
    display: block;
    pointer-events: none;
}

@supports selector(::details-content) {
    .smekker-mega-root.is-menu-closing::details-content,
    .smekker-mega-branch.is-menu-closing::details-content {
        content-visibility: visible;
    }
}

.smekker-mega-root.is-menu-animating > .smekker-mega-panel,
.smekker-mega-branch.is-menu-animating > ul {
    overflow: hidden;
    will-change: height, opacity;
}

@media (prefers-reduced-motion: reduce) {
    .smekker-mega-root > summary::after,
    .smekker-mega-branch > summary::after {
        transition: none;
    }
}

/* Keep the legal links as the compact right-hand footer column. */
@media (min-width: 1181px) {
    .smekker-footer__main {
        grid-template-columns: minmax(205px, 1.15fr) repeat(3, minmax(102px, .68fr)) minmax(150px, .9fr);
        gap: 24px;
    }

    .smekker-footer__native-links {
        align-self: start;
        margin-top: 0;
        padding-top: 0;
        border-top: 0;
    }

    .smekker-footer__native-links .links {
        display: grid;
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .smekker-footer__native-links {
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-top: 17px;
    }
}

@media (max-width: 900px) {
    .smekker-footer__native-links {
        grid-column: 1 / -1;
        margin-top: 8px;
        padding-top: 17px;
    }
}

/* A modest desktop shift brings the card up beside the raised bear hand. */
@media (min-width: 901px) {
    .smekker-hero-stage > .smekker-quick-card {
        width: min(334px, calc(100% - 10px));
        margin-top: -8px;
        transform: translateX(12px);
    }
}

/* Each account action has its own compact card in native reading order. */
.account-login.smekker-login {
    width: min(620px, 100%);
    margin: 0 auto 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.smekker-login > .page-title {
    margin-bottom: 22px;
}

.smekker-login > .page-title h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.smekker-login-card {
    min-width: 0;
    padding: 28px;
    border: 1px solid #cfe4dc;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(37 73 65 / 6%);
}

.smekker-login-card + .smekker-login-card {
    margin-top: 20px;
}

.smekker-login-card h2 {
    margin: 0 0 12px;
    font-size: 23px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.smekker-login-card__intro {
    margin: 0 0 22px;
    color: var(--smekker-muted);
    font-size: 14px;
    line-height: 1.65;
}

.smekker-login .form-list label {
    font-size: 14px;
    font-weight: 600;
}

.smekker-login .form-list .input-box {
    width: 100%;
}

.smekker-login .form-list .input-text {
    min-height: 48px;
    border-color: #c8dcd5;
    border-radius: 12px;
}

.smekker-login .form-list .input-text.validation-failed {
    border-color: var(--smekker-danger);
}

.smekker-login .form-list .control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
}

.smekker-login .form-list .control .input-box {
    width: auto;
}

.smekker-login .form-list .control label {
    margin: 0;
}

.smekker-login-card__help {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px 16px;
    margin: 3px 0 20px;
    font-size: 13px;
}

.smekker-login-card__help .required {
    margin: 0;
    color: var(--smekker-muted);
}

.smekker-login-card__help a {
    color: var(--smekker-teal-dark);
}

.smekker-login .button.smekker-login-submit,
.smekker-login .button.smekker-login-create {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    border-color: #96cfbc;
    border-radius: 13px;
    background: #dff2e9;
    color: #111;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

.smekker-login .button span {
    color: inherit;
}

.smekker-login-card--new {
    border-color: #ebd4de;
    background: #fff8fb;
}

.smekker-login-card--new h2 {
    margin-bottom: 18px;
    font-size: 21px;
}

.smekker-login .button.smekker-login-create {
    border-color: #e6b9c9;
    background: #fff;
}

.smekker-login .button:hover,
.smekker-login .button:focus,
.smekker-login .button:active {
    border-color: #d8b653;
    background: #f4dc8e;
    color: #111;
}

.smekker-login .button:focus-visible {
    outline: 3px solid var(--smekker-pink);
    outline-offset: 3px;
}

.customer-account-create .col-main {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.smekker-register {
    width: min(820px, 100%);
    margin: 0 auto 28px;
}

.smekker-register > .page-title {
    margin-bottom: 24px;
}

.smekker-register > .page-title h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 32px);
    line-height: 1.2;
    letter-spacing: -.025em;
}

.smekker-register .smekker-register-card {
    margin-bottom: 20px;
    padding: 28px;
    border: 1px solid #cfe4dc;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgb(37 73 65 / 5%);
}

.smekker-register-card .legend {
    margin: 0 0 22px;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.smekker-register .smekker-register-card--password {
    border-color: #ebd4de;
    background: #fffafd;
}

.smekker-register .form-list .field,
.smekker-register .form-list .input-box {
    min-width: 0;
    width: 100%;
}

.smekker-register .fields > [class^="customer-name"] {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.smekker-register .form-list label {
    font-size: 14px;
    font-weight: 600;
}

.smekker-register .form-list .input-text,
.smekker-register .form-list select {
    min-height: 48px;
    border-color: #c8dcd5;
    border-radius: 12px;
}

.smekker-register .form-list .input-text.validation-failed,
.smekker-register .form-list select.validation-failed {
    border-color: var(--smekker-danger);
}

.smekker-register .form-list > li:last-child {
    margin-bottom: 0;
}

.smekker-register .form-list .control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 9px;
}

.smekker-register .form-list .control .input-box {
    width: auto;
}

.smekker-register .form-list .control label {
    margin: 0;
}

.smekker-register .form-instructions {
    margin: 7px 0 0;
    color: var(--smekker-muted);
    font-size: 12px;
}

.smekker-login .captcha-image,
.smekker-register .captcha-image {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #d9e6df;
    border-radius: 14px;
    background: #fff;
}

.smekker-login .captcha-image .captcha-img,
.smekker-register .captcha-image .captcha-img {
    order: 0;
    width: 280px;
    max-width: 100%;
    height: auto;
}

.smekker-login .captcha-image .captcha-reload,
.smekker-register .captcha-image .captcha-reload {
    order: 1;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 7px;
    border: 1px solid #bfd9ce;
    border-radius: 9px;
    background: #eff8f3;
    object-fit: contain;
    cursor: pointer;
}

.smekker-login .captcha-note,
.smekker-register .captcha-note {
    order: 2;
    flex-basis: 100%;
    font-size: 13px;
}

.smekker-register-notice {
    margin: 0 0 20px;
    padding: 20px 24px;
    border: 1px solid #dce8e2;
    border-radius: 18px;
    background: #f5faf7;
}

.smekker-register-notice h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.smekker-register-notice p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.smekker-register-notice a {
    color: var(--smekker-teal-dark);
    overflow-wrap: anywhere;
}

.smekker-register-actions {
    gap: 12px 20px;
    margin: 24px 0 0;
}

.smekker-register-actions::after {
    display: none;
}

.smekker-register-actions .required,
.smekker-register-actions .back-link {
    margin: 0;
    font-size: 13px;
}

.smekker-register-actions .required {
    margin-inline-end: auto;
    color: var(--smekker-muted);
}

.smekker-register .button.smekker-register-submit {
    min-height: 50px;
    padding: 12px 24px;
    border-color: #96cfbc;
    border-radius: 13px;
    background: #dff2e9;
    color: #111;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    text-align: center;
}

.smekker-register .button.smekker-register-submit:hover,
.smekker-register .button.smekker-register-submit:focus,
.smekker-register .button.smekker-register-submit:active {
    border-color: #d8b653;
    background: #f4dc8e;
    color: #111;
}

@media (max-width: 620px) {
    .smekker-register .fields,
    .smekker-register .fields > [class^="customer-name"] {
        grid-template-columns: minmax(0, 1fr);
    }

    .smekker-register .button.smekker-register-submit {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .smekker-contact-inner {
        justify-content: center;
        gap: 4px 12px;
        font-size: 11px;
    }

    .smekker-login > .page-title {
        margin-bottom: 18px;
    }

    .smekker-login-card {
        padding: 21px 18px;
        border-radius: 18px;
    }

    .smekker-login-card h2 {
        font-size: 21px;
    }

    .smekker-login-card--new h2 {
        font-size: 20px;
    }

    .smekker-login .button.smekker-login-submit,
    .smekker-login .button.smekker-login-create {
        font-size: 15px;
    }

    .smekker-register .smekker-register-card {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .smekker-register-card .legend {
        margin-bottom: 19px;
        font-size: 20px;
    }
}
/* Compact home sections; keep the category anchor and responsive catalogue cards. */
.smekker-home-categories.smekker-home-section { padding-block: 48px 0; }
.smekker-home-products.smekker-home-section { padding-block: 32px 12px; }
.smekker-product-card__price-access .login_for_price {
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.25;
}
.smekker-search .smekker-search__button {
    border-color: transparent;
    background: var(--smekker-teal-dark);
    color: #fff;
}
.smekker-search .smekker-search__button:hover,
.smekker-search .smekker-search__button:focus-visible {
    border-color: transparent;
    background: #106d69;
    color: #fff;
}
@media (min-width: 1024px) {
    .smekker-home-categories .smekker-category-cards {
        grid-auto-flow: column;
        grid-auto-columns: minmax(0, 1fr);
        grid-template-columns: none;
    }
    .smekker-home-products .smekker-products--grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/*
 * Homepage composition candidate 2026-09-22.
 * This is intentionally kept at the end of the refinement layer so the
 * preview values win over the earlier theme defaults without changing the
 * category tree or product data.
 */
@media (min-width: 901px) {
    .smekker-hero-wrap {
        position: relative;
        border-bottom: 2px solid rgb(98 197 186 / 34%);
    }

    .smekker-hero {
        min-height: 535px;
    }

    .smekker-hero-copy {
        padding-block: 31px 37px;
        transform: translateY(-27px);
    }

    .smekker-hero-stage {
        min-height: 500px;
        transform: translateY(-14px);
    }

    .smekker-hero-stage > .smekker-quick-card {
        transform: translate(38px, -42px);
    }

    .smekker-home-categories.smekker-home-section {
        position: relative;
        z-index: 3;
        margin-top: -39px;
        padding-block: 0;
    }

    .smekker-home-categories .smekker-category-cards a {
        position: relative;
        z-index: 4;
    }

    .smekker-home-products.smekker-home-section {
        padding-block: 20px 12px;
    }

    .smekker-home-products .smekker-products--grid {
        margin-top: 0;
    }

    /* Keep the article overview dense while preserving the image scale. */
    .smekker-home-products .smekker-product-card__image {
        height: clamp(150px, 11.5vw, 170px);
        min-height: 0;
        aspect-ratio: auto;
        padding: 9px;
    }

    .smekker-home-products .smekker-product-card__body {
        padding: 11px 12px 13px;
    }

    .smekker-home-products .smekker-product-card__sku,
    .smekker-home-products .smekker-product-card__unit {
        margin-bottom: 4px;
        line-height: 1.3;
    }

    .smekker-home-products .smekker-product-card__title {
        margin-bottom: 7px;
        line-height: 1.28;
    }

    .smekker-home-products .smekker-product-card__actions {
        gap: 6px 8px;
    }

    .smekker-home-products .smekker-product-card__actions .button {
        padding: 8px 8px;
        font-size: 13px;
    }

    .smekker-home-products .smekker-text-link {
        font-size: 12px;
    }

    .smekker-home-categories .smekker-category-cards a:focus-visible {
        outline: 3px solid rgb(55 159 151 / 55%);
        outline-offset: 3px;
        box-shadow: 0 12px 23px rgb(42 82 75 / 10%);
    }
}

@media (min-width: 1024px) {
    .smekker-home-categories .smekker-category-cards {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (min-width: 901px) and (max-width: 1023px) {
    .smekker-home-categories.smekker-home-section {
        margin-top: -23px;
    }

    .smekker-home-categories .smekker-category-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .smekker-hero-stage > .smekker-quick-card {
        transform: translate(18px, -24px);
    }
}

@media (max-width: 900px) {
    .smekker-hero-copy,
    .smekker-hero-stage,
    .smekker-hero-stage > .smekker-quick-card {
        transform: none;
    }

    .smekker-home-categories.smekker-home-section {
        margin-top: 0;
        padding-block: 28px 0;
    }

    .smekker-home-products.smekker-home-section {
        padding-block: 22px 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .smekker-hero-copy,
    .smekker-hero-stage,
    .smekker-hero-stage > .smekker-quick-card {
        transform: none;
    }
}

/* Compact homepage category tiles without affecting the main navigation. */
.smekker-home-categories .smekker-category-cards a {
    min-height: 56px;
    padding-block: 9px;
    line-height: 1.2;
}

@media (min-width: 901px) and (max-width: 1023px) {
    .smekker-home-categories .smekker-category-cards a {
        min-height: 64px;
        padding-block: 10px;
    }

    .smekker-home-categories .smekker-category-cards a strong {
        font-size: 15px;
    }
}

/* Tighter desktop homepage composition; navigation and quick-order behavior stay untouched. */
@media (min-width: 1024px) {
    .smekker-hero {
        min-height: 455px;
    }

    .smekker-hero-copy {
        padding-block: 47px 37px;
    }

    .smekker-hero-stage {
        min-height: 430px;
    }

    .smekker-home-categories .smekker-category-cards {
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 10px;
    }

    .smekker-home-categories .smekker-category-cards a {
        box-sizing: border-box;
        width: 86%;
        justify-self: center;
        min-width: 0;
        min-height: 72px;
        padding: 10px 10px;
        gap: 5px;
        border-radius: 14px;
        overflow-wrap: normal;
        word-break: normal;
        hyphens: manual;
    }

    .smekker-home-categories .smekker-category-cards a strong {
        min-width: 0;
        font-size: 13px;
        line-height: 1.1;
        overflow-wrap: anywhere;
        word-break: normal;
        hyphens: auto;
    }

    .smekker-home-categories .smekker-category-cards a > span {
        display: inline-flex;
        flex: 0 0 20px;
        align-items: center;
        justify-content: center;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background: rgb(98 197 186 / 16%);
        color: #54a99f;
        line-height: 1;
    }

    .smekker-home-products.smekker-home-section {
        padding-block: 34px 12px;
    }

    .smekker-home-products.smekker-home-section > :first-child {
        margin-top: 0;
    }
}

.smekker-hero-copy > .smekker-eyebrow {
    font-size: clamp(15px, 1.25vw, 17px);
}
