/*
Theme Name: Best Offers
Description: Katalog hurtowni, inspiracje i sklep WooCommerce Best Offers.
Version: 1.0.17
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: best-office
*/
:root{--paper:#f5f5f7;--white:#ffffff;--ink:#1d1d1f;--accent:#0071e3;--accent-ink:#0060c4;--accent-soft:#edf4fc;--line:#dedee3;--muted:#55555b;--radius:1.35rem;--width:1240px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-underline-offset:.22em}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
:focus-visible{outline:3px solid #0060c4;outline-offset:4px}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
h1,h2,h3{line-height:1.08;letter-spacing:-.04em}
h1,h2{font-weight:400;font-family:Georgia,"Times New Roman",serif}
h1{font-size:clamp(2.17rem,4.9vw,5.075rem)}
h2{font-size:clamp(1.75rem,3.5vw,3.22rem)}
h3{font-size:.875rem}
.wrap{width:min(var(--width),calc(100% - 72px));margin-inline:auto}
.skip-link{position:absolute;left:1rem;top:-5rem;z-index:10;padding:.75rem;background:var(--white)}
.skip-link:focus{top:.5rem}
.noticebar{background:var(--ink);color:var(--white);text-align:center;font-size:.79rem;font-weight:650;letter-spacing:.1em;padding:.5rem 1rem}
.site-head{border-bottom:1px solid var(--line);background:var(--white)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1.25rem;min-height:76px}
.brand{display:inline-flex;gap:.68rem;align-items:center;text-decoration:none;font-size:1.27rem;font-weight:760;letter-spacing:-.06em;white-space:nowrap}
.brand img{width:clamp(180px,24vw,235px);height:auto}
.brand-mark{width:32px;height:32px;border-radius:10px;background:var(--accent);color:var(--accent-soft);display:grid;place-items:center;font:600 20px Georgia}
.site-nav{display:flex;gap:clamp(.8rem,3vw,2.4rem);align-items:center;font-size:.9rem;font-weight:620}
.site-nav a{text-decoration:none}
.site-nav a:hover{text-decoration:underline}
.nav-cart{padding:.45rem .8rem;border:1px solid var(--line);border-radius:100px}
.hero{display:grid;grid-template-columns:1fr 1fr;min-height:585px;align-items:stretch;gap:2rem;padding-block:28px}
.hero-copy{align-self:center;padding:32px 0 44px}
.kicker{text-transform:uppercase;font-size:.72rem;font-weight:750;letter-spacing:.18em;color:var(--accent);display:block;margin-bottom:1.1rem}
.kicker::before{content:"";display:inline-block;vertical-align:middle;width:7px;height:7px;border-radius:50%;background:#0071e3;margin:0 .55rem .12rem 0}
.hero em{display:block;color:var(--accent-ink);font-weight:400}
.hero p{max-width:34ch;color:var(--muted);font-size:1.09rem;margin:1.55rem 0 1.85rem}
.btn,.woocommerce #respond input#submit,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.wp-element-button{display:inline-flex;align-items:center;justify-content:center;gap:.7rem;border-radius:100px;padding:.78rem 1.25rem;background:var(--accent);color:#fff;border:1px solid var(--accent);text-decoration:none;font-weight:700;font-size:.9rem;line-height:1.4}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:#0060c4;color:#fff}
.btn.ghost{background:transparent;color:var(--accent);border-color:var(--line)}
.btn.ghost:hover{background:var(--accent-soft);color:var(--accent)}
.hero-media{position:relative;border-radius:var(--radius);overflow:hidden;background:#dce8f5;min-height:490px;margin:0}
.hero-media img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;object-position:center 57%;opacity:0}
.hero-media img.is-previous{opacity:1;z-index:1}
.hero-media img.is-current{opacity:1;z-index:2;transition:opacity 950ms ease-in-out}
.hero-media figcaption{position:absolute;z-index:3;bottom:1rem;left:1rem;right:1rem;width:fit-content;padding:.35rem .7rem;border-radius:100px;color:white;background:#1d1d1fe8;font-size:.75rem}
.hero-playback{background:transparent;border:0;color:inherit;border-left:1px solid #ffffff75;margin-left:.6em;padding:.45em 0 .45em .7em;text-decoration:underline;text-underline-offset:.2em}
.hero-playback:focus-visible{outline-color:white;outline-offset:2px}
@media(prefers-reduced-motion:reduce){.hero-media img.is-current{transition:none}}
.values{display:grid;grid-template-columns:repeat(3,1fr);border-block:1px solid var(--line);padding:1.05rem 0;margin-bottom:4.5rem;gap:1rem}
.values span{display:flex;align-items:center;justify-content:center;gap:.65rem;font-size:.85rem;font-weight:640;color:var(--accent)}
.values span+span{border-left:1px solid var(--line)}
.values b{font-size:1.1rem}
.section-top{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.65rem}
.section-top p{color:var(--muted);max-width:34ch}
.section{padding-bottom:4.8rem;scroll-margin-top:2rem}
.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.tile,.product-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.tile{display:block;text-decoration:none}
.tile:hover h3{text-decoration:underline}
.tile img,.product-card img{aspect-ratio:1.26;width:100%;object-fit:cover}
.tile-copy,.product-copy{padding:1.18rem}
.tile-copy p,.product-copy p{margin:.42rem 0;color:var(--muted);font-size:.9rem}
.tile-copy h3{display:flex;justify-content:space-between;gap:.45rem}
.tile-copy b{color:var(--accent-ink)}
.about{background:var(--accent);color:var(--white);padding:clamp(1.5rem,5vw,4rem);border-radius:var(--radius);display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:2.2rem}
.about .kicker{color:var(--accent-soft)}
.about p{color:#f1f7ff;max-width:47ch}
.faq{display:grid;grid-template-columns:.75fr 1.25fr;gap:2rem}
details{border-bottom:1px solid var(--line);padding:1rem 0}
details:first-child{border-top:1px solid var(--line)}
summary{cursor:pointer;font-weight:700}
details p{padding:.65rem 0 .25rem;color:var(--muted)}
.site-foot{background:#edf4fc;padding:2.3rem 0;border-top:1px solid var(--line)}
.foot-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.foot-inner nav{display:flex;flex-wrap:wrap;gap:.65rem 1.25rem;font-size:.85rem}
.foot-inner p{font-size:.8rem;color:var(--muted)}
.page-content{min-height:58vh;padding-block:3rem 5rem}
.page-content .entry{max-width:72ch}
.page-content h1{font-size:clamp(1.645rem,4.2vw,3.325rem);margin-bottom:1.3rem}
.page-content p+*{margin-top:1rem}
.woocommerce ul.products li.product a img{border-radius:var(--radius);aspect-ratio:1.2;object-fit:cover;background:#f5f5f7}
.woocommerce .woocommerce-loop-product__title{color:var(--ink)}
.woocommerce div.product p.price,.woocommerce ul.products li.product .price{color:var(--accent);font-weight:700}
.woocommerce div.product div.images img{border-radius:var(--radius)}
.woocommerce table.shop_table{background:var(--white)}
.woocommerce .quantity .qty,.woocommerce input.input-text,.woocommerce textarea,.woocommerce select,.wc-block-components-text-input input{padding:.62rem;border:1px solid #a9a9b1;border-radius:.5rem;background:var(--white);color:var(--ink)}
.woocommerce #payment,.woocommerce-info{background:#edf4fc}
.preview-note{font-size:.83rem;color:var(--muted);margin-bottom:1rem}
.filters{display:flex;gap:.5rem;flex-wrap:wrap;margin-bottom:1rem}
.filters button[aria-pressed=true]{background:var(--accent);color:#fff;border-color:var(--accent)}
.product-copy .btn{margin-top:.7rem}
.price{color:var(--accent);font-weight:750;display:block;margin:.55rem 0}
dialog{padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--white);color:var(--ink);width:min(530px,calc(100% - 2rem));max-height:90vh;overflow:auto}
dialog::backdrop{background:#1d1d1faa}
.dialog-inner{padding:1.5rem}
.dialog-inner h2{font-size:1.68rem;margin:.5rem 0 .9rem}
.dialog-close{float:right}
.dialog-inner img{border-radius:.8rem;width:100%;max-height:240px;object-fit:cover;margin-bottom:.8rem}
.dialog-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.cart-items{list-style:none;padding:0}
.cart-items li{display:flex;justify-content:space-between;align-items:center;gap:.75rem;border-bottom:1px solid var(--line);padding:.65rem 0}
.cart-items button{background:none;border:none;text-decoration:underline;color:var(--accent)}
@media(max-width:800px){.wrap{width:calc(100% - 36px)}.hero{gap:1rem;min-height:0}.hero-media{min-height:410px}.hero-copy{padding:18px 0}.values{margin-bottom:3rem}.section{padding-bottom:3rem}.section-top{align-items:start;flex-direction:column}.grid{gap:.7rem}.tile-copy,.product-copy{padding:.8rem}}
@media(max-width:590px){.hero,.about,.faq{grid-template-columns:1fr;gap:1rem}.hero{padding-top:12px}.hero-media{min-height:340px}.header-inner{flex-wrap:wrap;gap:.65rem;justify-content:space-between;padding:12px 0}.site-nav{gap:.65rem;font-size:.81rem}.site-nav .wide-nav{display:none}.values span{font-size:.73rem;text-align:center;gap:.22rem}.values b{display:none}.values{gap:.45rem}.grid{grid-template-columns:1fr}.tile img,.product-card img{aspect-ratio:1.6}.foot-inner{align-items:start;flex-direction:column}.noticebar{font-size:.69rem}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.site-nav li,.foot-inner nav li{list-style:none}.site-nav li a,.foot-inner nav li a{display:inline-block}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.price small{color:var(--muted);font-size:.72rem;font-weight:400}
.product-disclosures dl{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:.8rem;background:var(--white)}.product-disclosures dt{font-weight:700}.product-disclosures dd{margin:0 0 .6rem;color:var(--muted)}.product-disclosures dd:last-child{margin-bottom:0}
.product-inspiration {
  clear: both;
  padding: clamp(1rem, 3vw, 2.5rem);
  margin-bottom: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.product-inspiration figure { margin: 1rem 0 0; }
.product-inspiration img { width: 100%; border-radius: .85rem; }
.product-inspiration figcaption { margin-top: .6rem; color: var(--muted); font-size: .875rem; }

.site-head .header-inner { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(.65rem, 2.2vw, 2rem); align-items: center; }
.site-head .brand img { width: clamp(155px, 18vw, 205px); }
.site-head .site-nav, .site-head .site-menu { display: flex; justify-content: center; flex-wrap: wrap; gap: .1rem .25rem; }
.site-head .site-menu { list-style: none; margin: 0; padding: 0; }
.site-head .site-nav a, .header-utilities a { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; min-height: 40px; padding: .45rem .7rem; border-radius: 100px; text-decoration: none; white-space: nowrap; }
.site-head .site-nav a:is(:hover, [aria-current=page]), .header-utilities a:is(:hover, [aria-current=page]) { background: #f2f2f4; text-decoration: none; }
.site-head .site-nav .site-nav-seasonal { color: #4426c1; }
.header-utilities { display: flex; gap: .3rem; align-items: center; font-size: .88rem; font-weight: 650; }
.header-utilities svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.header-utilities .nav-cart { border: 1px solid #e4e4e7; }
.site-head a:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.footer-discovery { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.footer-discovery nav { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: center; }
.footer-discovery a { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .65rem; border-radius: 999px; text-decoration: none; font-size: .88rem; font-weight: 620; }
.footer-discovery a:hover { background: var(--white); text-decoration: underline; }
.footer-discovery .site-nav-seasonal { color: #4426c1; }
@media (max-width: 880px) {
  .site-head .header-inner { grid-template-columns: 1fr auto; row-gap: 4px; padding-block: 8px; }
  .site-head .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; border-top: 1px solid #ebebeb; padding-top: 4px; }
  .header-utilities { grid-column: 2; grid-row: 1; }
}
@media (max-width: 480px) {
  .site-head .site-nav a { font-size: .78rem; padding-inline: .45rem; }
  .header-utilities a { width: 42px; min-height: 42px; padding: 0; }
  .header-utilities a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

@media (prefers-reduced-motion: no-preference) {
  :is(.supplier-card, .supplier-category-card, .market-holiday-grid a, .tile, .gift-card, .product-card, .woocommerce ul.products li.product) {
    transition: transform .2s ease;
  }
  :is(.supplier-card, .supplier-category-card, .market-holiday-grid a, .tile, .gift-card, .product-card, .woocommerce ul.products li.product):is(:focus-visible, :focus-within) {
    transform: translateY(-3px);
  }
  @media (hover: hover) and (pointer: fine) {
    :is(.supplier-card, .supplier-category-card, .market-holiday-grid a, .tile, .gift-card, .product-card, .woocommerce ul.products li.product):hover {
      transform: translateY(-3px);
    }
  }
}
.site-menu{display:flex;gap:1rem;align-items:center;flex-wrap:wrap;margin:0;padding:0}
