/* ===================================================================
   Husqvarna Shop — theme styles (faithful to live shop.husqvarna.hr / druco)
   =================================================================== */

@font-face{
  font-family:'husqvarna-gothic';
  src:url('https://shop.husqvarna.hr/wp-content/themes/husq-shop/assets/fonts/husqvarna-gothic.woff2') format('woff2'),
      url('https://shop.husqvarna.hr/wp-content/themes/husq-shop/assets/fonts/husqvarna-gothic.woff') format('woff');
  font-weight:normal;font-style:normal;font-display:swap;
}

:root{
  --navy:#273A60;          /* brand navy: bars, buttons, prices, footer */
  --navy-dark:#1f2e4d;     /* hover / PROIZVODI */
  --text:#202020;
  --muted:#6b7280;
  --border:#ebebeb;
  --light:#f6f6f7;
  --white:#fff;
  --stock:#2e7d32;
  --sale:#c0392b;
  --accent:#F47920;        /* Husqvarna orange — non-text accents: badges, icons, shadows */
  --accent-dark:#d9660f;
  /* A11Y: orange used as a BUTTON background with white text must meet 4.5:1 (WCAG 1.4.3).
     --accent (#F47920) on white = 2.76:1, --accent-dark = 3.58:1 — both fail. These darker
     shades keep the Husqvarna orange identity while reaching AA: #B35600 = 4.9:1,
     #8F4400 = 7.0:1 (hover). Brand --accent stays for non-text accents. */
  --accent-btn:#B35600;
  --accent-btn-dark:#8F4400;
  --container:1240px;
  --btn-radius:42px;       /* pill buttons */
  --search-radius:60px;    /* pill search */
  --font:'husqvarna-gothic','Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
}

*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font);font-size:15px;line-height:1.6;letter-spacing:.4px;color:var(--text);background:var(--white)}
a{color:inherit;text-decoration:none}
a:hover{color:var(--navy)}
img{max-width:100%;height:auto}
h1,h2,h3,h4{font-family:var(--font);color:var(--navy);font-weight:700;line-height:1.2}
.hq-container{max-width:var(--container);margin:0 auto;padding:0 24px}
.hq-main{min-height:50vh;padding:28px 0 40px}
svg{width:1em;height:1em;fill:currentColor}

/* ============ Header — top bar (white) ============ */
.hq-topbar{background:var(--white);border-bottom:1px solid var(--border)}
.hq-topbar__inner{display:flex;align-items:center;gap:30px;min-height:70px}
.hq-logo{display:inline-flex;align-items:center}
.hq-logo .hq-logo__img{height:30px;width:auto;max-width:none;display:block}
.hq-topnav{display:flex;align-items:center;gap:26px;font-size:15px}
.hq-topnav a{color:var(--text)}
.hq-topnav a:hover{color:var(--navy)}
.hq-account{margin-left:auto;display:flex;align-items:center;gap:20px}
.hq-iconlink{position:relative;display:inline-flex;color:var(--navy);transition:color .15s,transform .15s}
.hq-iconlink svg{width:23px;height:23px}
.hq-iconlink .la{font-size:23px;line-height:1}
.hq-iconlink:hover{color:var(--accent-dark);transform:translateY(-1px)}
.hq-count{position:absolute;top:-7px;right:-9px;min-width:16px;height:16px;padding:0 4px;border-radius:9px;background:var(--navy);color:#fff;font-size:10px;font-weight:700;line-height:16px;text-align:center;letter-spacing:0}
/* Cart reacts to an add: the count pops (briefly accent), the icon gives a nudge. */
.hq-cart-count.is-bump{animation:hq-bump .5s ease}
.hq-iconlink.is-bump svg{animation:hq-nudge .5s ease}
@keyframes hq-bump{0%{transform:scale(1)}25%{transform:scale(1.4);background:var(--accent)}55%{transform:scale(.88)}100%{transform:scale(1)}}
@keyframes hq-nudge{0%,100%{transform:translateY(0)}30%{transform:translateY(-3px)}60%{transform:translateY(1px)}}
@media(prefers-reduced-motion:reduce){.hq-cart-count.is-bump,.hq-iconlink.is-bump svg{animation:none}}

/* ============ Header — search bar (navy) ============ */
.hq-searchbar{background:var(--navy)}
.hq-searchbar__inner{display:flex;align-items:center;gap:18px;padding:13px 24px}
.hq-menu-toggle{display:inline-flex;align-items:center;gap:9px;background:var(--navy-dark);color:#fff;border:0;border-radius:6px;padding:0 20px;height:46px;font-family:var(--font);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;flex:none}
.hq-menu-toggle svg{width:18px;height:18px}
.hq-search{flex:1;display:flex;position:relative;background:#fff;border-radius:var(--search-radius);height:46px;overflow:hidden}
.hq-search input[type=search]{flex:1;border:0;background:transparent;padding:0 22px;font-family:var(--font);font-size:15px;color:var(--text);outline:none}
.hq-search input[type=search]::placeholder{color:#9aa1ab}
.hq-search__btn{position:absolute;right:4px;top:4px;width:38px;height:38px;border:0;border-radius:50%;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.hq-search__btn svg{width:18px;height:18px}
.hq-phone{display:inline-flex;align-items:center;gap:10px;color:#fff;font-size:12px;line-height:1.25;flex:none}
.hq-phone svg{width:26px;height:26px;opacity:.95}
.hq-phone:hover{color:#fff}
.hq-phone__txt b{font-size:15px;letter-spacing:.3px}

/* ============ Shop archive + product cards ============ */
.hq-shop__header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:8px 0 22px}
/* No text-transform: Croatian capitalises only the first word, so `capitalize`
   turned "Proizvodi na akciji" into "Proizvodi Na Akciji". */
.hq-shop__title{font-size:30px;margin:0}
.hq-shop__toolbar{display:flex;align-items:center;gap:16px;font-size:14px;color:var(--muted)}
.hq-shop__toolbar select{font-family:var(--font);padding:8px 12px;border:1px solid var(--border);border-radius:4px;background:#fff;color:var(--text)}

.hq-product-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.hq-product-card{position:relative;background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;display:flex;flex-direction:column;transition:box-shadow .18s,transform .18s,border-color .18s}
.hq-product-card:hover{box-shadow:0 10px 26px rgba(0,0,0,.10);border-color:#dde2ea;transform:translateY(-3px);z-index:1}
.hq-product-card__img-wrap{position:relative;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-height:0;padding:22px;background:#fff;overflow:hidden}
/* Blur-up: the wrapper shows a tiny blurred LQIP inside its padding box while the
   sharp photo fades in over it. background-origin keeps the LQIP aligned with the
   contained image. */
.hq-product-card__img-wrap.has-lqip{background-repeat:no-repeat;background-position:center;
  background-size:contain;background-origin:content-box}
.hq-product-card__img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;position:relative}
.hq-js .hq-blurup{opacity:0;transition:opacity .5s ease}
.hq-js .hq-blurup.is-loaded{opacity:1}
.hq-badge{position:absolute;top:12px;left:12px;font-size:10px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#fff;padding:4px 9px;border-radius:3px;z-index:2}
.hq-badge--new{background:var(--navy)}
.hq-badge--sale{background:var(--sale);left:auto;right:12px}
.hq-badge--countdown{white-space:nowrap;font-variant-numeric:tabular-nums}  /* živi brojač: bez prijeloma, stabilna širina znamenki */

/* ===== Oznaka kampanje — viseća zastavica (ERP OfferLabel) =====
   Boje po kampanji (--cc traka, --cc2 pruga "jarbola", --ct tekst).
   Nepoznata vrijednost -> neutralna navy (hq-offer--other). */
.hq-offer{position:absolute;top:16px;left:0;z-index:5;display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 46px);
  background:var(--cc,#273A60);color:var(--ct,#fff);border-left:4px solid var(--cc2,#F47920);
  padding:7px 22px 7px 12px;font-weight:700;font-size:12.5px;letter-spacing:.5px;text-transform:uppercase;line-height:1.1;
  box-shadow:0 5px 13px rgba(0,0,0,.18);
  -webkit-clip-path:polygon(0 0,100% 0,calc(100% - 11px) 50%,100% 100%,0 100%);
  clip-path:polygon(0 0,100% 0,calc(100% - 11px) 50%,100% 100%,0 100%)}
.hq-offer__txt{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hq-offer__ico{width:14px;height:14px;flex:none}
.hq-offer--advent{--cc:#0E5A3C;--cc2:#C8A44D;--ct:#fff}
.hq-offer--black {--cc:#141414;--cc2:#F47920;--ct:#fff}
.hq-offer--outlet{--cc:#3E4A57;--cc2:#B9C2CC;--ct:#fff}
.hq-offer--super {--cc:#F47920;--cc2:#273A60;--ct:#1b2540}
.hq-offer--other {--cc:#273A60;--cc2:#F47920;--ct:#fff}
.hq-offer--single{top:18px;font-size:14px;padding:9px 26px 9px 15px;gap:8px}
.hq-offer--single .hq-offer__ico{width:16px;height:16px}
/* koegzistencija: zastavica zauzima gornji-lijevi kut, pa Novo/Akcija bježe */
.hq-has-offer .hq-badge--new{top:52px}
.hq-has-offer .hq-badge--sale{top:auto;bottom:12px;left:12px;right:auto}
.hq-has-offer .hq-badge--new.hq-badge--single{top:60px}
/* PDP: redak uz cijenu koji imenuje kampanju */
.hq-offer-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 2px;padding:9px 13px;border-radius:9px;
  background:#f5f7fa;border:1px solid var(--border)}
@supports (background:color-mix(in srgb,#000 10%,#fff)){
  .hq-offer-note{background:color-mix(in srgb,var(--cc) 9%,#fff);border-color:color-mix(in srgb,var(--cc) 26%,var(--border))}
}
.hq-offer-note__chip{display:inline-flex;align-items:center;gap:6px;flex:none;background:var(--cc);color:var(--ct);border-left:3px solid var(--cc2);
  padding:4px 12px 4px 9px;font-weight:700;font-size:11.5px;letter-spacing:.5px;text-transform:uppercase;
  -webkit-clip-path:polygon(0 0,100% 0,calc(100% - 8px) 50%,100% 100%,0 100%);
  clip-path:polygon(0 0,100% 0,calc(100% - 8px) 50%,100% 100%,0 100%)}
.hq-offer-note__chip .hq-offer__ico{width:13px;height:13px}
.hq-offer-note__txt{font-size:13px;color:#3a4150}
.hq-product-card__body{padding:0 18px 20px;display:flex;flex-direction:column;gap:8px;flex:1}
.hq-product-card__title{font-size:15.5px;font-weight:500;color:var(--navy);margin:0;line-height:1.4;min-height:44px}
.hq-product-card__title a{color:var(--navy)}
.hq-product-card__title a:hover{color:var(--navy)}
.hq-product-card__sku{font-size:12.5px;color:var(--muted);letter-spacing:.3px}
.hq-product-card__price{font-size:20px;font-weight:700;color:var(--navy);letter-spacing:.3px}
.hq-product-card__price del{color:var(--muted);font-weight:400;font-size:15px;margin-right:7px}
.hq-product-card__price ins{text-decoration:none;color:var(--sale)}
.hq-product-card__stock{font-size:13px;font-weight:700;display:flex;align-items:center;gap:6px;margin-top:2px}
.hq-product-card__stock::before{content:"";width:8px;height:8px;border-radius:50%;display:inline-block}
.hq-product-card__stock.is-in{color:#1d6b33}
.hq-product-card__stock.is-in::before{background:#1d8a3f}
.hq-product-card__stock.is-out{color:var(--muted)}
.hq-product-card__stock.is-out::before{background:#c4332b}
.hq-product-card__actions{margin-top:auto;padding-top:6px}

/* buttons — pill, uppercase, navy */
.hq-btn{display:inline-flex;align-items:center;justify-content:center;width:100%;border:1px solid var(--navy);border-radius:var(--btn-radius);padding:12px 18px;font-family:var(--font);font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;cursor:pointer;text-align:center;transition:background .15s,color .15s}
.hq-btn--add-cart{background:var(--navy);color:#fff}
.hq-btn--add-cart:hover{background:var(--navy-dark);border-color:var(--navy-dark);color:#fff}
.hq-btn--secondary{background:#fff;color:var(--navy)}
.hq-btn--secondary:hover{background:var(--navy);color:#fff}

.hq-pagination{display:flex;gap:6px;justify-content:center;margin:34px 0 8px}
.hq-pagination .page-numbers{min-width:42px;text-align:center;padding:9px 12px;border:1px solid var(--border);border-radius:4px;color:var(--navy);font-weight:700}
.hq-pagination .page-numbers.current,.hq-pagination .page-numbers:hover{background:var(--navy);color:#fff;border-color:var(--navy)}

/* ============ Single product ============ */
/* A11Y 1.4.3: darker than --muted so the current-page text clears 4.5:1 on the
   light breadcrumb band. A11Y 1.4.1: underline the links so they are not told
   apart from surrounding text by colour alone. */
.hq-breadcrumb{font-size:13px;color:#4b5563;margin:14px 0 6px;letter-spacing:.3px}
.hq-breadcrumb a{color:var(--navy);text-decoration:underline}
.hq-badge--single{top:14px;left:14px;font-size:12px;padding:5px 12px;right:auto}
.hq-keyspecs{display:flex;gap:28px;flex-wrap:wrap;margin:18px 0;padding:18px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.hq-keyspec{display:flex;flex-direction:column;gap:3px;min-width:84px}
.hq-keyspec__value{font-size:21px;font-weight:700;color:var(--navy);line-height:1.1;letter-spacing:.2px}
.hq-keyspec__label{font-size:12.5px;color:var(--muted);line-height:1.35;max-width:150px}
.hq-stock--in{color:var(--stock);font-weight:700;margin:8px 0 16px}
.hq-stock--out{color:var(--sale);font-weight:700;margin:8px 0 16px}
.hq-stock--choose{color:var(--muted);font-weight:600;margin:8px 0 16px}

/* subtle grey on catalog pages so white cards/panels stand out (images stay white) */
body.post-type-archive-product,body.tax-product_cat,body.single-product{background:#e9ebf0}

/* SweetAlert2 — brand colours/shape */
.swal2-popup{font-family:var(--font);border-radius:14px}
.swal2-title{color:var(--navy);font-size:20px}
.swal2-html-container{color:var(--text)}
.swal2-actions .swal2-styled{border-radius:var(--btn-radius);font-weight:700;text-transform:uppercase;letter-spacing:.5px;font-size:14px;box-shadow:none}
.swal2-styled.swal2-confirm{background:var(--navy)!important}
.swal2-styled.swal2-confirm:hover{background:var(--navy-dark)!important}
.swal2-styled.swal2-cancel{background:#fff!important;color:var(--navy)!important;border:1px solid var(--border)!important}

/* tabs */
.hq-product-tabs{margin-top:30px}
.hq-product-tabs .wc-tabs,.hq-product-tabs ul.tabs{display:flex;gap:0;list-style:none;margin:0;padding:0;border-bottom:2px solid var(--border)}
.hq-product-tabs .wc-tabs li,.hq-product-tabs ul.tabs li{margin:0}
.hq-product-tabs .wc-tabs li a,.hq-product-tabs ul.tabs li a{display:block;padding:12px 18px;color:var(--muted);font-weight:700;font-size:15px;text-transform:uppercase;letter-spacing:.4px}
.hq-product-tabs .wc-tabs li.active a,.hq-product-tabs ul.tabs li.active a{color:var(--navy);border-bottom:2px solid var(--navy);margin-bottom:-2px}
.hq-product-tabs .panel,.hq-product-tabs .woocommerce-Tabs-panel{padding:18px 0}
.hq-product-tabs h2{font-size:18px}

/* tech specs */
.hq-tech-specs{margin-top:6px}
.hq-specs-group{border:1px solid var(--border);margin-bottom:10px}
.hq-specs-group__title{padding:11px 14px;font-weight:700;color:var(--navy);cursor:pointer;background:var(--light);list-style:none}
.hq-specs-group__title::-webkit-details-marker{display:none}
.hq-specs-table{width:100%;border-collapse:collapse;font-size:13px}
.hq-specs-table th{text-align:left;padding:9px 14px;color:var(--muted);font-weight:400;width:46%}
.hq-specs-table td{padding:9px 14px;font-weight:700;color:var(--text)}
.hq-specs-table tr:nth-child(odd){background:var(--light)}
.hq-specs-unit{color:var(--muted)!important;font-weight:400!important;width:64px}
/* "Artikl nije za online prodaju" — sits exactly where the buy button would be, must catch the eye. */
.hq-no-online{display:flex;gap:14px;align-items:flex-start;margin:18px 0 22px;padding:16px 18px;background:#FEF3EC;border:1px solid rgba(244,121,32,.32);border-left:5px solid var(--accent);border-radius:10px}
.hq-no-online__icon{flex:0 0 auto;width:26px;height:26px;color:var(--accent);margin-top:1px}
.hq-no-online__text{display:flex;flex-direction:column;gap:3px}
.hq-no-online__text strong{font-size:16px;font-weight:800;color:var(--accent-dark);letter-spacing:-.01em;line-height:1.3}
.hq-no-online__text span{font-size:14.5px;line-height:1.5;color:var(--navy)}
/* Značajke proizvoda (ERP ProductDescription): sales arguments, two columns on
   desktop. No cards/shadows/icons — it sits between the flat "Opis" and the thin-
   lined spec table, so a third kind of frame would read as a foreign block. The
   column count is FIXED (not auto-fit) so the :nth-child border reset on the first
   row stays correct. */
.hq-znacajke__grid{display:grid;grid-template-columns:1fr;gap:0 40px}
.hq-znacajke__item{padding:14px 0;border-top:1px solid var(--border)}
.hq-znacajke__item:nth-child(1){border-top:0;padding-top:0}
.hq-znacajke__name{font-size:15px;font-weight:700;color:var(--navy);margin:0 0 5px;line-height:1.35;text-transform:none;letter-spacing:normal}
.hq-znacajke__text{font-size:14px;line-height:1.7;color:#3c4653;margin:0}
@media(min-width:760px){.hq-znacajke__grid{grid-template-columns:1fr 1fr}.hq-znacajke__item:nth-child(2){border-top:0;padding-top:0}}
.hq-specsheet__grid{display:grid;grid-template-columns:1fr 1fr;gap:0 52px;margin-top:4px}
.hq-specsheet__grid--single{grid-template-columns:1fr;max-width:640px}
.hq-specsheet__col{min-width:0}
.hq-specsheet__col .hq-specsheet__group + .hq-specsheet__group{margin-top:20px}
/* One column on phones — two columns are too narrow for spec tables there. */
@media(max-width:768px){
  .hq-specsheet__grid{grid-template-columns:1fr;gap:0}
  .hq-specsheet__col + .hq-specsheet__col{margin-top:20px}
}
.hq-specsheet__group h3{font-size:14px;color:var(--navy);margin:14px 0 2px;padding-bottom:9px;border-bottom:2px solid var(--navy)}
.hq-specsheet__group table{width:100%;border-collapse:collapse;font-size:13.5px}
.hq-specsheet__group td{padding:10px 2px;border-bottom:1px solid var(--border)}
.hq-specsheet__group td:first-child{color:var(--muted)}
.hq-specsheet__group td:last-child{text-align:right;font-weight:700;font-variant-numeric:tabular-nums}
.hq-specsheet__col > .hq-specsheet__group:first-child h3{margin-top:0}

/* ============ Footer ============ */
.hq-footer{margin-top:48px}
.hq-footer__main{background:var(--navy);color:#fff}
.hq-footer__inner{display:flex;flex-wrap:wrap;gap:48px;padding:48px 24px}
.hq-footer__col{flex:1;min-width:200px;font-size:15px;line-height:1.9}
.hq-footer__col h4{color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.8px;margin:0 0 14px;font-weight:700}
.hq-footer__col a{color:rgba(255,255,255,.85);display:block;padding:2px 0}
.hq-footer__col a:hover{color:#fff}
.hq-footer__brand p{color:rgba(255,255,255,.8)}
.hq-footer__logo{height:30px;width:auto;margin-bottom:18px;filter:brightness(0) invert(1)}
.hq-footer__brand a{display:inline}
.hq-footer__phone{color:rgba(255,255,255,.85);margin-top:14px}
.hq-footer__phone b{color:#fff;font-size:17px}
.hq-footer__bottom{background:#fff;border-top:1px solid var(--border)}
.hq-footer__bottom-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px;padding:18px 24px}
.hq-social{display:flex;gap:12px}
.hq-social a{display:inline-flex;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.10);color:#fff;align-items:center;justify-content:center;transition:background .18s,transform .18s,color .18s}
.hq-social a:hover{background:var(--accent);color:#fff;transform:translateY(-2px)}
.hq-social .la{font-size:18px;line-height:1}
.hq-footer__copy{color:var(--muted);font-size:13.5px}
.hq-payments{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hq-payments img{height:30px;width:auto;display:block}
.hq-payments .hq-pay-wspay{display:inline-flex}
.hq-payments .hq-pay-wspay img{height:34px}
@media(max-width:560px){.hq-payments{gap:9px;justify-content:center}.hq-payments img{height:26px}.hq-payments .hq-pay-wspay img{height:30px}}
/* Footer „Načini plaćanja" column — icons on the navy footer sit in white chips for legibility. */
.hq-footer__pay p{color:rgba(255,255,255,.78);font-size:13px;line-height:1.6;margin:0 0 14px}
.hq-footer__pay-icons{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.hq-footer__pay-icons a{display:inline-flex}
.hq-footer__pay-icons img{height:24px;width:auto;background:#fff;border-radius:5px;padding:5px;box-sizing:content-box;display:block}

/* ============ Responsive ============ */
@media(max-width:980px){
  .hq-product-grid,.related ul.products,.up-sells ul.products{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:768px){
  .hq-topnav{display:none}
  .hq-topbar__inner{gap:16px;min-height:60px}
  .hq-phone__txt{display:none}
  .hq-product-grid,.related ul.products,.up-sells ul.products{grid-template-columns:1fr 1fr}
  .hq-footer__inner{gap:28px;padding:34px 24px}
  .hq-footer__bottom-inner{justify-content:center;text-align:center}
}
@media(max-width:480px){
  .hq-searchbar__inner{gap:10px;padding:10px 16px}
  .hq-menu-toggle span{display:none}
  .hq-menu-toggle{padding:0 14px}
}

/* ============ Homepage hero ============ */
.hq-hero-slider{position:relative;width:100%;margin:0 0 6px;overflow:hidden}
.hq-hero-slider.is-slider .hq-hero{position:absolute;inset:0;opacity:0;transition:opacity .6s ease;pointer-events:none}
.hq-hero-slider.is-slider .hq-hero.is-active{position:relative;opacity:1;pointer-events:auto}
.hq-hero__dots{position:absolute;left:0;right:0;bottom:14px;display:flex;align-items:center;justify-content:center;gap:2px;z-index:4}
/* A11Y 2.5.8: 24x24 tappable target; the visible 10px dot is drawn with ::before. */
.hq-hero__dot{width:24px;height:24px;border:0;background:transparent;cursor:pointer;padding:0;display:inline-flex;align-items:center;justify-content:center}
.hq-hero__dot::before{content:"";width:10px;height:10px;border-radius:50%;background:rgba(255,255,255,.5);transition:background .15s}
.hq-hero__dot.is-active::before{background:#fff}
/* A11Y 2.2.2: pause/play control for the auto-rotating hero (added by main.js). */
.hq-hero__playpause{width:28px;height:28px;margin-left:6px;border:0;border-radius:50%;background:rgba(0,0,0,.38);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;font-size:13px;line-height:1}
.hq-hero__playpause:hover{background:rgba(0,0,0,.6)}
.hq-trustbar{background:#fff;border-top:1px solid var(--border);border-bottom:1px solid var(--border)}
.hq-trustbar__inner{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:24px 0}
.hq-trust{display:flex;align-items:center;gap:15px;padding:2px 28px}
.hq-trust+.hq-trust{border-left:1px solid var(--border)}
/* Rounded-square navy badge — same treatment as the "Zašto kupiti" icons. */
.hq-trust__icon{flex:none;width:46px;height:46px;border-radius:12px;background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(39,58,96,.20)}
.hq-trust__icon .la{font-size:22px;line-height:1}
.hq-trust__txt{display:flex;flex-direction:column;line-height:1.35}
.hq-trust__txt strong{font-size:15px;font-weight:700;color:var(--text);letter-spacing:-.1px}
.hq-trust__txt span{font-size:13px;color:var(--muted);margin-top:1px}
@media(max-width:780px){.hq-trustbar__inner{grid-template-columns:repeat(2,1fr);gap:16px 10px}
  .hq-trust{padding:0;border-left:0}}
@media(max-width:430px){.hq-trustbar__inner{grid-template-columns:1fr}}
.hq-hero{position:relative;min-height:560px;display:flex;align-items:center;color:#fff;overflow:hidden}
/* Background lives on its own layer so it can slowly drift (ken-burns) behind the
   text without moving it. Slightly over-scanned so the zoom never reveals an edge. */
.hq-hero__img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;z-index:0;
  transform:scale(1.06);will-change:transform}
.hq-hero.is-active .hq-hero__img{animation:hq-kenburns 22s ease-in-out infinite alternate}
@keyframes hq-kenburns{from{transform:scale(1.06)}to{transform:scale(1.16) translate(-1.5%,-1%)}}
/* Directional dark wash for text authority + a floor gradient for depth. */
.hq-hero__overlay{position:absolute;inset:0;z-index:1;background:
  linear-gradient(90deg,rgba(18,26,48,.82) 0%,rgba(18,26,48,.50) 46%,rgba(18,26,48,.10) 100%),
  linear-gradient(0deg,rgba(18,26,48,.45) 0%,rgba(18,26,48,0) 42%)}
@media(max-width:640px){.hq-hero-slider{max-width:none;margin:0;border-radius:0;box-shadow:none}}
.hq-hero__content{position:relative;z-index:2;width:100%}
/* Staggered entrance for the hero copy on the active slide. */
.hq-hero.is-active .hq-hero__tag{animation:hq-hero-in .7s cubic-bezier(.22,.8,.3,1) both}
.hq-hero.is-active .hq-hero__title{animation:hq-hero-in .7s cubic-bezier(.22,.8,.3,1) .09s both}
.hq-hero.is-active .hq-hero__sub{animation:hq-hero-in .7s cubic-bezier(.22,.8,.3,1) .18s both}
.hq-hero.is-active .hq-hero__cta{animation:hq-hero-in .7s cubic-bezier(.22,.8,.3,1) .27s both}
@keyframes hq-hero-in{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
/* Stats band — a slim navy strip under the hero; the numbers tick up on scroll. */
.hq-stats{background:var(--navy);color:#fff}
.hq-stats__inner{display:grid;grid-template-columns:repeat(4,1fr);padding:28px 0}
.hq-stat{text-align:center;padding:2px 18px;position:relative}
.hq-stat+.hq-stat::before{content:"";position:absolute;left:0;top:12%;bottom:12%;width:1px;background:rgba(255,255,255,.14)}
.hq-stat__num{display:block;font-size:36px;font-weight:700;line-height:1;letter-spacing:-.5px;color:#fff;font-variant-numeric:tabular-nums}
.hq-stat__num::after{content:"";display:block;width:26px;height:3px;background:var(--accent);border-radius:2px;margin:13px auto 0}
.hq-stat__label{display:block;margin-top:11px;font-size:12px;letter-spacing:.07em;text-transform:uppercase;color:rgba(255,255,255,.74)}
@media(max-width:680px){.hq-stats__inner{grid-template-columns:1fr 1fr;gap:22px 0;padding:24px 0}
  .hq-stat:nth-child(3)::before{display:none}.hq-stat__num{font-size:30px}}
/* Eyebrow carries an orange accent rule — the page's signature brand mark. */
.hq-hero__tag{display:inline-flex;align-items:center;gap:12px;font-size:13px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;opacity:1;margin-bottom:16px;color:#fff}
.hq-hero__tag::before{content:"";width:32px;height:3px;background:var(--accent);border-radius:2px}
.hq-hero__title{color:#fff;font-weight:700;margin:0 0 16px;line-height:1.02;letter-spacing:-.5px;text-shadow:0 2px 26px rgba(10,15,30,.30)}
.hq-hero__sub{max-width:530px;font-size:18px;line-height:1.6;margin:0 0 28px;color:rgba(255,255,255,.94)}
.hq-hero__cta{display:inline-block;background:#fff;color:var(--navy);border:1px solid #fff;border-radius:var(--btn-radius);padding:14px 34px;font-size:14px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;box-shadow:0 10px 26px rgba(10,15,30,.24)}
.hq-hero__cta:hover{background:var(--accent);color:#fff;border-color:var(--accent);box-shadow:0 12px 30px rgba(244,121,32,.34)}

/* ============ Homepage featured ============ */
.hq-featured{margin:40px auto}
.hq-section-head{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:10px;margin-bottom:20px}
.hq-section-title{font-size:29px;margin:0}
.hq-section-more{font-size:14px;font-weight:700;color:var(--navy);text-transform:uppercase;letter-spacing:.4px}
/* Homepage section headers carry the orange accent rule — the page's editorial signature. */
.hq-featured .hq-section-title,.hq-cattiles .hq-section-title,.hq-why .hq-section-title{
  position:relative;padding-bottom:13px;letter-spacing:-.2px}
.hq-featured .hq-section-title::after,.hq-cattiles .hq-section-title::after,.hq-why .hq-section-title::after{
  content:"";position:absolute;left:0;bottom:0;width:46px;height:3px;background:var(--accent);border-radius:2px}

/* ============ PROIZVODI category dropdown ============ */
.hq-catmenu-wrap{position:relative;flex:none}
.hq-menu-toggle[aria-expanded=true]{background:#202020}
.hq-catmenu-dropdown{position:absolute;left:0;top:calc(100% + 8px);width:340px;background:#fff;border:1px solid var(--border);border-radius:0 0 10px 10px;box-shadow:0 8px 24px rgba(0,0,0,.16);z-index:60;padding:6px 0}
.hq-catmenu{list-style:none;margin:0;padding:0}
.hq-catmenu__item{position:relative;border-bottom:1px solid var(--light)}
.hq-catmenu__item:last-child{border-bottom:0}
.hq-catmenu__item>a{display:block;padding:13px 26px;font-size:15px;color:var(--text)}
.hq-catmenu__item--sale>a{color:var(--sale);font-weight:700}
.hq-catmenu__item:hover{background:var(--light)}
.hq-catmenu__item:hover>a{color:var(--navy)}
.hq-catmenu__chevron{position:absolute;right:16px;top:50%;transform:translateY(-50%);width:11px;height:11px;color:var(--muted);pointer-events:none;transition:transform .2s}
/* multi-level hover flyout: each category with children opens its own panel to the right */
.hq-catmenu__panel{display:none;position:absolute;left:100%;top:-1px;width:280px;background:#fff;border:1px solid var(--border);border-radius:0 10px 10px 0;box-shadow:8px 10px 26px rgba(0,0,0,.16);padding:6px 0;z-index:5}
.hq-catmenu__item.has-children:hover>.hq-catmenu__panel,
.hq-catmenu__sub-item.has-children:hover>.hq-catmenu__panel--l3{display:block}
.hq-catmenu__panel-title{display:block;padding:11px 22px;font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#fff;background:var(--navy);margin-bottom:6px;text-decoration:none}
.hq-catmenu__panel-title:hover{color:#fff;background:var(--navy-dark)}
.hq-catmenu__panel ul{list-style:none;margin:0;padding:0}
.hq-catmenu__sub-item{position:relative}
.hq-catmenu__panel li>a{display:block;padding:9px 30px 9px 22px;font-size:15px;color:var(--text)}
.hq-catmenu__panel li>a:hover{background:var(--light);color:var(--navy)}
.hq-catmenu__sub-item.has-children>a{font-weight:700}
.hq-catmenu__empty{padding:16px 26px;color:var(--muted);font-size:13px}
/* Desktop keeps these in the top bar; the mobile media query reveals them here. */
.hq-catmenu__utility{display:none}

/* Short viewports: a category flyout taller than the space below the header is
   clamped and scrolls (the .is-scrolling class + max-height are set by main.js so
   the limit follows the real viewport, which item opened it, and how many
   categories exist). Its third level then expands inline instead of flying out to
   the right, because a vertical scroll container would otherwise clip a right-hand
   panel. On tall screens nothing changes: panels keep their natural height and the
   right-hand flyouts. Result: every category stays reachable at any resolution. */
.hq-catmenu__panel.is-scrolling{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7ccd6 transparent}
.hq-catmenu__panel.is-scrolling::-webkit-scrollbar{width:8px}
.hq-catmenu__panel.is-scrolling::-webkit-scrollbar-thumb{background:#c7ccd6;border-radius:6px}
.hq-catmenu__panel.is-scrolling .hq-catmenu__panel--l3{position:static;left:auto;top:auto;width:auto;min-width:0;border:0;border-radius:0;box-shadow:none;margin:0;padding:0}
.hq-catmenu__panel.is-scrolling .hq-catmenu__panel--l3 .hq-catmenu__panel-title{display:none}
.hq-catmenu__panel.is-scrolling .hq-catmenu__panel--l3 li>a{padding-left:40px}
.hq-catmenu__panel.is-scrolling .hq-catmenu__sub-item.has-children:hover>.hq-catmenu__chevron{transform:translateY(-50%) rotate(90deg)}
/* A leaf-level (L3) flyout that is itself too tall gets its own scroll — safe,
   because the third level has no deeper children to clip. */
.hq-catmenu__panel--l3.is-scrolling{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#c7ccd6 transparent}

@media(max-width:768px){
  .hq-hero{min-height:330px}
  .hq-hero__title{font-size:34px}
  .hq-catmenu-dropdown{position:fixed;left:0;right:0;top:auto;width:100%;max-height:72vh;overflow:auto;border-radius:0}
  /* accordion: panels collapsed by default, only the level the user taps opens */
  .hq-catmenu__panel{position:static;display:none!important;width:auto;border:0;box-shadow:none;padding:0 0 8px 16px;max-height:none}
  .hq-catmenu__item.is-open>.hq-catmenu__panel,.hq-catmenu__sub-item.is-open>.hq-catmenu__panel--l3{display:block!important}
  .hq-catmenu__panel--l3{padding-left:28px}
  .hq-catmenu__item.is-open>.hq-catmenu__chevron,.hq-catmenu__sub-item.is-open>.hq-catmenu__chevron{transform:translateY(-50%) rotate(90deg)}
  .hq-catmenu__utility{display:block;border-top:8px solid var(--light);margin-top:4px;padding:6px 0 2px}
  .hq-catmenu__utility a{display:flex;align-items:center;gap:9px;padding:14px 26px;font-size:15px;font-weight:600;color:var(--navy)}
  .hq-catmenu__utility a:active,.hq-catmenu__utility a:hover{background:var(--light)}
  .hq-catmenu__utility a::before{content:"";width:7px;height:7px;border-right:2px solid var(--accent);border-top:2px solid var(--accent);transform:rotate(45deg);flex:none}
}

/* ============ Cart drawer ============ */
body.hq-no-scroll{overflow:hidden}
.hq-drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:990}
.hq-drawer-overlay[hidden]{display:none}
.hq-cart-drawer{position:fixed;top:0;right:0;height:100%;width:380px;max-width:90vw;background:#fff;z-index:1000;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .28s ease;box-shadow:-8px 0 28px rgba(0,0,0,.16)}
.hq-cart-drawer.is-open{transform:translateX(0)}
.hq-cart-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:17px 22px;background:var(--navy);color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.5px;font-size:15px}
.hq-cart-drawer__close{background:none;border:0;color:#fff;font-size:26px;line-height:1;cursor:pointer;padding:0}
.hq-cart-drawer__body{flex:1;overflow-y:auto;display:flex;flex-direction:column}
.hq-cart-drawer__inner{display:flex;flex-direction:column;flex:1}
.hq-cart-empty{padding:44px 22px;text-align:center;color:var(--muted)}
.hq-cart-empty .hq-btn{display:inline-flex;width:auto;margin-top:14px}
.hq-cart-drawer__items{list-style:none;margin:0;padding:0;flex:1}
.hq-cart-item{display:flex;align-items:center;gap:12px;padding:14px 22px;border-bottom:1px solid var(--border)}
.hq-cart-item__img{flex:none;width:60px;height:60px;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;padding:6px}
.hq-cart-item__img img{max-width:100%;max-height:100%;object-fit:contain;mix-blend-mode:multiply}
.hq-cart-item__info{flex:1;min-width:0}
.hq-cart-item__name{display:block;font-size:14px;color:var(--text);line-height:1.35;margin-bottom:4px}
.hq-cart-item__name:hover{color:var(--navy)}
.hq-cart-item__meta{font-size:13px;color:var(--navy);font-weight:700}
.hq-cart-item__remove{flex:none;background:none;border:0;color:var(--muted);font-size:20px;line-height:1;cursor:pointer;padding:4px}
.hq-cart-item__remove:hover{color:var(--sale)}
.hq-cart-drawer__subtotal{display:flex;align-items:center;justify-content:space-between;padding:16px 22px;border-top:1px solid var(--border);font-size:15px}
.hq-cart-drawer__subtotal strong{font-size:20px;color:var(--navy)}
.hq-cart-drawer__actions{display:flex;gap:10px;padding:0 22px 22px}
.hq-cart-drawer__actions .hq-btn{flex:1}
.hq-cart-drawer__help{margin:0;padding:0 22px 20px;font-size:13px;color:var(--muted,#6b7280);text-align:center}
.hq-cart-drawer__help a{color:var(--navy);font-weight:700;white-space:nowrap}
.hq-cart-help{margin:14px 0 0;text-align:right;font-size:14px;color:var(--muted,#6b7280)}
.hq-cart-help a{color:var(--navy);font-weight:700;white-space:nowrap}

/* ============ Wishlist ============ */
.hq-badge--sale{left:12px;right:auto}            /* badges go top-left so the heart can sit top-right */
.hq-wish-btn{position:absolute;top:10px;right:10px;width:34px;height:34px;border:1px solid var(--border);border-radius:50%;background:#fff;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;transition:color .15s,border-color .15s}
.hq-wish-btn svg{width:18px;height:18px}
.hq-wish-btn:hover{color:var(--navy);border-color:var(--navy)}
.hq-wish-btn.is-active{color:var(--sale);border-color:var(--sale)}
.hq-wish-btn.is-active svg{fill:currentColor}
.hq-wishlist-page{min-height:180px}
.hq-wishlist-empty{padding:44px 0;color:var(--muted);font-size:15px}

/* ============ Promo bar + cookie banner ============ */
.hq-promobar{background:var(--navy-dark);color:#fff;font-size:13px;letter-spacing:.3px}
.hq-promobar__inner{display:flex;align-items:center;justify-content:center;gap:14px;padding:8px 24px;position:relative;text-align:center}
.hq-promobar__close{position:absolute;right:18px;top:50%;transform:translateY(-50%);background:none;border:0;color:#fff;font-size:18px;line-height:1;cursor:pointer;opacity:.8}
.hq-promobar__close:hover{opacity:1}
.hq-cookie{position:fixed;left:16px;right:16px;bottom:16px;max-width:680px;margin:0 auto;background:#fff;border:1px solid var(--border);border-radius:8px;box-shadow:0 8px 28px rgba(0,0,0,.18);padding:18px 22px;display:flex;align-items:center;gap:18px;z-index:1100;flex-wrap:wrap}
.hq-cookie[hidden]{display:none}
.hq-cookie__text{flex:1;min-width:230px;font-size:14px;line-height:1.6;color:var(--text)}
.hq-cookie__text a{color:var(--navy);font-weight:700}
.hq-cookie__actions{display:flex;gap:10px;align-items:center;flex:none}
.hq-cookie__actions .hq-btn{width:auto;white-space:nowrap;padding:11px 22px}
.hq-cookie__reject{background:#fff!important;color:var(--navy)!important;border:1px solid var(--border)!important}
.hq-cookie__reject:hover{background:var(--light)!important;color:var(--navy-dark)!important}
@media(max-width:560px){.hq-cookie__actions{width:100%}.hq-cookie__actions .hq-btn{flex:1}}
@media(max-width:560px){ .hq-promobar__inner{font-size:11.5px;padding:8px 34px 8px 14px} }

/* ============ Cart / Checkout (brand polish over WC base) ============ */
.woocommerce{font-family:var(--font)}
.woocommerce h3,.woocommerce-checkout #order_review_heading{font-weight:700;color:var(--navy)}
.woocommerce form .form-row label{font-size:14px;font-weight:600;color:var(--navy);margin-bottom:4px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce select,.select2-container--default .select2-selection--single{border:1px solid var(--border)!important;border-radius:8px!important;padding:12px 14px!important;font-size:15px;min-height:auto;background:#fff}
.woocommerce form .form-row input.input-text:focus,.woocommerce form .form-row textarea:focus,.woocommerce select:focus,.select2-container--default.select2-container--focus .select2-selection--single{border-color:var(--navy)!important;outline:none;box-shadow:0 0 0 3px rgba(39,58,96,.12)}
/* navy pill buttons */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #place_order,.woocommerce a.button.alt,.woocommerce button.button.alt{background:var(--navy)!important;color:#fff!important;border-radius:var(--btn-radius)!important;text-transform:uppercase;font-weight:700;letter-spacing:.5px;padding:13px 30px!important;border:0}
/* The empty-cart / empty-search CTA is our own .hq-btn (an <a>, not a WC .button),
   so the rule above doesn't reach it — and WooCommerce's link/button colours bleed
   in and render the label navy-on-navy (invisible). Pin the brand pill's colours. */
.woocommerce .hq-empty__actions a.hq-btn--add-cart{color:#fff!important;background:var(--navy)!important;border-color:var(--navy)!important}
.woocommerce .hq-empty__actions a.hq-btn--add-cart:hover{color:#fff!important;background:var(--navy-dark)!important;border-color:var(--navy-dark)!important}
.woocommerce .hq-empty__actions a.hq-btn--secondary{color:var(--navy)!important;background:#fff!important}
.woocommerce .hq-empty__actions a.hq-btn--secondary:hover{color:#fff!important;background:var(--navy)!important}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce #place_order:hover{background:var(--navy-dark)!important}
.woocommerce #place_order{width:100%;font-size:16px;padding:16px 30px!important}

/* ---- Checkout wizard ---- */
.hq-wz{max-width:1180px;margin:0 auto 30px}
/* `.hq-wz ol.hq-wz__bar` (not just `.hq-wz__bar`) so it outranks the prose list
   rule `.hq-page__content ol{margin:0 0 16px 20px}` — the checkout is a WP page,
   and that stray 20px left margin made the stepper narrower than the form. */
.hq-wz .hq-wz__bar{display:flex;margin:0;padding:0;background:#fff;border:1px solid var(--border);border-radius:14px;overflow:hidden;box-shadow:0 2px 10px rgba(0,0,0,.03)}
/* A11Y: the step markers are real <button>s (not list items with role=button, which
   broke <ol>→<li> semantics). Reset native button chrome; keep the stepper look. */
.hq-wz__node{flex:1;display:flex;align-items:center;justify-content:center;gap:11px;padding:16px 12px;font-size:14.5px;font-weight:700;color:#5a6475;cursor:pointer;background:transparent;border:0;border-bottom:3px solid transparent;font-family:var(--font);transition:color .2s,border-color .2s}
.hq-wz__node+.hq-wz__node{border-left:1px solid var(--border)}
.hq-wz__num{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#d7dbe3;color:#fff;font-size:14px;flex:none;transition:background .2s}
.hq-wz__node.is-active{color:var(--navy);border-bottom-color:var(--navy)}
.hq-wz__node.is-active .hq-wz__num,.hq-wz__node.is-done .hq-wz__num{background:var(--navy)}
.hq-wz__node.is-done{color:var(--navy)}
.hq-wz__node.is-done .hq-wz__num{font-size:0}
.hq-wz__node.is-done .hq-wz__num::after{content:"✓";font-size:16px}
/* hide-only (so the single-column #customer_details rule can't force it visible on step 2) */
.hq-wz-step:not(.is-active){display:none!important}
.hq-wz-controls{margin:24px 0 0;text-align:right}
.hq-wz-controls--back{margin:0 0 6px;text-align:left}
.hq-wz-next{min-width:270px}
.hq-wz-back{background:none;border:0;color:var(--navy);font-weight:700;font-size:15px;cursor:pointer;padding:6px 0;display:inline-flex;align-items:center;gap:6px}
.hq-wz-back:hover{color:var(--navy-dark);text-decoration:underline}

/* order summary line: thumbnail + name */
.hq-corev{display:flex;align-items:center;gap:12px}
.hq-corev__img{flex:none;width:50px;height:50px;border:1px solid var(--border);border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:4px}
.hq-corev__img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.hq-corev__name{font-size:13.5px;line-height:1.4;font-weight:600;color:var(--navy)}

/* coupon toggle */
.woocommerce-form-coupon-toggle .woocommerce-info{background:#f9fafb;border-top-color:var(--navy);font-size:14px}
.woocommerce-form-coupon-toggle .woocommerce-info a{color:var(--navy);font-weight:700}

/* terms checkbox */
.woocommerce-terms-and-conditions-wrapper{margin:8px 0 18px}
.woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox{font-size:14px;color:var(--text)}
.woocommerce-terms-and-conditions-wrapper a{color:var(--navy);font-weight:700}
.woocommerce-privacy-policy-text{font-size:13px;color:#6b7280}

@media(max-width:560px){
  .hq-wz__node{flex-direction:column;gap:6px;font-size:11.5px;text-align:center;padding:12px 4px;line-height:1.25}
  .hq-wz__num{width:26px;height:26px;font-size:13px}
  .hq-wz-next{width:100%;min-width:0}
}

/* ============ Add-to-cart toast ============ */
.hq-toast{position:fixed;right:24px;top:24px;z-index:1200;display:flex;align-items:center;gap:11px;background:#fff;color:var(--navy);padding:14px 18px 14px 15px;border:1px solid #e5e7eb;border-left:4px solid var(--navy);border-radius:10px;box-shadow:0 14px 36px rgba(0,0,0,.22);font-size:14px;font-weight:700;transform:translateY(-18px);opacity:0;transition:transform .3s ease,opacity .3s ease;max-width:340px}
.hq-toast.is-show{transform:translateY(0);opacity:1}
.admin-bar .hq-toast{top:52px}
.hq-toast svg{width:24px;height:24px;flex:none}
@media(max-width:560px){.hq-toast{right:12px;left:auto;top:12px;max-width:calc(100vw - 24px)} .admin-bar .hq-toast{top:58px}}
/* hide WC's inline "view cart" link on cards — toast + drawer give the feedback */
.added_to_cart{display:none!important} /* toast + drawer give the feedback — hide WC's inline "view cart" link */
.woocommerce-message:empty{display:none!important} /* hide the now-empty add-to-cart success notice */

/* ============ Content pages (Kontakt, legal, etc.) ============ */
.hq-page{padding:6px 0 44px}
.hq-page__title{font-size:30px;font-weight:700;color:var(--navy);letter-spacing:.3px;margin:18px 0 22px}
.hq-page__content{max-width:880px;font-size:15px;line-height:1.78;color:var(--text)}
.hq-page__content h2,.hq-page__content h3,.hq-page__content h4{color:var(--navy);font-weight:700;line-height:1.3}
.hq-page__content h2{font-size:21px;margin:30px 0 10px}
.hq-page__content h3{font-size:17px;margin:24px 0 8px}
.hq-page__content strong,.hq-page__content b{color:var(--navy)}
.hq-page__content p{margin:0 0 14px}
.hq-page__content ul,.hq-page__content ol{margin:0 0 16px 20px;padding:0}
.hq-page__content li{margin:5px 0}
.hq-page__content a{color:var(--navy);font-weight:600;text-decoration:underline}
/* drop any leftover inline elementor CSS dumped as text */
.hq-page__content style{display:none}

/* ============ Free-delivery progress (cart, checkout, drawer) ============ */
.hq-freeship{background:var(--light);border:1px solid var(--border);border-radius:14px;padding:14px 16px;margin:0 0 22px}
.hq-freeship__row{display:flex;align-items:center;gap:10px}
.hq-freeship__icon{flex:none;width:34px;height:34px;border-radius:50%;background:#fff;border:1px solid var(--border);
  display:flex;align-items:center;justify-content:center;color:var(--navy)}
.hq-freeship__icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.hq-freeship__msg{font-size:14px;line-height:1.45;color:var(--text)}
.hq-freeship__msg strong{color:var(--navy)}
.hq-freeship__track{height:7px;border-radius:6px;background:#e2e5ea;overflow:hidden;margin:11px 0 0}
.hq-freeship__fill{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#F4A05A,#F47920);
  transition:width .45s cubic-bezier(.2,.8,.3,1)}
.hq-freeship__hint{margin:8px 0 0;font-size:12px;color:var(--muted)}
.hq-freeship.is-reached{background:#eef7f0;border-color:#c5e3cd}
.hq-freeship.is-reached .hq-freeship__icon{color:var(--stock);border-color:#c5e3cd}
.hq-freeship.is-reached .hq-freeship__msg strong{color:var(--stock)}
.hq-freeship.is-reached .hq-freeship__fill{background:linear-gradient(90deg,#5cab63,var(--stock))}
/* Drawer variant: tighter, sits between the item list and the subtotal. */
.hq-freeship--compact{margin:0;border-radius:0;border-left:0;border-right:0;border-bottom:0;padding:13px 22px}
.hq-freeship--compact .hq-freeship__msg{font-size:13px}
.hq-freeship--compact .hq-freeship__icon{width:28px;height:28px}
.hq-freeship--compact .hq-freeship__icon svg{width:15px;height:15px}
@media(prefers-reduced-motion:reduce){.hq-freeship__fill{transition:none}}

/* ============ Empty state (no products on sale, etc.) ============ */
.hq-empty-state{text-align:center;padding:56px 24px;background:var(--light);border-radius:16px;margin:8px 0 24px}
.hq-empty-state h2{margin:0 0 8px;font-size:22px}
.hq-empty-state p{margin:0 auto 20px;max-width:520px;color:var(--muted)}

/* ============ Mobile refinements ============ */
/* Reserve the card image box before the image arrives, so the grid does not
   jump as products stream in (cumulative layout shift). */
.hq-product-card__img-wrap{aspect-ratio:1/1}
.hq-product-card__img{width:100%;height:100%;object-fit:contain}

@media(max-width:768px){
  /* Touch targets: 44px is the smallest comfortable one-thumb target. */
  .hq-account{gap:6px}
  .hq-iconlink{width:44px;height:44px;align-items:center;justify-content:center}
  .hq-iconlink .hq-count{top:2px;right:2px}
  .hq-phone{width:44px;height:44px;justify-content:center;gap:0}
  .hq-promobar__close{right:6px;width:44px;height:44px;display:flex;align-items:center;justify-content:center}
  .hq-search__btn{width:42px;height:42px}
  .hq-wish-btn{width:40px;height:40px}
  .hq-wish-btn svg{width:19px;height:19px}

  /* Archive toolbar: the result count was being squeezed into a 60px column
     beside the sort select. Stack them and give the select full width. */
  .hq-shop__header{align-items:flex-start}
  .hq-shop__toolbar{flex-direction:column;align-items:stretch;gap:9px;width:100%}
  .hq-shop__toolbar .woocommerce-result-count{margin:0;font-size:13px}
  .hq-shop__toolbar form,.hq-shop__toolbar select{width:100%}
  .hq-shop__toolbar select{min-height:44px}

  /* Card CTA fills the card width and stays on one line — same for every section. */
  .hq-product-card__actions .hq-btn,.hq-rec-card__actions .hq-btn{display:block;width:100%;text-align:center;
    min-height:44px;padding:12px 8px;font-size:12px;line-height:1.25}
  .hq-product-card__title{font-size:14px}

  /* Free-delivery bar sits flush with the cart card on narrow screens. */
  .hq-freeship{padding:12px 14px;margin-bottom:16px}
  .hq-freeship__msg{font-size:13px}
}

@media(max-width:430px){
  .hq-container{padding:0 14px}
  .hq-product-grid,.related ul.products,.up-sells ul.products{gap:10px}
  .hq-product-card__body{padding:12px 12px 14px}
  .hq-empty-state{padding:40px 16px}
}

/* Respect the OS "reduce motion" setting across the theme. */
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;
    transition-duration:.01ms!important;scroll-behavior:auto!important}
}

/* ============ Homepage category tiles (husqvarna.com style) ============ */
.hq-cattiles{margin:44px auto 8px}
.hq-cattiles__grid{list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
/* Few categories: centre a capped-width row instead of stretching a lonely tile. */
.hq-cattiles__grid--few{grid-template-columns:repeat(auto-fit,minmax(220px,300px));justify-content:center}
.hq-cattile>a{display:flex;flex-direction:column;height:100%;text-decoration:none;color:inherit;
  border-radius:14px;padding:6px 6px 16px;transition:background .18s}
/* Flat by default, like the reference — the image lifts on hover, not the card. */
.hq-cattile>a:hover{background:var(--light)}
.hq-cattile__media{display:flex;align-items:center;justify-content:center;
  aspect-ratio:4/3;background:var(--light);border-radius:11px;overflow:hidden;margin-bottom:12px}
.hq-cattile>a:hover .hq-cattile__media{background:#fff}
.hq-cattile__media img{max-width:82%;max-height:82%;width:auto;height:auto;object-fit:contain;
  transition:transform .25s ease}
.hq-cattile>a:hover .hq-cattile__media img{transform:scale(1.04)}
.hq-cattile__name{font-size:16px;font-weight:700;color:var(--navy);line-height:1.3;padding:0 8px}
.hq-cattile__count{font-size:12.5px;color:var(--muted);padding:2px 8px 0}
/* A "Pogledaj →" call-to-action slides up on hover — the tile invites the click. */
.hq-cattile__cta{display:inline-flex;align-items:center;gap:7px;margin:8px 8px 0;font-size:12.5px;font-weight:700;
  text-transform:uppercase;letter-spacing:.5px;color:var(--accent-dark);
  opacity:0;transform:translateY(6px);transition:opacity .22s ease,transform .22s ease}
.hq-cattile>a:hover .hq-cattile__cta{opacity:1;transform:none}
.hq-cattile__cta .la{font-size:13px;transition:transform .2s ease}
.hq-cattile>a:hover .hq-cattile__cta .la{transform:translateX(4px)}
@media(hover:none){.hq-cattile__cta{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.hq-cattile__cta{transition:none}.hq-cattile>a:hover .hq-cattile__cta .la{transform:none}}
@media(max-width:980px){.hq-cattiles__grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:680px){.hq-cattiles__grid{grid-template-columns:1fr 1fr;gap:12px}
  .hq-cattile__name{font-size:14px}}

/* ============================================================
   Cart / checkout / tiles — layout + polish pass
   ============================================================ */

/* ---- 6. Category tiles: product photos are cut out on white, so a grey
        plate behind them just framed the white. Tile is white with a hairline
        border; the hover state lifts the card, not the plate. ---- */
.hq-cattile__media{background:#fff;border:1px solid var(--border);
  transition:border-color .18s,box-shadow .18s}
.hq-cattile>a{padding:0 0 14px;border-radius:14px}
.hq-cattile>a:hover{background:transparent}
.hq-cattile>a:hover .hq-cattile__media{background:#fff;border-color:#d7dde7;
  box-shadow:0 10px 24px rgba(20,28,48,.09)}
.hq-cattile__media img{max-width:78%;max-height:78%}
.hq-cattile__name{padding:14px 4px 0;font-size:15.5px}
.hq-cattile__count{padding:3px 4px 0}
.hq-wz-controls{margin:34px 0 8px}
.hq-wz-next{background:var(--navy);color:#fff;border-color:var(--navy);
  padding:15px 34px;font-size:15px;box-shadow:0 6px 18px rgba(39,58,96,.22)}
.hq-wz-next:hover{background:var(--navy-dark);border-color:var(--navy-dark);color:#fff;
  box-shadow:0 8px 22px rgba(39,58,96,.28)}
.hq-wz-next:focus-visible{outline:3px solid var(--navy);outline-offset:2px;box-shadow:0 0 0 5px rgba(255,255,255,.85)}
/* Flash the terms row when someone tries to order without ticking it. */
@keyframes hq-terms-flash{0%,100%{background:transparent;box-shadow:0 0 0 0 rgba(244,121,32,0)}
  25%{background:rgba(244,121,32,.12);box-shadow:0 0 0 3px rgba(244,121,32,.30)}}
.hq-terms-flash{border-radius:8px;animation:hq-terms-flash 1.4s ease}
@media(prefers-reduced-motion:reduce){.hq-terms-flash{animation:none;box-shadow:0 0 0 3px rgba(244,121,32,.35);background:rgba(244,121,32,.10)}}

/* ---- 9. "Pregled i plaćanje": full width, and the payment panel sits beside
        the order table so the total and the pay button share one eyeline. ---- */
.hq-wz,
.woocommerce-checkout .col2-set,
.woocommerce-checkout form.checkout{max-width:none}

/* A 1240px-wide primary button reads as a banner; cap it and let it sit at the
   end of the form. Full width only where the thumb needs it. */
@media(min-width:561px){
  .hq-wz-next{width:auto;min-width:320px}
}

/* ===================================================================
   Mobile refinement + motion pass
   Two goals: give the phone layout room to breathe, and let the page
   move like a finished product rather than snapping between states.
   Everything here degrades to a plain, complete page without JS, and
   goes still when the visitor asks for reduced motion.
   =================================================================== */

/* ---------- Sticky, self-shrinking header ---------- */
.hq-header{position:sticky;top:0;z-index:90;background:#fff;
  transition:box-shadow .28s ease}
body.admin-bar .hq-header{top:32px}
@media(max-width:782px){body.admin-bar .hq-header{top:46px}}
.hq-header.is-stuck{box-shadow:0 8px 26px rgba(20,28,48,.11)}
.hq-topbar__inner{transition:min-height .26s ease}
.hq-logo__img{transition:height .26s ease}
.hq-header.is-stuck .hq-topbar__inner{min-height:56px}
.hq-header.is-stuck .hq-logo__img{height:24px}
/* The dropdown is anchored to the header, so it has to clear it. */
.hq-catmenu-dropdown{z-index:95}

/* ---------- Scroll reveal ----------
   The hidden state only exists once JS has confirmed it can reveal it
   again (html.hq-js), so a failed script can never blank the page. */
.hq-js .hq-reveal{opacity:0;transform:translateY(14px);
  transition:opacity .55s cubic-bezier(.22,.8,.3,1),transform .55s cubic-bezier(.22,.8,.3,1)}
.hq-js .hq-reveal.is-in{opacity:1;transform:none}
/* Grid children arrive in sequence — enough to feel deliberate, short
   enough that nobody waits for it. */
.hq-js .hq-reveal.is-in>.hq-product-grid>li,
.hq-js .hq-reveal.is-in>.hq-cattiles__grid>li,
.hq-js .hq-reveal.is-in .hq-why__grid>*{animation:hq-rise .5s cubic-bezier(.22,.8,.3,1) backwards}
.hq-js .hq-reveal.is-in>.hq-product-grid>li:nth-child(2),
.hq-js .hq-reveal.is-in>.hq-cattiles__grid>li:nth-child(2),
.hq-js .hq-reveal.is-in .hq-why__grid>*:nth-child(2){animation-delay:.08s}
.hq-js .hq-reveal.is-in>.hq-product-grid>li:nth-child(3),
.hq-js .hq-reveal.is-in>.hq-cattiles__grid>li:nth-child(3),
.hq-js .hq-reveal.is-in .hq-why__grid>*:nth-child(3){animation-delay:.16s}
.hq-js .hq-reveal.is-in>.hq-product-grid>li:nth-child(4),
.hq-js .hq-reveal.is-in>.hq-cattiles__grid>li:nth-child(4){animation-delay:.18s}
@keyframes hq-rise{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}

/* ---------- Micro-interactions ---------- */
.hq-btn,.hq-hero__cta,.woocommerce a.button,.woocommerce button.button{
  transition:background .18s ease,color .18s ease,border-color .18s ease,
             box-shadow .18s ease,transform .12s ease}
.hq-btn:active,.hq-hero__cta:active,
.woocommerce a.button:active,.woocommerce button.button:active{transform:translateY(1px)}

/* Back-to-top — appears once the page has scrolled, glides in from below. */
.hq-backtop{position:fixed;right:20px;bottom:20px;width:46px;height:46px;border:0;border-radius:50%;
  background:var(--navy);color:#fff;cursor:pointer;z-index:60;display:flex;align-items:center;justify-content:center;
  box-shadow:0 8px 22px rgba(20,28,48,.28);opacity:0;transform:translateY(16px) scale(.9);pointer-events:none;
  transition:opacity .25s ease,transform .25s ease,background .18s ease}
.hq-backtop.is-vis{opacity:1;transform:none;pointer-events:auto}
.hq-backtop:hover{background:var(--accent);transform:translateY(-2px)}
.hq-backtop .la{font-size:22px;line-height:1}
@media(max-width:640px){.hq-backtop{right:14px;bottom:14px;width:44px;height:44px}}
.hq-product-card__img{transition:transform .35s cubic-bezier(.22,.8,.3,1)}
.hq-product-card:hover .hq-product-card__img{transform:scale(1.05)}
.hq-wish-btn{transition:color .16s,border-color .16s,transform .16s}
.hq-wish-btn:active{transform:scale(.9)}
.hq-section-more{transition:gap .2s,color .18s}
.hq-section-more:hover{text-decoration:underline;text-underline-offset:4px}
/* A visible keyboard path through the shop. */
/* A11Y 1.4.11 — čvrsti navy okvir (≥3:1 na svijetloj pozadini) + bijeli oreol
   (box-shadow) da indikator ostane vidljiv i na tamnim sekcijama (podnožje, hero). */
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{
  outline:3px solid var(--navy);outline-offset:2px;border-radius:4px;box-shadow:0 0 0 5px rgba(255,255,255,.85)}

/* ---------- Phone layout ---------- */
@media(max-width:640px){
  /* Hero: the desktop copy is a paragraph; on a phone it becomes a wall.
     Keep the promise and the button, cap the prose. */
  .hq-hero{min-height:430px}
  .hq-hero__overlay{background:linear-gradient(180deg,
    rgba(15,23,42,.30) 0%,rgba(15,23,42,.55) 55%,rgba(15,23,42,.78) 100%)}
  .hq-hero__content{padding-top:56px;padding-bottom:34px;
    display:flex;flex-direction:column;justify-content:flex-end;min-height:430px}
  .hq-hero__tag{font-size:11px;letter-spacing:1.6px;margin-bottom:7px}
  .hq-hero__title{font-size:32px;line-height:1.08;margin-bottom:10px}
  .hq-hero__sub{font-size:14.5px;line-height:1.55;margin-bottom:18px;max-width:none;
    display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .hq-hero__cta{align-self:flex-start;padding:12px 26px}
  .hq-hero__dots{bottom:12px}

  /* Section headings sit closer to their content. */
  .hq-section-title{font-size:21px}
  .hq-section-more{font-size:12.5px}
  .hq-section-head{margin-bottom:14px}
  .hq-featured{margin:30px auto}
  .hq-cattiles{margin:30px auto 4px}

  /* Cards: fewer, larger targets beat more, smaller ones. */
  .hq-product-card__body{padding:0 14px 16px;gap:6px}
  .hq-product-card__title{font-size:13.5px;line-height:1.35;min-height:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .hq-product-card__sku{font-size:11.5px}
  .hq-product-card__price{font-size:17px}
  .hq-product-card__price del{font-size:13px;margin-right:5px}
  .hq-product-card__stock{font-size:12px}
  .hq-product-card__img-wrap{padding:14px}
}

/* Two-up trust bar instead of a single tall column — same information,
   half the scrolling. */
@media(max-width:430px){
  .hq-trustbar__inner{grid-template-columns:1fr 1fr;gap:14px 10px;padding:18px 0}
  .hq-trust{gap:9px;align-items:flex-start}
  .hq-trust__icon{width:34px;height:34px}
  .hq-trust__icon svg{width:17px;height:17px}
  .hq-trust__txt strong{font-size:13px}
  .hq-trust__txt span{font-size:11.5px;line-height:1.35}
  .hq-promobar__inner{font-size:11px;padding:7px 34px 7px 14px;line-height:1.35}
  .hq-cattile__media{aspect-ratio:1}
  .hq-cattile__media img{max-width:86%;max-height:86%}
}

/* Nothing above should move for a visitor who asked for stillness. */
@media(prefers-reduced-motion:reduce){
  .hq-js .hq-reveal{opacity:1;transform:none;transition:none}
  .hq-js .hq-reveal.is-in>.hq-product-grid>li,
  .hq-js .hq-reveal.is-in>.hq-cattiles__grid>li,
  .hq-js .hq-reveal.is-in .hq-why__grid>*{animation:none}
  .hq-product-card:hover .hq-product-card__img{transform:none}
  .hq-hero__bg,.hq-hero.is-active .hq-hero__bg{animation:none;transform:none}
  .hq-hero.is-active .hq-hero__tag,.hq-hero.is-active .hq-hero__title,
  .hq-hero.is-active .hq-hero__sub,.hq-hero.is-active .hq-hero__cta{animation:none}
  .hq-backtop{transition:none}
}

/* Printing must never lose a section to an animation that has not run. */
@media print{
  .hq-js .hq-reveal{opacity:1!important;transform:none!important}
}
.hq-single-product__title,.hq-single-product__sku,
.hq-product-card__title,.hq-product-card__sku,
.hq-rec-card__name,.hq-rec-card__sku,
.hq-cart-item__name,.woocommerce td.product-name{overflow-wrap:anywhere}
/* Belt and braces: nothing on a phone may scroll the page sideways. */
@media(max-width:768px){
  html,body{overflow-x:hidden}
}

/* ---------- Search button: centre it by geometry, not arithmetic ----------
   The pill is 46px and the button was pinned with `top:4px`. Once the mobile
   rule grew the button to 42px that left 4px above and 0 below — visibly low.
   Anchoring to the middle keeps it centred whatever either size becomes. */
.hq-search__btn{top:50%;transform:translateY(-50%)}
/* Typed text used to slide under the button; reserve its lane. */
.hq-search input[type=search]{padding-right:52px}
@media(max-width:768px){
  .hq-search{height:44px}
  .hq-search__btn{width:36px;height:36px;right:4px}
  .hq-search__btn svg{width:17px;height:17px}
  .hq-search input[type=search]{padding:0 46px 0 18px;font-size:16px}  /* 16px stops iOS zooming on focus */
}

/* ---------- Footer on a phone ----------
   `.hq-container` and `.hq-footer__inner` share the same element and the same
   specificity, so the narrow-screen container override was also wiping the
   footer's 48px of vertical padding — which is why the text sat on the edges. */
@media(max-width:640px){
  .hq-footer{margin-top:34px}
  .hq-footer__inner{display:block;padding:34px 20px 30px}
  .hq-footer__col{min-width:0;font-size:14.5px;line-height:1.75}
  .hq-footer__col+.hq-footer__col{margin-top:26px;padding-top:24px;
    border-top:1px solid rgba(255,255,255,.14)}
  .hq-footer__col h4{font-size:12.5px;letter-spacing:1px;margin-bottom:10px;
    color:rgba(255,255,255,.62)}
  .hq-footer__col a{padding:7px 0}          /* comfortable tap spacing */
  .hq-footer__logo{height:26px;margin-bottom:14px}
  .hq-footer__brand p{margin:0}
  .hq-footer__phone{margin-top:12px}

  .hq-footer__bottom-inner{flex-direction:column;gap:16px;padding:20px 20px 24px;
    text-align:center}
  .hq-footer__copy{order:3;font-size:12.5px}
  .hq-social{order:1}
  .hq-payments{order:2;justify-content:center;gap:8px}
}
@media(max-width:430px){
  /* Keep the page container tight, but never at the footer's expense. */
  .hq-footer__inner{padding:32px 18px 28px}
  .hq-footer__bottom-inner{padding:18px 18px 22px}
}

/* ============ Layout pages: Kontakt, Registriraj proizvod ============
   These are layouts, not articles, so they escape the 880px reading width
   the theme uses for prose. */
.hq-page--wide .hq-page__content{max-width:none}
.hq-page--wide .hq-page__title{margin-bottom:8px}
.hq-page--wide .hq-page__content>p:first-of-type{font-size:16.5px;color:var(--muted);
  max-width:720px;margin:0 0 26px}
@media(max-width:640px){
  .hq-page--wide .hq-page__content>p:first-of-type{font-size:15px;margin-bottom:20px}
}

/* ===================================================================
   Design system: type scale + spacing rhythm
   The theme jumped from a 48px hero straight to 15px body with nothing
   in between, and spacing was chosen per component. One scale and one
   8px rhythm is most of what separates "assembled" from "designed".
   =================================================================== */
:root{
  /* Type scale, ~1.25 ratio, capped so a phone never inherits desktop drama. */
  --fs-hero:clamp(2.25rem, 1.35rem + 4vw, 3.6rem);  /* 36 → 58, commanding */
  --fs-h1:clamp(1.5rem, 1.15rem + 1.6vw, 2rem);     /* 24 → 32 */
  --fs-h2:clamp(1.3rem, 1.1rem + 0.9vw, 1.65rem);   /* 21 → 26 */
  --fs-h3:clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem); /* 17 → 19 */
  --fs-lead:1.0625rem;                              /* 17 */
  --fs-body:0.9375rem;                              /* 15 */
  --fs-sm:0.8125rem;                                /* 13 */
  --fs-xs:0.75rem;                                  /* 12 */

  /* Every vertical gap is a multiple of 8. */
  --sp-1:.5rem; --sp-2:1rem; --sp-3:1.5rem; --sp-4:2rem;
  --sp-5:2.75rem; --sp-6:3.5rem; --sp-7:4.5rem;
}

.hq-hero__title{font-size:var(--fs-hero)}
.hq-shop__title,.hq-page__title,.hq-single-product__title{font-size:var(--fs-h1)}
.hq-section-title{font-size:var(--fs-h2)}

/* Section rhythm: the same beat between every band of content. */
.hq-featured,.hq-cattiles{margin-top:var(--sp-6);margin-bottom:var(--sp-6)}
.hq-section-head{margin-bottom:var(--sp-3)}
.hq-main{padding:var(--sp-3) 0 var(--sp-6)}
@media(max-width:640px){
  .hq-featured,.hq-cattiles{margin-top:var(--sp-5);margin-bottom:var(--sp-5)}
  .hq-main{padding:var(--sp-2) 0 var(--sp-5)}
}

/* ---------- Empty states ----------
   A dead end should offer a way out, not just report the fact. */
.hq-empty{text-align:center;max-width:520px;margin:var(--sp-5) auto var(--sp-6);
  padding:var(--sp-4) var(--sp-3)}
.hq-empty__icon{width:56px;height:56px;margin:0 auto var(--sp-2);border-radius:50%;
  background:var(--light);display:flex;align-items:center;justify-content:center;color:var(--navy)}
.hq-empty__icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round}
.hq-empty h2{font-size:var(--fs-h2);margin:0 0 var(--sp-1)}
.hq-empty p{color:var(--muted);margin:0 0 var(--sp-3);font-size:var(--fs-body);line-height:1.65}
.hq-empty__actions{display:flex;gap:var(--sp-1);justify-content:center;flex-wrap:wrap}
.hq-empty__actions .hq-btn{width:auto;min-width:190px}
.hq-empty__suggest{margin-top:var(--sp-4);text-align:left}
.hq-empty__suggest h3{font-size:var(--fs-sm);text-transform:uppercase;letter-spacing:.7px;
  color:var(--muted);margin:0 0 var(--sp-1)}
.hq-empty__links{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:0;padding:0}
.hq-empty__links a{display:inline-block;padding:7px 14px;border:1px solid var(--border);
  border-radius:20px;font-size:var(--fs-sm);background:#fff;transition:border-color .18s,color .18s}
.hq-empty__links a:hover{border-color:var(--navy);color:var(--navy)}

/* ---------- Why us ---------- */
.hq-why{background:var(--light);padding:var(--sp-6) 0;margin-top:var(--sp-6)}
.hq-why__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:var(--sp-3)}
.hq-why__item{background:#fff;border:1px solid #e7e9ef;border-radius:16px;
  padding:calc(var(--sp-3) + 2px);box-shadow:0 2px 14px rgba(20,28,48,.05);
  transition:box-shadow .2s,transform .2s;position:relative;overflow:hidden}
/* A hairline orange top-edge keeps the accent system consistent with the headers. */
.hq-why__item::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--accent);transform:scaleX(0);transform-origin:left;transition:transform .25s ease}
.hq-why__item:hover{box-shadow:0 16px 34px rgba(20,28,48,.11);transform:translateY(-3px)}
.hq-why__item:hover::before{transform:scaleX(1)}
.hq-why__icon{width:50px;height:50px;border-radius:13px;background:var(--navy);color:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:var(--sp-2);box-shadow:0 6px 16px rgba(39,58,96,.20)}
.hq-why__icon .la{font-size:24px;line-height:1}
.hq-why__item h3{font-size:var(--fs-h3);margin:0 0 7px;letter-spacing:-.2px}
.hq-why__item p{margin:0;font-size:var(--fs-body);line-height:1.6;color:var(--muted)}
@media(max-width:860px){.hq-why__grid{grid-template-columns:1fr}
  .hq-why{padding:var(--sp-5) 0;margin-top:var(--sp-5)}}

/* ---------- Delivery hint on the card ---------- */
.hq-product-card__ship{font-size:var(--fs-xs);color:var(--stock);display:flex;
  align-items:center;gap:5px;margin-top:-2px}
.hq-product-card__ship .la{font-size:14px;line-height:1}

/* ============ Catalog filters ============
   A plain GET form: works without JS, every state has its own URL. */
.hq-filters{background:#fff;border:1px solid var(--border);border-radius:14px;
  padding:14px 18px;margin:0 0 var(--sp-3);display:flex;align-items:center;
  flex-wrap:wrap;gap:14px 20px}
.hq-filters__toggle{display:none}
.hq-filters__body{display:flex;align-items:center;flex-wrap:wrap;gap:14px 22px;flex:1}
.hq-filters__group{display:flex;align-items:center;gap:16px}
.hq-filters__label{font-size:var(--fs-sm);font-weight:700;color:var(--navy);
  text-transform:uppercase;letter-spacing:.5px}
.hq-filters__check{display:inline-flex;align-items:center;gap:8px;font-size:var(--fs-body);
  cursor:pointer;user-select:none;min-height:32px}
.hq-filters__check input{width:17px;height:17px;accent-color:var(--navy);cursor:pointer}
.hq-filters__price{gap:8px}
.hq-filters__price input{width:88px;padding:8px 10px;border:1px solid var(--border);
  border-radius:8px;font-family:var(--font);font-size:var(--fs-body);
  -moz-appearance:textfield;appearance:textfield}
.hq-filters__price input::-webkit-outer-spin-button,
.hq-filters__price input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.hq-filters__price input:focus{outline:none;border-color:var(--navy);
  box-shadow:0 0 0 3px rgba(39,58,96,.12)}
.hq-filters__dash{color:var(--muted)}
.hq-filters__cur{color:var(--muted);font-size:var(--fs-sm)}
.hq-filters__actions{display:flex;align-items:center;gap:14px;margin-left:auto}
.hq-filters__apply{width:auto;padding:10px 24px;font-size:var(--fs-sm)}
.hq-filters__reset{font-size:var(--fs-sm);color:var(--muted);text-decoration:underline;
  text-underline-offset:3px;white-space:nowrap}
.hq-filters__reset:hover{color:var(--sale)}

.hq-filters__chips{display:flex;align-items:center;flex-wrap:wrap;gap:8px;
  width:100%;padding-top:12px;border-top:1px solid var(--border)}
.hq-filters__count{font-size:var(--fs-sm);color:var(--muted);margin-right:4px}
.hq-chip{display:inline-flex;align-items:center;gap:7px;padding:5px 12px;
  background:var(--light);border:1px solid var(--border);border-radius:20px;
  font-size:var(--fs-sm);color:var(--text);transition:border-color .18s,color .18s}
.hq-chip span{font-size:15px;line-height:1;color:var(--muted)}
.hq-chip:hover{border-color:var(--sale);color:var(--sale)}
.hq-chip:hover span{color:var(--sale)}

/* On a phone the bar folds behind one button so it never eats the first screen. */
@media(max-width:860px){
  .hq-filters{padding:10px 12px;gap:10px}
  .hq-filters__toggle{display:inline-flex;align-items:center;gap:9px;position:relative;
    background:none;border:0;font-family:var(--font);font-size:var(--fs-body);font-weight:700;
    color:var(--navy);cursor:pointer;padding:8px 4px;min-height:44px}
  .hq-filters__toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;
    stroke-width:1.9;stroke-linecap:round}
  .hq-filters__badge{width:8px;height:8px;border-radius:50%;background:var(--accent,#F47920)}
  .hq-filters__body{display:none;width:100%;flex-direction:column;align-items:stretch;gap:16px;
    padding-top:12px;border-top:1px solid var(--border)}
  .hq-filters.is-open .hq-filters__body{display:flex}
  .hq-filters__group{justify-content:flex-start}
  .hq-filters__price input{flex:1;width:auto;min-width:0;min-height:44px}
  .hq-filters__actions{margin-left:0;justify-content:space-between}
  .hq-filters__apply{flex:1;min-height:44px}
  .hq-filters__chips{padding-top:10px}
}

/* A flex item will not shrink below its content's minimum unless told to, so
   the collapsed filter panel was 516px wide inside a 361px card — clipped
   rather than scrolling only because the page hides horizontal overflow. */
.hq-filters__body{min-width:0}
.hq-filters__group{min-width:0}
@media(max-width:860px){
  .hq-filters__body,.hq-filters__group,.hq-filters__actions{width:100%;min-width:0}
  .hq-filters__price{flex-wrap:wrap;gap:8px 10px}
  .hq-filters__price .hq-filters__label{flex:1 1 100%}
  .hq-filters__price input{flex:1 1 0;min-width:0;width:auto}
  .hq-filters__dash,.hq-filters__cur{flex:0 0 auto}
  .hq-filters__apply{width:100%}
}

/* The bar is a wrapping flex row, so on a phone the toggle has to claim a full
   line — otherwise it sits beside the panel and squeezes it into a column. */
@media(max-width:860px){
  .hq-filters{flex-direction:column;align-items:stretch}
  .hq-filters__toggle{width:100%;justify-content:flex-start}
  .hq-filters__group{flex-wrap:wrap;gap:12px 18px}
}

/* Apply and Poništi share the row: the button takes what is left, the link
   keeps its own width instead of being pushed off the edge. */
@media(max-width:860px){
  .hq-filters__actions{gap:16px;align-items:center}
  .hq-filters__apply{width:auto;flex:1 1 auto;min-width:0}
  .hq-filters__reset{flex:0 0 auto}
}

/* ============ Search suggestions ============
   The pill is styled with overflow:hidden to round its shape; that also clips
   an absolutely-positioned dropdown. Switch to visible (the pill's rounding
   comes from border-radius on its own background, so the resting look is
   unchanged) and clip the input's own corners instead. */
.hq-search{position:relative;overflow:visible}
.hq-search input[type=search]{border-radius:var(--search-radius) 0 0 var(--search-radius)}
.hq-suggest{position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:120;
  background:#fff;border:1px solid var(--border);border-radius:12px;
  box-shadow:0 16px 40px rgba(20,28,48,.18);overflow:hidden;max-height:min(72vh,520px);
  overflow-y:auto;overscroll-behavior:contain}
.hq-suggest[hidden]{display:none}
.hq-suggest__group{font-size:var(--fs-xs);font-weight:700;text-transform:uppercase;
  letter-spacing:.6px;color:var(--muted);padding:12px 16px 6px;background:#fff}
.hq-suggest__item,.hq-suggest__cat,.hq-suggest__all{display:flex;align-items:center;
  gap:12px;padding:9px 16px;text-decoration:none;color:var(--text);
  border-top:1px solid var(--light)}
.hq-suggest__group+.hq-suggest__item,.hq-suggest__group+.hq-suggest__cat{border-top:0}
.hq-suggest__item:hover,.hq-suggest__cat:hover,.hq-suggest__all:hover,
.hq-suggest__item.is-active,.hq-suggest__cat.is-active,.hq-suggest__all.is-active{
  background:var(--light)}
.hq-suggest__img{flex:none;width:46px;height:46px;border:1px solid var(--border);
  border-radius:8px;background:#fff;display:flex;align-items:center;justify-content:center;
  overflow:hidden;padding:4px}
.hq-suggest__img img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.hq-suggest__info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.hq-suggest__name{font-size:var(--fs-body);font-weight:600;color:var(--navy);line-height:1.3;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hq-suggest__meta{display:flex;align-items:center;gap:8px}
.hq-suggest__sku{font-size:var(--fs-xs);color:var(--muted);letter-spacing:.3px}
.hq-suggest__badge{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;
  padding:2px 7px;border-radius:3px;line-height:1.4}
.hq-suggest__badge--sale{background:var(--sale);color:#fff}
.hq-suggest__badge--out{background:var(--light);color:var(--muted);border:1px solid var(--border)}
.hq-suggest__price{flex:none;font-size:var(--fs-body);font-weight:700;color:var(--navy);
  white-space:nowrap}
.hq-suggest__cat-name{flex:1;font-size:var(--fs-body);color:var(--text)}
.hq-suggest__cat-count{flex:none;font-size:var(--fs-xs);color:var(--muted);background:var(--light);
  border-radius:20px;padding:2px 10px}
.hq-suggest__all{justify-content:center;font-size:var(--fs-sm);font-weight:700;color:var(--navy);
  padding:12px 16px;background:#fbfbfc}
.hq-suggest__empty{padding:18px 16px;font-size:var(--fs-body);color:var(--muted);text-align:center}

@media(max-width:768px){
  /* Full-bleed panel under the searchbar so it never fights the narrow pill. */
  .hq-suggest{left:-4px;right:-4px;top:calc(100% + 10px);border-radius:12px;
    max-height:min(70vh,460px);box-shadow:0 18px 44px rgba(20,28,48,.24)}
  .hq-suggest__name{font-size:var(--fs-sm)}
  .hq-suggest__img{width:42px;height:42px}
}

/* ---- Search: immediate "Tražim…" state ----
   Shown the moment typing starts, so a slow round-trip never leaves the user
   staring at a closed box and reaching for Enter. */
.hq-suggest__loading{display:flex;align-items:center;gap:10px;padding:14px 16px;
  font-size:var(--fs-body);font-weight:600;color:var(--navy);
  border-bottom:1px solid var(--light)}
.hq-suggest__spinner{flex:none;width:17px;height:17px;border-radius:50%;
  border:2px solid var(--border);border-top-color:var(--navy);
  animation:hq-spin .7s linear infinite}
@keyframes hq-spin{to{transform:rotate(360deg)}}
.hq-suggest__skeleton{display:flex;align-items:center;gap:12px;padding:9px 16px;
  border-top:1px solid var(--light)}
.hq-suggest__skeleton:first-of-type{border-top:0}
.hq-suggest__sk-img{flex:none;width:46px;height:46px;border-radius:8px}
.hq-suggest__sk-lines{flex:1;display:flex;flex-direction:column;gap:7px}
.hq-suggest__sk-lines span{height:10px;border-radius:5px;display:block}
.hq-suggest__sk-lines span:first-child{width:70%}
.hq-suggest__sk-lines span:last-child{width:38%}
.hq-suggest__sk-img,.hq-suggest__sk-lines span{
  background:linear-gradient(90deg,#eef0f3 25%,#f6f7f9 37%,#eef0f3 63%);
  background-size:400% 100%;animation:hq-shimmer 1.3s ease infinite}
@keyframes hq-shimmer{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){
  .hq-suggest__spinner{animation-duration:1.4s}
  .hq-suggest__sk-img,.hq-suggest__sk-lines span{animation:none}
}
.hq-acct-user{display:flex;align-items:center;gap:12px;padding:18px;background:linear-gradient(120deg,var(--navy) 0%,var(--navy-dark) 100%);color:#fff}
.hq-acct-user__avatar{width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center;font-weight:700;font-size:17px;flex:none;letter-spacing:.5px}
.hq-acct-user__name{font-weight:700;font-size:15px;line-height:1.2}
.hq-acct-user__email{font-size:12px;opacity:.72;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:170px}

.hq-acct-hello{font-size:15px;color:#42505f;margin:0 0 20px}
.hq-acct-hello b{color:var(--navy)}
.hq-acct-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px;margin:0 0 6px}
.hq-acct-card{display:flex;gap:13px;align-items:center;padding:16px;border:1px solid var(--border);border-radius:12px;text-decoration:none;background:#fff;transition:box-shadow .16s,transform .16s,border-color .16s}
.hq-acct-card:hover{box-shadow:0 8px 22px rgba(23,32,54,.1);transform:translateY(-2px);border-color:var(--navy)}
.hq-acct-card__ico{width:42px;height:42px;border-radius:11px;background:#fff4ec;color:var(--accent-dark);display:flex;align-items:center;justify-content:center;flex:none}
.hq-acct-card__ico .la{font-size:22px;line-height:1}
.hq-acct-card__t{display:block;font-weight:700;color:var(--navy);font-size:15px;line-height:1.2}
.hq-acct-card__s{display:block;font-size:12.5px;color:var(--muted);margin-top:3px}

.woocommerce-orders-table,.woocommerce-MyAccount-content table.shop_table{width:100%;border-collapse:collapse;font-size:14px;border:0;margin:0}
.woocommerce-orders-table thead th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:700;padding:0 12px 10px;border-bottom:2px solid var(--border)}
.woocommerce-orders-table tbody td{padding:15px 12px;border-bottom:1px solid var(--light);vertical-align:middle}
.woocommerce-orders-table tbody tr:hover{background:#fafbfc}
.woocommerce-orders-table .woocommerce-orders-table__cell-order-number a{font-weight:700;color:var(--navy)}
.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total{font-weight:700;color:var(--navy)}
.woocommerce-orders-table .woocommerce-button{margin:2px 4px 2px 0}

.hq-status{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:30px;font-size:12px;font-weight:700;line-height:1.4;white-space:nowrap}
.hq-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;opacity:.9}
.hq-status--completed{background:#e8f7ec;color:#1c7a35}
.hq-status--processing{background:#e7f3ff;color:#0a5ca8}
.hq-status--on-hold{background:#fff6e0;color:#8a6100}
.hq-status--pending{background:#fff6e0;color:#8a6100}
.hq-status--cancelled,.hq-status--failed,.hq-status--refunded{background:#fdeceb;color:#a3251d}

.woocommerce-Addresses{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:6px}
.woocommerce-Addresses::before,.woocommerce-Addresses::after{display:none!important}
.woocommerce-Addresses .col-1,.woocommerce-Addresses .col-2,.woocommerce-Address{float:none!important;width:auto!important;margin:0}
.woocommerce-Address{border:1px solid var(--border);border-radius:12px;padding:18px 20px;background:#fff}
.woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.woocommerce-Address-title h2,.woocommerce-Address-title h3{margin:0;font-size:16px}
.woocommerce-Address-title .edit{font-size:12.5px;font-weight:700;color:var(--accent-dark)!important}
.woocommerce-Address address{font-style:normal;color:#42505f;line-height:1.65;font-size:14px}

.woocommerce-order-details,.woocommerce-customer-details{margin-top:22px}
.woocommerce-column__title,.woocommerce-order-details__title{font-size:16px;color:var(--navy);margin:0 0 12px}
.woocommerce-table--order-details tfoot tr:last-child th,
.woocommerce-table--order-details tfoot tr:last-child td{color:var(--navy);font-size:16px;font-weight:700;border-top:2px solid var(--navy)}
ul.wc-item-meta{margin:6px 0 0;padding:0;list-style:none;font-size:12.5px;color:var(--muted)}

/* ---------- Login / Register (branded form-login.php override) ---------- */
.hq-auth{max-width:940px;margin:8px auto 0;display:grid;grid-template-columns:0.82fr 1fr;
  background:#fff;border:1px solid var(--border);border-radius:18px;overflow:hidden;
  box-shadow:0 14px 38px rgba(20,28,48,.09)}
/* Branded navy aside */
.hq-auth__aside{background:linear-gradient(160deg,#2c4064 0%,var(--navy) 55%,#1c2b49 100%);
  color:#fff;padding:40px 34px;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.hq-auth__aside::after{content:"";position:absolute;right:-70px;bottom:-70px;width:220px;height:220px;
  border-radius:50%;background:rgba(244,121,32,.14)}
.hq-auth__brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:700;letter-spacing:-.3px;margin-bottom:22px}
.hq-auth__logo{width:30px;height:30px;color:#fff}
/* On the navy aside the heading must stay light — beats the generic page h2 rule. */
.hq-auth__aside .hq-auth__welcome{color:#fff!important;font-size:24px;line-height:1.2;margin:0 0 10px;letter-spacing:-.4px}
.hq-auth__lead{color:rgba(255,255,255,.82);font-size:14.5px;line-height:1.6;margin:0 0 24px}
.hq-auth__benefits{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:15px}
.hq-auth__benefits li{display:flex;align-items:flex-start;gap:13px}
.hq-auth__bico{flex:none;width:38px;height:38px;border-radius:10px;background:rgba(255,255,255,.12);
  display:flex;align-items:center;justify-content:center}
.hq-auth__bico .la{font-size:19px;color:var(--accent)}
.hq-auth__benefits strong{display:block;font-size:14.5px;font-weight:700;color:#fff}
.hq-auth__benefits em{display:block;font-style:normal;font-size:12.5px;color:rgba(255,255,255,.68);margin-top:1px}
/* Form side */
.hq-auth__main{padding:38px 40px;min-width:0}
.hq-auth__title{margin:0;font-size:22px;color:var(--navy);letter-spacing:-.3px}
.hq-auth__sub{margin:4px 0 20px;font-size:13.5px;color:var(--muted)}
.hq-auth .woocommerce-form-row{margin:0 0 15px}
.hq-auth label{display:block;font-size:13px;font-weight:600;color:#42505f;margin-bottom:6px}
.hq-auth label .required{color:var(--sale)}
.hq-auth__row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:2px 0 18px;flex-wrap:wrap}
.hq-auth__row .woocommerce-form-login__rememberme{display:flex;align-items:center;gap:7px;font-size:13px;color:#42505f;margin:0;font-weight:500}
.hq-auth__lost{font-size:13px;font-weight:600;color:var(--navy)}
.hq-auth__lost:hover{color:var(--accent-dark);text-decoration:underline;text-underline-offset:3px}
.hq-auth .hq-btn{width:100%}
.hq-auth__note{font-size:13px;color:var(--muted);line-height:1.55;margin:0 0 16px}
/* Separator between login and register */
.hq-auth__sep{display:flex;align-items:center;gap:14px;margin:26px 0;color:var(--muted);font-size:12px;text-transform:uppercase;letter-spacing:.1em}
.hq-auth__sep::before,.hq-auth__sep::after{content:"";flex:1;height:1px;background:var(--border)}
@media(max-width:760px){
  .hq-auth{grid-template-columns:1fr;max-width:460px}
  .hq-auth__aside{padding:30px 28px}
  .hq-auth__welcome{font-size:21px}
  .hq-auth__main{padding:30px 26px}
  /* On phones the benefits list is nice-to-have, not essential — keep it short */
  .hq-auth__benefits li:nth-child(n+4){display:none}
}

@media(max-width:860px){
  .woocommerce-Addresses{grid-template-columns:1fr}
}
@media(max-width:560px){
  .woocommerce-orders-table thead{display:none}
  .woocommerce-orders-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 0;border:0}
  .woocommerce-orders-table tbody td::before{content:attr(data-title);font-size:11.5px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
  .woocommerce-orders-table tbody tr{display:block;padding:14px 0;border-bottom:1px solid var(--border)}
  .woocommerce-orders-table tbody td.woocommerce-orders-table__cell-order-actions{justify-content:flex-end;flex-wrap:wrap}
}

/* ============================================================
   Homepage: interactive product showcase (tabs), service strip, SEO block.
   ============================================================ */

/* Product showcase — tabs switch Akcije / Novo without a reload. */
.hq-showcase{margin:44px auto 8px}
.hq-showcase__head{display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:14px 20px;margin-bottom:22px}
.hq-showcase__head .hq-section-title{margin:0}
.hq-showcase__tabs{display:inline-flex;gap:5px;background:var(--light);padding:5px;border-radius:999px}
.hq-tab{appearance:none;border:0;background:transparent;cursor:pointer;font-family:inherit;
  font-weight:700;font-size:13px;color:var(--navy);padding:9px 20px;border-radius:999px;
  transition:background .2s ease,color .2s ease}
.hq-tab:hover{color:var(--accent-dark)}
.hq-tab.is-active{background:var(--navy);color:#fff}
.hq-tab:focus-visible{outline:3px solid rgba(39,58,96,.38);outline-offset:2px}
.hq-tabpanel[hidden]{display:none}
.hq-showcase__more{display:flex;justify-content:center;margin-top:24px}
@media(max-width:600px){
  .hq-showcase{margin:30px auto 4px}
  .hq-showcase__head{justify-content:flex-start}
  .hq-showcase__tabs{width:100%}
  .hq-tab{flex:1;text-align:center;padding:11px 8px}
}

/* Service & support strip. */
.hq-service{margin:44px 0}
.hq-service__grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.hq-service__item{display:flex;align-items:center;gap:16px;padding:22px 24px;
  border:1px solid var(--border);border-radius:14px;background:#fff;text-decoration:none;color:inherit;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}
.hq-service__item:hover{border-color:#d7dde7;box-shadow:0 10px 26px rgba(39,58,96,.10);transform:translateY(-2px)}
.hq-service__icon{flex:none;display:inline-flex;align-items:center;justify-content:center;
  width:48px;height:48px;border-radius:12px;background:var(--navy);color:#fff;font-size:22px}
.hq-service__txt{display:flex;flex-direction:column;gap:2px;min-width:0}
.hq-service__txt strong{color:var(--navy);font-size:16px}
.hq-service__txt span{color:var(--muted);font-size:13.5px;line-height:1.4}
.hq-service__arrow{margin-left:auto;color:var(--accent);font-size:18px;transition:transform .2s ease}
.hq-service__item:hover .hq-service__arrow{transform:translateX(4px)}
@media(max-width:820px){.hq-service__grid{grid-template-columns:1fr}.hq-service{margin:32px 0}}
@media(prefers-reduced-motion:reduce){
  .hq-service__item,.hq-service__arrow{transition:none}
  .hq-service__item:hover{transform:none}
  .hq-service__item:hover .hq-service__arrow{transform:none}
}

/* SEO / internal-links block. */
.hq-seoblock{margin:48px 0 0;padding:40px 0;background:var(--light)}
.hq-seoblock__title{font-size:22px;color:var(--navy);margin:0 0 12px}
.hq-seoblock p{max-width:72ch;color:#3a4150;line-height:1.7;margin:0 0 20px}
.hq-seoblock__links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.hq-seoblock__links a{display:inline-block;padding:8px 15px;background:#fff;border:1px solid var(--border);
  border-radius:999px;font-size:13.5px;font-weight:600;color:var(--navy);text-decoration:none;
  transition:border-color .2s ease,color .2s ease}
.hq-seoblock__links a:hover{border-color:var(--accent);color:var(--accent-dark)}
@media(max-width:600px){.hq-seoblock{margin-top:32px;padding:28px 0}.hq-seoblock__title{font-size:19px}}

/* ============================================================
   Product listing: category drill-down chips + description, sticky filters.
   ============================================================ */
.hq-archintro{margin:0 0 18px}
.hq-archintro__cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
.hq-archintro__cat{display:inline-block;padding:8px 15px;background:#fff;border:1px solid var(--border);
  border-radius:999px;font-size:13.5px;font-weight:600;color:var(--navy);text-decoration:none;
  transition:border-color .18s ease,color .18s ease}
.hq-archintro__cat:hover{border-color:var(--accent);color:var(--accent-dark)}
.hq-archintro__desc{max-width:72ch;color:#3a4150;line-height:1.7;font-size:14.5px}
.hq-archintro__desc p{margin:0 0 10px}
.hq-archintro__desc p:last-child{margin-bottom:0}
@media(max-width:600px){.hq-archintro__desc{font-size:14px}}

/* Sticky filter bar on desktop — quick access while scrolling a long listing.
   Sits just below the sticky header (its height is published as --hq-header-h by
   main.js). Left to normal flow on smaller screens, where filters collapse. */
@media(min-width:900px){
  .hq-filters{position:sticky;top:calc(var(--hq-header-h,112px) + 8px);z-index:70}
}

/* Polish: de-emphasise out-of-stock cards in recommendations/related. */
.hq-product-card.outofstock .hq-product-card__img{filter:grayscale(.45);opacity:.9}

.hq-assure{list-style:none;margin:14px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.hq-assure li{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);line-height:1.3}
.hq-assure i{color:var(--accent);font-size:16px;flex:none}
@media(max-width:480px){.hq-assure{grid-template-columns:1fr}}

/* ---- „Trebate R1?" — R1 (poslovni) račun na blagajni (inc/checkout-r1.php) ---- */
/* Kvačica: neobavezna cjelina u istom registru kao ostatak forme — mekani okvir, bez broja koraka. */
.woocommerce form .form-row.hq-r1-toggle{
  background:#f6f8fb;border:1px solid var(--border);border-radius:10px;
  padding:12px 14px;margin-top:4px}
.woocommerce form .form-row.hq-r1-toggle label.checkbox{
  display:flex;gap:9px;align-items:flex-start;margin:0;font-weight:600;color:var(--navy);cursor:pointer}
.woocommerce form .form-row.hq-r1-toggle label.checkbox input{margin-top:2px;flex:none}
/* WC renders a field `description` as a blue focus-tooltip (bg + ::before arrow, !important) and
   appends „(neobvezno)" to every non-required label. Neutralise both for the R1 block: the hint
   becomes a plain muted line, and the obligatory marker is only the JS asterisk when R1 is on. */
.woocommerce form .form-row.hq-r1-field .description{
  display:block;position:static!important;margin:6px 0 0 27px!important;padding:0!important;
  background:transparent!important;color:var(--muted)!important;box-shadow:none!important;
  border-radius:0!important;font-size:12.5px;font-weight:400;opacity:1}
.woocommerce form .form-row.hq-r1-field .description::before,
.woocommerce form .form-row.hq-r1-field .description::after{display:none!important}
.woocommerce form .form-row.hq-r1-field label .optional{display:none}
/* Naziv tvrtke + OIB: skriveni dok kvačica nije označena (JS ih otvara); stoje uz okvir gore. */
.woocommerce form .form-row.hq-r1-naziv,
.woocommerce form .form-row.hq-r1-oib{display:none;margin-top:10px}
.hq-r1-greska{display:block;margin-top:6px;color:#d32f2f;font-size:13px;font-weight:500}

/* Sažetak na stranici „hvala" i u mojim narudžbama. */
.hq-r1-sazetak{margin:16px 0;padding:14px 16px;border:1px solid var(--border);border-radius:10px;background:#f6f8fb}
.hq-r1-sazetak__naslov{margin:0 0 8px;font-weight:700;color:var(--navy)}
.hq-r1-sazetak__lista{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 16px;font-size:14px}
.hq-r1-sazetak__lista dt{color:var(--muted)}
.hq-r1-sazetak__lista dd{margin:0;color:var(--ink,#1f2937);font-weight:500}

/* ============================================================
 * Pristupačnost (WCAG 2.2 AA) — ispravci iz ACCESSIBILITY_BACKLOG.md
 * ============================================================ */

/* A11Y 2.4.1 Bypass Blocks — „Preskoči na sadržaj" (vidljiv tek na fokus). */
.hq-skip-link{position:absolute;left:-9999px;top:0;z-index:2000;background:var(--navy);color:#fff;
  padding:12px 18px;border-radius:0 0 8px 0;font-weight:700;font-size:14px;text-decoration:none}
.hq-skip-link:focus{left:0}

/* A11Y 1.4.3 — broj rezultata (muted na svijetloj traci) tamniji da pređe 4,5:1. */
.woocommerce-result-count{color:#4b5563}

/* A11Y 2.5.8 — gumb prikaza lozinke (WC jezgra) na ≥24×24 px dodirnu metu. */
.woocommerce form .show-password-input{top:50%;transform:translateY(-50%);right:.4em;
  width:28px;height:28px;display:flex;align-items:center;justify-content:center}

/* A11Y 2.4.3 / 4.1.2 — fokus unutar modalnih slojeva (ladica, lightbox) mora biti
   vidljiv i iznad pozadine. `inert` pozadina (postavlja ju JS) ne prima fokus. */
[inert]{pointer-events:none}

/* A11Y 4.1.3 — vizualno skriveno živo područje čarobnjaka (najava promjene koraka). */
.hq-wz__live{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* A11Y 3.3.1 — tekstualna poruka greške uz polje 1. koraka blagajne. */
.hq-field-error{display:block;color:var(--sale);font-size:12.5px;font-weight:600;margin-top:4px}
.hq-field-error:empty{display:none}
