/*
Theme Name: Nanopriority Boutique
Theme URI: https://nanopriority.ru
Author: Codex
Description: Private cosmetics storefront theme for nanopriority.ru.
Version: 0.3.0
Text Domain: nanopriority
Requires at least: 6.0
*/

:root {
  --np-bg: oklch(98.4% 0.012 231);
  --np-surface: oklch(99.2% 0.006 231);
  --np-surface-strong: oklch(95.4% 0.036 224);
  --np-text: oklch(24% 0.045 247);
  --np-muted: oklch(48% 0.046 238);
  --np-line: oklch(87.5% 0.027 229);
  --np-accent: oklch(62% 0.145 225);
  --np-accent-dark: oklch(37% 0.105 240);
  --np-aqua: oklch(78% 0.092 203);
  --np-aqua-soft: oklch(94.5% 0.038 214);
  --np-rose: oklch(75% 0.062 12);
  --np-rose-soft: oklch(95% 0.026 12);
  --np-shadow: 0 18px 44px color-mix(in oklch, var(--np-accent-dark) 12%, transparent);
  --np-radius: 8px;
  --np-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, oklch(99% 0.006 232) 0, var(--np-bg) 34%, oklch(96.8% 0.022 220) 100%);
  color: var(--np-text);
  font-family: "Manrope", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--np-accent-dark);
}

button,
input,
textarea,
select {
  font: inherit;
}

.np-wrap {
  width: min(var(--np-max), calc(100% - 32px));
  margin-inline: auto;
}

.np-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in oklch, var(--np-line) 72%, transparent);
  background: color-mix(in oklch, var(--np-surface) 86%, transparent);
  backdrop-filter: blur(16px);
}

.np-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.np-logo {
  display: grid;
  gap: 0;
  min-width: max-content;
}

.np-logo-mark {
  font-size: 1.45rem;
  font-weight: 760;
  line-height: 1;
  letter-spacing: 0;
}

.np-logo-note {
  color: var(--np-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: var(--np-muted);
  font-size: 0.95rem;
}

.np-button,
.button,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--np-accent);
  border-radius: var(--np-radius);
  background: var(--np-accent);
  color: oklch(99% 0.006 225);
  padding: 10px 18px;
  font-weight: 690;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.np-button:hover,
.button:hover,
.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  transform: translateY(-1px);
  border-color: var(--np-accent-dark);
  background: var(--np-accent-dark);
  color: oklch(99% 0.006 225);
}

.np-button-secondary {
  border-color: var(--np-line);
  background: transparent;
  color: var(--np-text);
}

.np-button-secondary:hover {
  border-color: var(--np-accent);
  background: color-mix(in oklch, var(--np-accent) 10%, transparent);
  color: var(--np-accent-dark);
}

.np-main {
  min-height: 65vh;
}

.np-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 7vw, 86px) 0 clamp(28px, 5vw, 62px);
}

.np-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, color-mix(in oklch, var(--np-aqua-soft) 70%, transparent) 0 22%, transparent 22% 100%),
    linear-gradient(155deg, transparent 0 58%, color-mix(in oklch, var(--np-accent) 9%, transparent) 58% 70%, transparent 70% 100%),
    linear-gradient(180deg, color-mix(in oklch, var(--np-surface) 94%, transparent), color-mix(in oklch, var(--np-bg) 86%, transparent));
}

.np-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 6vw, 78px);
}

.np-kicker {
  display: inline-flex;
  width: fit-content;
  border: 1px solid color-mix(in oklch, var(--np-accent) 38%, var(--np-line));
  border-radius: 999px;
  background: color-mix(in oklch, var(--np-accent) 8%, var(--np-surface));
  color: var(--np-accent-dark);
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 740;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-hero h1 {
  max-width: 11ch;
  margin: 20px 0 18px;
  font-size: clamp(2.55rem, 6.2vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.np-hero p {
  max-width: 62ch;
  margin: 0;
  color: var(--np-muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.np-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.np-hero-note {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 12px;
  max-width: 520px;
  margin-top: 28px;
  color: var(--np-muted);
  font-size: 0.92rem;
}

.np-hero-note::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 0.48em;
  border-radius: 50%;
  background: var(--np-aqua);
}

.np-shelf {
  display: grid;
  grid-template-columns: 0.78fr 1fr;
  grid-template-rows: 190px 190px;
  gap: 14px;
}

.np-shelf-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  background: linear-gradient(145deg, var(--np-surface), var(--np-aqua-soft));
  box-shadow: var(--np-shadow);
}

.np-shelf-item:first-child {
  grid-row: span 2;
}

.np-shelf-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.np-shelf-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: color-mix(in oklch, var(--np-surface) 88%, transparent);
  color: var(--np-text);
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 10px 22px color-mix(in oklch, var(--np-text) 10%, transparent);
}

.np-promotions {
  padding-top: clamp(20px, 4vw, 42px);
}

.np-promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 16px;
}

.np-promo-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  border: 1px solid color-mix(in oklch, var(--np-accent) 22%, var(--np-line));
  border-radius: var(--np-radius);
  background:
    linear-gradient(145deg, color-mix(in oklch, var(--np-surface) 92%, transparent), color-mix(in oklch, var(--np-aqua-soft) 78%, var(--np-surface))),
    var(--np-surface);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 18px 36px color-mix(in oklch, var(--np-accent-dark) 8%, transparent);
}

.np-promo-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: 18px;
  width: 180px;
  height: 42px;
  border-top: 1px solid color-mix(in oklch, var(--np-accent) 24%, transparent);
  border-bottom: 1px solid color-mix(in oklch, var(--np-accent) 16%, transparent);
  transform: rotate(-18deg);
}

.np-promo-card-hot {
  border-color: color-mix(in oklch, var(--np-rose) 48%, var(--np-line));
  background:
    linear-gradient(145deg, color-mix(in oklch, var(--np-rose-soft) 68%, var(--np-surface)), var(--np-surface) 48%, var(--np-aqua-soft));
}

.np-promo-card-soft {
  background:
    linear-gradient(145deg, var(--np-surface), color-mix(in oklch, var(--np-accent) 8%, var(--np-surface)));
}

.np-promo-label {
  display: inline-flex;
  width: fit-content;
  border: 1px solid color-mix(in oklch, var(--np-accent) 24%, var(--np-line));
  border-radius: 999px;
  background: color-mix(in oklch, var(--np-surface) 82%, transparent);
  color: var(--np-accent-dark);
  padding: 6px 10px;
  font-size: 0.74rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.np-promo-card h3 {
  max-width: 12ch;
  margin: 22px 0 12px;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.np-promo-card p {
  max-width: 44ch;
  margin: 0;
  color: var(--np-muted);
}

.np-promo-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--np-accent-dark);
  font-weight: 760;
}

.np-section {
  padding: clamp(34px, 6vw, 76px) 0;
}

.np-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.np-section-title {
  max-width: 760px;
}

.np-section h2 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.np-section-title p {
  max-width: 62ch;
  margin: 10px 0 0;
  color: var(--np-muted);
}

.np-category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 0;
}

.np-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--np-line);
  border-radius: 999px;
  background: var(--np-surface);
  color: var(--np-text);
  padding: 8px 13px;
  font-size: 0.9rem;
  font-weight: 650;
}

.np-chip:hover {
  border-color: color-mix(in oklch, var(--np-accent) 50%, var(--np-line));
  background: color-mix(in oklch, var(--np-accent) 9%, var(--np-surface));
}

.np-product-grid,
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.np-product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 100%;
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  background: var(--np-surface);
  transition: transform 190ms ease, border-color 190ms ease, box-shadow 190ms ease;
}

.np-product-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in oklch, var(--np-accent) 42%, var(--np-line));
  box-shadow: 0 18px 38px color-mix(in oklch, var(--np-text) 9%, transparent);
}

.np-product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(135deg, var(--np-surface-strong), var(--np-aqua-soft), var(--np-rose-soft));
}

.np-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.np-product-card:hover .np-product-media img {
  transform: scale(1.035);
}

.np-product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: color-mix(in oklch, var(--np-surface) 92%, transparent);
  color: var(--np-accent-dark);
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 760;
}

.np-product-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.np-product-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.np-product-excerpt {
  margin: 0;
  color: var(--np-muted);
  font-size: 0.9rem;
}

.np-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.np-price,
.price {
  color: var(--np-text);
  font-size: 1rem;
  font-weight: 780;
}

.np-details-link {
  color: var(--np-accent-dark);
  font-size: 0.9rem;
  font-weight: 730;
}

.np-order-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border: 1px solid color-mix(in oklch, var(--np-accent) 30%, var(--np-line));
  border-radius: var(--np-radius);
  background: linear-gradient(135deg, color-mix(in oklch, var(--np-accent) 9%, var(--np-surface)), var(--np-surface), color-mix(in oklch, var(--np-aqua) 12%, var(--np-surface)));
  padding: clamp(22px, 4vw, 38px);
}

.np-order-band h2 {
  margin-bottom: 8px;
}

.np-order-band p {
  margin: 0;
  color: var(--np-muted);
}

.np-page {
  padding: clamp(38px, 7vw, 80px) 0;
}

.np-page article {
  max-width: 820px;
}

.np-page h1 {
  margin: 0 0 20px;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1;
}

.np-single-product {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: start;
  padding: clamp(38px, 7vw, 80px) 0;
}

.np-single-media {
  overflow: hidden;
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  background: var(--np-surface-strong);
}

.np-single-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.np-single-content h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.np-single-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.np-footer {
  border-top: 1px solid var(--np-line);
  background: color-mix(in oklch, var(--np-surface) 78%, var(--np-bg));
  padding: 34px 0;
}

.np-footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}

.np-footer p {
  margin: 8px 0 0;
  color: var(--np-muted);
}

.woocommerce-result-count,
.woocommerce-ordering,
.woocommerce-breadcrumb,
.woocommerce-notices-wrapper,
.single-product .product_meta,
.single-product form.cart,
.add_to_cart_button {
  display: none !important;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid var(--np-line);
  border-radius: var(--np-radius);
  background: var(--np-surface);
  color: var(--np-text);
  padding: 14px 16px;
}

@media (max-width: 820px) {
  .np-header-inner {
    min-height: 68px;
  }

  .np-nav {
    display: none;
  }

  .np-hero-grid,
  .np-single-product,
  .np-order-band,
  .np-footer-grid {
    grid-template-columns: 1fr;
  }

  .np-hero h1 {
    max-width: 9ch;
  }

  .np-shelf {
    grid-template-rows: 180px 180px;
  }

  .np-section-head {
    display: grid;
  }
}

@media (max-width: 540px) {
  .np-wrap {
    width: min(var(--np-max), calc(100% - 22px));
  }

  .np-hero {
    padding-top: 28px;
  }

  .np-shelf {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 180px);
  }

  .np-shelf-item:first-child {
    grid-row: span 1;
  }

  .np-product-grid,
  .products {
    grid-template-columns: 1fr;
  }

  .np-button {
    width: 100%;
  }
}
