/* Lot 7.5A runtime corrections layered after the owner-locked Home v65 stylesheet.
 * Keep the exact prototype stylesheet immutable; put shared shell convergence and
 * accepted runtime-only corrections here instead.
 */

:root {
    --gradient-hero: linear-gradient(90deg, #ef8d96 0%, #b46ee9 48%, #59cbb3 100%);
}

/* Shared header: use the same effective geometry and hover language on every public page. */
.site-header .header-inner {
    width: min(1380px, calc(100% - 32px));
    min-height: 86px;
    gap: 24px;
}

.site-header .brand img {
    height: 52px;
    max-width: 235px;
}

.site-header .commerce-nav > a,
.site-header .commerce-nav > span,
.site-header .commerce-nav > details > summary {
    min-height: 40px;
    padding: 0 11px;
    font-size: 13px;
    font-weight: 600;
}

.site-header .header-actions .text-action {
    background-color: transparent;
    background-image: var(--gradient-hero);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition:
        background-size .44s cubic-bezier(.22, 1, .36, 1),
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.site-header .header-actions .text-action.primary {
    background-color: var(--blossom-pink);
}

.site-header .header-actions .text-action:hover,
.site-header .header-actions .text-action.primary:hover,
.site-header .header-actions .text-action:focus-visible,
.site-header .header-actions .text-action.primary:focus-visible {
    background-color: var(--blossom-pink);
    background-image: var(--gradient-hero);
    background-size: 100% 100%;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(180, 110, 233, .22);
    transform: translateY(-2px);
}

/* Account dropdown parity with the established client storefront menu. */
.site-header .account-menu-panel {
    z-index: 1100;
}

.site-header .account-menu-panel a,
.site-header .account-menu-panel button,
.site-header .account-menu-panel > span {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--deep-space);
    text-decoration: none;
    text-align: left;
    font-size: 14px;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease,
        color .18s ease;
}

.site-header .account-menu-panel a:hover,
.site-header .account-menu-panel button:hover {
    background: #fff0f1;
    border-color: #ffd8dc;
    color: #7d3040;
    box-shadow: 0 6px 16px rgba(214, 109, 119, .11);
    transform: translateX(4px);
}

.site-header .account-menu-panel a[aria-current="page"] {
    background: #fff0f1;
    border-color: #ffd8dc;
    color: #7d3040;
}

.site-header .account-menu-panel > span {
    color: #9ca3af;
}

.site-header .account-menu-panel svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
}

.site-header .account-menu summary.icon-action > svg,
.site-header [data-site-cart].icon-action > svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    flex: 0 0 20px !important;
}

/* Shared footer: mirror the final Home v65 card geometry and progressive-fill interactions. */
.lmd-footer {
    padding: clamp(64px, 7vw, 96px) 24px 30px;
}

.lmd-footer-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(220px, .7fr) minmax(280px, .95fr);
    gap: clamp(24px, 4vw, 48px);
    align-items: stretch;
}

.lmd-footer-brand,
.lmd-footer-nav,
.lmd-footer-contact-card {
    border-radius: 26px;
    border: 1px solid rgba(1, 2, 20, .07);
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 18px 52px rgba(1, 2, 20, .07), inset 0 1px 0 rgba(255, 255, 255, .9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.lmd-footer-brand {
    padding: 30px;
}

.lmd-footer-logo-link {
    margin-bottom: 20px;
}

.lmd-footer-logo {
    width: min(220px, 72vw);
}

.lmd-footer-brand p {
    max-width: 470px;
    margin: 0 0 26px;
    color: #555b6f;
    font-size: 15px;
    line-height: 1.72;
}

.lmd-footer-socials {
    gap: 10px;
}

.lmd-footer-socials a,
.lmd-footer-contact-actions a,
.lmd-footer-nav a,
.lmd-footer-map-link {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background-image: none;
    background-color: rgba(255, 255, 255, .92);
}

.lmd-footer-socials a::before,
.lmd-footer-contact-actions a::before,
.lmd-footer-nav a::before,
.lmd-footer-map-link::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: var(--gradient-hero);
    transition: width .42s cubic-bezier(.22, 1, .36, 1);
    pointer-events: none;
    z-index: 0;
}

.lmd-footer-socials a:hover::before,
.lmd-footer-socials a:focus-visible::before,
.lmd-footer-contact-actions a:hover::before,
.lmd-footer-contact-actions a:focus-visible::before,
.lmd-footer-nav a:hover::before,
.lmd-footer-nav a:focus-visible::before,
.lmd-footer-map-link:hover::before,
.lmd-footer-map-link:focus-visible::before {
    width: 100%;
}

.lmd-footer-socials a:hover,
.lmd-footer-socials a:focus-visible,
.lmd-footer-contact-actions a:hover,
.lmd-footer-contact-actions a:focus-visible,
.lmd-footer-nav a:hover,
.lmd-footer-nav a:focus-visible,
.lmd-footer-map-link:hover,
.lmd-footer-map-link:focus-visible {
    background-color: rgba(255, 255, 255, .92);
    background-size: auto;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 14px 34px rgba(180, 110, 233, .20);
    transform: translateY(-2px);
}

.lmd-footer-socials a,
.lmd-footer-socials a:hover,
.lmd-footer-socials a:focus-visible {
    border-radius: 15px;
}

.lmd-footer-contact-actions a,
.lmd-footer-contact-actions a:hover,
.lmd-footer-contact-actions a:focus-visible {
    border-radius: 20px;
}

.lmd-footer-nav a,
.lmd-footer-nav a:hover,
.lmd-footer-nav a:focus-visible {
    border-radius: 15px;
}

.lmd-footer-map-link,
.lmd-footer-map-link:hover,
.lmd-footer-map-link:focus-visible {
    border-radius: 999px;
}

.lmd-footer-socials a > *,
.lmd-footer-contact-actions a > *,
.lmd-footer-nav a > *,
.lmd-footer-map-link > *,
.lmd-footer-nav a::after {
    position: relative;
    z-index: 1;
}

/* These dimensions are present in the owner V65 prototype but were missing from the extracted shared shell. */
.lmd-footer-nav-label svg {
    width: 18px !important;
    height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
    transition: transform .22s ease;
}

.lmd-footer-nav a:hover .lmd-footer-nav-label svg,
.lmd-footer-nav a:focus-visible .lmd-footer-nav-label svg {
    transform: scale(1.08);
}

.lmd-footer-map-link svg {
    width: 17px !important;
    height: 17px !important;
    max-width: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
}

.footer-contact-symbol svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
}

.lmd-footer-socials img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
}

.lmd-footer-card-actions {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
}

.lmd-footer-card-actions .lmd-footer-map-link {
    width: 100%;
    min-height: 48px;
    justify-content: center;
}

.lmd-footer-contact-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.lmd-footer-contact-actions a {
    min-height: 70px;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 720;
}

.lmd-footer-bottom {
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    font-size: 12.5px;
}

/* Home bestseller cards: stable vertical rhythm regardless of title length. */
.lmd-home .catalogue-home-product-card {
    display: flex;
    flex-direction: column;
}

.lmd-home .catalogue-home-product-card .product-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.lmd-home .catalogue-home-product-card .product-title-link {
    display: block;
    min-height: 4.35em;
    max-height: 4.35em;
    overflow: hidden;
}

.lmd-home .catalogue-home-product-card .product-title {
    display: -webkit-box;
    min-height: 4.35em;
    max-height: 4.35em;
    overflow: hidden;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.lmd-home .catalogue-home-product-card .product-facts {
    margin-top: 0;
}

.lmd-home .catalogue-home-product-card .product-sale-price-inline {
    display: inline-flex;
    align-items: center;
    gap: 0;
}

/* Defensive fallback for cached markup from the previous deployment. */
.lmd-home .catalogue-home-product-card .product-sale-price-inline > span {
    display: none;
}

.lmd-home .catalogue-home-product-card .product-sale-price-inline strong {
    font-size: 18px;
}

.lmd-home .catalogue-home-product-card .product-image {
    position: relative;
}

/* Fully reset badge geometry so generic product/image rules cannot stretch the pill over the image. */
.lmd-home .catalogue-home-product-card .product-image > .product-badge.sold {
    position: absolute !important;
    inset: auto 12px 12px auto !important;
    top: auto !important;
    left: auto !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 3;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: calc(100% - 24px) !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    padding: 5px 9px !important;
    margin: 0 !important;
    border: 1px solid rgba(192, 132, 252, .22) !important;
    border-radius: 999px !important;
    background: rgba(246, 240, 255, .90) !important;
    color: #72559a !important;
    box-shadow: 0 8px 20px rgba(1, 2, 20, .10) !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
    transform: none !important;
    object-fit: initial !important;
}

.lmd-home .catalogue-home-view-all-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    text-align: center;
}

/* Keep the Hero lead visually equidistant from the title and its CTA row. */
.lmd-home .hero-copy {
    gap: 16px;
}

/* Owner-requested English hero composition: fixed lead-in, rotating phrase on its own line. */
html[lang="en"] .lmd-home .hero-title .rotating-hero-text {
    display: block !important;
    margin-top: .04em;
}

/* Reuse the Home progressive gradient interaction on presentation-only Blog CTAs. */
.blog-coming-actions a {
    background-image: var(--gradient-hero);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition:
        background-size .44s cubic-bezier(.22, 1, .36, 1),
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.blog-coming-actions a:hover,
.blog-coming-actions a:focus-visible {
    background-size: 100% 100%;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(180, 110, 233, .22);
    transform: translateY(-2px);
}

/* Keep the legacy client-login submit action in the same public CTA interaction language. */
.guest-shell .auth-card button.button {
    background-color: var(--deep-space);
    background-image: var(--gradient-hero);
    background-repeat: no-repeat;
    background-position: left center;
    background-size: 0% 100%;
    transition:
        background-size .44s cubic-bezier(.22, 1, .36, 1),
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .22s ease;
}

.guest-shell .auth-card button.button:hover,
.guest-shell .auth-card button.button:focus-visible {
    background-color: var(--deep-space);
    background-image: var(--gradient-hero);
    background-size: 100% 100%;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 12px 30px rgba(180, 110, 233, .22);
    transform: translateY(-2px);
}

@media (max-width: 1180px) {
    .site-header .header-inner {
        min-height: 86px;
    }

    .site-header .brand img {
        height: 56px;
    }
}

@media (max-width: 1023px) {
    .lmd-footer-main {
        grid-template-columns: 1fr;
    }

    .lmd-footer-contact-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .site-header .header-inner {
        width: min(100% - 22px, 1240px);
        min-height: 74px;
        gap: 8px;
        grid-template-columns: auto auto minmax(0, 1fr);
    }

    .site-header .brand img {
        height: 40px;
        max-width: 180px;
    }

    .lmd-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .lmd-footer-brand,
    .lmd-footer-nav,
    .lmd-footer-contact-card {
        border-radius: 22px;
    }

    .lmd-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Modern language selector: aligned with the 42px header actions and fully custom at rest/open. */
.site-header .locale-menu {
    position: relative;
    margin: 0;
}

.site-header .locale-menu > summary {
    list-style: none;
}

.site-header .locale-menu > summary::-webkit-details-marker {
    display: none;
}

.site-header .locale-trigger {
    height: 42px;
    min-width: 86px;
    display: inline-grid;
    grid-template-columns: 16px auto 14px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .96);
    color: var(--deep-space);
    box-shadow: 0 2px 10px rgba(1, 2, 20, .035);
    cursor: pointer;
    user-select: none;
    transition:
        transform .18s ease,
        background .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.site-header .locale-trigger:hover,
.site-header .locale-trigger:focus-visible,
.site-header .locale-menu[open] > .locale-trigger {
    border-color: var(--blossom-pink);
    background: #fff8f8;
    box-shadow: 0 8px 20px rgba(214, 109, 119, .13);
    transform: translateY(-1px);
    outline: none;
}

.site-header .locale-globe {
    width: 16px;
    height: 16px;
    color: #6f7484;
}

.site-header .locale-current {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .045em;
}

.site-header .locale-chevron {
    width: 14px;
    height: 14px;
    color: #8a8f9e;
    transition: transform .18s ease;
}

.site-header .locale-menu[open] .locale-chevron {
    transform: rotate(180deg);
}

.site-header .locale-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 1200;
    width: 202px;
    padding: 8px;
    border: 1px solid var(--light-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, .985);
    box-shadow: 0 18px 46px rgba(1, 2, 20, .14);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header .locale-menu-label {
    display: block;
    padding: 6px 9px 7px;
    color: var(--muted-grey);
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.site-header .locale-option-form {
    margin: 0;
}

.site-header .locale-option {
    width: 100%;
    min-height: 40px;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--deep-space);
    text-align: left;
    transition:
        transform .16s ease,
        background .16s ease,
        border-color .16s ease,
        color .16s ease;
}

.site-header .locale-option:hover,
.site-header .locale-option:focus-visible {
    background: #fff0f1;
    border-color: #ffd8dc;
    color: #7d3040;
    transform: translateX(2px);
    outline: none;
}

.site-header .locale-option[aria-current="true"] {
    background: #fff7f8;
    border-color: #f8d8dc;
}

.site-header .locale-option-code {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    color: #8a5360;
}

.site-header .locale-option-name {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.site-header .locale-check {
    width: 16px;
    height: 16px;
    justify-self: end;
    color: #7d3040;
}

.site-header .mobile-locale-row .locale-menu-panel {
    top: calc(100% + 8px);
}

@media (max-width: 1024px) {
    .site-header .mobile-locale-row {
        overflow: visible;
    }

    .site-header .mobile-locale-row .locale-trigger {
        height: 38px;
        min-width: 82px;
        padding-inline: 10px;
    }
}
