/*
Theme Name: SmartPrint Shop
Theme URI: https://toner.cijena.ba/
Author: SmartPrint
Description: Brza i pregledna tema za prodavnicu tonera: tamno zaglavlje, pametna pretraga po printeru i šifri, čiste kartice proizvoda.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: smartprint-shop
*/

/* Layout: dark SmartPrint header + light product world (warm grey ground, white cards), lime as the single accent */
:root {
  --sp-black: #0d0e0b;
  --sp-ink: #16171a;
  --sp-ink-2: #2a2c30;
  --sp-lime: #aeff24;
  --sp-lime-2: #96e00f;
  --sp-bg: #f4f4f0;
  --sp-card: #ffffff;
  --sp-line: #e3e4de;
  --sp-line-2: #d3d5cd;
  --sp-muted: #5f636a;
  --sp-ok: #1f7a4d;
  --sp-c: #00aeef; --sp-m: #ec008c; --sp-y: #ffe100;
  --sp-radius: 16px;
  --sp-radius-sm: 10px;
  --sp-shadow: 0 1px 2px rgba(13,14,11,.06), 0 8px 24px rgba(13,14,11,.06);
  --sp-font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sp-bg); color: var(--sp-ink); font-family: var(--sp-font); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--sp-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--sp-lime); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; margin: 0 0 .5em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sp-lime); color: #000; padding: 10px 16px; border-radius: 999px; font-weight: 600; }
.sp-skip:focus { left: 12px; }
.sp-container { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 900px) { .sp-container { padding-left: 32px; padding-right: 32px; } }

/* ---------------- top bar + header ---------------- */
.sp-topbar { background: var(--sp-lime); color: #0d0e0b; font-size: 13.5px; }
.sp-topbar__in { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; padding-block: 7px; }
.sp-topbar span { display: inline-flex; align-items: center; gap: 7px; }
.sp-topbar a { color: #0d0e0b; font-weight: 600; text-decoration: none; }
.sp-topbar a:hover { text-decoration: underline; }
.sp-contact__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-usp-mini a { color: var(--sp-ink); font-weight: 600; }
.sp-header { background: var(--sp-black); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.admin-bar .sp-header { top: 32px; }
.sp-header__in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding-block: 14px; }
.sp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.sp-logo img { width: 158px; height: auto; display: block; }
.sp-logo__tag { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; background: var(--sp-lime); color: #000; border-radius: 999px; padding: 3px 9px; }
.sp-actions { display: flex; align-items: center; gap: 10px; }
.sp-finder-link { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 500; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); min-height: 44px; }
.sp-finder-link:hover { border-color: var(--sp-lime); color: var(--sp-lime); }
.sp-cart { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #000; background: var(--sp-lime); text-decoration: none; font-weight: 600; padding: 10px 16px; border-radius: 999px; min-height: 44px; }
.sp-cart:hover { background: var(--sp-lime-2); color: #000; }
.sp-cart__count { min-width: 22px; height: 22px; border-radius: 999px; background: #000; color: var(--sp-lime); font-size: 12px; display: inline-grid; place-items: center; padding: 0 6px; }
.sp-cart__total .woocommerce-Price-amount { font-weight: 600; }
.sp-menu-btn { display: none; background: transparent; border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 12px; min-width: 44px; min-height: 44px; cursor: pointer; }

/* search */
.sp-search { position: relative; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 4px 4px 4px 18px; color: var(--sp-muted); max-width: 680px; width: 100%; justify-self: center; }
.sp-search input[type="search"] { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15.5px; color: var(--sp-ink); min-height: 42px; }
.sp-search input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.sp-search button[type="submit"] { border: 0; background: var(--sp-ink); color: #fff; font: inherit; font-weight: 600; border-radius: 999px; padding: 0 20px; min-height: 42px; cursor: pointer; }
.sp-search button[type="submit"]:hover { background: #000; }
.sp-search:focus-within { box-shadow: 0 0 0 3px var(--sp-lime); }
.sp-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 8px); background: #fff; color: var(--sp-ink); border-radius: var(--sp-radius); box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 8px; z-index: 60; max-height: 70vh; overflow: auto; text-align: left; }
.sp-suggest ul { list-style: none; margin: 0; padding: 0; }
.sp-suggest__h { margin: 8px 10px 4px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--sp-muted); }
.sp-suggest a { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--sp-ink); font-size: 14.5px; line-height: 1.3; }
.sp-suggest a:hover, .sp-suggest a:focus-visible { background: var(--sp-bg); }
.sp-suggest img { width: 44px; height: 44px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--sp-line); }
.sp-suggest__ico { width: 44px; height: 44px; border-radius: 8px; background: var(--sp-bg); display: grid; place-items: center; color: var(--sp-ink-2); }
.sp-suggest small { color: var(--sp-muted); font-weight: 600; white-space: nowrap; }
.sp-suggest__for { display: block; margin-top: 2px; font-style: normal; font-size: 12.5px; color: var(--sp-muted); }
.sp-suggest__empty { margin: 10px; color: var(--sp-muted); font-size: 14px; }
.sp-suggest__all { display: block; width: 100%; margin-top: 6px; border: 0; border-top: 1px solid var(--sp-line); background: #fff; padding: 12px; font: inherit; font-weight: 600; cursor: pointer; border-radius: 0 0 10px 10px; }
.sp-suggest__all:hover { background: var(--sp-bg); }

/* nav */
.sp-nav { border-top: 1px solid rgba(255,255,255,.08); }
.sp-nav__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sp-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.sp-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: rgba(255,255,255,.86); text-decoration: none; font-weight: 500; font-size: 15px; border-radius: 8px; }
.sp-nav a:hover { color: var(--sp-lime); }
.sp-nav__brands a { color: rgba(255,255,255,.6); font-size: 14px; padding: 0 9px; }

/* ---------------- generic ---------------- */
.sp-main { padding-block: 28px 64px; min-height: 50vh; }
.sp-page-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 6px 0 22px; }
.sp-content { background: var(--sp-card); border-radius: var(--sp-radius); padding: clamp(20px, 3vw, 36px); box-shadow: var(--sp-shadow); max-width: 860px; }
.sp-content > :first-child { margin-top: 0; }
.sp-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-lime); }
.sp-eyebrow--dark { color: var(--sp-muted); }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.sp-btn--dark { background: var(--sp-ink); color: #fff; }
.sp-btn--dark:hover { background: #000; color: #fff; }
.sp-btn--lime { background: var(--sp-lime); color: #000; }
.sp-btn--lime:hover { background: var(--sp-lime-2); color: #000; }
.sp-btn--ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.sp-btn--ghost:hover { color: var(--sp-lime); border-color: var(--sp-lime); }
.sp-link { font-weight: 600; text-decoration: none; }
.sp-link:hover { text-decoration: underline; }
.sp-breadcrumb { font-size: 14px; color: var(--sp-muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-breadcrumb a { color: var(--sp-muted); text-decoration: none; }
.sp-breadcrumb a:hover { color: var(--sp-ink); text-decoration: underline; }
.sp-breadcrumb .sep { opacity: .5; }

/* ---------------- homepage ---------------- */
.sp-hero { background: var(--sp-black); color: #fff; overflow-x: clip; position: relative; }
.sp-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.6px); background-size: 16px 16px; -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); mask-image: linear-gradient(90deg, #000, transparent 70%); pointer-events: none; }
.sp-hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-block: clamp(40px, 6vw, 84px); }
.sp-hero h1 { font-size: clamp(36px, 5.2vw, 64px); font-weight: 700; letter-spacing: -0.035em; margin-bottom: 18px; }
.sp-hero h1 span { color: var(--sp-lime); }
.sp-hero__lead { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.72); max-width: 54ch; margin: 0 0 26px; }
.sp-search--hero { max-width: 640px; padding: 6px 6px 6px 20px; justify-self: start; }
.sp-search--hero input[type="search"] { font-size: 17px; min-height: 50px; }
.sp-search--hero button[type="submit"] { background: var(--sp-lime); color: #000; min-height: 50px; padding: 0 26px; }
.sp-search--hero button[type="submit"]:hover { background: var(--sp-lime-2); }
.sp-hero__brands { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.55); }
.sp-hero__brands a { color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 6px 13px; }
.sp-hero__brands a:hover { border-color: var(--sp-lime); color: var(--sp-lime); }
.sp-hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 34px 0 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); }
.sp-hero__stats div { display: flex; flex-direction: column; }
.sp-hero__stats dt { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.sp-hero__stats dd { margin: 0; color: rgba(255,255,255,.6); font-size: 14px; }
.sp-hero__visual { position: relative; min-height: 440px; }
.sp-hero__tile { position: absolute; margin: 0; background: #fff; border-radius: 22px; padding: 14px 14px 10px; box-shadow: 0 20px 50px rgba(0,0,0,.45); width: 62%; }
.sp-hero__tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; }
.sp-hero__tile figcaption { display: flex; justify-content: space-between; color: var(--sp-ink); font-size: 14px; font-weight: 500; padding: 6px 4px 2px; }
.sp-hero__tile--0 { left: 0; top: 0; transform: rotate(-3deg); width: 56%; z-index: 2; }
.sp-hero__tile--1 { right: 0; top: 14%; transform: rotate(4deg); width: 48%; z-index: 1; }
.sp-hero__tile--2 { left: 30%; bottom: -2%; transform: rotate(-1deg); width: 44%; z-index: 3; }
/* bits WooCommerce's own stylesheet used to provide */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce-product-gallery .flex-viewport { border-radius: 12px; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; display: block; }
.woocommerce .star-rating, .woocommerce-review-link { display: none; }
.woocommerce-store-notice { background: var(--sp-ink); color: #fff; padding: 10px 16px; margin: 0; text-align: center; }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; }
.woocommerce-cart-form__cart-item .product-name a { font-weight: 600; text-decoration: none; }
.woocommerce .quantity { display: inline-flex; }
.woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; }
.woocommerce form .form-row .required { color: #c62828; text-decoration: none; }
.woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #c62828; }
#ship-to-different-address { font-size: 16px; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper { display: flex; flex-wrap: wrap; gap: 0; }
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row { width: 100%; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last { width: calc(50% - 6px); }
.woocommerce-billing-fields__field-wrapper .form-row-first { margin-right: 12px; }
.clear { clear: both; }

.sp-section { padding-block: clamp(44px, 6vw, 80px); }
.sp-section--tint { background: #ebebe5; }
.sp-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.sp-section__head h2, .sp-faq-wrap h2, .sp-steps__intro h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; margin: 0; }

.sp-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-catcard { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 12px; background: var(--sp-card); border-radius: var(--sp-radius); padding: 22px; text-decoration: none; color: var(--sp-ink); box-shadow: var(--sp-shadow); border: 1px solid transparent; transition: transform .15s ease, border-color .15s ease; }
.sp-catcard:hover { transform: translateY(-2px); border-color: var(--sp-line-2); color: var(--sp-ink); }
.sp-catcard__text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sp-catcard__title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sp-catcard__desc { color: var(--sp-muted); font-size: 14.5px; }
.sp-catcard__count { margin-top: 8px; font-weight: 600; font-size: 14.5px; }
.sp-catcard img { width: 132px; height: 132px; object-fit: contain; }

.sp-steps-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: start; }
.sp-steps__intro p { color: var(--sp-muted); font-size: 17px; max-width: 46ch; margin: 14px 0 22px; }
.sp-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.sp-steps li { counter-increment: st; display: grid; grid-template-columns: 52px 1fr; gap: 4px 16px; background: var(--sp-card); border-radius: var(--sp-radius); padding: 20px; box-shadow: var(--sp-shadow); }
.sp-steps li::before { content: counter(st); grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--sp-ink); color: var(--sp-lime); display: grid; place-items: center; font-size: 22px; font-weight: 700; }
.sp-steps b { font-size: 18px; }
.sp-steps span { color: var(--sp-muted); font-size: 15px; }

.sp-brands { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.sp-brands a { display: flex; flex-direction: column; gap: 4px; background: var(--sp-card); border-radius: 14px; padding: 18px 20px; text-decoration: none; color: var(--sp-ink); border: 1px solid transparent; box-shadow: var(--sp-shadow); }
.sp-brands a:hover { border-color: var(--sp-ink); }
.sp-brands span { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.sp-brands small { color: var(--sp-muted); font-size: 13.5px; }

.sp-faq-wrap { max-width: 900px; }
.sp-faq { margin-top: 20px; display: grid; gap: 10px; }
.sp-faq details { background: var(--sp-card); border-radius: 14px; padding: 4px 22px; box-shadow: var(--sp-shadow); }
.sp-faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 16px 30px 16px 0; position: relative; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; font-weight: 400; color: var(--sp-muted); }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq p { margin: 0 0 18px; color: var(--sp-muted); }

.sp-cta { background: var(--sp-black); color: #fff; }
.sp-cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-block: 44px; }
.sp-cta h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 0 0 8px; }
.sp-cta p { margin: 0; color: rgba(255,255,255,.7); max-width: 58ch; }
.sp-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------------- assurance + footer ---------------- */
.sp-assure { background: #fff; border-top: 1px solid var(--sp-line); }
.sp-assure__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 26px; }
.sp-assure div { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--sp-lime); }
.sp-assure b { font-size: 16px; }
.sp-assure span { color: var(--sp-muted); font-size: 14px; }
.sp-footer { background: var(--sp-black); color: rgba(255,255,255,.75); font-size: 15px; }
.sp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 48px 32px; }
.sp-footer h2 { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.sp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.sp-footer a:hover { color: var(--sp-lime); }
.sp-footer address { font-style: normal; line-height: 1.8; }
.sp-footer__brand img { width: 170px; }
.sp-footer__brand p { max-width: 34ch; margin: 14px 0 0; }
.sp-footer__group { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-block: 16px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.sp-footer__group a { display: inline-flex; align-items: center; gap: 8px; }
.sp-footer__group i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.sp-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 16px 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; color: rgba(255,255,255,.5); }

/* ---------------- WooCommerce: archive ---------------- */
.woocommerce-products-header__title, .sp-main--woo .page-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin: 4px 0 8px; }
.term-description { color: var(--sp-muted); max-width: 70ch; }
.sp-printer-note { background: #fff; border-left: 3px solid var(--sp-lime); border-radius: 10px; padding: 12px 16px; color: var(--sp-muted); font-size: 14.5px; margin: 0 0 14px; }
.woocommerce-result-count { color: var(--sp-muted); font-size: 14px; margin: 10px 0 18px; float: left; }
.woocommerce-ordering { float: right; margin: 0 0 18px; }
.woocommerce-ordering select { font: inherit; font-size: 14px; border: 1px solid var(--sp-line-2); background: #fff; border-radius: 999px; padding: 9px 36px 9px 16px; min-height: 42px; }
ul.products { clear: both; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product { position: relative; display: flex; flex-direction: column; background: var(--sp-card); border-radius: var(--sp-radius); padding: 14px 14px 16px; box-shadow: var(--sp-shadow); border: 1px solid transparent; transition: border-color .15s ease, transform .15s ease; margin: 0 !important; width: auto !important; float: none !important; }
ul.products li.product:hover { border-color: var(--sp-line-2); transform: translateY(-2px); }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--sp-ink); }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; margin: 0 0 12px; border-radius: 10px; }
.sp-card__sku { align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .04em; background: var(--sp-bg); color: var(--sp-ink-2); border-radius: 6px; padding: 3px 8px; margin-bottom: 8px; }
ul.products li.product .woocommerce-loop-product__title { font-size: 15px; font-weight: 500; line-height: 1.35; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.35em * 3); }
ul.products li.product .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: auto; font-size: 20px; font-weight: 700; color: var(--sp-ink); }
.price del { color: var(--sp-muted); font-size: .72em; font-weight: 400; }
.price ins { text-decoration: none; }
ul.products li.product .button { margin-top: 12px; }
.onsale { position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--sp-ink); color: var(--sp-lime); font-size: 12px; font-weight: 600; border-radius: 999px; padding: 4px 10px; }
.woocommerce .button, .woocommerce button.button, .woocommerce a.button, .woocommerce input.button, .button.add_to_cart_button, .single_add_to_cart_button, .checkout-button, #place_order {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--sp-ink); color: #fff; font: inherit; font-weight: 600; text-decoration: none; line-height: 1.2; transition: background .15s ease; }
.woocommerce .button:hover, .button.add_to_cart_button:hover { background: #000; color: #fff; }
.button.add_to_cart_button.added { background: var(--sp-ok); }
a.added_to_cart { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--sp-ok); }
.single_add_to_cart_button, .checkout-button, #place_order { background: var(--sp-lime) !important; color: #000 !important; min-height: 54px; font-size: 17px; padding: 0 32px; }
.single_add_to_cart_button:hover, .checkout-button:hover, #place_order:hover { background: var(--sp-lime-2) !important; }
.woocommerce-pagination { margin-top: 30px; }
.woocommerce-pagination ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 0; margin: 0; border: 0; }
.woocommerce-pagination li { border: 0 !important; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; text-decoration: none; font-weight: 600; color: var(--sp-ink); box-shadow: var(--sp-shadow); }
.woocommerce-pagination .current { background: var(--sp-ink); color: var(--sp-lime); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { list-style: none; background: #fff; border-radius: 12px; padding: 14px 18px; margin: 0 0 18px; border-left: 4px solid var(--sp-ink); box-shadow: var(--sp-shadow); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.woocommerce-message { border-left-color: var(--sp-ok); }
.woocommerce-error { border-left-color: #c62828; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 40px; }

/* ---------------- WooCommerce: single product ---------------- */
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 40px; align-items: start; position: relative; }
.single-product div.product .woocommerce-product-gallery { background: #fff; border-radius: 20px; padding: 18px; box-shadow: var(--sp-shadow); position: relative; margin: 0; width: auto !important; float: none !important; }
.single-product div.product .woocommerce-product-gallery img { border-radius: 12px; }
.woocommerce-product-gallery__trigger { position: absolute; right: 22px; top: 22px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: var(--sp-shadow); display: grid; place-items: center; text-indent: -9999px; overflow: hidden; }
.woocommerce-product-gallery__trigger::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--sp-ink); border-radius: 50%; display: block; text-indent: 0; }
.flex-control-thumbs { list-style: none; display: flex; gap: 8px; padding: 0; margin: 12px 0 0; }
.flex-control-thumbs li { width: 72px; }
.flex-control-thumbs img { cursor: pointer; opacity: .6; border: 1px solid var(--sp-line); }
.flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--sp-ink); }
.single-product div.product .summary { width: auto !important; float: none !important; margin: 0; }
.single-product .product_title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 700; margin: 0 0 12px; }
.single-product .summary .price { font-size: 32px; font-weight: 700; color: var(--sp-ink); margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.woocommerce-product-details__short-description { color: var(--sp-muted); font-size: 16px; margin-bottom: 18px; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; margin: 0 0 18px; }
.single-product form.cart .quantity { flex: 0 0 auto; }
.quantity .qty { width: 84px; min-height: 54px; border: 1px solid var(--sp-line-2); border-radius: 999px; text-align: center; font: inherit; font-size: 17px; background: #fff; }
.stock { font-weight: 600; color: var(--sp-ok); }
.sp-usp-mini { list-style: none; margin: 0 0 18px; padding: 14px 16px; background: #fff; border-radius: 14px; display: grid; gap: 6px; font-size: 14.5px; color: var(--sp-muted); box-shadow: var(--sp-shadow); }
.sp-usp-mini li { padding-left: 22px; position: relative; }
.sp-usp-mini li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--sp-lime); box-shadow: 0 0 0 2px var(--sp-ink) inset; }
.sp-usp-mini b { color: var(--sp-ink); }
.sp-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0 0 16px; font-size: 14.5px; }
.sp-meta div { display: flex; gap: 6px; }
.sp-meta dt { color: var(--sp-muted); }
.sp-meta dd { margin: 0; font-weight: 600; }
.sp-compat { border-top: 1px solid var(--sp-line); padding-top: 16px; }
.sp-compat__title { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.sp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sp-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-line-2); text-decoration: none; font-size: 13.5px; color: var(--sp-ink); }
.sp-chips a:hover { border-color: var(--sp-ink); }
.sp-compat__more { font-size: 13.5px; color: var(--sp-muted); margin: 10px 0 0; }
.woocommerce-tabs { grid-column: 1 / -1; background: #fff; border-radius: 20px; box-shadow: var(--sp-shadow); padding: 8px clamp(18px, 3vw, 36px) clamp(18px, 3vw, 32px); margin-top: 12px; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0 0 8px; border-bottom: 1px solid var(--sp-line); }
.woocommerce-tabs ul.tabs li a { display: inline-block; padding: 14px 4px; margin-right: 18px; font-weight: 600; text-decoration: none; color: var(--sp-muted); border-bottom: 3px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--sp-ink); border-bottom-color: var(--sp-lime); }
.woocommerce-Tabs-panel { max-width: 860px; font-size: 16px; }
.woocommerce-Tabs-panel h3 { font-size: 20px; margin: 26px 0 8px; }
.woocommerce-Tabs-panel ul { padding-left: 20px; }
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 24px; }
.related.products > h2, .upsells.products > h2 { font-size: 26px; font-weight: 700; margin-bottom: 16px; }

/* ---------------- cart + checkout ---------------- */
.sp-main--shop .woocommerce { display: block; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); overflow: hidden; font-size: 15px; }
table.shop_table th, table.shop_table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--sp-line); vertical-align: middle; }
table.shop_table thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--sp-muted); background: #fafaf7; }
table.shop_table img { width: 64px; height: 64px; object-fit: contain; }
table.shop_table a.remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--sp-bg); text-decoration: none; color: var(--sp-ink); font-size: 20px; }
table.shop_table a.remove:hover { background: #fde7e7; color: #c62828; }
table.cart td.actions { background: #fafaf7; }
table.cart td.actions .coupon { display: inline-flex; gap: 8px; flex-wrap: wrap; }
table.cart td.actions .coupon input, .woocommerce form .input-text, .woocommerce form select, .select2-container .select2-selection--single {
  font: inherit; border: 1px solid var(--sp-line-2); border-radius: 12px; padding: 10px 14px; min-height: 46px; background: #fff; width: 100%; }
table.cart td.actions .coupon input { width: auto; }
.cart-collaterals { display: flex; justify-content: flex-end; margin-top: 24px; }
.cart_totals { width: 100%; max-width: 460px; background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 22px; }
.cart_totals h2 { font-size: 22px; }
.cart_totals table.shop_table { box-shadow: none; border-radius: 0; }
.wc-proceed-to-checkout .checkout-button { width: 100%; margin-top: 14px; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px; align-items: start; }
form.checkout #customer_details { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: clamp(18px, 3vw, 30px); }
form.checkout #customer_details .col-1, form.checkout #customer_details .col-2 { width: 100%; float: none; }
form.checkout h3, #order_review_heading { font-size: 22px; margin: 0 0 14px; }
#order_review_heading { grid-column: 2; grid-row: 1; margin: 0; align-self: end; display: none; }
form.checkout #order_review { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 22px; position: sticky; top: 140px; }
form.checkout #order_review .shop_table { box-shadow: none; border-radius: 0; }
.woocommerce form .form-row { margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; }
.woocommerce form .form-row label { font-size: 14px; font-weight: 600; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 8px); display: inline-flex; }
.woocommerce form .form-row-first { margin-right: 12px; }
.woocommerce-checkout-payment { background: var(--sp-bg); border-radius: 14px; padding: 16px; margin-top: 16px; }
.woocommerce-checkout-payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 12px; }
.woocommerce-checkout-payment .payment_box { font-size: 14px; color: var(--sp-muted); }
#place_order { width: 100%; }
.woocommerce-terms-and-conditions-wrapper { font-size: 13.5px; color: var(--sp-muted); }
.woocommerce-order { background: #fff; border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: clamp(18px, 3vw, 32px); }
.woocommerce-order-overview { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; padding: 0; }
.cart-empty.woocommerce-info { font-size: 17px; }
.return-to-shop .button { margin-top: 6px; }

/* ---------------- contact ---------------- */
.sp-lead { font-size: 18px; color: var(--sp-muted); max-width: 64ch; margin: -8px 0 26px; }
.sp-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sp-contact__card { background: var(--sp-card); border-radius: var(--sp-radius); padding: 24px; box-shadow: var(--sp-shadow); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sp-contact__card h2 { font-size: 20px; margin: 0; }
.sp-contact__card p, .sp-contact__card address { margin: 0; color: var(--sp-muted); font-style: normal; line-height: 1.7; }
.sp-contact__card--main { grid-column: 1 / -1; background: var(--sp-black); color: #fff; }
.sp-contact__card--main p { color: rgba(255,255,255,.7); }
.sp-contact__card--main .sp-btn { font-size: 18px; }
.sp-contact__hint { font-size: 14px; }
.sp-hours { margin: 0; display: grid; gap: 6px; width: 100%; }
.sp-hours div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--sp-line); padding-bottom: 6px; }
.sp-hours dt { color: var(--sp-muted); }
.sp-hours dd { margin: 0; font-weight: 600; }
@media (max-width: 900px) { .sp-contact { grid-template-columns: 1fr; } }

/* ---------------- QR reorder landing ---------------- */
.sp-reorder__card { background: var(--sp-black); color: #fff; border-radius: 24px; padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 14px; }
.sp-reorder__card h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.sp-reorder__lead { color: rgba(255,255,255,.72); font-size: 18px; max-width: 58ch; margin: 0 0 8px; }
.sp-reorder__or { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 10px; color: rgba(255,255,255,.6); }
.sp-reorder__steps { margin-top: 18px; }
@media (min-width: 900px) { .sp-reorder__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------------- printer finder plugin on this theme ---------------- */
.page .sp-content .sp-finder { border: 0; box-shadow: none; padding: 0; max-width: none; }

/* ---------------- responsive ---------------- */
.sp-header__in > * { min-width: 0; }
.sp-logo { flex-shrink: 0; }
.sp-nav a { white-space: nowrap; }
@media (max-width: 1240px) {
  .sp-finder-link span, .sp-cart__total { display: none; }
  .sp-finder-link { padding: 10px 12px; }
  .sp-nav .sp-nav__brands { display: none; }
  .sp-header__in { gap: 16px; }
}
@media (max-width: 1100px) {
  ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-brands { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-nav .sp-nav__brands { display: none; }
}
@media (max-width: 900px) {
  .sp-header__in { grid-template-columns: auto auto; gap: 12px; padding-block: 10px; }
  .sp-header .sp-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }
  .sp-actions { justify-self: end; }
  .sp-finder-link span, .sp-cart__total { display: none; }
  .sp-menu-btn { display: inline-grid; place-items: center; }
  .sp-nav { display: none; }
  .sp-nav.is-open { display: block; }
  .sp-nav__in { flex-direction: column; align-items: stretch; padding-block: 8px; }
  .sp-nav ul { flex-direction: column; }
  .sp-nav .sp-nav__brands { display: flex; flex-direction: row !important; flex-wrap: wrap; }
  .sp-hero__in { grid-template-columns: minmax(0, 1fr); }
  .sp-hero__copy, .sp-hero__visual { min-width: 0; }
  .sp-hero__visual { min-height: 320px; max-width: 520px; width: 100%; margin: 0 auto; }
  .sp-cats { grid-template-columns: 1fr; }
  .sp-steps-wrap { grid-template-columns: 1fr; }
  .sp-assure__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-footer__grid { grid-template-columns: 1fr 1fr; }
  .single-product div.product { grid-template-columns: 1fr; }
  form.checkout { grid-template-columns: 1fr; }
  form.checkout #order_review { position: static; }
  ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .admin-bar .sp-header { top: 0; }
}
@media (max-width: 600px) {
  .sp-hide-sm { display: none !important; }
  .sp-topbar__in { gap: 2px 16px; font-size: 12.5px; }
  .sp-logo img { width: 130px; }
  .sp-search button[type="submit"] { padding: 0 14px; }
  .sp-hero__stats dt { font-size: 24px; }
  .sp-hero__visual { min-height: 260px; }
  .sp-brands { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-footer__grid { grid-template-columns: 1fr; }
  .sp-catcard { grid-template-columns: minmax(0, 1fr) 96px; }
  .sp-catcard img { width: 96px; height: 96px; }
  ul.products li.product { padding: 10px 10px 12px; }
  ul.products li.product .woocommerce-loop-product__title { font-size: 14px; }
  ul.products li.product .price { font-size: 17px; }
  ul.products li.product .button { padding: 0 12px; font-size: 14px; }
  .woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; margin-right: 0; }
  table.shop_table_responsive thead { display: none; }
  table.shop_table_responsive tr td { display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; text-align: left; }
  table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.product-thumbnail::before, table.shop_table_responsive tr td.actions::before { content: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
