/*
Theme Name: Remo Kitchenware
Theme URI: https://www.remokitchenware.com
Author: Remo Kitchenware
Description: A clean, modern catalogue-only theme for Remo Kitchenware – rice cookers and hot pots. No cart, no prices, no stock information, no checkout: just the range, by product group. Article images are always shown on pure white.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: Proprietary
Text Domain: remo-kitchenware
*/

/* ------------------------------------------------------------------
 * Fonts (self-hosted, no external requests)
 * ---------------------------------------------------------------- */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/outfit-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/outfit-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/outfit-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("assets/fonts/inter-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/inter-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/inter-500-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
 * Tokens
 * ---------------------------------------------------------------- */
:root {
	--white: #ffffff;       /* the only background used behind article images */
	--soft: #f4f5f6;
	--ink: #15171a;
	--graphite: #1e2226;
	--steel: #5d646b;
	--line: #e2e4e6;
	--chrome: linear-gradient(90deg, #8d949b 0%, #e9ebed 35%, #ffffff 50%, #c3c7cb 70%, #8d949b 100%);

	--display: "Outfit", "Helvetica Neue", Arial, sans-serif;
	--sans: "Inter", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1280px;
	--wrap-narrow: 760px;
	--gutter: clamp(20px, 4vw, 56px);
	--ease: cubic-bezier(.2, .6, .2, 1);
}

/* ------------------------------------------------------------------
 * Base
 * ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--white); color: var(--ink);
	font-family: var(--sans); font-weight: 300; font-size: 16.5px; line-height: 1.7;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: #fff; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 0; }

.container { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(var(--wrap-narrow) + var(--gutter) * 2); }

.eyebrow {
	font-family: var(--sans); font-weight: 500; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
	color: var(--steel); margin: 0 0 1.2em;
}
.eyebrow a { text-decoration: none; }
.eyebrow--light { color: rgba(255, 255, 255, .62); }

.notice { padding: 1.2em 1.4em; border: 1px solid var(--line); background: var(--white); color: var(--steel); }

.button {
	display: inline-block; font-family: var(--sans); font-weight: 500; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
	text-decoration: none; padding: 1.1em 2.2em; border: 1px solid var(--ink); background: var(--ink); color: #fff;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.button:hover { background: #fff; color: var(--ink); }
.button--light { background: transparent; border-color: rgba(255, 255, 255, .65); color: #fff; }
.button--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */
.site-header { background: var(--white); position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--chrome); }
.site-header__inner {
	max-width: var(--wrap); margin-inline: auto; padding: 14px var(--gutter);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo .logo { height: 46px; width: auto; }
.nav { display: flex; gap: clamp(18px, 3vw, 40px); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav a {
	font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .02em; text-decoration: none;
	position: relative; padding: 6px 0; color: var(--ink);
}
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--ink); transition: right .35s var(--ease); }
.nav a:hover::after { right: 0; }

.search { position: relative; }
.search summary { list-style: none; cursor: pointer; padding: 6px; display: block; line-height: 0; }
.search summary::-webkit-details-marker { display: none; }
.search__form {
	position: absolute; right: 0; top: calc(100% + 14px); width: min(360px, 86vw);
	background: var(--white); border: 1px solid var(--line); padding: 14px; box-shadow: 0 20px 40px rgba(21, 23, 26, .12);
}
.search__form input[type="search"] {
	width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: transparent; padding: 10px 2px;
	font: inherit; font-weight: 300; color: var(--ink); border-radius: 0; outline: none;
}

/* ------------------------------------------------------------------
 * Hero & product groups
 * ---------------------------------------------------------------- */
.hero { background: var(--white); padding: clamp(48px, 7vw, 100px) 0 clamp(48px, 7vw, 96px); }
.hero__text { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.hero__title { font-weight: 500; font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -.025em; margin-bottom: .45em; }
.hero__lead { max-width: 34em; font-size: 19px; color: var(--steel); margin: 0; }

.groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.group { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--white); transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }
.group:hover { border-color: var(--ink); box-shadow: 0 24px 48px -30px rgba(21, 23, 26, .45); }
.group__media { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--white); padding: 6%; overflow: hidden; }
.group__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.group:hover .group__media img { transform: scale(1.04); }
.group__body { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 24px 22px; border-top: 1px solid var(--line); }
.group__title { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.1; }
.group__cta { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }

/* ------------------------------------------------------------------
 * Sections & chapters
 * ---------------------------------------------------------------- */
.section { padding: clamp(56px, 8vw, 112px) 0; background: var(--white); }
.section--tight { padding: clamp(32px, 4.5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.section__subtitle { font-weight: 500; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 1.2em; }

.chapter { padding: clamp(48px, 6vw, 88px) 0; background: var(--white); border-top: 1px solid var(--line); }
.chapter__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); }
.chapter__title { font-size: clamp(32px, 4.2vw, 54px); }
.chapter__link { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; font-weight: 500; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.chapter__link:hover { opacity: .65; }

/* Category tiles (category pages with sub-categories) */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
.tiles--small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--white); transition: border-color .3s var(--ease); }
.tile:hover { border-color: var(--ink); }
.tile__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); overflow: hidden; padding: 8%; }
.tile__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .8s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.tile__title { font-family: var(--display); font-weight: 500; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.2; }
.tile__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); white-space: nowrap; }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: var(--white); transition: border-color .3s var(--ease), box-shadow .4s var(--ease); }
.card:hover { border-color: var(--ink); box-shadow: 0 20px 40px -28px rgba(21, 23, 26, .5); }
.card__media { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); padding: 9%; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { display: block; padding: 14px 16px 18px; border-top: 1px solid var(--line); }
.card__title { display: block; font-family: var(--display); font-weight: 500; font-size: 17px; line-height: 1.3; }
.card__meta { display: block; margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }

.placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: var(--white); }
.placeholder__mark { width: 50%; height: auto; opacity: .25; }

/* Pagination */
.navigation.pagination { margin-top: clamp(40px, 5vw, 72px); }
.nav-links { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; }
.page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0 12px; text-decoration: none; border: 1px solid transparent; font-size: 15px; }
a.page-numbers:hover { border-color: var(--line); }
.page-numbers.current { border-color: var(--ink); background: var(--ink); color: #fff; }

/* ------------------------------------------------------------------
 * Page heads & breadcrumbs
 * ---------------------------------------------------------------- */
.page-head { background: var(--white); padding: clamp(32px, 4.5vw, 64px) 0 clamp(8px, 2vw, 24px); }
.page-head__title { font-weight: 500; font-size: clamp(36px, 5vw, 68px); line-height: 1.06; letter-spacing: -.02em; }
.page-head__lead { margin-top: 1.3em; max-width: 36em; font-size: 18px; color: var(--steel); }
.page-head--story { padding-bottom: clamp(24px, 4vw, 56px); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin-bottom: 1.6em; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--steel); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { margin: 0 .8em; opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); }

/* ------------------------------------------------------------------
 * Product page
 * ---------------------------------------------------------------- */
.product { background: var(--white); padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 8vw, 110px); }
.product__layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.product__main { display: grid; place-items: center; aspect-ratio: 1 / 1; background: var(--white); padding: 6%; border: 1px solid var(--line); }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.product__thumb { display: block; width: 100%; aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); padding: 6px; cursor: pointer; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active, .product__thumb:hover { border-color: var(--ink); }
.product__info { padding-top: clamp(0px, 2vw, 24px); }
.product__title { font-weight: 500; font-size: clamp(30px, 3.8vw, 48px); line-height: 1.1; margin-bottom: .45em; }
.product__sku { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--steel); padding-bottom: 1.5em; margin-bottom: 1.7em; border-bottom: 1px solid var(--line); }
.product__short { font-size: 18px; color: var(--steel); }
.product__back { margin-top: 2.4em; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.product__back a { text-decoration: none; font-weight: 500; }
.product__back a:hover { text-decoration: underline; }

.prose p:last-child { margin-bottom: 0; }
.prose h2, .prose h3 { margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; }

/* "More from" block keeps white behind the images too */
.section--tint { background: var(--white); border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------
 * Our Story
 * ---------------------------------------------------------------- */
.story { padding: clamp(16px, 3vw, 40px) 0 clamp(56px, 8vw, 112px); }
.story__chapter { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: clamp(16px, 3vw, 40px); padding: clamp(28px, 4vw, 52px) 0; border-top: 1px solid var(--line); }
.story__chapter:last-child { border-bottom: 1px solid var(--line); }
.story__no { font-family: var(--display); font-size: 36px; font-weight: 400; line-height: 1; color: var(--steel); }
.story__chapter h2 { font-size: clamp(26px, 3vw, 38px); margin-bottom: .6em; }
.story__chapter p { color: #3b4147; }

/* ------------------------------------------------------------------
 * Dark band & footer (the logo is only ever shown on light backgrounds)
 * ---------------------------------------------------------------- */
.band { background: var(--graphite); color: #fff; text-align: center; padding: clamp(60px, 8vw, 120px) 0; }
.band__inner { max-width: 820px; margin-inline: auto; padding-inline: var(--gutter); }
.band__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.08; margin-bottom: .5em; }
.band__lead { color: rgba(255, 255, 255, .72); max-width: 34em; margin: 0 auto 2.2em; font-size: 18px; }

.site-footer { background: var(--soft); color: var(--steel); border-top: 1px solid var(--line); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer__inner { max-width: var(--wrap); margin-inline: auto; padding: clamp(40px, 5vw, 72px) var(--gutter); display: grid; grid-template-columns: 1.3fr 1.2fr 1fr; gap: clamp(28px, 5vw, 80px); }
.logo--footer { height: 56px; width: auto; margin-bottom: 18px; }
.site-footer__tagline { font-size: 16px; line-height: 1.5; max-width: 20em; }
.site-footer__col ul { list-style: none; margin: 0; padding: 0; }
.site-footer__col li { margin-bottom: .5em; }
.site-footer__bar { border-top: 1px solid var(--line); }
.site-footer__bar p { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--gutter); font-size: 13px; color: var(--steel); }

/* ------------------------------------------------------------------
 * Responsive
 * ---------------------------------------------------------------- */
@media (max-width: 1080px) {
	.tiles--small, .grid, .grid--four { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
	body { font-size: 16px; }
	.site-header__logo .logo { height: 40px; }
	.groups { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles--small, .grid, .grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product__layout { grid-template-columns: 1fr; }
	.story__chapter { grid-template-columns: 1fr; gap: 6px; }
	.site-footer__inner { grid-template-columns: 1fr; }
	.chapter__head { align-items: start; flex-direction: column; gap: 12px; }
}

@media (max-width: 640px) {
	.site-header__inner { flex-wrap: wrap; row-gap: 10px; }
	.nav { width: 100%; justify-content: space-between; gap: 8px 14px; border-top: 1px solid var(--line); padding-top: 10px; }
	.nav a { font-size: 14px; }
}

@media (max-width: 520px) {
	.tiles, .tiles--small { gap: 12px; }
	.tile__body { flex-direction: column; gap: 2px; }
	.group__body { flex-direction: column; gap: 4px; }
	.card__title { font-size: 15px; }
	.card__body { padding: 12px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}
