/*
Theme Name: Ozepac
Theme URI: https://ozepac.com.au
Author: Ideahub
Description: Custom WooCommerce storefront for Ozepac Solutions Group — wholesale packaging and food-service supplies. Clean, bright catalogue layout built for trade buyers scanning by category and carton price.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ozepac
Tags: e-commerce, custom-logo, custom-menu, featured-images
*/

:root {
  --paper:#FFFFFF; --ground:#F4F7F3; --sunk:#EAEFE8;
  --ink:#14201C; --ink-2:#3E4B46; --muted:#78857E;
  --line:#E1E7E0; --line-2:#CFD8CD;
  --green:#4CA22F; --green-d:#3B821F; --orange:#EE7B1C; --blue:#1B75BB;
  --red:#C0392B;
  --shadow:0 1px 2px rgba(20,32,28,.05), 0 8px 24px -12px rgba(20,32,28,.18);
  --r:10px;
  --sans:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,"SF Mono","Cascadia Mono",Menlo,Consolas,monospace;
  --wrap:1240px;
}

*,*::before,*::after { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; background:var(--ground); color:var(--ink);
  font-family:var(--sans); font-size:16px; line-height:1.55;
  -webkit-font-smoothing:antialiased;
}
img { max-width:100%; height:auto; display:block; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--green-d); }
:focus-visible { outline:2px solid var(--blue); outline-offset:2px; border-radius:4px; }
h1,h2,h3,h4 { text-wrap:balance; }

.oz-wrap { width:min(var(--wrap),100% - 40px); margin-inline:auto; }
.screen-reader-text {
  position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}
.oz-eyebrow {
  font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
}
.oz-sku { font-family:var(--mono); font-size:12px; color:var(--muted); letter-spacing:.02em; }

/* ---------------- notice bar ---------------- */
.oz-notice { background:var(--blue); color:#fff; font-size:13px; }
.oz-notice .oz-wrap { display:flex; gap:12px; align-items:center; padding:9px 0; flex-wrap:wrap; }
.oz-notice a { color:#fff; text-decoration:underline; }
.oz-notice__right { margin-left:auto; }

/* ---------------- header ---------------- */
.oz-top { background:var(--paper); border-bottom:1px solid var(--line); }
.oz-top .oz-wrap { display:flex; align-items:center; gap:28px; padding:16px 0; }
.oz-logo { display:flex; flex-direction:column; line-height:1; flex:0 0 auto; }
.oz-logo__word { font-size:32px; font-weight:800; letter-spacing:-.03em; }
.oz-logo__word i { font-style:normal; }
.oz-logo__word .o { color:var(--orange); }
.oz-logo__word .z { color:var(--green); }
.oz-logo__word .e { color:var(--blue); }
.oz-logo__word .pac { color:var(--green); }
.oz-logo__sub {
  font-size:9.5px; font-weight:700; letter-spacing:.22em; color:var(--muted);
  text-transform:uppercase; margin-top:5px;
}
.oz-logo img { max-height:52px; width:auto; }

.oz-search {
  flex:1 1 auto; display:flex; align-items:center; gap:10px; background:var(--sunk);
  border:1px solid var(--line); border-radius:var(--r); padding:0 14px; height:48px;
}
.oz-search svg { flex:0 0 auto; color:var(--muted); }
.oz-search input[type="search"] {
  flex:1; border:0; background:none; font:inherit; color:var(--ink); height:100%; min-width:0;
}
.oz-search input::placeholder { color:var(--muted); }
.oz-search button { border:0; background:none; padding:0; cursor:pointer; color:var(--muted); }

.oz-util { display:flex; align-items:center; gap:22px; flex:0 0 auto; }
.oz-util__item { display:flex; flex-direction:column; font-size:12px; color:var(--muted); }
.oz-util__item b { font-size:14px; color:var(--ink); font-weight:650; }
.oz-cart {
  display:flex; align-items:center; gap:9px; background:var(--green); color:#fff;
  padding:11px 18px; border-radius:var(--r); font-weight:650; font-size:14px;
}
.oz-cart:hover { background:var(--green-d); color:#fff; }
.oz-cart__count {
  background:rgba(255,255,255,.25); border-radius:20px; padding:1px 7px; font-size:12px;
  font-variant-numeric:tabular-nums;
}

/* ---------------- category nav ---------------- */
.oz-catnav {
  position:sticky; top:0; z-index:30; background:var(--paper);
  border-bottom:1px solid var(--line); box-shadow:var(--shadow);
}
.oz-catnav__scroll { display:flex; gap:2px; overflow-x:auto; scrollbar-width:thin; }
.oz-catnav a {
  white-space:nowrap; padding:13px 14px; font-size:13px; font-weight:600;
  color:var(--ink-2); border-bottom:2px solid transparent;
}
.oz-catnav a:hover { color:var(--ink); background:var(--sunk); }
.oz-catnav a.is-active { color:var(--green-d); border-bottom-color:var(--green); }

/* ---------------- hero ---------------- */
.oz-hero { background:var(--paper); border-bottom:1px solid var(--line); }
.oz-hero .oz-wrap { padding:64px 0 52px; max-width:820px; text-align:center; }
.oz-hero h1 {
  font-size:clamp(34px,5vw,52px); line-height:1.06; letter-spacing:-.03em;
  font-weight:800; margin:0 0 16px;
}
.oz-hero h1 em { font-style:normal; color:var(--green); }
.oz-hero p { font-size:18px; color:var(--ink-2); margin:0 auto 28px; max-width:60ch; }
.oz-hero .oz-search { height:56px; font-size:16px; }
.oz-trust {
  display:flex; justify-content:center; gap:36px; flex-wrap:wrap; margin-top:30px;
  padding-top:26px; border-top:1px solid var(--line);
}
.oz-trust div { text-align:center; }
.oz-trust b {
  display:block; font-size:22px; font-weight:750; letter-spacing:-.02em;
  font-variant-numeric:tabular-nums;
}
.oz-trust span { font-size:12.5px; color:var(--muted); }

/* ---------------- sections ---------------- */
.oz-section { padding:56px 0; }
.oz-section--tight { padding-top:0; }
.oz-head {
  display:flex; align-items:flex-end; justify-content:space-between; gap:20px;
  margin-bottom:26px; flex-wrap:wrap;
}
.oz-head h2 { font-size:26px; font-weight:750; letter-spacing:-.02em; margin:0; }
.oz-head p { margin:5px 0 0; color:var(--muted); font-size:14px; }
.oz-link { font-size:14px; font-weight:650; color:var(--green-d); }

/* ---------------- category grid ---------------- */
.oz-cats { display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:14px; }
.oz-cat {
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden; transition:border-color .15s, transform .15s;
}
.oz-cat:hover { border-color:var(--green); transform:translateY(-2px); }
.oz-cat__img { display:block; background:#fff; aspect-ratio:4/3; overflow:hidden; }
.oz-cat__img img { width:100%; height:100%; object-fit:contain; padding:14px; }
.oz-cat__meta { display:block; padding:13px 15px 15px; border-top:1px solid var(--line); }
.oz-cat__name { display:block; font-weight:650; font-size:14px; letter-spacing:-.01em; color:var(--ink); }
.oz-cat__count { display:block; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums; }

/* ---------------- WooCommerce product loop ---------------- */
.woocommerce ul.products,
ul.products {
  display:grid; grid-template-columns:repeat(auto-fill,minmax(228px,1fr)); gap:16px;
  list-style:none; margin:0; padding:0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { content:none; }
ul.products li.product {
  background:var(--paper); border:1px solid var(--line); border-radius:var(--r);
  display:flex; flex-direction:column; overflow:hidden; margin:0; padding:0; width:auto; float:none;
  transition:box-shadow .15s, border-color .15s; position:relative;
}
ul.products li.product:hover { box-shadow:var(--shadow); border-color:var(--line-2); }
ul.products li.product > a.woocommerce-LoopProduct-link {
  display:flex; flex-direction:column; flex:1;
}
ul.products li.product img {
  background:#fff; aspect-ratio:1/1; object-fit:contain; padding:18px; width:100%; margin:0;
}
ul.products li.product .oz-card__body {
  padding:14px 15px 15px; display:flex; flex-direction:column; gap:8px; flex:1;
  border-top:1px solid var(--line);
}
ul.products li.product .woocommerce-loop-product__title {
  font-size:14px; font-weight:600; line-height:1.35; margin:0; padding:0; flex:1; color:var(--ink);
}
ul.products li.product .oz-card__foot {
  display:flex; align-items:baseline; justify-content:space-between; gap:10px;
}
ul.products li.product .price {
  font-size:19px; font-weight:750; letter-spacing:-.02em; color:var(--ink);
  font-variant-numeric:tabular-nums; margin:0;
}
ul.products li.product .price del { font-size:13px; font-weight:500; color:var(--muted); margin-right:5px; }
ul.products li.product .price ins { text-decoration:none; color:var(--red); }
.oz-price-unit { font-size:11px; font-weight:600; color:var(--muted); margin-left:2px; }

/* add-to-cart button inside the loop */
ul.products li.product a.button,
ul.products li.product button.button {
  display:block; width:100%; text-align:center; margin:0;
  background:var(--sunk); color:var(--ink); border:1px solid var(--line-2);
  border-radius:8px; padding:10px 14px; font-size:13.5px; font-weight:650; line-height:1.2;
  cursor:pointer; transition:background .15s, color .15s, border-color .15s;
}
ul.products li.product a.button:hover,
ul.products li.product button.button:hover {
  background:var(--green); color:#fff; border-color:var(--green);
}
ul.products li.product a.added_to_cart {
  display:block; text-align:center; font-size:12.5px; color:var(--green-d); font-weight:600; margin-top:2px;
}

.onsale {
  position:absolute; top:10px; left:10px; z-index:2; background:var(--orange); color:#fff;
  font-size:11px; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:4px 9px; border-radius:20px; margin:0;
}

/* ---------------- shop / archive page ---------------- */
.oz-page { padding:36px 0 64px; }
.oz-page__head { margin-bottom:26px; }
.oz-page__head h1 { font-size:30px; font-weight:780; letter-spacing:-.025em; margin:0 0 6px; }
.oz-page__head p { margin:0; color:var(--muted); font-size:14px; }
.oz-breadcrumb { font-size:12.5px; color:var(--muted); margin-bottom:14px; }
.oz-breadcrumb a { color:var(--muted); }
.oz-breadcrumb a:hover { color:var(--green-d); }

.oz-shop { display:grid; grid-template-columns:238px minmax(0,1fr); gap:34px; align-items:start; }
.oz-side { position:sticky; top:70px; }
.oz-side h3 {
  font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
  margin:0 0 12px; font-weight:700;
}
.oz-side ul { list-style:none; margin:0 0 26px; padding:0; display:flex; flex-direction:column; gap:2px; }
.oz-side li a {
  display:flex; justify-content:space-between; gap:10px; padding:7px 10px; border-radius:7px;
  font-size:13.5px; color:var(--ink-2);
}
.oz-side li a:hover { background:var(--sunk); color:var(--ink); }
.oz-side li.current-cat > a { background:var(--sunk); color:var(--green-d); font-weight:650; }
.oz-side li a span { color:var(--muted); font-size:12px; font-variant-numeric:tabular-nums; }
.oz-side ul ul { margin:2px 0 2px 12px; border-left:1px solid var(--line); padding-left:6px; }

.woocommerce-result-count { color:var(--muted); font-size:13px; margin:0; }
.woocommerce-ordering { margin:0; }
.woocommerce-ordering select, .oz-side select {
  font:inherit; font-size:13.5px; padding:8px 10px; border:1px solid var(--line-2);
  border-radius:8px; background:var(--paper); color:var(--ink);
}
.oz-toolbar {
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  margin-bottom:18px; flex-wrap:wrap;
}

.woocommerce-pagination { margin-top:34px; }
.woocommerce-pagination ul {
  list-style:none; display:flex; gap:6px; padding:0; margin:0; border:0;
}
.woocommerce-pagination li { border:0; margin:0; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display:block; min-width:38px; text-align:center; padding:9px 12px; border-radius:8px;
  border:1px solid var(--line); background:var(--paper); font-size:13.5px; font-weight:600;
  font-variant-numeric:tabular-nums;
}
.woocommerce-pagination span.current { background:var(--green); border-color:var(--green); color:#fff; }
.woocommerce-pagination a:hover { border-color:var(--green); color:var(--green-d); }

/* ---------------- single product ---------------- */
.oz-single { padding:32px 0 64px; }
.woocommerce div.product { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:48px; align-items:start; }
.woocommerce div.product .woocommerce-product-gallery { float:none; width:auto; }
.woocommerce div.product .woocommerce-product-gallery__wrapper { border:1px solid var(--line); border-radius:var(--r); background:#fff; overflow:hidden; }
.woocommerce div.product .woocommerce-product-gallery img { padding:28px; }
.woocommerce div.product .flex-control-thumbs { display:flex; gap:10px; list-style:none; padding:12px 0 0; margin:0; }
.woocommerce div.product .flex-control-thumbs li { width:76px; }
.woocommerce div.product .flex-control-thumbs img { border:1px solid var(--line); border-radius:8px; padding:6px; background:#fff; cursor:pointer; }
.woocommerce div.product .flex-control-thumbs img.flex-active { border-color:var(--green); }
.woocommerce div.product .summary { float:none; width:auto; margin:0; }
.woocommerce div.product .product_title {
  font-size:29px; font-weight:750; letter-spacing:-.025em; margin:8px 0 12px; line-height:1.15;
}
.woocommerce div.product p.price, .woocommerce div.product span.price {
  display:flex; align-items:baseline; gap:10px; margin:18px 0 4px; color:var(--ink);
  font-size:38px; font-weight:800; letter-spacing:-.03em; font-variant-numeric:tabular-nums;
}
.woocommerce div.product p.price del { font-size:20px; font-weight:500; color:var(--muted); }
.woocommerce div.product p.price ins { text-decoration:none; color:var(--red); }
.oz-exgst { font-size:12.5px; color:var(--muted); margin:0 0 20px; }
.oz-instock {
  display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--green-d);
}
.oz-dot { width:7px; height:7px; border-radius:50%; background:var(--green); display:inline-block; }
.woocommerce div.product form.cart { display:flex; gap:12px; align-items:stretch; margin:8px 0 24px; }
.woocommerce div.product form.cart .quantity {
  display:flex; align-items:center; border:1px solid var(--line-2); border-radius:8px; background:var(--paper);
}
.woocommerce div.product form.cart .quantity input {
  width:74px; border:0; background:none; text-align:center; font:inherit; height:46px;
  font-variant-numeric:tabular-nums; color:var(--ink);
}
.woocommerce div.product form.cart button.button {
  flex:1; background:var(--green); color:#fff; border:0; border-radius:8px; padding:0 26px;
  font-size:15px; font-weight:700; cursor:pointer; min-height:46px;
}
.woocommerce div.product form.cart button.button:hover { background:var(--green-d); }
.woocommerce div.product .product_meta { font-size:13px; color:var(--muted); border-top:1px solid var(--line); padding-top:16px; }
.woocommerce div.product .product_meta > span { display:block; margin-bottom:5px; }
.woocommerce-tabs { grid-column:1 / -1; margin-top:16px; }
.woocommerce-tabs ul.tabs {
  list-style:none; display:flex; gap:4px; padding:0; margin:0 0 0; border-bottom:1px solid var(--line);
}
.woocommerce-tabs ul.tabs::before { content:none; }
.woocommerce-tabs ul.tabs li { margin:0; padding:0; background:none; border:0; border-radius:0; }
.woocommerce-tabs ul.tabs li a {
  display:block; padding:12px 16px; font-size:14px; font-weight:650; color:var(--ink-2);
  border-bottom:2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color:var(--green-d); border-bottom-color:var(--green); }
.woocommerce-tabs .panel { padding:22px 0; max-width:72ch; }
.woocommerce-tabs .panel h2 { font-size:19px; font-weight:700; margin:0 0 12px; }
.related.products, .up-sells { grid-column:1 / -1; margin-top:34px; }
.related.products > h2, .up-sells > h2 { font-size:22px; font-weight:750; letter-spacing:-.02em; margin:0 0 20px; }

/* ---------------- notices / cart / checkout ---------------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border:1px solid var(--line); border-top:3px solid var(--green); background:var(--paper);
  border-radius:var(--r); padding:14px 18px; margin:0 0 22px; list-style:none; font-size:14px;
}
.woocommerce-error { border-top-color:var(--red); }
.woocommerce-info { border-top-color:var(--blue); }
.woocommerce-message .button, .woocommerce-info .button {
  float:right; background:var(--green); color:#fff; border-radius:7px; padding:7px 14px;
  font-size:13px; font-weight:650;
}
.woocommerce table.shop_table {
  border:1px solid var(--line); border-radius:var(--r); border-collapse:separate; border-spacing:0;
  background:var(--paper); width:100%;
}
.woocommerce table.shop_table th, .woocommerce table.shop_table td {
  padding:14px 16px; border-bottom:1px solid var(--line); text-align:left;
}
.woocommerce table.shop_table th { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.woocommerce .button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background:var(--green); color:#fff; border:0; border-radius:8px; padding:12px 20px;
  font-size:14px; font-weight:650; cursor:pointer; line-height:1.2;
}
.woocommerce .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { background:var(--green-d); color:#fff; }
.woocommerce .button.alt { background:var(--green); }

/* ---------------- footer ---------------- */
.oz-footer {
  background:var(--paper); border-top:1px solid var(--line); padding:44px 0 32px;
  font-size:13.5px; color:var(--ink-2); margin-top:auto;
}
.oz-fgrid { display:grid; grid-template-columns:1.4fr repeat(3,1fr); gap:32px; }
.oz-fgrid h4 {
  font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
  margin:0 0 12px; font-weight:700;
}
.oz-fgrid ul { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px; }
.oz-fbot {
  margin-top:32px; padding-top:20px; border-top:1px solid var(--line); display:flex;
  justify-content:space-between; gap:16px; flex-wrap:wrap; color:var(--muted); font-size:12.5px;
}
.oz-addr { color:var(--muted); margin:10px 0 0; max-width:34ch; }

/* ---------------- tier / print tables ---------------- */
.oz-tiers { width:100%; border-collapse:collapse; margin:18px 0; font-size:13.5px; }
.oz-tiers th, .oz-tiers td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--line); }
.oz-tiers th {
  font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); font-weight:700;
}
.oz-tiers td:last-child, .oz-tiers th:last-child { text-align:right; font-variant-numeric:tabular-nums; }
.oz-tiers tr:last-child td { border-bottom:0; }
.oz-tiers .woocommerce-Price-amount { font-weight:650; }

.oz-printbadge {
  background:var(--sunk); border:1px solid var(--line-2); border-left:3px solid var(--orange);
  border-radius:8px; padding:11px 14px; font-size:13px; color:var(--ink-2); margin:18px 0 0;
}
.oz-print { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:8px 28px; }
.oz-print__group h4 {
  font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
  font-weight:700; margin:14px 0 0;
}
.oz-print__group .oz-tiers { margin:6px 0 0; }

/* page content */
.oz-content { background:var(--paper); border:1px solid var(--line); border-radius:var(--r); padding:34px; }
.oz-content h1 { font-size:30px; font-weight:780; letter-spacing:-.025em; margin:0 0 16px; }
.oz-content p { max-width:68ch; }

/* ---------------- responsive ---------------- */
@media (max-width:1000px) {
  .oz-shop { grid-template-columns:1fr; }
  .oz-side { position:static; }
  .woocommerce div.product { grid-template-columns:1fr; gap:32px; }
}
@media (max-width:900px) {
  .oz-top .oz-wrap { flex-wrap:wrap; gap:14px; }
  .oz-search { order:3; flex-basis:100%; }
  .oz-fgrid { grid-template-columns:1fr 1fr; }
  .oz-util__item { display:none; }
}
@media (max-width:560px) {
  ul.products { grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:12px; }
  .oz-trust { gap:22px; }
  .oz-fgrid { grid-template-columns:1fr; }
  .oz-content { padding:22px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; animation:none !important; } }
