/* o2dark: the dark PowerScripts look for the O2 Creative shop (OpenCart 2.3, on top of the default theme).
   Loaded after default/stylesheet/stylesheet.css. Colours from the o2creative.co.nz landing page (#222, blues).
   Page content (hydrated descriptions) uses the .ps-* classes at the bottom: classes only, no inline styles. */

:root {
  --bg: #1b1d22;
  --surface: #23262d;
  --surface-2: #2b2f37;
  --border: #3a3f49;
  --text: #e9ebef;
  --muted: #a9b0bc;
  --accent: #104bcf;
  --accent-hover: #2a62e6;
  --link: #7aa2ff;
  --link-hover: #a9c3ff;
  --good: #3fbf7f;
  --radius: 10px;
}

/* ---------- base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
h1, h2, h3, h4, h5, h6 { color: #fff; }
h1 { font-size: 30px; font-weight: 700; line-height: 1.25; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
a { color: var(--link); }
a:hover, a:focus { color: var(--link-hover); }
hr { border-top-color: var(--border); }
legend { color: #fff; border-bottom-color: var(--border); }
.text-muted, .help-block { color: var(--muted); }

/* ---------- top strip + top links ---------- */
.o2-strip {
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  text-align: center;
  padding: 7px 12px;
}
.o2-strip a { color: #fff; font-weight: 700; text-decoration: underline; }
.o2-strip a:hover { color: #dfe8ff; }
.o2-strip .o2-strip-sep { opacity: .6; margin: 0 8px; }

#top {
  background: #141619;
  border-bottom: 1px solid var(--border);
  margin: 0;
  padding: 4px 0 2px;
  min-height: 36px;
}
#top .btn-link, #top-links li, #top-links a { color: var(--muted); text-shadow: none; }
#top .btn-link:hover, #top-links a:hover { color: #fff; }
#top-links .dropdown-menu a { color: #333; text-shadow: none; }
#top-links .dropdown-menu a:hover { color: #fff; }

/* ---------- header ---------- */
header {
  /* the O2 Creative polygon mosaic (same as the old site's title banners), darker part, with a wash for the white logo */
  background: linear-gradient(90deg, rgba(10, 20, 48, .55), rgba(10, 20, 48, .25)), url('../image/polyBlue.jpg') center 85% / cover no-repeat, #0d3a9f;
  padding: 22px 0 14px;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08);
}
header #search .input-lg { background: rgba(12, 18, 34, .65); border-color: rgba(255, 255, 255, .25); }
header #search .btn-lg, header #cart > .btn { background: rgba(12, 18, 34, .65); border-color: rgba(255, 255, 255, .25); }
#logo { margin: 6px 0 10px; }
#logo img { max-width: 220px; }
#search .input-lg { background: var(--surface); border-color: var(--border); color: var(--text); }
#search .btn-lg { background: var(--surface-2); border-color: var(--border); color: var(--text); text-shadow: none; }
#search .input-lg::placeholder { color: var(--muted); }
#cart > .btn {
  background: var(--surface-2);
  background-image: none;
  border: 1px solid var(--border);
  color: var(--text);
  text-shadow: none;
  box-shadow: none;
}
#cart.open > .btn { background: var(--surface); color: #fff; border-color: var(--border); }
#cart .dropdown-menu { background: var(--surface); border-color: var(--border); }
#cart .dropdown-menu li > div, #cart .dropdown-menu .table { color: var(--text); }
#cart .dropdown-menu .table-bordered, #cart .dropdown-menu .table-bordered td { border-color: var(--border); }

/* ---------- menu ---------- */
.menu-container { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
#menu {
  background: transparent;
  background-image: none;
  border: 0;
  border-radius: 0;
  min-height: 46px;
  margin-bottom: 0;
}
#menu .nav > li > a { color: var(--text); text-shadow: none; padding: 13px 16px; font-weight: 600; }
#menu .nav > li > a:hover, #menu .nav > li.open > a { background: var(--surface-2); color: #fff; }
#menu .nav > li.o2-menu-cta > a { color: #fff; }
#menu .dropdown-menu { background: var(--surface); border: 1px solid var(--border); border-radius: 0 0 var(--radius) var(--radius); }
#menu .dropdown-inner a { color: var(--text); }
#menu .dropdown-inner li a:hover { background: var(--accent); color: #fff; }
#menu .see-all { color: var(--link); border-top-color: var(--border); }
#menu .see-all:hover { background: var(--accent); color: #fff; }
#menu #category { color: #fff; text-shadow: none; }
#menu .btn-navbar { background: var(--surface-2); background-image: none; border-color: var(--border); color: #fff; }
.breadcrumb-container { background: transparent; }
.breadcrumb { background: transparent; border: 0; padding: 14px 0 4px; margin-bottom: 10px; }
.breadcrumb > li { text-shadow: none; }
.breadcrumb > li a { color: var(--muted); }
.breadcrumb > li:after { border-color: var(--border); }

/* ---------- panels, lists, tables, forms (account, checkout, cart) ---------- */
.panel, .panel-default, .well, .list-group-item {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.panel-default > .panel-heading { background: var(--surface-2); border-color: var(--border); color: #fff; }
.panel-title a, .panel-title { color: #fff; }
.list-group a.list-group-item { color: var(--text); }
.list-group a.list-group-item:hover, .list-group a.list-group-item.active {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.table, .table > thead > tr > td, .table > tbody > tr > td { color: var(--text); }
.table-bordered, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > td { border-color: var(--border); }
.table > thead > tr > td { background: var(--surface-2); }
.table-hover > tbody > tr:hover { background: var(--surface-2); }
.form-control, .input-group-addon {
  background: #15171b;
  border-color: var(--border);
  color: var(--text);
  box-shadow: none;
}
.form-control:focus { border-color: var(--accent-hover); box-shadow: 0 0 0 2px rgba(42, 98, 230, .35); }
.form-control[disabled], .form-control[readonly] { background: var(--surface-2); color: var(--muted); }
label, .control-label { color: var(--text); }
.alert-info { background: #17263f; border-color: #26407a; color: #cfe0ff; }
.alert-success { background: #15301f; border-color: #23573a; color: #c9f1d9; }
.alert-danger { background: #3a1a1d; border-color: #6b2a31; color: #ffd5da; }
.alert-warning { background: #3a2f14; border-color: #6b5520; color: #ffecbe; }
.pagination > li > a, .pagination > li > span { background: var(--surface); border-color: var(--border); color: var(--text); }
.pagination > .active > a, .pagination > .active > span { background: var(--accent); border-color: var(--accent); }
.modal-content { background: var(--surface); color: var(--text); border-color: var(--border); }
.modal-header, .modal-footer { border-color: var(--border); }
.close { color: #fff; opacity: .7; text-shadow: none; }
.dropdown-menu { background: var(--surface); border-color: var(--border); }
.dropdown-menu > li > a { color: var(--text); }
.dropdown-menu > li > a:hover { background: var(--accent); color: #fff; }

/* ---------- buttons ---------- */
.btn { border-radius: 8px; text-shadow: none; box-shadow: none; font-weight: 600; }
.btn-primary, .btn-primary:focus {
  background: var(--accent);
  background-image: none;
  border-color: var(--accent);
  color: #fff;
}
.btn-primary:hover, .btn-primary:active, .btn-primary.active, .btn-primary.disabled, .btn-primary[disabled] {
  background: var(--accent-hover);
  background-image: none;
  border-color: var(--accent-hover);
  color: #fff;
}
.btn-default {
  background: var(--surface-2);
  background-image: none;
  border-color: var(--border);
  color: var(--text);
}
.btn-default:hover, .btn-default:focus, .btn-default:active { background: #353a44; border-color: #4a505c; color: #fff; }
.btn-outline {
  background: transparent;
  border: 1px solid #5b6372;
  color: #fff;
}
.btn-outline:hover, .btn-outline:focus { background: rgba(255, 255, 255, .08); border-color: #8a93a3; color: #fff; }
.btn-link { color: var(--link); }

/* ---------- product cards (category, search, featured, related) ---------- */
.product-thumb {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s, transform .15s;
}
.product-thumb:hover { border-color: #56607a; transform: translateY(-2px); }
.product-thumb .image { background: #15171b; padding: 10px 0; }
.product-thumb .caption { min-height: 160px; padding: 0 16px; }
.product-thumb h4 { font-weight: 700; font-size: 16px; line-height: 1.35; }
.product-thumb h4 a { color: #fff; }
.product-thumb h4 a:hover { color: var(--link-hover); }
.product-thumb p { color: var(--muted); font-size: 14px; }
.product-thumb .price { color: #fff; font-weight: 700; }
.product-thumb .price-old { color: var(--muted); }
.product-thumb .price-tax { color: var(--muted); }
.product-thumb .button-group { background: var(--surface-2); border-top: 1px solid var(--border); }
.product-thumb .button-group button { background: transparent; color: var(--text); border-left-color: var(--border); }
.product-thumb .button-group button:hover { background: var(--accent); color: #fff; }
#content > h2, #content > h3 { margin-top: 26px; }

/* ---------- left column ---------- */
#column-left .list-group-item, #column-right .list-group-item { background: var(--surface); border-color: var(--border); }

/* ---------- footer ---------- */
footer {
  background: #121418;
  border-top: 1px solid var(--border);
  color: var(--muted);
  margin-top: 40px;
  padding-top: 34px;
}
footer h5 { color: #fff; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
footer a { color: var(--muted); }
footer a:hover { color: #fff; }
footer hr { border-top-color: var(--border); }
.o2-footer-line { font-size: 13px; padding: 10px 0 24px; }

/* ============================================================
   Product page (template: o2dark/template/product/product.tpl)
   ============================================================ */
.o2-product-hero {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin: 6px 0 30px;
}
.o2-media .video-container { border-radius: 8px; overflow: hidden; margin-bottom: 12px; }
.o2-media .thumbnails { margin: 0; }
.o2-media .thumbnail { background: #15171b; border-color: var(--border); border-radius: 8px; }
.o2-media .thumbnail:hover { border-color: var(--accent-hover); }
.o2-buy h1 { margin-top: 0; font-size: 26px; }
.o2-buy .o2-price { font-size: 32px; font-weight: 700; color: #fff; margin: 12px 0 2px; }
.o2-buy .o2-price-old { color: var(--muted); text-decoration: line-through; font-size: 18px; margin-right: 8px; }
.o2-buy .o2-price-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.o2-buy .btn-lg { padding: 13px 16px; font-size: 17px; margin-bottom: 10px; }
.o2-trust { list-style: none; padding: 0; margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.o2-trust li { padding: 3px 0; }
.o2-trust .fa { color: var(--good); width: 20px; }
.o2-trust strong { color: #fff; }
.o2-qty { display: none; }  /* licences are bought one at a time; quantity stays 1 */
.o2-version {
  background: #15171b;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}
.o2-version strong { color: #fff; }
.o2-version ul { margin: 6px 0 0; padding-left: 18px; }

/* ============================================================
   Page content classes (used in the hydrated description HTML)
   ============================================================ */
.ps-page { max-width: 1040px; margin: 0 auto; }
.ps-lead { font-size: 19px; color: var(--text); line-height: 1.55; margin: 0 0 22px; }
.ps-section { margin: 0 0 40px; }
.ps-section > h2 { margin: 0 0 16px; }
.ps-kicker { color: var(--link); text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 700; margin: 0 0 6px; }

/* benefit blocks: <div class="ps-benefits"><div class="ps-benefit"><i class="fa fa-..."></i><h3>..</h3><p>..</p></div>... */
.ps-benefits { display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 36px; }
.ps-benefit {
  flex: 1 1 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.ps-benefit .fa { font-size: 22px; color: var(--link); margin-bottom: 8px; }
.ps-benefit h3 { font-size: 17px; margin: 0 0 6px; }
.ps-benefit p { color: var(--muted); margin: 0; font-size: 14px; }

/* feature rows: <div class="ps-feature"><div class="ps-feature-media">img/video/iframe</div><div class="ps-feature-text"><h3>..</h3><p>..</p></div></div> */
.ps-feature { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin: 0 0 30px; }
.ps-feature:nth-of-type(even) { flex-direction: row-reverse; }
.ps-feature-media { flex: 1 1 380px; }
.ps-feature-text { flex: 1 1 300px; }
.ps-feature-media img, .ps-feature-media video {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #15171b;
  display: block;
}
.ps-feature-text h3 { margin-top: 0; }
.ps-feature-text p, .ps-feature-text li { color: var(--muted); }
.ps-feature.ps-feature-text-only .ps-feature-text { flex-basis: 100%; }

/* ticked lists */
.ps-list { list-style: none; padding: 0; margin: 0 0 16px; }
.ps-list li { position: relative; padding: 4px 0 4px 26px; }
.ps-list li:before {
  content: "\f00c";              /* fa-check */
  font-family: FontAwesome;
  position: absolute; left: 0; top: 4px;
  color: var(--good);
}
.ps-cols { columns: 2 280px; column-gap: 30px; }
.ps-cols li { break-inside: avoid; }

/* who it's for: <ul class="ps-who"><li><strong>Sign makers</strong> ...</li> */
.ps-who { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 0; }
.ps-who li {
  flex: 1 1 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent-hover);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}
.ps-who li strong { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }

/* video embed: <div class="ps-video"><iframe ...></iframe></div> (16:9) */
.ps-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: var(--radius); margin: 0 0 16px; }
.ps-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

/* FAQ: <details class="ps-faq"><summary>Question</summary><p>Answer</p></details> */
.ps-faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 10px;
}
.ps-faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.ps-faq[open] summary { margin-bottom: 8px; }
.ps-faq p { color: var(--muted); margin: 0 0 6px; }

/* call-to-action band */
.ps-cta {
  background: linear-gradient(135deg, #0d3a9f, #104bcf);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  margin: 10px 0 30px;
}
.ps-cta h2 { margin: 0 0 6px; }
.ps-cta p { color: #dfe8ff; margin: 0 0 16px; }
.ps-cta .btn { margin: 4px; }
.ps-cta .btn-primary { background: #fff; color: #0d3a9f; border-color: #fff; }
.ps-cta .btn-primary:hover { background: #e6edff; color: #0d3a9f; }

/* note / small print */
.ps-note { color: var(--muted); font-size: 13px; }
.ps-img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }

/* ============================================================
   Home page (template: o2dark/template/common/home.tpl)
   ============================================================ */
.o2-home-hero {
  background: radial-gradient(1200px 400px at 70% -10%, rgba(42, 98, 230, .35), transparent 70%), var(--bg);
  padding: 46px 0 34px;
  text-align: center;
}
.o2-home-hero h1 { font-size: 40px; margin: 0 0 12px; }
.o2-home-hero .ps-lead { max-width: 720px; margin: 0 auto 22px; }
.o2-home-hero .btn { margin: 4px 6px; }
.o2-home-hero .o2-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-top: 18px; }

/* ---------- small screens ---------- */
@media (max-width: 767px) {
  h1 { font-size: 24px; }
  .o2-home-hero h1 { font-size: 30px; }
  .o2-product-hero { padding: 16px; }
  .ps-feature:nth-of-type(even) { flex-direction: row; }
  .o2-strip .o2-strip-sep, .o2-strip .o2-strip-extra { display: none; }
}

/* linked benefit tiles (home page groups) */
a.ps-benefit { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.ps-benefit:hover, a.ps-benefit:focus { border-color: var(--accent-hover); transform: translateY(-2px); color: inherit; }

/* contact form honeypot: off-screen for people, still filled in by bots */
.o2-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- product cards, softer (Glenn 2026-10-20: white-on-black was too stark) ---------- */
.product-thumb { background: #262a33; }
.product-thumb .image { background: #fff; padding: 14px 0; }          /* box images have white backgrounds: one white panel, no white square in black */
.product-thumb .caption { padding: 4px 16px 6px; min-height: 150px; }
.product-thumb h4 { font-size: 15px; font-weight: 600; line-height: 1.4; }
.product-thumb h4 a { color: #dfe6f5; }
.product-thumb p { color: #9aa3b2; font-size: 13.5px; }
.product-thumb .price { color: #8fb4ff; font-size: 17px; margin-bottom: 8px; }
.product-thumb .price-tax { display: block; color: #6f7888; font-size: 12px; font-weight: 400; }
.product-thumb .button-group { background: transparent; border-top: 0; padding: 0 16px 16px; overflow: visible; }
.product-thumb .button-group button { display: none; }
.product-thumb .button-group button:first-child {
  display: block;
  width: 100%;
  float: none;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-transform: none;
  padding: 9px 12px;
}
.product-thumb .button-group button:first-child:hover { background: var(--accent-hover); }
.product-thumb .button-group button:first-child .hidden-xs { display: inline !important; }

/* PowerScripts flame logo */
.o2-flame { display: block; margin: 0 auto 14px; height: 57px; width: auto; filter: drop-shadow(0 4px 14px rgba(42, 98, 230, .55)); }
.o2-flame-btn { height: 17px; width: auto; vertical-align: -3px; margin-right: 4px; }

/* ---------- contact page ---------- */
.o2-contact h1 { margin-top: 6px; }
.o2-help-tiles .ps-benefit { flex-basis: 200px; }
.o2-contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent-hover);
  border-radius: var(--radius);
  padding: 24px;
  margin: 6px 0 30px;
}
.o2-contact-card h2 { margin-top: 0; }
.o2-contact-intro { color: var(--muted); margin-bottom: 6px; }
.o2-contact-topics { margin-bottom: 22px; }
.o2-contact-topics li { color: var(--text); font-size: 14px; }
.o2-contact-card .form-control { padding: 10px 12px; height: auto; }
.o2-contact-card textarea.form-control { min-height: 160px; }
.o2-contact-send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }
.o2-contact-details { color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); padding-top: 16px; }
.o2-contact-details h3 { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.o2-contact-details .fa { width: 18px; color: var(--link); }
.ps-benefit h3, .ps-who h3, .ps-feature h3 { border-bottom: 0; padding-bottom: 0; }

/* ---------- online tools page ---------- */
.o2-tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 18px 0 34px; }
.o2-tool {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s, transform .15s;
}
.o2-tool:hover, .o2-tool:focus { border-color: var(--accent-hover); transform: translateY(-2px); color: inherit; text-decoration: none; }
.o2-tool img { display: block; width: 100%; height: 150px; object-fit: contain; background: #fff; padding: 8px; }
.o2-tool h3 { font-size: 16px; margin: 12px 14px 4px; border: 0; padding: 0; }
.o2-tool p { color: var(--muted); font-size: 13.5px; margin: 0 14px 14px; }
.o2-contact-sub { margin: 4px 0 4px; font-size: 20px; }

/* safety net: text pasted into the shop admin often carries inline colours and fonts (black text vanishes on dark) */
#content [style] { color: inherit !important; background-color: transparent !important; font-family: inherit !important; font-size: inherit !important; }
#content img[style] { max-width: 100%; height: auto; }
