/*
Theme Name:        Her Peptides
Theme URI:         https://herpeptides.com/
Author:            Her Peptides
Author URI:        https://herpeptides.com/
Description:       A WooCommerce-ready storefront for peptide and peptide-skincare retail. Ships a mega-menu header driven entirely by WordPress menus, a front page assembled from Customizer sections and real product data, dosing-calculator page templates, and full cart/checkout overrides. Translation-ready and tested with Polylang and WPML.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      7.0
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       herpeptides
Domain Path:       /languages
Tags:              e-commerce, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, translation-ready, rtl-language-support, block-styles, wide-blocks
WC requires at least: 8.0
WC tested up to:   9.9

Her Peptides is distributed under the GPL. Bundled libraries keep their own
licences — see readme.txt.

--------------------------------------------------------------------------
This file exists for the theme header above and for child themes to inherit.
The design itself lives in assets/css/, enqueued per template in
inc/enqueue.php:

    style.css       design tokens, shared layout, footer
    navigation.css  header, mega menus, search sheet, drawer
    shop.css        catalogue + product cards
    product.css     single product
    commerce.css    shared cart/checkout shell
    cart.css        cart page
    checkout.css    checkout page
    hp-woo.css      bridges WooCommerce's own markup onto the design
    blog.css        research centre + editorial
    calculator.css  peptide dosing calculator
    visualizer.css  BAC water calculator
--------------------------------------------------------------------------
*/

/* Only WordPress-specific base rules belong here — everything else is in
   assets/css/. Keeping this short means a child theme can override cleanly. */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .e-con-boxed, .e-con-boxed > .e-con-inner {
        max-width: 540px !important;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .e-con-boxed, .e-con-boxed > .e-con-inner {
        max-width: 720px !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .e-con-boxed, .e-con-boxed > .e-con-inner {
        max-width: 960px !important;
    }
}

/* X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .e-con-boxed, .e-con-boxed > .e-con-inner {
        max-width: 1140px !important;
    }
}

/* XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .e-con-boxed, .e-con-boxed > .e-con-inner {
        max-width: 1380px !important;
    }
}

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

.screen-reader-text:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    display: block;
    width: auto;
    height: auto;
    clip: auto;
    clip-path: none;
    border-radius: 8px;
    background: #fff;
    padding: 12px 22px;
    color: #c8447e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(120, 90, 105, .2);
}

/* WordPress core alignment + caption classes */

.alignleft {
    float: left;
    margin: 6px 24px 12px 0;
}

.alignright {
    float: right;
    margin: 6px 0 12px 24px;
}

.aligncenter {
    display: block;
    margin: 12px auto;
}

.alignwide {
    max-width: 1100px;
    margin-right: auto;
    margin-left: auto;
}

.alignfull {
    max-width: none;
}

.wp-caption {
    max-width: 100%;
    margin-bottom: 18px;
}

.wp-caption img {
    display: block;
    border-radius: 12px;
}

.wp-caption-text,
.wp-block-image figcaption {
    margin-top: 8px;
    color: #82797c;
    font-size: 12.5px;
    text-align: center;
}

.gallery-caption,
.bypostauthor,
.sticky {
    display: block;
}

.wp-block-button__link {
    border-radius: 10px;
    background: #e05c96;
}

.skip-link {
    display: block;
}

/* ==========================================================================
   Theme-only components
   Classes the design's stylesheets have no equivalent for, because the static
   templates had no sidebar, comments, pagination or author box.
   ========================================================================== */

.brand-logo {
    display: block;
    max-height: 64px;
    width: auto;
}

/* ------------------------------- trust strip ------------------------------- */

/* Same reasoning as the breadcrumbs below: hp_trust_strip() closes editorial
   templates as well as shop ones, and those never enqueue shop.css. */

.shop-trust {
    margin-top: 56px;
    padding: 26px 0;
    background: var(--pink-tint);
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-row li {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 0 20px;
}

.trust-row li + li {
    border-left: 1px solid #f6d7e4;
}

.trust-row i {
    flex: none;
    color: var(--pink);
    font-size: 26px;
    line-height: 1;
}

.trust-row img {
    flex: none;
    opacity: .9;
}

.trust-row span {
    color: #6d6367;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

/* The breakpoints live here too. In shop.css they never reached the calculator
   or blog pages, which kept five squeezed columns on a phone. An item gets a
   divider only when it is not the first in its grid row. */
@media (max-width: 1199.98px) {
    .trust-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 18px;
    }

    .trust-row li:nth-child(3n+1) {
        border-left: 0;
    }
}

@media (max-width: 767.98px) {
    .trust-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-row li {
        padding: 0 12px;
    }

    .trust-row li:nth-child(3n+1) {
        border-left: 1px solid #f6d7e4;
    }

    .trust-row li:nth-child(odd) {
        border-left: 0;
    }
}

@media (max-width: 575.98px) {
    .trust-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .trust-row li {
        border-left: 0 !important;
    }
}

/* ------------------------------- breadcrumbs ------------------------------- */

/* hp_breadcrumbs() runs on every template, so this cannot live in shop.css. */

.crumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
    color: #82797c;
    font-size: 13px;
}

.crumbs a {
    color: #82797c;
}

.crumbs a:hover {
    color: #e05c96;
}

.crumbs li + li::before {
    margin-right: 8px;
    color: #cdbcc4;
    content: "\203A";
}

.crumbs .is-current {
    color: #23201f;
}

/* ------------------------------- post grid ------------------------------- */

/* The design's .rc-grid is built for its compact resource cards; the WordPress
   loop uses the taller .blog-card, which needs room for its lifted body panel. */
.hp-post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 8px 26px;
}

@media (max-width: 575.98px) {
    .hp-post-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* -------------------------------- entries -------------------------------- */

.hp-entry-media {
    margin: 0 0 26px;
}

.hp-entry-media img {
    width: 100%;
    border-radius: 18px;
}

.hp-entry-media figcaption {
    margin-top: 9px;
    color: #82797c;
    font-size: 12.5px;
    text-align: center;
}

.hp-entry-content {
    color: #4c4447;
    font-size: 16px;
    line-height: 1.85;
}

.hp-entry-content > * + * {
    margin-top: 1.1em;
}

/*
 * These are prose rules — the rhythm of a written article. A page builder
 * renders the theme's own sections inside this same wrapper, where a heading is
 * part of a component rather than a paragraph break, and inheriting a 1.6em top
 * margin pushes an accordion header off its own row.
 *
 * :where() drops the specificity of these two to a single class, so any
 * component rule (.sec-head h2, .feature-body h3, …) wins on its own turf while
 * a genuine article heading, which nothing else styles, is unaffected.
 */
.hp-entry-content :where(h2) {
    margin-top: 1.8em;
    font-size: 27px;
}

.hp-entry-content :where(h3) {
    margin-top: 1.6em;
    font-size: 21px;
}

.hp-entry-content a {
    color: #c8447e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hp-entry-content blockquote {
    margin: 1.6em 0;
    border-left: 3px solid #e05c96;
    background: #fdeef4;
    padding: 18px 22px;
    border-radius: 0 12px 12px 0;
    font-family: "Playfair", Georgia, serif;
    font-size: 19px;
}

.hp-entry-content blockquote p:last-child {
    margin-bottom: 0;
}

/*
 * Prose again — see the note on the headings above. `height: auto` is right for
 * an image dropped into an article and wrong for one that is part of a
 * component, where it silently defeats object-fit: a box that always matches the
 * source's aspect ratio has nothing left to fit.
 */
.hp-entry-content :where(img) {
    height: auto;
    border-radius: 12px;
}

.hp-entry-content ul,
.hp-entry-content ol {
    padding-left: 1.3em;
}

.hp-entry-content li + li {
    margin-top: .4em;
}

.hp-entry-content code {
    border-radius: 5px;
    background: #fdeef4;
    padding: 2px 6px;
    color: #c8447e;
    font-size: .9em;
}

.hp-entry-content pre {
    overflow-x: auto;
    border-radius: 12px;
    background: #23201f;
    padding: 18px 20px;
    color: #f6eef1;
    font-size: 13.5px;
}

.hp-entry-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.hp-entry-content th,
.hp-entry-content td {
    border-bottom: 1px solid #f2dbe4;
    padding: 10px 8px;
    text-align: left;
}

.hp-entry-footer {
    margin-top: 34px;
    border-top: 1px solid #f2dbe4;
    padding-top: 22px;
}

.hp-entry-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
}

.hp-entry-tags span {
    color: #82797c;
    font-weight: 600;
}

.hp-entry-tags a {
    border-radius: 30px;
    background: #fdeef4;
    padding: 4px 12px;
    color: #c8447e;
    font-weight: 600;
}

.hp-entry-tags a:hover {
    background: #fbdfe9;
}

.hp-author {
    display: flex;
    gap: 16px;
    margin-top: 26px;
    border: 1px solid #f2dbe4;
    border-radius: 16px;
    padding: 20px;
}

.hp-author-avatar {
    flex: none;
    border-radius: 50%;
}

.hp-author strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14.5px;
}

.hp-author p {
    margin: 0;
    color: #776e71;
    font-size: 13.5px;
    line-height: 1.7;
}

.hp-page-links {
    margin-top: 24px;
    font-size: 13.5px;
    font-weight: 600;
}

.hp-page-links a {
    color: #c8447e;
}

/* ------------------------------ post navigation ------------------------------ */

.hp-post-nav .nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 34px;
}

.hp-post-nav a {
    display: block;
    height: 100%;
    border: 1px solid #f2dbe4;
    border-radius: 14px;
    padding: 16px 18px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.hp-post-nav a:hover {
    border-color: #e05c96;
    box-shadow: 0 8px 20px rgba(200, 130, 165, .16);
}

.hp-post-nav .nav-next a {
    text-align: right;
}

.hp-nav-label {
    display: block;
    margin-bottom: 5px;
    color: #e05c96;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.hp-nav-title {
    display: block;
    color: #23201f;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

@media (max-width: 575.98px) {
    .hp-post-nav .nav-links {
        grid-template-columns: minmax(0, 1fr);
    }

    .hp-post-nav .nav-next a {
        text-align: left;
    }
}

/* -------------------------------- pagination -------------------------------- */

.hp-pager ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.hp-pager ul li > a,
.hp-pager ul li > span {
    display: grid;
    min-width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid #f2dbe4;
    border-radius: 10px;
    color: #574f52;
    background: #fff;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.hp-pager ul li a:hover {
    border-color: #e05c96;
    color: #c8447e;
    background: #fdeef4;
}

.hp-pager ul li span.current {
    border-color: #e05c96;
    color: #fff;
    background: #e05c96;
}

/* --------------------------------- sidebar --------------------------------- */

.woocommerce-page .hp-sidebar {
    position: sticky;
    top: 96px;
}

.hp-widget {
    margin-bottom: 22px;
    border: 1px solid #f7e7ee;
    border-radius: 16px;
    background: #fff;
    padding: 20px;
}

/* The block widget editor wraps everything in .widget_block and prints its own
   headings, so style those the same as a classic widget title. */
.hp-widget .widget-title,
.hp-widget > h1,
.hp-widget > h2,
.hp-widget > h3,
.hp-widget .wp-block-heading {
    margin: 0 0 14px;
    color: #23201f;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

.hp-widget .wp-block-search__label {
    display: block;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 600;
}

.hp-widget .wp-block-search__inside-wrapper {
    gap: 8px;
}

.hp-widget input[type="search"],
.hp-widget .wp-block-search__input {
    width: 100%;
    border: 1px solid #f0d9e3;
    border-radius: 10px;
    background: #fff;
    padding: 10px 14px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
}

.hp-widget input[type="search"]:focus,
.hp-widget .wp-block-search__input:focus {
    border-color: #e05c96;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(224, 92, 150, .13);
}

.hp-widget .wp-block-search__button,
.hp-widget button[type="submit"],
.hp-widget input[type="submit"] {
    border: 0;
    border-radius: 10px;
    background: #e05c96;
    padding: 10px 18px;
    color: #fff;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.hp-widget .wp-block-search__button:hover,
.hp-widget button[type="submit"]:hover {
    background: #c8447e;
}

.hp-widget .wp-block-latest-posts__post-date,
.hp-widget .post-date {
    display: block;
    color: #a2969b;
    font-size: 11.5px;
}

.hp-widget .wp-block-latest-comments {
    padding-left: 0;
}

.hp-widget .wp-block-latest-comments__comment {
    margin-bottom: 10px;
    font-size: 13.5px;
    line-height: 1.6;
}

.hp-widget ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hp-widget li {
    padding: 6px 0;
    font-size: 14px;
}

.hp-widget li + li {
    border-top: 1px solid #f9eef2;
}

.hp-widget a {
    color: #574f52;
}

.hp-widget a:hover {
    color: #c8447e;
}

@media (max-width: 991.98px) {
    .hp-sidebar {
        position: static;
        margin-top: 32px;
    }
}

/* ------------------------------- search form ------------------------------- */

.hp-searchform {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #f0d9e3;
    border-radius: 40px;
    background: #fff;
    padding: 5px 5px 5px 16px;
}

.hp-searchform:focus-within {
    border-color: rgba(224, 92, 150, .45);
    box-shadow: 0 0 0 3px rgba(224, 92, 150, .13);
}

.hp-searchform > i {
    flex: none;
    color: #e05c96;
    font-size: 18px;
}

.hp-searchform input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 9px 4px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
}

.hp-searchform input[type="search"]:focus {
    outline: 0;
}

.hp-searchform .btn {
    flex: none;
}

.hp-search-again {
    max-width: 520px;
    margin: 0 auto 34px;
}

/* --------------------------------- comments --------------------------------- */

.hp-comments {
    margin-top: 46px;
    border-top: 1px solid #f2dbe4;
    padding-top: 30px;
}

.hp-comments-title {
    margin: 0 0 22px;
    font-size: 23px;
}

.hp-comment-list {
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.hp-comment-list .children {
    margin: 16px 0 0 26px;
    padding: 0;
    list-style: none;
}

.hp-comment-list .comment-body {
    margin-bottom: 16px;
    border: 1px solid #f2dbe4;
    border-radius: 14px;
    padding: 18px 20px;
}

.hp-comment-list .comment-author img {
    border-radius: 50%;
    margin-right: 10px;
    vertical-align: middle;
}

.hp-comment-list .comment-author .fn {
    font-size: 14px;
    font-weight: 600;
    font-style: normal;
}

.hp-comment-list .comment-metadata {
    margin: 4px 0 10px;
    color: #a2969b;
    font-size: 12px;
}

.hp-comment-list .comment-metadata a {
    color: #a2969b;
}

.hp-comment-list .reply a {
    color: #c8447e;
    font-size: 12.5px;
    font-weight: 600;
}

.hp-comment-form label {
    display: block;
    margin-bottom: 7px;
    color: #4c4447;
    font-size: 13px;
    font-weight: 600;
}

.hp-comment-form input[type="text"],
.hp-comment-form input[type="email"],
.hp-comment-form input[type="url"],
.hp-comment-form textarea {
    width: 100%;
    border: 1px solid #f0d9e3;
    border-radius: 10px;
    background: #fff;
    padding: 11px 14px;
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
}

.hp-comment-form input:focus,
.hp-comment-form textarea:focus {
    border-color: #e05c96;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(224, 92, 150, .13);
}

.hp-comment-form .comment-notes,
.hp-comment-form .comment-form-cookies-consent {
    grid-column: span 12;
    color: #82797c;
    font-size: 12.5px;
}

.hp-comment-form .form-submit {
    grid-column: span 12;
}

.hp-comments-closed {
    color: #82797c;
    font-size: 13.5px;
}

/* --------------------------------- misc --------------------------------- */

.hp-embed {
    position: relative;
    overflow: hidden;
    aspect-ratio: var(--hp-embed-ratio, 16 / 9);
    border-radius: 14px;
}

.hp-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hp-empty {
    max-width: 560px;
    margin: 0 auto;
}

.hp-empty h2 {
    margin: 0 0 10px;
    font-size: 24px;
}

.hp-empty p {
    margin: 0 0 18px;
}

.hp-404 .hp-searchform {
    max-width: 420px;
    margin: 0 auto;
}

.hp-tool-page .calc-section:first-child {
    padding-top: 26px;
}

.hp-calc-guide .entry-content {
    color: #6d6367;
    font-size: 14.5px;
    line-height: 1.8;
}

.testimonial-role {
    display: block;
    margin-top: 2px;
    color: #8b8085;
    font-size: 11.5px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-legal a {
    color: #8b8085;
}

.footer-legal a:hover {
    color: #e05c96;
}

.newsletter-setup {
    margin: 0;
    border: 1px dashed #fbdfe9;
    border-radius: 12px;
    background: rgba(255, 255, 255, .6);
    padding: 14px 16px;
    color: #7a6f73;
    font-size: 13px;
}

.no-js .search-sheet,
.no-js .nav-drawer {
    display: none;
}


@media (max-width: 575.98px) {
    .shop-trust {
        margin-top: 24px;
    }
}