/*
Theme Name: Point Lookout Shop
Description: The Point Lookout homepage's ink-on-cream identity, with native WooCommerce catalog and checkout blocks.
Version: 1.0.0
Requires at least: 6.8
Requires PHP: 8.0
Text Domain: point-lookout-shop
License: GPL-2.0-or-later
*/

:root {
  --paper: #f5efe3;
  --paper-2: #efe7d8;
  --ink: #21302e;
  --ink-2: #2b3d3a;
  --ink-soft: #5d6b67;
  --sea: #5f807c;
  --line: rgba(33, 48, 46, .16);
  --line-2: rgba(33, 48, 46, .30);
  --display: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Segoe Script", cursive;
  --body: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wc-primary: var(--ink);
  --wc-primary-text: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* Reuse the homepage's subtle paper finish across the WordPress shell. */
body.plws-shop-theme::before {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .03; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
a { color: inherit; text-underline-offset: .22em; }
button, input, select, textarea { font: inherit; caret-color: var(--ink); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
::selection { background: var(--ink); color: var(--paper); }
[hidden] { display: none !important; }
.wp-site-blocks { padding: 0; }
.wp-site-blocks > *, .wp-block-template-part { margin-block: 0; }
/* Short pages (cart, checkout, account) keep the footer at the bottom of the window: the
   main area takes the leftover height instead of the page ending under the footer. */
.wp-site-blocks { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.wp-site-blocks > main { flex: 1 0 auto; }
.plws-main { margin: 0; padding: 0; }
.plws-main--catalog { background: var(--paper-2); }
.plws-container { width: min(var(--maxw), calc(100% - 2 * clamp(1.2rem, 5vw, 3rem))); margin-inline: auto; }
#wp-skip-link:focus { position: fixed; z-index: 10001; top: .5rem; left: .5rem; width: auto; height: auto; padding: .8rem 1.2rem; background: var(--ink); color: var(--paper); clip: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--display); font-weight: 400; line-height: 1.12; }

.plws-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.wp-element-button, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 46px; padding: .85rem 1.7rem; border: 1px solid var(--ink); border-radius: 2px;
  background: var(--ink); color: var(--paper); font-family: var(--body); font-size: .82rem;
  font-weight: 600; letter-spacing: .14em; line-height: 1.6; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.plws-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wp-element-button:hover,
.wc-block-components-button:not(.is-link):hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.plws-button--outline { background: transparent; color: var(--ink); }
.plws-button--outline:hover { background: var(--ink); color: var(--paper); }
.plws-button--small { min-height: 42px; padding: .6rem 1.15rem; font-size: .74rem; }
button:disabled, .woocommerce button.button:disabled, .wc-block-components-button:disabled { opacity: .55; cursor: not-allowed; }

.wp-site-blocks > .wp-block-template-part:first-child { position: sticky; top: 0; z-index: 100; }
body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 32px; }
.plws-nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem clamp(1rem, 4vw, 3rem); background: rgba(245, 239, 227, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* WordPress can insert an empty paragraph while rendering the header shortcode. */
.plws-nav > p:empty { display: none; }
.plws-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; flex-shrink: 0; }
.plws-brand img { width: 40px; height: auto; display: block; }
.plws-brand__name { display: flex; flex-direction: column; font-family: var(--display); font-size: 1.12rem; font-weight: 500; letter-spacing: .14em; line-height: 1; text-transform: uppercase; }
.plws-brand__name em { margin-top: .05rem; font-family: var(--script); font-size: 1.05rem; font-style: normal; letter-spacing: 0; line-height: 1; color: var(--sea); text-transform: none; }
.plws-nav__links { display: flex; align-items: center; gap: clamp(.9rem, 2vw, 2rem); }
.plws-nav__links a { padding: .25rem 0; border-bottom: 1px solid transparent; color: var(--ink-soft); font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: color .3s; }
.plws-nav__links a:hover, .plws-nav__links a[aria-current] { color: var(--ink); }
.plws-nav__links a[aria-current] { border-bottom: 1px solid var(--ink); }
.plws-nav__actions { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.plws-nav__actions .plws-button { min-height: 44px; }
.plws-cart-link { position: relative; display: inline-flex; gap: .45rem; align-items: center; min-height: 44px; font-size: .78rem; font-weight: 600; text-decoration: none; }
.plws-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--ink); color: var(--paper); font-size: .66rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.plws-cart-link svg { width: 20px; height: 20px; }
.plws-menu-toggle { display: none; width: 44px; height: 44px; padding: .65rem; border: 1px solid var(--line-2); border-radius: 2px; background: transparent; color: var(--ink); cursor: pointer; }
.plws-menu-toggle svg { width: 100%; height: 100%; }
.plws-menu-toggle path { transform-box: fill-box; transform-origin: center; transition: transform .3s var(--ease); }
.plws-nav.is-open .plws-menu-toggle path:first-child { transform: translateY(4px) rotate(45deg); }
.plws-nav.is-open .plws-menu-toggle path:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Match the homepage's one-row header on narrow phones. */
@media (max-width: 380px) {
  .plws-nav .plws-brand img { width: 28px; }
  .plws-nav .plws-brand__name { font-size: .82rem; }
}

.plws-hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(2.5rem, 5vw, 4rem) 1.25rem; text-align: center; background: radial-gradient(120% 80% at 50% 0%, #fbf7ee 0%, var(--paper) 55%), var(--paper); }
.plws-hero__inner { position: relative; max-width: 750px; margin-inline: auto; }
.plws-hero__mark { display: block; width: 104px; height: auto; margin: 0 auto 1.15rem; }
.plws-hero h1 { margin: 0; font-size: clamp(2.6rem, 5.6vw, 4.5rem); letter-spacing: .025em; text-wrap: balance; }
.plws-hero__script { margin: .2rem 0 0; font-family: var(--script); color: var(--sea); font-size: clamp(2rem, 3vw, 2.6rem); line-height: 1.3; }
.plws-hero__copy { max-width: 52ch; margin: 1.15rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.plws-hero__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.plws-hero--coming-soon { display: grid; place-items: center; min-height: min(640px, 72svh); padding-block: 4rem; }
.plws-hero--coming-soon h1 { max-width: 12ch; margin-inline: auto; }
.plws-hero--coming-soon .plws-hero__mark { width: 132px; margin-bottom: 1.5rem; }
.plws-hero__photo { position: absolute; inset: 0; z-index: -1; background-position: center; background-size: cover; opacity: 0; transition: opacity 1.1s var(--ease); filter: grayscale(.2); -webkit-mask-image: radial-gradient(72% 62% at 50% 46%, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 55%, black 85%); mask-image: radial-gradient(72% 62% at 50% 46%, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 55%, black 85%); }
.plws-hero__photo.is-loaded { opacity: .16; }
.plws-pickup { padding: 1.35rem clamp(1.2rem, 5vw, 3rem); background: var(--ink); color: var(--paper); }
.plws-pickup__inner { max-width: var(--maxw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .9rem 2rem; }
.plws-pickup strong { font-family: var(--display); font-size: 1.5rem; font-weight: 500; }
.plws-pickup p { margin: 0; }
.plws-pickup a { font-weight: 600; }
.plws-pickup a:focus-visible, .plws-footer a:focus-visible { outline-color: var(--paper); }

.plws-catalog { padding-block: 2.5rem 4.5rem; }
.plws-search { max-width: 520px; margin: 1.6rem auto 0; }
.woocommerce-product-search { display: flex; gap: .5rem; }
.woocommerce-product-search input[type="search"] { width: 100%; min-width: 0; min-height: 46px; padding: .75rem 1rem; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); background: transparent; font-size: 1rem; }
.woocommerce-product-search input::placeholder { color: var(--ink-soft); opacity: 1; }
.woocommerce-product-search button { border: 1px solid var(--ink); border-radius: 2px; padding: .75rem 1.1rem; color: var(--paper); background: var(--ink); font-size: .82rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease); }
.woocommerce-product-search button:hover { background: transparent; color: var(--ink); }
.plws-catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1.8rem; color: var(--ink-soft); }
.plws-catalog-empty .plws-catalog-toolbar { display: none; }
.plws-catalog-toolbar p { margin: 0; }
.plws-catalog-toolbar select, .woocommerce-ordering select { max-width: 100%; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); color: var(--ink); padding: .6rem .8rem; }
.plws-empty { max-width: 760px; margin: 0 auto; padding: 2.5rem 1.5rem; text-align: center; border-block: 1px solid var(--line); }
.plws-empty h2 { margin: 0 0 .8rem; font-size: clamp(1.9rem, 3vw, 2.5rem); }
.plws-empty p { max-width: 52ch; margin: .5rem auto; color: var(--ink-soft); }
.plws-empty .plws-hero__actions { margin-top: 1.3rem; }

.wc-block-product-template, .wc-block-grid__products { gap: 1.4rem !important; }
.wc-block-product-template .wc-block-product { min-width: 0; padding: 0 0 1.25rem; border: 1px solid var(--line-2); border-radius: 3px; background: var(--paper); overflow: hidden; }
.wc-block-components-product-image { padding: 1.25rem; background: #fff; border-bottom: 1px solid var(--line); }
.wc-block-components-product-image img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain !important; }
.wc-block-product .wp-block-post-title { padding-inline: 1.15rem; margin: 1.1rem 0 .5rem; font-family: var(--display); font-size: 1.5rem; font-weight: 500; text-align: left; }
.wc-block-product .wp-block-post-title a { text-decoration: none; }
.wc-block-product .wp-block-woocommerce-product-price { padding-inline: 1.15rem; margin-block: .5rem 1rem; text-align: left; font-family: var(--body); font-size: 1rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.wc-block-product .wp-block-woocommerce-product-button { padding-inline: 1.15rem; text-align: left; }
.wc-block-product .wc-block-components-product-button__button { width: 100%; min-height: 44px; padding: .7rem .8rem; font-size: .72rem; letter-spacing: .06em; }
.wp-block-query-pagination { display: flex; justify-content: center; gap: .7rem; margin-block: 2rem 0; font-variant-numeric: tabular-nums; }
.wp-block-query-pagination .page-numbers { padding: .45rem .75rem; border: 1px solid var(--line); }
.wp-block-query-pagination .current { color: var(--paper); background: var(--ink); }

.plws-page { padding-block: clamp(2.2rem, 5vw, 4rem) 4.5rem; min-height: 50svh; }
.plws-page > .wp-block-post-title { margin-top: 0; margin-bottom: 2rem; font-size: clamp(2.4rem, 5vw, 3.7rem); }
.plws-page .wp-block-post-content { max-width: 100%; }
.plws-page .wp-block-post-content > p { max-width: 68ch; }
.plws-page .woocommerce, .plws-page .wp-block-woocommerce-cart, .plws-page .wp-block-woocommerce-checkout { font-family: var(--body); color: var(--ink); }
.wc-block-components-title, .wc-block-components-checkout-step__heading { font-family: var(--display); font-weight: 500; }
.wc-block-components-text-input input, .wc-block-components-text-input input:focus, .wc-block-components-combobox .wc-block-components-combobox-control input[role="combobox"] { border-radius: 2px; background: var(--paper); color: var(--ink); }
.wc-block-components-text-input label { color: var(--ink-soft); }
.wc-block-components-order-summary, .wc-block-components-totals-wrapper, .wc-block-components-panel { border-color: var(--line); }
.wc-block-components-radio-control__option { border-radius: 2px; }
.wc-block-components-radio-control__input:checked { border-color: var(--ink); }
.wc-block-components-radio-control__input:checked::before { background: var(--ink); }
.woocommerce-info, .woocommerce-message, .woocommerce-error { border-top-color: var(--ink); background: var(--paper-2); color: var(--ink); }
.woocommerce-info::before, .woocommerce-message::before { color: var(--ink); }
/* Store notices ("... has been added to your cart." + View cart): icon, message and link
   on one centred line, the link pushed right; they wrap under each other on narrow screens. */
.wc-block-components-notice-banner { align-items: center; }
.wc-block-components-notice-banner > svg { align-self: center; flex: none; }
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.25rem; align-self: center; flex: 1 1 auto; min-width: 0; }
.wc-block-components-notice-banner > .wc-block-components-notice-banner__content .wc-forward { float: none; order: 2; flex: none; align-self: center; height: auto; min-height: 0; margin: 0 0 0 auto; padding: 0; line-height: 1.6; }
.woocommerce div.product .woocommerce-product-gallery__image,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { background: #fff; }
.woocommerce div.product .woocommerce-product-gallery__image img:not(.zoomImg) { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: contain; }
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.plws-shop-theme .pswp__img { background: #fff; }
.woocommerce div.product .product_title { font-size: clamp(2rem, 4vw, 3.4rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--ink); font-family: var(--body); }
.woocommerce div.product .plws-refund-notice { max-width: 62ch; margin: 1rem 0; color: var(--ink); font-size: .92rem; line-height: 1.6; }
.plws-refund-notice strong { font-weight: 600; }
/* Ordering paused (inc/ordering.php): a strip under the header and a note where Add to cart was. */
.plws-ordering-paused { margin: 0; padding: .6rem clamp(1rem, 4vw, 3rem); background: var(--ink); color: var(--paper); font-size: .86rem; line-height: 1.5; text-align: center; }
.plws-ordering-paused strong { font-weight: 600; }
.plws-ordering-paused a { color: var(--paper); text-decoration: underline; text-underline-offset: .15em; }
.plws-ordering-paused a:focus-visible { outline-color: var(--paper); }
.woocommerce div.product .plws-product-paused { max-width: 62ch; margin: 1rem 0 1.5rem; padding: 1rem 1.15rem; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper-2); color: var(--ink); line-height: 1.6; }
.plws-product-paused strong { display: block; font-weight: 600; }
.plws-product-paused a { color: var(--ink); font-weight: 600; }
.plws-refund-notice a:hover { text-decoration-thickness: 2px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 2px 2px 0 0; background: var(--paper-2); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea { min-height: 44px; padding: .7rem .9rem; border: 1px solid var(--line-2); border-radius: 2px; color: var(--ink); background: transparent; }
.woocommerce .quantity .qty { min-height: 46px; width: 4rem; border: 1px solid var(--line-2); border-radius: 2px; background: var(--paper); color: var(--ink); }
.woocommerce table.shop_table { border-color: var(--line); border-radius: 2px; font-variant-numeric: tabular-nums; }
.woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation li a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }

.plws-footer { padding: 3.2rem clamp(1.2rem, 5vw, 3rem); background: var(--ink); color: var(--paper); text-align: center; }
.plws-footer__inner { max-width: var(--maxw); margin-inline: auto; }
.plws-footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.6rem; }
.plws-footer__brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: 1.2rem; letter-spacing: .04em; text-decoration: none; }
.plws-footer__brand img { display: block; width: 34px; height: auto; }
.plws-footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.plws-footer__links a { color: rgba(245, 239, 227, .7); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.plws-footer__links a:hover { color: var(--paper); }
.plws-footer__address { margin: 0 0 .6rem; color: rgba(245, 239, 227, .6); font-size: .86rem; line-height: 1.7; }
.plws-footer__small { margin: 0 0 1rem; color: var(--paper); font-size: .84rem; letter-spacing: .04em; }
.plws-footer__policies { display: flex; justify-content: center; flex-wrap: wrap; gap: .35rem 1.35rem; margin-block: .5rem; }
.plws-footer__policies a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: .86rem; }
.plws-footer__policies a:hover { text-decoration-thickness: 2px; }
.plws-footer__bottom { margin-block: 1em; font-size: .8rem; color: rgba(245, 239, 227, .6); }
.plws-footer__bottom a { color: rgba(245, 239, 227, .6); }

@media (min-width: 961px) {
  .plws-nav { display: grid; grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr); }
  .plws-brand { justify-self: start; }
  .plws-nav__links { justify-self: center; }
  .plws-nav__actions { justify-self: end; }
  .wc-block-product-template { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
}
@media (max-width: 960px) {
  .plws-nav { flex-wrap: wrap; }
  .plws-menu-toggle { display: inline-flex; }
  .plws-nav__links { display: none; order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; margin: .85rem calc(-1 * clamp(1rem, 4vw, 3rem)) -.85rem; border-top: 1px solid var(--line); }
  .plws-nav.is-open .plws-nav__links { display: flex; }
  .plws-nav__links a { padding: .95rem clamp(1rem, 4vw, 3rem); border-bottom: 1px solid var(--line); font-size: .86rem; }
  .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 782px) { body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child { top: 0; } }
@media (max-width: 680px) {
  .plws-hero { padding-block: 2.2rem; }
  .plws-hero--coming-soon { min-height: 580px; padding-block: 3rem; }
  .plws-hero__copy { font-size: 1rem; }
  .plws-pickup__inner { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .plws-pickup__inner > a { margin-top: .55rem; }
  .plws-catalog { padding-block: 1.5rem 3rem; }
  .plws-catalog-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: .8rem !important; }
  .wc-block-components-product-image { padding: .8rem; }
  .wc-block-product .wp-block-post-title { padding-inline: .8rem; font-size: 1.25rem; }
  .wc-block-product .wp-block-woocommerce-product-price, .wc-block-product .wp-block-woocommerce-product-button { padding-inline: .8rem; }
  .wc-block-product .wc-block-components-product-button__button { font-size: .66rem; letter-spacing: .025em; padding-inline: .4rem; }
  .plws-empty { padding-inline: 0; }
}
@media (max-width: 560px) {
  .plws-nav { gap: .5rem; }
  .plws-brand { gap: .5rem; }
  .plws-brand img { width: 32px; }
  .plws-brand__name { font-size: .88rem; letter-spacing: .1em; }
  .plws-brand__name em { font-size: .85rem; }
  .plws-nav__actions { gap: .45rem; }
  .plws-nav__actions .plws-button { display: none; }
  .plws-cart-link__text { display: none; }
  .plws-cart-count { position: absolute; top: 2px; right: 0; }
  .plws-cart-link { width: 44px; justify-content: center; }
  .plws-hero--coming-soon h1 { font-size: clamp(2.6rem, 10vw, 3.4rem); }
  .plws-hero__actions .plws-button { flex: 1 1 160px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
