/*
Theme Name: PyPeakLabs
Theme URI: https://pypeaklabs.com
Author: PyPeakLabs
Description: A restrained editorial WooCommerce theme for a modern unisex fragrance house.
Version: 1.0.0
Text Domain: pypeaklabs
*/

:root {
  --bone: #f4f1eb;
  --paper: #fbfaf7;
  --ink: #1c1d1b;
  --muted: #6d706a;
  --sage: #778273;
  --silver: #b6b9b2;
  --line: #d9d8d0;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bone); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.site-shell { width: min(1280px, calc(100% - 48px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--bone); position: sticky; top: 0; z-index: 20; }
.header-row { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { font-family: var(--serif); font-size: 27px; letter-spacing: 0; white-space: nowrap; }
.main-nav { justify-self: start; }
.main-nav ul, .footer-nav ul { display: flex; gap: 20px; align-items: center; list-style: none; margin: 0; padding: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.header-actions { justify-self: end; display: flex; gap: 16px; align-items: center; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; }
.button, .inquiry-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 11px 18px; border: 1px solid var(--ink); border-radius: 0; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.button--quiet { background: transparent; color: var(--ink); }
.eyebrow { margin: 0 0 20px; color: var(--sage); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.08; }
h1 { font-size: clamp(47px, 6vw, 82px); }
h2 { font-size: clamp(32px, 3.5vw, 54px); }
h3 { font-size: 28px; }
.homepage-carousel { position: relative; min-height: 500px; background: var(--paper); border-bottom: 1px solid var(--line); }
.homepage-carousel__slide { min-height: 500px; display: grid; grid-template-columns: 1fr 1fr; animation: homepage-carousel-fade .35s ease; }
.homepage-carousel__slide[hidden] { display: none; }
.homepage-carousel__copy { display: flex; flex-direction: column; justify-content: center; padding: 72px 10% 96px; min-width: 0; }
.homepage-carousel__title { font-size: 56px; overflow-wrap: anywhere; }
.homepage-carousel__reference { max-width: 440px; margin: 24px 0 30px; color: var(--muted); font-size: 16px; }
.homepage-carousel__media { display: block; height: 500px; max-height: 500px; background: #e4e1d8; overflow: hidden; }
.homepage-carousel__image { width: 100%; height: 100%; object-fit: cover; }
.homepage-carousel__controls { position: absolute; z-index: 1; left: 10%; bottom: 34px; display: flex; align-items: center; gap: 14px; }
.homepage-carousel__arrow { width: 40px; height: 40px; padding: 0; border: 1px solid var(--ink); border-radius: 0; background: var(--paper); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.homepage-carousel__arrow:hover, .homepage-carousel__arrow:focus-visible { background: var(--ink); color: var(--paper); }
.homepage-carousel__dots { display: flex; align-items: center; gap: 8px; }
.homepage-carousel__dot { width: 10px; height: 10px; padding: 0; border: 1px solid var(--ink); border-radius: 50%; background: transparent; cursor: pointer; }
.homepage-carousel__dot[aria-current="true"] { background: var(--ink); }
.homepage-carousel__slide--empty { grid-template-columns: 1fr; }
@keyframes homepage-carousel-fade { from { opacity: 0; } to { opacity: 1; } }
.section { padding: 96px 0; }
.section--line { border-top: 1px solid var(--line); }
.section-header { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; }
.section-header p { max-width: 390px; margin: 0; color: var(--muted); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.product-card { min-width: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.product-card__image { aspect-ratio: 4 / 5; overflow: hidden; background: #e4e1d8; }
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__body { padding: 18px; }
.product-card__family { margin: 0 0 5px; color: var(--sage); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.product-card__name-price { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.product-card__name-price h3 { font-size: 24px; }
.product-card__notes { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.family-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.family-link { min-height: 138px; padding: 18px; display: flex; align-items: end; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; font-family: var(--serif); font-size: 24px; transition: background .2s ease; }
.family-grid--categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.family-grid--categories .family-link { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 7px; }
.category-count { color: var(--muted); font-family: var(--sans); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.family-link:hover { background: var(--sage); color: var(--paper); }
.family-link:hover .category-count { color: var(--paper); }
.manifesto { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.manifesto p { margin: 0; max-width: 650px; font-family: var(--serif); font-size: clamp(26px, 3vw, 43px); line-height: 1.2; }
.editorial-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.editorial-link { min-height: 260px; padding: 30px; display: flex; flex-direction: column; justify-content: space-between; background: var(--paper); }
.editorial-link span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.point-of-view { padding: 96px 0; border-top: 1px solid var(--line); }
.point-of-view h2 { margin-bottom: 24px; }
.point-of-view > p:last-child { max-width: 760px; margin: 0; font-family: var(--serif); font-size: 28px; line-height: 1.25; }
.page-hero { padding: 74px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 560px; margin: 18px 0 0; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 7vw, 92px); padding: 60px 0 100px; }
.product-detail__image { aspect-ratio: 4 / 5; background: #e4e1d8; }
.product-detail__image img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); align-content: start; }
.product-gallery__image { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #e4e1d8; }
.product-detail__summary { padding-top: 18px; }
.product-description { margin: 24px 0; color: var(--muted); }
.inquiry-button { margin-top: 26px; }
.notes-list { margin: 34px 0; border-top: 1px solid var(--line); }
.notes-list div { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.notes-list dt { color: var(--sage); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.notes-list dd { margin: 0; }
.scent-finder { max-width: 760px; padding: 72px 0 100px; }
.finder-fieldset { margin: 34px 0; padding: 0; border: 0; }
.finder-fieldset legend { margin-bottom: 16px; font-family: var(--serif); font-size: 25px; }
.finder-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.finder-options label { padding: 14px; border: 1px solid var(--line); cursor: pointer; }
.finder-options input { margin-right: 8px; }
.finder-result { display: none; margin-top: 28px; padding: 24px; border-left: 3px solid var(--sage); background: var(--paper); }
.site-footer { padding: 52px 0; border-top: 1px solid var(--line); background: var(--paper); }
.footer-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.footer-copy { color: var(--muted); font-size: 13px; }
.contact-page { max-width: 660px; padding: 64px 0 100px; }
.contact-page h2 { margin-bottom: 16px; }
.contact-page > p:not(.eyebrow) { max-width: 540px; color: var(--muted); }
.contact-number { margin-top: 28px; color: var(--ink) !important; font-size: 19px; }
.contact-qr { width: 100%; max-width: 280px; aspect-ratio: 1; object-fit: contain; margin-top: 22px; }
.woocommerce-notices-wrapper { width: min(1280px, calc(100% - 48px)); margin: 24px auto; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); }
.woocommerce .woocommerce-breadcrumb { margin: 24px 0; color: var(--muted); font-size: 12px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: 0; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { border-top: 1px solid var(--line); }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce .select2-container--default .select2-selection--single { border: 1px solid var(--line); border-radius: 0; background: var(--paper); min-height: 42px; }

@media (max-width: 900px) {
  .product-detail, .manifesto { grid-template-columns: 1fr; }
  .homepage-carousel, .homepage-carousel__slide { min-height: 0; }
  .homepage-carousel__slide { grid-template-columns: 1fr; }
  .homepage-carousel__media { height: min(500px, 110vw); max-height: 500px; grid-row: 1; }
  .homepage-carousel__copy { padding: 56px 28px 92px; }
  .homepage-carousel__controls { left: 28px; }
  .family-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .site-shell, .woocommerce-notices-wrapper { width: min(100% - 32px, 1280px); }
  .header-row { min-height: 64px; grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .brand { font-size: 23px; }
  .header-actions { gap: 10px; font-size: 10px; }
  .homepage-carousel__title { font-size: 38px; }
  .homepage-carousel__media { height: min(500px, 100vw); }
  .homepage-carousel__controls { left: 16px; bottom: 24px; }
  .section { padding: 62px 0; }
  .section-header, .footer-row { display: block; }
  .section-header p { margin-top: 12px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .product-card__body { padding: 14px; }
  .product-card__name-price { display: block; }
  .product-gallery { grid-template-columns: 1fr; }
  .product-detail { padding-top: 32px; }
  .family-grid { grid-template-columns: repeat(2, 1fr); }
  .family-grid--categories { grid-template-columns: 1fr; }
  .recommended-finds__grid { grid-template-columns: none; grid-auto-columns: minmax(220px, 78vw); grid-auto-flow: column; overflow-x: auto; scroll-snap-type: x mandatory; }
  .recommended-finds__grid .product-card { scroll-snap-align: start; }
  .point-of-view { padding: 62px 0; }
  .point-of-view > p:last-child { font-size: 24px; }
  .finder-options { grid-template-columns: 1fr; }
  .editorial-links { grid-template-columns: 1fr; }
  .footer-nav { margin-top: 22px; }
}
