/* ==========================================================================
   Her Peptides — shop / catalogue page
   Depends on style.css for the design tokens (--pink, --ink, --serif …),
   the shared header/footer and the .eyebrow / .btn-pink / .sec-head helpers.
   ========================================================================== */

.shop-page {
    background: #fff;
}

.shop-page .section {
    padding: 54px 0 0;
    scroll-margin-top: 110px;
}

.btn-pink {
    border-radius: 10px;
}

/* ================================== hero ================================== */

.shop-hero {
    position: relative;
    overflow: hidden;
    padding: 22px 0 34px;
    background: #f3e0e4 url('../img/shop-header.jpg') no-repeat;
    background-position: right;
    background-size: contain;
}


.shop-hero .container {
    position: relative;
    z-index: 2;
}

/* .crumbs moved to the theme's style.css — hp_breadcrumbs() runs on editorial
   templates too, which never load this file. */

.shop-hero-copy h1 {
    margin: 10px 0 14px;
    font-size: 52px;
    line-height: 1.08;
}

.shop-hero-copy h1 span {
    color: var(--pink);
}

.shop-hero-copy p {
    max-width: 470px;
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.usp-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.usp-row li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.usp-row i {
    color: var(--pink);
    font-size: 32px;
    line-height: 1;
}

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

.shop-hero-art {
    display: block;
    width: 100%;
    max-width: 560px;
    margin: 0 0 0 auto;
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(200, 120, 160, .16);
}

/* ============================== category chips ============================== */

.chip-bar {
    padding: 26px 0 0;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip {
    display: inline-block;
    padding: 9px 20px;
    border: 1px solid var(--pink-soft);
    border-radius: 40px;
    color: var(--pink-dark);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.chip:hover {
    border-color: var(--pink);
    background: var(--pink-tint);
    color: var(--pink-dark);
}

.chip.is-active {
    border-color: var(--pink);
    color: #fff;
    background: var(--pink);
}

/* =============================== filter rail =============================== */

.filter-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--pink-soft);
    border-radius: 40px;
    color: var(--pink-dark);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
}

.filter-toggle i {
    font-size: 17px;
}

.filter-panel {
    padding: 24px 22px 28px;
    border: 1px solid #f7e7ee;
    border-radius: 18px;
    background: #fdf7fa;
}

.filter-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 18px;
}

.filter-head h2 {
    margin: 0;
    font-family: var(--sans);
    font-size: 19px;
    font-weight: 700;
}

.filter-clear {
    color: var(--pink-dark);
    font-size: 13px;
    text-decoration: underline;
}

.filter-clear:hover {
    color: var(--pink);
}

.filter-group {
    padding: 18px 0;
    border-top: 1px solid #f4e2ea;
}

.filter-group:last-child {
    padding-bottom: 0;
}

.filter-group-head {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: none;
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.filter-group-head i {
    color: #b9a7b0;
    font-size: 15px;
    transition: transform .25s ease;
}

.filter-group-head.collapsed i {
    transform: rotate(180deg);
}

.filter-list {
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.filter-list li + li {
    margin-top: 11px;
}

.filter-opt {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #574f52;
    font-size: 14px;
    cursor: pointer;
}

.filter-opt input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.filter-box {
    position: relative;
    flex: none;
    width: 19px;
    height: 19px;
    border: 1.5px solid #d9c7d0;
    border-radius: 4px;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.filter-box::after {
    position: absolute;
    top: 3px;
    left: 6px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    content: "";
    transform: rotate(45deg);
}

.filter-opt input:checked + .filter-box {
    border-color: var(--pink);
    background: var(--pink);
}

.filter-opt input:checked + .filter-box::after {
    opacity: 1;
}

.filter-opt input:focus-visible + .filter-box {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.filter-count {
    color: #a2969b;
}

.filter-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--pink-dark);
    font-size: 13.5px;
    font-weight: 500;
}

.filter-more:hover {
    color: var(--pink);
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 16px;
}

.price-inputs input {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #f0d9e3;
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
}

.price-inputs input:focus {
    border-color: var(--pink);
    outline: none;
}

/*
 * Dual-handle price slider. The two handles are overlaid native range inputs:
 * the track and the selected fill are drawn by the wrapper, the inputs are
 * transparent and only their thumbs take pointer events, so each handle stays
 * grabbable across the whole width instead of one input covering the other.
 *
 * --hp-lo / --hp-hi are percentages written by the script; with none set the
 * fill spans the whole track, which is the design's resting state.
 */
.price-slider {
    --hp-lo: 0%;
    --hp-hi: 100%;

    position: relative;
    height: 22px;
    margin-top: 18px;
}

.price-slider::before {
    position: absolute;
    top: 9px;
    right: 8px;
    left: 8px;
    height: 4px;
    border-radius: 2px;
    background: #f0d9e3;
    content: "";
}

.price-fill {
    position: absolute;
    top: 9px;
    right: calc(8px + (100% - 16px) * (1 - var(--hp-hi) / 100));
    left: calc(8px + (100% - 16px) * (var(--hp-lo) / 100));
    height: 4px;
    border-radius: 2px;
    background: var(--pink);
}

.price-knob {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 22px;
    margin: 0;
    border: 0;
    outline: none;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}

/* The max handle sits above so the two are still separable at the top end. */
.price-slider .knob-max {
    z-index: 2;
}

.price-knob::-webkit-slider-runnable-track {
    height: 22px;
    background: none;
}

.price-knob::-moz-range-track {
    height: 22px;
    background: none;
}

.price-knob::-webkit-slider-thumb {
    width: 15px;
    height: 15px;
    border: 2.5px solid var(--pink);
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: grab;
    -webkit-appearance: none;
    appearance: none;
}

.price-knob::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border: 2.5px solid var(--pink);
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: grab;
}

.price-knob:focus-visible::-webkit-slider-thumb {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.price-knob:focus-visible::-moz-range-thumb {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.price-legend {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

/* ============================= results toolbar ============================= */

.shop-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.result-count {
    margin: 0;
    color: #6d6367;
    font-size: 14px;
}

.result-count strong {
    color: var(--ink);
    font-weight: 600;
}

.sort-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #6d6367;
    font-size: 14px;
}

.sort-wrap select {
    padding: 10px 38px 10px 16px;
    border: 1px solid #f0d9e3;
    border-radius: 10px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2382797c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6'/%3E%3C/svg%3E") right 14px center / 14px no-repeat;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 500;
    appearance: none;
}

.sort-wrap select:focus {
    border-color: var(--pink);
    outline: none;
}

/* ============================== product grid ============================== */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* .shop-card layers a left-aligned, buyable card on top of the kit's
   .product-card (which keeps the shared cart-count wiring working). */
.shop-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #f7e7ee;
    background: #fff;
    padding-bottom: 0;
    text-align: left;
}

.shop-card .product-media {
    position: relative;
    aspect-ratio: 1 / 1;
}

.shop-card .product-media img {
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.shop-card .badge-seller {
    width: 54px;
    height: 54px;
    font-size: 8.5px;
    line-height: 1.35;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.wish-btn {
    position: absolute;
    z-index: 3;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    place-content: center;
    color: #3a3336;
    background: transparent;
    font-size: 18px;
    line-height: 1;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.wish-btn:hover {
    background: rgba(255, 255, 255, .7);
    transform: scale(1.08);
}

.wish-btn.is-on {
    color: var(--pink);
    background: #fff;
}

.shop-card .product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.shop-card .product-body h3 {
    margin: 0 0 8px;
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 600;
}

.shop-card .product-body h3 a {
    color: inherit;
}

.shop-card .product-body h3 a:hover {
    color: var(--pink-dark);
}

.shop-desc {
    margin: 0 0 14px;
    color: #7a7075;
    font-size: 13.5px;
    line-height: 1.55;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.tag {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 30px;
    color: var(--pink-dark);
    background: var(--pink-tint);
    font-size: 11.5px;
    font-weight: 600;
}

.tag--mint {
    color: #3d7f61;
    background: #e6f4ec;
}

.tag--lilac {
    color: #6a54a0;
    background: #efeaf8;
}

.shop-card .rating {
    justify-content: flex-start;
    margin-bottom: 10px;
}

.shop-card .price {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.add-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: auto;
    padding: 8px 16px;
    border: 0;
    border-radius: 9px;
    color: #fff;
    background: var(--pink);
    font-family: var(--sans);
    font-size: 14.5px;
    font-weight: 600;
    transition: background .2s ease;
}

.add-btn:hover {
    background: var(--pink-dark);
}

.add-btn i {
    font-size: 18px;
    line-height: 1;
}

.add-btn.is-added {
    background: #3d8f68;
}

.shop-empty {
    margin: 40px 0 0;
    padding: 26px;
    border: 1px dashed var(--pink-soft);
    border-radius: 14px;
    color: var(--muted);
    background: #fdf7fa;
    font-size: 14.5px;
    text-align: center;
}

.shop-more {
    margin-top: 30px;
    text-align: center;
}

/* ============================== shop by goal ============================== */

/* the mockup centres the lotus above the heading rather than at the rule's end */
.sec-head--stacked {
    position: relative;
    margin-bottom: 16px;
}

.sec-head--stacked .sec-lotus {
    position: absolute;
    top: -26px;
    left: 50%;
    transform: translateX(-50%);
}

.goal-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.goal-card {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: 42% 1fr;
    height: 100%;
    border: 1px solid #f7e7ee;
    border-radius: 16px;
    background: #fdf7fa;
    transition: transform .25s ease, box-shadow .25s ease;
}

.goal-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(200, 120, 160, .2);
}

.goal-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.goal-body {
    padding: 20px 18px 52px;
}

.goal-body h3 {
    margin: 0 0 8px;
    font-size: 20px;
    line-height: 1.2;
}

.goal-body p {
    margin: 0;
    color: #776e71;
    font-size: 13px;
    line-height: 1.55;
}

.goal-card .round-arrow {
    left: auto;
    right: 18px;
    width: 30px;
    height: 30px;
    color: #fff;
    background: var(--pink);
    font-size: 16px;
    line-height: 16px;
}

.goal-card:hover .round-arrow {
    background: var(--pink-dark);
}

/*
 * The trust strip, breakpoints included, lives in the theme's style.css:
 * hp_trust_strip() closes the calculator and blog templates too, which never
 * enqueue this file.
 */

/* ================================ responsive ================================ */

@media (max-width: 1399.98px) {
    .shop-hero-copy h1 {
        font-size: 46px;
    }
}

@media (max-width: 1199.98px) {
    .shop-hero-copy h1 {
        font-size: 40px;
    }

    .goal-card {
        grid-template-columns: 38% 1fr;
    }

    .goal-body h3 {
        font-size: 18px;
    }
}

@media (max-width: 991.98px) {
    /*
     * The hero art is a right-anchored background. Once the column is full
     * width the copy runs straight over it, so below the desktop breakpoint the
     * art drops and the hero keeps its flat tint — the words have to win.
     */
    .shop-hero {
        padding-bottom: 4px;
        padding-top: 4px;
        background-image: none;
        background: #f9f9f9;
    }

    .shop-hero .crumbs {
        margin: 0;
    }

    .shop-hero-copy h1 {
        font-size: 38px;
    }

    .shop-hero-copy p {
        max-width: none;
    }

    .shop-hero-art {
        max-width: 460px;
        margin: 24px auto 0;
    }

    .chip-bar .chip {
        padding: 4px 10px;
        font-size: 11px;
        font-weight: 500;
    }

    .chip-bar {
        padding: 10px 0 0;
    }

    .shop-page .section {
        padding-top: 10px;
    }

    .post-type-archive-product .col-lg-9 {
        margin-top: 8px;
    }

    .filter-toggle {
        display: flex;
        padding: 4px 8px;
    }

    .filter-panel.is-open {
        margin-top: 8px;
    }

    .shop-toolbar {
        display: none;
    }

    .filter-panel {
        margin-bottom: 26px;
    }

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

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

@media (max-width: 767.98px) {
    .shop-hero-copy h1 {
        font-size: 33px;
    }

    .usp-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .goal-card {
        grid-template-columns: 40% 1fr;
    }

    /* style.css drops the centring rules below 768px, so the lotus follows the
       heading back to the left edge instead of floating mid-row. */
    .sec-head--stacked .sec-lotus {
        left: 0;
        transform: none;
    }
}

@media (max-width: 575.98px) {
    .shop-hero-copy h1 {
        font-size: 29px;
    }

    /* two cards to a row; the compact card sizing is in hp-woo.css */
    .shop-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .goal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-toolbar {
        align-items: flex-start;
        flex-direction: column;
    }
}
