/* ------------------------------------------------------------------
   Trí Ân Gift — component layer.

   Styles for behaviour restored from the reference theme: carousels,
   product tabs, mini cart, quick view, predictive search, popups.
   Loaded after tri-an.css. Driven by assets/js/shop-ui.js.
   ------------------------------------------------------------------ */

/* ---------- Card hover image swap ----------
   theme.css already animates .media--hover-effect; it simply never had a
   second image to reveal. */

.media--hover-effect { position: relative; overflow: hidden; }

.card__img,
.card__img--alt {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity .45s ease, transform .8s ease;
}

.card__img--alt {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
}

.card-wrapper:hover .card__img      { opacity: 0; transform: scale(1.04); }
.card-wrapper:hover .card__img--alt { opacity: 1; transform: scale(1.04); }

@media (hover: none), (pointer: coarse) {
    .card__img--alt { display: none; }
    .card-wrapper:hover .card__img { opacity: 1; transform: none; }
}

/* ---------- Stock + MOQ pills ---------- */

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 6px 0 2px;
}

.stock-pill {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 40px;
    font-size: 11px;
    line-height: 1.85;
    letter-spacing: .02em;
    white-space: nowrap;
}

.stock--in  { background: #eef6e4; color: #5d8a24; }
.stock--low { background: #fff2e8; color: #d1662c; }
.stock--mto { background: #eef1f6; color: #5a6c88; }
.stock--out { background: #fbecec; color: #c0392b; }

.card-moq { font-size: 11.5px; color: #a8a8a8; }

.badge-out {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.9;
    border-radius: 2px;
    color: var(--soldout-text-color);
    background: var(--soldout-bg-color);
}

/* ---------- Owl chrome ---------- */

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .13);
    color: #555;
    font-size: 20px;
    line-height: 36px;
    border: 0;
    opacity: 0;
    transition: opacity .25s ease, background .25s ease, color .25s ease;
    z-index: 5;
}

.owl-carousel:hover .owl-nav button.owl-prev,
.owl-carousel:hover .owl-nav button.owl-next { opacity: 1; }

.owl-carousel .owl-nav button.owl-prev { left: -6px; }
.owl-carousel .owl-nav button.owl-next { right: -6px; }

.owl-carousel .owl-nav button:hover {
    background: var(--button-bg-color);
    color: #fff;
}

.owl-carousel .owl-nav button.disabled { opacity: 0 !important; cursor: default; }

.owl-carousel .owl-dots { text-align: center; margin-top: 16px; }

.owl-carousel .owl-dot span {
    display: block;
    width: 9px;
    height: 9px;
    margin: 0 5px;
    border-radius: 50%;
    background: #d6d6d6;
    transition: background .25s ease, width .25s ease;
}

.owl-carousel .owl-dot.active span {
    width: 26px;
    border-radius: 5px;
    background: var(--button-bg-color);
}

@media (hover: none), (pointer: coarse) {
    .owl-carousel .owl-nav button.owl-prev,
    .owl-carousel .owl-nav button.owl-next { opacity: 1; }
}

/* The arrows hang 6px outside the track, which is fine inside a padded
   .page-width but pushes past the viewport edge on narrow screens. */
@media (max-width: 767px) {
    .owl-carousel .owl-nav button.owl-prev { left: 0; }
    .owl-carousel .owl-nav button.owl-next { right: 0; }
}

/* Hero: chrome sits over the image. */
.ishislideshow-carousel { position: relative; }

.ishislideshow-carousel .owl-dots {
    position: absolute;
    left: 0; right: 0;
    bottom: 18px;
    margin: 0;
}

.ishislideshow-carousel .owl-dot span { background: rgba(255, 255, 255, .5); }
.ishislideshow-carousel .owl-dot.active span { background: #fff; }
.ishislideshow-carousel .owl-nav button.owl-prev { left: 18px; }
.ishislideshow-carousel .owl-nav button.owl-next { right: 18px; }

/* ---------- Featured product tabs ---------- */

.ishi-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.ishi-tabs button {
    border: 1px solid transparent;
    background: none;
    padding: 7px 20px;
    border-radius: 40px;
    font-family: inherit;
    font-size: 13.5px;
    color: #888;
    cursor: pointer;
    transition: all .22s ease;
}

.ishi-tabs button:hover { color: var(--button-bg-color); }

.ishi-tabs button.active {
    background: var(--button-bg-color);
    border-color: var(--button-bg-color);
    color: #fff;
}

/* ---------- Mini cart ---------- */

#_desktop_cart { position: relative; }

.mini-cart {
    position: absolute;
    top: 100%;
    margin-top: 14px;
    right: 0;
    width: 340px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 34px rgba(0, 0, 0, .13);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
    text-align: left;
}

.mini-cart.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mini-cart::before {
    content: '';
    position: absolute;
    top: -7px;
    right: 26px;
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
    transform: rotate(45deg);
}

.mini-cart__list {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.mini-cart__line {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px 18px;
    border-bottom: 1px solid #f4f4f4;
}

.mini-cart__line img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border: 1px solid #f0f0f0;
    flex: 0 0 auto;
}

.mini-cart__info { flex: 1 1 auto; min-width: 0; }

.mini-cart__info a {
    display: block;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    line-height: 1.5;
    margin-bottom: 2px;
}

.mini-cart__info a:hover { color: var(--button-bg-color); }
.mini-cart__info span { font-size: 12.5px; color: #999; }

.mini-cart__x {
    border: 0;
    background: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
}

.mini-cart__x:hover { color: #c0392b; }

.mini-cart__foot { padding: 16px 18px; background: #fafafa; }

.mini-cart__total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.mini-cart__total strong { color: var(--brand-secondary); font-size: 16px; }

.mini-cart__foot .btn-addcart {
    display: block;
    width: 100%;
    text-align: center;
    line-height: 48px;
    text-decoration: none;
}

.mini-cart__empty { padding: 34px 20px; text-align: center; }
.mini-cart__empty i { font-size: 32px; color: #dcdcdc; display: block; margin-bottom: 12px; }
.mini-cart__empty p { color: #999; font-size: 13.5px; margin: 0 0 16px; }

/* ---------- Quick view ---------- */

.qv {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.qv.is-open { opacity: 1; visibility: visible; }

.qv__scrim {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .55);
}

.qv__box {
    position: relative;
    display: flex;
    width: 860px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
    transform: translateY(14px) scale(.985);
    transition: transform .28s ease;
}

.qv.is-open .qv__box { transform: none; }

.qv__close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 2;
    border: 0;
    background: none;
    font-size: 30px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
}

.qv__close:hover { color: #333; }

.qv__media { flex: 0 0 45%; background: #fafafa; }
.qv__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.qv__info { flex: 1 1 auto; padding: 32px 34px; }

.qv__info h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 22px;
    margin: 0 0 6px;
    color: #232323;
    line-height: 1.35;
}

.qv__sku {
    font-size: 11.5px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b0b0b0;
    margin-bottom: 12px;
}

.qv__price { font-size: 24px; font-weight: 600; color: var(--brand-secondary); margin-bottom: 10px; }
.qv__price s { font-size: 16px; font-weight: 400; color: #bbb; margin-right: 8px; }
.qv__excerpt { color: #7c7c7c; line-height: 1.85; margin: 14px 0 16px; font-size: 13.5px; }

.qv__specs { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid #f0f0f0; }

.qv__specs li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 8px 0;
    border-bottom: 1px solid #f4f4f4;
    font-size: 13px;
}

.qv__specs span   { color: #999; }
.qv__specs strong { color: #555; font-weight: 500; text-align: right; }

.qv__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.qv__actions .btn-addcart { flex: 1 1 180px; text-align: center; line-height: 48px; text-decoration: none; }
.qv__actions .btn-addcart[disabled] { background: #ccc; cursor: not-allowed; }
.qv__full { color: #888; font-size: 13px; text-decoration: none; }
.qv__full:hover { color: var(--button-bg-color); }

@media (max-width: 767px) {
    .qv__box { flex-direction: column; }
    .qv__media { flex: 0 0 auto; max-height: 220px; }
    .qv__info { padding: 22px 20px; }
}

/* ---------- Predictive search ---------- */

.search-header { position: relative; }

.search-results {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    list-style: none;
    padding: 0;
    z-index: 998;
    max-height: 380px;
    overflow-y: auto;
    display: none;
    text-align: left;
}

.search-results.is-open { display: block; }

.search-results li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
}

.search-results li a:hover { background: #fafafa; }
.search-results img { width: 42px; height: 42px; object-fit: cover; border: 1px solid #f0f0f0; flex: 0 0 auto; }
.search-results__t { flex: 1 1 auto; font-size: 13px; color: #333; line-height: 1.45; }
.search-results__p { font-size: 13px; color: var(--brand-secondary); white-space: nowrap; }

.search-results__none { padding: 20px 16px; text-align: center; color: #888; font-size: 13.5px; }
.search-results__none span { display: block; margin-top: 6px; font-size: 12px; color: #b5b5b5; }
.search-results__all a { justify-content: center; color: var(--button-bg-color); font-size: 13px; border-bottom: 0; }

/* ---------- Cookie bar ---------- */

.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9998;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: center;
    padding: 16px 24px;
    background: #232323;
    color: #ddd;
    font-size: 13px;
    transform: translateY(100%);
    transition: transform .32s ease;
}

.cookie-bar.is-in { transform: translateY(0); }
.cookie-bar p { margin: 0; max-width: 620px; line-height: 1.7; }
.cookie-bar__actions { display: flex; gap: 10px; align-items: center; }
.cookie-bar .btn { padding: 7px 22px; }

.cookie-decline {
    border: 0;
    background: none;
    color: #999;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
}

.cookie-decline:hover { color: #fff; }

/* ---------- Newsletter modal ---------- */

.nl-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 10040;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility .3s ease;
}

.nl-modal.is-open { opacity: 1; visibility: visible; }

.nl-modal__scrim {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, .55);
}

.nl-modal__box {
    position: relative;
    display: flex;
    width: 700px;
    max-width: calc(100vw - 32px);
    background: #fff;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .3);
    transform: translateY(16px);
    transition: transform .3s ease;
}

.nl-modal.is-open .nl-modal__box { transform: none; }

.nl-modal__close {
    position: absolute;
    top: 6px;
    right: 12px;
    border: 0;
    background: none;
    font-size: 28px;
    line-height: 1;
    color: #bbb;
    cursor: pointer;
    z-index: 2;
}

.nl-modal__close:hover { color: #333; }

.nl-modal__art {
    flex: 0 0 42%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #8fbf45 0%, #6d9c30 100%);
    color: #fff;
    text-align: center;
}

.nl-modal__art span { font-family: 'Lora', Georgia, serif; font-size: 34px; font-weight: 700; line-height: 1; }

.nl-modal__art em {
    font-style: normal;
    letter-spacing: .55em;
    text-indent: .55em;
    font-size: 13px;
    color: #ffe2cf;
    margin-top: 4px;
}

.nl-modal__body { flex: 1 1 auto; padding: 34px 32px; }

.nl-modal__body h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 21px;
    margin: 0 0 8px;
    color: #232323;
    line-height: 1.35;
}

.nl-modal__body p { color: #8a8a8a; font-size: 13.5px; line-height: 1.8; margin: 0 0 18px; }

.nl-modal__body input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e3e3e3;
    font-family: inherit;
    font-size: 14px;
    margin-bottom: 12px;
    border-radius: 2px;
}

.nl-modal__body input:focus { outline: none; border-color: var(--button-bg-color); }
.nl-modal__body .btn-addcart { width: 100%; }

.nl-modal__skip {
    display: block;
    margin: 14px auto 0;
    border: 0;
    background: none;
    color: #aaa;
    font-family: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .nl-modal__art { display: none; }
    .nl-modal__body { padding: 30px 22px; }
}

/* ---------- Back to top ---------- */

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9990;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--button-bg-color);
    color: #fff;
    font-size: 20px;
    line-height: 42px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.to-top.is-in { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--button-bg-hover-color); }

/* ---------- Wishlist active state ---------- */

.thumbnail-buttons .wishlist.is-wished { background: var(--product-btn-bg-hover-color); }
.thumbnail-buttons .wishlist.is-wished > a { color: #fff; }

/* ---------- Rich empty states ---------- */

.empty-state { text-align: center; padding: 60px 20px 50px; }

.empty-state__icon {
    font-size: 46px;
    color: #dcdcdc;
    display: block;
    margin-bottom: 18px;
}

.empty-state h3,
.empty-state__h1 {
    font-family: 'Lora', Georgia, serif;
    font-size: 21px;
    color: #333;
    margin: 0 0 8px;
}

.empty-state p { color: #9a9a9a; margin: 0 auto 22px; max-width: 460px; line-height: 1.8; }
.empty-state__suggest { margin-top: 26px; }

.empty-state__suggest > span {
    display: block;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #b0b0b0;
    margin-bottom: 12px;
}

/* ---------- Cart reconciliation notice ---------- */

.cart-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 18px;
    margin-bottom: 24px;
    background: #fff8ef;
    border: 1px solid #f4dcc2;
    color: #8a6231;
    font-size: 13.5px;
    line-height: 1.7;
}

.cart-notice i { color: #d68b3c; margin-top: 3px; }

/* ---------- Focus visibility ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--button-bg-color);
    outline-offset: 2px;
}

/* ---------- Quick-action tooltips ----------
   theme.css hides .tooltip-label via `.btn-info span { display:none }`.
   Restore it as a real hover tooltip, matching the reference behaviour. */

.thumbnail-buttons .btn-info { position: relative; }

.thumbnail-buttons .btn-info .tooltip-label {
    display: block;
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(6px);
    background: #232323;
    color: #fff;
    font-size: 11.5px;
    line-height: 1.6;
    padding: 3px 10px;
    border-radius: 2px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.thumbnail-buttons .btn-info .tooltip-label::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    margin-top: -4px;
    border: 4px solid transparent;
    border-left-color: #232323;
}

.thumbnail-buttons .btn-info:hover .tooltip-label {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* On the collection grid the buttons sit in a centred row below the card, so
   the tooltip belongs above rather than to the left. */
.collection .grid__item .thumbnail-buttons .btn-info .tooltip-label {
    right: auto;
    left: 50%;
    top: auto;
    bottom: calc(100% + 10px);
    transform: translateX(-50%) translateY(6px);
}

.collection .grid__item .thumbnail-buttons .btn-info .tooltip-label::after {
    left: 50%;
    top: 100%;
    margin: 0 0 0 -4px;
    border-left-color: transparent;
    border-top-color: #232323;
}

.collection .grid__item .thumbnail-buttons .btn-info:hover .tooltip-label {
    transform: translateX(-50%) translateY(0);
}

/* Touch has no hover, so a tooltip can only get in the way. */
@media (hover: none), (pointer: coarse) {
    .thumbnail-buttons .btn-info .tooltip-label { display: none; }
}

/* ---------- Mobile drawer: nested levels ---------- */

.trian-drawer__has-sub summary {
    display: block;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    color: #444;
    cursor: pointer;
    list-style: none;
    position: relative;
}

.trian-drawer__has-sub summary::-webkit-details-marker { display: none; }

.trian-drawer__has-sub summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #aaa;
    line-height: 1;
}

.trian-drawer__has-sub details[open] > summary::after { content: '−'; }
.trian-drawer__has-sub details[open] > summary { color: var(--button-bg-color); }

.trian-drawer__has-sub ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #fafafa;
}

.trian-drawer__has-sub ul a {
    padding: 11px 20px 11px 34px;
    font-size: 13.5px;
    color: #666;
}

.trian-drawer__has-sub ul a em { font-style: normal; color: var(--button-bg-color); }

.trian-drawer__group {
    padding: 12px 20px 5px 34px;
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b0b0b0;
}

/* ---------- Product page additions ---------- */

.pdp__moq {
    margin: -8px 0 18px;
    font-size: 13px;
    color: #8a6231;
    background: #fff8ef;
    border: 1px solid #f4dcc2;
    padding: 9px 14px;
}

.pdp__wish {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e3e3e3;
    background: #fff;
    padding: 10px 18px;
    margin-bottom: 24px;
    font-family: inherit;
    font-size: 13.5px;
    color: #777;
    cursor: pointer;
    transition: all .22s ease;
}

.pdp__wish:hover { border-color: var(--brand-secondary); color: var(--brand-secondary); }
.pdp__wish[aria-pressed="true"],
.pdp__wish.is-on {
    border-color: var(--brand-secondary);
    background: #fff4ee;
    color: var(--brand-secondary);
}

.pdp__buy .btn-addcart[disabled] { background: #ccc; cursor: not-allowed; }

/* ---------- Sections ---------- */

.recent-rail { margin-top: 54px; }

/* ---------- Reduced motion ----------
   The hero autoplays and every card animates. For a visitor who has asked
   the OS for less motion, that is not decoration, it is a symptom trigger.
   Owl's autoplay is stopped in shop-ui.js; this kills the CSS side. */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .card-wrapper:hover .card__img,
    .card-wrapper:hover .card__img--alt { transform: none !important; }

    .ishiservicestyle .ishiservices .services:hover .service-img {
        animation: none !important;
        transform: none !important;
    }
}

/* ---------- Mobile search ----------
   Built by shop-ui.js from the desktop form, which the theme hides below
   992px. Without this there is no way to search on a phone. */

#_mobile_search { position: relative; }

.mobile-search-toggle {
    border: 0;
    background: none;
    font-size: 19px;
    color: #555;
    padding: 6px 10px;
    cursor: pointer;
    line-height: 1;
}

.mobile-search-panel {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    left: -12px;
    width: calc(100vw - 24px);
    max-width: 380px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
    padding: 12px;
    z-index: 1000;
    display: none;
}

.mobile-search-panel.is-open { display: block; }

.mobile-search-panel .search-header { position: relative; }

.mobile-search-panel .search__input {
    width: 100%;
    height: 42px;
    padding: 0 42px 0 14px;
    border: 1px solid #e3e3e3;
    font-family: inherit;
    font-size: 14px;
    border-radius: 2px;
}

.mobile-search-panel .search__input:focus { outline: none; border-color: var(--button-bg-color); }

.mobile-search-panel .search__submit {
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border: 0;
    background: none;
    color: var(--button-bg-color);
    cursor: pointer;
}

/* ---------- Form validation ---------- */

.contact-form .is-invalid,
.js-demo-form .is-invalid {
    border-color: #c0392b !important;
    background: #fdf4f3;
}

/* ---------- Image fallback ---------- */

.img-fallback {
    object-fit: contain;
    background: #f5f5f5;
    padding: 12%;
}

/* ---------- Blog ---------- */

.post {
    max-width: 780px;
    margin: 0 auto 60px;
    padding-bottom: 44px;
    border-bottom: 1px solid #eee;
}

.post:last-child { border-bottom: 0; }

.post__img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 26px;
}

.post h3 {
    font-family: 'Lora', Georgia, serif;
    font-size: 26px;
    line-height: 1.35;
    color: #232323;
    margin: 0 0 8px;
}

.post h4 {
    font-family: 'Lora', Georgia, serif;
    font-size: 17px;
    color: #333;
    margin: 26px 0 8px;
}

.post__meta {
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #b0b0b0;
    margin-bottom: 22px;
}

.post p  { color: #6f6f6f; line-height: 1.95; margin: 0 0 14px; }
.post ul { color: #6f6f6f; line-height: 1.95; padding-left: 20px; margin: 0 0 14px; }
.post li { margin-bottom: 7px; }
.post .btn { margin-top: 12px; }

/* Anchored articles must clear the header when deep-linked. */
.post { scroll-margin-top: 24px; }

/* 404 */
.err-page { text-align: center; padding: 80px 20px 90px; }
.err-page__code { font-family: 'Lora', Georgia, serif; font-size: 96px; line-height: 1; color: var(--button-bg-color); margin: 0; }
.err-page h1 { font-family: 'Lora', Georgia, serif; font-size: 26px; color: #333; margin: 14px 0 10px; }
.err-page p { color: #9a9a9a; max-width: 480px; margin: 0 auto 26px; line-height: 1.85; }
