/* ==========================================================================
   VS Shop Page: dedicated shop page (single shop)
   Loaded on the front end AND inside the shop block editor, so the editor
   preview matches the live page. Rules for the block editor content are
   prefixed with :is(.vs-shop-content, .editor-styles-wrapper) so they outrank
   the theme's ".entry-content h2 / ul / a" rules and Kadence's per-block styles
   in both places. Rules that only make sense on the live page use .vs-shop-content.

   ========================================================================== */
.vs-shop-page,
.editor-styles-wrapper {
    --vs-shop-accent: #1f9b3b;
    --vs-shop-accent-dark: #187d30;
    --vs-shop-text: #1f2a22;
    --vs-shop-body: #3d4a42;
    --vs-shop-answer: #2b3830;
    --vs-shop-muted: #5a6660;
    --vs-shop-line: #dfe5e0;
    --vs-shop-card-line: #e3e9e4;
    --vs-shop-soft: #f1f4f1;
    --vs-shop-panel: #f6f8f6;
    --vs-shop-tint: #f1f6f1;
    --vs-shop-chip: #eaf2eb;
    --vs-shop-photo: #d9e4da;
    --vs-shop-star: #b7791f;
}

/* ---------- Front end page frame ---------- */
.vs-shop-page {
    color: var(--vs-shop-text);
    padding: 24px 0 72px;
}

.vs-shop-content {
    display: flow-root;
}

html {
    scroll-behavior: smooth;
}

.vs-shop-content [id] {
    scroll-margin-top: 90px;
}

/* heading stays visible below the sticky menu */

/* ---------- Breadcrumb ---------- */
.vs-breadcrumb {
    font-size: 14px;
    color: var(--vs-shop-muted);
    margin-bottom: 24px;
}

.vs-breadcrumb a {
    color: var(--vs-shop-accent);
    text-decoration: none;
}

.vs-breadcrumb a:hover {
    text-decoration: underline;
}

.vs-breadcrumb__sep {
    margin: 0 6px;
}

/* ==========================================================================
   Block editor content (Kadence blocks carrying these classes)
   ========================================================================== */

/* Kadence rows add top and bottom padding by default: reset it for every row we style */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-meta,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-worries,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-why,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-stats,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-block,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-pcards,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-section,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel {
    padding-top: 0;
    padding-bottom: 0;
}

/* Shared text */
:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-lead {
    font-size: 18px;
    line-height: 1.7;
    margin: 0;
    color: var(--vs-shop-text);
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-more {
    font-size: 15px;
    font-weight: 600;
    margin: 18px 0 0;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-more a {
    color: var(--vs-shop-accent);
}

/* Chips (a plain List block) */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: 13px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-chips li {
    background: var(--vs-shop-chip);
    border-radius: 6px;
    padding: 6px 10px;
    margin: 0;
    list-style: none;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-chips--hero {
    margin: 0 0 16px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-chips--hero li {
    background: #fff;
}

/* CTA buttons (Kadence Advanced Button with class vs-cta) */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta {
    margin-top: 14px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta .kb-button.kt-button,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta .kb-button.kt-button:visited {
    background: var(--vs-shop-accent);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 24px;
    min-height: 44px;
    border-radius: 10px;
    border: 0;
    text-decoration: none;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta .kb-button.kt-button:hover {
    background: var(--vs-shop-accent-dark);
    color: #fff;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta--hero {
    margin-top: 6px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-cta--hero .kb-button.kt-button {
    font-size: 17px;
    padding: 15px 28px;
}

.vs-shop-content .vs-cta:has(.vs-link-missing) {
    display: none;
}

/* shop has no affiliate URL yet */

/* ---------- Hero ---------- */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero {
    background: var(--vs-shop-tint);
    border-radius: 20px;
    padding: 32px;
    margin: 0 0 20px;
    box-sizing: border-box;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero>.kt-row-column-wrap {
    gap: 32px;
    align-items: stretch;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-body {
    justify-content: center;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-meta {
    margin: 0 0 16px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-meta>.kt-row-column-wrap {
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-logo-img {
    margin: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-logo-img img {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: #fff;
    object-fit: contain;
    display: block;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-rating {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-rating .vs-stars {
    color: var(--vs-shop-star);
    letter-spacing: 2px;
    font-size: 16px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-rating strong {
    font-weight: 700;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-title {
    font-size: 44px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
    margin: 0 0 16px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-tagline {
    font-size: 19px;
    line-height: 1.5;
    color: var(--vs-shop-body);
    margin: 0 0 16px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-photo {
    margin: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 16px;
    background: var(--vs-shop-photo);
    display: block;
}

/* Front end only: an unfilled photo slot should not leave a hole */
.vs-shop-content .vs-hero-media:not(:has(img[src])) {
    display: none;
}

/* Browse line under the hero */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-browse {
    font-size: 16px;
    line-height: 1.6;
    color: var(--vs-shop-body);
    margin: 0 0 20px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-browse a {
    font-weight: 600;
    color: var(--vs-shop-accent);
}

/* ---------- Reassurance boxes (3 across, icon on the left) ---------- */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-worries {
    margin: 0 0 56px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worries>.kt-row-column-wrap {
    gap: 16px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry {
    position: relative;
    background: var(--vs-shop-chip);
    border-radius: 14px;
    padding: 18px 18px 18px 76px;
    box-sizing: border-box;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry--size::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='8' rx='1'/%3E%3Cpath d='M7 8v3M11 8v4M15 8v3M19 8v2'/%3E%3C/svg%3E");
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry--comfort::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.5-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.5-7 10-7 10z'/%3E%3C/svg%3E");
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry--last::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232f6b3a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12a8 8 0 0 1 14-5.3M20 12a8 8 0 0 1-14 5.3'/%3E%3Cpath d='M18 3v4h-4M6 21v-4h4'/%3E%3C/svg%3E");
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 4px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-worry-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--vs-shop-body);
    margin: 0;
}

/* ---------- Why we rate (text + stat boxes) ---------- */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-why {
    margin: 0 0 56px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-why>.kt-row-column-wrap {
    gap: 40px;
    align-items: start;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-why .vs-h2 {
    margin: 0 0 14px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-why .vs-lead {
    max-width: 680px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-stats>.kt-row-column-wrap {
    gap: 12px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-stat {
    background: var(--vs-shop-panel);
    border-radius: 14px;
    padding: 18px 20px;
    box-sizing: border-box;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-stat-number {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vs-shop-accent);
    margin: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-stat-label {
    font-size: 14px;
    color: var(--vs-shop-body);
    margin: 0;
}

/* ---------- Photo cards (where to start, you may also like) ---------- */
:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-block {
    margin: 0 0 56px;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcards>.kt-row-column-wrap {
    gap: 20px;
}

.vs-block--related .vs-pcards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard {
    position: relative;
    background: #fff;
    border: 1px solid var(--vs-shop-card-line);
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard:hover,
:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard.kb-section-has-link:hover {
    border-color: var(--vs-shop-accent);
}
:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard-img {
    margin: 0;
    aspect-ratio: 1 / 1;
    background: var(--vs-shop-photo);
    overflow: hidden;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-block--start .vs-pcard-img {
    aspect-ratio: 3 / 2;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard-img img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: var(--vs-shop-photo);
    display: block;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-block--start .vs-pcard-img img{
    aspect-ratio: 3 / 2;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard-title {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
    margin: 16px 18px 6px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard-text {
    font-size: 15px;
    line-height: 1.5;
    color: var(--vs-shop-body);
    margin: 0 18px 6px;
}

:is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-pcard-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--vs-shop-accent);
    margin: auto 18px 18px;
}

/* ---------- Jump nav (built automatically from headings with class vs-nav) ---------- */
.vs-shop-content .vs-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 18px;
    background: var(--vs-shop-panel);
    border-radius: 14px;
    margin: 0 0 32px;
}

.vs-shop-content .vs-jump-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    box-sizing: border-box;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 0 16px;
    background: #fff;
    border-radius: 8px;
    color: var(--vs-shop-text);
}

.vs-shop-content .vs-jump-nav a:hover {
    color: var(--vs-shop-accent);
}

/* ---------- Category sections (photo left, copy right) ---------- */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-section {
    margin: 0 0 40px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-section>.kt-row-column-wrap {
    gap: 36px;
    align-items: center;
}

@media (min-width: 768px) {
    :is(.vs-shop-content, .editor-styles-wrapper) .vs-section>.kt-row-column-wrap {
        grid-template-columns: minmax(0, 350px) 1fr;
    }
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-section-img {
    margin: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-section-img img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    background: var(--vs-shop-photo);
    display: block;
}

/* Front end only: an unfilled photo slot should not leave a hole */
.vs-shop-content .vs-section-media:not(:has(img[src])) {
    display: none;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-section-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-section-text {
    font-size: 17px;
    line-height: 1.7;
    margin: 0 0 14px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-catch,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-bestfor {
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 14px;
    color: var(--vs-shop-text);
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-catch strong,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-bestfor strong {
    font-weight: 600;
}

/* ---------- FAQ panel (Kadence Accordion, several can stay open) ---------- */
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel {
    background: var(--vs-shop-tint);
    border-radius: 20px;
    padding: 32px;
    margin: 0 0 56px;
    box-sizing: border-box;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .vs-h2 {
    margin: 0 0 18px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel-intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--vs-shop-body);
    margin: 0 0 18px;
}

.vs-shop-content .vs-panel .kt-accordion-inner-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
    gap: 12px;
    align-items: start;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-accordion-wrap {
    margin: 0 0 24px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-accordion-pane {
    background: #fff;
    border-radius: 12px;
    margin: 0;
    padding: 0 20px;
    overflow: hidden;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-header,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-header:hover,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-header.kt-accordion-panel-active {
    background: transparent;
    color: var(--vs-shop-text);
    border: 0;
    padding: 0;
    min-height: 56px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-icon-trigger:before,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-icon-trigger:after,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:before,
:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-blocks-accordion-header:hover .kt-blocks-accordion-icon-trigger:after {
    background-color: var(--vs-shop-accent);
    height: 2px;
    top: 11px;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-panel .kt-accordion-panel-inner {
    padding: 0 0 18px;
    border: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .vs-answer {
    font-size: 15px;
    line-height: 1.6;
    color: var(--vs-shop-answer);
    margin: 0;
}

:is(.vs-shop-content, .editor-styles-wrapper) .kt-accodion-icon-style-xclose .kt-blocks-accordion-icon-trigger:before,
:is(.vs-shop-content, .editor-styles-wrapper) .kt-accodion-icon-style-xclose .kt-blocks-accordion-icon-trigger:after {
    width: 14px;
}

/* ---------- Tablet and phone ---------- */
@media (min-width: 768px) and (max-width: 1024px) {

    :is(.vs-shop-content, .editor-styles-wrapper) .vs-worries>.kt-row-column-wrap,
    :is(.vs-shop-content, .editor-styles-wrapper) .vs-pcards>.kt-row-column-wrap,
    .vs-block--related .vs-pcards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .vs-block--related .vs-pcards {
        grid-template-columns: minmax(0, 1fr);
    }

    :is(.vs-shop-content, .editor-styles-wrapper) .vs-hero {
        padding: 20px;
    }

    :is(.vs-shop-content, .editor-styles-wrapper) .vs-hero-title {
        font-size: 32px;
    }

    :is(.vs-shop-page, .vs-shop-content, .editor-styles-wrapper) .vs-h2,
    :is(.vs-shop-content, .editor-styles-wrapper) .vs-section-title {
        font-size: 24px;
    }

    :is(.vs-shop-content, .editor-styles-wrapper) .vs-panel {
        padding: 20px;
    }

    :is(.vs-shop-content, .editor-styles-wrapper) .vs-section {
        margin-bottom: 44px;
    }
}