/* Runtime-only Engine adapter. Never targets unbound page blocks or theme layout. */
.vnh-offer-card { box-sizing: border-box; display: grid; gap: 12px; width: 100%; min-width: 0; margin-block: 18px 8px; padding: 16px; border: 1px solid #dce0f5; border-radius: 16px; background: #FFFFFF; color: #0D1030; text-align: start; overflow-wrap: anywhere; }
.vnh-offer-card p { margin: 0; }
.vnh-offer-card .vnh-offer-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.vnh-offer-label { width: 100%; font-size: .8rem; color: #535770; }
.vnh-offer-price strong { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; color: #0D1030; }
.vnh-offer-price del { font-size: .9rem; color: #535770; }
.vnh-offer-card .vnh-offer-button { box-sizing: border-box; display: block; min-height: 44px; width: 100%; padding: 12px 16px; border: 1px solid #4C57D6; border-radius: 10px; background: #4C57D6; color: #FFFFFF; font-weight: 700; line-height: 1.5; text-align: center; text-decoration: none; }
.vnh-offer-card .vnh-offer-button:hover { background: #3942A8; color: #FFFFFF; }
.vnh-offer-card .vnh-offer-button:focus-visible { outline: 3px solid #FF8A00; outline-offset: 3px; }
.vnh-offer-card .vnh-offer-disclosure { font-size: .78rem; line-height: 1.5; color: #535770; }
.vnh-offer-card .vnh-offer-stock { font-size: .875rem; line-height: 1.5; color: #535770; }
@media(forced-colors: active) { .vnh-offer-card,.vnh-offer-card .vnh-offer-button { border-color: CanvasText; } }
.vnh-grid-country {
    box-sizing: border-box;
    border: 1px solid #dce0f5;
    border-radius: 16px;
    padding: clamp(16px, 2vw, 24px);
    margin-block: 16px 24px;
    color: #0D1030;
    background: #FFFFFF;
    text-align: start;
}
.vnh-grid-country h3 { margin: 0 0 12px; font-size: 1.1rem; line-height: 1.4; }
.vnh-grid-country form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.vnh-grid-country label { font-weight: 600; }
.vnh-grid-country select { box-sizing: border-box; min-height: 44px; min-width: 0; max-width: 100%; flex: 1 1 180px; border-radius: 8px; }
.vnh-grid-country button { min-height: 44px; padding: 10px 20px; border: 0; border-radius: 8px; color: #FFFFFF; background: #4C57D6; font-weight: 600; cursor: pointer; white-space: normal; }
.vnh-grid-country button:hover { background: #3c46b6; }
.vnh-grid-country :is(select,button):focus-visible { outline: 3px solid #FF8A00; outline-offset: 3px; }
.vnh-grid-country-help { margin: 12px 0 0; font-size: .875rem; line-height: 1.5; }
@media (max-width: 600px) {
    .vnh-grid-country label, .vnh-grid-country select, .vnh-grid-country button { width: 100%; flex-basis: 100%; }
}
.vnh-engine-native-grid {
    box-sizing: border-box;
    min-width: 0;
    padding-inline: clamp(16px, 2vw, 24px);
}
.vnh-engine-native-grid > .wp-block-columns {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}
.vnh-engine-native-grid .wp-block-query {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
}
.vnh-engine-native-grid .wp-block-post-template {
    display: grid;
    grid-template-columns: repeat(var(--vnh-engine-grid-columns, 3), minmax(0, 1fr));
    gap: 24px;
    margin-inline: 0;
}
.vnh-engine-native-grid--columns-1 { --vnh-engine-grid-columns: 1; }
.vnh-engine-native-grid--columns-2 { --vnh-engine-grid-columns: 2; }
.vnh-engine-native-grid--columns-3 { --vnh-engine-grid-columns: 3; }
.vnh-engine-native-grid--columns-4 { --vnh-engine-grid-columns: 4; }
.vnh-engine-native-grid--columns-5 { --vnh-engine-grid-columns: 5; }
.vnh-engine-native-grid--columns-6 { --vnh-engine-grid-columns: 6; }
.vnh-engine-native-grid .wp-block-post-template > .wp-block-post {
    box-sizing: border-box;
    min-width: 0;
    width: auto;
    margin: 0;
}
/* A stable square belongs to the card, never to the source image ratio.
   Position linked and unlinked images inside it so extreme source ratios
   cannot change the frame. Saved blocks and unbound site styles stay intact. */
.vnh-engine-native-grid .wp-block-post-template .wp-block-post-featured-image {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: hidden;
    background: #f3f4fa;
    border: 1px solid #d9ddec;
    border-radius: 20px;
}
.vnh-engine-native-grid .wp-block-post-template .wp-block-post-featured-image > a {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.vnh-engine-native-grid .wp-block-post-template .wp-block-post-featured-image img {
    display: block;
    position: absolute;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
}
.vnh-engine-native-grid .wp-block-query-pagination {
    box-sizing: border-box;
    max-width: 100%;
    padding-inline: 12px;
    gap: 12px;
    justify-content: center;
    overflow-wrap: anywhere;
}
@media (max-width: 767px) {
    .vnh-engine-native-grid .wp-block-post-template {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* The compact shop presentation is only used for Engine-admitted product cards. */
.vnh-grid-product-card { box-sizing: border-box; display: flex; flex-direction: column; height: 100%; min-width: 0; padding: clamp(10px, 1.4vw, 16px); border: 1px solid #dce0f5; border-radius: 16px; background: #fff; color: #0d1030; text-align: start; }
.vnh-grid-product-card .vnh-grid-product-link { display: grid; gap: 12px; min-width: 0; height: 100%; color: #0d1030; text-decoration: none; }
.vnh-grid-product-card .vnh-grid-product-link:hover .vnh-grid-product-title { text-decoration: underline; text-underline-offset: .15em; }
.vnh-grid-product-card .vnh-grid-product-link:focus-visible { outline: 3px solid #4c57d6; outline-offset: 3px; }
.vnh-grid-product-card .vnh-grid-product-media { position: relative; display: block; min-width: 0; aspect-ratio: 1; overflow: hidden; background: #f6f7fb; border-radius: 10px; }
.vnh-grid-product-card .vnh-grid-product-media img { position: absolute !important; inset: 0 !important; display: block; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; object-fit: contain !important; object-position: center !important; }
.vnh-grid-product-card .vnh-grid-product-info { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; min-width: 0; }
.vnh-grid-product-card .vnh-grid-product-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; min-height: 2.7em; overflow: hidden; margin: 0; color: inherit; font-size: clamp(.96rem, 1.3vw, 1.1rem); font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; }
.vnh-grid-product-card .vnh-grid-product-price { margin: 0; color: #0d1030; font-size: clamp(1.16rem, 2vw, 1.5rem); line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.vnh-grid-product-price .vnh-grid-product-price-note { display: block; font-size: .75rem; font-weight: 500; }
.vnh-engine-native-grid .wp-block-post-template:has(> .wp-block-post > .vnh-grid-product-card) { gap: clamp(10px, 2vw, 20px); align-items: stretch; }
@media (max-width: 767px) {
    .vnh-grid-product-card .vnh-grid-product-link:has(> .vnh-grid-product-media) { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
    .vnh-grid-product-card .vnh-grid-product-info { gap: 6px; }
    .vnh-grid-product-card .vnh-grid-product-title { min-height: 0; }
}

.vnh-grid-product-card .vnh-grid-product-merchant { color: #3643a3; font-size: .79rem; line-height: 1.25; font-weight: 700; overflow-wrap: anywhere; }

.vnh-engine-native-grid .vnh-grid-product-card a.vnh-grid-product-link { text-decoration: none !important; }
.vnh-engine-native-grid .vnh-grid-product-card .vnh-grid-product-price { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.vnh-engine-native-grid .vnh-grid-product-card .vnh-grid-product-price strong { font-size: inherit; }
@media (max-width: 767px) {
    .vnh-engine-native-grid .vnh-grid-product-card .vnh-grid-product-title { -webkit-line-clamp: 3; line-clamp: 3; }
}
