/* HUNT274: Universal Product Card save-heart artwork, fallback, and save-confetti refinements. */
#rd-ecommerce-product-universal-hunt255 .rd247-product-save {
  position:absolute; z-index:2; top:clamp(8px,1.5vw,16px); right:clamp(8px,1.5vw,16px);
  display:flex; align-items:center; justify-content:center;
  width:clamp(36px,11%,64px) !important; height:auto !important; min-width:0 !important;
  aspect-ratio:1; padding:0 !important; border:0 !important; border-radius:0 !important;
  background:transparent !important; box-shadow:none !important; overflow:visible;
  cursor:pointer; touch-action:manipulation; -webkit-tap-highlight-color:transparent;
  transition:transform .18s ease,filter .18s ease;
}

#rd-ecommerce-product-universal-hunt255 .rd247-product-save:active { transform:scale(.92); }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save:focus-visible { outline:2px solid #46b7ee; outline-offset:2px; }

#rd-ecommerce-product-universal-hunt255 .rd247-save-icon-fallback, #rd-ecommerce-product-universal-hunt255 .rd247-saved-heart {
  display:none; position:absolute; inset:0; width:100%; height:100%; align-items:center; justify-content:center;
  pointer-events:none; line-height:0; margin:0; padding:0; overflow:visible;
}

#rd-ecommerce-product-universal-hunt255 .rd247-product-save.rd247-save-icon-fallback-active .rd247-save-icon-fallback { display:flex; }

#rd-ecommerce-product-universal-hunt255 .rd247-save-icon-fallback svg, #rd-ecommerce-product-universal-hunt255 .rd247-saved-heart svg { display:block; width:100%; height:100%; margin:auto; overflow:visible; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save[aria-pressed="true"] .rd247-save-icon-fallback { display:none !important; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save[aria-pressed="true"] .rd247-saved-heart { display:flex !important; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save[aria-pressed="true"] { background:transparent !important; box-shadow:none !important; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save[aria-pressed="true"] .rd247-saved-heart { filter:drop-shadow(0 1px 2px rgba(255,23,68,.18)); }

#rd-ecommerce-product-universal-hunt255 .rd247-product-save:disabled { opacity:.8; cursor:wait; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-media { position:relative; }

#rd-ecommerce-product-universal-hunt255 .rd247-confetti-layer { position:absolute; inset:0; z-index:5; overflow:hidden; pointer-events:none; contain:layout paint; }

#rd-ecommerce-product-universal-hunt255 .rd247-confetti-piece { position:absolute; left:50%; top:24%; display:block; width:var(--rd247-size,7px); height:calc(var(--rd247-size,7px) * 1.45); border-radius:2px; background:var(--rd247-confetti-color,#ff4d79); opacity:0; transform:translate(-50%,-50%) scale(.45); will-change:transform,opacity; animation:rd247-confetti-pop 820ms cubic-bezier(.13,.73,.22,1) forwards; }

#rd-ecommerce-product-universal-hunt255 .rd247-product-card.rd247-save-success { animation:rd247-card-save-glow 760ms ease-out; }

/* HUNT313: Custom Universal Product Card badge system.
   The badge sits at the image top-left and never overlaps the existing save heart. */
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge {
  --rd247-badge-background:linear-gradient(135deg,#fffdf7 0%,#f7edcf 48%,#fff9e9 100%);
  --rd247-badge-color:#725719;
  --rd247-badge-border:#dfc783;
  position:absolute; z-index:3; top:clamp(8px,1.5vw,15px); left:clamp(8px,1.5vw,15px);
  display:inline-flex; align-items:center; justify-content:center;
  max-width:calc(100% - 78px); min-height:24px; padding:5px 10px;
  overflow:hidden; border:1px solid var(--rd247-badge-border); border-radius:7px;
  background:var(--rd247-badge-background); color:var(--rd247-badge-color);
  box-shadow:0 2px 8px rgba(95,72,19,.10),inset 0 1px 0 rgba(255,255,255,.88);
  font-size:clamp(9px,.82vw,11px); line-height:1.1; font-weight:850;
  letter-spacing:.045em; text-align:center; text-overflow:ellipsis; white-space:nowrap;
  pointer-events:none; user-select:none; -webkit-user-select:none;
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="premium-gold"] {
  --rd247-badge-background:linear-gradient(135deg,#fffdf7 0%,#f4e4b4 34%,#fff8e5 62%,#e9d18e 100%);
  --rd247-badge-color:#6c5013; --rd247-badge-border:#d6b75f;
  box-shadow:0 2px 9px rgba(135,100,25,.15),inset 0 1px 0 rgba(255,255,255,.95);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="soft-gold"] {
  --rd247-badge-background:linear-gradient(135deg,#fffdf7,#fbf3dc 58%,#f4e8c5);
  --rd247-badge-color:#80631d; --rd247-badge-border:#e7d8ad;
  box-shadow:0 1px 6px rgba(103,82,33,.08),inset 0 1px 0 #fff;
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="clean-white"] {
  --rd247-badge-background:#fff; --rd247-badge-color:#4f4b40; --rd247-badge-border:#e9dfc4;
  box-shadow:0 2px 8px rgba(0,0,0,.10);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="gold-outline"] {
  --rd247-badge-background:rgba(255,255,255,.96); --rd247-badge-color:#8a6a1e; --rd247-badge-border:#c9a64e;
  border-width:1.5px; box-shadow:inset 0 0 0 1px rgba(201,166,78,.12);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="black-gold"] {
  --rd247-badge-background:linear-gradient(135deg,#33312c,#111); --rd247-badge-color:#fff8df; --rd247-badge-border:#c6a34b;
  box-shadow:0 2px 8px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.12);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="rose"] {
  --rd247-badge-background:linear-gradient(135deg,#fff8fa,#f8e3eb); --rd247-badge-color:#9a4f6e; --rd247-badge-border:#e7bdcc;
  box-shadow:0 2px 7px rgba(138,67,94,.10);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="emerald"] {
  --rd247-badge-background:linear-gradient(135deg,#f4fff8,#dcefe3); --rd247-badge-color:#286344; --rd247-badge-border:#add2ba;
  box-shadow:0 2px 7px rgba(38,100,67,.10);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="midnight"] {
  --rd247-badge-background:linear-gradient(135deg,#f4f6fb,#e2e8f4); --rd247-badge-color:#344565; --rd247-badge-border:#bac6db;
  box-shadow:0 2px 7px rgba(50,66,97,.10);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="gradient"] {
  --rd247-badge-background:linear-gradient(105deg,#fce8f0,#eee5ff); --rd247-badge-color:#76476e; --rd247-badge-border:#e0c5e9;
  box-shadow:0 2px 8px rgba(126,72,132,.12);
}
#rd-ecommerce-product-universal-hunt255 .rd247-product-badge[data-rd247-badge-style="sale-coral"] {
  --rd247-badge-background:linear-gradient(135deg,#fff4ef,#ffe0d4); --rd247-badge-color:#a5432c; --rd247-badge-border:#efb29c;
  box-shadow:0 2px 7px rgba(166,72,45,.10);
}
@media (max-width:700px) {
  #rd-ecommerce-product-universal-hunt255 .rd247-product-badge {
    top:8px; left:8px; max-width:calc(100% - 66px); min-height:22px; padding:4px 8px;
    border-radius:6px; font-size:9px; letter-spacing:.035em;
  }
}
@media (prefers-reduced-motion:reduce) {
  #rd-ecommerce-product-universal-hunt255 .rd247-product-badge { transition:none !important; animation:none !important; }
}

/* HUNT SEARCH RESULTS: once the RD universal card grid owns /search?q=...,
   remove Blogger's generic result-message + legacy RD Content post-card widget.
   The HUNT255 grid is mounted as a sibling before #page_body's Blog widget. */
html.rd-ecommerce-product-search-route-active #page_body .widget.Blog,
html.rd-ecommerce-product-search-route-active .rd-ecommerce-search-products-root .widget.Blog,
html.rd-ecommerce-product-search-route-active .post-filter-message,
html.rd-ecommerce-product-search-route-active .status-msg-body,
html.rd-ecommerce-product-search-route-active .no-posts-message,
html.rd-ecommerce-product-search-route-active .blog-pager {
  display:none !important;
}

/* Keep the same Universal Product Card grid contract on search routes:
   4 desktop / 3 tablet / 2 mobile columns are provided by the shared base CSS. */
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-category-link {
  display:none !important;
}

/* HUNT SEARCH RESULTS REFINEMENT:
   Break the search result shell out of Blogger's centered .main gutters so the
   card grid uses the same outer spacing as the Home Universal Product grid.
   The shared HUNT255 root padding remains responsible for the final 12px mobile
   / responsive inner gutter; no card-grid dimensions or card styles are changed. */
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section {
  width:calc(100% + var(--rd-space-lg, 24px) + var(--rd-space-lg, 24px));
  max-width:1500px;
  margin-left:calc(0px - var(--rd-space-lg, 24px));
  margin-right:calc(0px - var(--rd-space-lg, 24px));
  box-sizing:border-box;
}

/* Branded, restrained search-results heading: warm white surface, fine gold
   edge and compact product-discovery eyebrow. The search query remains the
   existing Blogger query text rendered by HUNT255. */
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head {
  display:block;
  position:relative;
  align-items:initial;
  margin:0 0 clamp(14px, 2vw, 20px);
  padding:15px 16px 14px;
  overflow:hidden;
  border:1px solid rgba(190, 151, 69, .22);
  border-bottom:1px solid rgba(190, 151, 69, .22);
  border-radius:15px;
  background:linear-gradient(115deg, #fffdf8 0%, #ffffff 58%, #fffaf0 100%);
  box-shadow:0 3px 14px rgba(39, 31, 15, .045);
}
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head::before {
  content:'PRODUCT DISCOVERY';
  display:block;
  width:max-content;
  max-width:100%;
  margin:0 0 7px;
  color:#a98235;
  font-size:9px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:.15em;
}
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head::after {
  content:'';
  position:absolute;
  top:0;
  left:16px;
  width:54px;
  height:3px;
  border-radius:0 0 4px 4px;
  background:linear-gradient(90deg, #b78b34 0%, #e8ce87 55%, #f3e6c7 100%);
  pointer-events:none;
}
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-title {
  color:#171717;
  font-size:clamp(21px, 2.35vw, 27px);
  font-weight:820;
  line-height:1.18;
  letter-spacing:-.027em;
}
#rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-subtitle {
  max-width:720px;
  margin:6px 0 0;
  color:#716c61;
  font-size:clamp(12px, 1.15vw, 14px);
  font-weight:450;
  line-height:1.48;
}

@media (max-width:700px) {
  #rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head {
    margin-bottom:15px;
    padding:13px 13px 12px;
    border-radius:13px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head::after {
    left:13px;
    width:46px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-head::before {
    margin-bottom:6px;
    font-size:8px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-title {
    font-size:22px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-search-results-section .rd247-products-subtitle {
    max-width:100%;
    margin-top:5px;
    font-size:12.5px;
  }
}

/* HUNT314: Premium static For You section heading on the Home product grid.
   Search-results and product-label archive headings retain their own contracts. */
#rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-for-you-head {
  position:relative; display:flex; align-items:center; justify-content:flex-start;
  min-height:68px; margin:0 0 clamp(14px,1.8vw,20px); padding:12px 17px;
  overflow:hidden; border:1px solid rgba(190,151,49,.25); border-radius:15px;
  background:linear-gradient(112deg,#fffdf7 0%,#ffffff 57%,#fffaf0 100%);
  box-shadow:0 4px 16px rgba(83,63,18,.055),inset 0 1px 0 rgba(255,255,255,.98);
}
#rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-for-you-head::before {
  content:""; position:absolute; left:0; top:15px; bottom:15px; width:4px;
  border-radius:0 5px 5px 0;
  background:linear-gradient(180deg,#f8e8b5 0%,#c49a36 48%,#f3d987 100%);
}
#rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-for-you-title-wrap {
  display:flex; align-items:center; min-width:0; padding-left:4px;
}
#rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-products-title {
  position:relative; margin:0; color:#1c1a15;
  font-size:clamp(22px,2.5vw,30px); font-weight:850; line-height:1.15;
  letter-spacing:-.035em;
}
#rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-products-title::after {
  content:""; display:block; width:34px; height:3px; margin-top:7px;
  border-radius:99px; background:linear-gradient(90deg,#9f7b25 0%,#e9c96d 72%,rgba(233,201,109,0) 100%);
}
@media (max-width:700px) {
  #rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-for-you-head {
    min-height:58px; margin-bottom:13px; padding:10px 13px; border-radius:12px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-for-you-head::before {
    top:12px; bottom:12px; width:3px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-products-title {
    font-size:22px;
  }
  #rd-ecommerce-product-universal-hunt255.rd247-for-you-section .rd247-products-title::after {
    width:28px; height:2.5px; margin-top:6px;
  }
}
