/*
Theme Name: Luvox
Theme URI: https://luvoxpetrochem.com
Author: Luvox Petrochem
Description: Manufacturer catalog for Luvox Petrochem. Tin design: navy label, fixed pack window, listed price.
Version: 2.2.2
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: luvox
*/

:root {
  --ink: #101418;
  --field: #eef1f4;
  --card: #ffffff;
  --navy: #1b3a6b;
  --signal: #d0121a;
  --signal-hover: #a80e15;
  --line: #d3d8de;
  --control-line: #78838f;
  --muted: #5c6770;
  --well: #f4f6f8;
  --max: 1180px;
  --sans: "Barlow", "Segoe UI", sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: #fff;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.utility { background: var(--ink); color: #d5dbe3; font-size: 14px; }
.utility a { color: #fff; text-decoration: none; }
.utility-row {
  display: flex;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.mast {
  display: grid;
  grid-template-columns: auto minmax(180px, 320px) auto;
  grid-template-areas:
    "logo find cart"
    "nav nav nav";
  gap: 12px 20px;
  align-items: center;
  padding: 14px 0 12px;
}
.brand { grid-area: logo; text-decoration: none; color: inherit; }
.logo-well {
  display: flex;
  align-items: center;
  width: 184px;
  height: 56px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
}
.logo-well img {
  width: 184px;
  height: 56px;
  max-width: none;
  object-fit: contain;
}
.logo-type {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 14px;
  line-height: .85;
}
.logo-type strong {
  font-family: var(--cond);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .01em;
}
.logo-type span {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
}
.find { grid-area: find; justify-self: end; width: 100%; }
.find input[type="search"] { width: 100%; }
.cart-link {
  grid-area: cart;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.cart-count { display: inline-block; }
.nav { grid-area: nav; }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.nav-label {
  display: none;
  grid-area: menu;
  width: fit-content;
  padding: 8px 12px;
  color: var(--navy);
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--navy);
}
.nav-list, .nav .nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  list-style: none;
  margin: 0;
  padding: 0 0 4px;
}
.nav a, .nav-list a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.nav a[aria-current="page"], .nav-list .current-menu-item a { color: var(--signal); }

.label { background: var(--navy); color: #fff; }
.label-inner {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 48px 0;
}
.label h1 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: .98;
  margin: 8px 0 14px;
  letter-spacing: 0;
  max-width: 11ch;
}
.label p { margin: 0 0 16px; max-width: 42ch; color: #e4eaf3; }
.kicker { font-size: 15px; color: #c5d2e4; margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button, button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  appearance: none;
  border: 0;
  background: var(--signal);
  color: #fff;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 16px;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  display: inline-block;
  line-height: 1.2;
}
.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--signal-hover); color: #fff; }
.button.is-pending { background: var(--signal-hover); }
.button.ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px #fff;
}
.button.ghost:hover { background: #fff; color: var(--navy); }
.can {
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  width: min(100%, 380px);
  justify-self: end;
}
.pack-window {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background-color: var(--well);
  background-image:
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy)),
    linear-gradient(var(--navy), var(--navy));
  background-size: 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px, 16px 1px, 1px 16px;
  background-position:
    10px 10px, 10px 10px,
    calc(100% - 10px) 10px, calc(100% - 10px) 10px,
    10px calc(100% - 10px), 10px calc(100% - 10px),
    calc(100% - 10px) calc(100% - 10px), calc(100% - 10px) calc(100% - 10px);
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(27, 58, 107, .4);
}
.pack-window img,
.pack-window .pack-image {
  position: absolute;
  top: 10%;
  right: 10%;
  bottom: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  max-width: none;
  margin: 0;
  object-fit: contain;
}
.pack-pending {
  position: absolute;
  inset: 28px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--navy);
}
.pack-pending span {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 22ch;
}
.pack-pending small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.pack-window:has(img) .pack-pending { visibility: hidden; }

.grade-plate {
  background: var(--card);
  border-top: 4px solid var(--navy);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.can .grade-plate { min-height: 118px; }
.plate-grade {
  margin: 0;
  font-family: var(--cond);
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--navy);
}
.plate-name, .grade-plate h2, .grade-plate h2 a {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}
.grade-plate h2 { margin: 0; }
.plate-packs {
  margin: 4px 0 0;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}
.plate-packs span { color: var(--ink); font-weight: 600; text-align: right; }
.plate-price, .plate-price .amount, .price, .woocommerce-Price-amount {
  color: var(--signal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.plate-price { margin: 4px 0 0; font-size: 22px; }
.can .plate-name { display: block; }

.paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 28px 0 8px;
}
.path {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 16px 18px 18px;
  background: var(--card);
  border-top: 4px solid var(--navy);
  text-decoration: none;
  color: inherit;
}
a.path:hover strong { color: var(--signal); }
.path strong {
  font-family: var(--cond);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  color: var(--navy);
}
.path > span { color: var(--muted); }
.path-find label { margin: 0; }
.path-find-row {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}
.path-find-row input[type="search"] { flex: 1; min-width: 0; }
.path-find-row button { padding: 10px 14px; }

.ranges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px 0 8px;
}
.ranges a {
  display: block;
  padding-top: 14px;
  border-top: 4px solid var(--navy);
  text-decoration: none;
  color: inherit;
}
.ranges strong {
  display: block;
  font-family: var(--cond);
  font-size: 36px;
  line-height: 1;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.ranges span { color: var(--muted); }

.shelf { padding: 36px 0 12px; }
.shelf-head, .band-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.shelf-rule {
  height: 2px;
  margin: 10px 0 16px;
  background: var(--navy);
  transform-origin: left center;
}
.shelf h2, .sheet h1, .entry-title, .product_title, .woocommerce-products-header__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.04;
  margin: 0;
  color: var(--navy);
}
.band-head h2 {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 36px;
  line-height: 1;
  margin: 0;
  color: var(--navy);
}
.uses { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 12px 0 0; padding: 0 0 28px; }
.uses a { font-weight: 600; text-decoration: none; }

.product-grid, ul.products {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-grid::before, .product-grid::after, ul.products::before, ul.products::after { display: none; }
.tin, ul.products li.product {
  background: var(--card);
  margin: 0 !important;
  padding: 0;
  width: auto !important;
  float: none !important;
  display: flex;
  flex-direction: column;
}
.tin-photo { display: block; text-decoration: none; }
.tin-buy {
  margin-top: auto;
  padding: 0 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.tin .button, ul.products li.product .button { margin: 0; }
.tin a.added_to_cart {
  background: transparent;
  color: var(--navy);
  padding: 0;
  font-weight: 600;
  box-shadow: none;
}
.cart-status { margin: 0; min-height: 0; font-size: 14px; font-weight: 600; color: var(--navy); }
.cart-status:empty { display: none; }

.sheet { padding: 32px 0 64px; }
.prose { max-width: 72ch; }
.prose p, .prose li { margin: 0 0 12px; }
.split {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 36px;
  align-items: start;
}
.product-photo .pack-window { width: 100%; }
.buy-col .plate-grade { font-size: 64px; line-height: .85; margin: 0 0 8px; }
.buy-col .price { font-size: 28px; margin: 8px 0; }
.buy-col .plate-packs { margin: 0 0 12px; }
.trade-notes { margin: 16px 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.trade-notes li { margin: 0 0 6px; }
.enquire-link { font-weight: 700; }
.ask-plant {
  margin-top: 28px;
  padding: 20px;
  background: var(--card);
  border-top: 4px solid var(--navy);
  max-width: 720px;
}
.ask-plant h2 {
  font-family: var(--cond);
  font-size: 36px;
  line-height: 1;
  margin: 0 0 8px;
  color: var(--navy);
}
.ask-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.crumbs { font-size: 14px; margin: 0 0 12px; color: var(--muted); }
.crumbs a { color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  width: 100%;
  border: 1px solid var(--control-line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px;
  border-radius: 0;
}
.woocommerce .quantity .qty { width: 72px; padding: 10px; border: 1px solid var(--control-line); font: inherit; }
.notice, .woocommerce-message, .woocommerce-info, .woocommerce-error {
  background: #fff;
  border-left: 4px solid var(--navy);
  padding: 12px 14px;
  margin: 0 0 16px;
}
.woocommerce-ordering, .woocommerce-result-count { margin: 8px 0 16px; float: none; }
.woocommerce nav.woocommerce-pagination { margin: 20px 0; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; margin: 0 4px; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  background: #fff;
  color: var(--ink);
  padding: 8px 12px;
}
.woocommerce table.shop_table { width: 100%; border-collapse: collapse; background: #fff; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); }

.site-footer { background: var(--ink); color: #d5dbe3; padding: 36px 0 20px; margin-top: 20px; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-family: var(--cond); font-size: 32px; margin: 0 0 8px; }
.footgrid { display: grid; grid-template-columns: 1.5fr .8fr .8fr; gap: 24px; }
.legal { margin-top: 20px; font-size: 13px; }

@media (max-width: 1099px) {
  .mast {
    grid-template-columns: 1fr auto auto;
    grid-template-areas:
      "logo menu cart"
      "find find find"
      "nav nav nav";
  }
  .find { justify-self: stretch; }
  .logo-well, .logo-well img { width: 152px; height: 48px; }
  .logo-type strong { font-size: 24px; }
  .nav-label { display: inline-block; }
  .nav { display: none; }
  .nav-toggle:checked ~ .nav { display: block; }
  .nav-toggle:checked ~ .nav .nav-list { flex-direction: column; align-items: flex-start; }
  .nav-toggle:focus-visible + .nav-label { outline: 3px solid var(--signal); outline-offset: 2px; }
}
@media (max-width: 1023px) {
  .product-grid, ul.products { grid-template-columns: 1fr 1fr; }
  .label-inner, .split, .footgrid { grid-template-columns: 1fr; }
  .can { justify-self: start; }
  .ranges { grid-template-columns: 1fr; gap: 18px; }
  .paths { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 599px) {
  .wrap, .label-inner { width: min(var(--max), calc(100% - 32px)); }
  .product-grid, ul.products, .ask-grid { grid-template-columns: 1fr; }
  .utility-row { align-items: flex-start; }
  .band-head h2 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pack-image, .cart-count, .shelf-rule { transform: none !important; }
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--signal);
  color: #fff;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--signal-hover);
  color: #fff;
}
