/*
Theme Name: AURÉLIA Botanique
Theme URI: https://example.invalid/aurelia
Author: OpenAI
Description: Демонстрационная WooCommerce-тема премиального магазина косметики.
Version: 1.0.0
Text Domain: aurelia
Requires at least: 6.5
Requires PHP: 8.1
*/

:root {
    --bg: #fbf8f6;
    --surface: #fffdfc;
    --surface-soft: #f8eeeb;
    --surface-rose: #f5e2df;
    --surface-deep: #e9c5c1;
    --text: #4d423f;
    --muted: #81736f;
    --line: #eadbd7;
    --accent: #c96f73;
    --accent-dark: #a85258;
    --accent-soft: #f1c8c7;
    --gold: #d89f42;
    --white: #ffffff;
    --shadow: 0 22px 65px rgba(111, 71, 65, 0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --shell: 1320px;
    --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background: var(--bg);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
body.menu-open,
body.search-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.aurelia-shell {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}
.aurelia-icon { width: 22px; height: 22px; flex: 0 0 auto; }
.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
}
h1, h2, h3, h4 {
    margin: 0;
    color: var(--text);
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
}
h1 { font-size: clamp(50px, 5vw, 82px); }
h2 { font-size: clamp(36px, 3.3vw, 54px); }
h3 { font-size: 28px; }
p { margin: 0; }

.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid var(--accent);
    border-radius: 10px;
    background: var(--accent);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-1px);
}
.button .aurelia-icon { width: 18px; height: 18px; }
.button--light {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.9);
    color: var(--text);
}
.button--light:hover { background: var(--white); color: var(--text); border-color: var(--white); }
.button--compact { min-height: 46px; padding-inline: 20px; }
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-dark);
    font-size: 14px;
    font-weight: 600;
}
.text-link .aurelia-icon { width: 17px; height: 17px; }
.text-link:hover { color: var(--accent); }

.aurelia-topbar {
    padding: 7px 20px;
    background: #5d4b47;
    color: #fff8f5;
    text-align: center;
    font-size: 12px;
    letter-spacing: .04em;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(234,219,215,.9);
    background: rgba(255,253,252,.93);
    backdrop-filter: blur(18px);
}
.header-inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: 190px 1fr auto;
    align-items: center;
    gap: 36px;
}
.site-brand {
    position: relative;
    display: grid;
    justify-items: center;
    width: max-content;
    line-height: 1;
}
.brand-mark {
    margin-bottom: 2px;
    color: var(--accent);
    font-size: 18px;
}
.brand-name {
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: .27em;
    text-indent: .27em;
}
.brand-subtitle {
    margin-top: 5px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: .42em;
    text-indent: .42em;
}
.desktop-nav { min-width: 0; }
.aurelia-nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 34px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.aurelia-nav-list a {
    position: relative;
    display: inline-block;
    padding: 29px 0 27px;
    color: #5a4d49;
    font-size: 14px;
    white-space: nowrap;
}
.aurelia-nav-list a::after {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 1px;
    background: var(--accent);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .2s ease;
}
.aurelia-nav-list a:hover::after,
.aurelia-nav-list .current-menu-item a::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}
.icon-button:hover { background: var(--surface-soft); }
.cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--accent);
    color: var(--white);
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}
.mobile-menu-toggle { display: none; }
.mobile-navigation {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 200;
    width: min(90vw, 390px);
    padding: 24px;
    background: var(--surface);
    box-shadow: 30px 0 80px rgba(70,45,40,.22);
}
.mobile-navigation__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 28px;
}
.mobile-navigation .aurelia-nav-list,
.mobile-nav-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.mobile-navigation .aurelia-nav-list a,
.mobile-nav-list a {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
}
.mobile-navigation__links { display: grid; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.search-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 24px 50px rgba(70,45,40,.1);
}
.search-panel__inner { display: flex; align-items: center; gap: 14px; }
.search-panel form { display: grid; grid-template-columns: 1fr auto; gap: 10px; flex: 1; }
.search-panel input {
    width: 100%;
    min-height: 46px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    outline: none;
}
.search-panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,111,115,.12); }

.site-content { min-height: 60vh; }

/* Ровно 50px между видимыми основными блоками главной страницы. */
body.home .site-content > section {
    margin-block: 0;
}
body.home .site-content > .section,
body.home .site-content > .benefits-section,
body.home .site-content > .newsletter-section {
    padding-block: 0;
}
body.home .site-content > section + section {
    margin-top: 50px;
}
.home-hero {
    position: relative;
    width: 100%;
    min-height: 0;
    aspect-ratio: 8 / 3;
    overflow: hidden;
    background: #f4dfdc;
}
.home-hero__media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.home-hero__media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(253,249,247,.98) 0%, rgba(253,249,247,.94) 27%, rgba(253,249,247,.22) 55%, rgba(253,249,247,0) 74%);
    content: "";
}
.home-hero__inner {
    position: relative;
    z-index: 1;
    min-height: 100%;
    display: flex;
    align-items: center;
}
.home-hero__copy { width: min(500px, 43vw); padding: 70px 0 80px; }
.home-hero__copy h1 { max-width: 520px; margin-bottom: 22px; }
.home-hero__copy p { max-width: 410px; margin-bottom: 30px; color: var(--muted); font-size: 18px; line-height: 1.65; }

.service-strip { border-bottom: 1px solid var(--line); background: var(--surface); }
.service-strip__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-strip__grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 88px;
    padding: 18px 24px;
    border-right: 1px solid var(--line);
}
.service-strip__grid > div:last-child { border-right: 0; }
.service-strip__grid .aurelia-icon { color: var(--accent); width: 25px; height: 25px; }
.service-strip__grid span { display: grid; gap: 2px; }
.service-strip__grid strong { font-size: 14px; font-weight: 600; }
.service-strip__grid small { color: var(--muted); font-size: 12px; }

.section { padding: 92px 0; }
.section--categories { padding-bottom: 54px; }
.section--products { padding-top: 54px; }
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
}
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.category-card:hover { transform: translateY(-4px); border-color: #dfc3bf; box-shadow: 0 18px 35px rgba(111,71,65,.09); }
.category-card__image { display: block; aspect-ratio: .94; overflow: hidden; background: var(--surface-soft); }
.category-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.category-card:hover .category-card__image img { transform: scale(1.035); }
.category-card__body { display: grid; min-height: 112px; padding: 16px 15px 18px; align-content: start; gap: 7px; }
.category-card__body strong { font-family: var(--serif); font-size: 20px; font-weight: 400; }
.category-card__body small { color: var(--muted); font-size: 12px; line-height: 1.45; }

/* WooCommerce product cards */
.woocommerce ul.products,
ul.products {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px 18px;
    margin: 0;
    padding: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product,
ul.products li.product {
    position: relative;
    float: none;
    width: auto;
    margin: 0;
    padding: 0 0 18px;
    border-bottom: 1px solid var(--line);
    background: transparent;
}
.woocommerce ul.products li.product a img,
ul.products li.product a img {
    width: 100%;
    aspect-ratio: .83;
    margin: 0 0 17px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--surface-soft);
    transition: transform .3s ease;
}
.woocommerce ul.products li.product:hover a img,
ul.products li.product:hover a img { transform: translateY(-3px); }
.woocommerce ul.products li.product .woocommerce-loop-product__title,
ul.products li.product .woocommerce-loop-product__title {
    min-height: 46px;
    padding: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}
.aurelia-volume {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}
.woocommerce ul.products li.product .price,
ul.products li.product .price {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 27px;
    margin: 8px 0 12px;
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}
.woocommerce ul.products li.product .price del { color: #aa9a96; font-size: 12px; opacity: 1; }
.woocommerce ul.products li.product .price ins { color: var(--text); text-decoration: none; }
.woocommerce ul.products li.product .button,
ul.products li.product .button {
    min-height: 42px;
    margin: 0;
    padding-inline: 18px;
    font-size: 13px;
}
.woocommerce a.added_to { margin-left: 10px; color: var(--accent-dark); font-size: 13px; }
.aurelia-badge,
.woocommerce span.onsale {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    min-width: auto;
    min-height: 0;
    padding: 6px 9px;
    border-radius: 99px;
    background: var(--accent);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.aurelia-badge--sale { background: #b95f65; }

/* Единое изображение блока «Состав / Тип кожи». */
.finder-image-block {
    overflow: hidden;
    border-radius: var(--radius);
}
.finder-image-block img {
    display: block;
    width: 100%;
    height: auto;
}

.finder-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 18px; }
.finder-card {
    display: flex;
    min-height: 470px;
    flex-direction: column;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}
.finder-card__header { margin-bottom: 26px; }
.finder-card .text-link { margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.ingredient-list { display: grid; gap: 22px; }
.ingredient-list > div { display: flex; align-items: center; gap: 18px; }
.ingredient-list span:last-child { display: grid; gap: 2px; }
.ingredient-list strong { font-family: var(--serif); font-size: 19px; font-weight: 400; }
.ingredient-list small { color: var(--muted); font-size: 13px; }
.ingredient-orb { width: 62px; height: 62px; flex: 0 0 auto; border-radius: 50%; box-shadow: inset 0 0 0 8px rgba(255,255,255,.45), 0 8px 18px rgba(96,59,54,.12); }
.ingredient-orb--red { background: radial-gradient(circle at 35% 30%, #df958e 0 17%, #a94e4d 18% 38%, #6f2f31 39% 100%); }
.ingredient-orb--gold { background: radial-gradient(circle at 35% 30%, #fff0a6 0 20%, #d5a021 21% 53%, #8e5b0a 54% 100%); }
.ingredient-orb--pink { background: radial-gradient(circle at 45% 40%, #ffe3ea 0 20%, #d993a9 21% 50%, #a65e78 51% 100%); }
.skin-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.skin-list li { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 0 8px; border-bottom: 1px solid #f0e4e1; color: #655854; }
.skin-list li span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-soft); color: var(--accent); }

.editorial-section { padding-top: 0; }
.editorial-image-block {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}
.editorial-image-block img {
    display: block;
    width: 100%;
    height: auto;
}
.editorial-card {
    display: grid;
    grid-template-columns: .84fr 1.16fr;
    min-height: 570px;
    overflow: hidden;
    border-radius: 24px;
    background: #745b57;
    color: #fff;
    box-shadow: var(--shadow);
}
.editorial-card__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(44px, 6vw, 82px); }
.editorial-card__copy h2 { margin-bottom: 24px; color: #fff; }
.editorial-card__copy p { margin-bottom: 30px; color: rgba(255,255,255,.76); font-size: 17px; line-height: 1.75; }
.editorial-card__copy .eyebrow { color: #f3d1ce; }
.editorial-card__image { min-height: 100%; }
.editorial-card__image img { width: 100%; height: 100%; object-fit: cover; }

.benefits-section { padding: 28px 0 76px; }
.benefits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.benefits-grid > div { display: flex; align-items: center; gap: 14px; min-height: 112px; padding: 22px 26px; border-right: 1px solid var(--line); }
.benefits-grid > div:last-child { border-right: 0; }
.benefits-grid .aurelia-icon { width: 30px; height: 30px; color: var(--accent); }
.benefits-grid span { display: grid; gap: 3px; }
.benefits-grid strong { font-size: 14px; font-weight: 600; }
.benefits-grid small { color: var(--muted); font-size: 12px; }

.newsletter-section { padding: 0 0 96px; }
.newsletter-card {
    display: grid;
    grid-template-columns: 1fr minmax(420px, .7fr);
    align-items: center;
    gap: 50px;
    padding: 44px 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface-soft);
}
.newsletter-card h2 { font-size: clamp(31px, 3vw, 44px); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter-form input {
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    outline: none;
}
.newsletter-form input:focus { border-color: var(--accent); }

.site-footer { background: #493b38; color: rgba(255,255,255,.76); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1fr; gap: 56px; padding: 72px 0 58px; }
.site-brand--footer { color: #fff; }
.site-brand--footer .brand-subtitle { color: rgba(255,255,255,.54); }
.footer-brand p { max-width: 360px; margin-top: 24px; line-height: 1.75; }
.footer-title { margin-bottom: 19px; color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.footer-links { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; align-content: start; gap: 10px; }
.footer-contact p { color: rgba(255,255,255,.48); font-size: 13px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 22px; padding: 22px 0 28px; border-top: 1px solid rgba(255,255,255,.13); color: rgba(255,255,255,.45); font-size: 12px; }

/* Inner pages */
.page-shell,
.woocommerce-page .site-content > .woocommerce,
.woocommerce-page .site-content > .woocommerce-notices-wrapper {
    width: min(calc(100% - 48px), var(--shell));
    margin-inline: auto;
}
.page-hero,
.shop-hero {
    padding: 36px 0 46px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fffaf8 0%, #f9efec 100%);
}
.page-hero p,
.shop-hero p { max-width: 700px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.page-content { padding: 36px 0 96px; }
.page-content > *:first-child { margin-top: 0; }
.page-content h2 { margin: 42px 0 18px; font-size: 38px; }
.page-content h3 { margin: 32px 0 14px; }
.page-content p,
.page-content li { color: #655955; line-height: 1.8; }
.page-content ul { padding-left: 22px; }
.content-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.content-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.content-card h2 { margin-top: 0; }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 34px 0 28px; }
.shop-category-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-category-pills a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 13px; }
.shop-category-pills a:hover { border-color: var(--accent); color: var(--accent-dark); }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--muted); font-size: 13px; }
.woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce .woocommerce-ordering select,
.woocommerce select,
.woocommerce input.input-text,
.woocommerce textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--text);
}
.shop-products-wrap { padding-bottom: 96px; }
.woocommerce nav.woocommerce-pagination { margin-top: 46px; }
.woocommerce nav.woocommerce-pagination ul { border: 0; }
.woocommerce nav.woocommerce-pagination ul li { margin: 0 4px; border: 0; }
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span { min-width: 40px; min-height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); }
.woocommerce nav.woocommerce-pagination ul li span.current { border-color: var(--accent); background: var(--accent); color: #fff; }

/* Product page */
.single-product .site-content { padding: 36px 0 72px; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 622px) minmax(0, 1fr); gap: clamp(24px, 3vw, 40px); align-items: start; }
body.single-product #content div.product div.images.woocommerce-product-gallery { width: 100%; max-width: none; float: none; margin: 0; }
body.single-product #content div.product div.summary { width: 100%; max-width: none; float: none; margin: 0; }
.woocommerce div.product div.images img { border-radius: var(--radius); background: var(--surface-soft); }
.woocommerce div.product .product_title { margin: 0 0 8px; font-size: clamp(20px, calc(4vw - 20px), 40px); line-height: 1.08; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { margin: 10px 0 12px; color: var(--text); font-size: 25px; font-weight: 700; }
.woocommerce-product-details__short-description { margin-bottom: 14px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.woocommerce div.product form.cart { display: flex; align-items: stretch; gap: 8px; margin: 14px 0 18px; }
.woocommerce .quantity .qty { min-height: 48px; border: 1px solid var(--line); border-radius: 9px; }
.woocommerce div.product .woocommerce-tabs { grid-column: 1 / -1; margin-top: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { display: flex; gap: 12px; padding: 0; border-bottom: 1px solid var(--line); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; background: transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 14px; color: var(--muted); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--accent-dark); border-bottom: 2px solid var(--accent); }
.woocommerce div.product .woocommerce-tabs .panel { padding: 22px 0; color: var(--muted); line-height: 1.7; }
.product_meta { display: grid; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.related.products { grid-column: 1 / -1; margin-top: 30px; }
.related.products > h2 { margin-bottom: 20px; }

/* Cart, checkout, account */
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-account .site-content { padding: 36px 0 100px; }
.woocommerce table.shop_table { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.woocommerce table.shop_table th,
.woocommerce table.shop_table td { padding: 16px; border-color: var(--line); }
.woocommerce-cart table.cart img { width: 92px; border-radius: 10px; }
.woocommerce .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals { width: min(100%, 480px); }
.woocommerce .cart_totals,
.woocommerce-checkout-review-order,
.woocommerce form.checkout_coupon,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce-MyAccount-navigation,
.woocommerce-MyAccount-content { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.woocommerce .cart_totals h2,
.woocommerce-checkout h3 { margin-bottom: 20px; font-size: 30px; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-info,
.woocommerce-message,
.woocommerce-error { border-top-color: var(--accent); background: #fff; color: var(--text); }
.woocommerce-message::before,
.woocommerce-info::before { color: var(--accent); }
.woocommerce-MyAccount-navigation ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 7px; }
.woocommerce-MyAccount-navigation .is-active a,
.woocommerce-MyAccount-navigation a:hover { background: var(--surface-soft); color: var(--accent-dark); }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 270px 1fr; gap: 24px; }

/* Guest account: equal login and registration cards */
body:not(.logged-in).woocommerce-account .woocommerce {
    display: block;
}
body:not(.logged-in).woocommerce-account #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: stretch;
}
body:not(.logged-in).woocommerce-account #customer_login::before,
body:not(.logged-in).woocommerce-account #customer_login::after {
    display: none;
}
body:not(.logged-in).woocommerce-account #customer_login .u-column1,
body:not(.logged-in).woocommerce-account #customer_login .u-column2 {
    float: none;
    width: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
}
body:not(.logged-in).woocommerce-account #customer_login h2 {
    margin: 0 0 24px;
}
body:not(.logged-in).woocommerce-account #customer_login form.login,
body:not(.logged-in).woocommerce-account #customer_login form.register {
    flex: 1;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
body:not(.logged-in).woocommerce-account #customer_login .form-row {
    width: 100%;
}
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after { display: none; }
.woocommerce-MyAccount-navigation { float: none; width: auto; }
.woocommerce-MyAccount-content { float: none; width: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card h2 { margin: 0 0 22px; }
.contact-list { display: grid; gap: 16px; }
.contact-list a { color: var(--accent-dark); font-size: 18px; }
.demo-form { display: grid; gap: 14px; }
.demo-form input,
.demo-form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.demo-form textarea { min-height: 140px; resize: vertical; }

@media (max-width: 1180px) {
    .header-inner { grid-template-columns: 175px 1fr auto; gap: 20px; }
    .aurelia-nav-list { gap: 17px; }
    .aurelia-nav-list a { font-size: 13px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-card__image { aspect-ratio: 1.25; }
    .footer-grid { grid-template-columns: 1.25fr 1fr 1fr; }
    .footer-contact { grid-column: 2 / 4; }
}

@media (max-width: 960px) {
    .aurelia-shell { width: min(calc(100% - 32px), var(--shell)); }
    .header-inner { grid-template-columns: 44px 1fr auto; min-height: 68px; }
    .mobile-menu-toggle { display: inline-flex; }
    .desktop-nav { display: none; }
    .site-brand { justify-self: center; }
    .brand-name { font-size: 21px; }
    .brand-subtitle { display: none; }
    .header-actions .icon-button:nth-child(2) { display: none; }
    .home-hero {
        min-height: 560px;
        aspect-ratio: auto;
    }
    .home-hero__inner { min-height: 560px; }
    .home-hero__media { background-position: 58% center; }
    .home-hero__media::after { background: linear-gradient(90deg, rgba(253,249,247,.98) 0%, rgba(253,249,247,.9) 42%, rgba(253,249,247,.12) 72%); }
    .home-hero__copy { width: 52vw; }
    .service-strip__grid { grid-template-columns: 1fr 1fr; }
    .service-strip__grid > div:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, 1fr); gap: 26px 16px; }
    .finder-grid { grid-template-columns: 1fr; }
    .finder-card { min-height: auto; }
    .editorial-card { grid-template-columns: 1fr; }
    .editorial-card__image { min-height: 420px; order: -1; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid > div:nth-child(2) { border-right: 0; }
    .benefits-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
    .newsletter-card { grid-template-columns: 1fr; gap: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-contact { grid-column: auto; }
    .single-product div.product { grid-template-columns: 1fr; }
    .woocommerce div.product .woocommerce-tabs { grid-column: auto; }
    .related.products { grid-column: auto; }
    .woocommerce-checkout .col2-set { grid-template-columns: 1fr; }
    .woocommerce-account .woocommerce { grid-template-columns: 1fr; }
    body:not(.logged-in).woocommerce-account #customer_login { grid-template-columns: 1fr; gap: 24px; }
    body:not(.logged-in).woocommerce-account #customer_login .u-column1,
    body:not(.logged-in).woocommerce-account #customer_login .u-column2 { padding: 24px; }
}

@media (max-width: 680px) {
    body { font-size: 15px; }
    .aurelia-shell { width: min(calc(100% - 24px), var(--shell)); }
    .aurelia-topbar { font-size: 10px; }
    .header-inner { min-height: 62px; gap: 8px; }
    .site-brand { transform: translateX(7px); }
    .brand-mark { display: none; }
    .brand-name { font-size: 18px; letter-spacing: .22em; text-indent: .22em; }
    .header-actions { gap: 0; }
    .icon-button { width: 38px; height: 38px; }
    .header-actions .icon-button:first-child { display: none; }
    .home-hero { min-height: 675px; }
    .home-hero__inner { min-height: 675px; align-items: flex-start; }
    .home-hero__media { inset: 230px 0 0; background-position: 64% center; background-size: cover; }
    .home-hero__media::after { background: linear-gradient(180deg, rgba(253,249,247,1) 0%, rgba(253,249,247,.25) 28%, rgba(253,249,247,0) 55%); }
    .home-hero__copy { width: 100%; padding: 44px 6px 0; text-align: left; }
    .home-hero__copy h1 { max-width: 330px; font-size: 48px; }
    .home-hero__copy p { max-width: 340px; margin-bottom: 22px; font-size: 15px; }
    .home-hero__copy .button { min-height: 48px; }
    .service-strip__grid { grid-template-columns: 1fr 1fr; }
    .service-strip__grid > div { justify-content: flex-start; min-height: 78px; padding: 14px 12px; gap: 10px; }
    .service-strip__grid > div:nth-child(3) { display: none; }
    .service-strip__grid strong { font-size: 11px; }
    .service-strip__grid small { display: none; }
    .service-strip__grid .aurelia-icon { width: 21px; height: 21px; }
    .section { padding: 64px 0; }
    .section--categories { padding-bottom: 34px; }
    .section--products { padding-top: 34px; }
    .section-heading { align-items: center; margin-bottom: 24px; }
    .section-heading .eyebrow { display: none; }
    .section-heading h2 { font-size: 34px; }
    .section-heading .text-link { font-size: 12px; }
    .category-grid { display: flex; gap: 10px; overflow-x: auto; margin-right: -12px; padding-right: 12px; scroll-snap-type: x mandatory; }
    .category-card { flex: 0 0 42vw; scroll-snap-align: start; }
    .category-card__image { aspect-ratio: .9; }
    .category-card__body { min-height: 84px; padding: 12px; }
    .category-card__body strong { font-size: 17px; }
    .category-card__body small { display: none; }
    .woocommerce ul.products,
    ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 10px; }
    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    ul.products li.product .woocommerce-loop-product__title { min-height: 58px; font-size: 12px; }
    .woocommerce ul.products li.product .price,
    ul.products li.product .price { font-size: 14px; }
    .woocommerce ul.products li.product .button,
    ul.products li.product .button { width: 100%; min-height: 39px; padding-inline: 10px; font-size: 11px; }
    .aurelia-badge { top: 8px; left: 8px; padding: 5px 7px; font-size: 9px; }
    .finder-card { padding: 27px 22px; }
    .finder-card h2 { font-size: 36px; }
    .ingredient-orb { width: 50px; height: 50px; }
    .ingredient-list strong { font-size: 17px; }
    .editorial-card { width: calc(100% - 24px); min-height: 0; border-radius: 18px; }
    .editorial-card__image { min-height: 300px; }
    .editorial-card__copy { padding: 32px 24px 36px; }
    .editorial-card__copy h2 { font-size: 36px; }
    .editorial-card__copy p { font-size: 15px; }
    .benefits-section { padding-bottom: 58px; }
    .benefits-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid > div { min-height: 104px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; padding: 15px 13px; }
    .benefits-grid strong { font-size: 12px; }
    .benefits-grid small { font-size: 10px; }
    .newsletter-section { padding-bottom: 64px; }
    .newsletter-card { padding: 28px 22px; }
    .newsletter-form { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; padding: 54px 0 42px; }
    .footer-bottom { flex-direction: column; }
   .page-hero,
    .shop-hero { padding: 52px 0 36px; }
    .page-hero h1,
    .shop-hero h1 { font-size: 44px; }
    .content-grid,
    .contact-grid { grid-template-columns: 1fr; }
    .shop-toolbar { align-items: flex-start; flex-direction: column; }
    .shop-category-pills { overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: 4px; }
    .shop-category-pills a { white-space: nowrap; }
    .single-product .site-content { padding-top: 22px; }
    .woocommerce div.product .product_title { font-size: 22px; }
    .woocommerce div.product form.cart { flex-wrap: wrap; }
    .woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; }
    .woocommerce div.product .woocommerce-tabs ul.tabs { overflow-x: auto; }
    .woocommerce div.product .woocommerce-tabs ul.tabs li a { white-space: nowrap; }
    .woocommerce-cart .site-content,
    .woocommerce-checkout .site-content,
    .woocommerce-account .site-content { padding-top: 22px; }
    .woocommerce table.shop_table_responsive tr td,
    .woocommerce-page table.shop_table_responsive tr td { padding: 12px; }
}

/* About brand page */
.about-page { overflow: hidden; }
.about-page .section { padding: 0; }
.about-hero + .section,
.about-page .section + .section { margin-top: 50px; }
.about-hero { padding: 36px 0 0; }
.about-hero__card {
    position: relative;
    min-height: 495px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f7eeeb;
}
.about-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.about-hero__card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(250,246,243,.98) 0%, rgba(250,246,243,.92) 36%, rgba(250,246,243,.25) 58%, rgba(250,246,243,0) 72%);
}
.about-hero__copy {
    position: relative;
    z-index: 1;
    width: min(48%, 580px);
    padding: 66px 58px;
}
.about-hero__copy h1 { margin: 16px 0 22px; font-size: clamp(44px, 4.5vw, 68px); line-height: .98; }
.about-hero__copy p { max-width: 520px; margin-bottom: 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.about-story__grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(420px, 1.08fr); gap: 48px; align-items: stretch; }
.about-story__copy { align-self: center; padding: 28px 0; }
.about-story__copy h2,
.about-section-heading h2,
.about-principles h2,
.about-ingredients h2,
.about-cta h2 { margin: 14px 0 22px; font-size: clamp(38px, 4vw, 56px); line-height: 1.04; }
.about-story__copy p { color: var(--muted); font-size: 16px; line-height: 1.78; }
.about-story__copy p + p { margin-top: 16px; }
.about-story__copy .about-lead { color: var(--text); font-family: var(--serif); font-size: 23px; line-height: 1.45; }
.about-story__visual { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-soft); }
.about-story__visual img { width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; }
.about-story__visual figcaption { padding: 16px 20px 18px; color: var(--muted); font-size: 13px; }
.about-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: 48px; align-items: end; margin-bottom: 28px; }
.about-section-heading > p { padding-bottom: 8px; color: var(--muted); line-height: 1.7; }
.about-routine__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about-product-step { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-product-step__number { position: absolute; z-index: 1; top: 18px; left: 18px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.86); color: var(--accent-dark); font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.about-product-step img { width: 100%; aspect-ratio: 1 / .86; object-fit: cover; }
.about-product-step > div { padding: 22px 24px 26px; }
.about-product-step h3 { margin-bottom: 8px; font-size: 26px; }
.about-product-step p { color: var(--muted); line-height: 1.65; }
.about-principles__layout { display: grid; grid-template-columns: minmax(380px, .78fr) minmax(0, 1.22fr); gap: 20px; }
.about-principles__intro { position: relative; min-height: 620px; overflow: hidden; padding: 42px; border-radius: var(--radius); background: var(--text); color: #fff; }
.about-principles__intro p { position: relative; z-index: 1; max-width: 520px; color: rgba(255,255,255,.72); line-height: 1.75; }
.about-principles__intro .eyebrow { color: #efc2ba; }
.about-principles__intro img { position: absolute; right: -9%; bottom: -10%; width: 74%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 50%; opacity: .82; mix-blend-mode: screen; }
.about-principles__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-principles__grid article { min-height: 300px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.about-principles__grid article > span { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.about-principles__grid h3 { margin: 62px 0 14px; font-size: 27px; }
.about-principles__grid p { color: var(--muted); line-height: 1.68; }
.about-ingredients__card { display: grid; grid-template-columns: 1.02fr .98fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fffaf8; }
.about-ingredients__copy { padding: 54px 58px; }
.about-ingredients__copy > p { color: var(--muted); line-height: 1.75; }
.about-ingredients__copy .about-note { margin: 20px 0 26px; padding: 15px 18px; border-left: 2px solid var(--accent); background: rgba(203,109,112,.07); font-size: 13px; }
.about-ingredients__visual { position: relative; min-height: 540px; background: radial-gradient(circle at 58% 42%, #fff 0 8%, #f6e8e4 9% 38%, #ecd2cb 39% 100%); }
.about-ingredient-orb { position: absolute; display: grid; place-items: end center; overflow: hidden; border: 8px solid rgba(255,255,255,.74); border-radius: 50%; box-shadow: 0 20px 50px rgba(100,65,58,.15); background-size: cover; background-position: center; }
.about-ingredient-orb::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(47,33,29,.72)); }
.about-ingredient-orb span { position: relative; z-index: 1; padding: 0 12px 17px; color: #fff; font-size: 13px; font-weight: 600; }
.about-ingredient-orb--niacinamide { top: 52px; left: 48px; width: 220px; height: 220px; background-image: radial-gradient(circle at 35% 32%, #e79694 0 12%, #933d43 13% 36%, #61272c 37% 100%); }
.about-ingredient-orb--squalane { right: 44px; bottom: 42px; width: 250px; height: 250px; background-image: radial-gradient(circle at 35% 30%, #fff4a8 0 14%, #e8ad22 15% 45%, #b27200 46% 100%); }
.about-ingredient-orb--peony { top: 76px; right: 38px; width: 156px; height: 156px; background-image: radial-gradient(circle at 50% 45%, #fff5f6 0 17%, #e9a8ba 18% 54%, #bd6e8b 55% 100%); }
.about-cta { padding-bottom: 76px !important; }
.about-cta__card { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 46px 52px; border-radius: var(--radius); background: linear-gradient(135deg, #f2d9d3, #fff8f5); }
.about-cta__card h2 { max-width: 700px; margin-bottom: 14px; }
.about-cta__card p { max-width: 760px; color: var(--muted); line-height: 1.7; }
.about-cta__card .button { flex: 0 0 auto; }

@media (max-width: 980px) {
    .about-hero__copy { width: 61%; padding: 48px 38px; }
    .about-hero__card::after { background: linear-gradient(90deg, rgba(250,246,243,.98) 0%, rgba(250,246,243,.9) 52%, rgba(250,246,243,.15) 80%); }
    .about-story__grid,
    .about-principles__layout,
    .about-ingredients__card { grid-template-columns: 1fr; }
    .about-story__visual img { aspect-ratio: 1.5 / 1; }
    .about-principles__intro { min-height: 520px; }
    .about-ingredients__visual { min-height: 480px; }
}

@media (max-width: 760px) {
    .about-hero + .section,
    .about-page .section + .section { margin-top: 36px; }
    .about-hero { padding-top: 22px; }
    .about-hero__card { min-height: 570px; }
    .about-hero__image { object-position: 64% center; opacity: .58; }
    .about-hero__card::after { background: linear-gradient(180deg, rgba(250,246,243,.96) 0%, rgba(250,246,243,.88) 58%, rgba(250,246,243,.6) 100%); }
    .about-hero__copy { width: 100%; padding: 36px 26px; }
    .about-hero__copy h1 { font-size: 44px; }
    .about-story__grid { grid-template-columns: 1fr; gap: 24px; }
    .about-story__copy { padding: 0; }
    .about-section-heading { grid-template-columns: 1fr; gap: 4px; }
    .about-routine__grid,
    .about-principles__grid { grid-template-columns: 1fr; }
    .about-principles__intro { min-height: 500px; padding: 32px 26px; }
    .about-principles__grid article { min-height: 240px; padding: 28px 26px; }
    .about-principles__grid h3 { margin-top: 44px; }
    .about-ingredients__copy { padding: 36px 26px; }
    .about-ingredients__visual { min-height: 420px; }
    .about-ingredient-orb--niacinamide { top: 34px; left: 24px; width: 180px; height: 180px; }
    .about-ingredient-orb--squalane { right: 24px; bottom: 28px; width: 210px; height: 210px; }
    .about-ingredient-orb--peony { top: 48px; right: 20px; width: 128px; height: 128px; }
    .about-cta { padding-bottom: 54px !important; }
    .about-cta__card { align-items: flex-start; flex-direction: column; padding: 34px 26px; }
}
