/*
Theme Name: Perfumes Guide Editorial AI
Theme URI: http://www.perfumes.guide/
Author: Perfumes.guide
Description: Minimal luxury archive and AI finder theme for Perfumes.guide.
Version: 1.2.1
Text Domain: perfumes-guide-theme
*/

:root {
  --pg-ink: #101412;
  --pg-ink-soft: #26302c;
  --pg-muted: #65706b;
  --pg-faint: #8b958f;
  --pg-paper: #f8faf6;
  --pg-paper-deep: #eef3ed;
  --pg-panel: #fffefa;
  --pg-line: #d9e1da;
  --pg-line-strong: #b8c5bc;
  --pg-accent: #164f45;
  --pg-accent-soft: #e3eee9;
  --pg-shadow: 0 20px 60px rgba(16, 20, 18, 0.12);
  --pg-sans: Aptos, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --pg-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pg-ink);
  background:
    linear-gradient(90deg, rgba(16, 79, 69, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 79, 69, 0.03) 1px, transparent 1px),
    var(--pg-paper);
  background-size: 64px 64px;
  font-family: var(--pg-sans);
  font-size: 16px;
  line-height: 1.62;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.admin-bar .pg-site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.pg-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(16, 20, 18, 0.1);
  background: rgba(248, 250, 246, 0.9);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

@media (min-width: 721px) {
  .pg-site-header {
    max-height: 76px;
  }
}

.pg-nav,
.pg-shell,
.pg-hero-inner,
.pg-footer-inner {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.pg-nav {
  height: 68px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.pg-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pg-ink);
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.pg-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.pg-brand-mark img {
  width: 36px;
  height: 36px;
  display: block;
}

.pg-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--pg-muted);
  font-size: 14px;
  min-width: 0;
  overflow: hidden;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.pg-nav-links a:not(.pg-button) {
  flex: 0 0 auto;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.pg-nav-links .pg-button {
  flex: 0 0 auto;
}

.pg-site-header ul,
.pg-site-header ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pg-site-header .menu,
.pg-site-header .wp-block-navigation__container {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.pg-site-header .menu-item,
.pg-site-header .wp-block-navigation-item {
  white-space: nowrap;
}

.pg-nav-links a:hover {
  color: var(--pg-ink);
  border-color: var(--pg-line-strong);
}

.pg-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--pg-ink);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--pg-ink);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.pg-button:hover {
  background: var(--pg-accent);
  border-color: var(--pg-accent);
}

.pg-button:active {
  transform: translateY(1px);
}

.pg-button.is-light,
.pg-button.is-outline {
  background: rgba(255, 254, 250, 0.86);
  color: var(--pg-ink);
  border-color: var(--pg-line);
}

.pg-button.is-light:hover,
.pg-button.is-outline:hover {
  color: #fff;
  background: var(--pg-accent);
  border-color: var(--pg-accent);
}

.pg-main {
  min-height: 70vh;
}

.pg-hero {
  min-height: min(760px, calc(100vh - 68px));
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--pg-line);
  background:
    linear-gradient(90deg, rgba(248, 250, 246, 0.98) 0%, rgba(248, 250, 246, 0.88) 45%, rgba(248, 250, 246, 0.42) 100%),
    url("https://images.unsplash.com/photo-1709551264866-4573279d4c3e?auto=format&fit=crop&w=1900&q=84");
  background-size: cover;
  background-position: 64% center;
}

.pg-hero-inner {
  padding: 64px 0 44px;
}

.pg-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.72fr);
  gap: 48px;
  align-items: end;
}

.pg-kicker,
.pg-card-kicker,
.pg-meta-label,
.pg-section-index {
  margin: 0 0 12px;
  color: var(--pg-accent);
  font-family: var(--pg-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.pg-kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.pg-hero h1,
.pg-page-title {
  max-width: 740px;
  margin: 0;
  color: var(--pg-ink);
  font-size: clamp(46px, 6vw, 76px);
  line-height: 0.96;
  font-weight: 780;
  letter-spacing: -0.02em;
}

.pg-hero-copy,
.pg-page-copy,
.pg-section-copy {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--pg-muted);
  font-size: 18px;
}

.pg-archive-card {
  position: relative;
  border: 1px solid rgba(16, 20, 18, 0.14);
  border-radius: 14px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(255, 254, 250, 0.96), rgba(248, 250, 246, 0.9)),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(22, 79, 69, 0.035) 21px);
  box-shadow: var(--pg-shadow);
  overflow: hidden;
}

.pg-archive-card::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 82px;
  height: 82px;
  border: 1px solid rgba(22, 79, 69, 0.18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 79, 69, 0.08), transparent 62%);
}

.pg-archive-card h2 {
  max-width: 320px;
  margin: 18px 0 24px;
  color: var(--pg-ink);
  font-size: 30px;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.pg-archive-card.is-compact {
  box-shadow: 0 14px 36px rgba(16, 20, 18, 0.09);
}

.pg-archive-card.is-compact h2 {
  font-size: 24px;
}

.pg-archive-top,
.pg-archive-spec {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--pg-line);
  padding-bottom: 12px;
  color: var(--pg-muted);
  font-family: var(--pg-mono);
  font-size: 11px;
}

.pg-archive-spec {
  padding: 12px 0;
}

.pg-archive-spec:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.pg-archive-top strong,
.pg-archive-spec strong {
  color: var(--pg-ink);
  text-align: right;
  font-family: var(--pg-sans);
  font-size: 13px;
  font-weight: 760;
}

.pg-finder-band {
  max-width: 1110px;
  margin-top: 34px;
  border: 1px solid rgba(16, 20, 18, 0.16);
  border-radius: 14px;
  padding: 8px;
  background: rgba(255, 254, 250, 0.74);
  box-shadow: 0 18px 48px rgba(16, 20, 18, 0.1);
  backdrop-filter: blur(18px);
}

.pg-finder-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) repeat(3, minmax(132px, 0.75fr)) auto;
  gap: 8px;
  align-items: end;
}

.pg-field {
  display: grid;
  gap: 6px;
  border: 1px solid var(--pg-line);
  border-radius: 10px;
  padding: 10px 12px 12px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--pg-muted);
  font-size: 12px;
  font-weight: 720;
}

.pg-field input,
.pg-field select,
.pg-newsletter input {
  width: 100%;
  min-height: 30px;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  color: var(--pg-ink);
  font: inherit;
  font-weight: 720;
}

.pg-field input:focus,
.pg-field select:focus,
.pg-newsletter input:focus {
  outline: 0;
}

.pg-field:focus-within {
  border-color: var(--pg-accent);
  box-shadow: 0 0 0 3px rgba(22, 79, 69, 0.12);
}

.pg-finder-form .pg-button {
  min-height: 58px;
  border-radius: 10px;
}

.pg-finder-results {
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.pg-finder-results.is-visible {
  display: grid;
}

.pg-ai-card {
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  padding: 15px;
  color: var(--pg-ink);
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 20, 18, 0.06);
}

.pg-ai-card strong,
.pg-ai-card span {
  display: block;
}

.pg-ai-card strong {
  margin-bottom: 5px;
}

.pg-ai-card span {
  color: var(--pg-muted);
  font-size: 13px;
}

.pg-section {
  padding: 76px 0;
}

.pg-section.is-soft {
  background:
    linear-gradient(180deg, rgba(238, 243, 237, 0.92), rgba(248, 250, 246, 0.94)),
    var(--pg-paper-deep);
}

.pg-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.7fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 28px;
}

.pg-section-title {
  max-width: 640px;
  margin: 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -0.018em;
}

.pg-grid {
  display: grid;
  gap: 18px;
}

.pg-grid.is-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pg-grid.is-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pg-card,
.pg-panel {
  border: 1px solid rgba(16, 20, 18, 0.13);
  border-radius: 14px;
  background: var(--pg-panel);
}

.pg-card {
  position: relative;
  min-height: 100%;
  padding: 20px;
  overflow: hidden;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.pg-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pg-accent), rgba(22, 79, 69, 0.08));
  opacity: 0.72;
}

.pg-card:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 79, 69, 0.38);
  box-shadow: 0 16px 42px rgba(16, 20, 18, 0.09);
}

.pg-card h3,
.pg-panel h2 {
  margin: 0 0 10px;
  color: var(--pg-ink);
  font-size: 23px;
  line-height: 1.12;
  font-weight: 780;
  letter-spacing: -0.01em;
}

.pg-card p {
  margin: 0;
  color: var(--pg-muted);
  font-size: 15px;
}

.pg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.pg-tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--pg-ink-soft);
  background: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 720;
}

.pg-score-row {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.pg-score-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--pg-muted);
  font-size: 13px;
  font-weight: 720;
}

.pg-score-track {
  height: 9px;
  border-radius: 999px;
  background: #e5ebe5;
  overflow: hidden;
}

.pg-score-fill {
  display: block;
  width: var(--score, 50%);
  height: 100%;
  background: linear-gradient(90deg, var(--pg-accent), #2a7568);
}

.pg-page-hero {
  padding: 70px 0 42px;
  border-bottom: 1px solid var(--pg-line);
  background:
    linear-gradient(135deg, rgba(255, 254, 250, 0.95), rgba(238, 243, 237, 0.92)),
    var(--pg-paper);
}

.pg-page-title {
  font-size: clamp(44px, 6vw, 68px);
}

.pg-record-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: end;
}

.pg-detail-layout,
.pg-guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 24px;
  align-items: start;
}

.pg-panel {
  padding: 22px;
  box-shadow: 0 10px 28px rgba(16, 20, 18, 0.045);
}

.pg-panel.is-decision {
  background:
    linear-gradient(135deg, rgba(22, 79, 69, 0.08), rgba(255, 254, 250, 0.96)),
    var(--pg-panel);
}

.pg-guide-article {
  padding: 28px;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
  line-height: 1.18;
}

.entry-content a {
  color: var(--pg-accent);
  font-weight: 720;
}

.pg-note-pyramid {
  display: grid;
  gap: 12px;
}

.pg-note-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  align-items: start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pg-line);
}

.pg-note-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pg-faq-list {
  display: grid;
  gap: 16px;
}

.pg-faq-item {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--pg-line);
}

.pg-faq-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.pg-faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.35;
}

.pg-faq-item p {
  margin: 0;
  color: var(--pg-muted);
}

.pg-offer-list {
  display: grid;
  gap: 12px;
}

.pg-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--pg-line);
  border-radius: 12px;
  padding: 14px;
  background: var(--pg-paper);
}

.pg-offer strong,
.pg-offer > span {
  display: block;
}

.pg-offer > span {
  color: var(--pg-muted);
  font-size: 13px;
}

.pg-offer .pg-button {
  color: #fff;
}

.pg-footer {
  padding: 44px 0;
  border-top: 1px solid var(--pg-line);
  background: #fffefa;
  color: var(--pg-muted);
}

.pg-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.woocommerce div.product,
.woocommerce .products {
  width: min(1180px, calc(100% - 36px));
  margin-right: auto;
  margin-left: auto;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  border: 1px solid rgba(16, 20, 18, 0.13);
  border-radius: 14px;
  padding: 20px;
  background: #fffefa;
  box-shadow: 0 10px 28px rgba(16, 20, 18, 0.045);
}

.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border-radius: 999px;
  background: var(--pg-ink);
  color: #fff;
}

@media (max-width: 980px) {
  .pg-hero-layout,
  .pg-finder-form,
  .pg-record-hero,
  .pg-detail-layout,
  .pg-guide-layout,
  .pg-grid.is-3,
  .pg-grid.is-4 {
    grid-template-columns: 1fr;
  }

  .pg-section-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pg-finder-results {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.admin-bar .pg-site-header {
    top: 0;
  }

  .pg-nav {
    height: auto;
    min-height: auto;
    padding: 13px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .pg-nav-links {
    width: 100%;
    overflow: visible;
    flex-wrap: wrap;
    gap: 12px;
  }

  .pg-hero {
    min-height: auto;
    background-position: 58% center;
  }

  .pg-hero-inner {
    padding: 44px 0 28px;
  }

  .pg-hero h1,
  .pg-page-title {
    font-size: 40px;
    line-height: 1.02;
  }

  .pg-hero-copy,
  .pg-page-copy,
  .pg-section-copy {
    font-size: 16px;
  }

  .pg-archive-card {
    padding: 18px;
  }

  .pg-archive-spec {
    display: grid;
    gap: 5px;
  }

  .pg-archive-spec strong {
    text-align: left;
  }

  .pg-archive-card h2 {
    font-size: 25px;
  }

  .pg-section {
    padding: 52px 0;
  }

  .pg-section-title {
    font-size: 32px;
  }

  .pg-finder-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pg-field:first-child,
  .pg-finder-form .pg-button {
    grid-column: 1 / -1;
  }

  .pg-note-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
