/* Keep the primary sales phone prominent and easy to tap on mobile. */
@media (max-width: 760px) {
    .topbar {
        display: none;
    }

    .header-main {
        height: auto;
        min-height: 70px;
        padding-top: 9px;
        padding-bottom: 9px;
        flex-wrap: wrap;
        gap: 8px 10px;
    }

    .brand--image {
        flex: 1 1 140px;
        max-width: 165px;
    }

    .brand__logo-full {
        max-width: 165px;
    }

    .header-contact {
        display: flex;
        order: 10;
        flex: 0 0 100%;
        width: 100%;
        align-items: stretch;
    }

    .header-phone {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        min-height: 40px;
        padding: 8px 14px;
        border: 1px solid #dedede;
        border-radius: 4px;
        background: #f4f4f4;
        color: #171717;
        font-size: 17px;
        font-weight: 900;
        line-height: 1;
        white-space: nowrap;
    }

    .header-phone::before {
        content: "☎";
        color: #ed0712;
        font-size: 19px;
        line-height: 1;
    }

    .header-messengers {
        display: none;
    }

    .header-search {
        display: flex;
        order: 9;
        flex: 0 0 100%;
        width: 100%;
        height: 40px;
    }

    .header-search input {
        width: 100%;
        padding: 0 12px;
        font-size: 14px;
    }

    .header-search button {
        flex: 0 0 46px;
        width: 46px;
        font-size: 24px;
    }
}

/* Social links in the site footer. */
.site-footer .footer-socials {
    margin-top: 24px;
}

.site-footer .footer-socials>span {
    margin: 0 0 10px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.site-footer .footer-socials>div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-footer .footer-socials a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0;
    padding: 0 11px;
    border: 1px solid #444;
    border-radius: 3px;
    background: #242424;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: border-color .18s ease, background-color .18s ease;
}

.site-footer .footer-socials a:hover {
    border-color: #e30613;
    background: #e30613;
    color: #fff;
}

@media (max-width: 760px) {
    .site-footer .footer-socials {
        margin-top: 18px;
    }
}

@media (max-width: 360px) {
    .brand--image,
    .brand__logo-full {
        max-width: 140px;
    }

    .header-phone {
        font-size: 16px;
    }
}

.checkout-field-caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.checkout-required-note {
    color: #b9000b;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
}

.checkout-required-note--checkbox {
    display: block;
    margin-top: 4px;
}

@media (max-width: 420px) {
    .checkout-field-caption {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* Discount request links beside visible product prices. */
.product-card__price {
    display: contents !important;
}

.product-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "price cart"
        "stock discount";
    align-items: center;
    column-gap: 12px;
    row-gap: 7px;
}

.product-card__price strong {
    grid-area: price;
}

.product-card__price small {
    grid-area: stock;
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
}

.product-card__footer>.add-cart {
    grid-area: cart;
    width: auto;
    margin: 0;
}

.discount-request-link {
    grid-area: discount;
    align-self: start;
    justify-self: stretch;
    margin: 0;
    padding: 5px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 2px;
    background: #fff;
    color: #666;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
}

.discount-request-link:hover {
    border-color: #d6000c;
    color: #980008;
}

.product-detail__content {
    display: flex;
    flex-direction: column;
}

.product-price-row {
    display: contents;
}

.product-price-row .product-detail__price {
    margin: 22px 0 3px;
}

.discount-request-link--detail {
    order: 1;
    align-self: flex-start;
    width: auto;
    margin: -18px 0 0 105px;
    padding: 6px 12px;
    font-size: 11px;
}

.product-detail__content>.availability:not(.availability--off) {
    align-self: flex-start;
    margin-top: 7px;
    padding: 7px 10px;
    border-left: 3px solid #54a637;
    background: #eef8ec;
    color: #347422;
    font-size: 14px;
    font-weight: 800;
}

.product-detail__content>.manager-box {
    order: 2;
}

/* Social profiles on the contacts page. */
.contact-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    margin-top: 46px;
    padding: 30px 34px;
    border: 1px solid #e0e0e0;
    background: #f5f6f8;
}

.contact-socials--prominent {
    margin: 0 0 38px;
    border-top: 4px solid #e30613;
    background: linear-gradient(135deg, #f7f7f8 0%, #fff 100%);
}

.contact-socials h2 {
    margin: 0;
    font-size: 30px;
}

.contact-socials p {
    margin: 6px 0 0;
    color: #676767;
}

.contact-socials__links {
    display: flex;
    gap: 10px;
}

.social-button {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 7px;
    min-width: 78px;
    color: #4e5564;
    font-size: 11px;
    font-weight: 800;
}

.social-button span {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Keep anchored request forms visible below the sticky header. */
#callback-request {
    scroll-margin-top: 180px;
}

.manager-box--target {
    animation: callback-target-pulse 1.1s ease-out;
}

@keyframes callback-target-pulse {
    0% { box-shadow: 0 0 0 5px rgba(227, 6, 19, .18), 0 6px 18px rgba(20,20,20,.045); }
    100% { box-shadow: 0 6px 18px rgba(20,20,20,.045); }
}

.social-button svg,
.social-button>b {
    width: 50px;
    height: 50px;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
    transition: transform .18s ease, box-shadow .18s ease;
}

.social-button svg {
    padding: 10px;
    fill: #e30613;
}

.social-button--instagram svg {
    fill: none;
    stroke: #e30613;
    stroke-width: 1.8;
}

.social-button--instagram .social-button__dot {
    fill: #e30613;
    stroke: none;
}

.social-button>b {
    display: grid;
    place-items: center;
    color: #e30613;
    font-size: 30px;
    font-style: italic;
}

.social-button:hover svg,
.social-button:hover>b {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.14);
}

@media (max-width: 760px) {
    .contact-socials {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 30px;
        padding: 24px;
    }

    .contact-socials--prominent {
        margin: 0 0 26px;
    }

    .contact-socials__links {
        justify-content: space-between;
        width: 100%;
    }

    .discount-request-link--detail {
        margin-left: 105px;
    }

    #callback-request {
        scroll-margin-top: 92px;
    }
}
