/* =========================================================================
   imdesi — theme styles (v3.0.1 · Fluent-style)
   Design language: neutral surfaces, Segoe UI type ramp, 4/8px radii,
   layered elevation, acrylic header. Brand colours from the imdesi logo.
   ========================================================================= */

:root {
  /* Brand ramp (from logo navy) */
  --b-10: #011A30; --b-60: #04335B; --b-70: #0A4577; --b-80: #0E5A9C; --b-120: #6EA6D6; --b-150: #D4E5F6; --b-160: #EBF3FB;
  --gold: #D9A95C; --gold-fg: #9A6F35;
  /* Neutrals */
  --fg1: #242424; --fg2: #424242; --fg3: #616161; --fg4: #707070;
  --bg1: #FFFFFF; --bg2: #FAFAFA; --bg3: #F5F5F5; --bg4: #F0F0F0; --bg5: #EBEBEB;
  --stroke1: #D1D1D1; --stroke2: #E0E0E0; --stroke3: #F0F0F0;
  /* Elevation */
  --sh2: 0 0 2px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.14);
  --sh4: 0 0 2px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.14);
  --sh8: 0 0 2px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.14);
  --sh16: 0 0 2px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.14);
  --sh28: 0 0 8px rgba(0,0,0,.12), 0 14px 28px rgba(0,0,0,.14);
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px;
  --ease: cubic-bezier(0.33, 0, 0.1, 1);
  --dur: 0.2s;
}

body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
::selection { background: var(--b-150); }

/* Focus — two-tone ring, visible on any surface */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--fg1); outline-offset: 2px; box-shadow: 0 0 0 4px #fff; border-radius: var(--r-sm);
}

/* ---------- Type ---------- */
h1 em, h2 em, h3 em { font-style: normal; color: var(--b-80); }
.imd-display { font-size: clamp(2.5rem, 5vw, 4.25rem) !important; line-height: 1.1 !important; font-weight: 600; letter-spacing: -0.01em; margin: 0.75rem 0 0; }
.imd-display em { display: block; background: linear-gradient(90deg, var(--b-80), var(--b-60) 55%, var(--gold-fg)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.imd-h-lg { font-size: clamp(1.75rem, 3vw, 2.5rem) !important; line-height: 1.25 !important; }
.imd-h-md { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; line-height: 1.25 !important; }
.imd-lede { font-size: 1.125rem; line-height: 1.55; color: var(--fg2); max-width: 600px; margin-top: 1.25rem; }
.imd-sub { color: var(--fg3); margin: 0.5rem 0 2rem; font-size: 1.0625rem; }
.imd-eyebrow, .imdesi-eyebrow { font-size: 0.875rem !important; font-weight: 600; color: var(--b-80); margin: 0; letter-spacing: normal; text-transform: none; }
.imd-eyebrow--ruled::before, .imd-eyebrow--ruled::after { display: none !important; }

/* ---------- Buttons (Fluent primary / secondary) ---------- */
.wp-block-button__link, .wp-element-button {
  border-radius: var(--r-sm) !important; min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.wp-block-button__link:active { background-color: var(--b-10) !important; }
.wp-block-button.is-style-outline .wp-block-button__link,
.imd-btn-ghost .wp-block-button__link {
  background: var(--bg1) !important; color: var(--fg1) !important; border: 1px solid var(--stroke1) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover,
.imd-btn-ghost .wp-block-button__link:hover { background: var(--bg3) !important; border-color: #C7C7C7 !important; }
.imd-btn-gold .wp-block-button__link { background: var(--gold) !important; color: var(--b-10) !important; }
.imd-btn-gold .wp-block-button__link:hover { background: #E4BB78 !important; }
.imd-btn-navy .wp-block-button__link, .imd-pill-sm .wp-block-button__link { background: var(--b-60) !important; }

/* =========================================================================
   Header — acrylic bar
   ========================================================================= */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 60; margin: 0; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 46px; } }
@media (max-width: 600px) { .admin-bar .wp-site-blocks > header.wp-block-template-part { top: 0; } }

.imd-header {
  background: rgba(255,255,255,0.78);
  -webkit-backdrop-filter: saturate(180%) blur(30px); backdrop-filter: saturate(180%) blur(30px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  transition: box-shadow var(--dur) var(--ease);
}
.imd-header.is-stuck { box-shadow: var(--sh4); }
.imd-bar { min-height: 60px; gap: 1rem; }
.imd-bar__left { gap: 1.75rem !important; }
.imd-bar__right { gap: 0.75rem !important; }
.imd-logo img { height: 40px; width: auto; display: block; }

.imd-menu .wp-block-navigation-item__content {
  padding: 0.45rem 0.75rem !important; border-radius: var(--r-sm); position: relative; color: var(--fg1);
  transition: background-color var(--dur) var(--ease);
}
.imd-menu .wp-block-navigation-item__content:hover { background: rgba(0,0,0,0.05); text-decoration: none; }
.imd-menu .current-menu-item > .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: 0.75rem; right: 0.75rem; bottom: -0.55rem; height: 3px; border-radius: 3px; background: var(--b-80);
}

/* Fluent SearchBox: underline accent on focus */
.imd-searchbox { margin: 0 !important; width: 240px; }
.imd-searchbox .wp-block-search__inside-wrapper {
  background: var(--bg1); border: 1px solid var(--stroke1) !important; border-bottom-color: #616161 !important; border-radius: var(--r-sm) !important;
  padding: 0 0.6rem 0 2.1rem !important; position: relative; overflow: hidden;
}
.imd-searchbox .wp-block-search__inside-wrapper::before {
  content: ""; position: absolute; left: 0.65rem; top: 50%; width: 16px; height: 16px; transform: translateY(-50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23424242' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E");
}
.imd-searchbox .wp-block-search__inside-wrapper::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--b-80); transform: scaleX(0); transition: transform var(--dur) var(--ease);
}
.imd-searchbox .wp-block-search__inside-wrapper:focus-within::after { transform: scaleX(1); }
.imd-searchbox .wp-block-search__input { border: 0 !important; background: transparent; font-size: 0.875rem; padding: 0.42rem 0; min-height: 30px; color: var(--fg1); }
.imd-searchbox .wp-block-search__input::placeholder { color: var(--fg4); }
.imd-searchbox .wp-block-search__input:focus { outline: none; box-shadow: none; }
.imd-bar__cta { margin: 0 !important; }

@media (max-width: 1100px) { .imd-searchbox { width: 180px; } }
@media (max-width: 960px) { .imd-searchbox { display: none !important; } }
@media (max-width: 600px) { .imd-bar__cta { display: none !important; } .imd-logo img { height: 34px; } }

/* Mobile menu overlay */
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.125rem; padding: 0.75rem 0 !important; }

/* =========================================================================
   Sections & surfaces
   ========================================================================= */
.wp-block-post-content > .alignfull,
.wp-block-post-content > .alignfull + * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull { margin-block-end: 0 !important; }
.wp-site-blocks > footer.wp-block-template-part { margin-block-start: 0; }

.imd-section { padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(1rem, 2vw, 1.5rem); }
.imd-section--neutral, .imd-section--mist { background: var(--bg3); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.imd-section__head { margin-bottom: 1.5rem !important; gap: 1rem; }
.imd-section__head .wp-block-heading { margin: 0.25rem 0 0; }
.imd-more { margin: 0; font-weight: 600; font-size: 0.9375rem; }
.imd-more a { color: var(--b-80); }

/* "Night" sections are rendered as a brand surface in Fluent style */
.imd-night { background: var(--b-60); color: #fff; padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.imd-night h1, .imd-night h2, .imd-night h3 { color: #fff; }
.imd-night h2 em, .imd-night h1 em { color: var(--gold); }
.imd-night .imd-eyebrow { color: var(--b-150); }
.imd-night .imd-more a { color: #fff; }
.imd-night .imd-lede { color: rgba(255,255,255,.8); }

/* =========================================================================
   Hero
   ========================================================================= */
.imd-hero { position: relative; overflow: hidden; padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60% 80% at 100% 0%, var(--b-160) 0%, rgba(235,243,251,0) 60%),
    radial-gradient(40% 60% at 85% 100%, rgba(217,169,92,0.14) 0%, rgba(217,169,92,0) 70%),
    var(--bg1);
}
.imd-hero__cols { gap: 3rem !important; }

.imd-hero-search { max-width: 560px; margin: 2rem 0 0 !important; }
.imd-hero-search .wp-block-search__inside-wrapper {
  background: var(--bg1); border: 1px solid var(--stroke1) !important; border-bottom: 1px solid #616161 !important; border-radius: var(--r-md) !important;
  padding: 6px 6px 6px 2.75rem !important; box-shadow: var(--sh8); position: relative; overflow: hidden;
}
.imd-hero-search .wp-block-search__inside-wrapper::before {
  content: ""; position: absolute; left: 1rem; top: 50%; width: 20px; height: 20px; transform: translateY(-50%);
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E");
}
.imd-hero-search .wp-block-search__inside-wrapper::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--b-80); transform: scaleX(0); transition: transform var(--dur) var(--ease); }
.imd-hero-search .wp-block-search__inside-wrapper:focus-within::after { transform: scaleX(1); }
.imd-hero-search .wp-block-search__input { border: 0 !important; font-size: 1rem; padding: 0.6rem 0; background: transparent; }
.imd-hero-search .wp-block-search__input:focus { outline: none; box-shadow: none; }
.imd-hero-search .wp-block-search__button { border-radius: var(--r-sm) !important; background: var(--b-60) !important; color: #fff !important; padding: 0.55rem 1.25rem !important; margin: 0 !important; font-weight: 600; border: 0 !important; }
.imd-hero-search .wp-block-search__button:hover { background: var(--b-80) !important; }

/* Chips (Fluent "tag" style) */
.imd-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem !important; }
.imd-chips a {
  display: inline-flex; align-items: center; height: 32px; padding: 0 0.85rem; border-radius: 999px;
  background: var(--bg1); border: 1px solid var(--stroke2); color: var(--fg1); font-size: 0.875rem; text-decoration: none !important;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.imd-chips a:hover { background: var(--b-160); border-color: var(--b-150); color: var(--b-60); }

/* Layered tile visual */
.imd-hero__art { position: relative; height: 420px; max-width: 520px; margin-left: auto; }
.imd-art {
  position: absolute; display: flex; flex-direction: column; gap: 0.35rem; padding: 1.1rem 1.2rem; width: 250px;
  background: rgba(255,255,255,0.72); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.9); border-radius: var(--r-lg); box-shadow: var(--sh16);
  animation: imd-float 7s var(--ease) infinite alternate;
}
.imd-art__t { font-weight: 600; font-size: 1.05rem; color: var(--fg1); }
.imd-art__s { font-size: 0.8125rem; color: var(--fg3); }
.imd-art__bars { display: grid; gap: 6px; margin-top: 0.3rem; }
.imd-art__bars i { display: block; height: 8px; border-radius: 4px; background: var(--b-150); }
.imd-art__bars i:first-child { background: var(--b-80); }
.imd-art--a { top: 0; left: 6%; }
.imd-art--b { top: 22%; right: 0; animation-delay: -2s; }
.imd-art--c { top: 50%; left: 0; animation-delay: -4s; width: 270px; }
.imd-art--d { bottom: 0; right: 8%; animation-delay: -1s; }
@keyframes imd-float { from { transform: translateY(0); } to { transform: translateY(-10px); } }
@media (max-width: 960px) { .imd-hero__art { display: none; } }

/* Icon container */
.imd-ico { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--b-160); color: var(--b-60); flex: 0 0 40px; }
.imd-ico svg { width: 22px; height: 22px; }

/* =========================================================================
   Category tiles
   ========================================================================= */
.imd-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 960px) { .imd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .imd-tiles { grid-template-columns: 1fr; } }
.imd-tile {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.15rem; background: var(--bg1); border-radius: var(--r-md);
  box-shadow: var(--sh4); color: var(--fg1); text-decoration: none !important;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.imd-tile:hover { box-shadow: var(--sh16); transform: translateY(-2px); }
.imd-tile:active { box-shadow: var(--sh2); transform: none; }
.imd-tile__body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 0; }
.imd-tile__t { font-weight: 600; font-size: 1.0625rem; }
.imd-tile__s { font-size: 0.875rem; color: var(--fg3); }
.imd-tile__chev { color: var(--fg3); display: inline-flex; transition: transform var(--dur) var(--ease); }
.imd-tile__chev svg { width: 18px; height: 18px; }
.imd-tile:hover .imd-tile__chev { transform: translateX(3px); color: var(--b-80); }

/* =========================================================================
   Cards (posts) + plugin components
   ========================================================================= */
.imdesi-card { background: var(--bg1); border-radius: var(--r-md); overflow: hidden; height: 100%; box-shadow: var(--sh4); border: 0; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease); }
.imdesi-card > * { margin-left: 1rem !important; margin-right: 1rem !important; }
.imdesi-card > .wp-block-post-featured-image { margin: 0 !important; background: var(--bg3); }
.imdesi-card > .wp-block-post-featured-image img { border-radius: 0 !important; }
.imdesi-card > .wp-block-post-terms { margin-top: 0.9rem !important; }
.imdesi-card > :last-child { margin-bottom: 1.1rem !important; }
.imdesi-card:hover { box-shadow: var(--sh16); transform: translateY(-2px); }
.imdesi-card .wp-block-post-title a { color: var(--fg1); }
.imdesi-post-grid .wp-block-post-template { gap: 1rem; }
@media (max-width: 782px) { .imdesi-post-grid .wp-block-post-template.is-layout-grid { grid-template-columns: 1fr !important; } }
.imd-empty-line { color: var(--fg3); padding: 1.25rem; background: var(--bg1); border-radius: var(--r-md); box-shadow: var(--sh2); }

/* imdesi Core plugin — map to Fluent surfaces */
.imd-deal, .imd-cmp-card, .imd-store, .imd-compare, .imd-store-head, .imd-pros, .imd-cons {
  border: 0 !important; border-radius: var(--r-md) !important; box-shadow: var(--sh4) !important; background: var(--bg1);
}
.imd-deal:hover, .imd-cmp-card:hover, .imd-store:hover { box-shadow: var(--sh16) !important; transform: translateY(-2px) !important; }
.imd-deal__media { background: var(--bg3) !important; }
.imd-deal__pill { border-radius: var(--r-sm) !important; background: var(--b-60) !important; }
.imd-deal__store { color: var(--b-80) !important; letter-spacing: normal !important; text-transform: none !important; font-size: 0.8125rem; }
.imd-deal__price, .imd-compare__price, .imd-cmp-card__meta strong { color: var(--fg1) !important; }
.imd-btn { border-radius: var(--r-sm) !important; background: var(--b-60) !important; font-family: inherit !important; min-height: 36px; padding: 0.5rem 1rem !important; }
.imd-btn:hover { background: var(--b-80) !important; transform: none !important; }
.imd-btn--ghost { background: var(--bg1) !important; color: var(--fg1) !important; box-shadow: inset 0 0 0 1px var(--stroke1) !important; }
.imd-btn--ghost:hover { background: var(--bg3) !important; }
.imd-btn--code { background: var(--gold) !important; color: var(--b-10) !important; }
.imd-btn__peek { border-radius: 0 var(--r-sm) var(--r-sm) 0 !important; }
.imd-btn--code.is-revealed { background: var(--bg1) !important; }
.imd-store__initial { border-radius: 16px !important; background: var(--store, var(--b-80)) !important; color: #fff !important; width: 72px !important; height: 72px !important; font-size: 1.6rem !important; }
.imd-compare__row.is-best { background: var(--b-160) !important; border-radius: var(--r-sm) !important; }
.imd-compare__store em { border-radius: var(--r-sm) !important; }
.imd-compare__eyebrow { color: var(--b-80) !important; letter-spacing: normal !important; text-transform: none !important; font-size: 0.8125rem !important; }
.imd-empty { border: 0 !important; border-radius: var(--r-md) !important; background: var(--bg1) !important; box-shadow: var(--sh2); box-sizing: border-box; color: var(--fg3); }
.imd-night .imd-empty { background: rgba(255,255,255,0.08) !important; box-shadow: none; color: rgba(255,255,255,0.85); }
.imd-night .imd-empty a { color: #fff; }
.imd-section-title { font-size: 1.5rem; }

/* =========================================================================
   Brand band (newsletter)
   ========================================================================= */
.imd-brandband { background: linear-gradient(120deg, var(--b-60) 0%, var(--b-70) 60%, var(--b-80) 100%); padding-top: clamp(3rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.imd-brandband__card {
  background: rgba(255,255,255,0.1); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.5rem) !important; gap: 1.5rem; color: #fff;
}
.imd-brandband__copy { max-width: 640px; }
.imd-brandband__copy p { color: rgba(255,255,255,0.85); margin-bottom: 0; }
.imd-brandband h2 { color: #fff; margin-top: 0; }
.imd-brandband h2 em { color: var(--gold); }

/* =========================================================================
   Articles & pages
   ========================================================================= */
.wp-block-post-content { font-size: 1.0625rem; line-height: 1.6; }
.wp-block-post-content h2 { margin-top: 2.25rem; }
.wp-block-post-content h3 { margin-top: 1.75rem; }
.wp-block-post-content :where(p, li, td) > a:not([class]) { color: var(--b-80); text-decoration: underline; text-underline-offset: 2px; }
.wp-block-post-content img, .wp-block-post-featured-image img { border-radius: var(--r-md); }
.imdesi-disclosure-line, .imd-disclosure { font-size: 0.8125rem; color: var(--fg3); }
.wp-block-table.is-style-compare table { border-collapse: separate; border-spacing: 0; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh4); }
.wp-block-table.is-style-compare th { background: var(--bg3); color: var(--fg1); text-align: left; font-weight: 600; }
.wp-block-table.is-style-compare td, .wp-block-table.is-style-compare th { border: 0; border-bottom: 1px solid var(--stroke2); padding: 0.75rem 1rem; }
.wp-block-list.is-style-checklist { list-style: none; padding-left: 0; }
.wp-block-list.is-style-checklist li { position: relative; padding-left: 1.75rem; margin-bottom: 0.4rem; }
.wp-block-list.is-style-checklist li::before { content: "✓"; position: absolute; left: 0; color: #0E7A0D; font-weight: 700; }
.wp-block-group.is-style-card { background: var(--bg1); border-radius: var(--r-md); box-shadow: var(--sh4); padding: 1.5rem; }
.wp-block-button.is-style-gold .wp-block-button__link { background: var(--gold); color: var(--b-10); }
.imdesi-note { border-radius: var(--r-md) !important; }
.imdesi-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--b-60); background: var(--b-160); padding: .2rem .55rem; border-radius: var(--r-sm); margin: 0; }
.imdesi-price { font-weight: 600; font-size: 1.375rem; color: var(--fg1); margin: 0; }
.imdesi-price-was { font-size: .85rem; color: var(--fg3); text-decoration: line-through; margin-left: .4rem; }
.wp-block-query-pagination-numbers .page-numbers { padding: 0.35rem 0.7rem; border-radius: var(--r-sm); }
.wp-block-query-pagination-numbers .current { background: var(--b-60); color: #fff; }
.imdesi-section-title::before { display: none; }

/* =========================================================================
   Footer — light, Microsoft.com-style
   ========================================================================= */
.imd-footer { background: var(--bg4); color: var(--fg3); padding-top: 2.5rem; padding-bottom: 1.5rem; font-size: 0.8125rem; }
.imd-footer__top { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-bottom: 2rem; }
.imd-footer__h { font-size: 0.9375rem !important; font-weight: 600; color: var(--fg1); margin: 0 0 0.75rem; }
.imd-footer__list { list-style: none; padding: 0; margin: 0; }
.imd-footer__list li { margin-bottom: 0.55rem; }
.imd-footer a { color: var(--fg3); text-decoration: none; }
.imd-footer a:hover { color: var(--fg1); text-decoration: underline; }
.imd-footer__base { border-top: 1px solid var(--stroke2); padding-top: 1.25rem; gap: 1rem; }
.imd-footer__base p { margin: 0; }
.imd-footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.imd-footer__note { margin-top: 1rem !important; color: var(--fg4); }
@media (max-width: 782px) { .imd-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* WooCommerce */
.wp-block-woocommerce-product-price, .woocommerce-Price-amount { color: var(--fg1); font-weight: 600; }
.wc-block-components-button, .woocommerce .button { border-radius: var(--r-sm) !important; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- v3.0.1 polish ---------- */
.wp-site-blocks > main, .wp-site-blocks > .wp-block-group { margin-block-start: 0 !important; }
a.wp-element-button, .wp-block-button__link, .imd-btn, .imd-tile, .imd-chips a, .imd-more a, .imd-store, .imd-cmp-card { text-decoration: none !important; }
.imd-more a:hover { text-decoration: underline !important; }
.imd-tile__t { color: var(--fg1); }
.imd-tile:hover .imd-tile__t { color: var(--b-60); }
.imd-chips a { color: var(--fg1) !important; }
.imd-chips a:hover { color: var(--b-60) !important; }
.imd-night .imd-sub { color: rgba(255,255,255,0.78); }
.imd-footer__top > * { margin: 0 !important; }
.imd-footer__h { margin-top: 0 !important; }
/* Page content: lede and forms align with the text column */
.wp-block-post-content > .imd-lede { max-width: none; margin-left: 0; margin-right: 0; }
.wp-block-post-content .imd-form-wrap { max-width: none; }
.wp-block-post-content > .imd-lede:first-child { margin-top: 0; }

/* ---------- Colourful icons (v3.3) ---------- */
/* Fluent-style colour set: each tile/icon gets its own tinted background */
.imd-tiles .imd-tile:nth-child(6n+1) .imd-ico { background: #FDE7E9; color: #C50F1F; }  /* Deals – red */
.imd-tiles .imd-tile:nth-child(6n+2) .imd-ico { background: #FFF4CE; color: #8A5300; }  /* Coupons – amber */
.imd-tiles .imd-tile:nth-child(6n+3) .imd-ico { background: #EBF3FC; color: #0F6CBD; }  /* Compare – blue */
.imd-tiles .imd-tile:nth-child(6n+4) .imd-ico { background: #E0F7F7; color: #00666D; }  /* Travel – teal */
.imd-tiles .imd-tile:nth-child(6n+5) .imd-ico { background: #F1FAF1; color: #107C10; }  /* Money – green */
.imd-tiles .imd-tile:nth-child(6n+6) .imd-ico { background: #F7F0FC; color: #7719AA; }  /* Living – purple */
.imd-tile .imd-ico { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 12px; }
.imd-tile .imd-ico svg { width: 26px; height: 26px; stroke-width: 1.6; }
.imd-tile:hover .imd-ico { transform: scale(1.06); }
.imd-ico { transition: transform var(--dur) var(--ease); }

.imd-art--a .imd-ico { background: #FDE7E9; color: #C50F1F; }
.imd-art--b .imd-ico { background: #E0F7F7; color: #00666D; }
.imd-art--c .imd-ico { background: #EBF3FC; color: #0F6CBD; }
.imd-art--d .imd-ico { background: #F1FAF1; color: #107C10; }
.imd-art__bars i:nth-child(2) { background: #FFB900; }
.imd-art__bars i:nth-child(3) { background: #13A10E; }
.imd-art__bars i:first-child { background: #0F6CBD; }

/* Coloured category chips in cards */
.wp-block-post-terms a { padding: 2px 8px; border-radius: 4px; background: var(--b-160); }
.wp-block-post-terms a[href*="/category/travel/"] { background: #E0F7F7; color: #00666D !important; }
.wp-block-post-terms a[href*="/category/money/"] { background: #F1FAF1; color: #0E700E !important; }
.wp-block-post-terms a[href*="/category/living/"] { background: #F7F0FC; color: #7719AA !important; }
.wp-block-post-terms a[href*="/category/shopping-guides/"] { background: #FFF4CE; color: #8A5300 !important; }
.wp-block-post-terms a[href*="/deals/category/"] { background: #FDE7E9; color: #B10E1C !important; }

/* Store tiles in theme: logo cards */
.imd-store { gap: .5rem !important; padding: 1.25rem .75rem 1rem !important; }
/* Links on the brand (navy) band must stay readable */
.imd-night .imd-more a, .imd-night a:not(.wp-element-button):not(.imd-btn) { color: #fff !important; }
.imd-strip-band { background: #fff; padding-top: 2rem; padding-bottom: 2.5rem; border-top: 1px solid #F0F0F0; }

/* =========================================================================
   Dynamic hero (v3.4): live dot, rotating hook, animated logo cloud
   ========================================================================= */
.imd-live { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--stroke2); border-radius: 999px; padding: .3rem .8rem .3rem .6rem; box-shadow: var(--sh2); }
.imd-live__dot { width: 8px; height: 8px; border-radius: 50%; background: #13A10E; box-shadow: 0 0 0 0 rgba(19,161,14,.5); animation: imd-pulse 2s infinite; }
@keyframes imd-pulse { 0% { box-shadow: 0 0 0 0 rgba(19,161,14,.5); } 70% { box-shadow: 0 0 0 8px rgba(19,161,14,0); } 100% { box-shadow: 0 0 0 0 rgba(19,161,14,0); } }

.imd-hook { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; color: var(--fg1); margin: 1rem 0 0; min-height: 1.6em; }
.imd-rotator { display: inline-block; color: #fff; background: linear-gradient(90deg, #C50F1F, #E3008C 35%, #0F6CBD 70%, #13A10E); background-size: 300% 100%; padding: .05em .45em; border-radius: 8px; animation: imd-grad 8s linear infinite; transition: opacity .3s ease, transform .3s ease; }
.imd-rotator.is-out { opacity: 0; transform: translateY(8px); }
@keyframes imd-grad { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
.imd-hero .imd-lede { margin-top: 1rem; }
.imd-chips a { gap: .3rem; }

/* Logo cloud */
.imd-cloud { position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-left: auto; }
.imd-cloud__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px dashed rgba(14,90,156,.18); }
.imd-cloud__ring--1 { width: 58%; height: 58%; animation: imd-spin 60s linear infinite; }
.imd-cloud__ring--2 { width: 92%; height: 92%; animation: imd-spin 90s linear infinite reverse; }
@keyframes imd-spin { to { transform: rotate(360deg); } }
.imd-cloud__center {
  position: absolute; inset: 0; margin: auto; width: 170px; height: 170px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--b-60), var(--b-80)); color: #fff; box-shadow: var(--sh28); z-index: 2;
}
.imd-cloud__num { font-size: 2.6rem; font-weight: 700; line-height: 1; }
.imd-cloud__label { font-size: .85rem; opacity: .85; margin-top: .25rem; }
.imd-cloud__cta { font-size: .8rem; font-weight: 600; color: var(--gold) !important; margin-top: .5rem; text-decoration: none !important; }
.imd-cloud__cta:hover { text-decoration: underline !important; }

.imd-bubble {
  position: absolute; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 20px; background: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh16); z-index: 3;
  border-bottom: 3px solid var(--c, var(--b-80));
  animation: imd-bob 6s ease-in-out infinite alternate; transition: transform .25s ease, box-shadow .25s ease, opacity .5s ease;
}
.imd-bubble img { width: 46px; height: 46px; object-fit: contain; transition: opacity .5s ease; }
.imd-bubble:hover { transform: scale(1.12) !important; box-shadow: var(--sh28); z-index: 4; }
.imd-bubble.is-swapping img { opacity: 0; }
@keyframes imd-bob { from { translate: 0 0; } to { translate: 0 -10px; } }
/* 12 slots around the rings (top/left as % of the square) */
.imd-bubble--1  { top: 6%;  left: 50%; animation-delay: -1s; }
.imd-bubble--2  { top: 14%; left: 80%; animation-delay: -3s; }
.imd-bubble--3  { top: 40%; left: 95%; animation-delay: -2s; }
.imd-bubble--4  { top: 70%; left: 88%; animation-delay: -4s; }
.imd-bubble--5  { top: 92%; left: 62%; animation-delay: -1.5s; }
.imd-bubble--6  { top: 90%; left: 32%; animation-delay: -3.5s; }
.imd-bubble--7  { top: 68%; left: 8%;  animation-delay: -2.5s; }
.imd-bubble--8  { top: 38%; left: 4%;  animation-delay: -5s; }
.imd-bubble--9  { top: 13%; left: 20%; animation-delay: -0.5s; }
.imd-bubble--10 { top: 28%; left: 36%; width: 56px; height: 56px; margin: -28px 0 0 -28px; animation-delay: -2.2s; }
.imd-bubble--11 { top: 30%; left: 68%; width: 56px; height: 56px; margin: -28px 0 0 -28px; animation-delay: -4.4s; }
.imd-bubble--12 { top: 72%; left: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; animation-delay: -1.1s; }
.imd-bubble--10 img, .imd-bubble--11 img, .imd-bubble--12 img { width: 36px; height: 36px; }
@media (max-width: 960px) {
  .imd-cloud { max-width: 420px; margin: 1rem auto 0; }
  .imd-hero__art { display: none; }
}
@media (max-width: 600px) {
  .imd-cloud { max-width: 340px; }
  .imd-bubble { width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 16px; }
  .imd-bubble img { width: 34px; height: 34px; }
  .imd-cloud__center { width: 130px; height: 130px; }
  .imd-cloud__num { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) { .imd-bubble, .imd-cloud__ring, .imd-rotator, .imd-live__dot { animation: none !important; } }

/* =========================================================================
   App mode (mobile ≤ 782px): tab bar, compact header, search sheet,
   swipe carousels, touch feedback, safe areas
   ========================================================================= */
.imd-tabbar, .imd-sheet { display: none; }
html { -webkit-tap-highlight-color: transparent; }

@media (max-width: 782px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); overscroll-behavior-y: none; }
  /* Compact header: logo + search button only */
  .imd-header { padding-top: env(safe-area-inset-top); }
  .imd-bar { min-height: 54px; }
  .imd-menu, .imd-searchbox, .imd-bar__cta { display: none !important; }
  .imd-bar__right::after {
    content: ""; width: 40px; height: 40px; border-radius: 12px; background: var(--bg3) no-repeat center/20px
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m20 20-4.8-4.8'/%3E%3C/svg%3E");
    cursor: pointer;
  }
  .imd-logo img { height: 34px; }

  /* Bottom tab bar */
  .imd-tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,0.86); -webkit-backdrop-filter: saturate(180%) blur(24px); backdrop-filter: saturate(180%) blur(24px);
    border-top: 1px solid rgba(0,0,0,0.08); box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
  }
  .imd-tab {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: 14px;
    color: var(--fg3); font: inherit; font-size: 0.68rem; font-weight: 600; letter-spacing: .01em; background: none; border: 0; padding: 0;
    text-decoration: none !important; transition: color .15s ease, background-color .15s ease, transform .1s ease;
  }
  .imd-tab svg { width: 24px; height: 24px; }
  .imd-tab.is-active { color: var(--b-60); }
  .imd-tab.is-active svg { fill: var(--b-160); }
  .imd-tab.is-active span::after { content: ""; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--b-80); margin: 2px auto 0; }
  .imd-tab:active { transform: scale(0.92); background: var(--bg3); }

  /* Full-screen search sheet */
  .imd-sheet { display: block; position: fixed; inset: 0; z-index: 100; background: rgba(0,0,0,0.32); opacity: 0; transition: opacity .2s ease; }
  .imd-sheet[hidden] { display: none; }
  .imd-sheet.is-open { opacity: 1; }
  .imd-sheet__panel {
    position: absolute; inset: 0; background: #fff; padding: calc(12px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto; transform: translateY(24px); transition: transform .25s cubic-bezier(0.33, 0, 0.1, 1);
  }
  .imd-sheet.is-open .imd-sheet__panel { transform: none; }
  .imd-sheet__bar { display: flex; gap: 10px; align-items: center; }
  .imd-sheet__form { flex: 1; display: flex; align-items: center; gap: 8px; background: var(--bg3); border-radius: 12px; padding: 0 12px; height: 46px; }
  .imd-sheet__form svg { width: 20px; height: 20px; color: var(--fg3); flex: 0 0 20px; }
  .imd-sheet__form input { flex: 1; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--fg1); outline: none; }
  .imd-sheet__close { background: none; border: 0; color: var(--b-80); font: inherit; font-weight: 600; font-size: 15px; padding: 8px 4px; }
  .imd-sheet__label { font-size: 0.8rem; font-weight: 700; color: var(--fg3); text-transform: uppercase; letter-spacing: .06em; margin: 24px 0 10px; }
  .imd-sheet__chips { display: flex; flex-wrap: wrap; gap: 8px; }
  .imd-sheet__chips a { padding: 9px 14px; border-radius: 999px; background: var(--bg3); color: var(--fg1); text-decoration: none; font-size: 0.9rem; }
  .imd-sheet__chips a:active { background: var(--b-160); }
  .imd-sheet .imd-strip__title { display: none; }
  .imd-sheet .imd-strip__row { justify-content: flex-start; }
  .imd-sheet .imd-strip__item span { display: block; }

  /* Swipeable carousels for card grids */
  .imd-deals, .imd-cmp-grid, .imdesi-post-grid .wp-block-post-template {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important;
    margin-left: calc(-1 * var(--wp--style--root--padding-left, 16px)) !important; margin-right: calc(-1 * var(--wp--style--root--padding-right, 16px)) !important;
    padding: 4px var(--wp--style--root--padding-left, 16px) 12px !important; scrollbar-width: none;
  }
  .imd-deals::-webkit-scrollbar, .imd-cmp-grid::-webkit-scrollbar, .imdesi-post-grid .wp-block-post-template::-webkit-scrollbar { display: none; }
  .imd-cmp-grid > *, .imdesi-post-grid .wp-block-post-template > li { flex: 0 0 82%; max-width: 82%; scroll-snap-align: start; }
  .imd-strip__row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 6px; }
  .imd-strip__row::-webkit-scrollbar { display: none; }
  .imd-strip__item { flex: 0 0 auto; scroll-snap-align: start; }
  .imd-stores { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .imd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .imd-tile { flex-direction: column; align-items: flex-start; gap: .6rem; padding: 1rem; min-height: 132px; }
  .imd-tile__chev { display: none !important; }
  .imd-tile__s { font-size: 0.8rem; }

  /* Hero, app-like spacing */
  .imd-hero { padding-top: 1.25rem; padding-bottom: 2rem; }
  .imd-display { font-size: 2.35rem !important; }
  .imd-live { font-size: 0.72rem !important; }
  .imd-hero .imd-lede { font-size: 1rem; }
  .imd-hero-search { margin-top: 1.25rem !important; }
  .imd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(-1 * var(--wp--style--root--padding-right, 16px)) !important; padding-right: 16px; }
  .imd-chips::-webkit-scrollbar { display: none; }
  .imd-chips a { flex: 0 0 auto; height: 36px; }
  .imd-section { padding-top: 2rem; }
  .imd-h-lg { font-size: 1.6rem !important; }
  .imd-section__head { margin-bottom: 1rem !important; }
  .imd-sub { font-size: 0.95rem; margin-bottom: 1rem; }

  /* Touch feedback everywhere */
  .imd-tile:active, .imdesi-card:active, .imd-deal:active, .imd-store:active, .imd-cmp-card:active, .imd-chips a:active { transform: scale(0.97) !important; transition-duration: .08s !important; }
  .wp-element-button, .wp-block-button__link, .imd-btn { min-height: 44px; }

  /* Footer above the tab bar */
  .imd-footer { padding-bottom: 1rem; }
}

/* Installed app (standalone): hide the WordPress admin bar gap and add native feel */
@media (display-mode: standalone) {
  body { -webkit-user-select: none; user-select: none; }
  input, textarea { -webkit-user-select: text; user-select: text; }
}
@media (max-width: 782px) {
  .admin-bar .imd-sheet__panel { padding-top: calc(58px + env(safe-area-inset-top)); }
  .imd-hero .imd-lede { font-size: .95rem; line-height: 1.5; }
}

/* =========================================================================
   v3.6 — Hero-style dynamics site-wide
   ========================================================================= */

/* Animated gradient on every accented heading word */
h1 em, h2 em, h3 em, .imd-ph__title em {
  background: linear-gradient(90deg, #0F6CBD, #7719AA 30%, #E3008C 55%, #F7630C 80%, #0F6CBD);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent !important;
  animation: imd-gradtext 10s linear infinite; font-style: normal;
}
.imd-night h2 em, .imd-brandband h2 em, .imd-ph--store .imd-ph__title em {
  background: linear-gradient(90deg, #FFD27A, #FFB3D9 40%, #9FD3FF 75%, #FFD27A); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
.imd-display em { display: block; }
@keyframes imd-gradtext { to { background-position: 250% 50%; } }

/* ---------- Page banner ---------- */
.imd-ph { position: relative; overflow: hidden; isolation: isolate; padding: clamp(2.5rem, 6vw, 4.5rem) var(--wp--style--root--padding-right, 1.5rem) clamp(2.25rem, 5vw, 3.75rem); background: #F7F9FC; border-bottom: 1px solid rgba(0,0,0,.05); }
.imd-ph__mesh { position: absolute; inset: -20%; z-index: -1; filter: blur(40px); opacity: .9; }
.imd-ph__mesh i { position: absolute; width: 45%; height: 60%; border-radius: 50%; animation: imd-drift 18s ease-in-out infinite alternate; }
.imd-ph__mesh i:nth-child(1) { left: 5%;  top: 10%; background: radial-gradient(circle, rgba(15,108,189,.28), transparent 65%); }
.imd-ph__mesh i:nth-child(2) { right: 0;  top: 0;  background: radial-gradient(circle, rgba(227,0,140,.18), transparent 65%); animation-delay: -6s; }
.imd-ph__mesh i:nth-child(3) { left: 35%; bottom: -10%; background: radial-gradient(circle, rgba(247,99,12,.20), transparent 65%); animation-delay: -12s; }
@keyframes imd-drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.15); } 100% { transform: translate(-6%, -4%) scale(.95); } }
.imd-ph__inner { position: relative; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; }
.imd-ph--post .imd-ph__inner, .imd-ph--page .imd-ph__inner { max-width: 820px; }
.imd-ph__text { max-width: 780px; }
.imd-ph__eyebrow { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; padding: .3rem .8rem .3rem .6rem; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid rgba(0,0,0,.06); box-shadow: var(--sh2); font-size: .8rem; font-weight: 600; color: var(--b-80); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.imd-ph__eyebrow a { color: inherit; text-decoration: none; }
.imd-ph__title { font-size: clamp(2rem, 4.6vw, 3.4rem) !important; line-height: 1.12 !important; margin: 0 !important; font-weight: 600; letter-spacing: -0.01em; }
.imd-ph__sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--fg2); margin: 1rem 0 0; max-width: 680px; }
.imd-ph__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.1rem; font-size: .875rem; color: var(--fg3); }
.imd-ph__btn { margin-top: .25rem; }
/* floating logo bubbles in the banner */
.imd-ph__bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.imd-ph__b { position: absolute; width: 58px; height: 58px; border-radius: 16px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh8); border-bottom: 3px solid var(--c); opacity: .9; animation: imd-bob 7s ease-in-out infinite alternate; }
.imd-ph__b img { width: 34px; height: 34px; object-fit: contain; }
.imd-ph__b--1 { right: 6%;  top: 18%; }
.imd-ph__b--2 { right: 16%; top: 58%; animation-delay: -2s; width: 48px; height: 48px; }
.imd-ph__b--3 { right: 27%; top: 14%; animation-delay: -4s; width: 44px; height: 44px; opacity: .75; }
.imd-ph__b--4 { right: 3%;  top: 66%; animation-delay: -1s; width: 46px; height: 46px; }
.imd-ph__b--5 { right: 36%; top: 70%; animation-delay: -3s; width: 40px; height: 40px; opacity: .6; }
.imd-ph__b--6 { right: 22%; top: 36%; animation-delay: -5s; width: 52px; height: 52px; }
.imd-ph--post .imd-ph__b, .imd-ph--page .imd-ph__b { opacity: .55; }
@media (max-width: 1100px) { .imd-ph__b--3, .imd-ph__b--5, .imd-ph__b--6 { display: none; } }
@media (max-width: 782px) { .imd-ph__bubbles { display: none; } .imd-ph { padding-top: 1.75rem; padding-bottom: 1.75rem; } .imd-ph__title { font-size: 1.85rem !important; } }
/* Store banner uses the store's brand colour */
.imd-ph--store { background: linear-gradient(135deg, color-mix(in srgb, var(--store) 92%, #000) 0%, var(--store) 55%, color-mix(in srgb, var(--store) 70%, #fff) 100%); color: #fff; border-bottom: 0; }
.imd-ph--store .imd-ph__mesh { opacity: .5; mix-blend-mode: screen; }
.imd-ph--store .imd-ph__title, .imd-ph--store .imd-ph__sub { color: #fff; }
.imd-ph--store .imd-ph__sub { opacity: .9; }
.imd-ph--store .imd-ph__bubbles { display: none; }
.imd-ph__logo { flex: 0 0 112px; width: 112px; height: 112px; border-radius: 26px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 32px rgba(0,0,0,.25); animation: imd-bob 6s ease-in-out infinite alternate; }
.imd-ph__logo img { width: 78px; height: 78px; object-fit: contain; }
.imd-ph--store .imd-ph__btn { background: #fff !important; color: #111 !important; }
@media (max-width: 600px) { .imd-ph__inner { flex-direction: column; align-items: flex-start; } .imd-ph__logo { width: 84px; height: 84px; flex-basis: 84px; border-radius: 20px; } .imd-ph__logo img { width: 58px; height: 58px; } }

.imd-main { padding-top: clamp(2rem, 4vw, 3rem); padding-bottom: clamp(2.5rem, 5vw, 4rem); }
.imd-main--more { padding-top: 0; }
.imd-feature-img img { border-radius: 16px !important; box-shadow: var(--sh16); }

/* ---------- Logo marquee (every page) ---------- */
.imd-mq { padding: 2.25rem 0 2.5rem; background: #fff; border-top: 1px solid #F0F0F0; overflow: hidden; }
.imd-mq__title { text-align: center; font-size: .95rem; color: var(--fg3); margin: 0 0 1.25rem; }
.imd-mq__title strong { color: var(--fg1); }
.imd-mq__track { display: flex; width: max-content; animation: imd-marquee 55s linear infinite; }
.imd-mq:hover .imd-mq__track { animation-play-state: paused; }
.imd-mq__row { display: flex; gap: 14px; padding-right: 14px; }
.imd-mq__item { display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem .55rem .55rem; border-radius: 999px; background: #fff; border: 1px solid #EBEBEB; box-shadow: var(--sh2); text-decoration: none !important; color: var(--fg1) !important; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.imd-mq__item img { width: 34px; height: 34px; object-fit: contain; border-radius: 10px; background: #fff; }
.imd-mq__item:hover { transform: translateY(-3px); box-shadow: var(--sh8); border-color: var(--c); }
@keyframes imd-marquee { to { transform: translateX(-50%); } }

/* ---------- Scroll reveal ---------- */
.js-reveal .imd-rv { opacity: 0; transform: translateY(18px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--rv-d, 0s); }
.js-reveal .imd-rv.is-in { opacity: 1; transform: none; }

/* ---------- Livelier surfaces ---------- */
.imd-section--neutral, .imd-section--mist { position: relative; overflow: hidden; isolation: isolate; }
.imd-section--neutral::before, .imd-section--mist::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 55%; height: 140%; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 70% 30%, rgba(15,108,189,.08), transparent 60%), radial-gradient(circle at 30% 70%, rgba(227,0,140,.06), transparent 60%);
  animation: imd-drift 22s ease-in-out infinite alternate;
}
.imd-night { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(60% 80% at 90% 10%, rgba(119,25,170,.35), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(15,108,189,.45), transparent 60%), var(--b-60) !important; }
.imd-brandband { background: linear-gradient(120deg, #04335B, #0E5A9C 40%, #7719AA 75%, #04335B) !important; background-size: 300% 300% !important; animation: imd-bandshift 16s ease infinite; }
@keyframes imd-bandshift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Card hover glow (gradient ring) */
.imdesi-card, .imd-deal, .imd-cmp-card, .imd-tile { position: relative; }
.imdesi-card::after, .imd-deal::after, .imd-cmp-card::after, .imd-tile::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none; opacity: 0; transition: opacity .25s ease;
  background: linear-gradient(135deg, #0F6CBD, #E3008C, #F7630C);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.imdesi-card:hover::after, .imd-deal:hover::after, .imd-cmp-card:hover::after, .imd-tile:hover::after { opacity: 1; }

/* Shimmer on primary buttons */
.wp-block-button:not(.is-style-outline):not(.imd-btn-ghost) .wp-block-button__link, .imd-hero-search .wp-block-search__button { position: relative; overflow: hidden; }
.wp-block-button:not(.is-style-outline):not(.imd-btn-ghost) .wp-block-button__link::after, .imd-hero-search .wp-block-search__button::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: imd-shine 5s ease-in-out infinite;
}
@keyframes imd-shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }

/* Section headings: animated underline accent */
.imd-section__head .wp-block-heading, .imd-h-lg { position: relative; }

@media (prefers-reduced-motion: reduce) {
  h1 em, h2 em, h3 em, .imd-ph__title em, .imd-ph__mesh i, .imd-ph__b, .imd-ph__logo, .imd-mq__track, .imd-brandband, .imd-section--neutral::before, .imd-section--mist::before,
  .wp-block-button__link::after, .imd-hero-search .wp-block-search__button::after { animation: none !important; }
  .js-reveal .imd-rv { opacity: 1 !important; transform: none !important; }
  .imd-mq__track { overflow-x: auto; }
}

/* Light brand colours (e.g. Wise green, Expedia yellow): dark text */
.imd-ph--light .imd-ph__title, .imd-ph--light .imd-ph__sub { color: #111 !important; }
.imd-ph--light .imd-ph__title em { background: linear-gradient(90deg, #1b1b1b, #3a3a3a 50%, #1b1b1b); -webkit-background-clip: text; background-clip: text; color: transparent !important; animation: none; }
.imd-ph--light .imd-ph__btn { background: #111 !important; color: #fff !important; }
/* Article/page banners: keep floating logos clear of the text */
.imd-ph--post .imd-ph__b--3, .imd-ph--post .imd-ph__b--5, .imd-ph--post .imd-ph__b--6,
.imd-ph--page .imd-ph__b--3, .imd-ph--page .imd-ph__b--5, .imd-ph--page .imd-ph__b--6 { display: none; }
.imd-ph--post .imd-ph__b--2, .imd-ph--page .imd-ph__b--2 { right: 9%; }
@media (max-width: 1280px) { .imd-ph--post .imd-ph__bubbles, .imd-ph--page .imd-ph__bubbles { display: none; } }

/* v3.7 partner-only: category bubbles when few partner stores */
.imd-bubble__emoji{font-size:30px;line-height:1;display:block}
@media (max-width:782px){.imd-bubble__emoji{font-size:22px}}
.screen-reader-text{border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute!important;width:1px;word-wrap:normal!important}

/* v3.7.2 — mobile product grid: compact 2-column app-style cards */
@media (max-width: 782px) {
  .imd-deals {
    display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important; overflow: visible; margin-left: 0 !important; margin-right: 0 !important; padding: 0 0 8px !important;
  }
  .imd-deals > * { flex: none; max-width: none; }
  .imd-deal { border-radius: 14px; }
  .imd-deal__media { aspect-ratio: 1 / 1; }
  .imd-deal__media > a.imd-deal__art { min-height: 0; }
  .imd-deal__art span { font-size: 44px; }
  .imd-deal__pill { font-size: .66rem; padding: 3px 7px; top: 8px; left: 8px; max-width: calc(100% - 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .imd-deal__body { padding: .65rem .7rem .75rem; gap: .35rem; }
  .imd-deal__meta { font-size: .7rem; gap: .3rem; }
  .imd-deal__meta .imd-deal__verified, .imd-deal__flag { display: none; }
  .imd-deal__title { font-size: .9rem; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .imd-deal__excerpt { display: none; }
  .imd-deal__foot { padding-top: .35rem; }
  .imd-deal__foot .imd-btn { width: 100%; justify-content: center; padding: .55rem .5rem; font-size: .82rem; min-height: 38px; }
  .imd-deal__price { font-size: .95rem; }
  .imd-section-title { font-size: 1.25rem; margin: 1.5rem 0 .75rem; }
}
@media (max-width: 340px) { .imd-deals { grid-template-columns: 1fr !important; } }

/* Cookie notice */
.imd-cookie{position:fixed;z-index:9998;left:16px;right:16px;bottom:16px;max-width:560px;margin:0 auto;background:#fff;color:#242424;border-radius:16px;box-shadow:0 12px 40px rgba(0,0,0,.18);padding:14px 16px;display:flex;flex-direction:column;gap:10px;font-size:.88rem}
.imd-cookie[hidden]{display:none}
.imd-cookie p{margin:0}
.imd-cookie__btns{display:flex;gap:8px;justify-content:flex-end}
.imd-cookie button{border:0;border-radius:999px;padding:9px 16px;font-weight:600;cursor:pointer;font-size:.86rem}
.imd-cookie__ok{background:#04335B;color:#fff}
.imd-cookie__min{background:#EBF3FB;color:#04335B}
@media (max-width:782px){.imd-cookie{bottom:calc(76px + env(safe-area-inset-bottom));left:10px;right:10px}}

/* v3.9 — search-first hero ("Everything South Asian, one search away") */
.imd-hero .imd-eyebrow strong{color:var(--b-60,#0E5A9C);letter-spacing:.02em}
.imd-find{margin:1.75rem 0 0;max-width:640px;background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);border:1px solid rgba(4,51,91,.10);border-radius:22px;padding:10px;box-shadow:0 1px 2px rgba(4,51,91,.06),0 18px 50px -12px rgba(4,51,91,.28)}
.imd-find__tabs{display:flex;gap:4px;padding:2px 2px 10px;overflow-x:auto;scrollbar-width:none}
.imd-find__tabs::-webkit-scrollbar{display:none}
.imd-find__tabs label{position:relative;cursor:pointer;flex:0 0 auto}
.imd-find__tabs input{position:absolute;opacity:0;pointer-events:none}
.imd-find__tabs span{display:block;padding:7px 14px;border-radius:999px;font-size:.86rem;font-weight:600;color:#424242;transition:background .2s,color .2s}
.imd-find__tabs input:checked+span{background:#04335B;color:#fff;box-shadow:0 4px 12px -4px rgba(4,51,91,.5)}
.imd-find__tabs input:focus-visible+span{outline:2px solid #0E5A9C;outline-offset:2px}
.imd-find__row{display:flex;align-items:center;gap:8px;background:#fff;border-radius:16px;padding:6px 6px 6px 14px;border:1px solid #E6E6E6;transition:border-color .2s,box-shadow .2s}
.imd-find__row:focus-within{border-color:#0E5A9C;box-shadow:0 0 0 4px rgba(14,90,156,.12)}
.imd-find__icon{color:#616161;display:flex}
.imd-find__q{flex:1;min-width:0;border:0;outline:0;font:inherit;font-size:1.02rem;padding:.7rem 0;background:transparent}
.imd-find__sep{width:1px;height:28px;background:#E0E0E0}
.imd-find__city{border:0;background:transparent;font:inherit;font-size:.92rem;font-weight:600;color:#04335B;max-width:190px;padding:.6rem .25rem;cursor:pointer;outline:0}
.imd-find__go{border:0;border-radius:12px;padding:.8rem 1.4rem;font-weight:700;font-size:.98rem;color:#fff;cursor:pointer;background:linear-gradient(135deg,#0E5A9C,#04335B);box-shadow:0 8px 20px -8px rgba(4,51,91,.6);transition:transform .15s,box-shadow .2s}
.imd-find__go:hover{transform:translateY(-1px);box-shadow:0 12px 24px -8px rgba(4,51,91,.7)}
.imd-stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin:1rem 0 0;font-size:.9rem;color:#616161}
.imd-stats strong{color:#04335B;font-size:1.05rem}
.imd-stats span+span::before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:#D9A95C;margin:0 12px 2px 0;vertical-align:middle}
@media (max-width:782px){
  .imd-find{margin-top:1.25rem;border-radius:18px;padding:8px}
  .imd-find__row{flex-wrap:wrap;padding:8px 10px}
  .imd-find__q{flex:1 1 calc(100% - 30px);padding:.55rem 0}
  .imd-find__sep{display:none}
  .imd-find__city{flex:1;border-top:1px solid #EEE;max-width:none;padding:.65rem 0 .3rem}
  .imd-find__go{flex:0 0 auto;margin-top:6px}
  .imd-stats{font-size:.82rem}
}
/* Find results page */
.imd-findbar{max-width:none;margin:0 0 1.5rem}
.imd-res__h{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:2rem 0 .75rem}
.imd-res__h h2{margin:0;font-size:1.35rem}

/* v3.9.4 — mobile polish */
.imd-findbar{max-width:var(--wp--style--global--wide-size,1200px)!important;margin-left:auto!important;margin-right:auto!important}
@media (max-width:600px){
  /* hero: keep the search on screen; the logo orbit is decorative */
  .imd-hero__col>.wp-block-column:has(.imd-cloud){display:none}
  .imd-cloud{display:none}
  .imd-hero .imd-eyebrow{display:inline-flex;flex-wrap:wrap;gap:0 6px;align-items:center;line-height:1.35;max-width:100%}
  .imd-hero .imd-eyebrow strong{white-space:nowrap}
  .imd-hero h1,.imd-hero .wp-block-heading{font-size:clamp(1.9rem,8.4vw,2.4rem)!important;line-height:1.12}
  .imd-find__tabs span{padding:7px 12px;font-size:.82rem}
  body{overflow-x:hidden}
  .wp-site-blocks{overflow-x:clip}
}
