/* =========================================================
   PrintUno — component styles
   Lives in the theme now (not Additional CSS), so this is the
   last stylesheet loaded and mostly wins without !important.
   Kept on WooCommerce Blocks' own class names where a rule
   needs to beat their inline/plugin CSS.
   ========================================================= */

html { background: var(--wp--preset--color--pu-white); }

/* ---- Buttons (WooCommerce block + classic markup) ---- */
.wp-block-button__link,
.wc-block-components-button,
.wc-block-components-product-button__button,
button.button,
a.button,
input[type="submit"],
.single_add_to_cart_button {
  background: var(--wp--preset--color--pu-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  transition: background-color 150ms ease-in-out;
}
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.wc-block-components-product-button__button:hover,
button.button:hover,
a.button:hover,
.single_add_to_cart_button:hover {
  background: var(--wp--preset--color--pu-blue-dark) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--pu-blue) !important;
  border: 2px solid var(--wp--preset--color--pu-blue) !important;
}

/* ---- Sale badges ---- */
.wc-block-components-product-sale-badge,
.onsale {
  background: var(--wp--preset--color--pu-amber) !important;
  color: #fff !important;
  font-weight: 700 !important;
  border-radius: 3px !important;
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px !important;
}

/* ---- Product cards (shop archive) ---- */
li.wc-block-product,
ul.products li.product {
  background: var(--wp--preset--color--pu-white);
  border: 1px solid var(--wp--preset--color--pu-border);
  border-radius: 4px;
  padding: 16px;
  transition: box-shadow 150ms ease-in-out;
}
li.wc-block-product:hover,
ul.products li.product:hover {
  box-shadow: 0 8px 24px rgba(11,18,32,0.10);
}
li.wc-block-product img,
ul.products li.product img { border-radius: 2px; }

.wc-block-components-product-price,
.price { color: var(--wp--preset--color--pu-ink) !important; font-weight: 700; }
.wc-block-components-product-price del,
.price del { color: var(--wp--preset--color--pu-muted) !important; opacity: 1; font-weight: 400; }
.wc-block-components-product-price ins,
.price ins { text-decoration: none; color: var(--wp--preset--color--pu-blue) !important; }

.woocommerce-breadcrumb { color: var(--wp--preset--color--pu-muted); }
.woocommerce-breadcrumb a { color: var(--wp--preset--color--pu-blue); }

/* ---- Forms ---- */
input[type="text"], input[type="email"], input[type="number"], input[type="tel"], input[type="password"], select, textarea {
  border: 1px solid var(--wp--preset--color--pu-border) !important;
  border-radius: 4px !important;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--wp--preset--color--pu-blue) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--wp--preset--color--pu-blue-light);
}

.woocommerce-result-count, .wc-block-catalog-sorting { color: var(--wp--preset--color--pu-muted); }

/* =========================================================
   Homepage landing sections (/home/ page, wp:html block)
   ========================================================= */
.pu-home { max-width: 1440px; margin: 0 auto; padding: 0 24px; }
.pu-home section { margin: 16px 0; }
.pu-home h1, .pu-home h2, .pu-home h3 { margin: 0; }

.pu-hero { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.pu-hero-main {
  position: relative;
  background: linear-gradient(90deg, rgba(8,13,24,0.93) 0%, rgba(8,13,24,0.78) 42%, rgba(8,13,24,0.32) 100%), url('https://192.168.1.60:8443/wp-content/uploads/2026/09/printer.png') center/cover no-repeat;
  border-radius: 4px; padding: 32px 40px; color: #fff; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; min-height: 300px;
}
.pu-hero-eyebrow { color: var(--wp--preset--color--pu-amber); font-weight: 700; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.pu-hero-main h1 { font-size: 44px; line-height: 1.06; font-weight: 800; letter-spacing: -0.02em; color: #fff !important; max-width: 560px; }
.pu-hero-main h1 span { color: var(--wp--preset--color--pu-amber); display: block; }
.pu-hero-main p { font-size: 16px; color: #CBD5E1; max-width: 480px; margin: 16px 0 24px; }
.pu-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--wp--preset--color--pu-amber); color: #fff !important; font-weight: 700; padding: 13px 24px; border-radius: 4px; text-decoration: none; transition: background-color 150ms ease; font-size: 15px; align-self: flex-start; width: fit-content; }
.pu-btn:hover { background: var(--wp--preset--color--pu-amber-dark); color: #fff !important; }
.pu-hero-trust { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.pu-trust-item { display: flex; align-items: center; gap: 8px; color: #CBD5E1; font-size: 13px; font-weight: 500; }
.pu-trust-item svg { flex-shrink: 0; color: var(--wp--preset--color--pu-amber); }

.pu-hero-side { display: flex; flex-direction: column; gap: 8px; }
.pu-tile { border-radius: 4px; padding: 18px 20px; color: #fff; flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 146px; position: relative; overflow: hidden; }
.pu-tile-amber { background: linear-gradient(100deg, rgba(120,53,15,0.72) 0%, rgba(180,83,9,0.42) 48%, rgba(180,83,9,0.15) 100%), url('https://192.168.1.60:8443/wp-content/uploads/2026/09/opmaatgeprint.png') center/cover no-repeat; }
.pu-tile-navy { background: linear-gradient(100deg, rgba(11,18,32,0.75) 0%, rgba(11,18,32,0.48) 48%, rgba(11,18,32,0.18) 100%), url('https://192.168.1.60:8443/wp-content/uploads/2026/09/helmet.png') center/cover no-repeat; border: 1px solid #1E293B; }
.pu-tile h3 { font-size: 19px; font-weight: 800; line-height: 1.2; color: #fff !important; text-transform: uppercase; letter-spacing: -0.01em; }
.pu-tile p { font-size: 14px; color: rgba(255,255,255,0.85); margin: 6px 0 14px; max-width: 260px; }
.pu-tile .pu-btn { background: #fff; color: var(--wp--preset--color--pu-navy) !important; padding: 9px 16px; font-size: 13px; align-self: flex-start; }
.pu-tile .pu-btn:hover { background: #0B1220; color: #fff !important; }
.pu-steps { display: flex; align-items: center; gap: 8px; margin-top: 2px; flex-wrap: wrap; }
.pu-step { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #CBD5E1; }
.pu-step svg { color: var(--wp--preset--color--pu-amber); }
.pu-step-arrow { color: #475569; }

.pu-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }
.pu-section-head h2 { font-size: 24px; font-weight: 800; color: var(--wp--preset--color--pu-ink); }
.pu-section-head h2 span { color: var(--wp--preset--color--pu-amber); }
.pu-section-head a { font-size: 14px; font-weight: 600; color: var(--wp--preset--color--pu-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.pu-section-head a:hover { color: var(--wp--preset--color--pu-blue-dark); }

.pu-cat-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; }
.pu-cat-tile { text-decoration: none; color: var(--wp--preset--color--pu-ink) !important; display: block; }
.pu-cat-icon {
  box-sizing: border-box; width: 100%; aspect-ratio: 1/1; border-radius: 4px; background: var(--wp--preset--color--pu-surface); border: 1px solid var(--wp--preset--color--pu-border);
  position: relative; overflow: hidden; transition: border-color 150ms ease;
}
.pu-cat-tile:hover .pu-cat-icon { border-color: var(--wp--preset--color--pu-blue); }
.pu-cat-icon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 200ms ease; }
.pu-cat-tile:hover .pu-cat-icon img { transform: scale(1.06); }
.pu-cat-icon span {
  position: absolute; left: 0; right: 0; bottom: 0; display: block; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.25;
  color: #fff; padding: 16px 6px 8px; background: linear-gradient(to top, rgba(11,18,32,0.85), rgba(11,18,32,0));
}

.pu-featured-grid { display: grid; grid-template-columns: repeat(8,1fr); gap: 12px; }
.pu-product-card-wrap { background: var(--wp--preset--color--pu-white); border: 1px solid var(--wp--preset--color--pu-border); border-radius: 4px; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pu-product-card { text-decoration: none; color: var(--wp--preset--color--pu-ink) !important; display: block; flex: 1; }
.pu-product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #F1F5F9; display: block; }
.pu-product-card .pu-cardbody { padding: 12px; }
.pu-product-card .pu-badge { display: inline-block; background: var(--wp--preset--color--pu-amber); color: #fff !important; font-weight: 700; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; }
.pu-product-card h3 { font-size: 15px; font-weight: 700; margin: 8px 0 4px; color: var(--wp--preset--color--pu-ink); }
.pu-product-card .pu-price { font-size: 13px; white-space: nowrap; }
.pu-product-card .pu-price del { color: var(--wp--preset--color--pu-muted); font-weight: 400; margin-right: 6px; }
.pu-product-card .pu-price ins { color: var(--wp--preset--color--pu-blue); font-weight: 700; text-decoration: none; }
.pu-add { display: block; text-align: center; padding: 10px; background: var(--wp--preset--color--pu-blue); color: #fff !important; font-weight: 600; text-decoration: none; font-size: 14px; border-top: 1px solid var(--wp--preset--color--pu-border); transition: background-color 150ms ease; }
.pu-add:hover { background: var(--wp--preset--color--pu-blue-dark); }

.pu-trust-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pu-trust-col { border-radius: 4px; padding: 28px; min-height: 200px; display: flex; flex-direction: column; justify-content: center; }
.pu-trust-eco { background: linear-gradient(100deg, rgba(5,20,10,0.82) 0%, rgba(5,20,10,0.55) 55%, rgba(5,20,10,0.25) 100%), url('https://192.168.1.60:8443/wp-content/uploads/2026/09/leaves.png') center/cover no-repeat; color: #fff; }
.pu-trust-eco h3 { font-size: 21px; font-weight: 800; line-height: 1.2; color: #fff !important; }
.pu-trust-eco h3 span { color: #4ADE80; display: block; }
.pu-eco-items { display: flex; gap: 18px; margin-top: 18px; flex-wrap: wrap; }
.pu-eco-items div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: #DCFCE7; text-align: center; max-width: 90px; }
.pu-eco-items svg { color: #4ADE80; }

.pu-trust-review { background: var(--wp--preset--color--pu-blue-light); border: 1px solid var(--wp--preset--color--pu-border); }
.pu-stars { color: var(--wp--preset--color--pu-amber); font-size: 18px; letter-spacing: 2px; }
.pu-trust-review blockquote { font-size: 16px; font-weight: 600; color: var(--wp--preset--color--pu-ink); margin: 12px 0 8px; font-style: normal; }
.pu-trust-review cite { font-size: 13px; color: var(--wp--preset--color--pu-muted); font-style: normal; }

.pu-trust-contact { background: var(--wp--preset--color--pu-navy); color: #fff; position: relative; }
.pu-trust-contact h3 { font-size: 19px; font-weight: 800; color: #fff !important; }
.pu-trust-contact p { color: #CBD5E1; font-size: 14px; margin: 6px 0 16px; }
.pu-avatar-placeholder { width: 56px; height: 56px; border-radius: 4px; background: #1E293B; display: flex; align-items: center; justify-content: center; color: #64748B; margin-bottom: 12px; }

.pu-footer-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; color: #fff; }
.pu-bottom-items { display: flex; gap: 36px; flex-wrap: wrap; }
.pu-bottom-item { display: flex; align-items: center; gap: 10px; }
.pu-bottom-item svg { color: var(--wp--preset--color--pu-amber); flex-shrink: 0; }
.pu-bottom-item strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.pu-bottom-item span { display: block; font-size: 12px; color: #94A3B8; }
.pu-tagline { text-align: right; }
.pu-tagline img { width: 150px; height: auto; display: inline-block; vertical-align: middle; }

/* Hide the default page-title block on the custom Home landing page */
body:has(.pu-home) .wp-block-post-title { display: none; }

@media (max-width: 1100px) {
  .pu-cat-grid, .pu-featured-grid { grid-template-columns: repeat(4,1fr); }
}
@media (max-width: 900px) {
  .pu-hero { grid-template-columns: 1fr; }
  .pu-trust-row { grid-template-columns: 1fr; }
  .pu-hero-main h1 { font-size: 34px; }
  .pu-footer-top { flex-direction: column; align-items: flex-start; }
  .pu-tagline { text-align: left; }
}
@media (max-width: 600px) {
  .pu-cat-grid, .pu-featured-grid { grid-template-columns: repeat(2,1fr); }
}

/* Branded placeholder for products without a real photo yet */
.pu-product-photo {
  width: 100%; aspect-ratio: 1/1; background: var(--wp--preset--color--pu-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: var(--wp--preset--color--pu-muted);
}
.pu-product-photo span { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; }
