/*
 * Quackar Gallery - "Original Quackar" from the Theme Gallery.
 *
 * Desktop (>=1100px): every homepage measurement is written in gallery pixels.
 * --u is one pixel of the 836x471 gallery image at the current width, so the
 * page reproduces the image's proportions 1:1 (1440px wide = 1.7225px per u).
 * Text sizes have a legibility floor, which is the one deliberate deviation.
 */

:root {
  --qg-blue: #0a4fae;        /* wordmark blue */
  --qg-action: #0560c8;      /* search button, hero CTA */
  --qg-action-hover: #044ea5;
  --qg-cart: #3d9bf9;        /* card cart buttons */
  --qg-navy: #0b1b3f;        /* headings */
  --qg-ink: #1f2937;
  --qg-muted: #6b7280;
  --qg-line: #e6ecf4;
  --qg-soft: #f4f7fb;
  --qg-page: #fcfcfc;
  --qg-card: #ffffff;
  --qg-red: #d92d45;         /* sale price, Deals & Outlets */
  --qg-orange: #f5730c;      /* cart count badge */
  --qg-star: #f5a623;
  --qg-nav-active: #dcecfc;
  --u: 1px;
  --qg-font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.qg { margin: 0; background: var(--qg-page); color: var(--qg-ink); font: 400 14px/1.5 var(--qg-font); }
.qg img { max-width: 100%; height: auto; display: block; }
.qg a { color: inherit; text-decoration: none; }
.qg a:focus-visible, .qg button:focus-visible, .qg input:focus-visible, .qg select:focus-visible { outline: 3px solid #f5b400; outline-offset: 2px; border-radius: 4px; }
.qg ul { list-style: none; margin: 0; padding: 0; }
.qg h1, .qg h2, .qg h3 { color: var(--qg-navy); line-height: 1.2; margin: 0; }
.qg-icon { width: 1em; height: 1em; flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; margin: -1px; }
.qg-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: #fff; color: var(--qg-blue); padding: 8px 14px; border-radius: 6px; font-weight: 600; }
.qg-skip:focus { top: 8px; }

.qg-wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 16px; }

.qg-picker { position: fixed; right: 12px; bottom: 12px; z-index: 950; font-size: 13px; max-width: calc(100vw - 24px); }
.qg-picker summary { list-style: none; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; background: var(--qg-navy); color: #fff; font-weight: 700; padding: 9px 14px; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.25); float: right; }
.qg-picker summary::-webkit-details-marker { display: none; }
.qg-picker__now { font-weight: 500; opacity: .85; }
.qg-picker__panel { clear: both; position: absolute; right: 0; bottom: 48px; width: min(560px, calc(100vw - 24px)); max-height: min(70vh, 640px); overflow: auto; background: #fff; color: var(--qg-ink); border: 1px solid var(--qg-line); border-radius: 12px; padding: 12px 14px; box-shadow: 0 12px 32px rgba(15,23,42,.22); }
.qg-picker table { width: 100%; border-collapse: collapse; }
.qg-picker th, .qg-picker td { text-align: left; padding: 6px 6px; border-bottom: 1px solid var(--qg-line); vertical-align: top; font-weight: 400; }
.qg-picker thead th { font-size: 12px; color: var(--qg-muted); font-weight: 600; }
.qg-picker tbody th a { color: var(--qg-action); font-weight: 600; text-decoration: underline; }
.qg-picker small { display: block; color: var(--qg-muted); font-size: 11.5px; }
.qg-picker tr.is-current { background: #eef5ff; }
.qg-picker__qa { font-weight: 700; }
.qg-picker__qa.is-pass { color: #15803d; }
.qg-picker__qa.is-fail { color: #b91c1c; }
.qg-picker__note { margin: 0 0 8px; color: var(--qg-muted); font-size: 12.5px; }
.qg-picker__date { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.qg-picker__date input { border: 1px solid #cbd5e1; border-radius: 6px; padding: 4px 6px; font: inherit; }
.qg-picker__date button { background: var(--qg-action); color: #fff; border: 0; border-radius: 6px; padding: 5px 12px; font: 600 13px var(--qg-font); cursor: pointer; }
.qg-preview-flag { background: #7c2d12; color: #fff; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 16px; }
.qg-sample-notice { position: fixed; left: 12px; bottom: 12px; z-index: 900; max-width: min(520px, calc(100vw - 150px)); background: #111827; color: #fff; font-size: 12px; font-weight: 600; padding: 8px 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

.qg-btn, .qg .button, .qg button.button, .qg input.button, .qg .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--qg-action); color: #fff !important; border: 0; border-radius: 8px;
  padding: 10px 18px; font: 600 14px/1.2 var(--qg-font); cursor: pointer; text-decoration: none;
}
.qg-btn:hover, .qg .button:hover, .qg button.button:hover { background: var(--qg-action-hover); color: #fff; }
.qg.woocommerce .button.alt, .qg .woocommerce .button.alt, .qg .button.alt { background: var(--qg-action); color: #fff; }
.qg.woocommerce .button.alt:hover, .qg .woocommerce .button.alt:hover { background: var(--qg-action-hover); }
body.qg.woocommerce div.product form.cart .button.alt.disabled, body.qg.woocommerce div.product form.cart .button.alt.disabled:hover { background: #94a3b8; color: #fff; opacity: 1; }
.qg .wc-block-grid__product-add-to-cart .wp-block-button__link, .qg .wp-block-button__link.add_to_cart_button { background: var(--qg-action) !important; color: #fff !important; border-radius: 8px; font: 600 13px var(--qg-font); padding: 8px 14px; text-decoration: none; }
.qg ul.products li.qg-card .qg-cart-btn.button { display: inline-flex; margin: 0; padding: 0; color: #fff; background: var(--qg-cart); }
.qg ul.products li.qg-card .qg-cart-btn.button:hover { background: var(--qg-action); }

/* ---------- Header ---------- */
.qg-hdr { background: #fff; border-bottom: 1px solid var(--qg-line); position: relative; z-index: 50; }
.qg-hdr__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.qg-hdr__menu { display: none; background: none; border: 0; padding: 6px; color: var(--qg-blue); font-size: 26px; cursor: pointer; }
.qg-hdr__brand { flex: none; }
.qg-logo, .custom-logo-link { display: block; }
.qg-logo__img, .custom-logo { width: 240px; height: auto; }
.qg-logo__img { mix-blend-mode: multiply; } /* the crop's off-white ground melts into the header */
.qg-search { flex: 1 1 auto; display: flex; align-items: center; position: relative; height: 40px; background: var(--qg-soft); border: 1px solid #dbe4f1; border-radius: 999px; padding-left: 14px; }
.qg-search__lead { color: var(--qg-ink); font-size: 18px; display: flex; }
.qg-search__field { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: 400 14px var(--qg-font); color: var(--qg-ink); padding: 0 10px; }
.qg-search__field:focus { outline: none; }
.qg-search:focus-within { border-color: var(--qg-action); box-shadow: 0 0 0 3px rgba(5,96,200,.15); }
.qg-search__cat { position: relative; display: flex; align-items: center; color: var(--qg-ink); }
.qg-search__cat select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: 500 13px var(--qg-font); color: var(--qg-ink); padding: 0 22px 0 8px; height: 100%; cursor: pointer; max-width: 150px; }
.qg-search__cat .qg-icon { position: absolute; right: 4px; pointer-events: none; font-size: 14px; }
.qg-search__btn { flex: none; align-self: stretch; margin: -1px -1px -1px 8px; width: 56px; border: 0; border-radius: 0 999px 999px 0; background: var(--qg-action); color: #fff; font-size: 20px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qg-search__btn:hover { background: var(--qg-action-hover); }
.qg-hdr__actions { flex: none; display: flex; align-items: center; gap: 22px; }
.qg-hdr__action { display: flex; align-items: center; gap: 8px; color: var(--qg-navy); }
.qg-hdr__icon { position: relative; color: var(--qg-blue); font-size: 30px; display: flex; }
.qg-hdr__text { display: flex; flex-direction: column; line-height: 1.15; }
.qg-hdr__text strong { font-size: 14px; font-weight: 700; color: var(--qg-navy); }
.qg-hdr__text small { font-size: 12px; color: var(--qg-muted); }
.qg-hdr__count { position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--qg-orange); color: #fff; font: 700 11px/18px var(--qg-font); text-align: center; }
.qg-hdr__count.is-empty { display: none; }
.qg-hdr__action:hover strong { color: var(--qg-action); }

/* ---------- Category menu ---------- */
.qg-catnav__item a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: #273449; font-size: 13.5px; font-weight: 500; }
.qg-catnav__item a:hover { background: var(--qg-soft); color: var(--qg-blue); }
.qg-catnav__icon { width: 22px; height: 22px; object-fit: contain; flex: none; }
.qg-catnav__label { flex: 1; }
.qg-catnav__item .qg-icon { color: #64748b; font-size: 13px; }
.qg-catnav__item.is-all a { background: var(--qg-nav-active); color: var(--qg-blue); font-weight: 700; }
.qg-catnav__item.is-accent a { color: var(--qg-red); font-weight: 600; }
.qg-catnav__item.is-current a { background: var(--qg-nav-active); color: var(--qg-blue); }

.qg-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(15,23,42,.45); }
.qg-drawer[hidden] { display: none; }
.qg-drawer__panel { position: absolute; inset: 0 auto 0 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; padding: 52px 10px 24px; box-shadow: 8px 0 24px rgba(0,0,0,.18); }
.qg-drawer__close { position: absolute; top: 10px; right: 10px; background: none; border: 0; font-size: 26px; color: var(--qg-navy); cursor: pointer; padding: 4px; }
html.qg-drawer-open { overflow: hidden; }

/* ---------- Home ---------- */
.qg-home { padding-top: 10px; padding-bottom: 24px; }
.qg-home__top, .qg-home__lower { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.qg-home__top > *, .qg-home__lower > * { min-width: 0; }
.qg-hero { position: relative; border-radius: 12px; overflow: hidden; background: #dbeafe; }
.qg-hero__img { width: 100%; }
.qg-hero__cta { position: absolute; border-radius: 999px; }
.qg-hero__cta:focus-visible { outline: 3px solid #f5b400; }
.qg-promos { display: grid; gap: 10px; }
.qg-promo { display: block; border-radius: 10px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.qg-promo:hover, .qg-deal:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.12); }
.qg-promo__img { width: 100%; }

.qg-quick { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.qg-quick::-webkit-scrollbar { display: none; }
.qg-quick li { flex: none; }
.qg-quick a { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; font-size: 13px; font-weight: 500; color: #273449; white-space: nowrap; }
.qg-quick a:hover { background: var(--qg-soft); color: var(--qg-blue); }
.qg-quick__icon { width: 24px; height: 24px; }
.qg-circles { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.qg-circles li { flex: none; }
.qg-circles a { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; text-align: center; font-size: 11.5px; line-height: 1.2; color: #273449; }
.qg-circles img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

.qg-sec { background: var(--qg-card); border: 1px solid var(--qg-line); border-radius: 12px; padding: 14px 16px; }
.qg-sec__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px; margin-bottom: 12px; }
.qg-sec__title { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; grid-column: 1; }
.qg-sec__icon { width: 24px; height: 24px; object-fit: contain; }
.qg-sec__sub { grid-column: 1; margin: 2px 0 0; color: var(--qg-muted); font-size: 13px; }
.qg-sec__more { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; align-items: center; gap: 4px; color: var(--qg-action) !important; font-weight: 600; font-size: 13px; white-space: nowrap; }
.qg-sec__more:hover { text-decoration: underline; }

.qg-row { display: grid; grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; gap: 10px; }
.qg-row > * { scroll-snap-align: start; }
.qg-row--cards { grid-auto-columns: minmax(150px, 44vw); }

/* Product card (homepage rows and every WooCommerce grid). */
.qg-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid #eef2f7; border-radius: 10px; padding: 6px 8px 8px; min-width: 0; }
.qg-card__media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 78 / 46; background: #fff; border-radius: 8px; overflow: hidden; }
.qg-card__media > img { width: 100%; height: 100%; object-fit: contain; }
.qg-card__badge { position: absolute; left: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; background: #fde4e8; color: var(--qg-red); font-size: 11px; font-weight: 600; padding: 2px 8px 2px 4px; border-radius: 999px; }
.qg-card__badge-icon { width: 14px; height: 14px; }
.qg-card__title { font-size: 13px; font-weight: 500; line-height: 1.3; margin: 6px 0 2px; color: var(--qg-navy); min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qg-card__title a:hover { color: var(--qg-action); }
.qg-card__rating { min-height: 16px; display: flex; align-items: center; gap: 4px; font-size: 11px; color: var(--qg-muted); }
.qg-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; padding-top: 2px; }
.qg-card__price { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; }
.qg-price { font-size: 16px; font-weight: 700; color: var(--qg-navy); }
.qg-card--deal .qg-price { color: var(--qg-red); }
.qg-price__was { font-size: 11px; color: #9ca3af; }
.qg-cart-btn.button { flex: none; width: 30px; height: 28px; padding: 0; border-radius: 6px; background: var(--qg-cart); font-size: 17px; }
.qg-cart-btn.button:hover { background: var(--qg-action); }
.qg-cart-btn.loading { opacity: .6; }
.qg-cart-btn.added::after { content: none; }
.qg .added_to_cart { display: none; }
.qg-stars { position: relative; display: inline-block; width: 62px; height: 12px; background: linear-gradient(90deg, #d7dbe2 0 100%); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 12'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6 .5l1.7 3.5 3.8.5-2.8 2.7.7 3.8L6 9.2 2.6 11l.7-3.8L.5 4.5l3.8-.5z'/%3E%3Cuse href='%23s' x='12.6'/%3E%3Cuse href='%23s' x='25.2'/%3E%3Cuse href='%23s' x='37.8'/%3E%3Cuse href='%23s' x='50.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 62 12'%3E%3Cg fill='%23000'%3E%3Cpath id='s' d='M6 .5l1.7 3.5 3.8.5-2.8 2.7.7 3.8L6 9.2 2.6 11l.7-3.8L.5 4.5l3.8-.5z'/%3E%3Cuse href='%23s' x='12.6'/%3E%3Cuse href='%23s' x='25.2'/%3E%3Cuse href='%23s' x='37.8'/%3E%3Cuse href='%23s' x='50.4'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat; }
.qg-stars__fill { position: absolute; inset: 0 auto 0 0; background: var(--qg-star); }

.qg-deals { display: grid; gap: 10px; margin: 12px 0; }
.qg-deal { display: block; border-radius: 10px; overflow: hidden; transition: transform .15s ease, box-shadow .15s ease; }
.qg-deal__img { width: 100%; }

.qg-row--cats { grid-auto-columns: 84px; }
.qg-cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.qg-cat__media { width: 100%; aspect-ratio: 30 / 27; background: #f3f5f8; border-radius: 10px; overflow: hidden; display: flex; }
.qg-cat__img { width: 100%; height: 100%; object-fit: cover; }
.qg-cat__label { font-size: 11.5px; line-height: 1.2; color: #273449; }
.qg-cat:hover .qg-cat__label { color: var(--qg-action); }
.qg-row--sellers { grid-auto-columns: minmax(150px, 44vw); }
.qg-seller { display: grid; grid-template-columns: 1fr auto; border: 1px solid #eef2f7; border-radius: 10px; overflow: hidden; background: #fff; }
.qg-seller__media { grid-column: 1 / -1; aspect-ratio: 58 / 21; overflow: hidden; }
.qg-seller__img { width: 100%; height: 100%; object-fit: cover; }
.qg-seller__body { padding: 5px 8px 7px; display: flex; flex-direction: column; line-height: 1.2; }
.qg-seller__body strong { font-size: 12.5px; color: var(--qg-navy); }
.qg-seller__body small { font-size: 11px; color: var(--qg-muted); }
.qg-seller__check { align-self: center; margin-right: 8px; width: 18px; height: 18px; border-radius: 50%; background: var(--qg-action); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; }

/* ---------- Inner pages ---------- */
.qg-main { padding-top: 16px; padding-bottom: 40px; }
.qg-panel { background: #fff; border: 1px solid var(--qg-line); border-radius: 12px; padding: 20px; }
.qg-page__title, .qg .woocommerce-products-header__title, .qg .product_title { font-size: 26px; font-weight: 800; color: var(--qg-navy); margin: 0 0 12px; }
.qg-content { font-size: 15px; }
.qg-content a { color: var(--qg-action); text-decoration: underline; }
.qg-crumbs { font-size: 13px; color: var(--qg-muted); margin-bottom: 10px; }
.qg-crumbs a { color: var(--qg-action); }
.qg-crumb-sep { margin: 0 6px; color: #cbd5e1; }
.qg-empty { color: var(--qg-muted); }
.qg-list li { padding: 6px 0; border-bottom: 1px solid var(--qg-line); }

.qg-woo .woocommerce-products-header { margin-bottom: 4px; }
.qg-woo .term-description { color: var(--qg-muted); }
.qg .woocommerce-result-count { color: var(--qg-muted); font-size: 13px; margin: 8px 0 12px; }
.qg .woocommerce-ordering select { border: 1px solid var(--qg-line); border-radius: 8px; padding: 7px 10px; font: 500 13px var(--qg-font); background: #fff; }
.qg ul.products, .qg-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin: 0 0 24px !important; padding: 0; clear: both; }
.qg ul.products::before, .qg ul.products::after { content: none !important; }
.qg ul.products > li.qg-card { width: auto !important; margin: 0 !important; float: none !important; }
.qg .woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; border: 0 !important; }
.qg .woocommerce-pagination ul li { border: 0 !important; }
.qg .woocommerce-pagination .page-numbers { display: inline-flex; min-width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--qg-line); background: #fff; }
.qg .woocommerce-pagination .current { background: var(--qg-action) !important; color: #fff !important; border-color: var(--qg-action); }

/* Product page */
.qg.single-product .qg-woo div.product { background: #fff; border: 1px solid var(--qg-line); border-radius: 12px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.qg.single-product div.product .woocommerce-product-gallery, .qg.single-product div.product .summary { width: auto !important; float: none !important; margin: 0 !important; }
.qg.single-product div.product .woocommerce-tabs, .qg.single-product div.product .related, .qg.single-product div.product .upsells { grid-column: 1 / -1; }
.qg.single-product div.product p.price, .qg.single-product div.product span.price { color: var(--qg-navy); font-size: 26px; font-weight: 800; }
.qg.single-product div.product p.price del, .qg.single-product div.product span.price del { color: #9ca3af; font-size: 16px; font-weight: 500; }
.qg.single-product div.product p.price ins { text-decoration: none; color: var(--qg-red); }
.qg .woocommerce-product-rating .star-rating span::before, .qg .star-rating span::before { color: var(--qg-star); }
.qg .quantity .qty { width: 72px; height: 44px; border: 1px solid #cbd5e1; border-radius: 8px; font: 600 15px var(--qg-font); text-align: center; }
.qg .single_add_to_cart_button.button { height: 44px; padding: 0 26px; font-size: 15px; }
.qg .variations select { border: 1px solid #cbd5e1; border-radius: 8px; padding: 8px 10px; font: 500 14px var(--qg-font); min-width: 180px; }
.qg .variations th, .qg .variations td { padding: 6px 8px 6px 0; text-align: left; }
.qg-wish { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid #cbd5e1; border-radius: 8px; padding: 9px 14px; font: 600 14px var(--qg-font); color: var(--qg-navy); cursor: pointer; }
.qg-wish .qg-icon { font-size: 18px; color: var(--qg-red); }
.qg-wish.is-on .qg-icon { fill: var(--qg-red); }
.qg-wish.is-on .qg-wish__label::after { content: ' \2713'; }
.qg-wish--small { margin: 0; padding: 4px; width: 30px; height: 28px; justify-content: center; color: var(--qg-red); }
.qg-wish--small .qg-icon { width: 16px; height: 16px; }
.qg .woocommerce-tabs ul.tabs { padding: 0 !important; margin: 0 0 12px !important; display: flex; gap: 6px; border-bottom: 1px solid var(--qg-line); }
.qg .woocommerce-tabs ul.tabs::before, .qg .woocommerce-tabs ul.tabs li::before, .qg .woocommerce-tabs ul.tabs li::after { display: none !important; }
.qg .woocommerce-tabs ul.tabs li { background: none !important; border: 0 !important; margin: 0 !important; padding: 0 !important; }
.qg .woocommerce-tabs ul.tabs li a { display: block; padding: 10px 14px !important; font-weight: 600; color: var(--qg-muted) !important; }
.qg .woocommerce-tabs ul.tabs li.active a { color: var(--qg-blue) !important; box-shadow: inset 0 -3px 0 var(--qg-blue); }
.qg .related > h2, .qg .upsells > h2 { font-size: 18px; margin: 10px 0 12px; }
.qg span.onsale, .qg .qg-onsale { background: var(--qg-red) !important; color: #fff; border-radius: 999px !important; min-height: 0 !important; min-width: 0 !important; line-height: 1 !important; padding: 6px 10px !important; font-size: 12px; font-weight: 700; top: 10px !important; left: 10px !important; right: auto !important; margin: 0 !important; }

/* Notices, cart, checkout, account */
.qg .woocommerce-message, .qg .woocommerce-info, .qg .woocommerce-error { border-radius: 10px; border-top-width: 3px; background: #f8fafc; }
.qg .woocommerce-message, .qg .woocommerce-info { border-top-color: var(--qg-action); }
.qg .woocommerce-message::before, .qg .woocommerce-info::before { color: var(--qg-action); }
.qg-page--woo .qg-panel { padding: 20px 24px; }
.qg .woocommerce-MyAccount-navigation ul { display: grid; gap: 4px; }
.qg .woocommerce-MyAccount-navigation a { display: block; padding: 9px 12px; border-radius: 8px; font-weight: 500; }
.qg .woocommerce-MyAccount-navigation .is-active a, .qg .woocommerce-MyAccount-navigation a:hover { background: var(--qg-nav-active); color: var(--qg-blue); }
.qg .woocommerce form .form-row input.input-text, .qg .woocommerce form .form-row textarea, .qg input[type=text], .qg input[type=email], .qg input[type=password], .qg input[type=tel] { border: 1px solid #cbd5e1; border-radius: 8px; padding: 10px 12px; font: 400 15px var(--qg-font); }
.qg .track_order { max-width: 520px; }

/* ---------- Footer (no gallery reference for this region) ---------- */
.qg-ftr { margin-top: 24px; background: #f2f6fc; border-top: 1px solid var(--qg-line); color: #334155; }
.qg-ftr__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
.qg-ftr__brand .qg-logo__img, .qg-ftr__brand .custom-logo { width: 220px; mix-blend-mode: multiply; }
.qg-ftr__brand p { font-size: 13px; color: var(--qg-muted); max-width: 300px; }
.qg-ftr__col h2 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.qg-ftr__col li { margin: 6px 0; font-size: 13px; }
.qg-ftr__col a:hover, .qg-ftr__base a:hover { color: var(--qg-action); text-decoration: underline; }
.qg-ftr__base { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; padding-bottom: 70px; border-top: 1px solid var(--qg-line); font-size: 12.5px; color: var(--qg-muted); }

/* ---------- Desktop: the gallery image's own proportions ---------- */
@media (min-width: 1100px) {
  .qg { --u: calc(min(var(--qg-vw, 100vw), 1440px) / 836); overflow-x: clip; }
  .qg-wrap { padding: 0; width: calc(836 * var(--u)); max-width: none; }

  .qg-hdr__inner { min-height: calc(var(--g-hdr-h, 41) * var(--u)); gap: 0; padding-left: calc(14 * var(--u)); }
  .qg-hdr__brand { width: calc(194 * var(--u)); }
  .qg-logo__img, .custom-logo { width: calc(194 * var(--u)); max-height: calc((var(--g-hdr-h, 41) - 1) * var(--u)); object-fit: contain; object-position: left center; }
  .qg-hdr .qg-search { flex: none; margin-left: calc(17 * var(--u)); width: calc(385 * var(--u)); height: calc(22 * var(--u)); padding-left: calc(9 * var(--u)); }
  .qg-search__lead { font-size: calc(10 * var(--u)); }
  .qg-search__field { font-size: max(12px, calc(5.4 * var(--u))); }
  .qg-search__cat select { font-size: max(11.5px, calc(5.2 * var(--u))); }
  .qg-search__btn { width: calc(30 * var(--u)); font-size: calc(10 * var(--u)); border-radius: calc(6 * var(--u)); margin: 0 0 0 calc(4 * var(--u)); }
  .qg-hdr__actions { margin-left: calc(27 * var(--u)); gap: calc(14 * var(--u)); }
  .qg-hdr__action { gap: calc(5 * var(--u)); }
  .qg-hdr__icon { font-size: calc(19 * var(--u)); }
  .qg-hdr__text strong { font-size: max(12px, calc(6.4 * var(--u))); }
  .qg-hdr__text small { font-size: max(11px, calc(5.2 * var(--u))); }
  .qg-hdr__count { top: calc(-4 * var(--u)); right: calc(-5 * var(--u)); }

  /*
   * Homepage grid. Every --g-* value is in gallery units; the defaults are the
   * Original's. A seasonal preset sets its own measured values on .qg-home
   * (qg_preset_style()), so each season keeps its image's proportions.
   */
  .qg-home { padding-top: calc(var(--g-top, 2) * var(--u)); }
  .qg-home__top {
    padding-left: calc(var(--g-nav-x, 7) * var(--u));
    grid-template-columns:
      calc(var(--g-nav-w, 118) * var(--u))
      calc((var(--g-hero-x, 131) - var(--g-nav-x, 7) - var(--g-nav-w, 118)) * var(--u))
      calc(var(--g-hero-w, 539) * var(--u))
      calc((var(--g-tiles-x, 676) - var(--g-hero-x, 131) - var(--g-hero-w, 539)) * var(--u))
      calc(var(--g-tiles-w, 154) * var(--u));
    grid-template-rows: calc(var(--g-hero-h, 170) * var(--u)) calc(var(--g-quick-h, 24) * var(--u)) minmax(calc(var(--g-trend-h, 119) * var(--u)), auto);
    gap: 0;
  }
  .qg-home__nav { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .qg-hero { grid-column: 3; grid-row: 1; border-radius: calc(5 * var(--u)); }
  .qg-hero__img { height: 100%; object-fit: cover; }
  .qg-layout-wide-hero .qg-hero { grid-column: 3 / -1; }
  /* New Year's gallery image draws the category menu on a black panel */
  .qg-preset-new-year .qg-home__nav { background: #141414; border-radius: calc(4 * var(--u)); padding: calc(3 * var(--u)) 0; }
  .qg-preset-new-year .qg-catnav__item a, .qg-preset-new-year .qg-catnav__item .qg-icon { color: #f5f5f5; }
  .qg-preset-new-year .qg-catnav__item.is-all a, .qg-preset-new-year .qg-catnav__item a:hover { background: #2a2a2a; color: #f2c14e; }
  .qg-promos { grid-column: 5; grid-row: 1; grid-template-rows: var(--g-tile-rows, 51fr 57fr 51fr); gap: calc(var(--g-tile-gap, 5) * var(--u)); }
  .qg-promos { align-self: start; margin-top: calc(var(--g-tiles-top, 0) * var(--u)); height: calc(var(--g-tiles-h, var(--g-hero-h, 170)) * var(--u)); }
  .qg-tiles-tall .qg-quick { grid-column: 3; }
  .qg-promo { border-radius: calc(4 * var(--u)); }
  .qg-promo__img { height: 100%; object-fit: cover; }
  /* wide-hero designs (New Year, Valentine's): category circles under the hero */
  .qg-circles { grid-column: 3 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(var(--g-circles, 10), 1fr); align-items: start; padding: calc(2 * var(--u)) calc(4 * var(--u)) 0; }
  .qg-circles a { display: flex; flex-direction: column; align-items: center; gap: calc(1.5 * var(--u)); text-align: center; font-size: max(10px, calc(4.4 * var(--u))); line-height: 1.15; color: #273449; }
  .qg-circles img { width: calc(30 * var(--u)); height: calc(30 * var(--u)); border-radius: 50%; object-fit: cover; }
  .qg-circles a:hover { color: var(--qg-action); }
  .qg-quick { grid-column: 3 / -1; grid-row: 2; align-self: center; justify-content: space-between; overflow: visible; padding: 0 calc(18 * var(--u)) 0 calc(20 * var(--u)); gap: 0; }
  .qg-quick a { padding: calc(2 * var(--u)) calc(3 * var(--u)); gap: calc(4 * var(--u)); font-size: max(11px, calc(5 * var(--u))); }
  .qg-quick__icon { width: calc(13 * var(--u)); height: calc(13 * var(--u)); }
  .qg-trending { grid-column: 3 / -1; grid-row: 3; }

  .qg-catnav--home .qg-catnav__item a { padding: 0 calc(5 * var(--u)); gap: calc(6 * var(--u)); border-radius: calc(5 * var(--u)); font-size: max(10.5px, calc(5.9 * var(--u))); height: calc(var(--g-nav-item, 19.1) * var(--u)); white-space: nowrap; }
  .qg-catnav--home .qg-catnav__icon { width: calc(14 * var(--u)); height: calc(14 * var(--u)); }
  .qg-catnav__item .qg-icon { font-size: calc(6 * var(--u)); }

  .qg-sec { border-radius: calc(5 * var(--u)); padding: calc(4 * var(--u)) calc(7 * var(--u)) calc(4 * var(--u)); }
  .qg-sec__head { margin-bottom: calc(3 * var(--u)); }
  .qg-sec__title, .qg-sec__sub { line-height: 1.15; }
  .qg-sec__title { gap: calc(4 * var(--u)); font-size: max(14px, calc(8.2 * var(--u))); }
  .qg-sec__icon { width: calc(11 * var(--u)); height: calc(11 * var(--u)); }
  .qg-sec__sub { font-size: max(10px, calc(5 * var(--u))); padding-left: calc(15 * var(--u)); margin: 0; }
  .qg-sec__more { font-size: max(11px, calc(5 * var(--u))); }

  .qg-row { overflow: visible; grid-auto-flow: row; }
  .qg-row--cards { grid-template-columns: repeat(var(--g-cards, 8), minmax(0, 1fr)); gap: calc(5 * var(--u)); }
  .qg-card { border-radius: calc(4 * var(--u)); padding: calc(1.5 * var(--u)) calc(2.5 * var(--u)) calc(2.5 * var(--u)); }
  .qg-home .qg-card__media { aspect-ratio: auto; height: calc(var(--g-card-img, 45.4) * var(--u)); }
  .qg-home .qg-card__title { font-size: max(10.5px, calc(5.4 * var(--u))); line-height: 1.2; margin: calc(1 * var(--u)) 0 0; min-height: 0; height: calc(15 * var(--u)); }
  .qg-home .qg-card__rating { font-size: max(10px, calc(4.4 * var(--u))); min-height: 0; height: calc(7 * var(--u)); }
  .qg-home .qg-card__foot { height: calc(14 * var(--u)); padding-top: 0; align-items: center; }
  .qg-stars { width: calc(30 * var(--u)); height: calc(5.8 * var(--u)); }
  .qg-price { font-size: max(12px, calc(7.2 * var(--u))); line-height: 1.1; }
  .qg-price__was { font-size: max(10px, calc(4.6 * var(--u))); }
  .qg-cart-btn.button { width: calc(15 * var(--u)); height: calc(14 * var(--u)); border-radius: calc(3 * var(--u)); font-size: calc(8.5 * var(--u)); }
  .qg-card__badge { font-size: max(10px, calc(4.6 * var(--u))); }

  .qg-deals {
    grid-template-columns: var(--g-deal-cols, 206fr 205fr 197fr 190fr);
    gap: calc(var(--g-deal-gap, 5.5) * var(--u));
    margin: calc(var(--g-deals-mt, 4) * var(--u)) calc(var(--g-deals-mr, 12) * var(--u)) 0 calc(var(--g-deals-ml, 12) * var(--u));
  }
  .qg-deal { border-radius: calc(4 * var(--u)); }

  .qg-home__lower {
    margin-top: calc(var(--g-lower-mt, 2) * var(--u));
    grid-template-columns: calc(var(--g-feat-w, 464) * var(--u)) calc(var(--g-sell-w, 356) * var(--u));
    gap: calc(var(--g-lower-gap, 4) * var(--u));
    padding-left: calc(6 * var(--u));
  }
  .qg-row--cats { grid-template-columns: repeat(13, 1fr); gap: calc(5 * var(--u)); }
  .qg-cat { gap: calc(2.5 * var(--u)); }
  .qg-cat__media { border-radius: calc(4 * var(--u)); }
  .qg-cat__label { font-size: max(10px, calc(4.3 * var(--u))); }
  .qg-row--sellers { grid-template-columns: repeat(5, 1fr); gap: calc(5 * var(--u)); }
  .qg-seller { border-radius: calc(4 * var(--u)); }
  .qg-seller__body { padding: calc(2 * var(--u)) calc(3 * var(--u)) calc(3 * var(--u)); }
  .qg-seller__body strong { font-size: max(11px, calc(5 * var(--u))); }
  .qg-seller__body small { font-size: max(10px, calc(4.3 * var(--u))); }
  .qg-seller__check { width: calc(7 * var(--u)); height: calc(7 * var(--u)); font-size: calc(5 * var(--u)); margin-right: calc(3 * var(--u)); }

  .qg-main:not(.qg-home) { padding-left: calc(7 * var(--u)); padding-right: calc(6 * var(--u)); }
  .qg-ftr__inner, .qg-ftr__base { padding-left: calc(14 * var(--u)); padding-right: calc(14 * var(--u)); }
}

/* ---------- Tablet and phone ---------- */
@media (max-width: 1099px) {
  .qg-hdr__inner { flex-wrap: wrap; gap: 8px 10px; padding-top: 8px; padding-bottom: 10px; }
  .qg-hdr__menu { display: flex; }
  .qg-hdr__brand { flex: 1; }
  .qg-logo__img, .custom-logo { width: 190px; }
  .qg-hdr .qg-search { order: 10; flex-basis: 100%; }
  .qg-hdr__actions { gap: 14px; }
  .qg-hdr__text { display: none; }
  .qg-hdr__icon { font-size: 26px; }
  .qg-home__nav { display: none; }
  .qg-promos { grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); overflow-x: auto; scroll-snap-type: x mandatory; }
  .qg-hdr__inner > * { min-width: 0; }
  body.qg { overflow-x: hidden; }
  .qg-promo { scroll-snap-align: start; }
  .qg-deals { grid-template-columns: 1fr 1fr; }
  .qg.single-product .qg-woo div.product { grid-template-columns: 1fr; padding: 14px; }
  .qg-ftr__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  /* on phones the note sits above the header instead of floating over forms */
  .qg-sample-notice { position: static; max-width: none; border-radius: 0; box-shadow: none; text-align: center; }
  .qg-logo__img, .custom-logo { width: 150px; }
  .qg-search__cat { display: none; }
  .qg-deals { grid-template-columns: 1fr; }
  .qg ul.products, .qg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .qg-page__title, .qg .woocommerce-products-header__title, .qg .product_title { font-size: 22px; }
  .qg-panel, .qg-page--woo .qg-panel { padding: 14px; }
  .qg-ftr__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .qg-promo, .qg-deal { transition: none; }
}

/* Held artwork outside a preview (inc/artwork.php): the site name and the hero's own words, no picture. */
.qg-logo--text { font-weight: 800; font-size: 28px; line-height: 1; color: var(--qg-blue); text-decoration: none; letter-spacing: -.5px; }
.qg-hero__link--text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; height: 100%; min-height: 200px; padding: 24px 6%; text-decoration: none; }
.qg-hero__text { color: var(--qg-navy); font-weight: 700; font-size: clamp(18px, 2.2vw, 30px); line-height: 1.25; max-width: 30ch; }
.qg-hero__btn { background: var(--qg-action); color: #fff; font-weight: 600; padding: 9px 18px; border-radius: 999px; }

/* Artwork review page (preview environments only) */
.qg-art { padding: 20px 0 60px; }
.qg-art h1 { font-size: 28px; margin-bottom: 8px; }
.qg-art h2 { font-size: 22px; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.qg-art h3 { font-size: 16px; margin: 22px 0 8px; }
.qg-art p { max-width: 80ch; }
.qg-art__intro, .qg-art__together, .qg-art__asset, .qg-art__approved { background: #fff; border: 1px solid var(--qg-line); border-radius: 12px; padding: 18px 20px; margin-bottom: 18px; }
.qg-art__status-line { font-weight: 600; color: #8a4b00; }
.qg-art__notice { background: #ecfdf3; border: 1px solid #a6e3bd; border-radius: 8px; padding: 8px 12px; }
.qg-art__notice.is-warn { background: #fff7e6; border-color: #f5c56b; }
.qg-art__toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.qg-art__toc a { color: var(--qg-action); font-weight: 600; }
.qg-art__hint { color: var(--qg-muted); font-size: 13px; }
.qg-art__pill { font-size: 12px; font-weight: 700; letter-spacing: .4px; padding: 3px 9px; border-radius: 999px; background: #fff1d6; color: #8a4b00; border: 1px solid #f5c56b; }
.qg-art__pill.is-locked { background: #fde8ea; color: #9b1c2e; border-color: #f3a5b0; }
.qg-art__decided { color: var(--qg-muted); font-size: 13px; margin: 0; }
.qg-art__row { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.qg-art__cell { min-width: 0; max-width: 100%; }
.qg-art__cell h3 { margin-top: 0; }
.qg-art__file, .qg-art__ref { margin: 0 0 12px; max-width: 100%; }
.qg-art__file img, .qg-art__ref img { display: block; max-width: 100%; height: auto; background: repeating-conic-gradient(#eef1f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--qg-line); }
.qg-art__frame { position: relative; display: inline-block; max-width: 100%; }
.qg-art__box { position: absolute; border: 2px solid #f5730c; box-shadow: 0 0 0 1px #fff; pointer-events: none; }
.qg-art__box.is-slice { border-color: #0560c8; border-style: dashed; }
.qg-art__ref.is-approved img { max-height: 70vh; width: auto; }
.qg-art__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; margin: 8px 0 0; font-size: 13px; }
.qg-art__facts dt { color: var(--qg-muted); font-weight: 600; }
.qg-art__facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.qg-art__facts code, .qg-art__others code { font-size: 12px; word-break: break-all; }
.qg-art__ok { color: #12703b; font-weight: 600; }
.qg-art__bad { color: #b42318; font-weight: 600; }
.qg-art__diffs { margin: 0 0 12px; padding-left: 20px; }
.qg-art__diffs li { margin-bottom: 4px; }
.qg-art__compare { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.qg-art__compare-item { flex: 1 1 200px; min-width: 0; max-width: 320px; display: flex; flex-direction: column; gap: 6px; border: 2px solid #f5c56b; border-radius: 10px; padding: 8px; background: var(--qg-soft); }
.qg-art__compare-item.is-approved { border-color: #7bc79a; }
.qg-art__compare-item span { font-size: 12px; font-weight: 600; color: var(--qg-ink); }
.qg-art__compare-item img { width: 100%; height: 200px; object-fit: contain; background: #fff; border-radius: 6px; }
.qg-art__home { width: 100%; height: 560px; border: 1px solid var(--qg-line); border-radius: 10px; background: #fff; }
.qg-art__others summary { cursor: pointer; font-weight: 600; color: var(--qg-action); margin-top: 14px; }
.qg-art__others ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.qg-art__others li { font-size: 12px; min-width: 0; }
.qg-art__others img { display: block; width: 100%; height: 90px; object-fit: contain; background: var(--qg-soft); border-radius: 6px; margin-bottom: 4px; }
.qg-art__control { border: 1px dashed #f5c56b; border-radius: 10px; padding: 12px 14px; background: #fffbf2; }
.qg-art__control fieldset { border: 0; padding: 0; margin: 0; }
.qg-art__control.is-locked { border-color: #f3a5b0; background: #fff5f6; }
.qg-art__confirm { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0 10px; }
.qg-art__approve, .qg-art__hold { font: 600 14px var(--qg-font); border-radius: 999px; padding: 8px 16px; border: 1px solid var(--qg-action); cursor: pointer; margin: 0 8px 6px 0; }
.qg-art__approve { background: var(--qg-action); color: #fff; }
.qg-art__hold { background: #fff; color: var(--qg-action); }
.qg-art__control fieldset[disabled] .qg-art__approve { background: #9aa5b5; border-color: #9aa5b5; cursor: not-allowed; }
@media (max-width: 600px) {
  .qg-art__intro, .qg-art__together, .qg-art__asset, .qg-art__approved { padding: 14px 12px; }
  .qg-art__facts { grid-template-columns: minmax(0, 1fr); }
  .qg-art__home { height: 420px; }
  .qg-art__compare-item { max-width: none; }
}

/* ---------- Brand-corrected preview (inc/brand.php) ---------- */
.qg-preview-flag--brand { background: #0b3d91; }
.qg-preview-flag--brand a { color: #fff; text-decoration: underline; margin-left: 6px; }
.qg-bc-hero { position: relative; display: flex; align-items: center; justify-content: flex-start; height: 100%; min-height: 190px; padding: 0 5%; overflow: hidden; text-decoration: none;
  background: linear-gradient(160deg, var(--bc-from), var(--bc-to)); color: var(--bc-text); }
.qg-bc-hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; flex: 1 1 auto; }
.qg-bc-hero.has-left { padding-left: 33%; }
.qg-bc-hero.has-right { padding-right: 33%; }
.qg-bc-hero.has-two { padding-left: 27%; padding-right: 27%; }
.qg-bc-hero__title { color: var(--bc-head); font-weight: 800; font-size: clamp(20px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.5px; }
.qg-bc-hero__sub { font-size: clamp(12px, 1.25vw, 17px); font-weight: 500; line-height: 1.35; max-width: 42ch; }
.qg-bc-hero__btn { background: var(--bc-cta-bg); color: var(--bc-cta-text); font-weight: 700; font-size: clamp(12px, 1.1vw, 15px); padding: 8px 18px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
/* positioned, so the duck's height follows the banner's height instead of the PNG's own */
.qg .qg-bc-duck { position: absolute; bottom: 5%; height: 90%; width: 29%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 10px rgba(0,0,0,.18)); }
.qg .qg-bc-duck.is-left { left: 2%; }
.qg .qg-bc-duck.is-right { right: 2%; }
.qg .qg-bc-hero.has-two .qg-bc-duck { width: 24%; }
.qg a.qg-bc-hero, .qg a.qg-bc-hero:hover { color: var(--bc-text); }
@media (min-width: 1100px) {
  .qg-bc-hero { border-radius: inherit; min-height: 0; }
  .qg-bc-hero__title { font-size: calc(21 * var(--u)); }
  .qg-layout-wide-hero .qg-bc-hero__title { font-size: calc(24 * var(--u)); }
  .qg-bc-hero__sub { font-size: max(12px, calc(7.2 * var(--u))); }
  .qg-bc-hero__btn { font-size: max(12px, calc(6.4 * var(--u))); padding: calc(4 * var(--u)) calc(10 * var(--u)); }
  .qg-bc-hero__copy { gap: calc(5 * var(--u)); }
}
@media (max-width: 600px) {
  .qg-bc-hero, .qg-bc-hero.has-two, .qg-bc-hero.has-right { min-height: 200px; padding: 14px 36% 14px 14px; }
  .qg-bc-hero.has-left { padding: 14px 14px 14px 36%; }
  .qg .qg-bc-duck { height: 70%; width: 33%; }
  .qg .qg-bc-hero.has-two .qg-bc-duck { width: 33%; }
  .qg .qg-bc-hero.has-two .qg-bc-duck.is-left { display: none; }
}

/* side-by-side page */
.qg-bc-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.qg-bc-asset { margin: 0; min-width: 0; }
.qg .qg-bc-asset__img { display: block; max-width: 100%; height: 160px; width: auto; object-fit: contain; background: repeating-conic-gradient(#eef1f5 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--qg-line); }
.qg-bc-cmp__top { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 18px; align-items: start; }
.qg-bc-cmp__top .qg-art__ref img { max-width: min(100%, 700px); }
.qg-bc-cmp__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.qg-bc-cmp__frame { margin: 0; min-width: 0; }
.qg-bc-cmp__frame figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.qg-bc-cmp__frame.is-corrected figcaption strong { color: #0b3d91; }
.qg-bc-scaler { --bc-s: .45; position: relative; width: 100%; height: calc(1000px * var(--bc-s)); overflow: hidden; border: 1px solid var(--qg-line); border-radius: 8px; background: #fff; }
.qg-bc-scaler iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 1000px; border: 0; transform: scale(var(--bc-s)); transform-origin: 0 0; }
@media (max-width: 900px) {
  .qg-bc-cmp__top, .qg-bc-cmp__pair { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Sharp rendering (inc/sharp.php): words and icons as HTML, no enlarged crops ---------- */
.qg-glyph { display: inline-flex; align-items: center; justify-content: center; flex: none; line-height: 1;
  font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; }
.qg-catnav__icon.qg-glyph { font-size: 17px; }
.qg-quick__icon.qg-glyph { font-size: 19px; }
.qg-sec__icon.qg-glyph { font-size: 19px; }
.qg-card__badge-icon.qg-glyph { font-size: 11px; width: auto; height: auto; }
.qg-glyph--tile { width: 100%; height: 100%; background: linear-gradient(160deg, #f6f8fc, #e8eef8); }
.qg-cat__media .qg-glyph--tile { font-size: clamp(26px, 6vw, 44px); }
.qg-seller__media .qg-glyph--tile { font-size: 30px; }
.qg-circles .qg-glyph--tile { width: 56px; height: 56px; border-radius: 50%; font-size: 26px; }
.qg-logo--text { display: inline-block; font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.8px; color: var(--qg-blue); text-decoration: none; white-space: nowrap; }
.qg-ftr__brand .qg-logo--text { font-size: 28px; }

.qg-st { position: relative; display: flex; align-items: center; aspect-ratio: var(--st-ratio); padding: 4% 30% 4% 6%; overflow: hidden; border-radius: 10px; text-decoration: none;
  background: linear-gradient(100deg, var(--st-base) 0%, var(--st-base) 45%, var(--st-bg) 100%); color: var(--st-text); }
.qg a.qg-st, .qg a.qg-st:hover { color: var(--st-text); }
.qg-st__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.qg-st__title { font-weight: 800; font-size: 16px; line-height: 1.08; letter-spacing: -.2px; }
.qg-st__text { font-size: 11.5px; line-height: 1.25; opacity: .92; }
.qg-st__btn { margin-top: 2px; background: var(--st-cta, #0560c8); color: var(--st-cta-text, #fff); font-weight: 700; font-size: 11px; line-height: 1.2; padding: 3px 10px; border-radius: 999px; }
.qg-st__glyph { position: absolute; right: 5%; top: 50%; transform: translateY(-50%); font-size: clamp(30px, 5.5vw, 58px); filter: drop-shadow(0 3px 6px rgba(0,0,0,.18)); }
/* approved duck in the brand-corrected preview, positioned so its height follows the tile; capped at its 2x-sharp size */
.qg .qg-st__duck { position: absolute; right: 4%; top: 6%; height: 88%; width: 26%; max-width: 98px; object-fit: contain; object-position: right center; }
/* approved ducks in the brand-corrected hero: never drawn larger than half their pixels (sharp on 2x screens) */
.qg .qg-bc-duck { max-width: 330px; }
.qg .qg-bc-duck[src*="duck-thumb"] { max-width: 195px; }
@media (min-width: 1100px) {
  .qg-promos .qg-st { aspect-ratio: auto; height: 100%; }
  .qg-st { border-radius: calc(4 * var(--u)); padding: 0 30% 0 6%; }
  .qg-st__title { font-size: max(12.5px, calc(8 * var(--u))); }
  .qg-promos .qg-st__title { font-size: max(12.5px, calc(8.6 * var(--u))); }
  .qg-st__text, .qg-st__btn { font-size: max(10px, calc(4.9 * var(--u))); }
  .qg-st__btn { padding: calc(1.6 * var(--u)) calc(5.5 * var(--u)); }
  .qg-st__glyph { font-size: calc(24 * var(--u)); }
  .qg-catnav--home .qg-catnav__icon.qg-glyph { font-size: calc(10.5 * var(--u)); }
  .qg-quick__icon.qg-glyph { font-size: calc(10.5 * var(--u)); }
  .qg-sec__icon.qg-glyph { font-size: calc(9.5 * var(--u)); }
  .qg-circles .qg-glyph--tile { width: calc(30 * var(--u)); height: calc(30 * var(--u)); font-size: calc(15 * var(--u)); }
  .qg-cat__media .qg-glyph--tile { font-size: calc(17 * var(--u)); }
  .qg-seller__media .qg-glyph--tile { font-size: calc(11 * var(--u)); }
  .qg-hdr__brand .qg-logo--text { font-size: calc(19 * var(--u)); }
}
.qg-card__nophoto { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; width: 100%; height: 100%; min-height: 90px; background: linear-gradient(160deg, #f6f8fc, #e8eef8); border-radius: 8px; color: var(--qg-muted); }
.qg-card__nophoto .qg-glyph { font-size: 30px; }
.qg-card__nophoto small { font-size: 10.5px; font-weight: 500; }
@media (min-width: 1100px) {
  .qg-home .qg-card__nophoto { min-height: 0; }
  .qg-home .qg-card__nophoto .qg-glyph { font-size: calc(15 * var(--u)); }
}
.qg-nophoto--single { aspect-ratio: 1 / 1; min-height: 0; }
.qg-nophoto--single .qg-glyph { font-size: 72px; }
.qg-nophoto--single small { font-size: 14px; }
.qg-card__media:has(.qg-card__badge) .qg-card__nophoto small { display: none; } /* the badge sits where the label would */
