/*
Theme Name: Supremelala
Description: Storefront and blog theme for Supremelala (envylook.jp). Mobile-first; one stylesheet for the shop and the blog. Checkout shows "payment coming soon" until SUPREMELALA_STORE_LIVE is set.
Version: 1.0.3
Requires PHP: 8.0
Text Domain: supremelala
WC requires at least: 8.0
*/

/* ---------- tokens ---------- */
:root {
  --ink: #141414;
  --ink-2: #555;
  --ink-3: #8a8780;
  --paper: #fff;
  --paper-2: #f6f4f0;
  --line: #e6e3dd;
  --accent: #b8412f;
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --font-latin: "Jost", var(--font);
  --gutter: 16px;
  --max: 1200px;
  --read: 720px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.8 var(--font); letter-spacing: .02em;
  min-height: 100vh; display: flex; flex-direction: column; }   /* footer stays at the bottom on short pages */
.site-main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.4; font-weight: 500; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.empty { padding: 64px 0; text-align: center; color: var(--ink-3); }

/* ---------- buttons ---------- */
.btn, .button, button.single_add_to_cart_button, .wc-block-components-button:not(.is-link) {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--ink) !important; color: #fff !important; border: 1px solid var(--ink); border-radius: 0;
  font: 500 14px/1 var(--font); letter-spacing: .08em; cursor: pointer;
}
.btn--ghost { background: transparent !important; color: var(--ink) !important; }
.button:disabled, .button.disabled { opacity: .4; cursor: not-allowed; }

/* ---------- header ---------- */
.notice-bar { margin: 0; padding: 6px var(--gutter); background: var(--ink); color: #fff; font-size: 11px; text-align: center; letter-spacing: .06em; }
.site-head { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-head__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 56px; padding: 0 8px; max-width: var(--max); margin: 0 auto; }
.logo { justify-self: center; }
.logo img { width: 132px; height: auto; }
.site-head__tools { justify-self: end; display: flex; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--accent); color: #fff; font: 500 10px/16px var(--font-latin); text-align: center; }
.cart-count[hidden] { display: none; }
.site-search { display: flex; gap: 8px; padding: 8px var(--gutter) 12px; max-width: var(--max); margin: 0 auto; }
.site-search[hidden] { display: none; }
.site-search input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; font-size: 16px; }
.site-search button { padding: 0 16px; background: var(--ink); color: #fff; border: 0; }

/* mobile: drawer under the bar */
.site-head__tools .account-link { display: none; }
.shop-nav .account-item a { font-family: var(--font); font-weight: 400; letter-spacing: .02em; }
.shop-nav { display: none; border-top: 1px solid var(--line); }
.shop-nav.is-open { display: block; }
.shop-nav ul { list-style: none; margin: 0; padding: 0; }
.shop-nav a { display: block; padding: 14px var(--gutter); border-bottom: 1px solid var(--line); font-family: var(--font-latin); font-weight: 500; letter-spacing: .08em; }
.shop-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }

/* ---------- hero ---------- */
.hero { position: relative; background: var(--paper-2); }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero__track::-webkit-scrollbar { display: none; }
.hero__slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; display: block; }
.hero__slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero__text { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 44px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__title { display: block; font-size: 24px; font-weight: 500; letter-spacing: .06em; }
.hero__sub { display: block; margin-top: 4px; font-size: 13px; }
.hero__slide--text { padding: 72px var(--gutter); text-align: center; }
.hero__slide--text .hero__title { font-size: 22px; }
.hero__dots { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; justify-content: center; gap: 8px; }
.hero__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.5); cursor: pointer; }
.hero__dots button[aria-selected="true"] { background: #fff; }

/* ---------- category tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; max-width: var(--max); margin: 32px auto 0; padding: 0 var(--gutter); }
.tile { position: relative; display: block; background: var(--paper-2); aspect-ratio: 1; overflow: hidden; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; background: linear-gradient(transparent, rgba(0,0,0,.45)); color: #fff; font-weight: 500; letter-spacing: .08em; }

/* ---------- shelves + product grid ---------- */
.shelf { max-width: var(--max); margin: 48px auto 0; padding: 0 var(--gutter); }
.shelf__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.shelf__head h2 { font-size: 17px; letter-spacing: .08em; }
.shelf__head a { font-size: 12px; color: var(--ink-2); border-bottom: 1px solid currentColor; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
.card a { display: block; }
.card__img { display: block; background: var(--paper-2); aspect-ratio: 3 / 4; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 12px; line-height: 1.6; }
.price { display: block; margin-top: 2px; font: 500 13px/1.5 var(--font-latin); }
.price del { color: var(--ink-3); font-weight: 400; }
.price ins { text-decoration: none; color: var(--accent); }
.price .off { font-style: normal; font-size: 11px; color: var(--accent); }

/* ---------- listing page ---------- */
.page-head { padding: 32px 0 16px; }
.page-head__kicker { margin: 0; font: 500 11px/1 var(--font-latin); letter-spacing: .2em; color: var(--ink-3); }
.page-head h1 { margin-top: 8px; font-size: 22px; letter-spacing: .06em; }
.chips ul { list-style: none; margin: 0 calc(-1 * var(--gutter)) 16px; padding: 0 var(--gutter); display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips a { display: block; white-space: nowrap; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 12px; color: var(--ink-2); }
.toolbar p, .toolbar form { margin: 0; }
.toolbar select { height: 36px; border: 1px solid var(--line); background: var(--paper); padding: 0 8px; font-size: 13px; }
.woocommerce-pagination ul, .nav-links { display: flex; justify-content: center; gap: 4px; list-style: none; margin: 40px 0 0; padding: 0; }
.woocommerce-pagination a, .woocommerce-pagination span, .nav-links a, .nav-links span {
  display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; border: 1px solid var(--line); font: 500 13px var(--font-latin);
}
.woocommerce-pagination .current, .nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- product page ---------- */
.product { display: grid; gap: 24px; padding-top: 16px; }
.product__main { margin: 0 calc(-1 * var(--gutter)); background: var(--paper-2); }
.product__main img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }

.product__imgnote { margin: 8px 0 0; font-size: 11px; color: var(--ink-3); }
.product__thumbs { list-style: none; display: flex; gap: 8px; margin: 8px 0 0; padding: 0; overflow-x: auto; }
.product__thumbs button { width: 64px; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; }
.product__cat { margin: 0; font-size: 12px; color: var(--ink-3); }
.product__title { font-size: 19px; margin-top: 4px; }
.product__price { margin: 12px 0 20px; }
.product__price .price { display: inline; font-size: 20px; }
.product__price small { color: var(--ink-3); font-size: 11px; }
.product__lead { color: var(--ink-2); }
.product__buy form.cart { margin: 0; }
.product__buy table.variations { width: 100%; border: 0; margin: 0 0 12px; border-collapse: collapse; }
.product__buy table.variations th, .product__buy table.variations td { display: block; padding: 0; text-align: left; border: 0; }
.product__buy table.variations label { font-size: 12px; color: var(--ink-2); font-weight: 400; }
.product__buy table.variations select { width: 100%; height: 48px; margin: 4px 0 12px; padding: 0 12px; border: 1px solid var(--line); border-radius: 0; background: var(--paper); font-size: 16px; }
.product__buy .reset_variations { font-size: 12px; color: var(--ink-3); }
.product__buy .woocommerce-variation-price { display: none; }
.product__buy .quantity { display: none; }
.product__buy .single_add_to_cart_button { width: 100%; }
.product__perks { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.product__perks li::before { content: "— "; color: var(--ink-3); }
.product__section { margin-top: 24px; border-top: 1px solid var(--line); }
.product__section:last-of-type { border-bottom: 1px solid var(--line); }
.product__section summary { padding: 16px 0; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.product__section summary::after { content: "+"; font-family: var(--font-latin); }
.product__section[open] summary::after { content: "−"; }
.product__desc .lead { display: none; }   /* shown in the buy box already */
.product__desc { padding-bottom: 24px; font-size: 13px; overflow-x: auto; }
.product__desc table { border-collapse: collapse; margin: 8px 0 16px; font-size: 12px; white-space: nowrap; }
.product__desc th, .product__desc td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; font-weight: 400; }
.product__desc th { background: var(--paper-2); }
.product__desc img { margin: 8px 0; }
.notes { padding-bottom: 24px; font-size: 13px; color: var(--ink-2); }
.notes h3 { margin: 8px 0 4px; font-size: 13px; color: var(--ink); }
.notes ul { margin: 0 0 12px; padding-left: 1.2em; }
.notes a, .entry__body a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- WooCommerce notices, cart ---------- */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 16px 0; padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--ink); font-size: 13px; }
.woocommerce-error { border-color: var(--accent); }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { display: none; }
.woocommerce-message .button { min-height: 36px; margin-left: 8px; padding: 0 12px; font-size: 12px; float: right; }

/* ---------- checkout closed ---------- */
.soon { text-align: center; padding: 16px 0 24px; }
.soon__badge { display: inline-block; margin: 0 0 12px; padding: 4px 12px; border: 1px solid var(--ink); font: 500 11px/1.6 var(--font-latin); letter-spacing: .2em; }
.soon h2 { font-size: 19px; margin-bottom: 8px; }
.soon p { color: var(--ink-2); }
.soon__summary { width: 100%; margin: 24px 0; border-collapse: collapse; text-align: left; font-size: 13px; }
.soon__summary caption { text-align: left; font-weight: 500; padding-bottom: 8px; }
.soon__summary th, .soon__summary td { padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.soon__summary td { text-align: right; white-space: nowrap; }
.soon__summary tfoot th, .soon__summary tfoot td { font-weight: 500; }
.soon__actions { display: grid; gap: 8px; }

/* ---------- blog + pages ---------- */
.post-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
.post-grid--list { grid-template-columns: 1fr; gap: 0; }
.post-card a { display: block; }
.post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.post-card time { display: block; margin-top: 8px; font: 400 11px var(--font-latin); color: var(--ink-3); letter-spacing: .08em; }
.post-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; font-weight: 500; }
.post-grid--list .post-card { border-bottom: 1px solid var(--line); }
.post-grid--list .post-card a { display: grid; grid-template-columns: 112px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; padding: 16px 0; }
.post-grid--list .post-card__img { grid-row: span 2; aspect-ratio: 1; }
.post-grid--list .post-card time { margin: 0; }

.entry { max-width: var(--read); margin: 0 auto; padding: 32px var(--gutter) 0; }
.entry__head { margin-bottom: 24px; }
.entry__cat { display: inline-block; font-size: 11px; color: var(--ink-3); letter-spacing: .08em; }
.entry__head h1 { font-size: 21px; letter-spacing: .04em; margin: 6px 0 8px; }
.entry__head time { font: 400 12px var(--font-latin); color: var(--ink-3); }
.entry__hero { margin: 0 calc(-1 * var(--gutter)) 24px; }
.entry__hero img { width: 100%; }
.entry__body { font-size: 15px; line-height: 1.95; overflow-wrap: anywhere; }
.entry__body > * + * { margin-top: 1.2em; }
.entry__body p { margin: 0; }
.entry__body h2 { margin-top: 2.2em; padding: 0 0 8px; border-bottom: 1px solid var(--ink); font-size: 18px; }
.entry__body h3 { margin-top: 1.8em; padding-left: 10px; border-left: 3px solid var(--ink); font-size: 16px; }
.entry__body ul, .entry__body ol { padding-left: 1.4em; }
.entry__body img { margin: 0 auto; }
.entry__body figure { margin: 1.6em 0; }
.entry__body figcaption { margin-top: 6px; font-size: 12px; color: var(--ink-3); text-align: center; }
.entry__body blockquote { margin: 1.6em 0; padding: 12px 16px; background: var(--paper-2); border-left: 3px solid var(--line); }
.entry__body table { width: 100%; border-collapse: collapse; font-size: 13px; display: block; overflow-x: auto; }
.entry__body th, .entry__body td { padding: 8px 10px; border: 1px solid var(--line); text-align: left; }
.entry__body th { background: var(--paper-2); font-weight: 500; }
.entry__body .wp-block-button__link { display: inline-block; padding: 12px 24px; background: var(--ink); color: #fff; text-decoration: none; }
.entry__body .aligncenter { margin-left: auto; margin-right: auto; }
.entry--page .entry__head h1 { font-size: 22px; }
.entry__nav { display: grid; gap: 8px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.entry__nav .next { text-align: right; }

/* ---------- forms in page content (Contact Form 7 etc.) ---------- */
.entry__body input[type=text], .entry__body input[type=email], .entry__body input[type=tel],
.entry__body input[type=url], .entry__body input[type=number], .entry__body select, .entry__body textarea {
  width: 100%; max-width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper); font-size: 16px;   /* 16px stops iOS zooming into the field */
}
.entry__body textarea { min-height: 160px; resize: vertical; }
.entry__body input:focus, .entry__body select:focus, .entry__body textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.entry__body label { display: block; font-size: 13px; }
.entry__body input[type=submit], .entry__body button[type=submit] {
  min-height: 48px; padding: 0 32px; background: var(--ink); color: #fff; border: 0; border-radius: 0; font-weight: 500; letter-spacing: .08em; cursor: pointer;
}
.wpcf7 form > p, .wpcf7 form > div > p { margin: 0 0 20px; }   /* CF7 wraps each field in a <p> */
.entry__body .html-sitemap ul { margin: 0 0 8px; }
.entry__body .html-sitemap h3 { margin-top: 1.2em; }
.wpcf7-not-valid-tip { font-size: 12px; color: var(--accent); }
.wpcf7-response-output { margin: 16px 0 0 !important; padding: 10px 12px !important; font-size: 13px; }

/* ---------- footer ---------- */
.site-foot { margin-top: 72px; background: var(--ink); color: #d9d6cf; }
.site-foot__inner { max-width: var(--max); margin: 0 auto; padding: 40px var(--gutter) 32px; }
.site-foot__logo { width: 130px; }
.site-foot__nav ul { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 10px; font-size: 13px; }
.site-foot__copy { margin: 0; font: 400 11px var(--font-latin); color: var(--ink-3); letter-spacing: .08em; }

/* ======================================================= ≥ 768px */
@media (min-width: 768px) {
  :root { --gutter: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .post-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .post-grid--list { grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
  .post-grid--list .post-card { border: 0; }
  .post-grid--list .post-card a { display: block; padding: 0; }
  .post-grid--list .post-card__img { aspect-ratio: 16 / 10; }
  .post-grid--list .post-card time { margin-top: 8px; }
  .tiles { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .hero__slide img { aspect-ratio: 16 / 7; }
  .hero__text { left: 8%; bottom: 20%; right: auto; }
  .hero__title { font-size: 34px; }
  .hero__sub { font-size: 15px; }
  .product { grid-template-columns: 1.1fr 1fr; gap: 48px; }
  .product__main { margin: 0; }
  .product__buy { position: sticky; top: 140px; align-self: start; }
  .soon { padding-top: 32px; }
  .soon__actions { display: flex; justify-content: center; }
  .entry__hero { margin: 0 0 32px; }
  .entry__head h1 { font-size: 26px; }
  .entry__nav { grid-template-columns: 1fr 1fr; }
  .site-foot__nav ul { grid-auto-flow: column; justify-content: start; gap: 24px; }
}

/* ======================================================= ≥ 1024px: menu leaves the drawer */
@media (min-width: 1024px) {
  .site-head__row { height: 72px; padding: 0 var(--gutter); }
  .logo img { width: 168px; }
  .menu-toggle { visibility: hidden; }
  .site-head__tools .account-link { display: inline-grid; }
  .shop-nav .account-item { display: none; }
  .shop-nav, .shop-nav.is-open { display: block; }
  .shop-nav ul { display: flex; justify-content: center; gap: 36px; }
  .shop-nav a { padding: 12px 0 14px; border: 0; font-size: 13px; }
  .grid { grid-template-columns: repeat(4, 1fr); }
  .shelf { margin-top: 72px; }
  .shelf__head h2 { font-size: 20px; }
}
