/*
Theme Name: Queen Natural Hair
Theme URI: https://queennaturalhair.com/
Author: Queen Natural Hair
Description: A refined WooCommerce storefront for luxury virgin hair, wigs, lace products, and Lace Eraser.
Version: 1.1.0
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: queen-natural-hair
*/

:root {
  --qnh-primary: #feb3f0;
  --qnh-primary-soft: #fff1fc;
  --qnh-primary-deep: #e191d5;
  --qnh-dark: #4a253a;
  --qnh-gold: #9b7535;
  --qnh-gold-light: #f4c298;
  --qnh-cream: #fff9f4;
  --qnh-white: #ffffff;
  --qnh-ink: #3f2836;
  --qnh-muted: #765f70;
  --qnh-border: #f0d8eb;
  --qnh-shadow: 0 18px 50px rgba(92, 47, 77, .12);
  --qnh-radius: 18px;
  --qnh-wrap: min(1200px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--qnh-ink); background: #fff; font-family: "Montserrat", Arial, sans-serif; line-height: 1.6; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.qnh-wrap { width: var(--qnh-wrap); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.qnh-announcement { padding: 9px 20px; text-align: center; background: var(--qnh-dark); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.qnh-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--qnh-border); backdrop-filter: blur(14px); }
.qnh-header-main { min-height: 92px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.qnh-logo img { display: block; width: 112px; max-height: 78px; object-fit: contain; }
.qnh-logo-text { color: var(--qnh-dark); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 700; }
.qnh-tools { justify-self: end; display: flex; align-items: center; gap: 16px; }
.qnh-tool { display: inline-grid; place-items: center; min-width: 34px; min-height: 34px; font-size: 1.15rem; }
.qnh-cart-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: -7px; border-radius: 50%; color: #fff; background: var(--qnh-gold); font-size: .65rem; font-weight: 800; }
.qnh-menu-toggle { display: none; border: 0; background: transparent; font-size: 1.4rem; }
.qnh-nav { border-top: 1px solid var(--qnh-border); }
.qnh-nav ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 30px; margin: 0; padding: 13px 0; list-style: none; }
.qnh-nav a { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.qnh-nav a:hover { color: var(--qnh-gold); }

.qnh-hero { position: relative; min-height: 650px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(110deg, rgba(74,37,58,.92), rgba(74,37,58,.32)), var(--hero-image, linear-gradient(135deg, var(--qnh-primary), var(--qnh-dark))); background-position: center; background-size: cover; color: #fff; }
.qnh-hero::after { content: ""; position: absolute; inset: auto -10% -40% 45%; height: 85%; border-radius: 50%; background: rgba(254,179,240,.28); filter: blur(4px); }
.qnh-hero-content { position: relative; z-index: 2; max-width: 680px; padding: 100px 0; }
.qnh-kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--qnh-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.qnh-kicker::before { content: ""; width: 42px; height: 1px; background: currentColor; }
.qnh-hero h1 { max-width: 650px; margin: 0 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 7vw, 5.8rem); line-height: .98; font-weight: 500; letter-spacing: -.04em; }
.qnh-hero p { max-width: 590px; margin: 0 0 30px; font-size: clamp(1rem, 2vw, 1.2rem); }
.qnh-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.qnh-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit { display: inline-flex; justify-content: center; align-items: center; min-height: 50px; padding: 13px 24px; border: 1px solid var(--qnh-gold); border-radius: 999px; color: var(--qnh-dark); background: var(--qnh-gold-light); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: .2s ease; }
.qnh-button:hover, .woocommerce a.button:hover { color: #fff; background: var(--qnh-gold); transform: translateY(-2px); }
.qnh-button--ghost { color: #fff; border-color: rgba(255,255,255,.75); background: transparent; }
.qnh-button--ghost:hover { color: var(--qnh-dark); background: #fff; }

.qnh-trustbar { background: var(--qnh-primary-soft); border-bottom: 1px solid var(--qnh-border); }
.qnh-trustbar-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.qnh-trust { padding: 22px 18px; text-align: center; border-right: 1px solid var(--qnh-border); }
.qnh-trust:last-child { border-right: 0; }
.qnh-trust strong { display: block; color: var(--qnh-dark); font-family: Georgia, serif; font-size: 1.02rem; }
.qnh-trust span { color: var(--qnh-muted); font-size: .72rem; }

.qnh-section { padding: 90px 0; }
.qnh-section--soft { background: var(--qnh-primary-soft); }
.qnh-section--cream { background: var(--qnh-cream); }
.qnh-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 38px; }
.qnh-heading h2 { margin: 0; color: var(--qnh-dark); font-family: Georgia, serif; font-size: clamp(2.1rem, 4vw, 3.3rem); line-height: 1.05; font-weight: 500; }
.qnh-heading p { max-width: 560px; margin: 10px 0 0; color: var(--qnh-muted); }
.qnh-text-link { color: var(--qnh-dark); border-bottom: 1px solid var(--qnh-gold); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.qnh-categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.qnh-category { position: relative; min-height: 420px; display: flex; align-items: end; overflow: hidden; border-radius: var(--qnh-radius); background: linear-gradient(145deg, var(--qnh-primary), var(--qnh-primary-deep)); box-shadow: var(--qnh-shadow); }
.qnh-category img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.qnh-category:hover img { transform: scale(1.04); }
.qnh-category::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(14,25,43,.87)); }
.qnh-category-content { position: relative; z-index: 2; width: 100%; padding: 26px; color: #fff; }
.qnh-category h3 { margin: 0 0 4px; font-family: Georgia, serif; font-size: 1.65rem; font-weight: 500; }
.qnh-category span { font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.qnh-story { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 520px; overflow: hidden; border-radius: 28px; background: var(--qnh-dark); color: #fff; box-shadow: var(--qnh-shadow); }
.qnh-story-image { min-height: 460px; background: linear-gradient(135deg, var(--qnh-primary), var(--qnh-primary-deep)); background-size: cover; background-position: center; }
.qnh-story-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(40px, 7vw, 85px); }
.qnh-story-copy h2 { margin: 0 0 18px; font-family: Georgia, serif; font-size: clamp(2.4rem, 4vw, 4.2rem); line-height: 1; font-weight: 500; }
.qnh-story-copy p { color: #f7eaf2; }

.qnh-quote { max-width: 850px; margin: auto; text-align: center; }
.qnh-stars { margin-bottom: 20px; color: var(--qnh-gold); letter-spacing: .28em; }
.qnh-quote blockquote { margin: 0; color: var(--qnh-dark); font-family: Georgia, serif; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.35; }
.qnh-quote cite { display: block; margin-top: 22px; color: var(--qnh-muted); font-size: .75rem; font-style: normal; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.qnh-newsletter { padding: 65px 0; background: var(--qnh-primary); color: var(--qnh-dark); }
.qnh-newsletter-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; }
.qnh-newsletter h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 500; }
.qnh-newsletter p { margin: 0; }
.qnh-newsletter form { display: flex; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--qnh-shadow); }
.qnh-newsletter input[type="email"] { flex: 1; min-width: 0; padding: 12px 18px; border: 0; outline: 0; background: transparent; }
.qnh-newsletter button { border: 0; }

.qnh-content { padding: 60px 0 90px; }
.qnh-content h1 { color: var(--qnh-dark); font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 500; }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { float: none !important; width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product a img { border-radius: 15px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--qnh-primary-soft); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--qnh-dark); font-size: .98rem; font-weight: 700; }
.woocommerce ul.products li.product .price { color: var(--qnh-gold); font-weight: 800; }
.woocommerce span.onsale { background: var(--qnh-gold); }

.qnh-footer { padding: 70px 0 30px; color: #f7eaf2; background: var(--qnh-dark); }
.qnh-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 50px; }
.qnh-footer-logo { width: 120px; margin-bottom: 16px; border-radius: 50%; }
.qnh-footer h3 { margin: 0 0 18px; color: #fff; font-family: Georgia, serif; font-size: 1.15rem; }
.qnh-footer ul { margin: 0; padding: 0; list-style: none; }
.qnh-footer li { margin-bottom: 9px; }
.qnh-footer a:hover { color: var(--qnh-gold-light); }
.qnh-footer p, .qnh-footer li { font-size: .84rem; }
.qnh-copyright { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #d9c3d0; font-size: .75rem; text-align: center; }

@media (max-width: 980px) {
  .qnh-menu-toggle { display: inline-grid; }
  .qnh-header-main { grid-template-columns: 1fr auto; min-height: 76px; }
  .qnh-logo { justify-self: start; }
  .qnh-logo img { width: 90px; max-height: 64px; }
  .qnh-header-main > .qnh-menu-toggle { grid-column: 2; grid-row: 1; }
  .qnh-tools { display: none; }
  .qnh-nav { display: none; position: fixed; inset: 112px 0 0; overflow: auto; background: #fff; }
  .menu-open .qnh-nav { display: block; }
  .qnh-nav ul { display: block; padding: 26px 30px; }
  .qnh-nav li { border-bottom: 1px solid var(--qnh-border); }
  .qnh-nav a { display: block; padding: 17px 0; }
  .qnh-categories, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .qnh-story, .qnh-newsletter-inner { grid-template-columns: 1fr; }
  .qnh-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --qnh-wrap: min(100% - 28px, 1200px); }
  .qnh-hero { min-height: 570px; }
  .qnh-hero-content { padding: 75px 0; }
  .qnh-trustbar-inner { grid-template-columns: repeat(2, 1fr); }
  .qnh-trust { border-bottom: 1px solid var(--qnh-border); }
  .qnh-section { padding: 65px 0; }
  .qnh-heading { display: block; }
  .qnh-heading .qnh-text-link { display: inline-block; margin-top: 18px; }
  .qnh-categories, .woocommerce ul.products { grid-template-columns: 1fr; }
  .qnh-category { min-height: 390px; }
  .qnh-story-image { min-height: 360px; }
  .qnh-newsletter form { display: block; border-radius: 18px; }
  .qnh-newsletter input, .qnh-newsletter button { width: 100%; }
  .qnh-footer-grid { grid-template-columns: 1fr; gap: 32px; }
}
