/* ============================================================================
   SavingFly homepage — redesign blending Coupons.com layout + Slickdeals deal grid
   Namespaced `sh-`. Reuses design tokens from savingfly-components.css.
   ==========================================================================*/
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; color: #1f2937; background: #ffffff; }

.sh-wrap { width: 85%; margin-inline: auto; }
.sh-section { padding: 30px 0; }
.sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sh-head h2 { font-family: 'Poppins', sans-serif; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); font-weight: 700; color: #0f172a; margin: 0; line-height: 1.2; }
.sh-head p { margin: 4px 0 0; color: #6b7280; font-size: 14.5px; }
.sh-head .sh-seeall { font-size: 14px; font-weight: 600; color: var(--sf-primary-dark); white-space: nowrap; }
.sh-head .sh-seeall:hover { text-decoration: underline; }

/* ---- Hero banner carousel (offers.com-style marquee) ---------------------*/
.sh-heroband { padding: 22px 0 6px; overflow: hidden; background: #fff; }
.shc { position: relative; }
.shc-viewport { overflow: hidden; }
.shc-track { display: flex; align-items: stretch; gap: 20px; transition: transform .55s cubic-bezier(.16,.84,.44,1); will-change: transform; }
.shc-slide { flex: 0 0 auto; width: min(1120px, 86vw); border-radius: 24px; overflow: hidden; box-shadow: 0 16px 36px rgba(0,0,0,.15); position: relative; display: block; background: #e5e7eb; }
.shc-slide img { width: 100%; height: clamp(150px, 22vw, 300px); object-fit: cover; display: block; }
.shc-promo { height: clamp(160px, 22vw, 300px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 22px; }
.shc-promo h2 { font-family: 'Poppins', sans-serif; font-size: clamp(1.4rem, 1rem + 2.2vw, 2.8rem); font-weight: 700; margin: 0 0 8px; color: #fff; line-height: 1.1; }
.shc-promo p { margin: 0 0 16px; font-size: clamp(13px, 12px + .4vw, 17px); opacity: .95; color: #fff; }
.shc-promo .shc-btn { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #0f172a; font-weight: 700; font-size: 14px; padding: 11px 24px; border-radius: 999px; text-decoration: none; }
.shc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 999px; border: 0; background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); cursor: pointer; display: none; align-items: center; justify-content: center; color: #111; }
.shc:hover .shc-arrow { display: flex; }
.shc-arrow svg { width: 14px; height: 14px; }
.shc-prev { left: max(16px, calc(50% - 572px)); }
.shc-next { right: max(16px, calc(50% - 572px)); }
.shc-dots { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.shc-dot { width: 46px; height: 4px; border-radius: 999px; border: 0; background: #d5dbcf; cursor: pointer; padding: 0; transition: background .15s; }
.shc-dot.sh-on { background: var(--sf-primary-dark); }
@media (max-width: 640px){ .shc-slide { width: 88vw; } .shc-arrow { display: none !important; } .shc-dot { width: 26px; } }

/* ---- (legacy hero — kept for reference, unused) --------------------------*/
.sh-hero { background: radial-gradient(1200px 380px at 50% -80px, #e8f5d8 0%, rgba(232,245,216,0) 70%), #ffffff; border-bottom: 1px solid var(--sf-line); }
.sh-hero-inner { padding: 46px 0 40px; text-align: center; }
.sh-hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--sf-primary-soft); color: var(--sf-primary-dark); font-weight: 600; font-size: 13px; padding: 6px 14px; border-radius: 999px; margin-bottom: 16px; }
.sh-hero h1 { font-family: 'Poppins', sans-serif; font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); line-height: 1.1; font-weight: 700; color: #0f172a; margin: 0 0 12px; }
.sh-hero h1 .sh-accent { color: var(--sf-primary-dark); }
.sh-hero-sub { max-width: 640px; margin: 0 auto 26px; color: #4b5563; font-size: clamp(15px, 14px + .3vw, 18px); line-height: 1.6; }
.sh-searchbar { max-width: 680px; margin: 0 auto; display: flex; gap: 8px; background: #fff; border: 2px solid var(--sf-primary); border-radius: 999px; padding: 7px 7px 7px 20px; box-shadow: 0 14px 40px rgba(15,118,110,.16); }
.sh-searchbar input { flex: 1; border: 0; outline: 0; font-size: 16px; background: transparent; color: #111827; }
.sh-searchbar button { border: 0; border-radius: 999px; background: var(--sf-primary); color: #fff; font-weight: 700; font-size: 15px; padding: 0 26px; height: 48px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.sh-searchbar button:hover { background: var(--sf-primary-dark); }
.sh-hero-tags { margin-top: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sh-hero-tags span { color: #6b7280; font-size: 13px; }
.sh-hero-tags a { font-size: 13px; font-weight: 600; color: #374151; background: #f3f4f6; padding: 5px 12px; border-radius: 999px; }
.sh-hero-tags a:hover { background: var(--sf-primary-soft); color: var(--sf-primary-dark); }

/* ---- Trust stats bar -----------------------------------------------------*/
.sh-trust { background: #0f172a; }
.sh-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 22px 0; }
.sh-trust-item { text-align: center; color: #fff; padding: 6px 8px; }
.sh-trust-value { font-family: 'Poppins', sans-serif; font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); font-weight: 700; color: #a7e05a; line-height: 1; }
.sh-trust-label { font-size: 13px; color: #cbd5e1; margin-top: 6px; }
@media (max-width: 640px){ .sh-trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Brand logo carousel -------------------------------------------------*/
.sh-brands-carousel { position: relative; }
.sh-brands-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; scroll-behavior: smooth; padding: 4px 2px 12px; scrollbar-width: none; -ms-overflow-style: none; }
.sh-brands-track::-webkit-scrollbar { display: none; }
.sh-brand { flex: 0 0 auto; width: 152px; height: 96px; scroll-snap-align: start; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; padding: 14px; transition: .15s; }
.sh-brand:hover { border-color: var(--sf-primary); box-shadow: var(--sf-shadow-hover); transform: translateY(-2px); }
.sh-brand img { max-width: 100%; max-height: 60px; object-fit: contain; }
.sh-brand span { font-weight: 700; color: #374151; font-size: 14px; text-align: center; }
.sh-brands-arrow { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--sf-card-line); background: #fff; box-shadow: var(--sf-shadow); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #0f172a; transition: background .15s, border-color .15s, opacity .18s; }
.sh-brands-arrow:hover { border-color: var(--sf-primary); background: var(--sf-primary-soft); }
.sh-brands-arrow svg { width: 15px; height: 15px; }
.sh-brands-prev { left: -8px; }
.sh-brands-next { right: -8px; }
.sh-brands-arrow[disabled] { opacity: 0; pointer-events: none; }
@media (max-width: 560px){ .sh-brand { width: 132px; height: 88px; } .sh-brands-arrow { display: none; } }

/* ---- Featured deals grid (offers.com-style offer tiles) ------------------*/
.sh-fd-title { text-align: center; font-family: 'Poppins', sans-serif; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 700; color: #0f172a; margin: 0 0 6px; }
.sh-fd-affil { text-align: center; font-size: 12.5px; color: #6b7280; margin: 0 0 24px; }
.sh-fd-affil a { text-decoration: underline; color: #6b7280; }
.sh-fd-affil a:hover { color: #111827; }
.sh-fd-sub { font-size: 18px; font-weight: 700; color: #0f172a; margin: 0; }
.sh-fd-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sh-fd-card { position: relative; display: flex; flex-direction: column; height: 360px; background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; overflow: hidden; text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s, border-color .15s; }
.sh-fd-card:hover { box-shadow: var(--sf-shadow-hover); transform: translateY(-3px); border-color: var(--sf-primary); }
.sh-fd-flag { position: absolute; left: 0; top: 0; z-index: 2; background: #0f172a; color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 5px 12px; border-top-left-radius: 16px; border-bottom-right-radius: 16px; }
.sh-fd-flag.sh-fd-flag-code { background: var(--sf-primary-dark); }
.sh-fd-media { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; padding: 18px; }
.sh-fd-media img { width: 120px; height: 120px; border-radius: 50%; border: 1px solid var(--sf-card-line); background: #fff; object-fit: contain; padding: 12px; box-shadow: 0 2px 8px rgba(8,67,63,.06); }
.sh-fd-badge { position: absolute; bottom: 8px; right: 8px; background: #fff; border: 1px solid var(--sf-line); border-radius: 999px; box-shadow: 0 3px 8px rgba(8,67,63,.12); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding: 5px 12px; color: #0f172a; }
.sh-fd-body { position: relative; flex: 1; padding: 0 14px 14px; display: flex; flex-direction: column; }
.sh-fd-body::before { content: ""; display: block; width: 76%; height: 1px; background: #e5e7eb; margin: 0 auto 12px; }
.sh-fd-store { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: #334155; margin: 0 0 6px; }
.sh-fd-name { font-size: 14px; color: #111827; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sh-fd-foot { margin-top: auto; padding-top: 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--sf-primary-dark); display: inline-flex; align-items: center; gap: 5px; }
@media (max-width: 1000px){ .sh-fd-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px){ .sh-fd-grid { grid-template-columns: repeat(2, 1fr); } .sh-fd-card { height: auto; min-height: 300px; } .sh-fd-media { height: 130px; } }

/* ---- Horizontal scroll rail (top coupons) --------------------------------*/
.sh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.sh-rail::-webkit-scrollbar { height: 8px; }
.sh-rail::-webkit-scrollbar-thumb { background: #d7ded0; border-radius: 999px; }
.sh-coupon { scroll-snap-align: start; background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.sh-coupon:hover { border-color: var(--sf-primary); box-shadow: var(--sf-shadow-hover); }
.sh-coupon-top { display: flex; align-items: center; gap: 12px; }
.sh-coupon-logo { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--sf-line); background: #fff; object-fit: contain; padding: 5px; flex: 0 0 auto; }
.sh-coupon-store { font-weight: 700; color: #0f172a; font-size: 15px; }
.sh-coupon-type { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--sf-primary-dark); }
.sh-coupon-title { font-size: 15px; font-weight: 600; color: #111827; line-height: 1.4; min-height: 42px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-coupon-cta { margin-top: auto; }
.sh-coupon-cta .sf-btn { width: 100%; }

/* ---- Slickdeals-style hottest deals grid ---------------------------------*/
.sh-deal-tabs { display: inline-flex; background: #eef1ea; border-radius: 999px; padding: 4px; gap: 2px; }
.sh-deal-tab { border: 0; background: transparent; font-size: 13.5px; font-weight: 600; color: #4b5563; padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.sh-deal-tab.sh-on { background: #fff; color: var(--sf-primary-dark); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.sh-deals-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px){ .sh-deals-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px){ .sh-deals-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px){ .sh-deals-grid { grid-template-columns: repeat(2, 1fr); } }
.sh-deal { background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: .15s; }
.sh-deal:hover { border-color: var(--sf-primary); box-shadow: var(--sf-shadow-hover); }
/* header: source (store) avatar + name + featured tag */
.sh-deal-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 8px; }
.sh-deal-avatar { width: 24px; height: 24px; border-radius: 999px; object-fit: contain; border: 1px solid var(--sf-line); background: #fff; flex: 0 0 auto; }
.sh-deal-src { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.sh-deal-srcname { font-size: 12px; font-weight: 600; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.sh-deal-srcsub { font-size: 10.5px; color: #9ca3af; }
/* image + badge */
.sh-deal-media { position: relative; aspect-ratio: 1 / 1; background: #ffffff; display: flex; align-items: center; justify-content: center; padding: 12px; }
.sh-deal-media img { max-width: 90%; max-height: 90%; object-fit: contain; }
.sh-deal-badge { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 3px 8px; border-radius: 6px; color: #fff; }
.sh-deal-badge-new { background: #ea580c; }
.sh-deal-badge-hot { background: #dc2626; }
.sh-deal-badge-off { background: var(--sf-primary-dark); }
/* body */
.sh-deal-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.sh-deal-title { font-size: 13.5px; font-weight: 500; color: #0f172a; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-deal-title a { color: inherit; }
.sh-deal-title a:hover { color: var(--sf-primary-dark); }
.sh-deal-prices { display: flex; align-items: baseline; gap: 7px; margin-top: 2px; }
.sh-deal-price { font-family: 'Poppins', sans-serif; font-size: 18px; font-weight: 700; color: #0f172a; }
.sh-deal-old { font-size: 12.5px; color: #9ca3af; text-decoration: line-through; }
.sh-deal-fire { color: #dc2626; font-size: 13px; }
.sh-deal-store { font-size: 12px; color: #6b7280; }
.sh-deal-foot { margin-top: auto; padding-top: 9px; border-top: 1px solid var(--sf-line); display: flex; align-items: center; justify-content: space-between; }
.sh-deal-cta { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--sf-primary-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
.sh-deal-share { border: 0; background: transparent; color: #9ca3af; cursor: pointer; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.sh-deal-share:hover { color: var(--sf-primary-dark); background: var(--sf-primary-soft); }
.sh-deal-foot-right { display: inline-flex; align-items: center; gap: 6px; }
.sh-deal-like { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--sf-line); background: #fff; color: #6b7280; cursor: pointer; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 600; transition: .15s; }
.sh-deal-like:hover { border-color: var(--sf-primary); color: var(--sf-primary-dark); }
.sh-deal-like.sh-liked { background: var(--sf-primary-soft); border-color: var(--sf-primary); color: var(--sf-primary-dark); }
.sh-deal-like.sh-liked i { font-weight: 900; }
.sh-deal-like-count { min-width: 8px; }

/* ---- Category tiles ------------------------------------------------------*/
.sh-cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 900px){ .sh-cats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .sh-cats { grid-template-columns: repeat(2, 1fr); } }
.sh-cat { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; padding: 20px 12px; transition: .15s; text-decoration: none; }
.sh-cat, .sh-cat:hover, .sh-cat * { text-decoration: none; }
.sh-cat:hover { border-color: var(--sf-primary); box-shadow: var(--sf-shadow-hover); transform: translateY(-2px); }
.sh-cat-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sf-primary-soft); color: var(--sf-primary-dark); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.sh-cat-name { font-weight: 600; color: #111827; font-size: 14px; }
.sh-cat-count { font-size: 12px; color: #9ca3af; }

/* ---- How it works --------------------------------------------------------*/
.sh-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px){ .sh-how { grid-template-columns: 1fr; } }
.sh-how-card { background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; padding: 24px; position: relative; }
.sh-how-num { position: absolute; top: 18px; right: 20px; font-family: 'Poppins', sans-serif; font-size: 40px; font-weight: 700; color: #eef1ea; line-height: 1; }
.sh-how-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--sf-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; }
.sh-how-card h3 { font-size: 17px; color: #0f172a; margin: 0 0 6px; }
.sh-how-card p { font-size: 14px; color: #6b7280; line-height: 1.6; margin: 0; }

/* ---- Testimonials --------------------------------------------------------*/
.sh-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px){ .sh-reviews { grid-template-columns: 1fr; } }
.sh-review { background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; padding: 24px; }
.sh-stars { color: #f59e0b; font-size: 15px; letter-spacing: 1px; margin-bottom: 10px; }
.sh-review p { font-size: 14.5px; color: #374151; line-height: 1.65; margin: 0 0 14px; }
.sh-review-by { display: flex; align-items: center; gap: 10px; }
.sh-review-av { width: 38px; height: 38px; border-radius: 999px; background: var(--sf-primary-soft); color: var(--sf-primary-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.sh-review-name { font-weight: 600; color: #0f172a; font-size: 14px; }
.sh-review-src { font-size: 12px; color: #9ca3af; }

/* ---- Latest stores (plain multi-column name list) ------------------------*/
.sh-lstore-list { columns: 5; column-gap: 36px; }
.sh-lstore-link { display: block; padding: 8px 0; color: #374151; font-size: 14px; line-height: 1.4; text-decoration: none; break-inside: avoid; transition: color .15s; }
.sh-lstore-link:hover { color: var(--sf-primary-dark); }
@media (max-width: 1000px){ .sh-lstore-list { columns: 4; } }
@media (max-width: 760px){ .sh-lstore-list { columns: 3; } }
@media (max-width: 520px){ .sh-lstore-list { columns: 2; column-gap: 20px; } }

/* ---- FAQ (full width, 2 per row) -----------------------------------------*/
.sh-faq-full .sf-faq-list { grid-template-columns: repeat(2, 1fr); gap: 12px; align-items: start; }
@media (max-width: 720px){ .sh-faq-full .sf-faq-list { grid-template-columns: 1fr; } }

/* ---- Latest from the blog ------------------------------------------------*/
.sh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sh-blog-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--sf-card-line); border-radius: 16px; overflow: hidden; text-decoration: none; }
.sh-blog-card:hover { box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary); transform: translateY(-4px); }
.sh-blog-img { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--sf-primary-soft); overflow: hidden; }
.sh-blog-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--sh-ease); }
.sh-blog-card:hover .sh-blog-img img { transform: scale(1.05); }
.sh-blog-ph { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: var(--sf-primary-dark); font-size: 34px; opacity: .45; }
.sh-blog-img-empty .sh-blog-ph { display: flex; }
.sh-blog-cat { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.95); color: var(--sf-primary-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 4px 11px; border-radius: 999px; box-shadow: 0 2px 8px rgba(8,67,63,.12); }
.sh-blog-body { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; flex: 1; }
.sh-blog-title { font-family: 'Poppins', sans-serif; font-size: 16px; font-weight: 600; color: #0f172a; line-height: 1.35; letter-spacing: -.01em; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-blog-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--sf-muted); padding-top: 12px; border-top: 1px solid var(--sf-line); }
.sh-blog-author { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.sh-blog-av { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 999px; background: var(--sf-primary-soft); color: var(--sf-primary-dark); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; }
.sh-blog-author-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.sh-blog-author-txt b { font-size: 12.5px; font-weight: 600; color: var(--sf-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px; }
.sh-blog-author-txt small { font-size: 11.5px; color: var(--sf-muted); }
.sh-blog-read { color: var(--sf-primary-dark); font-weight: 700; white-space: nowrap; }
@media (max-width: 900px){ .sh-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px){ .sh-blog-grid { grid-template-columns: 1fr; max-width: 440px; margin-inline: auto; } }

/* ==========================================================================
   Polish layer — editorial detailing & micro-interactions (no layout changes)
   ==========================================================================*/
:root { --sh-ease: cubic-bezier(.2,.7,.3,1); }

/* section titles: subtle green accent bar + tighter, more confident type */
.sh-head { margin-bottom: 22px; }
.sh-head h2 { position: relative; padding-left: 15px; letter-spacing: -.015em; }
.sh-head h2::before { content: ""; position: absolute; left: 0; top: .16em; bottom: .16em; width: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--sf-primary), var(--sf-primary-dark)); }
.sh-head p { margin-top: 6px; }

/* "see all" link: quieter default, confident hover with a nudge */
.sh-seeall { display: inline-flex; align-items: center; gap: 4px; color: var(--sf-primary-dark); transition: gap .18s var(--sh-ease), opacity .15s; }
.sh-seeall:hover { text-decoration: none; gap: 8px; opacity: .85; }

/* unified, smoother card motion */
.sh-brand, .sh-coupon, .sh-deal, .sh-fd-card, .sh-cat, .sh-how-card, .sh-review {
  transition: transform .2s var(--sh-ease), box-shadow .2s var(--sh-ease), border-color .15s;
}
.sh-brand:hover, .sh-cat:hover { transform: translateY(-3px); }
.sh-deal:hover, .sh-fd-card:hover { transform: translateY(-4px); }

/* how-it-works: lighter number watermark, softer icon, gentle hover */
.sh-how-card { border-radius: 16px; }
.sh-how-card:hover { transform: translateY(-3px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary); }
.sh-how-num { font-size: 46px; color: #eef3e7; font-weight: 800; top: 16px; right: 20px; }
.sh-how-ic { box-shadow: 0 6px 14px rgba(15,118,110,.28); }
.sh-how-card h3 { letter-spacing: -.01em; }

/* testimonials: decorative quote, warmer card, tidy stars */
.sh-review { position: relative; border-radius: 16px; }
.sh-review::before { content: "\201C"; position: absolute; top: 6px; right: 20px; font-family: Georgia, 'Times New Roman', serif; font-size: 64px; line-height: 1; color: var(--sf-primary-soft); pointer-events: none; }
.sh-review:hover { transform: translateY(-3px); box-shadow: var(--sf-shadow-hover); border-color: var(--sf-primary); }
.sh-review p { position: relative; z-index: 1; color: #334155; }
.sh-stars { letter-spacing: 2px; }
.sh-review-av { box-shadow: 0 3px 8px rgba(15,118,110,.2); }

/* brand tiles: a touch more presence on hover */
.sh-brand:hover img { filter: none; }

/* hero dots: smoother, clearer active state */
.shc-dot { transition: background .2s var(--sh-ease), transform .2s var(--sh-ease); }
.shc-dot.sh-on { transform: scaleX(1.05); }

/* deal cards: crisper price + tidier footer rhythm */
.sh-deal-price { letter-spacing: -.02em; }
.sh-deal-foot { padding-top: 10px; }

/* featured tiles: flag + badge sit a little more deliberately */
.sh-fd-flag { letter-spacing: .04em; }
.sh-fd-card { transition: transform .2s var(--sh-ease), box-shadow .2s var(--sh-ease), border-color .15s; }

@media (prefers-reduced-motion: reduce) {
  .sh-brand, .sh-coupon, .sh-deal, .sh-fd-card, .sh-cat, .sh-how-card, .sh-review, .sh-seeall, .shc-dot { transition: none; }
  .sh-brand:hover, .sh-cat:hover, .sh-deal:hover, .sh-fd-card:hover, .sh-how-card:hover, .sh-review:hover { transform: none; }
}

/* ============================================================
   Stores index pages (stores.php + stores-char.php) — .st-*
   Built on the shared design tokens, matches the homepage look.
   ============================================================ */
.st-top{width:85%;margin-inline:auto;padding-top:16px;}
.st-hero{background:linear-gradient(180deg,var(--sf-primary-soft),#fff);border:1px solid var(--sf-card-line);border-radius:22px;padding:34px 20px 30px;text-align:center;margin:6px 0 4px;}
.st-hero h1{font-family:'Poppins',sans-serif;font-size:clamp(1.6rem,1.2rem + 1.6vw,2.4rem);font-weight:700;color:var(--sf-ink);margin:0 0 8px;letter-spacing:-.02em;}
.st-hero p{color:var(--sf-muted);font-size:15px;max-width:560px;margin:0 auto 18px;line-height:1.55;}
.st-searchwrap{max-width:540px;margin:0 auto;position:relative;}
.st-searchwrap .st-ic{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:#9ca3af;pointer-events:none;}
.st-search{width:100%;height:52px;border:1px solid var(--sf-card-line);border-radius:999px;padding:0 20px 0 46px;font-size:15px;background:#fff;box-shadow:0 6px 16px rgba(8,67,63,.06);outline:none;transition:border-color .15s,box-shadow .15s;}
.st-search:focus{border-color:var(--sf-primary);box-shadow:0 0 0 3px rgba(15,118,110,.18);}
.st-stats{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:16px;}
.st-stat{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--sf-card-line);border-radius:999px;padding:7px 15px;font-size:13.5px;font-weight:600;color:var(--sf-ink-soft);}
.st-stat i{color:var(--sf-primary-dark);}
.st-alpha{display:flex;flex-wrap:wrap;gap:7px;justify-content:center;background:#fff;border:1px solid var(--sf-card-line);border-radius:16px;padding:14px;box-shadow:0 4px 14px rgba(8,67,63,.05);}
.st-alpha a{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--sf-card-line);font-weight:700;font-size:14px;color:var(--sf-ink-soft);text-decoration:none;transition:.15s;}
.st-alpha a:hover{background:var(--sf-primary);border-color:var(--sf-primary);color:#fff;transform:translateY(-1px);}
.st-alpha a.st-num{width:auto;padding:0 13px;}
.st-alpha a.st-on{background:var(--sf-primary);border-color:var(--sf-primary);color:#fff;}
.st-az{display:grid;gap:16px;margin-top:18px;}
.st-card{background:#fff;border:1px solid var(--sf-card-line);border-radius:18px;padding:18px 18px 14px;transition:box-shadow .18s;scroll-margin-top:16px;}
.st-card:hover{box-shadow:var(--sf-shadow-hover);}
.st-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid var(--sf-line);}
.st-card-head .st-lwrap{display:flex;align-items:center;gap:12px;}
.st-letter{display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:var(--sf-primary-soft);color:var(--sf-primary-dark);font-family:'Poppins',sans-serif;font-weight:700;font-size:19px;}
.st-more{font-size:13.5px;font-weight:600;color:var(--sf-primary-dark);white-space:nowrap;display:inline-flex;align-items:center;gap:4px;text-decoration:none;}
.st-more:hover{text-decoration:underline;}
.st-links{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:6px;}
.st-link{display:flex;align-items:center;gap:11px;padding:8px 10px;border-radius:12px;color:var(--sf-ink);text-decoration:none;font-size:14.5px;font-weight:500;transition:background .13s;min-width:0;}
.st-link:hover{background:var(--sf-primary-soft);}
.st-link-logo{flex:0 0 auto;width:34px;height:34px;border-radius:9px;border:1px solid var(--sf-card-line);background:#fff;object-fit:contain;padding:3px;}
.st-link span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.st-noresults{text-align:center;color:var(--sf-muted);font-size:14.5px;padding:26px;background:#fff;border:1px dashed var(--sf-card-line);border-radius:16px;}
@media(max-width:640px){.st-top,.sh-wrap{width:92%;}.st-hero{padding:26px 14px;}.st-links{grid-template-columns:1fr;}}

/* Live-search dropdown for the stores-index hero (reuses search.php output) */
.st-results{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border:1px solid var(--sf-card-line);border-radius:16px;box-shadow:var(--sf-shadow-hover);overflow:hidden auto;max-height:360px;z-index:40;text-align:left;display:none;}
.st-results.st-show{display:block;}
.st-results .display_box{border-bottom:1px solid var(--sf-line);}
.st-results .display_box:last-child{border-bottom:0;}
.st-results .display_box a{display:flex;align-items:center;gap:12px;padding:10px 14px;color:var(--sf-ink);text-decoration:none;transition:background .12s;}
.st-results .display_box a:hover{background:var(--sf-primary-soft);}
.st-results .display_box a br{display:none;}
.st-results .searchimgfunc{flex:0 0 auto;width:38px;height:38px;border-radius:9px;border:1px solid var(--sf-card-line);object-fit:contain;padding:3px;background:#fff;}
.st-results .name{font-size:14.5px;font-weight:600;}
.st-results .name b{color:var(--sf-primary-dark);}
.st-results .clear{display:none;}
.st-results-empty{padding:16px;color:var(--sf-muted);font-size:14px;text-align:center;}
