/*
Theme Name: HawL
Theme URI: https://vintagewatch.tokyo/
Author: HawL
Description: ヴィンテージ時計店「HawL」専用のモノトーンテーマ（Shopify「HawL Monochrome」と同じデザイン）。販売中・SOLD の時計一覧、商品ページ、購入方法、お問い合わせフォーム、Shopify からの商品取り込み機能を備えています。
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: hawl
*/

/* Home page sections use assets/css/hawl-home.css (the .hh-* classes, same as the Shopify theme).
   This file covers the base, the inner-page header, and inner pages. */

:root {
	--paper: #f2f1ed;
	--paper-2: #f5f5f3;
	--stone: #e6e6e3;
	--ink: #0a0a0a;
	--ink-2: #333331;
	--muted: #6b6b67;
	--mute-d: #5b5a56;
	--line: #d9d9d6;
	--line-2: #c9c8c3;
	--en: "Cormorant Garamond", serif;
	--jp: "Noto Serif JP", serif;
	--sans: "Noto Sans JP", sans-serif;
	--pad: clamp(24px, 5vw, 80px);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: #111;
	font-family: var(--sans);
	font-weight: 300;
	font-size: 15px;
	line-height: 1.9;
	letter-spacing: .04em;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .72; }
button { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus { position: fixed; left: 8px; top: 8px; z-index: 999; width: auto; height: auto; clip: auto; background: #fff; padding: 8px 12px; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Inner-page header (dark bar, centred logo — like the Shopify product pages) ---------- */
.hb {
	position: sticky; top: 0; z-index: 50;
	background: var(--ink); color: var(--paper);
}
.admin-bar .hb { top: 32px; }
@media (max-width: 782px) { .admin-bar .hb { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hb { top: 0; } }
.hb__in {
	display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
	min-height: 84px; padding: 0 var(--pad);
}
.hb__logo {
	grid-column: 2; font-family: var(--en); font-weight: 400; font-size: 34px;
	letter-spacing: .2em; line-height: 1; padding-left: .2em;
}
.hb__nav { grid-column: 3; justify-self: end; }
.hb__nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 36px; flex-wrap: wrap; justify-content: flex-end; }
.hb__nav a { display: block; padding: 14px 0; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; }
.nav-toggle {
	grid-column: 1; justify-self: start; display: none;
	background: none; border: 0; color: inherit; cursor: pointer;
	width: 44px; height: 44px; padding: 0; position: relative; margin-left: -10px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
	position: absolute; left: 11px; width: 22px; height: 1px; background: currentColor; content: "";
	transition: transform .3s var(--ease), background .3s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 989px) {
	.nav-toggle { display: block; }
	.hb__nav {
		position: fixed; left: 0; right: 0; top: 84px; bottom: 0; background: var(--ink);
		opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
	}
	.admin-bar .hb__nav { top: 130px; }
	.nav-open .hb__nav { opacity: 1; pointer-events: auto; }
	.hb__nav ul { flex-direction: column; padding: 16px var(--pad); gap: 0; }
	.hb__nav li { border-bottom: 1px solid #2a2a28; }
	.hb__nav a { padding: 20px 0; font-size: 12px; }
}

/* ---------- Home hero: mobile nav wraps neatly under the logo ---------- */
@media (max-width: 599px) {
	.hh-head { gap: 8px 24px; padding-top: 24px; }
	.hh-nav { gap: 0 22px; }
}

/* ---------- Home: Archive section (kept from the previous WordPress design) ---------- */
.home-archive { padding: clamp(72px, 11vw, 140px) 0; background: var(--paper); color: var(--ink); }
.section-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
	margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .sub, .page-sub {
	display: block; font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--mute-d);
}
.section-head h2, .page-title {
	font-family: var(--en); font-weight: 300; margin: 16px 0 0;
	font-size: clamp(40px, 5vw, 72px); line-height: 1; letter-spacing: -.01em;
}
.section-head h2 { font-family: var(--jp); font-size: clamp(30px, 3.6vw, 44px); line-height: 1.3; letter-spacing: .02em; }
.more {
	display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
	font-size: 11px; letter-spacing: .34em; text-transform: uppercase; flex-direction: row-reverse;
}
.more::before { content: ""; display: block; width: 40px; height: 1px; background: currentColor; }

.sold-grid {
	display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 28px clamp(12px, 2vw, 24px);
}
@media (max-width: 1000px) { .sold-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .sold-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 10px; } }
.sold-item { display: block; }
.sold-item:hover { opacity: 1; }
.sold-item__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #e3e1dc; }
.sold-item__media img {
	width: 100%; height: 100%; object-fit: cover; filter: grayscale(1);
	transition: transform .9s var(--ease);
}
.sold-item:hover img { transform: scale(1.05); }
.sold-item__title {
	font-family: var(--jp); font-size: 12px; line-height: 1.6; margin: 10px 0 0; color: var(--ink-2);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tag-sold {
	position: absolute; left: 8px; top: 8px;
	font-family: var(--en); font-size: 10px; letter-spacing: .3em; padding: 2px 7px; background: var(--ink); color: var(--paper);
}
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Inner pages ---------- */
.site-main { min-height: 60vh; }
.page-header { padding: clamp(56px, 8vw, 112px) 0 clamp(32px, 4vw, 48px); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 56px; }
.filters a {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 22px;
	border: 1px solid var(--line-2); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
	transition: background .3s, color .3s, border-color .3s;
}
.filters a:hover { opacity: 1; border-color: var(--ink); }
.filters a.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.filters .count { font-family: var(--en); font-size: 14px; letter-spacing: .06em; color: var(--mute-d); }
.filters a.is-active .count { color: #a9a8a3; }

.empty { padding: 40px 0; color: var(--mute-d); font-family: var(--jp); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 72px; flex-wrap: wrap; }
.pagination .page-numbers {
	min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--line-2); font-family: var(--en); font-size: 15px; padding: 0 10px;
}
.pagination .current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-bottom { height: clamp(72px, 10vw, 140px); }

/* ---------- Single watch ---------- */
.watch {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
	gap: clamp(32px, 5vw, 88px); padding: clamp(40px, 6vw, 80px) 0 clamp(72px, 10vw, 140px);
	align-items: start;
}
@media (max-width: 860px) { .watch { grid-template-columns: minmax(0, 1fr); } }
.gallery__main { position: relative; aspect-ratio: 4 / 5; background: var(--ink); overflow: hidden; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.is-sold .gallery__main img, .is-sold .gallery__thumbs img { filter: grayscale(1); }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
@media (max-width: 520px) { .gallery__thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gallery__thumbs button {
	padding: 0; border: 0; background: var(--ink); aspect-ratio: 1 / 1; cursor: pointer; overflow: hidden;
	outline: 1px solid transparent; outline-offset: 2px; transition: outline-color .2s;
}
.gallery__thumbs button.is-active { outline-color: var(--ink); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.watch__info { position: sticky; top: 116px; }
@media (max-width: 860px) { .watch__info { position: static; } }
.watch__brand { font-size: 11px; letter-spacing: .42em; text-transform: uppercase; color: var(--mute-d); margin: 0 0 16px; }
.watch__title {
	font-family: var(--en), var(--jp); font-weight: 300; font-size: clamp(30px, 3.4vw, 44px);
	line-height: 1.2; margin: 0; letter-spacing: .02em;
}
.watch__price { font-family: var(--en); font-size: 32px; margin: 28px 0 0; letter-spacing: .06em; }
.watch__status-sold {
	display: inline-block; margin-top: 24px; padding: 6px 18px; border: 1px solid var(--ink);
	font-family: var(--en); font-size: 14px; letter-spacing: .4em;
}
.watch__buy { display: grid; gap: 10px; margin: 32px 0 0; }
.watch__note { font-size: 12px; color: var(--muted); line-height: 1.9; margin-top: 16px; }
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 56px; padding: 0 40px; border: 1px solid var(--ink); background: transparent; color: var(--ink);
	font-size: 11px; letter-spacing: .34em; text-transform: uppercase; font-weight: 300; cursor: pointer;
	transition: background .4s, color .4s;
}
.btn:hover { opacity: 1; background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: transparent; color: var(--ink); }

.specs { width: 100%; border-collapse: collapse; margin: 40px 0 0; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 16px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.specs th { width: 10em; font-weight: 300; color: var(--mute-d); font-size: 10px; letter-spacing: .34em; text-transform: uppercase; padding-right: 16px; }
.specs td { font-family: var(--jp); }
.specs tr:first-child th, .specs tr:first-child td { border-top: 1px solid var(--ink); }
.watch__desc { margin-top: 40px; font-family: var(--jp); font-size: 15px; line-height: 2.3; color: var(--ink-2); }
.watch__desc p { margin: 0 0 1.3em; }

.lightbox {
	position: fixed; inset: 0; z-index: 100; background: rgba(6,6,6,.96);
	display: none; align-items: center; justify-content: center; cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; }
.lightbox__nav {
	position: absolute; top: 50%; transform: translateY(-50%);
	background: none; border: 0; color: #fff; font-size: 34px; width: 56px; height: 80px; cursor: pointer; opacity: .7;
}
.lightbox__nav:hover { opacity: 1; }
.lightbox__prev { left: 8px; } .lightbox__next { right: 8px; }

.related { border-top: 1px solid var(--line-2); padding: clamp(72px, 10vw, 140px) 0; }

/* ---------- Page content ---------- */
.entry { max-width: 780px; padding-bottom: clamp(72px, 10vw, 140px); font-family: var(--jp); font-size: 15px; line-height: 2.3; }
.entry h2 { font-family: var(--en), var(--jp); font-weight: 300; font-size: 32px; margin: 2em 0 .6em; line-height: 1.3; }
.entry h3 { font-size: 17px; font-weight: 400; margin: 2em 0 .6em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 14px; }
.entry th, .entry td { text-align: left; padding: 16px 12px 16px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.entry tr:first-child th, .entry tr:first-child td { border-top: 1px solid var(--ink); }
.entry th { width: 12em; font-weight: 300; color: var(--mute-d); font-family: var(--sans); font-size: 12px; letter-spacing: .1em; }
.entry a { border-bottom: 1px solid currentColor; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 24px; max-width: 640px; font-family: var(--sans); }
.form label { display: block; font-size: 10px; letter-spacing: .34em; text-transform: uppercase; color: var(--mute-d); margin-bottom: 8px; }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea, .form select {
	width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0;
	padding: 10px 0; font: inherit; font-size: 16px; color: var(--ink);
}
.form textarea { min-height: 180px; resize: vertical; border: 1px solid var(--ink); padding: 12px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--muted); }
.form .hp { position: absolute; left: -9999px; }
.notice { padding: 16px 20px; border: 1px solid var(--ink); margin-bottom: 28px; font-size: 14px; }
.notice--error { border-color: #8a1c1c; color: #8a1c1c; }
