/* =========================================================
   qbit-polish.css — layout polish layer (loaded after qbit-2026.css)
   ========================================================= */

/* ---------- Home hero ---------- */
/* Breathing room under the fixed header (header ≈145px desktop). */
.slider_big { margin-top: 0; padding-top: 166px; margin-bottom: 8px; }
body { display: flow-root; } /* stop child margins collapsing through body (html bg is navy) */

/* Main slider: slides must fill the whole card (percent-height chain was
   indefinite, leaving a grey strip under the image). */
#splide1 { display: flex; flex-direction: column; border: 0; }
#splide1 .splide__track { flex: 1 1 auto; height: auto; min-height: 0; }
#splide1 .splide__list { height: 100%; align-items: stretch; }
#splide1 .splide__slide { height: auto; align-self: stretch; position: relative; }
#splide1 .splide__slide > a { display: block; height: 100%; }
#splide1 .splide__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Pagination as a pill sitting on the image. */
#splide1 .splide__pagination {
  bottom: 14px; left: 50%; right: auto; transform: translateX(-50%);
  padding: 6px 10px; gap: 6px; border-radius: 999px;
  background: rgba(15, 23, 42, .35); backdrop-filter: blur(6px);
}
#splide1 .splide__pagination__page { margin: 0; width: 7px; height: 7px; background: rgba(255,255,255,.6); opacity: 1; transition: width .25s, background .25s; }
#splide1 .splide__pagination__page.is-active { width: 20px; border-radius: 4px; background: #fff; transform: none; }

/* Side banners: equal halves, exact same top/bottom as the slider. */
@media (min-width: 851px) {
  .qbit_top_right, ul.qbit_top_right_ul { height: auto; align-self: stretch; }
  ul.qbit_top_right_ul { display: flex; flex-direction: column; gap: 16px; margin: 0; }
  ul.qbit_top_right_ul li { flex: 1 1 0; min-height: 0; margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--qb-shadow); }
  ul.qbit_top_right_ul .single-slide-link, ul.qbit_top_right_ul .h_b_img { display: block; height: 100%; }
  ul.qbit_top_right_ul .h_b_img img { width: 100%; height: 100%; object-fit: cover; }
}

@media (max-width: 850px) {
  .slider_big { margin-top: 0; padding-top: 136px; }
}
@media (max-width: 480px) {
  .slider_big { margin-top: 0; padding-top: 132px; }
}

/* Pagination: compact so it doesn't cover banner copy */
#splide1 .splide__pagination { bottom: 10px; padding: 4px 8px; gap: 5px; }
#splide1 .splide__pagination__page { width: 6px; height: 6px; }
#splide1 .splide__pagination__page.is-active { width: 16px; }

/* ---------- Mobile home ---------- */
@media (max-width: 850px) {
  /* Side banners are square artwork: two in a row instead of thin crops */
  .qbit_top_right { width: 100%; height: auto; }
  ul.qbit_top_right_ul { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; height: auto; margin: 0; }
  ul.qbit_top_right_ul li { width: auto !important; height: auto !important; aspect-ratio: 1 / 1; margin: 0 !important; border-radius: 14px; overflow: hidden; }
  ul.qbit_top_right_ul li:only-child { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  ul.qbit_top_right_ul .single-slide-link, ul.qbit_top_right_ul .h_b_img { display: block; width: 100%; height: 100% !important; }
  ul.qbit_top_right_ul .h_b_img img { width: 100%; height: 100% !important; object-fit: cover; }
  #splide1 .splide__pagination { bottom: 6px; padding: 3px 6px; }

  /* Category tiles: 3 per row, compact */
  section.cat_home { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  section.cat_home article.hom_cat_new { height: auto !important; min-height: 0 !important; }
  section.cat_home article.hom_cat_new { padding: 0 !important; }
  section.cat_home a.ripple_cat_home { padding: 12px 4px 10px !important; min-height: 112px; gap: 8px; width: 100%; box-sizing: border-box; }
  section.cat_home a.ripple_cat_home img { width: 52px !important; height: 52px !important; padding: 11px !important; }
  section.cat_home h2.inchvor_cat_home { font-size: 11.5px !important; line-height: 1.3 !important; margin: 0 !important; width: 100%; text-align: center; overflow-wrap: break-word; }
}

/* ---------- Product cards (catalog grid) ---------- */
/* The "line total / qty" echo under the stepper duplicates the price. */
.mec_divv.grid_veiw .price_kg { display: none !important; }

@media (max-width: 850px) {
  /* Two cards per row on phones */
  .mec_divv.grid_veiw { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .mec_divv.grid_veiw .cart_in_part { width: auto !important; min-width: 0; margin: 0 !important; }
  .mec_divv.grid_veiw .cat_grid { width: 100% !important; height: 100%; padding: 10px !important; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; }
  .mec_divv.grid_veiw .image_cart_451 { width: 100% !important; }
  .mec_divv.grid_veiw .pop_nkar_cat { width: 100% !important; }
  .mec_divv.grid_veiw .pop_nkar_cat img { width: 100% !important; height: 120px !important; object-fit: contain; }
  .mec_divv.grid_veiw .hvr__dots { display: none; }
  .mec_divv.grid_veiw .pr_code { font-size: 11px !important; margin: 2px 0 !important; }
  .mec_divv.grid_veiw .pr_single_name { font-size: 12.5px !important; line-height: 1.35 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .mec_divv.grid_veiw .number a { min-height: 0 !important; }
  .mec_divv.grid_veiw .is2 { display: none !important; }
  .mec_divv.grid_veiw .item_stock { margin: 4px 0 0 !important; }
  .mec_divv.grid_veiw .col.cost { margin-top: auto !important; }
  .mec_divv.grid_veiw .for_new_price b { font-size: 16px !important; }
  .mec_divv.grid_veiw .col.quantity { display: none !important; }   /* qty is set in the cart */
  .mec_divv.grid_veiw .sho_hide { display: flex !important; align-items: center; gap: 6px; flex-wrap: nowrap; margin-top: 6px; }
  .mec_divv.grid_veiw .spec452 { flex: 1 1 auto; min-width: 0; margin: 0 !important; }
  .mec_divv.grid_veiw .ad_cart_button { width: 100% !important; height: 38px !important; min-height: 0 !important; padding: 0 6px !important; font-size: 12px !important; border-radius: 10px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mec_divv.grid_veiw .grid_favorite { position: static !important; flex: 0 0 38px; width: 38px !important; height: 38px !important; margin: 0 !important; display: flex !important; align-items: center; justify-content: center; border-radius: 10px; }
  .mec_divv.grid_veiw .grid_favorite img { width: 22px !important; height: 22px !important; }
}
@media (max-width: 850px) {
  .mec_divv.grid_veiw .ad_cart_button { display: flex !important; align-items: center; justify-content: center; }
  .mec_divv.grid_veiw .ad_cart_button .btn-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .mec_divv.grid_veiw .ad_cart_button::before {
    content: ""; width: 22px; height: 22px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.5L22 7H6.2'/%3E%3Cpath d='M13 9v5M10.5 11.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2 3h3l2.6 12.2a2 2 0 0 0 2 1.6h8.2a2 2 0 0 0 2-1.5L22 7H6.2'/%3E%3Cpath d='M13 9v5M10.5 11.5h5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .mec_divv.grid_veiw .ad_cart_button.in_cart { background: #1f9d55 !important; border-color: #1f9d55 !important; color: #fff !important; }
  .mec_divv.grid_veiw .ad_cart_button.in_cart::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  }
  .mec_divv.grid_veiw .pop_nkar_cat img { height: 110px !important; }
}

/* ---------- Product page ---------- */
#prd_content .qeek_count .price_kg { display: none !important; }  /* duplicate price echo */
@media (max-width: 850px) {
  /* Tabs: compact 2×2 segmented control instead of four full-width bars */
  #prd_content .tab-wrap { gap: 8px; }
  #prd_content .tab-wrap > label {
    flex: 0 0 calc(50% - 4px) !important; width: auto !important; max-width: none !important; box-sizing: border-box;
    margin: 0 !important; min-height: 44px; padding: 8px 10px !important; justify-content: center; text-align: center;
    font-size: 13px !important; line-height: 1.25; border-radius: 12px !important;
  }
  #prd_content .tab-wrap > .tab__content { flex: 0 0 100%; width: 100% !important; }
}

/* ---------- Global mobile fix ----------
   overflow-x:hidden on .container silently turns overflow-y into "auto",
   creating hidden inner scroll boxes (checkout form). clip has no such side effect. */
@media (max-width: 850px) {
  .container, .inner { overflow-x: clip !important; overflow-y: visible !important; }
}

/* ---------- Category SEO text: a proper card, readable line length ---------- */
.content_descr {
  box-sizing: border-box; margin: 32px auto 40px !important; padding: 24px 28px !important;
  background: #fff; border: 1px solid #e6ecf2; border-radius: 16px; box-shadow: var(--qb-shadow, 0 2px 10px rgba(15,23,42,.05));
  color: #475569; font-size: 14px; line-height: 1.7;
}
.content_descr > * { max-width: 980px; }
.content_descr p { margin: 0 0 10px; }
.content_descr p:last-child { margin-bottom: 0; }
.content_descr h2, .content_descr h3 { color: #0f2f4a; margin: 16px 0 8px; line-height: 1.3; }
@media (max-width: 850px) {
  .content_descr { margin: 20px 12px 24px !important; padding: 16px !important; font-size: 13.5px; }
}
@media (max-width: 850px) {
  .mec_divv.grid_veiw .pr_code { display: flex !important; align-items: baseline; gap: 4px; white-space: nowrap; overflow: hidden; }
  .mec_divv.grid_veiw .pr_code span { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .mec_divv.grid_veiw .pr_code em { flex: 0 0 auto; }
  .mec_divv.grid_veiw .on_pr_row { display: flex !important; flex-wrap: wrap; align-items: baseline; column-gap: 6px; row-gap: 0; }
  .mec_divv.grid_veiw .for_old_price { font-size: 12px !important; white-space: nowrap; }
  .mec_divv.grid_veiw .for_new_price { white-space: nowrap; }
}

/* ---------- Sub-category tiles: text and picture in their own columns ---------- */
.cat_childes li > a.ripple {
  display: grid !important; grid-template-columns: minmax(0, 1fr) 72px; align-items: center; column-gap: 12px;
  padding: 10px 12px 10px 14px !important; min-height: 76px; box-sizing: border-box; overflow: hidden;
}
.cat_childes li > a.ripple > img.qsc-img {
  grid-column: 2; grid-row: 1; position: static !important; right: auto !important; order: 0 !important;
  width: 72px !important; height: 56px !important; margin: 0 !important; padding: 4px; box-sizing: border-box;
  object-fit: contain; background: #fff; border-radius: 10px; transform: none !important;
}
.cat_childes li > a.ripple > .aaadsas { grid-column: 1; grid-row: 1; min-width: 0; width: auto !important; }
.cat_childes li > a.ripple .inchvor {
  display: -webkit-box !important; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: break-word; hyphens: auto; line-height: 1.3;
}
.cat_childes li > a.ripple:hover > img.qsc-img { transform: scale(1.04) !important; transition: transform .25s; }
@media (max-width: 850px) {
  /* Horizontal strip on phones: picture on top, caption below — nothing overlaps */
  .cat_childes li { flex: 0 0 112px !important; width: 112px !important; min-width: 112px !important; }
  .cat_childes li > a.ripple {
    grid-template-columns: 1fr; grid-template-rows: 56px auto; row-gap: 6px; justify-items: center;
    min-height: 118px; height: 100%; padding: 10px 8px !important; text-align: center;
  }
  .cat_childes li > a.ripple > img.qsc-img { grid-column: 1; grid-row: 1; width: 72px !important; height: 56px !important; }
  .cat_childes li > a.ripple > .aaadsas { grid-column: 1; grid-row: 2; width: 100% !important; justify-content: center; }
  .cat_childes li > a.ripple .inchvor { -webkit-line-clamp: 2; font-size: 12px !important; text-align: center; }
}
/* Dark admin icon with no products to borrow a photo from: neat rounded thumbnail */
.cat_childes li > a.ripple > img.qsc-img[src$="?d=1"] { object-fit: cover; padding: 0; }
.cat_childes li > a.ripple .aaadsas, .cat_childes li > a.ripple .aadd1 { min-width: 0 !important; max-width: 100% !important; }
.cat_childes li > a.ripple .inchvor { overflow-wrap: anywhere; word-break: normal; }
@media (min-width: 851px) {
  .cat_childes li > a.ripple { grid-template-columns: minmax(0, 1fr) 60px; column-gap: 10px; padding: 10px 10px 10px 14px !important; }
  .cat_childes li > a.ripple > img.qsc-img { width: 60px !important; height: 52px !important; padding: 2px; }
  .cat_childes li > a.ripple .inchvor { font-size: 13.5px !important; }
}

/* ---------- Catalog menu: sub-category pictures (product photos on white) ---------- */
img.qsc-menu-img {
  object-fit: contain !important; background: #fff; border-radius: 10px; padding: 3px; box-sizing: border-box;
  filter: none !important; mix-blend-mode: normal !important;
}

/* ---------- Home: "Gifts with your order" promotion ---------- */
.qg-promo {
  display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 24px; align-items: stretch;
  margin: 26px 0 8px; padding: 24px; border-radius: 18px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 0% 0%, #12557f 0%, var(--qb-navy) 45%, var(--qb-navy-deep) 100%);
  color: #fff; box-shadow: var(--qb-shadow);
}
.qg-promo::after { /* soft ribbon glow */
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,74,34,.35), rgba(226,74,34,0) 70%); pointer-events: none;
}
.qg-promo-info { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }
.qg-promo-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.qg-promo-badge { background: var(--qb-orange); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.qg-promo-until { font-size: 12.5px; color: rgba(255,255,255,.75); }
.qg-promo-title { display: flex; align-items: center; gap: 10px; margin: 2px 0 0; font-size: 26px; line-height: 1.2; color: #fff; font-weight: 800; }
.qg-promo-ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.12) center / 22px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.qg-promo-sub { margin: 0; font-size: 15px; line-height: 1.5; color: rgba(255,255,255,.92); }
.qg-promo-sub span { color: rgba(255,255,255,.7); font-size: 13.5px; }
.qg-promo-cta {
  align-self: flex-start; margin-top: 6px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 12px; background: var(--qb-orange); color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none !important;
  transition: background .2s, transform .2s;
}
.qg-promo-cta::after { content: "→"; font-weight: 400; }
.qg-promo-cta:hover { background: var(--qb-orange-deep); transform: translateY(-1px); }
.qg-promo-how { margin: auto 0 0; font-size: 12.5px; color: rgba(255,255,255,.6); }

.qg-promo-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; position: relative; z-index: 1; counter-reset: none; }
.qg-promo-step { background: #fff; color: var(--qb-ink); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 10px; position: relative; min-width: 0; }
.qg-promo-step + .qg-promo-step::before { /* chevron between steps */
  content: ""; position: absolute; left: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-right: 2px solid rgba(255,255,255,.7); border-top: 2px solid rgba(255,255,255,.7); transform: rotate(45deg);
}
.qg-promo-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.qg-promo-step-n { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--qb-muted); }
.qg-promo-step-sum { font-size: 17px; font-weight: 800; color: var(--qb-navy); white-space: nowrap; }
.qg-promo-step-label { font-size: 13px; color: var(--qb-muted); margin-top: -6px; }
.qg-promo-gifts { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 10px; flex: 1 1 auto; align-content: start; }
.qg-promo-gift img, .qg-promo-noimg { max-height: 110px; }
.qg-promo-gift { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.qg-promo-gift img, .qg-promo-noimg { width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; background: #fff; border: 1px solid var(--qb-line); border-radius: 12px; padding: 6px; box-sizing: border-box; }
.qg-promo-gift figcaption { font-size: 11.5px; line-height: 1.3; color: var(--qb-ink); text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; }
.qg-promo-step-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px dashed var(--qb-line); font-size: 12.5px; color: var(--qb-muted); }
.qg-promo-step-foot b { color: #1f9d55; font-weight: 700; }
#catalog { scroll-margin-top: 170px; }

@media (max-width: 1100px) {
  .qg-promo { grid-template-columns: 1fr; }
  .qg-promo-how { margin-top: 0; }
}
@media (max-width: 850px) {
  .qg-promo { margin: 16px 12px 4px; padding: 18px 16px; border-radius: 16px; gap: 16px; }
  .qg-promo-title { font-size: 21px; }
  .qg-promo-sub { font-size: 14px; }
  .qg-promo-steps { grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: none; }
  .qg-promo-steps::-webkit-scrollbar { display: none; }
  .qg-promo-step { scroll-snap-align: start; }
  #catalog { scroll-margin-top: 130px; }
}

/* ---------- Checkout summary: chosen gifts ---------- */
.qg-sum { text-align: left; margin: 6px 0 4px; padding: 10px 12px; border-radius: 12px; background: #f1faf5; border: 1px solid #cfeedd; }
.qg-sum[hidden] { display: none !important; }
.qg-sum-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.qg-sum-row + .qg-sum-row { margin-top: 8px; }
.qg-sum-row img { width: 36px; height: 36px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid #e3efe8; flex: 0 0 36px; }
.qg-sum-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--qb-ink); }
.qg-sum-name small { display: block; color: var(--qb-muted); font-size: 11.5px; }
.qg-sum-free { color: #1f9d55; font-weight: 700; white-space: nowrap; }
.qg-sum-need { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #9a5b00; background: #fff7e6; border-color: #ffe1a6; cursor: pointer; }
.qg-sum.qg-sum-need { background: #fff7e6; border-color: #ffe1a6; }

/* =========================================================
   Home redesign: promotions first
   ========================================================= */
html { scroll-behavior: smooth; }
#home-deals, #home-special, #home-hits, #home-new, #gifts { scroll-margin-top: 170px; }
@media (max-width: 850px) { #home-deals, #home-special, #home-hits, #home-new, #gifts { scroll-margin-top: 120px; } }

/* Promotions hub: 4 tiles */
.qh-hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 24px 0 14px; }
.qh-tile {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 104px; padding: 16px 14px 16px 16px;
  border-radius: 16px; background: #fff; border: 1px solid var(--qb-line); box-shadow: var(--qb-shadow);
  color: var(--qb-ink) !important; text-decoration: none !important; overflow: hidden;
  transition: transform .25s var(--qb-ease), box-shadow .25s var(--qb-ease), border-color .25s;
}
.qh-tile:hover { transform: translateY(-2px); box-shadow: var(--qb-shadow-hover); border-color: #d7dee8; }
.qh-tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--qh-c); }
.qh-tile-ico { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; background: var(--qh-bg) center / 22px no-repeat; }
.qh-tile-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qh-tile-txt b { font-size: 16px; line-height: 1.25; font-weight: 800; color: var(--qb-ink); }
.qh-tile-txt small { font-size: 12.5px; line-height: 1.35; color: var(--qb-muted); }
.qh-tile-img { flex: 0 0 72px; width: 72px; height: 72px; object-fit: contain; transition: transform .35s var(--qb-ease); }
.qh-tile:hover .qh-tile-img { transform: scale(1.06); }
.qh-deals   { --qh-c: var(--qb-orange); --qh-bg: #fdece7; }
.qh-gifts   { --qh-c: #1f9d55; --qh-bg: #e8f6ee; }
.qh-special { --qh-c: #7c3aed; --qh-bg: #f1ebfe; }
.qh-hits    { --qh-c: #f59e0b; --qh-bg: #fef4e2; }
.qh-new     { --qh-c: var(--qb-navy); --qh-bg: #e7f0f7; }
.qh-deals .qh-tile-txt b { color: var(--qb-orange); }
.qh-deals .qh-tile-ico   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e24a22' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.qh-gifts .qh-tile-ico   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9d55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5C11 3 12 8 12 8s1-5 4.5-5a2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E"); }
.qh-special .qh-tile-ico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.7 5.6 6.1.9-4.4 4.3 1 6.1L12 17l-5.4 2.9 1-6.1-4.4-4.3 6.1-.9z'/%3E%3C/svg%3E"); }
.qh-hits .qh-tile-ico    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2c1 4 5 5.5 5 10a5 5 0 0 1-10 0c0-2 1-3.5 2-4.5 0 2 1 3 2 3 0-3-1-5 1-8.5z'/%3E%3C/svg%3E"); }
.qh-new .qh-tile-ico     { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v4M12 17v4M3 12h4M17 12h4M5.6 5.6l2.8 2.8M15.6 15.6l2.8 2.8M18.4 5.6l-2.8 2.8M8.4 15.6l-2.8 2.8'/%3E%3C/svg%3E"); }

/* Service strip */
.qh-usp { list-style: none; margin: 0 0 6px; padding: 12px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  background: #fff; border: 1px solid var(--qb-line); border-radius: 14px; }
.qh-usp li { display: grid; grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.qh-usp li::before { content: ""; grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 10px; background: var(--qb-soft) center / 20px no-repeat; }
.qh-usp b { font-size: 13.5px; color: var(--qb-ink); line-height: 1.3; }
.qh-usp small { font-size: 12px; color: var(--qb-muted); line-height: 1.3; }
.qh-usp-1::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3zM14 9h4l3 3v4h-7'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3C/svg%3E") !important; }
.qh-usp-2::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0 1 14 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") !important; }
.qh-usp-3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M2 10h20M6 15h4'/%3E%3C/svg%3E") !important; }
.qh-usp-4::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e4568' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4 6v6c0 4.5 3.4 8.3 8 9 4.6-.7 8-4.5 8-9V6z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E") !important; }

/* Unified section headers: accent bar + "see all" pill */
.qh-sec .inner { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
.qh-sec .inner_spec h3 { position: relative; padding-left: 14px; margin: 0; font-size: 24px; font-weight: 800; color: var(--qb-ink); }
.qh-sec .inner_spec h3::before { content: ""; position: absolute; left: 0; top: 15%; bottom: 15%; width: 4px; border-radius: 4px; background: var(--qb-orange); }
#home-hits .inner_spec h3::before { background: #f59e0b; }
#home-new .inner_spec h3::before { background: var(--qb-navy); }
#home-special .inner_spec h3::before { background: #7c3aed; }
.qh-sec .inner .button_style { border-radius: 999px !important; padding: 8px 16px !important; font-size: 13px !important; font-weight: 600; }
/* Deals section stands out */
#home-deals { background: linear-gradient(180deg, #fff3ef 0%, rgba(255,243,239,0) 140px); border-radius: 18px; padding-top: 6px; }

@media (max-width: 1100px) {
  .qh-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qh-usp { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .qh-hub { margin: 14px 12px 10px; gap: 10px; }
  .qh-tile { min-height: 0; padding: 12px; gap: 8px; flex-wrap: wrap; align-content: flex-start; border-radius: 14px; }
  .qh-tile-ico { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; background-size: 18px; }
  .qh-tile-img { position: absolute; right: 8px; top: 8px; width: 44px; height: 44px; flex: none; opacity: .95; }
  .qh-tile-txt { flex-basis: 100%; }
  .qh-tile-txt b { font-size: 14px; }
  .qh-tile-txt small { font-size: 11.5px; }
  .qh-usp { margin: 0 12px 6px; padding: 10px 12px; gap: 10px; }
  .qh-usp li { grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; }
  .qh-usp li::before { width: 30px; height: 30px; background-size: 17px; }
  .qh-usp b { font-size: 12px; }
  .qh-usp small { font-size: 11px; }
  .qh-sec .inner_spec h3 { font-size: 19px; }
}
@media (min-width: 1101px) and (max-width: 1360px) {
  .qh-tile { padding: 14px 10px 14px 14px; gap: 10px; }
  .qh-tile-txt b { font-size: 15px; }
  .qh-tile-img { flex-basis: 56px; width: 56px; height: 56px; }
}
@media (max-width: 850px) {
  .qh-usp small { display: none; }
  .qh-usp li { grid-template-rows: auto; }
  .qh-usp li::before { grid-row: 1; }
  .qh-sec .inner { flex-direction: row !important; flex-wrap: nowrap !important; padding: 0 12px !important; }
  .qh-sec .inner .inner_spec { flex: 1 1 auto; min-width: 0; width: auto !important; }
  .qh-sec .inner .button_style { flex: 0 0 auto; margin: 0 !important; width: auto !important; padding: 6px 12px !important; font-size: 12px !important; background: var(--qb-soft) !important; color: var(--qb-navy) !important; border: 0 !important; }
}

/* ---------- Hero: featured product card (iPhone Duo) ---------- */
ul.qbit_top_right_ul li.qf-card {
  position: relative; background: linear-gradient(160deg, #ffffff 0%, #f3f5fa 100%); border: 1px solid var(--qb-line);
  box-shadow: var(--qb-shadow); overflow: hidden; display: block;
}
.qf-link { position: absolute; inset: 0; z-index: 1; }
.qf-body { position: relative; z-index: 2; pointer-events: none; height: 100%; box-sizing: border-box; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px; max-width: 58%; }
.qf-body a, .qf-body button { pointer-events: auto; }
.qf-tags { display: flex; gap: 6px; }
.qf-pct, .qf-new { font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; line-height: 1.2; }
.qf-pct { background: var(--qb-orange); color: #fff; }
.qf-new { background: #e7f0f7; color: var(--qb-navy); }
.qf-name { font-size: 22px; font-weight: 800; color: var(--qb-ink); line-height: 1.15; margin-top: 4px; letter-spacing: -.01em; }
.qf-spec { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--qb-muted); }
.qf-colors { display: inline-flex; gap: 5px; }
.qf-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.18); box-shadow: 0 0 0 2px #fff; }
.qf-dot.on { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--qb-navy); }
.qf-price { margin-top: auto; display: flex; flex-direction: column; }
.qf-price b { font-size: 19px; font-weight: 800; color: var(--qb-ink); white-space: nowrap; }
.qf-price s { font-size: 12.5px; color: #98a2b3; white-space: nowrap; }
.qf-save { font-size: 12px; font-weight: 700; color: #1f9d55; }
.qf-buy { margin-top: 6px; }
.qf-btn { height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--qb-navy); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; transition: background .2s, transform .2s; }
.qf-btn:hover { background: var(--qb-navy-deep); transform: translateY(-1px); }
.qf-btn.in_cart { background: #1f9d55; }
.qf-btn.btn--loading { opacity: .7; }
.qf-img { position: absolute; z-index: 0; right: -6%; bottom: 6%; width: 58%; height: auto; max-height: 84%; object-fit: contain; transition: transform .5s var(--qb-ease); pointer-events: none; }
.qf-card:hover .qf-img { transform: scale(1.05) rotate(-2deg); }

@media (max-width: 850px) {
  ul.qbit_top_right_ul li.qf-card { grid-column: 1 / -1; aspect-ratio: auto !important; min-height: 190px; }
  ul.qbit_top_right_ul li.qf-card ~ li { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
  .qf-body { max-width: 60%; padding: 14px; }
  .qf-name { font-size: 20px; }
  .qf-img { width: 50%; right: -2%; bottom: 8%; }
}
/* compact column layout: photo top-right, price + button across the bottom */
.qf-body { max-width: none; padding: 14px; gap: 3px; }
.qf-tags, .qf-name, .qf-spec { max-width: 54%; }
.qf-name { font-size: 20px; }
.qf-img { right: 4px; top: 10px; bottom: auto; width: 46%; max-height: 62%; }
.qf-price { flex-direction: row; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.qf-price b { font-size: 20px; }
.qf-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.qf-btnwrap { flex: 1 1 auto; }
.qf-btn { width: 100%; height: 38px; }
.qf-save { order: 0; }

/* ---------- Home: catalog block as a marketplace section ---------- */
.container_home_h1 { text-align: left !important; margin: 34px 0 14px !important; padding: 0 !important; }
.container_home_h1 h1 { position: relative; padding-left: 14px; margin: 0 0 4px !important; font-size: 24px !important; line-height: 1.25 !important; font-weight: 800; color: var(--qb-ink); text-align: left !important; }
.container_home_h1 h1::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 4px; border-radius: 4px; background: var(--qb-navy); }
.container_home_h1 p { margin: 0 0 0 14px !important; font-size: 14px !important; color: var(--qb-muted) !important; text-align: left !important; }
@media (min-width: 851px) {
  section.cat_home { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)) !important; gap: 10px !important; }
  section.cat_home article.hom_cat_new { height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; width: auto !important; }
  section.cat_home a.ripple_cat_home { display: flex !important; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; padding: 14px 8px 12px !important; min-height: 118px; height: 100%; box-sizing: border-box; border-radius: 14px; background: #fff; border: 1px solid var(--qb-line); transition: border-color .2s, box-shadow .2s, transform .2s; }
  section.cat_home a.ripple_cat_home:hover { border-color: #cfd8e3; box-shadow: var(--qb-shadow-hover); transform: translateY(-2px); }
  section.cat_home a.ripple_cat_home img { width: 52px !important; height: 52px !important; padding: 10px !important; box-sizing: border-box; border-radius: 14px; }
  section.cat_home h2.inchvor_cat_home { font-size: 12.5px !important; line-height: 1.3 !important; margin: 0 !important; text-align: center; font-weight: 600; color: var(--qb-ink); overflow-wrap: break-word; }
}
.qh-brands { margin-top: 26px !important; }
@media (max-width: 850px) {
  .container_home_h1 { margin: 22px 12px 10px !important; }
  .container_home_h1 h1 { font-size: 19px !important; }
  .container_home_h1 p { font-size: 12.5px !important; }
}
@media (min-width: 851px) {
  section.cat_home { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)) !important; }
  section.cat_home h2.inchvor_cat_home { font-size: 12px !important; overflow-wrap: normal; word-break: normal; hyphens: manual; }
}

/* ---------- About us page: store gallery ---------- */
.qa-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 24px 0 40px; }
.qa-gallery-item { display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--qb-soft); box-shadow: var(--qb-shadow); }
.qa-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--qb-ease); }
.qa-gallery-item:hover img { transform: scale(1.04); }
/* Slot 2: gaming console card (PS5 Pro / GTA VI) — dark, PlayStation blue accent */
ul.qbit_top_right_ul li.qf-card.qf-game { background: radial-gradient(120% 120% at 100% 0%, #1b3f8f 0%, #0c1a3a 45%, #070b16 100%); border-color: #0c1a3a; }
.qf-game .qf-name { color: #fff; }
.qf-game .qf-spec { color: rgba(255,255,255,.7); }
.qf-game .qf-new { background: #ff2d6f; color: #fff; }
.qf-game .qf-price b { color: #fff; }
.qf-game .qf-price s { color: rgba(255,255,255,.55); }
.qf-game .qf-save { color: #4ade80; }
.qf-game .qf-btn { background: #0070d1; }
.qf-game .qf-btn:hover { background: #005bb0; }
.qf-game .qf-img { filter: drop-shadow(0 10px 24px rgba(0,112,209,.45)); }
.qf-game .qf-dot { box-shadow: 0 0 0 2px #0c1a3a; }
/* light variant (product photos are shot on white) */
ul.qbit_top_right_ul li.qf-card.qf-game { background: linear-gradient(160deg, #ffffff 0%, #eaf2ff 100%); border-color: #d6e4fb; }
.qf-game .qf-name { color: var(--qb-ink); }
.qf-game .qf-spec { color: var(--qb-muted); }
.qf-game .qf-price b { color: var(--qb-ink); }
.qf-game .qf-price s { color: #98a2b3; }
.qf-game .qf-save { color: #1f9d55; }
.qf-game .qf-img { filter: none; }
.qf-game .qf-dot { box-shadow: 0 0 0 2px #fff; }
.qf-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qa-gallery { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.qa-gallery-item:only-child { grid-column: 1 / -1; max-width: 760px; aspect-ratio: 16 / 10; }
.qf-game .qf-name { font-size: 17px; }
