/*
Theme Name: Punichair
Theme URI: https://punichair.com
Author: Punichair
Description: Storefront theme for Punichair — Japanese tableware and drinkware. Built for punichair.com; no third-party asset hosts, no external fonts, no CDN.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: punichair
*/

/* ---------------------------------------------------------------------------
   Accessibility floors kept from the previous catalogue and worth keeping
   regardless: 17px body text, 4.5:1 minimum on every text pair, and 48px
   minimum tap targets. Do not "tighten" these to fit more on screen.
   --------------------------------------------------------------------------- */

:root {
  --ink:        #16202b;
  --ink-soft:   #46586b;
  --line:       #d7dee6;
  --paper:      #ffffff;
  --panel:      #f3f6f9;
  --brand:      #1f3a5f;
  --brand-dark: #16293f;
  --brand-tint: #e6edf5;
  --accent:     #4a7c2f;
  --accent-dk:  #38601f;
  --wrap:       1180px;
  --radius:     10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;              /* QA gate: no horizontal scroll on mobile */
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.pc-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.pc-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand); color: #fff; padding: 12px 18px;
}
.pc-skip:focus { left: 0; }

/* ---- header ------------------------------------------------------------- */
.pc-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.pc-header-in { display: flex; align-items: center; gap: 16px; min-height: 74px; }
.pc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand); }
.pc-brand-text { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.pc-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pc-nav a {
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 13px; text-decoration: none; color: var(--ink);
  font-size: 16px; font-weight: 500; border-radius: 8px;
}
.pc-nav a:hover, .pc-nav a:focus { background: var(--brand-tint); color: var(--brand-dark); }
.pc-nav .pc-cta {
  background: var(--brand); color: #fff; padding: 0 20px; font-weight: 600;
}
.pc-nav .pc-cta:hover, .pc-nav .pc-cta:focus { background: var(--brand-dark); color: #fff; }
.pc-navtoggle {
  display: none; margin-left: auto; min-height: 48px; padding: 0 16px;
  background: var(--brand); color: #fff; border: 0; border-radius: 8px;
  font-size: 16px; font-weight: 600; cursor: pointer;
}

/* ---- assurance strip ---------------------------------------------------- */
.pc-strip { background: var(--brand); color: #fff; }
.pc-strip ul {
  max-width: var(--wrap); margin: 0 auto; padding: 11px 20px;
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px 28px;
  font-size: 15px;
}
.pc-strip li { position: relative; padding-left: 20px; }
.pc-strip li::before { content: "✓"; position: absolute; left: 0; }

/* ---- generic page ------------------------------------------------------- */
.pc-page { padding: 40px 20px 64px; }
.pc-page h1 { font-size: 34px; line-height: 1.2; margin: 0 0 18px; letter-spacing: -0.01em; }
.pc-prose { max-width: 760px; }
.pc-prose h2 { font-size: 23px; margin: 32px 0 10px; }
.pc-prose h3 { font-size: 19px; margin: 24px 0 8px; }
.pc-prose ul, .pc-prose ol { padding-left: 22px; }
.pc-prose li { margin: 6px 0; }
.pc-prose table { border-collapse: collapse; width: 100%; margin: 18px 0; }
.pc-prose th, .pc-prose td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
.pc-prose th { background: var(--panel); }
.pc-note {
  background: var(--panel); border-left: 4px solid var(--accent);
  padding: 12px 16px; margin: 20px 0; font-size: 16px; color: var(--ink-soft);
}

/* ---- home --------------------------------------------------------------- */
.pc-hero { background: var(--brand); color: #fff; padding: 56px 0 60px; }
.pc-hero .pc-wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.pc-hero h1 { font-size: 40px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.pc-hero p { font-size: 19px; margin: 0 0 26px; color: #dde6f0; }
.pc-hero .pc-btn { background: var(--accent); }
.pc-hero .pc-btn:hover, .pc-hero .pc-btn:focus { background: var(--accent-dk); }
.pc-heroshot {
  background: #fff; border-radius: var(--radius); aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
/* §8: catalogue cut-outs are white-ground. contain + multiply, never cover —
   cover slices the product off at the edges and seams the white against the panel. */
.pc-heroshot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pc-btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px;
  background: var(--brand); color: #fff !important; text-decoration: none;
  border-radius: 8px; font-size: 17px; font-weight: 600;
}
.pc-btn:hover, .pc-btn:focus { background: var(--brand-dark); }

.pc-section { padding: 54px 0; }
.pc-section.alt { background: var(--panel); }
.pc-section h2 { font-size: 29px; margin: 0 0 8px; letter-spacing: -0.01em; }
.pc-section .pc-lede { color: var(--ink-soft); margin: 0 0 28px; max-width: 720px; }

.pc-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pc-cat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
}
.pc-cat:hover, .pc-cat:focus { border-color: var(--brand); }
.pc-catshot { background: #fff; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; padding: 14px; }
.pc-catshot img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pc-cat-body { padding: 16px 18px 20px; }
.pc-cat-body h3 { margin: 0 0 6px; font-size: 20px; color: var(--brand); }
.pc-cat-body p { margin: 0; font-size: 16px; color: var(--ink-soft); }

.pc-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pc-point h3 { margin: 0 0 6px; font-size: 19px; }
.pc-point p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* ---- WooCommerce -------------------------------------------------------- */
.pc-shop { padding-top: 34px; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 26px; margin: 0 !important; padding: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { content: none !important; }
.woocommerce ul.products li.product {
  width: auto !important; margin: 0 !important; float: none !important;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px !important;
  background: var(--paper); display: flex; flex-direction: column;
}
.woocommerce ul.products li.product a img { background: #fff; margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 17px !important; line-height: 1.4; padding: 0 !important; font-weight: 600;
}
.woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 19px; font-weight: 700; }
.woocommerce ul.products li.product .button,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit {
  background: var(--brand) !important; color: #fff !important;
  border-radius: 8px !important; min-height: 48px; line-height: 48px !important;
  padding: 0 20px !important; font-weight: 600 !important; font-size: 16px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce button.button.alt:hover { background: var(--brand-dark) !important; }
.woocommerce button.button.alt, .woocommerce a.button.alt { background: var(--accent) !important; }
.woocommerce button.button.alt:hover, .woocommerce a.button.alt:hover { background: var(--accent-dk) !important; }
.woocommerce div.product .product_title { font-size: 30px; line-height: 1.25; }
.woocommerce div.product p.price { color: var(--ink); font-size: 27px; font-weight: 700; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 8px 8px 0 0; }
.woocommerce .quantity input.qty { min-height: 48px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent); }
.woocommerce .woocommerce-breadcrumb { display: none; }
.pc-assurances { margin-top: 20px; padding-left: 20px; font-size: 16px; }
.pc-assurances li { margin: 5px 0; }

/* ---- contact form ------------------------------------------------------- */
.pc-form { max-width: 620px; }
.pc-field { margin-bottom: 18px; }
.pc-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.pc-field input, .pc-field textarea, .pc-field select {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 17px;
  border: 1px solid #9aa8b6; border-radius: 8px; background: #fff; color: var(--ink);
  min-height: 48px;
}
.pc-field textarea { min-height: 160px; resize: vertical; }
.pc-formnote { font-size: 15px; color: var(--ink-soft); }
.pc-alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 20px; font-size: 16px; }
.pc-alert.ok { background: #e7f2e0; border: 1px solid var(--accent); color: #2a4a18; }
.pc-alert.bad { background: #fbe9e9; border: 1px solid #a12a2a; color: #7d1f1f; }

/* ---- footer ------------------------------------------------------------- */
.pc-footer { background: var(--brand-dark); color: #dbe4ee; margin-top: 64px; padding: 46px 0 26px; }
.pc-footer a { color: #fff; }
.pc-footer h4 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.pc-footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.pc-footer ul { list-style: none; margin: 0; padding: 0; }
.pc-footer li { margin: 7px 0; }
.pc-footer address { font-style: normal; line-height: 1.8; font-size: 16px; }
.pc-footer-brand p { font-size: 16px; margin: 0 0 14px; }
.pc-footer-brand img { display: block; margin-bottom: 10px; }
.pc-legal { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 34px; padding-top: 20px; font-size: 14px; line-height: 1.7; }
.pc-disclaimer { color: #c3d0de; margin: 0 0 12px; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .pc-hero .pc-wrap { grid-template-columns: 1fr; }
  .pc-hero h1 { font-size: 32px; }
  .pc-cats, .pc-points { grid-template-columns: repeat(2, 1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .pc-footer-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .pc-navtoggle { display: inline-flex; align-items: center; }
  /* The overlay is positioned inside .pc-header (position:relative) so it cannot
     escape the header and cause horizontal scroll — QA gate. */
  .pc-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    width: 100%; background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px;
    box-shadow: 0 12px 24px rgba(0,0,0,0.10);
  }
  .pc-nav.open { display: flex; }
  .pc-nav a { border-radius: 8px; }
  .pc-nav .pc-cta { justify-content: center; margin-top: 8px; }
  .pc-cats, .pc-points, .pc-footer-in { grid-template-columns: 1fr; }
  .woocommerce ul.products { grid-template-columns: 1fr; }
  .pc-page h1 { font-size: 28px; }
  .pc-strip ul { gap: 4px 18px; font-size: 14px; }
}

/* Honeypot: positioned off-screen rather than display:none — a bot that reads
   computed style skips display:none fields but fills this one. */
.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
