/*
Theme Name: Onyx V1
Theme URI: https://local.test/onyx-v1
Author: Codex
Description: Classic WordPress theme based on the Onyx Research v1 storefront, with WooCommerce support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: onyx-v1
*/

:root {
  --blue: #0b3d92;
  --blue-dark: #082f70;
  --charcoal: #42515d;
  --ink: #0d1620;
  --muted: #6d7680;
  --line: #e7ebef;
  --paper: #ffffff;
  --soft: #f5f7f9;
  --night: #0b1523;
  --accent: #7ec242;
  --shadow: 0 24px 70px rgba(7, 24, 46, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Poppins, Arial, sans-serif;
  line-height: 1.6;
}
body.age-locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
.screen-reader-text, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  z-index: 1000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  color: #fff;
  background: var(--blue);
}

.top-strip {
  min-height: 39px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 29px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 600;
}
.top-strip p { margin: 0; text-align: center; }
.top-strip nav, .socials { display: flex; gap: 18px; align-items: center; }
.top-strip nav { justify-content: flex-end; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 88px;
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 45px;
  color: #fff;
  background: rgba(24, 34, 39, 0.82);
  backdrop-filter: blur(12px);
  transition: background 0.25s ease;
}
.brand img { width: 190px; }
.primary-nav, .primary-menu, .header-icons {
  display: flex;
  align-items: center;
  gap: 28px;
}
.primary-nav { justify-content: center; font-size: 15px; font-weight: 700; }
.primary-menu { margin: 0; padding: 0; list-style: none; }
.primary-nav a, .header-icons a, .header-icons button { transition: color 0.3s ease, opacity 0.3s ease; }
.primary-nav a:hover, .header-icons a:hover, .header-icons button:hover { color: #cddcff; }
.header-icons { justify-content: flex-end; font-size: 14px; font-weight: 700; }
.header-icons button, .menu-toggle {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}
.menu-toggle { display: none; }
.cart-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  margin-left: 5px;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.shipping-marquee {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 9px 18px;
  color: #fff;
  background: var(--blue);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.section-panel { position: relative; overflow: hidden; }
.hero {
  min-height: 670px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 110px 28px 140px;
  color: #fff;
  text-align: center;
}
.hero-bg, .about-image::before, .capsules::before {
  position: absolute;
  inset: 0;
  content: "";
  background-position: center;
  background-size: cover;
}
.hero-bg {
  background-image: linear-gradient(rgba(4, 15, 24, 0.36), rgba(4, 15, 24, 0.42)), url("assets/images/ai-generated-water-drops-picture.jpg");
  transform: scale(1.03);
}
.hero::after {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -44px;
  height: 120px;
  content: "";
  background: #fff;
  transform: skewY(-4deg);
}
.hero-content { position: relative; z-index: 1; max-width: 820px; }
h1, h2, h3 {
  margin: 0;
  font-family: "Barlow Condensed", Poppins, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1 { font-size: clamp(74px, 10vw, 138px); font-weight: 700; }
h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 700; }
h3 { font-size: 25px; font-weight: 600; }
.hero h2 { margin-top: 8px; font-size: clamp(24px, 3.2vw, 40px); }
.hero p { max-width: 780px; margin: 22px auto 0; }
.eyebrow {
  color: var(--blue);
  font-family: Poppins, Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero .eyebrow { color: #fff; }
.button-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.btn, .button, button.button, input.button, .wp-element-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 26px;
  border: 2px solid var(--blue);
  border-radius: 4px;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover, .button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover { transform: translateY(-1px); color: #fff; background: var(--blue-dark); }
.btn-outline { color: #fff; border-color: #fff; background: transparent; }

.about { padding: 80px 28px 95px; }
.section-copy, .section-heading { max-width: 980px; margin: 0 auto 42px; text-align: center; }
.about-grid {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 54px;
  align-items: center;
  margin: 0 auto;
}
.about-image {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.about-image::before { background-image: url("assets/images/1034833_6490-copy.jpg"); }
.about-text p { color: var(--muted); }

.products { padding: 82px 28px 96px; background: var(--soft); }
.product-pills { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.product-pills span {
  padding: 8px 13px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}
.product-grid, .woocommerce ul.products {
  max-width: 1200px;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 auto !important;
  padding: 0 !important;
}
.product-card, .woocommerce ul.products li.product {
  position: relative;
  width: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(8, 20, 35, 0.08);
}
.product-card img, .woocommerce ul.products li.product img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f3f6f8;
}
.product-card h3, .woocommerce-loop-product__title {
  margin-top: 13px !important;
  color: var(--ink);
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  line-height: 1.28 !important;
  text-transform: none;
}
.category, .product-card .category {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.price, .woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price {
  color: var(--blue) !important;
  font-weight: 800 !important;
}
.badge, .woocommerce span.onsale {
  position: absolute;
  z-index: 2;
  top: 12px !important;
  left: 12px !important;
  right: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  padding: 6px 9px !important;
  border-radius: 4px !important;
  color: #fff !important;
  background: var(--accent) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
.product-card .btn, .woocommerce ul.products li.product .button { width: 100%; margin-top: 14px !important; }

.testing {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  min-height: 520px;
  color: #fff;
  background: var(--night);
}
.capsules { position: relative; min-height: 420px; overflow: hidden; }
.capsules::before {
  background-image: linear-gradient(rgba(3, 12, 22, 0.15), rgba(3, 12, 22, 0.45)), url("assets/images/Gemini_Generated_Image_p0rznjp0rznjp0rz.png");
}
.testing-copy { align-self: center; max-width: 680px; padding: 80px 58px; }
.testing-copy .eyebrow { color: #9fc8ff; }

.faq { padding: 80px 28px; }
.faq-grid { max-width: 1050px; display: grid; gap: 16px; margin: 0 auto; }
.faq details {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8, 20, 35, 0.05);
}
.faq summary { color: var(--ink); font-weight: 800; cursor: pointer; }

.content-shell, .woocommerce-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 88px;
}
.page-header { margin-bottom: 30px; text-align: center; }
.entry-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(8, 20, 35, 0.06);
}
.entry-card + .entry-card { margin-top: 24px; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content a { color: var(--blue); font-weight: 700; }
.post-meta { color: var(--muted); font-size: 14px; }
.pagination, .posts-navigation { margin-top: 32px; }

.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { margin-bottom: 24px; }
.woocommerce div.product {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; }
.woocommerce div.product div.images img { border-radius: 8px; background: #f3f6f8; }
.woocommerce div.product form.cart .button { min-height: 48px; }
.woocommerce table.shop_table {
  border-collapse: collapse;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.woocommerce table.shop_table th { color: #fff; background: var(--night); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select, .search-field {
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #cfd7df;
  border-radius: 4px;
}
.woocommerce-message, .woocommerce-info, .woocommerce-error {
  border-top-color: var(--blue) !important;
  background: #f7faff !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--blue) !important; }
.woocommerce-error::before { color: #b42318 !important; }

.wc-block-cart,
.wc-block-checkout {
  max-width: 1180px;
  margin: 0 auto;
}
.wc-block-components-main,
.wc-block-cart__main,
.wc-block-checkout__main {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(8, 20, 35, 0.06);
}
.wc-block-components-sidebar,
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar {
  padding: 24px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfd;
}
.wc-block-components-button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  min-height: 48px !important;
  border-radius: 4px !important;
  color: #fff !important;
  background: var(--blue) !important;
  font-weight: 800 !important;
  text-transform: uppercase;
}
.wc-block-components-button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  color: #fff !important;
  background: var(--blue-dark) !important;
}
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"] {
  border-color: #cfd7df !important;
  border-radius: 4px !important;
}
.wc-block-components-product-name {
  color: var(--ink);
  font-weight: 800;
}
.wc-block-components-totals-wrapper {
  border-color: var(--line) !important;
}

.site-footer {
  padding: 58px 28px 28px;
  color: #dce6f2;
  background: #111d2a;
}
.footer-inner {
  max-width: 1180px;
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 36px;
  margin: 0 auto;
}
.footer-logo { width: 180px; margin-bottom: 16px; }
.footer-col h3 {
  margin-bottom: 16px;
  color: #fff;
  font-size: 24px;
}
.footer-col p, .footer-col a { color: #dce6f2; }
.footer-col ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.footer-bottom {
  max-width: 1180px;
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #aebed0;
  font-size: 13px;
}

.age-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 12, 20, 0.78);
}
body.age-locked .age-modal { display: flex; }
.age-card {
  width: min(540px, 100%);
  padding: 34px;
  border-radius: 8px;
  text-align: center;
  background: #fff;
  box-shadow: var(--shadow);
}
.age-card img { width: 170px; margin: 0 auto 20px; }
.age-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.age-decline { color: var(--blue); background: #fff; }

@media (max-width: 1024px) {
  .top-strip { grid-template-columns: 1fr; gap: 8px; padding: 10px 20px; }
  .top-strip nav, .socials { justify-content: center; }
  .site-header { grid-template-columns: 180px 1fr auto; padding: 0 24px; }
  .primary-nav, .primary-menu { gap: 16px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .site-header { grid-template-columns: 1fr auto; min-height: 74px; }
  .brand img { width: 150px; }
  .menu-toggle { display: inline-flex; font-weight: 800; }
  .primary-nav {
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    display: none;
    padding: 18px 24px;
    background: rgba(17, 29, 42, 0.98);
  }
  .site-header.nav-open .primary-nav { display: block; }
  .primary-menu { display: grid; gap: 14px; }
  .header-icons { grid-column: 1 / -1; justify-content: flex-start; padding-bottom: 14px; }
  .shipping-marquee { display: grid; gap: 6px; }
  .hero { min-height: 560px; padding: 82px 20px 110px; }
  .about-grid, .testing, .woocommerce div.product { grid-template-columns: 1fr; }
  .about-image, .capsules { min-height: 340px; }
  .testing-copy { padding: 46px 24px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .content-shell, .woocommerce-shell { width: min(100% - 32px, 1180px); padding: 48px 0 64px; }
}

@media (max-width: 520px) {
  h1 { font-size: 64px; }
  h2 { font-size: 38px; }
  .top-strip nav, .socials { display: none; }
  .site-header { padding: 0 18px; }
  .header-icons { gap: 16px; font-size: 13px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .entry-card { padding: 20px; }
}
