/*
Theme Name: Huisdier Store
Theme URI: https://huisdier-store.nl
Author: Solutio Design
Author URI: https://solutiodesign.nl
Description: Custom, licht affiliate-blogthema voor Huisdier Store. Speels-rond design in royal blue, amber en coral. Bevat affiliate-productblokken (shortcodes), automatische affiliate-disclosure en REST-API-vriendelijke opmaak.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: huisdier-store
*/

/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --royal: #1E34C8;
  --royal-link: #2745DE;
  --navy: #1E2A78;
  --footer: #2740CC;
  --amber: #F5A623;
  --amber-ink: #B26A08;
  --coral: #E85E6E;
  --sky: #E9F0FB;
  --sky-2: #DCE8F8;
  --ink: #2C3550;
  --ink-2: #414963;
  --muted: #6C7690;
  --line: #E4E9F2;
  --green: #3BB273;
  --white: #ffffff;
  --radius-card: 22px;
  --radius-pill: 30px;
  --shadow-sm: 0 10px 24px rgba(30,52,200,.06);
  --shadow-md: 0 16px 34px rgba(30,52,200,.10);
  --shadow-nav: 0 10px 30px rgba(39,69,222,.10);
  --maxw: 1180px;
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5 { font-family: 'Fredoka', 'Nunito', sans-serif; margin: 0 0 .4em; color: var(--royal); line-height: 1.15; }
p { margin: 0 0 1em; }
a { color: var(--royal-link); text-decoration: none; }
a:hover { color: var(--royal); }
img { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }

.hs-container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.hs-eyebrow { font-weight: 800; color: var(--amber-ink); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* Buttons */
.hs-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--amber); color: var(--navy);
  font-weight: 800; font-size: 16px; padding: 15px 28px;
  border-radius: var(--radius-pill); border: none; cursor: pointer;
  box-shadow: 0 10px 22px rgba(245,166,35,.30); transition: transform .12s ease;
}
.hs-btn:hover { color: var(--navy); transform: translateY(-2px); }
.hs-btn--ghost {
  background: transparent; color: var(--royal-link);
  border: 2px solid var(--royal-link); box-shadow: none;
}
.hs-btn--ghost:hover { color: var(--royal); }
.hs-btn--blue { background: var(--royal-link); color: #fff; box-shadow: 0 10px 22px rgba(39,69,222,.25); }
.hs-btn--blue:hover { color: #fff; }
.hs-link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--amber-ink); font-weight: 800; }

/* ============================================================
   Header / nav
   ============================================================ */
.hs-header { background: var(--sky); }
.hs-header--plain { background: var(--white); }
.hs-nav-wrap { padding: 28px 0 0; }
.hs-nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; background: var(--white); border-radius: 44px;
  box-shadow: var(--shadow-nav); padding: 0 16px 0 22px;
}
.hs-brand { display: flex; align-items: center; gap: 12px; }
.hs-brand-badge {
  width: 44px; height: 44px; background: var(--amber); border-radius: 13px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hs-brand-name { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 700; color: var(--navy); }
.hs-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.hs-menu a { font-weight: 700; color: var(--ink); padding: 10px 16px; font-size: 16px; border-radius: 20px; }
.hs-menu a:hover, .hs-menu .current-menu-item > a, .hs-menu .current_page_item > a { color: var(--amber-ink); }
.hs-nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }

/* ============================================================
   Hero (home)
   ============================================================ */
.hs-hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.hs-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hs-badge-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff;
  border-radius: 30px; padding: 8px 16px; box-shadow: 0 6px 18px rgba(39,69,222,.08);
  font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 22px;
}
.hs-badge-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.hs-hero h1 { font-size: clamp(34px, 4vw, 52px); color: var(--royal); letter-spacing: -.01em; }
.hs-hero .lead { font-size: 18px; color: #54607C; max-width: 480px; }
.hs-hero-cta { display: flex; align-items: center; gap: 24px; margin-top: 34px; flex-wrap: wrap; }
.hs-hero-stats { display: flex; gap: 30px; margin-top: 44px; flex-wrap: wrap; }
.hs-hero-stats .num { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 700; color: var(--royal); }
.hs-hero-stats .lab { font-size: 14px; color: var(--muted); font-weight: 600; }
.hs-hero-stats .sep { width: 1px; background: #D5DEEE; }
.hs-hero-media {
  height: 480px; border-radius: 32px; overflow: hidden; position: relative;
  background: linear-gradient(150deg,#C9D8F5,#EAD9C4); box-shadow: 0 24px 50px rgba(30,52,200,.16);
}
.hs-hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Decorative paw */
.hs-paw { position: absolute; opacity: .06; pointer-events: none; z-index: 0; }

/* ============================================================
   Sections
   ============================================================ */
.hs-section { padding: 72px 0; }
.hs-section--sky { background: var(--sky); }
.hs-section--sky2 { background: var(--sky-2); }
.hs-section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.hs-section-head h2 { font-size: clamp(28px, 3vw, 40px); }
.hs-section-head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ============================================================
   Post cards
   ============================================================ */
.hs-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 32px; }
.hs-card {
  background: #fff; border: 1px solid #E9EDF6; border-radius: var(--radius-card);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.hs-card-media { aspect-ratio: 16/9; background: linear-gradient(140deg,#C9D8F5,#5C7BD9); position: relative; }
.hs-card-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.hs-cat-chip {
  position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92);
  color: var(--royal-link); font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 20px;
}
.hs-card-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.hs-card-body h3 { font-size: 21px; font-weight: 600; color: var(--coral); }
.hs-card-body h3 a { color: var(--coral); }
.hs-card-body h3 a:hover { color: #d0485a; }
.hs-meta { font-size: 13px; font-weight: 700; color: #9AA3B8; margin: 10px 0; letter-spacing: .03em; text-transform: uppercase; }
.hs-card-body p { font-size: 15px; color: var(--muted); }
.hs-card-body .hs-link-arrow { margin-top: auto; }

/* ============================================================
   Blog / archive filter bar
   ============================================================ */
.hs-page-head { background: var(--sky); padding: 44px 0 56px; text-align: center; position: relative; overflow: hidden; }
.hs-crumbs { font-size: 14px; font-weight: 700; color: var(--muted); }
.hs-crumbs a { color: var(--muted); }
.hs-page-head h1 { font-size: clamp(32px, 4vw, 48px); margin-top: 12px; }
.hs-filter {
  background: #fff; border: 1px solid #E9EDF6; border-radius: 22px; box-shadow: 0 14px 34px rgba(30,52,200,.08);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: -28px; position: relative; z-index: 2;
}
.hs-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.hs-chip { background: #F1F4FB; color: var(--ink); font-weight: 700; font-size: 15px; padding: 11px 20px; border-radius: 24px; }
.hs-chip:hover, .hs-chip--active { background: var(--royal-link); color: #fff; }
.hs-chip--active:hover { color: #fff; }

/* Pagination */
.hs-pagination { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 52px; }
.hs-pagination .page-numbers {
  min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px; border: 1px solid var(--line); color: var(--ink); font-weight: 700; padding: 0 12px;
}
.hs-pagination .page-numbers.current { background: var(--royal-link); color: #fff; border-color: var(--royal-link); }
.hs-pagination .page-numbers:hover { border-color: var(--royal-link); color: var(--royal-link); }
.hs-pagination .page-numbers.current:hover { color: #fff; }

/* ============================================================
   Single post
   ============================================================ */
.hs-article-head { background: var(--sky); padding: 40px 0; text-align: center; }
.hs-article-head .hs-container { max-width: 820px; }
.hs-cat-badge { display: inline-block; background: var(--royal-link); color: #fff; font-size: 13px; font-weight: 800; padding: 7px 16px; border-radius: 20px; margin: 16px 0; }
.hs-article-head h1 { font-size: clamp(30px, 4vw, 46px); }
.hs-article-meta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: 16px; }
.hs-article-hero { max-width: var(--maxw); margin: -8px auto 0; padding: 0 24px; }
.hs-article-hero .media { aspect-ratio: 21/9; border-radius: 28px; overflow: hidden; background: linear-gradient(140deg,#E7C9A0,#9A6B3F); box-shadow: 0 24px 50px rgba(30,52,200,.14); }
.hs-article-hero .media img { width: 100%; height: 100%; object-fit: cover; }

.hs-article-layout { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 64px; padding: 44px 0 0; }
.hs-article-body { font-size: 17px; color: var(--ink-2); line-height: 1.75; }
.hs-article-body > h2 { font-size: 28px; font-weight: 600; margin: 40px 0 12px; }
.hs-article-body > h3 { font-size: 22px; font-weight: 600; color: var(--navy); margin: 30px 0 10px; }
.hs-article-body a { color: var(--royal-link); text-decoration: underline; text-decoration-color: rgba(39,69,222,.3); }
.hs-article-body img { border-radius: 16px; margin: 24px 0; }
.hs-article-body ul, .hs-article-body ol { padding-left: 22px; }
.hs-article-body blockquote { border-left: 4px solid var(--amber); background: #FFF7E9; margin: 24px 0; padding: 16px 22px; border-radius: 0 14px 14px 0; }

.hs-sidebar { }
.hs-sidebar .sticky { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 20px; }
.hs-widget { border-radius: 22px; padding: 24px; }
.hs-widget--toc { background: #F1F4FB; }
.hs-widget--tip { background: var(--royal-link); color: #fff; position: relative; overflow: hidden; }
.hs-widget--tip h4, .hs-widget--tip { color: #fff; }
.hs-widget--news { background: var(--sky-2); }
.hs-widget h4 { font-size: 17px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.hs-toc a { display: block; font-size: 15px; color: var(--muted); font-weight: 600; padding: 8px 0 8px 16px; }
.hs-toc a:first-child { color: var(--ink-2); font-weight: 700; border-left: 3px solid var(--royal-link); }

/* Author + related */
.hs-author { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-top: 36px; }
.hs-author .avatar { width: 64px; height: 64px; border-radius: 50%; background: #C9D8F5; flex-shrink: 0; overflow: hidden; }
.hs-author .name { font-family: 'Fredoka', sans-serif; font-size: 18px; font-weight: 600; color: var(--navy); }
.hs-related { background: var(--sky); margin-top: 56px; padding: 56px 0; }

/* ============================================================
   Affiliate blocks (shortcodes)
   ============================================================ */
.hs-disclosure {
  display: flex; gap: 14px; background: #FFF7E9; border: 1px solid #F6E1B8;
  border-radius: 18px; padding: 16px 20px; margin: 0 0 32px;
}
.hs-disclosure svg { flex-shrink: 0; margin-top: 1px; }
.hs-disclosure p { margin: 0; font-size: 14px; line-height: 1.6; color: #7A5B1E; }
.hs-disclosure strong { color: #5E4514; }

.hs-product {
  border: 2px solid var(--royal-link); border-radius: 24px; overflow: hidden;
  margin: 24px 0; box-shadow: var(--shadow-md); background: #fff;
}
.hs-product__label { background: var(--royal-link); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .04em; padding: 9px 22px; }
.hs-product--green .hs-product__label { background: var(--green); }
.hs-product--coral .hs-product__label { background: var(--coral); }
.hs-product__body { display: flex; gap: 22px; padding: 24px; align-items: flex-start; }
.hs-product__img { width: 190px; height: 190px; border-radius: 18px; flex-shrink: 0; object-fit: cover; background: linear-gradient(140deg,#E7C9A0,#9A6B3F); }
.hs-product__main { flex-grow: 1; }
.hs-product__title { font-family: 'Fredoka', sans-serif; font-size: 22px; font-weight: 600; color: var(--navy); margin: 0; }
.hs-rating { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.hs-stars { display: inline-flex; gap: 2px; }
.hs-rating .txt { font-size: 14px; font-weight: 700; color: var(--muted); }
.hs-pros { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 14px 0; padding: 0; list-style: none; }
.hs-pros li { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.hs-product__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 16px; flex-wrap: wrap; }
.hs-price small { font-size: 13px; color: #9AA3B8; font-weight: 700; }
.hs-price .amt { font-family: 'Fredoka', sans-serif; font-size: 28px; font-weight: 700; color: var(--navy); }
.hs-product__note { background: #F6F8FD; padding: 9px 24px; font-size: 12px; color: #9AA3B8; font-weight: 600; }

/* compact product cards grid */
.hs-products { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; margin: 22px 0; }
.hs-pcard { border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-sm); background: #fff; }
.hs-pcard__label { color: #fff; font-size: 12px; font-weight: 800; padding: 8px 18px; background: var(--royal-link); }
.hs-pcard--green .hs-pcard__label { background: var(--green); }
.hs-pcard--coral .hs-pcard__label { background: var(--coral); }
.hs-pcard--amber .hs-pcard__label { background: var(--amber); color: var(--navy); }
.hs-pcard__inner { padding: 20px; }
.hs-pcard__img { width: 100%; aspect-ratio: 16/10; border-radius: 16px; object-fit: cover; margin-bottom: 16px; background: linear-gradient(140deg,#C9D8F5,#5C7BD9); }
.hs-pcard h4 { font-size: 19px; font-weight: 600; color: var(--navy); margin: 0; }
.hs-pcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; gap: 10px; }

/* ============================================================
   Over-section (home)
   ============================================================ */
.hs-about { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.hs-about__text { background: var(--sky-2); padding: 72px; display: flex; flex-direction: column; justify-content: center; }
.hs-about__text .inner { max-width: 470px; margin-left: auto; }
.hs-about__media { background: linear-gradient(150deg,#B9C9EC,#E4CDB0); min-height: 500px; position: relative; }
.hs-about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-tags { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hs-tag { display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 16px; border-radius: 24px; font-weight: 700; font-size: 14px; color: var(--ink); }

/* ============================================================
   CTA band
   ============================================================ */
.hs-cta {
  background: var(--royal-link); border-radius: 32px; padding: 44px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  position: relative; overflow: hidden; flex-wrap: wrap;
}
.hs-cta h3 { color: #fff; font-size: 28px; }
.hs-cta p { color: #C4CEF4; margin: 8px 0 0; }
.hs-newsletter-form { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }
.hs-newsletter-form input {
  height: 52px; border: none; border-radius: 28px; padding: 0 22px; font-size: 15px;
  font-family: 'Nunito', sans-serif; min-width: 240px; color: var(--ink);
}

/* ============================================================
   Footer
   ============================================================ */
.hs-footer { background: var(--footer); color: #C4CEF4; position: relative; overflow: hidden; padding: 72px 0 32px; }
.hs-footer h4 { color: #fff; font-size: 17px; font-weight: 600; margin-bottom: 16px; }
.hs-footer a { color: #C4CEF4; }
.hs-footer a:hover { color: #fff; }
.hs-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px; }
.hs-footer .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hs-footer .brand .hs-brand-name { color: #fff; }
.hs-footer ul { list-style: none; margin: 0; padding: 0; }
.hs-footer li { margin-bottom: 12px; font-weight: 600; font-size: 15px; }
.hs-footer-form { display: flex; gap: 10px; }
.hs-footer-form input { flex-grow: 1; height: 50px; border: none; border-radius: 26px; padding: 0 20px; font-size: 15px; font-family: 'Nunito', sans-serif; color: var(--ink); }
.hs-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding-top: 24px; }
.hs-footer-bottom .copy { font-size: 14px; color: #A9B6EE; font-weight: 600; }
.hs-pays { display: flex; gap: 8px; }
.hs-pay { width: 44px; height: 30px; background: #fff; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hs-hero-grid { grid-template-columns: 1fr; }
  .hs-hero-media { height: 340px; order: -1; }
  .hs-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hs-article-layout { grid-template-columns: 1fr; gap: 40px; }
  .hs-sidebar .sticky { position: static; }
  .hs-about { grid-template-columns: 1fr; }
  .hs-about__text { padding: 48px 24px; }
  .hs-about__text .inner { margin: 0; }
  .hs-about__media { min-height: 320px; }
  .hs-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hs-products { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hs-menu { display: none; }
  .hs-menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; position: absolute;
    top: 92px; left: 24px; right: 24px; background: #fff; border-radius: 22px;
    box-shadow: var(--shadow-nav); padding: 12px; z-index: 20;
  }
  .hs-nav-toggle { display: block; }
  .hs-nav { position: relative; }
  .hs-grid { grid-template-columns: 1fr; }
  .hs-footer-grid { grid-template-columns: 1fr; }
  .hs-product__body { flex-direction: column; }
  .hs-product__img { width: 100%; height: 200px; }
  .hs-section { padding: 48px 0; }
  .hs-about__text { padding: 40px 24px; }
}
