/*!
Theme Name: Pure Para
Theme URI: http://underscores.me/
Author: Pure Para
Author URI: http://underscores.me/
Description: Parapharmacie en ligne — custom WooCommerce theme for Pure Para, based on Underscores (_s).
Version: 1.0.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: pure-para
Tags: custom-background, custom-logo, custom-menu, featured-images, e-commerce, woocommerce

Pure Para is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.
*/

/*--------------------------------------------------------------
# Design tokens
--------------------------------------------------------------*/
:root {
    --pink: #b83c91;
    --pink-dark: #98266f;
    --pink-soft: #f8eaf3;
    --ink: #282426;
    --muted: #716b6f;
    --paper: #fbfaf8;
    --mint: #eef5f1;
    --line: #eadfe6;
    --green: #114f43;
    --white: #fff;
    --shadow: 0 14px 38px #39263512;
    --radius: 22px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.5 Inter, Arial, sans-serif;
}

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

a:hover {
    color: var(--pink);
}

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

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
}

/*--------------------------------------------------------------
# Buttons / pills
--------------------------------------------------------------*/
.pill,
.button,
button.button,
a.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .widget_price_filter .price_slider_amount .button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    background: var(--pink);
    color: #fff;
    transition: transform .22s ease, background .22s ease, box-shadow .22s ease;
}

.pill:hover,
.button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
    background: var(--pink-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px #b83c9128;
}

.pill.outline {
    background: #fff;
    color: var(--ink);
    border: 1px solid #d8cbd3;
}

.pill.outline:hover {
    color: var(--pink);
    border-color: var(--pink);
}

/*--------------------------------------------------------------
# Topline + Header
--------------------------------------------------------------*/
.topline {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 12px;
    letter-spacing: .04em;
}

.topline strong {
    color: #f4c4e2;
}

.site-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #eee7ec;
}

.site-header .nav {
    max-width: 1240px;
    margin: auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-logo {
    flex: none;
}

.site-logo img {
    display: block;
    width: auto;
    max-height: 54px;
}

.site-logo .site-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--pink);
    letter-spacing: -.03em;
}

.main-navigation {
    margin: auto;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

.main-navigation a {
    position: relative;
    color: #454044;
    padding: 4px 0;
}

.main-navigation a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -4px;
    height: 2px;
    background: var(--pink);
    transition: right .25s ease;
}

.main-navigation a:hover::after,
.main-navigation .current-menu-item>a::after {
    right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    border: 1px solid var(--line);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--ink);
    position: relative;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.icon-btn:hover {
    transform: rotate(-8deg);
    background: var(--pink-soft);
    color: var(--pink);
}

.icon-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--pink);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    display: grid;
    place-items: center;
}

.menu-toggle-btn {
    display: none;
}

/* Search: round toggle button + hidden floating box (matches prototype) */
.searchbox {
    display: none;
    position: absolute;
    right: 28px;
    top: 78px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 12px;
    box-shadow: var(--shadow);
    width: min(360px, calc(100vw - 40px));
    z-index: 30;
}

.searchbox.open {
    display: block;
}

.searchbox form {
    margin: 0;
}

.searchbox input[type="search"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 11px 12px;
    outline-color: var(--pink);
}

/*--------------------------------------------------------------
# Cart drawer
--------------------------------------------------------------*/
.cart-backdrop {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: #20171d66;
    opacity: 0;
    transition: opacity .28s ease;
}

.cart-backdrop[hidden] {
    display: none;
}

.cart-backdrop.show {
    opacity: 1;
}

.cart-drawer {
    position: fixed;
    z-index: 41;
    top: 0;
    right: 0;
    width: min(440px, 100vw);
    height: 100vh;
    height: 100dvh;
    padding: 26px;
    display: flex;
    flex-direction: column;
    background: var(--paper);
    box-shadow: -18px 0 60px #20171d24;
    transform: translateX(102%);
    transition: transform .38s cubic-bezier(.2, .75, .25, 1), visibility .38s;
    visibility: hidden;
}

.cart-drawer.open {
    transform: translateX(0);
    visibility: visible;
}

/* Account for the WordPress admin bar when logged in */
.admin-bar .cart-drawer {
    top: 32px;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
    .admin-bar .cart-drawer {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }
}

.cart-drawer[aria-hidden="true"] {
    pointer-events: none;
}

.cart-drawer.open {
    pointer-events: auto;
}

.cart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.cart-head h2 {
    margin: 4px 0 0;
    font-size: 26px;
    letter-spacing: -.03em;
}

.cart-head h2 span {
    font-size: 16px;
    color: var(--muted);
    font-weight: 500;
}

.cart-head .icon-btn {
    font-size: 24px;
    color: var(--muted);
}

/* The fragment wrapper is a transparent flex passthrough so .cart-empty /
   .cart-items / .cart-foot lay out exactly like the prototype (which has no
   wrapper): the list grows (flex:1) and the footer sits at the bottom.
   NOTE: WooCommerce cart fragments replace this element and keep ONLY the
   `widget_shopping_cart_content` class (dropping `cart-drawer-body`), so the
   layout must be keyed off `widget_shopping_cart_content`. */
.cart-drawer .cart-drawer-body,
.cart-drawer .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

/* Empty state — centered; footer stays pinned to the bottom via margin-top:auto */
.cart-empty {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.cart-empty-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--pink-soft);
    color: var(--pink);
    font-size: 32px;
    margin-bottom: 16px;
}

.cart-empty strong {
    font-size: 18px;
}

.cart-empty p {
    color: var(--muted);
    font-size: 13px;
    margin: 6px 0 0;
}

.cart-empty .pill {
    margin-top: 16px;
}

/* Item list */
.cart-drawer ul.cart-items {
    list-style: none;
    margin: 0;
    padding: 16px 0;
    flex: 1;
    overflow-y: auto;
}

.cart-drawer .cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 13px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.cart-drawer .cart-item img {
    width: 74px;
    height: 78px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    margin: 0;
    float: none;
}

.cart-drawer .cart-item h3 {
    font-size: 14px;
    line-height: 1.25;
    margin: 0 0 5px;
    font-weight: 650;
    color: var(--ink);
}

.cart-drawer .cart-item-price {
    font-size: 13px;
    color: var(--muted);
}

.cart-drawer .cart-qty {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 9px;
}

.cart-drawer .cart-qty .pp-qty-btn {
    width: 25px;
    height: 25px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    display: grid;
    place-items: center;
    line-height: 1;
    font-size: 14px;
    text-decoration: none;
}

.cart-drawer .cart-qty .pp-qty-btn:hover {
    border-color: var(--pink);
    color: var(--pink);
}

.cart-drawer .cart-qty .pp-qty-value {
    min-width: 18px;
    text-align: center;
    font-weight: 650;
}

.cart-drawer .cart-item .remove.cart-remove {
    position: absolute;
    right: 0;
    top: 13px;
    width: 22px;
    height: 22px;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    color: #998f95 !important;
}

.cart-drawer .cart-item .remove.cart-remove:hover {
    background: transparent;
    color: var(--pink) !important;
}

/* Footer: subtotal, note, checkout button */
.cart-drawer .cart-foot {
    border-top: 1px solid var(--line);
    padding-top: 18px;
    margin-top: auto;
    flex: 0 0 auto;
}

.cart-drawer .cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
}

.cart-drawer .cart-foot p {
    font-size: 11px;
    color: var(--muted);
    margin: 8px 0 16px;
}

.cart-drawer .cart-checkout {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cart-drawer .cart-checkout span {
    font-size: 18px;
}

/* Loading state while fragments refresh */
.cart-drawer-body.loading {
    opacity: .5;
    pointer-events: none;
}

/*--------------------------------------------------------------
# Hero
--------------------------------------------------------------*/
.hero {
    max-width: 1240px;
    margin: 26px auto 0;
    padding: 0 28px;
}

.hero-inner {
    border-radius: 30px;
    padding: 54px 56px;
    min-height: 420px;
    background: radial-gradient(ellipse at 83% 21%, #f9e8f3 0, transparent 30%),
        linear-gradient(110deg, #f1f6f2 0, #fff 56%, #f5e9f0 100%);
    position: relative;
    overflow: hidden;
}

.hero-inner>.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 64%;
}

.eyebrow {
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.03;
    letter-spacing: -.045em;
    margin: 16px 0 18px;
}

.hero p {
    color: #595256;
    font-size: 18px;
    max-width: 540px;
    margin: 0 0 25px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-meta {
    display: flex;
    gap: 25px;
    margin-top: 34px;
    color: #4c454a;
    font-size: 12px;
    font-weight: 650;
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta b {
    color: var(--pink);
    font-size: 17px;
}

.hero-logo {
    position: absolute;
    z-index: 1;
    right: 4%;
    top: 30%;
    width: min(30%, 300px);
    opacity: .18;
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
.section {
    max-width: 1240px;
    margin: 0 auto;
    padding: 70px 28px;
}

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

.section h2 {
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 8px 0 0;
}

.section-head p {
    max-width: 440px;
    color: var(--muted);
    margin: 0;
}

.cat-section {
    background: var(--mint);
    padding: 66px 0;
}

.cat-section .section-head,
.cat-section .category-list {
    max-width: 1184px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 28px;
}

.category-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.category-list a {
    background: #fff;
    border: 1px solid #e7e6e1;
    border-radius: 14px;
    padding: 13px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 750;
}

.category-list a:hover {
    border-color: #cc80b4;
    color: var(--pink);
}

.category-list .count {
    color: var(--muted);
    font-weight: 500;
    margin-left: auto;
}

/*--------------------------------------------------------------
# Trust / services strip
--------------------------------------------------------------*/
.trust {
    max-width: 1184px;
    margin: 0 auto 70px;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.trust article {
    background: #fff;
    border: 1px solid #eee7ec;
    border-radius: 18px;
    padding: 20px;
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.trust-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--pink-soft);
    color: var(--pink);
    display: grid;
    place-items: center;
    font-size: 20px;
    flex: none;
}

.trust strong {
    font-size: 14px;
}

.trust p {
    font-size: 12px;
    color: var(--muted);
    margin: 3px 0 0;
}

/*--------------------------------------------------------------
# WooCommerce product grid
--------------------------------------------------------------*/
.woocommerce ul.products,
.woocommerce-page ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 30px;
    padding: 0;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    width: auto !important;
    margin: 0 !important;
    float: none !important;
    background: #fff;
    border: 1px solid #eee7ec;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 7px 20px #39263508;
    transition: transform .2s, box-shadow .2s;
    text-align: left;
    padding: 0;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.woocommerce ul.products li.product a img {
    margin: 0;
    border-radius: 0;
    background: linear-gradient(140deg, #fbf4f8, #f1f6f2);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 14px;
    width: 100%;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 4px 17px 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 650;
    min-height: 42px;
}

.woocommerce ul.products li.product .price {
    display: block;
    padding: 8px 17px 0;
    color: var(--ink);
    font-weight: 800;
    font-size: 17px;
}

.woocommerce ul.products li.product .price del {
    color: #9b9298;
    font-weight: 500;
    font-size: 13px;
    margin-right: 6px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce ul.products li.product .button {
    margin: 13px 17px 18px;
    border-radius: 10px;
    font-size: 13px;
    display: inline-block;
}

/* The slide-in drawer replaces the post-add "View cart" link, so hide it. */
.woocommerce ul.products li.product .added_to_cart {
    display: none !important;
}

.woocommerce span.onsale {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--pink);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 800;
    min-height: 0;
    min-width: 0;
    line-height: 1;
}

/*--------------------------------------------------------------
# WooCommerce single product + general
--------------------------------------------------------------*/
.woocommerce div.product .product_title {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -.03em;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: var(--pink-dark);
    font-weight: 800;
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    border-top-color: var(--pink);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--pink);
}

.woocommerce-store-notice,
p.demo_store {
    background: var(--green);
}

.site-main {
    max-width: 1240px;
    margin: 30px auto;
    padding: 0 28px;
}

.woocommerce-breadcrumb {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 20px;
}

/* Shop sidebar (boutique layout) */
.woocommerce .widget-area .widget,
.widget_product_categories,
.widget_product_search {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 18px;
}

.widget-title {
    font-size: 16px;
    margin: 0 0 12px;
}

.widget_product_categories ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 4px;
}

.widget_product_categories li a {
    display: inline-block;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 13px;
}

.widget_product_categories li a:hover {
    background: var(--pink-soft);
    color: var(--pink-dark);
}

/*--------------------------------------------------------------
# Feature banner
--------------------------------------------------------------*/
.feature {
    max-width: 1184px;
    margin: 70px auto;
    padding: 0 28px;
}

.feature-box {
    border-radius: 28px;
    padding: 48px 54px;
    background: var(--green);
    color: #fff;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    align-items: center;
    gap: 30px;
    position: relative;
    overflow: hidden;
}

.feature-box h2 {
    font-size: 36px;
    line-height: 1.1;
    margin: 10px 0 14px;
}

.feature-box p {
    color: #dce9e3;
    margin: 0 0 22px;
}

.feature-box .eyebrow {
    color: #f2b6da;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background: linear-gradient(112deg, #f1f6f2 0%, #fff 54%, #f7edf3 100%);
    border-top: 1px solid #eee7ec;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

/* Decorative concentric ring glow in the top-right (matches prototype) */
.site-footer::before {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    right: 6%;
    top: -255px;
    border: 1px solid #dfc4d6;
    border-radius: 50%;
    box-shadow: 0 0 0 24px #eedce866, 0 0 0 25px #e8d3e166, 0 0 0 50px #f4eaf166;
    pointer-events: none;
}

.footer-inner {
    max-width: 1184px;
    margin: auto;
    padding: 44px 28px 25px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 30px;
    position: relative;
    z-index: 1;
}

/* Footer menu columns: no list bullets, stacked links */
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col li {
    margin: 0;
}

.footer-logo {
    display: inline-block;
    width: 210px;
    max-width: 100%;
}

.footer-logo img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer p,
.site-footer a {
    font-size: 13px;
    color: var(--muted);
}

/* Footer phone/email: make each an adequately sized, spaced touch target
   (>=44px tall) instead of tight inline text. */
.site-footer .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
}

.site-footer .footer-contact a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: fit-content;
    max-width: 100%;
}

.site-footer .footer-contact a:hover {
    color: var(--pink);
}

/* Copyright line + agency credit stacked beneath it. */
.copyright .copyright-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer .footer-credit {
    font-size: 11px;
    color: #8b8388;
}

.site-footer .footer-credit a {
    font-weight: 700;
    color: inherit;
}

.site-footer .footer-credit a:hover {
    color: var(--pink);
}

.site-footer h4,
.site-footer .footer-col-title {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a:hover {
    color: var(--pink);
}

.copyright {
    max-width: 1128px;
    margin: auto;
    padding: 16px 28px 22px;
    border-top: 1px solid #eee7ec;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    color: #8b8388;
    font-size: 11px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.copyright a {
    color: inherit;
}

.copyright a+a {
    margin-left: 14px;
}

/*--------------------------------------------------------------
# Accessibility (screen-reader text from _s)
--------------------------------------------------------------*/
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #eee;
    clip: auto !important;
    clip-path: none;
    color: #444;
    display: block;
    font-size: 1em;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1100px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-inner>.hero-copy {
        max-width: 78%;
    }
}

@media (max-width: 950px) {
    .main-navigation {
        display: none;
    }

    .site-header .nav {
        justify-content: space-between;
        gap: 14px;
    }

    .menu-toggle-btn {
        display: grid;
    }

    .main-navigation.toggled {
        display: block;
        position: absolute;
        top: 100%;
        left: 14px;
        right: 14px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        padding: 8px;
        box-shadow: 0 16px 35px #39263518;
    }

    .main-navigation.toggled ul {
        flex-direction: column;
        gap: 0;
    }

    .main-navigation.toggled a {
        display: block;
        padding: 12px 13px;
    }

    .feature-box {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
}

@media (max-width: 650px) {

    .woocommerce ul.products,
    .woocommerce-page ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .category-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-inner {
        padding: 32px 24px;
    }

    .hero-inner>.hero-copy {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 40px;
    }

    .section {
        padding: 48px 16px;
    }

    .footer-inner {
        grid-template-columns: 1fr 1fr;
    }

    .feature-box {
        padding: 32px 24px;
    }
}

/* =====================================================================
 * Mobile header: floating search + cart buttons (matches prototype index.html)
 * On small screens the search and cart move to fixed buttons at the
 * bottom-right; the cart is a solid pink FAB with a white count badge.
 * ===================================================================== */
@media (max-width: 650px) {
    .site-header .nav {
        padding: 10px 13px;
        gap: 8px;
    }

    .site-header .site-logo {
        width: clamp(105px, 31vw, 132px);
    }

    .site-header .nav-actions {
        margin-left: auto;
        gap: 7px;
        flex: 0 0 auto;
    }

    .site-header .menu-toggle-btn {
        display: grid;
        flex: none;
        width: 38px;
        height: 38px;
    }

    .site-header .nav-actions .pill {
        font-size: 10px;
        padding: 10px 11px;
        white-space: nowrap;
        line-height: 1.2;
    }

    /* Search + cart become fixed floating buttons, bottom-right. */
    .site-header #pp-search-toggle,
    .site-header .cart-trigger {
        position: fixed;
        right: 16px;
        width: 48px;
        height: 48px;
        z-index: 15;
        background: #fff;
        box-shadow: 0 5px 15px #39263524, 0 1px 3px #39263510;
    }

    .site-header #pp-search-toggle {
        bottom: 84px;
    }

    .site-header .cart-trigger {
        bottom: 24px;
        background: var(--pink);
        border-color: var(--pink-dark);
        color: #fff;
        box-shadow: 0 7px 18px #b83c9140, 0 2px 4px #39263514;
    }

    /* Keep the floating buttons upright (no rotate) on tap/hover. */
    .site-header #pp-search-toggle:hover,
    .site-header .cart-trigger:hover {
        transform: none;
    }

    .site-header .cart-trigger:hover {
        background: var(--pink-dark);
    }

    .site-header .cart-trigger .cart-count {
        top: -3px;
        right: -3px;
        background: #fff;
        color: var(--pink);
        box-shadow: 0 1px 5px #39263520;
    }

    /* Search panel opens as a fixed box above the floating buttons. */
    .site-header .searchbox.open {
        position: fixed;
        top: auto;
        right: 16px;
        bottom: 144px;
        z-index: 16;
        width: min(340px, calc(100vw - 32px));
        box-shadow: 0 10px 32px #39263520;
    }

    /* Cart drawer fills the whole screen and covers the header. */
    .cart-backdrop {
        z-index: 60;
    }

    .cart-drawer {
        width: 100vw;
        max-width: 100vw;
        top: 0;
        height: 100vh;
        height: 100dvh;
        z-index: 61;
        padding: 20px;
    }

    .admin-bar .cart-drawer {
        top: 0;
        height: 100vh;
        height: 100dvh;
    }
}


/* =====================================================================
 * Legal pages (Mentions légales, Confidentialité, CGV) — Pure Para chart
 * ===================================================================== */
.pp-legal {
    font-family: Inter, Arial, sans-serif;
    color: var(--ink)
}

.pp-legal .pp-legal-intro {
    max-width: 680px;
    color: var(--muted);
    font-size: 17px;
    margin: 0 0 24px
}

.pp-legal .legal-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0
}

.pp-legal .legal-notice {
    margin: 0 0 22px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff7e9;
    border: 1px solid #f0dfbf;
    color: #795b26;
    font-size: 13px
}

.pp-legal .legal-document {
    padding: 34px 38px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 10px 26px #39263508
}

.pp-legal .legal-document section+section {
    margin-top: 26px
}

.pp-legal .legal-document h2 {
    font-size: 20px;
    margin: 0 0 10px;
    letter-spacing: -.02em;
    color: var(--ink)
}

.pp-legal .legal-document h3 {
    font-size: 16px;
    margin: 18px 0 7px;
    color: var(--ink)
}

.pp-legal .legal-document p {
    margin: 7px 0;
    color: #625b60;
    font-size: 14px;
    line-height: 1.75
}

.pp-legal .legal-document ul {
    padding-left: 20px;
    margin: 8px 0
}

.pp-legal .legal-document li {
    color: #625b60;
    font-size: 14px;
    line-height: 1.75
}

.pp-legal .legal-document a {
    color: var(--pink-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px
}

.pp-legal .legal-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px
}

.pp-legal .legal-data div {
    padding: 15px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 13px
}

.pp-legal .legal-data small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em
}

.pp-legal .legal-data strong {
    display: block;
    margin-top: 4px;
    font-size: 14px
}

/* Brand page shell for the legal pages (title header + centered content). */
body.page .site-main:has(.pp-legal) {
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px 28px 70px;
}

body.page .site-main:has(.pp-legal) .entry-header {
    padding: 40px 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

body.page .site-main:has(.pp-legal) .entry-title {
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0;
}

@media(max-width:650px) {
    body.page .site-main:has(.pp-legal) {
        padding: 8px 14px 50px;
    }

    .pp-legal .legal-document {
        padding: 24px 18px
    }

    .pp-legal .legal-data {
        grid-template-columns: 1fr
    }

    .pp-legal .pp-legal-intro {
        font-size: 15px
    }
}