/*
Theme Name: 猫とコーヒーと。
Theme URI: https://zakka.miyoshi-ya.com/
Author: 合同会社みよし屋
Author URI: https://miyoshi-ya.com/
Description: 雑貨店「猫とコーヒーと。」専用テーマ。やわらかな曲線とカフェ風の温もりで、動物モチーフの食品雑貨を魅力的に紹介します。
Version: 1.3.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: miyoshiya-zakka
*/

/* ===================================================
   01. RESET & ROOT
   =================================================== */
*, *::before, *::after { box-sizing: border-box; }

:root {
  /* Colors - Cafe Palette */
  --color-cream: #FBF6EE;
  --color-milk: #F4EADB;
  --color-latte: #D4B896;
  --color-latte-light: #E5D4B7;
  --color-coffee: #8B6F47;
  --color-coffee-dark: #6B5535;
  --color-espresso: #3E2C1C;
  --color-terracotta: #C97B5C;
  --color-terracotta-dark: #A85F42;
  --color-sage: #A4B59A;
  --color-white: #FFFFFF;
  --color-paper: #FFFCF8;
  --color-text: #4A3A28;
  --color-text-soft: #6A5A45;
  --color-border: #E8DFD0;

  /* Typography */
  --font-heading: "Noto Serif JP", "Playfair Display", "Hiragino Mincho ProN", serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", -apple-system, sans-serif;
  --font-accent: "Caveat", "Klee One", cursive;
  --font-display: "Playfair Display", "Noto Serif JP", serif;

  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  --space-3xl: 7rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  --radius-pill: 999px;
  --radius-blob: 60% 40% 55% 45% / 50% 60% 40% 50%;

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(74, 58, 40, 0.06);
  --shadow-md: 0 6px 24px rgba(74, 58, 40, 0.08);
  --shadow-lg: 0 16px 48px rgba(74, 58, 40, 0.12);

  /* Transition */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-text);
  background-color: var(--color-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-coffee);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--color-terracotta); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-espresso);
  margin: 0 0 var(--space-md);
}

p { margin: 0 0 var(--space-md); }

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* === Global focus ring (accessibility) === */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-terracotta);
  outline-offset: 3px;
  border-radius: inherit;
}
.btn:focus-visible,
.product-detail__thumb:focus-visible,
.pagination .page-numbers:focus-visible,
.filter-nav__item:focus-visible {
  outline-offset: 4px;
}

/* ===================================================
   02. LAYOUT
   =================================================== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: 820px;
}

.section {
  padding: var(--space-2xl) 0;
}

.section--cream { background: var(--color-cream); }
.section--milk { background: var(--color-milk); }
.section--paper { background: var(--color-paper); }

/* ===================================================
   03. DECORATIVE
   =================================================== */
.divider-wave {
  display: block;
  width: 100%;
  height: 60px;
  fill: var(--color-cream);
}

.blob {
  position: absolute;
  border-radius: var(--radius-blob);
  background: var(--color-latte-light);
  opacity: 0.4;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.cat-silhouette {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

/* ===================================================
   Decorative SVG Animations (cats, paws, cups)
   =================================================== */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
}

.deco--paw {
  width: 28px;
  height: 28px;
  color: var(--color-coffee);
  opacity: 0;
  animation: paw-fade 6s ease-in-out infinite;
}

@keyframes paw-fade {
  0%, 100% { opacity: 0; transform: rotate(0deg) scale(0.8); }
  20%, 80% { opacity: 0.18; transform: rotate(var(--paw-rotate, 12deg)) scale(1); }
}

.deco--paw-1 { top: 18%; left: 8%;  --paw-rotate: -18deg; animation-delay: 0s; }
.deco--paw-2 { top: 65%; left: 14%; --paw-rotate: 22deg;  animation-delay: 1.5s; }
.deco--paw-3 { top: 30%; right: 10%; --paw-rotate: -8deg; animation-delay: 3s; }
/* Story section: 3 paw prints arranged like walking footprints */
.story__trail {
  position: absolute;
  width: 30px;
  height: 30px;
  color: var(--color-coffee);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  animation: paw-step 5s ease-in-out infinite;
}

/* Diagonal trail from bottom-left to top-right (like a cat walked through) */
.story__trail--1 {
  bottom: 22%;
  left: 8%;
  transform: rotate(-12deg);
  animation-delay: 0s;
}
.story__trail--2 {
  bottom: 38%;
  left: 18%;
  transform: rotate(18deg);
  animation-delay: 0.5s;
}
.story__trail--3 {
  bottom: 54%;
  left: 28%;
  transform: rotate(-8deg);
  animation-delay: 1s;
}

@keyframes paw-step {
  0%       { opacity: 0; }
  10%      { opacity: 0.22; }
  70%      { opacity: 0.22; }
  100%     { opacity: 0; }
}

/* Cat drinking coffee, anchored to hero bottom-right */
.hero__cat-coffee {
  position: absolute;
  width: 180px;
  height: auto;
  aspect-ratio: 160 / 130;
  right: 6%;
  bottom: 70px;
  color: var(--color-espresso);
  opacity: 0.7;
  z-index: 2;
  animation: cat-coffee-bob 5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes cat-coffee-bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-4px) rotate(1deg); }
}

.deco--heart {
  width: 24px;
  height: 24px;
  color: var(--color-terracotta);
  bottom: 30%;
  left: 12%;
  opacity: 0.4;
  animation: heart-beat 3s ease-in-out infinite;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-12px) rotate(3deg); }
}

@keyframes heart-beat {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50%      { transform: scale(1.15); opacity: 0.7; }
}

/* Walking cat at hero bottom */
.hero__cat-track {
  position: absolute;
  bottom: 14px;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  height: 60px;
  overflow: hidden;
}

/* Walker handles horizontal travel + facing direction */
.hero__cat-walker {
  position: absolute;
  bottom: 0;
  width: 80px;
  animation: cat-walk 22s linear infinite;
}

/* Cat itself bobs up/down to simulate walking */
.hero__cat {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 120 / 60;
  color: var(--color-espresso);
  opacity: 0.45;
  animation: cat-step 0.55s ease-in-out infinite;
  transform-origin: center bottom;
}

/* SVG cat originally faces left (head at x=20). Default scaleX(-1) makes it face right. */
@keyframes cat-walk {
  0%   { transform: translateX(-100px) scaleX(-1); }
  48%  { transform: translateX(calc(100vw - 80px)) scaleX(-1); }
  50%  { transform: translateX(calc(100vw - 80px)) scaleX(1); }
  98%  { transform: translateX(-100px) scaleX(1); }
  100% { transform: translateX(-100px) scaleX(-1); }
}

/* Subtle bounce + tilt to feel like steps */
@keyframes cat-step {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25%      { transform: translateY(-3px) rotate(-1.5deg); }
  50%      { transform: translateY(0) rotate(0deg); }
  75%      { transform: translateY(-3px) rotate(1.5deg); }
}

/* Sitting cat in the story section */
.story__cat {
  position: absolute;
  width: 90px;
  height: auto;
  aspect-ratio: 100 / 120;
  color: var(--color-coffee);
  bottom: 0;
  right: 5%;
  opacity: 0.5;
  z-index: 1;
  animation: cat-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes cat-sway {
  0%, 100% { transform: rotate(-2deg); }
  50%      { transform: rotate(2deg); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .deco, .hero__cat, .hero__cat-walker, .story__cat, .hero__cat-coffee, .story__trail {
    animation: none !important;
  }
  .deco--paw, .story__trail { opacity: 0.18; }
}

/* On mobile, scale down the cat-coffee illustration so it doesn't crowd text */
@media (max-width: 767px) {
  .hero__cat-coffee {
    width: 110px;
    right: 4%;
    bottom: 60px;
    opacity: 0.5;
  }
  .deco--paw-3 { display: none; }
  .deco--heart { display: none; }
}

/* ===================================================
   04. HEADER
   =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-cream);
  /* backdrop-filter intentionally omitted — it creates a containing block
     for fixed-position descendants, which prevented the mobile .nav-main
     panel from covering the full viewport. */
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) 0;
}

.site-logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-espresso);
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.site-logo:hover { color: var(--color-coffee); }

.site-logo__icon {
  width: 32px;
  height: 32px;
  display: inline-block;
}

.site-logo__period {
  color: var(--color-terracotta);
}

.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 101;   /* stays clickable above the open .nav-main (z:90) */
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-espresso);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-main {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;                              /* below the sticky header (100) so the close button stays clickable */
  background: var(--color-cream);
  padding: 90px var(--space-md) var(--space-xl);  /* top padding clears the header */
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  visibility: hidden;                        /* off-screen menus shouldn't trap focus */
}

.nav-main.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block;                            /* prevent any flex/grid layout from collapsing items */
}

.nav-main li {
  border-bottom: 1px solid var(--color-border);
  display: block;
  width: 100%;
}

.nav-main a {
  display: block;
  width: 100%;
  padding: var(--space-md) 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-espresso);
  white-space: nowrap;   /* don't break menu labels mid-character */
}

/* ===================================================
   05. HERO
   =================================================== */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-3xl);
  background: linear-gradient(
    160deg,
    var(--color-cream) 0%,
    var(--color-milk) 60%,
    #EFE3CE 100%
  );
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.2rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.06em;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-md);
  line-height: 1.3;
}

.hero__title .accent {
  color: var(--color-terracotta);
}

.hero__title-line {
  display: block;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .hero__lead-br { display: none; }
}

.hero__lead {
  font-size: 1rem;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto var(--space-lg);
  line-height: 2;
}

.hero__blob {
  position: absolute;
  inset: auto;
  z-index: 1;
}

.hero__blob--1 {
  top: -50px;
  left: -80px;
  width: 280px;
  height: 280px;
  background: var(--color-latte-light);
}

.hero__blob--2 {
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: #E9CFB5;
}

/* ===================================================
   06. BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.85em 2em;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  border-radius: var(--radius-pill);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-paper);
}
.btn--primary:hover {
  background: var(--color-terracotta-dark);
  color: var(--color-paper);
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--color-coffee);
  border: 1.5px solid var(--color-coffee);
}
.btn--ghost:hover {
  background: var(--color-coffee);
  color: var(--color-paper);
}

.btn--text {
  background: transparent;
  color: var(--color-coffee);
  padding: 0.5em 0;
}
.btn--text::after {
  content: "→";
  margin-left: 0.4em;
  transition: transform var(--transition);
}
.btn--text:hover::after { transform: translateX(4px); }

/* ===================================================
   07. SECTION HEADER
   =================================================== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header__sub {
  display: block;
  font-family: var(--font-accent);
  font-size: 1.3rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}

.section-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: 0.04em;
  margin: 0;
}

.section-header__lead {
  margin-top: var(--space-md);
  color: var(--color-text-soft);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===================================================
   08. CATEGORY CARDS
   =================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xs);
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
}

.category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-xs);
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  text-align: center;
  aspect-ratio: 1 / 1;
  transition:
    transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow var(--transition),
    border-radius 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  isolation: isolate;
}

/* Each card gets a distinctive blob shape */
.category-card--blob-1 { border-radius: 62% 38% 56% 44% / 50% 60% 40% 50%; }
.category-card--blob-2 { border-radius: 45% 55% 35% 65% / 60% 40% 60% 40%; }
.category-card--blob-3 { border-radius: 50% 50% 60% 40% / 40% 55% 45% 60%; }

/* Soft watercolor wash inside */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 20%,
    var(--color-milk) 0%,
    transparent 50%
  ),
  radial-gradient(
    circle at 70% 80%,
    var(--color-latte-light) 0%,
    transparent 60%
  );
  opacity: 0.5;
  z-index: -1;
  transition: opacity 0.4s ease, transform 0.6s ease;
}

.category-card:hover {
  transform: translateY(-6px) rotate(-1deg);
  box-shadow: var(--shadow-lg);
}

.category-card--blob-1:hover { border-radius: 50% 50% 65% 35% / 60% 50% 50% 40%; }
.category-card--blob-2:hover { border-radius: 60% 40% 50% 50% / 45% 60% 40% 55%; }
.category-card--blob-3:hover { border-radius: 38% 62% 50% 50% / 55% 40% 60% 45%; }

.category-card:hover::before {
  opacity: 0.8;
  transform: scale(1.1) rotate(8deg);
}

.category-card__icon {
  width: clamp(40px, 9vw, 64px);
  height: clamp(40px, 9vw, 64px);
  margin-bottom: var(--space-xs);
  display: block;
  color: var(--color-coffee);
  transition: transform 0.4s ease;
}

.category-card:hover .category-card__icon {
  transform: scale(1.12) rotate(-6deg);
}

.category-card__title {
  font-family: var(--font-heading);
  font-size: clamp(0.7rem, 2.4vw, 1.15rem);
  margin: 0 0 2px;
  color: var(--color-espresso);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.category-card__count {
  font-family: var(--font-accent);
  color: var(--color-terracotta);
  font-size: clamp(0.7rem, 2vw, 1rem);
}


.category-card__paw {
  position: absolute;
  width: clamp(18px, 5vw, 32px);
  height: clamp(18px, 5vw, 32px);
  color: var(--color-coffee);
  opacity: 0.12;
  bottom: 12%;
  right: 14%;
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: rotate(18deg);
}

.category-card:hover .category-card__paw {
  opacity: 0.3;
  transform: rotate(28deg) scale(1.15);
}

/* ===================================================
   09. PRODUCT GRID
   =================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.product-card {
  background: var(--color-paper);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.product-card__thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-milk);
  position: relative;
}

.product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-card__thumb img {
  transform: scale(1.06);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-milk), var(--color-latte-light));
  font-size: 2.5rem;
  opacity: 0.5;
}

.product-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__brand {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-xxs);
}

.product-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-espresso);
  margin: 0 0 var(--space-sm);
  line-height: 1.5;
  flex: 1;
}

.product-card__price {
  display: flex;
  align-items: baseline;
  gap: 0.4em;
  margin-top: auto;
}

.product-card__price-tax-incl {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-coffee-dark);
}

.product-card__price-tax-excl {
  font-size: 0.75rem;
  color: var(--color-text-soft);
}

.product-card__badges {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 0.2em 0.7em;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-coffee-dark);
  border: 1px solid var(--color-border);
}

.badge--seasonal { background: var(--color-sage); color: var(--color-espresso); border-color: var(--color-sage); }
.badge--limited { background: var(--color-terracotta); color: var(--color-paper); border-color: var(--color-terracotta); }
.badge--decaf { background: var(--color-coffee); color: var(--color-paper); border-color: var(--color-coffee); }
.badge--coming-soon { background: var(--color-latte); color: var(--color-espresso); border-color: var(--color-latte); }

/* ===================================================
   10. ABOUT / STORY
   =================================================== */
.story {
  position: relative;
  padding: var(--space-2xl) 0;
  background: var(--color-milk);
  overflow: hidden;
}

.story__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.story__lead {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  line-height: 2;
  color: var(--color-espresso);
  margin-bottom: var(--space-md);
}

.story__body {
  color: var(--color-text-soft);
  line-height: 2;
}

.story__cta {
  margin-top: var(--space-lg);
  text-align: center;
}

.story::before,
.story::after {
  content: "";
  position: absolute;
  border-radius: var(--radius-blob);
  background: var(--color-latte-light);
  opacity: 0.5;
  filter: blur(60px);
  z-index: 1;
}
.story::before {
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
}
.story::after {
  bottom: -100px;
  right: -100px;
  width: 280px;
  height: 280px;
}

/* ===================================================
   11. STORE INFO
   =================================================== */
.store-info {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.store-info__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  text-align: center;
}

.store-info__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.store-info__list > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  padding: var(--space-sm) 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.95rem;
}

.store-info__list > div:last-child {
  border-bottom: none;
}

.store-info__list dt,
.store-info__list .label {
  font-family: var(--font-heading);
  color: var(--color-coffee);
  font-weight: 500;
}

/* ===================================================
   12. PAGE HEADER
   =================================================== */
.page-header {
  background: linear-gradient(160deg, var(--color-cream) 0%, var(--color-milk) 100%);
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header__sub {
  display: block;
  font-family: var(--font-accent);
  color: var(--color-terracotta);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.page-header__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: 0.04em;
}

/* ===================================================
   13. SINGLE PRODUCT
   =================================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.product-detail__gallery {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.product-detail__images {
  background: var(--color-paper);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 1 / 1;
  position: relative;
}

.product-detail__thumbs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: var(--space-xs);
}

.product-detail__thumb {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--color-paper);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1;
  transition: border-color var(--transition), transform var(--transition);
}

.product-detail__thumb:hover {
  border-color: var(--color-latte);
  transform: translateY(-2px);
}

.product-detail__thumb.is-active {
  border-color: var(--color-terracotta);
}

.product-detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__images img.is-fading {
  opacity: 0;
}
.product-detail__images img {
  transition: opacity 0.2s ease;
}

.product-detail__image {
  position: absolute;
  inset: 0;
  background: var(--color-milk);
  display: block;
}

.product-detail__image img,
.product-detail__images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail__image .product-card__placeholder {
  width: 100%;
  height: 100%;
}

.product-detail__brand {
  font-family: var(--font-accent);
  color: var(--color-terracotta);
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.product-detail__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.product-detail__price {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  margin-bottom: var(--space-md);
}

.product-detail__price-incl {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-espresso);
}

.product-detail__price-excl {
  font-size: 0.9rem;
  color: var(--color-text-soft);
}

.product-detail__description {
  line-height: 2;
  color: var(--color-text);
}

.product-detail__notice {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-milk);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  color: var(--color-text-soft);
  border-left: 3px solid var(--color-terracotta);
}

/* ===================================================
   14. FOOTER
   =================================================== */
.site-footer {
  background: var(--color-espresso);
  color: var(--color-cream);
  padding: var(--space-2xl) 0 var(--space-lg);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  text-align: center;
}

.footer-brand__name {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--color-paper);
  margin-bottom: var(--space-sm);
}

.footer-brand__name .accent {
  color: var(--color-terracotta);
}

.footer-brand__desc {
  font-size: 0.85rem;
  color: rgba(251, 246, 238, 0.7);
  line-height: 1.9;
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--color-latte);
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  padding: var(--space-xxs) 0;
}

.footer-section a {
  color: rgba(251, 246, 238, 0.85);
  font-size: 0.88rem;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: var(--color-terracotta);
}

.footer-bottom {
  border-top: 1px solid rgba(212, 184, 150, 0.2);
  padding-top: var(--space-md);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(251, 246, 238, 0.5);
}

.footer-bottom a {
  color: rgba(251, 246, 238, 0.7);
}

/* ===================================================
   15. PAGINATION
   =================================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin: var(--space-xl) 0;
  flex-wrap: wrap;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-pill);
  background: var(--color-paper);
  color: var(--color-coffee);
  border: 1px solid var(--color-border);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  transition: all var(--transition);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--color-terracotta);
  color: var(--color-paper);
  border-color: var(--color-terracotta);
}

/* ===================================================
   16. CONTENT (page / post)
   =================================================== */
.entry-content {
  line-height: 2;
  color: var(--color-text);
}

.entry-content h2 {
  font-size: 1.4rem;
  margin: var(--space-xl) 0 var(--space-md);
  padding-left: var(--space-md);
  border-left: 4px solid var(--color-terracotta);
}

.entry-content h3 {
  font-size: 1.2rem;
  margin: var(--space-lg) 0 var(--space-sm);
}

.entry-content ul, .entry-content ol {
  padding-left: 1.5em;
  margin-bottom: var(--space-md);
}

.entry-content li { padding: 0.2em 0; }

.entry-content a { text-decoration: underline; text-underline-offset: 2px; }

/* ===================================================
   16b. UTILITY CLASSES (replaces inline styles)
   =================================================== */
.section--top-tight { padding-top: var(--space-lg); }
.section__cta { text-align: center; margin-top: var(--space-xl); }

.page-header--compact { padding-bottom: var(--space-md); }
.page-header__desc {
  margin-top: var(--space-md);
  color: var(--color-text-soft);
}

.section-header__title--tight { margin-bottom: var(--space-md); }

/* Force-single-line title (shrinks font on narrow screens to avoid wrap) */
.section-header__title--nowrap {
  white-space: nowrap;
  font-size: clamp(1rem, 3.8vw, 2rem);
  letter-spacing: 0.02em;
}

.empty-message {
  text-align: center;
  color: var(--color-text-soft);
  padding: var(--space-xl) 0;
}

/* Filter nav (archive) */
.filter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  justify-content: center;
  margin-bottom: var(--space-xl);
}
.filter-nav__item {
  display: inline-block;
  padding: 0.5em 1.2em;
  font-size: 0.85rem;
  background: var(--color-paper);
  color: var(--color-coffee-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  letter-spacing: 0.04em;
  transition: all var(--transition);
}
.filter-nav__item:hover {
  background: var(--color-terracotta);
  color: var(--color-paper);
  border-color: var(--color-terracotta);
}

/* Single product detail */
.product-detail__stock { margin-bottom: var(--space-sm); }
.product-detail__price-empty { color: var(--color-text-soft); }
.product-detail__actions {
  margin-top: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Related section */
.related-section { margin-top: var(--space-2xl); }

/* Store info CTA */
.store-info__cta {
  text-align: center;
  margin-top: var(--space-lg);
}

/* Single post (blog) */
.entry-thumbnail {
  margin-bottom: var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.entry-back {
  margin-top: var(--space-2xl);
  text-align: center;
}

/* Post list (blog index) */
.post-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.post-card {
  background: var(--color-paper);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}
.post-card__date {
  font-family: var(--font-accent);
  color: var(--color-terracotta);
  margin-bottom: var(--space-xs);
}
.post-card__title {
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}
.post-card__title a { color: var(--color-espresso); }
.post-card__excerpt {
  color: var(--color-text-soft);
  margin-bottom: var(--space-sm);
}

/* 404 */
.error-404 { padding: var(--space-3xl) 0; }
.error-404__inner { text-align: center; }
.error-404__code {
  font-family: var(--font-accent);
  font-size: 4rem;
  color: var(--color-terracotta);
  margin-bottom: var(--space-md);
  line-height: 1;
}
.error-404__title { margin-bottom: var(--space-md); }
.error-404__lead {
  color: var(--color-text-soft);
  margin-bottom: var(--space-lg);
}

/* Body when nav is open (mobile) */
body.is-nav-open { overflow: hidden; }

/* ===================================================
   16c. PAGE-SPECIFIC: About / Access
   =================================================== */

/* About — intro */
.about-intro { position: relative; }
.deco--paw-about-1 { top: 14%; left: 6%;  width: 32px; height: 32px; --paw-rotate: -16deg; animation-delay: 0s; }
.deco--paw-about-2 { bottom: 18%; right: 8%; width: 32px; height: 32px; --paw-rotate: 14deg;  animation-delay: 1.8s; }

.about-intro__body {
  font-size: 1.02rem;
  line-height: 2;
  text-align: center;
}

/* About — brand cards */
.brand-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.brand-card {
  background: var(--color-paper);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  position: relative;
}

.brand-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-sm);
  color: var(--color-coffee);
  display: block;
}

.brand-card__name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin-bottom: var(--space-xs);
  color: var(--color-espresso);
  letter-spacing: 0.04em;
}

.brand-card__lead {
  font-family: var(--font-accent);
  color: var(--color-terracotta);
  font-size: 1.15rem;
  margin-bottom: var(--space-md);
}

.brand-card__body {
  color: var(--color-text);
  line-height: 2;
  margin: 0;
}

/* About — parent */
.about-parent {
  position: relative;
  overflow: hidden;
}

.about-parent__inner {
  position: relative;
  text-align: center;
  z-index: 2;
}

.about-parent__cat {
  position: absolute;
  width: 90px;
  height: auto;
  aspect-ratio: 100 / 120;
  color: var(--color-coffee);
  bottom: -10px;
  right: 5%;
  opacity: 0.18;
  z-index: -1;
  transform: rotate(-6deg);
}

.about-parent__lead {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  line-height: 2;
  color: var(--color-espresso);
  margin-bottom: var(--space-md);
}

.about-parent__body {
  color: var(--color-text-soft);
  line-height: 2;
  margin-bottom: var(--space-lg);
}

/* Reusable CTA block */
.cta-block__inner { text-align: center; }
.cta-block__title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  margin-bottom: var(--space-md);
  letter-spacing: 0.04em;
}
.cta-block__lead {
  color: var(--color-text-soft);
  margin-bottom: var(--space-lg);
}
.cta-block__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

/* Access — Map */
.access-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  background: var(--color-paper);
  line-height: 0;
}
.access-map iframe {
  display: block;
  width: 100% !important;
  height: 420px !important;
  border: 0 !important;
}

/* Access — quick info cards */
.access-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.access-card {
  background: var(--color-paper);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  text-align: center;
}

.access-card__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-sm);
  color: var(--color-coffee);
  display: block;
}

.access-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--color-espresso);
  letter-spacing: 0.04em;
}

.access-card p {
  color: var(--color-text-soft);
  line-height: 1.9;
  margin: 0;
  font-size: 0.95rem;
}

/* ===================================================
   17. RESPONSIVE — Tablet & Desktop
   =================================================== */
@media (min-width: 768px) {
  body { font-size: 16px; }

  .container { padding: 0 var(--space-lg); }

  .nav-toggle { display: none; }

  .nav-main {
    position: static;
    inset: auto;
    z-index: auto;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
    visibility: visible;
  }

  .nav-main ul {
    display: flex;
    align-items: center;
    gap: var(--space-md);
  }

  .nav-main li {
    border: none;
    width: auto;          /* override mobile's 100% so flex items hug their label */
    flex-shrink: 0;       /* prevent the flex container from squashing labels */
  }

  .nav-main a {
    width: auto;
    padding: 0.5em 0;
    font-size: 0.95rem;
    position: relative;
  }

  .nav-main a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1.5px;
    background: var(--color-terracotta);
    transform: scaleX(0);
    transition: transform var(--transition);
    transform-origin: center;
  }

  .nav-main a:hover::after { transform: scaleX(1); }

  .category-grid {
    gap: var(--space-lg);
  }

  .category-card {
    padding: var(--space-2xl) var(--space-lg);
  }
  .category-card__title {
    margin-bottom: var(--space-xs);
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .product-detail {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }

  .brand-list {
    grid-template-columns: 1fr 1fr;
  }

  .access-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
  }

  .footer-inner {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    text-align: left;
  }

  .footer-brand { text-align: left; }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
