/*
Theme Name: AJAX Premium Codex
Theme URI: https://codex.ajax-alarmsystemen.nl/
Author: Codex
Description: Clean custom WooCommerce theme for Ajax alarmsystemen staging. No pagebuilder required.
Version: 0.1.0
Text Domain: ajax-premium-codex
Requires at least: 6.0
Requires PHP: 8.0
*/

:root {
  --ap-ink: #121722;
  --ap-muted: #667085;
  --ap-line: #e6e9ef;
  --ap-soft: #f5f7fb;
  --ap-red: #f04438;
  --ap-red-dark: #d92d20;
  --ap-green: #12b76a;
  --ap-dark: #090d17;
  --ap-radius: 8px;
  --ap-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #fff;
  color: var(--ap-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; max-width: 100%; }
.ap-container { margin: 0 auto; max-width: 1180px; padding: 0 24px; width: 100%; }

.ap-topbar {
  background: #080b12;
  color: #dbe2ec;
  font-size: 14px;
}
.ap-topbar .ap-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 36px;
}
.ap-site-header {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ap-line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
  position: sticky;
  top: 0;
  z-index: 50;
}
.ap-header-inner {
  align-items: center;
  display: grid;
  gap: 20px;
  grid-template-columns: auto 1fr auto;
  min-height: 76px;
}
.ap-logo img { width: 174px; }
.ap-nav {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
}
.ap-nav a {
  border-radius: 999px;
  color: #303949;
  font-size: 14px;
  font-weight: 800;
  padding: 10px 12px;
  white-space: nowrap;
}
.ap-nav a:hover,
.ap-nav .current-menu-item > a {
  background: var(--ap-soft);
  color: var(--ap-red);
}
.ap-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}
.ap-btn,
.button,
button.button,
input[type="submit"] {
  align-items: center;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 850;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  white-space: nowrap;
}
.ap-btn-primary,
.button.alt,
button.single_add_to_cart_button {
  background: var(--ap-red) !important;
  border-color: var(--ap-red) !important;
  color: #fff !important;
  box-shadow: 0 14px 30px rgba(240, 68, 56, .22);
}
.ap-btn-primary:hover,
.button.alt:hover,
button.single_add_to_cart_button:hover {
  background: var(--ap-red-dark) !important;
}
.ap-cart-count {
  background: var(--ap-red);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  margin-left: 6px;
  min-width: 20px;
  padding: 2px 7px;
}

.ap-hero {
  background: linear-gradient(135deg, #0b101b 0%, #151a27 62%, #0b0d13 100%);
  color: #fff;
  padding: 72px 0;
}
.ap-hero-grid {
  align-items: center;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 420px;
}
.ap-eyebrow {
  color: #8ef0c2;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ap-hero h1 {
  color: #fff;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  margin: 16px 0 18px;
  max-width: 760px;
}
.ap-lead {
  color: #c7cedb;
  font-size: 19px;
  line-height: 1.7;
  max-width: 650px;
}
.ap-cta-row,
.ap-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.ap-trust-pill {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px 14px;
}
.ap-trust-pill strong { display: block; font-size: 22px; }
.ap-trust-pill span { color: #aeb8c8; font-size: 13px; }
.ap-hero-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  padding: 26px;
}
.ap-hero-card img {
  filter: drop-shadow(0 28px 35px rgba(0,0,0,.45));
  margin: 18px auto 24px;
  max-height: 250px;
  width: auto;
}
.ap-choice {
  align-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 16px;
}
.ap-choice b { color: #fff; font-size: 18px; }
.ap-choice span { color: #b8c2d0; }
.ap-plus {
  align-items: center;
  background: var(--ap-red);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.ap-section { padding: 64px 0; }
.ap-section-soft { background: var(--ap-soft); }
.ap-section-head {
  align-items: end;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-bottom: 28px;
}
.ap-section h2 {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.08;
  margin: 0;
  max-width: 760px;
}
.ap-section p { color: var(--ap-muted); }
.ap-trust-strip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  box-shadow: var(--ap-shadow);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  margin-bottom: 24px;
  padding: 16px 20px;
}
.ap-trust-strip .logos {
  display: flex;
  gap: 12px;
}
.ap-trust-strip img {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  height: 40px;
  object-fit: contain;
  padding: 7px 12px;
  width: 126px;
}
.ap-card-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ap-card {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  box-shadow: var(--ap-shadow);
  overflow: hidden;
}
.ap-card-media {
  align-items: center;
  background: linear-gradient(145deg, #f8f9fc, #e9edf4);
  display: flex;
  height: 250px;
  justify-content: center;
}
.ap-card-media img {
  filter: drop-shadow(0 18px 25px rgba(15,23,42,.18));
  max-height: 205px;
  width: auto;
}
.ap-card-body { padding: 22px; }
.ap-card-body h3 { font-size: 24px; margin: 0 0 8px; }

.ap-main {
  background: var(--ap-soft);
  padding: 48px 0 72px;
}
.ap-page-title {
  font-size: clamp(34px, 4vw, 56px);
  margin: 0 0 24px;
}
.woocommerce ul.products {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 18px;
  box-shadow: var(--ap-shadow);
  list-style: none;
  margin: 0 !important;
  padding: 18px !important;
  width: auto !important;
}
.woocommerce ul.products li.product img {
  background: #eef1f6;
  border-radius: 14px;
  height: 220px;
  object-fit: contain;
  padding: 22px;
  width: 100%;
}
.woocommerce-loop-product__title {
  color: var(--ap-ink);
  font-size: 20px !important;
}
.price {
  color: var(--ap-ink) !important;
  font-size: 20px !important;
  font-weight: 900 !important;
}
.ap-single-product {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 22px;
  box-shadow: var(--ap-shadow);
  padding: 28px;
}
.ap-single-grid {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(320px, .9fr) minmax(0, 1.1fr);
}
.ap-single-gallery {
  background: #eef1f6;
  border-radius: 18px;
  padding: 24px;
}
.ap-single-summary .product_title {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  margin: 0 0 14px;
}
.ap-single-summary .cart {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}
.ap-single-summary .quantity input {
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  min-height: 44px;
  padding: 0 12px;
}
.ap-product-trust {
  background: var(--ap-soft);
  border: 1px solid var(--ap-line);
  border-radius: 16px;
  display: grid;
  gap: 14px;
  grid-template-columns: auto auto 1fr;
  margin-top: 22px;
  padding: 16px;
}
.ap-product-trust img {
  background: #fff;
  border: 1px solid var(--ap-line);
  border-radius: 999px;
  height: 42px;
  object-fit: contain;
  padding: 7px 12px;
  width: 126px;
}
.ap-product-trust ul {
  color: var(--ap-muted);
  margin: 0;
  padding-left: 18px;
}
.ap-product-tabs {
  margin-top: 40px;
}
.ap-product-tabs .woocommerce-tabs {
  background: #fff;
}
.ap-shop-toolbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.woocommerce-ordering select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
  border: 1px solid var(--ap-line);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 12px;
}
.ap-checkout-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.2fr) 380px;
}
.ap-checkout-sidebar {
  align-self: start;
  position: sticky;
  top: 110px;
}
.woocommerce-checkout-review-order-table {
  width: 100%;
}
.woocommerce table.shop_table {
  border: 0;
}
.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-top: 1px solid var(--ap-line);
  padding: 12px 0;
}

.ap-footer {
  background: #080b12;
  color: #dbe2ec;
  padding: 46px 0;
}
.ap-footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr 1fr 1fr;
}
.ap-footer img { max-width: 170px; }

@media (max-width: 1024px) {
  .ap-header-inner { grid-template-columns: auto auto; }
  .ap-nav { grid-column: 1 / -1; justify-content: flex-start; overflow-x: auto; padding-bottom: 10px; }
  .ap-actions { justify-content: flex-end; }
  .ap-hero-grid,
  .ap-card-grid,
  .woocommerce ul.products,
  .ap-single-grid,
  .ap-product-trust,
  .ap-checkout-layout,
  .ap-footer-grid,
  .ap-trust-strip { grid-template-columns: 1fr; }
  .ap-checkout-sidebar { position: static; }
}
@media (max-width: 640px) {
  .ap-topbar { display: none; }
  .ap-container { padding: 0 18px; }
  .ap-header-inner { display: flex; flex-wrap: wrap; min-height: auto; padding: 14px 0; }
  .ap-actions { width: 100%; }
  .ap-actions .ap-btn { flex: 1; }
  .ap-hero { padding: 44px 0; }
  .ap-hero h1 { font-size: 40px; }
  .ap-section { padding: 44px 0; }
}
