/* Version 6.5.16 · Webshop */

.nav-shop-button,
.header-shop-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 42px;
    padding: .66rem .95rem;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(200, 255, 52, .22);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.nav-shop-button:hover,
.nav-shop-button.is-active,
.header-shop-button:hover {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--acid);
    transform: translateY(-1px);
}

.header-shop-button {
    display: none;
    background: linear-gradient(115deg, rgba(0, 223, 245, .22), rgba(200, 255, 52, .34));
}

.shop-cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.4rem;
    height: 1.4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    color: #fff;
    background: var(--magenta-dark);
    font-size: .68rem;
    line-height: 1;
}

.shop-section,
.shop-cart-section,
.shop-checkout-section,
.shop-terms-section {
    padding-top: 34px;
    padding-bottom: 100px;
}

.shop-compact-hero .page-hero-inner {
    min-height: 330px;
}

.shop-product-grid,
.home-shop-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.shop-product-card {
    display: flex;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(103, 70, 255, .17);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 16px 42px rgba(57, 35, 97, .075);
}

.home-shop-grid .shop-product-card,
.shop-product-card-full {
    flex-direction: column;
}

.shop-product-image {
    display: block;
    overflow: hidden;
    background: rgba(103, 70, 255, .06);
}

.shop-product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform .24s ease;
}

a.shop-product-image:hover img {
    transform: scale(1.025);
}

.shop-product-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 22px;
}

.shop-product-card-copy h2,
.shop-product-card-copy h3 {
    margin: 8px 0 10px;
}

.shop-product-card-copy > p:not(.shop-stock) {
    color: var(--muted);
    line-height: 1.62;
}

.shop-stock {
    display: inline-flex;
    margin: 0;
    padding: .35rem .62rem;
    border-radius: 999px;
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.shop-stock.is-in-stock {
    color: #174c31;
    background: rgba(81, 220, 143, .18);
}

.shop-stock.is-out-of-stock {
    color: #8e174f;
    background: rgba(255, 43, 194, .12);
}

.shop-price {
    display: block;
    margin: auto 0 16px;
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: 1.35rem;
}

.shop-product-form,
.shop-quick-form {
    display: grid;
    width: 100%;
    gap: 12px;
}

.shop-product-form {
    grid-template-columns: minmax(0, 1fr) 100px;
}

.shop-product-form button {
    grid-column: 1 / -1;
}

.shop-product-form label,
.shop-quick-form label,
.shop-checkout-form label {
    display: grid;
    gap: .38rem;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 700;
}

.shop-product-form select,
.shop-product-form input,
.shop-quick-form select,
.shop-checkout-form input {
    width: 100%;
    min-height: 46px;
    padding: .72rem .82rem;
    border: 1px solid rgba(103, 70, 255, .22);
    border-radius: 11px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

.shop-quick-form {
    margin-top: auto;
}

.shop-bottom-actions,
.home-shop-action {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.shop-setup-notice {
    margin: 0 0 24px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 164, 0, .35);
    border-radius: 16px;
    background: rgba(255, 216, 115, .2);
}

.shop-setup-notice p {
    margin: 6px 0 0;
    color: var(--ink-soft);
}

.shop-cart-layout,
.shop-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: start;
    gap: 28px;
}

.shop-cart-lines,
.shop-checkout-form,
.shop-order-summary,
.shop-success-card,
.shop-terms-section article,
.shop-empty-cart {
    border: 1px solid rgba(103, 70, 255, .16);
    border-radius: 22px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 14px 40px rgba(57, 35, 97, .06);
}

.shop-cart-lines {
    overflow: hidden;
}

.shop-cart-line {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) 90px 115px auto;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid rgba(103, 70, 255, .1);
}

.shop-cart-line:last-of-type {
    border-bottom: 0;
}

.shop-cart-line > img {
    width: 110px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    object-fit: cover;
}

.shop-cart-line-copy h2 {
    margin: 0 0 5px;
    font-size: 1.15rem;
}

.shop-cart-line-copy p {
    margin: 0 0 5px;
    color: var(--muted);
}

.shop-cart-line-copy strong {
    font-size: .82rem;
}

.shop-cart-quantity {
    display: grid;
    gap: .3rem;
    font-size: .72rem;
    font-weight: 700;
}

.shop-cart-quantity input {
    width: 82px;
    min-height: 42px;
    padding: .6rem;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 10px;
}

.shop-cart-line-total {
    text-align: right;
}

.shop-remove-button,
.text-button {
    padding: 0;
    border: 0;
    color: var(--magenta-dark);
    background: transparent;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.shop-cart-edit-actions {
    display: flex;
    justify-content: flex-end;
    padding: 18px;
    border-top: 1px solid rgba(103, 70, 255, .1);
}

.shop-order-summary {
    position: sticky;
    top: 105px;
    padding: 24px;
}

.shop-order-summary dl {
    display: grid;
    gap: 10px;
    margin: 20px 0;
}

.shop-order-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.shop-order-summary dt {
    color: var(--muted);
}

.shop-order-summary dd {
    margin: 0;
    font-weight: 800;
}

.shop-order-summary .shop-order-total {
    margin-top: 7px;
    padding-top: 14px;
    border-top: 2px solid var(--ink);
    color: var(--ink);
    font-size: 1.16rem;
}

.shop-order-summary .primary-link,
.shop-order-summary .ghost-button {
    width: 100%;
    margin-top: 10px;
    text-align: center;
}

.shop-order-summary button:disabled {
    cursor: not-allowed;
    opacity: .48;
}

.shop-order-summary small {
    display: block;
    margin-top: 9px;
    color: var(--muted);
    line-height: 1.5;
}

.shop-terms-link {
    display: inline-block;
    margin-top: 16px;
    color: var(--violet-dark);
    font-size: .76rem;
    font-weight: 800;
}

.shop-clear-cart {
    margin-top: 18px;
    text-align: right;
}

.shop-empty-cart,
.shop-success-card {
    display: grid;
    justify-items: center;
    padding: clamp(35px, 6vw, 70px);
    text-align: center;
}

.shop-empty-cart p,
.shop-success-card > p {
    max-width: 720px;
    color: var(--muted);
}

.shop-checkout-form {
    display: grid;
    gap: 16px;
    padding: clamp(22px, 4vw, 38px);
}

.shop-checkout-form h2 {
    margin-top: 0;
}

.shop-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.shop-payment-box {
    padding: 18px;
    border: 1px solid rgba(0, 191, 212, .28);
    border-radius: 15px;
    background: rgba(0, 223, 245, .08);
}

.shop-payment-box h3 {
    margin: 4px 0 8px;
}

.shop-payment-box p:last-child {
    margin-bottom: 0;
}

.shop-terms-confirm {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start;
    padding: 15px;
    border: 1px solid rgba(103, 70, 255, .2);
    border-radius: 14px;
    background: rgba(103, 70, 255, .055);
    cursor: pointer;
}

.shop-terms-confirm input {
    width: 1.15rem;
    min-height: 1.15rem;
    height: 1.15rem;
    margin-top: .12rem;
    accent-color: var(--violet);
}

.field-error {
    color: #a20d45;
    font-size: .74rem;
}

.shop-submit-order {
    width: 100%;
    border: 0;
    cursor: pointer;
}

.shop-submit-note {
    color: var(--muted);
    line-height: 1.5;
    text-align: center;
}

.shop-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.shop-checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(103, 70, 255, .1);
    font-size: .84rem;
}

.shop-success-section {
    padding: clamp(60px, 8vw, 110px) 0;
}

.shop-success-card {
    max-width: 900px;
    margin: 0 auto;
}

.shop-success-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 12px;
    margin: 22px 0;
}

.shop-success-facts span {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(103, 70, 255, .06);
}

.shop-success-facts small {
    color: var(--muted);
}

.shop-terms-section {
    display: grid;
    gap: 18px;
    max-width: 980px;
}

.shop-terms-section article {
    padding: clamp(22px, 4vw, 36px);
}

.shop-terms-section article h2 {
    margin: 5px 0 12px;
}

.shop-terms-section article p {
    line-height: 1.72;
}

code {
    padding: .1rem .3rem;
    border-radius: .35rem;
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .08);
}

@media (max-width: 1180px) {
    .shop-product-grid,
    .home-shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .nav-shop-button {
        display: none;
    }

    .header-shop-button {
        display: inline-flex;
    }

    .header-actions {
        gap: .5rem;
    }

    .header-shop-button,
    .header-join-button {
        min-height: 39px;
        padding: .58rem .72rem;
        font-size: .7rem;
    }

    .shop-cart-layout,
    .shop-checkout-layout {
        grid-template-columns: 1fr;
    }

    .shop-order-summary {
        position: static;
    }

    .shop-cart-line {
        grid-template-columns: 86px minmax(0, 1fr) 80px;
    }

    .shop-cart-line > img {
        width: 86px;
    }

    .shop-cart-quantity {
        grid-column: 2;
    }

    .shop-cart-line-total {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .shop-remove-button {
        grid-column: 2;
        justify-self: start;
    }
}

@media (max-width: 640px) {
    .header-shop-button {
        padding-right: .6rem;
        padding-left: .6rem;
    }

    .shop-product-grid,
    .home-shop-grid {
        grid-template-columns: 1fr;
    }

    .shop-product-form,
    .shop-form-row {
        grid-template-columns: 1fr;
    }

    .shop-cart-line {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .shop-cart-line > img {
        width: 72px;
    }

    .shop-cart-line-total {
        grid-column: 2;
        grid-row: auto;
        justify-self: start;
        text-align: left;
    }

    .shop-success-facts {
        grid-template-columns: 1fr;
    }

    .home-shop-action,
    .shop-bottom-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .home-shop-action a,
    .shop-bottom-actions a {
        width: 100%;
        text-align: center;
    }
}

/* Version 6.5.17 · Produktfotos og personligt medlemstryk */

.shop-product-image {
    display: grid;
    place-items: center;
    padding: 10px;
    background:
        linear-gradient(
            145deg,
            rgba(239, 253, 255, .88),
            rgba(255, 247, 252, .9)
        );
}

.shop-product-image img {
    aspect-ratio: 4 / 5;
    object-fit: contain;
    border-radius: 16px;
}

.shop-product-flags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100%;
}

.shop-product-kind {
    display: inline-flex;
    width: fit-content;
    padding: .35rem .62rem;
    border-radius: 999px;
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .09);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.shop-personalization-panel,
.shop-member-gate,
.shop-cart-personalization {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    margin: 0 0 25px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(103, 70, 255, .18);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 94% 10%,
            rgba(200, 255, 52, .24),
            transparent 13rem
        ),
        linear-gradient(
            120deg,
            rgba(0, 223, 245, .09),
            rgba(255, 255, 255, .92)
        );
    box-shadow: 0 14px 42px rgba(57, 35, 97, .065);
}

.shop-personalization-panel h2,
.shop-member-gate h2 {
    margin: 6px 0 10px;
}

.shop-personalization-panel blockquote,
.shop-cart-personalization blockquote {
    margin: 0;
    max-width: 850px;
    color: var(--ink-soft);
    font-family: "Oxanium", system-ui, sans-serif;
    font-weight: 600;
    line-height: 1.65;
}

.shop-personalization-panel p:last-child {
    margin-bottom: 0;
    color: var(--violet-dark);
    font-size: .78rem;
    font-weight: 800;
}

.shop-member-gate-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.shop-member-gate.compact {
    margin-bottom: 20px;
}

.shop-card-member-message {
    display: grid;
    width: 100%;
    gap: 3px;
    margin-top: auto;
    padding: 13px 14px;
    border: 1px solid rgba(103, 70, 255, .16);
    border-radius: 12px;
    color: var(--ink-soft);
    background: rgba(103, 70, 255, .055);
}

.shop-card-member-message strong {
    color: var(--violet-dark);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .78rem;
}

.shop-card-member-message span {
    font-size: .76rem;
}

.shop-membership-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: .7rem .85rem;
    border: 1px solid rgba(103, 70, 255, .22);
    border-radius: 11px;
    color: var(--violet-dark);
    background: rgba(103, 70, 255, .07);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
}

.shop-membership-link:hover {
    border-color: var(--violet);
    background: rgba(103, 70, 255, .12);
}

.shop-cart-personalization {
    grid-template-columns: 1fr;
}

.shop-cart-personalization > strong {
    color: var(--ink);
    font-family: "Oxanium", system-ui, sans-serif;
    font-size: 1.2rem;
}

.footer-contact address {
    margin: .35rem 0 .5rem;
    color: inherit;
    font-style: normal;
    line-height: 1.6;
}

.footer-contact a[href="/handelsbetingelser"] {
    margin-bottom: 1rem;
}

@media (max-width: 760px) {
    .shop-personalization-panel,
    .shop-member-gate {
        grid-template-columns: 1fr;
    }

    .shop-member-gate-actions {
        justify-content: flex-start;
    }

    .shop-member-gate-actions .primary-link,
    .shop-member-gate-actions .ghost-button {
        width: 100%;
        text-align: center;
    }
}

/* Version 6.5.18 · Rundere webshopknap og mindre produkttitler */

.nav-shop-button,
.header-shop-button {
    min-height: 44px;
    padding: .7rem 1.15rem;
    border-radius: 9999px;
    line-height: 1;
    overflow: hidden;
}

/* Produkttitlerne på selve webshoppen skal være markant mindre. */
.shop-product-card-full .shop-product-card-copy h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.15rem, 1.55vw, 1.45rem);
    line-height: 1.15;
}

/* Forsidens mindre produktkort beholder deres nuværende h3-størrelse. */
.home-shop-grid .shop-product-card-copy h3 {
    line-height: 1.2;
}

@media (max-width: 980px) {
    .header-shop-button {
        min-height: 40px;
        padding: .62rem .82rem;
        border-radius: 9999px;
    }
}

/* Version 6.5.19 · Webshop og Login med identiske mål på PC */
@media (min-width: 981px) {
    .primary-nav .nav-shop-button,
    .primary-nav .nav-login-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        width: auto;
        height: 38px;
        min-height: 38px;
        padding: 0 15px !important;
        border-width: 1px;
        border-style: solid;
        border-radius: 999px !important;
        font-family: "Oxanium", system-ui, sans-serif;
        font-size: .79rem !important;
        font-weight: 700 !important;
        line-height: 1.1;
        white-space: nowrap;
    }

    .primary-nav .nav-shop-button {
        border-color: rgba(103, 70, 255, .25);
    }
}
