/*
 * Fixes on top of the Shopmentor styles (loaded after them in layouts/shop).
 *
 * Mobile header: on Shopmentor the logo (150 px) and the three icons do not fit a 375 px phone,
 * so the browser zooms the whole page out and the cart icon is cut off. Narrow screens get a
 * smaller logo, tighter icons and a one-line phone row.
 */
@media (max-width: 430px) {
    .top-header.shop-header .header-logo-img { width: 112px; max-width: 112px; }
    .top-header.shop-header .header-mobile-actions { gap: .25rem !important; }
    .top-header.shop-header .header-mobile-actions > a,
    .top-header.shop-header .header-mobile-actions .dropdown > .btn { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
    .top-header.shop-header .header-mobile-actions img { width: 28px; height: auto; }
    .top-header.shop-header .header-top-box { flex-wrap: nowrap; white-space: nowrap; gap: .35rem !important; }
    .top-header.shop-header .header-top-box .header-top-text,
    .top-header.shop-header .header-top-box .header-top-phone { font-size: 14px; }
}

@media (max-width: 340px) {
    .top-header.shop-header .header-logo-img { width: 96px; max-width: 96px; }
    .top-header.shop-header .header-top-box .header-top-text { display: none; }
}

/* Links typed into admin texts (page body, FAQ answers, product and blog texts): orange and underlined, so they
   stand out from the grey text (they were nearly the same colour, without underline). Buttons keep their look. */
.html-description a:not(.btn):not(.pn-teaser):not(:has(img)):not([href="#productList"]),
.page-content a:not(.btn):not(:has(img)),
.pn-page__content a:not(.btn):not(:has(img)),
.product-html-description a:not(.btn):not(:has(img)),
.pn-footer-faq__answer a:not(.btn),
.pn-showcase-intro a:not(.btn):not(:has(img)):not([href="#productList"]) {
    color: var(--bs-a-hover, #c6460e);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.html-description a:not(.btn):not(.pn-teaser):not(:has(img)):not([href="#productList"]):hover,
.page-content a:not(.btn):not(:has(img)):hover,
.pn-page__content a:not(.btn):not(:has(img)):hover,
.product-html-description a:not(.btn):not(:has(img)):hover,
.pn-footer-faq__answer a:not(.btn):hover,
.pn-showcase-intro a:not(.btn):not(:has(img)):not([href="#productList"]):hover {
    color: #9c370b;
    text-decoration-thickness: 2px;
}

/* Pictures placed in the admin editor (ImageLayoutPlugin): their own width, and the text running around them. */
.html-description img[style*="width"] { max-height: none; height: auto; max-width: 100%; }
.html-description img[data-layout="left"] { float: left; margin: .35rem 1.75rem 1rem 0; max-height: none; }
.html-description img[data-layout="right"] { float: right; margin: .35rem 0 1rem 1.75rem; max-height: none; }
.html-description img[data-layout="center"] { float: none; display: block; margin: 1rem auto; max-height: none; }
.html-description::after { content: ""; display: block; clear: both; }
@media (max-width: 640px) {
    .html-description img[data-layout] { float: none; width: auto !important; margin: 1rem auto; }
}

/* Home page icon row under the slider: centred while it fits, but scrollable to its first icon when it does not
   ("justify-content: center" pushed the first ones, Száraz and Nedves kutyatáp, out of reach on phones). */
#featuredRecommendation .d-flex.overflow-auto { justify-content: flex-start !important; -webkit-overflow-scrolling: touch; }
#featuredRecommendation .d-flex.overflow-auto > :first-child { margin-left: auto; }
#featuredRecommendation .d-flex.overflow-auto > :last-child { margin-right: auto; }

/* Section titles between two lines ("—— Vélemények ——"): some room between the lines and the words on phones too
   (the markup only pads them from tablet width up). */
@media (max-width: 767.98px) {
    h2 > .flex-grow-1.border-custom + span { padding-left: .75rem !important; padding-right: .75rem !important; }
}
