/*
Theme Name: SHOREY
Theme URI: https://shorey.surf
Description: Tide Line design for SHOREY™ — heavy water chargers only. Child of Twenty Twenty-Five.
Template: twentytwentyfive
Version: 1.3.6
Requires at least: 6.6
Text Domain: shorey
*/

/* Wordmark: SHOREY with a small raised ™ */
.shorey-wordmark { font-family: var(--wp--preset--font-family--anton); letter-spacing: 0.08em; line-height: 1; margin: 0; }
.shorey-wordmark a { text-decoration: none; color: inherit; }
.shorey-wordmark sup { font-family: var(--wp--preset--font-family--inter); font-size: 0.34em; font-weight: 700; letter-spacing: 0; margin-left: 0.15em; vertical-align: top; line-height: 1; }

/* Eyebrows and small labels */
.shorey-eyebrow { text-transform: uppercase; letter-spacing: 0.24em; font-weight: 600; }
.shorey-label { text-transform: uppercase; letter-spacing: 0.16em; font-weight: 700; }
.shorey-credit, .shorey-credit a { font-size: 12px; letter-spacing: 0.04em; text-decoration: none; }

/* Header navigation */
.shorey-header .wp-block-navigation { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.shorey-header .wp-block-navigation a { text-decoration: none; }
.shorey-header .wp-block-navigation a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

/* Profile + cart icons, pinned right */
/* Header row: wordmark left · menu centered · icons right */
.shorey-header .shorey-bar { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.shorey-header .shorey-bar > .shorey-wordmark { justify-self: start; }
.shorey-header .shorey-bar > .wp-block-navigation { justify-self: center; }
.shorey-icons { display: flex; align-items: center; gap: 4px; justify-self: end; }
.shorey-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--wp--preset--color--ink); }
.shorey-icon:hover { color: var(--wp--preset--color--slate); }

/* Flat, square, poster-like */
.wp-element-button, .wp-block-button__link, .woocommerce .button, .wc-block-components-button { border-radius: 0 !important; }
.is-style-outline > .wp-block-button__link { border: 2px solid currentColor; background: transparent; }
.shorey-hero .is-style-outline > .wp-block-button__link { color: #fff; }

/* Category tiles */
.shorey-cat .wp-block-cover__inner-container a { text-decoration: none; color: inherit; }
.shorey-cat { transition: filter .15s ease; }
.shorey-cat:hover { filter: brightness(1.12); }

/* Journal cards */
.shorey-card .wp-block-post-title a { text-decoration: none; }
.shorey-card .wp-block-post-terms a { text-decoration: none; color: var(--wp--preset--color--sea); }
.shorey-card .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; }

/* Journal category filter */
.shorey-filters .wp-block-button__link { padding: 10px 18px; font-size: 14px; }

/* WooCommerce touches */
.woocommerce div.product .product_title, .wp-block-post-title.has-anton-font-family { text-transform: uppercase; }
.wc-block-components-product-name, .wp-block-woocommerce-product-template .wp-block-post-title a { text-decoration: none; }

/* Cart: icon + "Cart" label */
.shorey-icon.shorey-cart { width: 44px; }

/* Mini-cart: icon + item count + "Cart" label, drawer on click */
.shorey-icons .wc-block-mini-cart__button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; color: var(--wp--preset--color--ink); font-family: var(--wp--preset--font-family--inter); }
.shorey-icons .wc-block-mini-cart__button::after { content: none; }
.shorey-icons .wc-block-mini-cart__badge { background: var(--wp--preset--color--sunset) !important; color: var(--wp--preset--color--ink) !important; border-color: var(--wp--preset--color--white) !important; font-weight: 700; }
.shorey-icons .wc-block-mini-cart__quantity-badge svg { width: 24px; height: 24px; }

/* Checkout: gift icon + "Checkout" label */
.shorey-icon.shorey-checkout { width: auto; gap: 8px; padding: 0 6px; text-decoration: none; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; }

/* Phones: icons only */
@media (max-width: 700px) {
  .shorey-icon.shorey-cart span, .shorey-icon.shorey-checkout span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .shorey-icons .wc-block-mini-cart__button::after { content: none; }
  .shorey-header .shorey-bar { gap: 8px; }
}

/* ---------- Home page sharpen (1.2.0) ---------- */

/* Hero: taller, copy aligned to the 1280 grid, credit pinned to the corner */
.shorey-hero { min-height: min(88vh, 900px) !important; }
.shorey-hero.wp-block-cover .wp-block-cover__inner-container { width: min(1280px, 100%) !important; max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
.shorey-hero .wp-block-cover__inner-container > * { margin-left: 0 !important; margin-right: auto !important; }
.shorey-hero .shorey-lede { max-width: 560px; }
.shorey-hero .shorey-hero-credit { position: absolute; right: 0; bottom: -52px; margin: 0 !important; opacity: .85; }

/* Ticker band under the hero */
.shorey-ticker { background: var(--wp--preset--color--sunset); color: var(--wp--preset--color--ink); overflow: hidden; padding: 16px 0; margin: 0 !important; border-bottom: 3px solid var(--wp--preset--color--ink); }
.shorey-ticker__track { display: flex; width: max-content; animation: shorey-ticker 40s linear infinite; }
.shorey-ticker__track span { display: inline-flex; align-items: center; padding-right: 48px; white-space: nowrap; font-family: var(--wp--preset--font-family--anton); text-transform: uppercase; font-size: clamp(22px, 2.4vw, 34px); line-height: 1; letter-spacing: .02em; }
.shorey-ticker__track span::after { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); margin-left: 48px; }
.shorey-ticker__track sup { font-family: var(--wp--preset--font-family--inter); font-size: .34em; font-weight: 700; align-self: flex-start; margin-left: .12em; line-height: 1; }
.shorey-ticker:hover .shorey-ticker__track { animation-play-state: paused; }
@keyframes shorey-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .shorey-ticker__track { animation: none; } }

/* Category cards: real product, bold ink label */
.shorey-cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 32px !important; }
.shorey-cat-card { display: flex; flex-direction: column; text-decoration: none; color: var(--wp--preset--color--ink); background: #fff; }
.shorey-cat-card__img { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; }
.shorey-cat-card__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .4s ease; }
.shorey-cat-card__name { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; background: var(--wp--preset--color--ink); color: #fff; font-family: var(--wp--preset--font-family--anton); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 24px); line-height: 1; transition: background .15s ease, color .15s ease; }
.shorey-cat-card__name svg { flex: none; transition: transform .2s ease; }
.shorey-cat-card:hover .shorey-cat-card__img img { transform: scale(1.06); }
.shorey-cat-card:hover .shorey-cat-card__name, .shorey-cat-card:focus-visible .shorey-cat-card__name { background: var(--wp--preset--color--sunset); color: var(--wp--preset--color--ink); }
.shorey-cat-card:hover .shorey-cat-card__name svg { transform: translateX(4px); }
.shorey-cat-card:focus-visible { outline: 3px solid var(--wp--preset--color--sunset); outline-offset: 3px; }
@media (max-width: 900px) {
  .shorey-cats { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .shorey-cat-card { scroll-snap-align: start; }
}
@media (max-width: 520px) { .shorey-cats { grid-auto-columns: 68%; } }

/* New arrivals: cleaner product names */
.wc-block-grid__product-link { text-decoration: none; }
.wc-block-grid__product-title { font-weight: 600; }

/* From the shorebreak: staggered photo grid */
.shorey-gallery { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: clamp(260px, 36vw, 540px) clamp(220px, 28vw, 420px); gap: 16px; margin-top: 40px !important; }
.shorey-gallery__item { position: relative; margin: 0; overflow: hidden; background: var(--wp--preset--color--ink); }
.shorey-gallery__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.shorey-gallery__item:hover img { transform: scale(1.04); }
.shorey-gallery__item.is-a { grid-column: span 8; }
.shorey-gallery__item.is-b { grid-column: span 4; }
.shorey-gallery__item.is-c { grid-column: span 5; }
.shorey-gallery__item.is-d { grid-column: span 7; }
.shorey-gallery figcaption { position: absolute; left: 14px; bottom: 10px; z-index: 1; margin: 0; }
.shorey-gallery figcaption a { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
@media (max-width: 782px) {
  .shorey-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; gap: 10px; }
  .shorey-gallery__item.is-a, .shorey-gallery__item.is-d { grid-column: span 2; height: 56vw; }
  .shorey-gallery__item.is-b, .shorey-gallery__item.is-c { grid-column: span 1; height: 44vw; }
}

/* Journal section stays hidden until the first post is published */
.shorey-journal:has(.shorey-empty) { display: none; }

/* Beach-walk statement band (1.2.1) */
.shorey-walk { overflow: hidden; }
.shorey-walk.wp-block-cover .wp-block-cover__inner-container { width: min(1280px, 100%) !important; max-width: 1280px; margin-left: auto !important; margin-right: auto !important; }
.shorey-walk .shorey-walk-title { margin: 0 !important; font-size: clamp(48px, 8vw, 128px); line-height: .9; max-width: none; }
.shorey-walk .shorey-walk-credit { position: absolute; right: 0; bottom: -56px; margin: 0 !important; }
/* Slow drift on scroll, so the surfer keeps walking (browsers without support just show a still photo) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .shorey-walk .wp-block-cover__image-background { animation: shorey-drift linear both; animation-timeline: view(); }
    @keyframes shorey-drift { from { transform: scale(1.14) translateY(-5%); } to { transform: scale(1.14) translateY(5%); } }
  }
}
@media (max-width: 700px) {
  .shorey-walk { min-height: 520px !important; }
  .shorey-walk .shorey-walk-title { font-size: clamp(44px, 13vw, 72px); }
}

/* Bigger header wordmark (1.2.2) */
.shorey-header .shorey-wordmark { font-size: clamp(34px, 3.8vw, 54px) !important; }
@media (max-width: 700px) { .shorey-header .shorey-wordmark { font-size: 34px !important; } }

/* Phones: hamburger sits to the right of the icons (1.2.3) */
@media (max-width: 599px) {
  .shorey-header .shorey-bar { grid-template-columns: 1fr auto auto; gap: 4px; }
  .shorey-header .shorey-bar > .shorey-icons { order: 2; }
  .shorey-header .shorey-bar > .wp-block-navigation { order: 3; justify-self: end; }
  .shorey-header .wp-block-navigation__responsive-container-open { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* Header icons: one matching set (1.2.4) — 24px line icons in equal 44px tap boxes */
.shorey-icons { gap: 4px !important; }
.shorey-header .shorey-icon,
.shorey-icons .wc-block-mini-cart__button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 0; padding: 0; margin: 0; border: 0; background: none; color: var(--wp--preset--color--ink); transition: color .15s ease; }
.shorey-icons svg,
.shorey-icons .wc-block-mini-cart__quantity-badge svg,
.shorey-icons .wc-block-mini-cart__icon { width: 24px !important; height: 24px !important; margin: 0; display: block; }
.shorey-icons .wc-block-mini-cart__quantity-badge { display: inline-flex; position: relative; }
.shorey-icons .wc-block-mini-cart__badge { top: -6px; right: -9px; left: auto; min-width: 18px; height: 18px; font-size: 11px; line-height: 1; }
.shorey-header .shorey-icon:hover,
.shorey-icons .wc-block-mini-cart__button:hover { color: var(--wp--preset--color--sea); }
.shorey-header .shorey-icon.shorey-checkout { width: auto; gap: 8px; padding: 0 2px 0 10px; font-size: 14px; letter-spacing: .06em; }
.shorey-header .shorey-icon.shorey-checkout:hover span { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.shorey-header .shorey-icon:focus-visible,
.shorey-icons .wc-block-mini-cart__button:focus-visible { outline: 2px solid var(--wp--preset--color--sunset); outline-offset: 2px; }
@media (max-width: 599px) { .shorey-header .shorey-icon.shorey-checkout { width: 44px; padding: 0; } }

/* Journal articles (1.2.6) */
.single-post .wp-block-post-title { font-size: clamp(44px, 6vw, 88px); line-height: 1.04; }
.single-post .wp-block-post-content h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; margin-top: 2.2em; margin-bottom: .5em; }
.single-post .wp-block-post-content h3 { font-size: clamp(22px, 2.2vw, 28px); margin-top: 1.8em; margin-bottom: .4em; }
.single-post .wp-block-post-content .shorey-standfirst { font-size: clamp(20px, 2vw, 24px); line-height: 1.45; color: var(--wp--preset--color--slate); margin-bottom: 2em; }
.single-post .wp-block-post-content ul { padding-left: 1.2em; }
.single-post .wp-block-post-content li { margin-bottom: .35em; }
.single-post .wp-block-post-content li::marker { color: var(--wp--preset--color--sunset); }
.single-post .wp-block-post-content .shorey-pullout { margin-top: 2.4em; padding-left: 22px; border-left: 4px solid var(--wp--preset--color--sunset); font-size: clamp(20px, 2vw, 24px); line-height: 1.4; }
.single-post .wp-block-post-content .wp-block-separator { border: 0; border-top: 2px solid var(--wp--preset--color--ink); width: 64px; margin: 3em 0 1.5em; opacity: 1; }
.single-post .wp-block-post-content .shorey-signoff { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; }
.single-post .wp-block-post-content .shorey-signoff em { font-style: normal; }

/* Blog posts: article + product rail (1.2.8) */
.single-post .shorey-article-cols { align-items: stretch; }
.single-post .shorey-article-main { min-width: 0; }
.single-post .shorey-article-main .wp-block-post-title { font-size: clamp(40px, 4.6vw, 76px); }
.single-post .shorey-article-main .wp-block-post-content { max-width: 760px; }
.shorey-rail { position: sticky; top: 24px; background: var(--wp--preset--color--white); border: 1px solid var(--wp--preset--color--mist); padding: 24px; }
.shorey-rail__eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wp--preset--color--sunset); }
.shorey-rail__title { margin: 0 0 18px; font-family: var(--wp--preset--font-family--anton); font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--wp--preset--color--ink); }
.shorey-rail__list { list-style: none; margin: 0; padding: 0; }
.shorey-rail__list li { margin: 0; border-top: 1px solid var(--wp--preset--color--sea-glass); }
.shorey-rail-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; text-decoration: none; color: var(--wp--preset--color--ink); }
.shorey-rail-item__img { flex: 0 0 84px; width: 84px; height: 84px; background: var(--wp--preset--color--salt); overflow: hidden; }
.shorey-rail-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.shorey-rail-item:hover .shorey-rail-item__img img { transform: scale(1.05); }
.shorey-rail-item__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.shorey-rail-item__name { font-size: 15px; font-weight: 600; line-height: 1.3; }
.shorey-rail-item:hover .shorey-rail-item__name { text-decoration: underline; text-underline-offset: 3px; }
.shorey-rail-item__price { font-size: 14px; color: var(--wp--preset--color--slate); }
.shorey-rail-item__price del { opacity: .6; margin-right: 6px; }
.shorey-rail__all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 14px 18px; background: var(--wp--preset--color--sunset); color: var(--wp--preset--color--ink); font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background .15s ease; }
.shorey-rail__all:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }
@media (max-width: 781px) {
  .shorey-rail { position: static; margin-top: 32px; }
}

/* About page (1.2.9) */
.page .shorey-about-lead { margin-top: 0; line-height: 1; }
.page .shorey-pullout { margin: 2em 0; padding-left: 22px; border-left: 4px solid var(--wp--preset--color--sunset); line-height: 1.4; }
.page .shorey-signoff::before { content: ""; display: block; width: 64px; height: 2px; background: var(--wp--preset--color--ink); margin: 3em 0 1.25em; }
.page .shorey-signoff { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; }
.page .shorey-about-ctas { margin-top: 1.5em; gap: 12px; }
.page .shorey-about-ctas .is-style-outline .wp-block-button__link { background: transparent; color: var(--wp--preset--color--ink); border: 2px solid var(--wp--preset--color--ink); }
.page .shorey-about-ctas .is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); }

/* Footer social icons (1.3.0) */
.shorey-social .wp-social-link { transition: transform .15s ease; }
.shorey-social .wp-social-link a { padding: 6px; }
.shorey-social .wp-social-link svg { width: 22px; height: 22px; }
.shorey-social .wp-social-link:hover { transform: translateY(-2px); }
.shorey-social .wp-social-link:hover,
.shorey-social .wp-social-link:hover a { color: var(--wp--preset--color--white) !important; }
.shorey-social .wp-social-link:first-child a { padding-left: 0; }

/* Category card with a lifestyle photo instead of a product cut-out (1.3.1) */
.shorey-cat-card__img--photo img { object-fit: cover; object-position: 52% 40%; }

/* ™ inside big titles (1.3.2) */
sup.shorey-tm { font-size: .22em; vertical-align: top; position: relative; top: .45em; margin-left: .04em; line-height: 0; }

/* Sold-out products (1.3.2) */
.single-product .stock.out-of-stock { display: inline-block; margin: 4px 0 8px; padding: 8px 14px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.wc-block-grid__product-image { position: relative; }
.shorey-soldout { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 6px 10px; background: var(--wp--preset--color--ink); color: var(--wp--preset--color--white); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }
.wc-block-grid__product.is-sold-out .wp-block-button__link,
.wc-block-grid__product.is-sold-out .add_to_cart_button { background: transparent !important; color: var(--wp--preset--color--ink) !important; border: 2px solid var(--wp--preset--color--ink) !important; }
.wc-block-grid__product.is-sold-out .wc-block-grid__product-image img { opacity: .85; }
ul.products li.product { position: relative; }
ul.products li.product.outofstock .button { background: transparent !important; color: var(--wp--preset--color--ink) !important; border: 2px solid var(--wp--preset--color--ink) !important; }
li.wc-block-product { position: relative; }
li.wc-block-product.outofstock .wp-block-button__link,
li.wc-block-product.outofstock .wc-block-components-product-button__button,
li.wc-block-product.outofstock .button { background: transparent !important; color: var(--wp--preset--color--ink) !important; border: 2px solid var(--wp--preset--color--ink) !important; }

/* Home hero: bold lede (1.3.3) */
.shorey-hero .shorey-lede { font-weight: 700; }

/* ™ in small product-card titles: keep it readable (1.3.4) */
li.wc-block-product sup.shorey-tm,
.wc-block-grid__product sup.shorey-tm { font-size: .5em; top: .15em; }

/* Legal pages + footer IP notice (1.3.6) */
.shorey-legal-callout { border-left: 4px solid var(--wp--preset--color--sunset); background: var(--wp--preset--color--salt); padding: 16px 20px; }
.page h2.wp-block-heading[id] { scroll-margin-top: 100px; }
.shorey-ip-notice { opacity: .75; max-width: 900px; }
.shorey-legal-links a, .shorey-ip-notice a { text-decoration: underline; text-underline-offset: 2px; }
.shorey-made-to-order { font-size: 14px; margin: 12px 0 0; padding: 10px 14px; background: var(--wp--preset--color--salt); border-left: 3px solid var(--wp--preset--color--ink); }
.shorey-made-to-order a { text-decoration: underline; }
