/*
 Theme Name:   PrisFare Child Theme
 Theme URI:    https://prisfare.com
 Description:  REHub child theme for PrisFare – price comparison for fashion & beauty
 Author:       PrisFare
 Author URI:   https://prisfare.com
 Template:     rehub-theme
 Version:      1.4.3
 Text Domain:  prisfare
*/

/* ============================================
   PrisFare Design System v3 – Premium / editorial
   ============================================ */

:root {
    --pf-primary: #156b28;
    --pf-primary-light: #1a7d30;
    --pf-secondary: #0f5220;
    --pf-accent: #156b28;
    --pf-star: #9a8b78;
    --pf-bg: #f7f7f5;
    --pf-bg-white: #ffffff;
    --pf-bg-subtle: #fafaf8;
    --pf-text: #1a1a1a;
    --pf-text-light: #5c5c5c;
    --pf-muted: #8a8a8a;
    --pf-border: #e6e6e3;
    --pf-border-strong: #d4d4d0;
    --pf-dark: #1c1c22;
    --pf-dark-lighter: #2a2a32;
    --pf-charcoal: #34343c;
    --pf-charcoal-hover: #2a2a32;
    /* Hero: darker gray → near-black (editorial, matches photo edge) */
    --pf-hero-bg: linear-gradient(
        90deg,
        #4f4f5a 0%,
        #42424c 14%,
        #35353e 30%,
        #26262e 48%,
        #151518 65%,
        #070708 82%,
        #000000 100%
    );
    /* Newsletter block: balanced diagonal (not tied to side image) */
    --pf-newsletter-bg: linear-gradient(122deg, #2b2b33 0%, #222228 42%, #1e2420 100%);
    --pf-radius: 14px;
    --pf-radius-sm: 10px;
    --pf-radius-lg: 20px;
    --pf-hero-radius: 22px;
    --pf-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    --pf-shadow-hover: 0 6px 24px rgba(0, 0, 0, 0.06);
    --pf-transition: 0.2s ease;
    --pf-section-space: 2.5rem;
}

/* ---- Base ---- */
html {
    overflow-x: clip;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--pf-text);
    background-color: var(--pf-bg);
    font-size: 15px;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

*, *::before, *::after {
    box-sizing: border-box;
}

a { color: var(--pf-primary); transition: color var(--pf-transition); }
a:hover { color: var(--pf-secondary); }

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--pf-text);
}

/* ============================================
   HEADER – Two-row Chanel-style layout
   Row 1 (sticky): [Lang/Hamburger] [LOGO centered] [User]
   Row 2 (collapse): [Category links] ... [Search]
   ============================================ */

#main_header,
.pf-header-bar {
    background: #ffffff !important;
    border: none !important;
}

#main_header {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
}

.pf-header-bar {
    background: #fff;
    width: 100%;
    padding: 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

/* --- Row 1: Top bar --- */
.pf-header-top {
    border-bottom: 1px solid #eee;
}

.pf-header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    box-sizing: border-box;
}

.pf-top-left,
.pf-top-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    z-index: 1;
    min-width: 60px;
}

.pf-top-right {
    margin-right: -28px;
}

.pf-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.pf-header-logo img {
    height: 24px;
    width: auto;
    display: block;
}

.pf-text-logo {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--pf-text);
}

.pf-top-right .pf-login-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    color: var(--pf-text);
    transition: color var(--pf-transition);
}

.pf-top-right .pf-login-trigger:hover {
    color: var(--pf-primary);
}

.pf-top-right .pf-icon {
    display: flex;
    color: inherit;
}

.pf-top-right .pf-icon svg {
    width: 20px;
    height: 20px;
}

/* --- Row 2: Sub-navigation (categories + search) --- */
.pf-header-subnav {
    border-bottom: 1px solid #eee;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.2s ease;
    will-change: transform;
}

.pf-header-subnav.pf-subnav-hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    position: absolute;
    width: 100%;
    left: 0;
}

.pf-subnav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    box-sizing: border-box;
}

.pf-subnav-cats {
    display: flex;
    align-items: center;
    gap: 24px;
    align-self: stretch;
}

.pf-subnav-cats a {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pf-text);
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.15s ease, color 0.15s ease;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
}

.pf-subnav-cats a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--pf-text, #2d2d2d);
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.pf-subnav-cats a:hover {
    opacity: 0.6;
}

.pf-subnav-cats a.pf-subnav-active {
    opacity: 1;
}

.pf-subnav-cats a.pf-subnav-active::after {
    transform: scaleX(1);
}

/* Subnav search */
.pf-subnav-search {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: auto;
}

.pf-subnav-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.pf-subnav-search-form input[type="text"] {
    background: var(--pf-bg-subtle);
    border: 1px solid var(--pf-border);
    border-radius: 999px;
    padding: 6px 38px 6px 14px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    color: var(--pf-text);
    width: 190px;
    height: 30px;
    box-sizing: border-box;
    outline: none;
    transition: border-color var(--pf-transition), box-shadow var(--pf-transition);
}

.pf-subnav-search-form input[type="text"]:focus {
    border-color: var(--pf-border-strong);
    box-shadow: 0 0 0 3px rgba(21, 107, 40, 0.12);
}

.pf-subnav-search-form input[type="text"]::placeholder {
    color: var(--pf-muted);
}

.pf-subnav-search-form button {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(21, 107, 40, 0.28);
    border-radius: 999px;
    width: 24px;
    height: 24px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--pf-transition), border-color var(--pf-transition);
    box-sizing: border-box;
}

.pf-subnav-search-form button:hover {
    background: rgba(21, 107, 40, 0.07);
    border-color: rgba(21, 107, 40, 0.5);
}

.pf-subnav-search-form button .pf-icon {
    display: block;
    color: var(--pf-primary);
}

.pf-subnav-search-form button .pf-icon svg {
    width: 12px;
    height: 12px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(0.5px);
}

/* Mobile search icon in subnav (hidden on desktop) */
.pf-subnav-search-toggle {
    display: none;
}

/* Mobile hamburger hidden on desktop */
.pf-mobile-hamburger {
    display: none;
}

/* Mobile search bar (expandable, below header) */
.pf-mobile-search {
    display: none;
}

#dl-menu svg line {
    stroke: var(--pf-text);
}

/* Hide top bar and all REHub built-in extra logos */
.header_topline_wrap,
#logo_mobile_wrapper,
a.logo_image_mobile,
a.logo_image_insticky,
.logo_insticky_enabled .logo_image_insticky {
    display: none !important;
}

/* REHub: mobile menu logo strip bg override */
#rhmobtoppnl,
#mobtopheaderpnl,
li#mobtopheaderpnl {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
}

/* ============================================
   MOBILE SLIDE-OUT MENU  (#slide-menu-mobile)
   Clean override — REHub JS clones nav here,
   prepends logo li, appends close-menu li.
   ============================================ */

#slide-menu-mobile > ul.menu {
    background: #fff !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

/* Logo row at top of mobile menu */
#slide-menu-mobile > ul.menu > li.pf-mob-logo {
    padding: 14px 20px 12px !important;
    border-bottom: 1px solid #eee !important;
    background: #fff !important;
}

/* Logo/header row (prepended by REHub): compact or hide */
#slide-menu-mobile > ul.menu > li#mobtopheaderpnl {
    display: none !important;
}

/* Menu items */
#slide-menu-mobile > ul.menu > li {
    background: #fff !important;
    border-bottom: 1px solid var(--pf-border) !important;
}

#slide-menu-mobile > ul.menu > li > a {
    display: block;
    padding: 14px 20px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--pf-text) !important;
    text-decoration: none !important;
    background: #fff !important;
}

#slide-menu-mobile > ul.menu > li > a:hover {
    background: var(--pf-bg) !important;
}

/* Close button: absolute top-right corner */
#slide-menu-mobile > ul.menu > li.close-menu {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 100 !important;
    border: none !important;
    background: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#slide-menu-mobile > ul.menu > li.close-menu span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

#slide-menu-mobile > ul.menu > li.close-menu i {
    font-size: 20px !important;
    color: var(--pf-text) !important;
}

/* Language header row */
#slide-menu-mobile > ul.menu > li.pf-mobilelang-header {
    border-bottom: none !important;
}

/* Overlay backdrop */
.offsetnav-overlay {
    background: rgba(0, 0, 0, 0.45) !important;
}

/* Ensure no ancestor breaks position:sticky or clips dropdowns */
.rh-outer-wrap,
.header_wrap,
#main_header {
    overflow: visible !important;
}

.pf-header-bar,
.pf-header-top,
.pf-header-top-inner {
    overflow: visible !important;
}

/* Mobile menu language items: visually hidden on desktop only */
@media (min-width: 992px) {
.pf-mobilelang {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0,0,0,0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
}

/* --- Responsive: mobile layout --- */
@media (max-width: 991px) {
    #main_header,
    .header_wrap,
    .sticky-wrapper,
    .pf-header-bar {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .pf-desktop-only {
        display: none !important;
    }

    .pf-header-top-inner {
        padding: 0 16px;
    }

    .pf-top-left {
        margin-left: -6px;
    }

    .pf-top-right {
        margin-right: -4px;
    }

    .pf-top-right .pf-login-trigger {
        width: 28px;
        height: 28px;
    }

    .pf-mobile-hamburger {
        display: flex !important;
        align-items: center;
        flex: 0 0 auto;
    }

    .pf-mobile-hamburger .responsive_nav_wrap {
        display: flex;
        align-items: center;
        position: relative;
    }

    .pf-mobile-hamburger .responsive_nav_wrap > *:not(#dl-menu) {
        position: absolute;
        pointer-events: none;
        opacity: 0;
    }

    .pf-mobile-hamburger #dl-menu {
        margin: 0;
        display: flex;
        align-items: center;
    }

    .pf-mobile-hamburger .dl-trigger {
        width: 44px;
        height: 44px;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
    }

    /* Show language and category items in mobile slide-out */
    #slide-menu-mobile .pf-mobilelang,
    #slide-menu-mobile .pf-mob-cat {
        position: static !important;
        width: auto !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
        clip: auto !important;
        white-space: normal !important;
    }

    /* Hide subnav category links on mobile */
    .pf-subnav-cats {
        display: none !important;
    }

    /* Hide the search toggle icon – search bar is always visible */
    .pf-subnav-search-toggle {
        display: none !important;
    }

    /* Show inline search form in subnav row */
    .pf-subnav-search {
        flex: 1;
        margin-left: 0;
    }

    .pf-subnav-search .pf-subnav-search-form {
        display: flex !important;
        width: 100%;
    }

    .pf-subnav-search .pf-subnav-search-form input[type="text"] {
        width: 100%;
        font-size: 14px;
        padding: 6px 42px 6px 14px;
        height: 34px;
    }

    .pf-subnav-search .pf-subnav-search-form button {
        width: 28px;
        height: 28px;
        right: 5px;
    }

    .pf-subnav-search .pf-subnav-search-form button .pf-icon svg {
        width: 13px;
        height: 13px;
    }

    .pf-subnav-inner {
        justify-content: stretch;
        height: 42px;
        padding: 0 16px;
    }

    /* Reduce gap between header and first content section */
    .pf-fullwidth-page > div:first-of-type {
        margin-top: 22px !important;
    }

    /* Hide the separate expandable mobile search bar – no longer needed */
    .pf-mobile-search {
        display: none !important;
    }

    .pf-mobile-search form {
        display: flex;
        align-items: center;
        position: relative;
    }

    .pf-mobile-search input[type="text"] {
        flex: 1;
        background: var(--pf-bg);
        border: 1px solid var(--pf-border);
        border-radius: 20px;
        padding: 8px 40px 8px 14px;
        font-size: 16px;
        font-family: 'Inter', sans-serif;
        color: var(--pf-text);
        height: 38px;
        box-sizing: border-box;
        outline: none;
    }

    .pf-mobile-search input[type="text"]:focus {
        border-color: var(--pf-primary);
    }

    .pf-mobile-search button {
        position: absolute;
        right: 2px;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(21, 107, 40, 0.28);
        border-radius: 50%;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-sizing: border-box;
        transition: background var(--pf-transition), border-color var(--pf-transition);
    }

    .pf-mobile-search button:hover {
        background: rgba(21, 107, 40, 0.07);
        border-color: rgba(21, 107, 40, 0.5);
    }

    .pf-mobile-search button .pf-icon {
        color: var(--pf-primary);
    }

    .pf-mobile-search button .pf-icon svg {
        width: 15px;
        height: 15px;
        stroke: currentColor;
        stroke-width: 2;
        transform: translateY(2px);
    }
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */

.pf-lang-switcher {
    position: relative;
    display: flex;
    align-items: center;
}

.pf-lang-switcher .pf-lang-current {
    display: inline-flex;
    align-items: center;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    padding: 6px 10px !important;
    border: 1px solid var(--pf-border);
    border-radius: 6px;
    cursor: pointer;
    transition: border-color var(--pf-transition);
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

.pf-lang-switcher .pf-lang-current:hover {
    border-color: var(--pf-primary) !important;
    color: var(--pf-primary) !important;
}

.pf-lang-switcher .pf-lang-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    background: #fff;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    min-width: 120px;
    padding: 4px 0;
    box-shadow: var(--pf-shadow);
    display: none;
    z-index: 99999;
    list-style: none;
    margin: 4px 0 0;
}

.pf-lang-switcher:hover .pf-lang-dropdown,
.pf-lang-switcher.open .pf-lang-dropdown {
    display: block;
}

.pf-lang-switcher .pf-lang-dropdown li a {
    display: block;
    padding: 8px 16px;
    font-size: 13px !important;
    color: var(--pf-text) !important;
    text-decoration: none;
    white-space: nowrap;
}

.pf-lang-switcher .pf-lang-dropdown li a:hover {
    background: var(--pf-bg);
    color: var(--pf-primary) !important;
}

.pf-lang-switcher .pf-lang-dropdown li.current-lang a {
    font-weight: 600;
    color: var(--pf-primary) !important;
}

/* ============================================
   HERO – Contained premium block (not edge-to-edge)
   ============================================ */
.pf-hero-section {
    background: var(--pf-bg);
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 30px 6px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

.pf-hero-inner {
    display: flex;
    align-items: stretch;
    max-width: 100%;
    margin: 0 auto;
    padding: 34px 48px;
    gap: 40px;
    background: var(--pf-hero-bg);
    border-radius: var(--pf-hero-radius);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.07);
}

.pf-hero-content {
    flex: 1;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 0 8px;
    min-width: 0;
}

.pf-hero-content h1 {
    color: #ffffff;
    font-size: clamp(1.5rem, 2.65vw, 2.05rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}

.pf-hero-content p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 14px;
    line-height: 1.62;
    margin: 0 0 16px;
    max-width: 32em;
    font-weight: 400;
}

.pf-hero-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 999px;
    padding: 2px 6px 2px 16px;
    max-width: 400px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
    min-height: 42px;
    box-sizing: border-box;
}

.pf-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    background: transparent;
    color: var(--pf-text);
    font-family: 'Inter', sans-serif;
    min-width: 0;
    padding: 9px 0;
}

.pf-hero-search input::placeholder {
    color: var(--pf-muted);
}

.pf-hero-search button {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(21, 107, 40, 0.28);
    border-radius: 999px;
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--pf-transition), border-color var(--pf-transition), box-shadow var(--pf-transition);
    flex-shrink: 0;
    box-shadow: none;
    box-sizing: border-box;
}

.pf-hero-search button:hover {
    background: rgba(21, 107, 40, 0.07);
    border-color: rgba(21, 107, 40, 0.5);
}

.pf-hero-search button svg {
    width: 16px;
    height: 16px;
    stroke: var(--pf-primary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Bleed to hero-inner edges so image fills row height; right radius matches box */
.pf-hero-image {
    flex: 0 0 clamp(260px, 34vw, 380px);
    z-index: 2;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    align-self: stretch;
    position: relative;
    /* Pull to inner edges of .pf-hero-inner (incl. 1px border) to remove top/bottom gap */
    margin: calc(-34px - 1px) calc(-48px - 1px) calc(-34px - 1px) 0;
    border-radius: 0 var(--pf-hero-radius) var(--pf-hero-radius) 0;
    min-height: 0;
}

/* Soft editorial blend: gradient meets photo without a hard seam */
.pf-hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(36, 36, 44, 0.5) 0%,
        rgba(36, 36, 44, 0.22) 28%,
        rgba(36, 36, 44, 0.06) 52%,
        transparent 74%
    );
}

.pf-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: 58% 14%;
    display: block;
    position: relative;
    z-index: 0;
}

/* ============================================
   CATEGORY ROW – monochrome icon system
   ============================================ */
.pf-categories-bar {
    background: var(--pf-bg-white);
    padding: 12px 0 14px;
    border-bottom: 1px solid var(--pf-border);
}

.pf-categories-list {
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    list-style: none;
}

.pf-categories-list li {
    text-align: center;
}

.pf-categories-list a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 1px;
    color: var(--pf-text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.2;
    padding: 4px 14px;
    border-radius: var(--pf-radius-sm);
    border: 1px solid transparent;
    transition: color var(--pf-transition), border-color var(--pf-transition), background var(--pf-transition);
}

.pf-categories-list a:hover {
    color: var(--pf-primary);
    border-color: var(--pf-border);
    background: var(--pf-bg-subtle);
}

.pf-categories-list .pf-cat-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 0;
    flex-shrink: 0;
}

.pf-categories-list .pf-cat-icon-svg {
    color: var(--pf-text);
}

.pf-categories-list .pf-cat-icon-svg svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pf-categories-list a:hover .pf-cat-icon-svg {
    color: var(--pf-primary);
}

/* Homepage vertical rhythm between major blocks */
body.home .entry-content > div[style*="max-width:1200px"] {
    margin-top: var(--pf-section-space) !important;
    margin-bottom: var(--pf-section-space) !important;
}

body.home .entry-content > div.pf-newsletter {
    margin-top: calc(var(--pf-section-space) * 1.1) !important;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.pf-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 30px;
}

.pf-section-header h2 {
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
    margin: 0;
}

.pf-section-header a {
    color: var(--pf-text-light);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.02em;
}

.pf-section-header a:hover {
    color: var(--pf-primary);
    text-decoration: none;
}

/* Inline homepage section headers (WordPress post content) */
body.home .entry-content div[style*="justify-content:space-between"] h2 {
    font-weight: 600 !important;
    letter-spacing: -0.02em !important;
}

body.home .entry-content div[style*="justify-content:space-between"] a {
    color: var(--pf-text-light) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

body.home .entry-content div[style*="justify-content:space-between"] a:hover {
    color: var(--pf-primary) !important;
}

/* Homepage inline “see all” links: match design token green */
body.home .entry-content a[style*="color:#1b7a2b"],
body.home .entry-content a[style*="color: #1b7a2b"] {
    color: var(--pf-primary) !important;
}

/* ============================================
   PRODUCT CARDS – Clean, modern
   ============================================ */
.content_constructor .grid_onsale,
.woo_grid_compact,
.deal-item,
.product-card,
.rh-cartbox,
li.product .product-inner,
.woocommerce ul.products li.product {
    border-radius: var(--pf-radius);
    border: 1px solid var(--pf-border);
    background: var(--pf-bg-white);
    transition: box-shadow var(--pf-transition), transform var(--pf-transition);
    overflow: hidden;
}

.content_constructor .grid_onsale:hover,
.woo_grid_compact:hover,
.deal-item:hover,
.product-card:hover,
.rh-cartbox:hover,
li.product .product-inner:hover {
    box-shadow: var(--pf-shadow-hover);
    transform: translateY(-1px);
    border-color: var(--pf-border-strong);
}

/* Product image area */
.rh-cartbox .rh-cartbox-image,
.product-card .product-image {
    position: relative;
    overflow: hidden;
    background: #fafafa;
}

/* Sale / discount badges – quiet, editorial */
.sale_a_proc,
.rehub-label-discount,
.discount-badge,
.pf-sale-badge,
span.onsale.discount-badge {
    background: rgba(21, 107, 40, 0.07) !important;
    color: #3d5c45 !important;
    border-radius: 4px;
    font-weight: 500;
    font-size: 10px;
    padding: 3px 7px;
    letter-spacing: 0.06em;
    text-transform: none;
    border: 1px solid rgba(21, 107, 40, 0.12);
}

/* Product title */
.rh-cartbox h3,
.product-card h3,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-text);
    line-height: 1.42;
    letter-spacing: -0.015em;
    margin: 10px 0 8px;
}

/* Product price */
.rh-deal-price,
.price ins,
.rehub-main-font.font110,
.price-old-new .price-new,
.woocommerce ul.products li.product .price {
    color: var(--pf-text);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.01em;
    margin-top: 2px;
}

.rh-deal-price-old,
.price del,
.price-old-new .price-old {
    color: var(--pf-muted);
    text-decoration: line-through;
    font-size: 12px;
    font-weight: 400;
}

/* Product meta / attributes – inline editorial line, not a bullet list */
.woo_code_zone_loop .border-top.mb10,
.woo_code_zone_loop .border-top.mt15 {
    border-top-color: rgba(0, 0, 0, 0.06) !important;
    opacity: 1;
}

.woo_code_zone_loop .pf-product-attrs,
li.product ul.pf-product-attrs {
    display: block !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 6px 0 0 !important;
}

.woo_code_zone_loop .pf-product-attrs li,
li.product ul.pf-product-attrs li {
    list-style: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    display: inline;
    font-size: 11px !important;
    line-height: 1.45 !important;
    font-weight: 400 !important;
    color: #9c9c98 !important;
}

.woo_code_zone_loop .pf-product-attrs li + li::before,
li.product ul.pf-product-attrs li + li::before {
    content: '·';
    display: inline;
    margin: 0 0.5em 0 0;
    color: #c8c8c4;
    font-weight: 400;
}

.woo_code_zone_loop .pf-product-attrs li span:first-child,
li.product ul.pf-product-attrs li span:first-child {
    font-weight: 500 !important;
    color: #a8a8a3 !important;
    margin-right: 0.2em;
}

.woo_code_zone_loop .pf-product-attrs,
li.product .rehub-main-font.font80,
li.product .woo_loop_desc {
    color: #9c9c98 !important;
}

/* Rating stars */
.star-rating span::before,
.rated_stars span {
    color: var(--pf-star);
}

/* Loop action icons (wishlist, compare, quick view) – recessive */
li.product .rehub_woo_loop_actions a,
li.product .button_action a,
li.product .icons_col a,
li.product a.actloopact {
    opacity: 0.48 !important;
    transition: opacity var(--pf-transition), color var(--pf-transition) !important;
}

li.product .rehub_woo_loop_actions a .rhicon,
li.product .button_action a .rhicon,
li.product .icons_col a .rhicon,
li.product a.actloopact .rhicon {
    font-size: 13px !important;
}

li.product .rehub_woo_loop_actions a:hover,
li.product .button_action a:hover,
li.product .icons_col a:hover,
li.product a.actloopact:hover {
    opacity: 0.88 !important;
    color: var(--pf-text-light) !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn_offer_block,
.rh-deal-compact-btn a,
.wpsm-button.rehub_main_btn,
.re_track_btn,
.elementor-button {
    background: var(--pf-primary) !important;
    color: #fff !important;
    border: none;
    border-radius: var(--pf-radius-sm);
    font-weight: 600;
    font-size: 13px;
    padding: 10px 22px;
    letter-spacing: 0.03em;
    transition: background var(--pf-transition), opacity var(--pf-transition);
    cursor: pointer;
    box-shadow: none !important;
}

.btn_offer_block:hover,
.rh-deal-compact-btn a:hover,
.wpsm-button.rehub_main_btn:hover,
.re_track_btn:hover,
.elementor-button:hover {
    background: var(--pf-secondary) !important;
    color: #fff !important;
    opacity: 0.96;
}

/*
 * Loop cart CTA — charcoal. Beats Customizer `.woocommerce a.woo_loop_btn{background:#ff4136!important}`.
 * REHub grids use div.product inside div.products (no ul/li) — must target .woocommerce .product, not only li.product.
 */
html body .woocommerce .product a.re_track_btn.woo_loop_btn,
html body .woocommerce .product a.woo_loop_btn.re_track_btn,
html body .woocommerce ul.products li.product a.re_track_btn.woo_loop_btn,
html body .woocommerce ul.products li.product a.woo_loop_btn,
html body .woocommerce div.products .product a.re_track_btn.woo_loop_btn,
html body .woocommerce div.products .product a.woo_loop_btn,
html body .product.woo_grid_compact a.re_track_btn.woo_loop_btn,
html body .product.woo_grid_compact a.re_track_btn,
html body .product.woo_grid_compact a.woo_loop_btn,
html body .product .rh-flex-right-align.btn_for_grid a.re_track_btn,
html body .product .rh-flex-right-align.btn_for_grid a.woo_loop_btn,
html body .woocommerce .product a.re_track_btn.woo_loop_btn.rehub-main-color-bg,
html body .woocommerce .product a.woo_loop_btn.rehub-main-color-bg,
html body .grid_woo .product a.re_track_btn.woo_loop_btn,
html body div.products .product a.re_track_btn.woo_loop_btn {
    background: var(--pf-charcoal) none !important;
    background-color: var(--pf-charcoal) !important;
    background-image: none !important;
    color: #f4f4f3 !important;
    fill: #f4f4f3 !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    font-weight: 500 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

html body .woocommerce .product a.re_track_btn.woo_loop_btn:hover,
html body .woocommerce .product a.woo_loop_btn:hover,
html body .woocommerce ul.products li.product a.woo_loop_btn:hover,
html body .woocommerce div.products .product a.re_track_btn:hover,
html body .product.woo_grid_compact a.re_track_btn:hover,
html body .product.woo_grid_compact a.woo_loop_btn:hover,
html body .product .rh-flex-right-align.btn_for_grid a.re_track_btn:hover,
html body .product .rh-flex-right-align.btn_for_grid a.woo_loop_btn:hover,
html body .grid_woo .product a.re_track_btn.woo_loop_btn:hover,
html body div.products .product a.re_track_btn.woo_loop_btn:hover {
    background: var(--pf-charcoal-hover) none !important;
    background-color: var(--pf-charcoal-hover) !important;
    background-image: none !important;
    color: #ffffff !important;
    fill: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.18) !important;
    opacity: 1 !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

html body .woocommerce .product a.re_track_btn.woo_loop_btn svg,
html body .woocommerce .product a.woo_loop_btn svg,
html body .product.woo_grid_compact a.re_track_btn svg {
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

html body .woocommerce .product a.re_track_btn.woo_loop_btn:hover svg,
html body .product.woo_grid_compact a.re_track_btn:hover svg {
    opacity: 1;
}

/* Sign in button style */
.pf-btn-signin {
    background: transparent;
    border: 1px solid var(--pf-border-strong);
    color: var(--pf-text);
    border-radius: var(--pf-radius-sm);
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--pf-transition), color var(--pf-transition), background var(--pf-transition);
}

.pf-btn-signin:hover {
    background: var(--pf-primary);
    color: #ffffff;
    border-color: var(--pf-primary);
}

/* ============================================
   NEWSLETTER – quiet CTA strip
   ============================================ */
.pf-newsletter {
    background: var(--pf-newsletter-bg);
    padding: 44px 24px;
    text-align: center;
    border-radius: var(--pf-hero-radius);
    max-width: 1160px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-newsletter h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 10px;
}

.pf-newsletter p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 auto 22px;
    max-width: 460px;
}

.pf-newsletter-form {
    display: flex;
    justify-content: center;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.pf-newsletter-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 12px 18px;
    border: none;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.95);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pf-newsletter-form button {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(21, 107, 40, 0.3);
    border-left: none;
    padding: 11px 16px;
    cursor: pointer;
    color: var(--pf-primary);
    transition: background var(--pf-transition), border-color var(--pf-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pf-newsletter-form button:hover {
    background: rgba(21, 107, 40, 0.1);
    border-color: rgba(21, 107, 40, 0.45);
}

.pf-newsletter-form button svg {
    stroke: var(--pf-primary);
    stroke-width: 2;
}

/* ============================================
   SINGLE POST – Clean up article pages
   ============================================ */
.single-post .top_share {
    display: none !important;
}

/* Tables in article content: horizontal scroll on mobile */
.rh-post-wrapper .wp-block-table,
.rh-post-wrapper > table,
.rh-post-wrapper figure.wp-block-table,
.entry-content .wp-block-table,
.entry-content > table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    max-width: 100%;
}
@media (max-width: 767px) {
    .rh-post-wrapper table,
    .entry-content table {
        min-width: 600px;
        width: max-content;
    }
}

/* ============================================
   FOOTER – Light, airy, premium quiet
   ============================================ */
footer.suspended_footer,
.bottom_more_footer,
.rh-footer,
#rh_suspended_footer,
.suspended_footer_area {
    background: var(--pf-bg-subtle) !important;
    color: var(--pf-text-light) !important;
    border-top: 1px solid var(--pf-border) !important;
}

.rh-footer .widget-title,
footer .widget-title,
.suspended_footer_area .widget-title {
    color: var(--pf-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px !important;
}

footer a,
.rh-footer a,
.suspended_footer_area a {
    color: var(--pf-muted) !important;
    text-decoration: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

footer a:hover,
.rh-footer a:hover,
.suspended_footer_area a:hover,
.footer-bottom.dark_style .footer_widget a:hover,
.footer-bottom.dark_style .footer_widget ul li a:hover {
    color: #dccfb8 !important;
    text-decoration: underline !important;
    text-decoration-color: rgba(220, 207, 184, 0.85) !important;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
}

/* Icon links: no underline, slight brighten */
.pf-footer-social a:hover,
.suspended_footer_area .pf-footer-social a:hover,
footer .pf-footer-social a:hover,
.footer-bottom.dark_style .widget.social_link a:hover,
.footer-bottom.dark_style .social_icon a:hover {
    text-decoration: none !important;
    color: #ffffff !important;
    opacity: 0.95;
}

.rh-footer .footer-bottom,
.footer_style_suspended,
.footer_bottom_part {
    border-top: 1px solid var(--pf-border) !important;
    color: var(--pf-muted) !important;
    font-size: 12px;
    padding-top: 1.25rem !important;
}

/*
 * REHub footer: bg image is anchored bottom — large padding-top + solid #000 reads as an empty band.
 * Keep padding modest; extend image coverage so the strip above columns is not a flat void.
 */
.footer-bottom.dark_style {
    position: relative;
    padding-top: 28px !important;
    padding-bottom: 48px !important;
    background-size: cover !important;
    background-position: center 42% !important;
    background-repeat: no-repeat !important;
}

.footer-bottom.dark_style > .rh-container {
    position: relative;
    z-index: 1;
}

.footer-bottom.dark_style .footer_widget .title,
.footer-bottom.dark_style .footer_widget h2 {
    font-weight: 500 !important;
    letter-spacing: 0.12em !important;
}

footer.suspended_footer p,
footer.suspended_footer li,
.suspended_footer_area p,
.suspended_footer_area li,
.rh-footer .widget p,
.rh-footer .widget li {
    color: var(--pf-text-light) !important;
}

/* Footer newsletter widget (readable on dark / image footers) */
.pf-footer-newsletter-wrap {
    max-width: 100%;
}

.pf-footer-nl-title {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 8px 0 12px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.pf-footer-nl-desc {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 20px !important;
    font-weight: 400;
    max-width: 28em;
    text-shadow: none;
}

.pf-footer-nl-form {
    display: flex;
    gap: 0;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    max-width: 400px;
    background: rgba(0, 0, 0, 0.15);
}

.pf-footer-nl-form input[type="email"] {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    border: none;
    border-radius: 0;
    background: rgba(255, 255, 255, 0.96);
    color: var(--pf-text);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: box-shadow 0.2s ease;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.pf-footer-nl-form input[type="email"]::placeholder {
    color: var(--pf-muted);
}

.pf-footer-nl-form input[type="email"]:focus {
    box-shadow: inset 0 0 0 1px rgba(21, 107, 40, 0.35);
}

.pf-footer-nl-form button {
    flex-shrink: 0;
    padding: 11px 22px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.95);
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.pf-footer-nl-form button:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Footer newsletter inside mobile slide-out (narrow panel, any viewport width) */
#dl-menu .pf-footer-nl-form,
.dl-menuwrapper .pf-footer-nl-form,
.responsive_nav_wrap .pf-footer-nl-form {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    border: none;
    overflow: visible;
    border-radius: 0;
    max-width: 100%;
}

#dl-menu .pf-footer-nl-form input[type="email"],
.dl-menuwrapper .pf-footer-nl-form input[type="email"],
.responsive_nav_wrap .pf-footer-nl-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
}

#dl-menu .pf-footer-nl-form input[type="email"]:focus,
.dl-menuwrapper .pf-footer-nl-form input[type="email"]:focus,
.responsive_nav_wrap .pf-footer-nl-form input[type="email"]:focus {
    box-shadow: 0 0 0 2px rgba(21, 107, 40, 0.2);
}

#dl-menu .pf-footer-nl-form button,
.dl-menuwrapper .pf-footer-nl-form button,
.responsive_nav_wrap .pf-footer-nl-form button {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    border-radius: var(--pf-radius-sm);
}

/* ============================================
   CATEGORY FILTER PILLS
   ============================================ */
.pf-cat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.pf-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--pf-text, #2d2d2d);
    background: var(--pf-bg-soft, #f5f5f5);
    border: 1px solid var(--pf-border, #e5e5e5);
    border-radius: 20px;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
    white-space: nowrap;
    font-family: inherit;
    text-decoration: none;
}
a.pf-cat-pill:hover {
    color: var(--pf-text, #2d2d2d);
    text-decoration: none;
}
a.pf-cat-pill.active {
    color: #fff;
}
.pf-cat-pill:hover {
    background: #eaeaea;
    border-color: #ccc;
}
.pf-cat-pill.active {
    background: var(--pf-primary, #2d2d2d);
    color: #fff;
    border-color: var(--pf-primary, #2d2d2d);
}
.pf-filter-hidden {
    display: none !important;
}

/* ============================================
   FEATURED POSTS – magazine-style hero grid
   Layout: large left | medium top-right
                       | 2 small bottom-right
   ============================================ */
.pf-featured-grid {
    display: grid;
    grid-template-columns: 55% 1fr 1fr;
    grid-template-rows: 55% 1fr;
    gap: 5px;
    border-radius: var(--pf-radius);
    overflow: hidden;
    height: 500px;
}

.pf-featured-main,
.pf-featured-side-item {
    position: relative;
    background-size: cover;
    background-position: center;
    background-color: #2a2a3a;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

/* Large left – spans full height */
.pf-featured-main {
    grid-column: 1;
    grid-row: 1 / -1;
}

/* Medium top-right – spans both right columns */
.pf-featured-side-item:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1;
}

/* Two small bottom-right – one per column */
.pf-featured-side-item:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
}

.pf-featured-side-item:nth-child(4) {
    grid-column: 3;
    grid-row: 2;
}

.pf-featured-main::before,
.pf-featured-side-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
    transition: background var(--pf-transition);
}

.pf-featured-main:hover::before,
.pf-featured-side-item:hover::before {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.28) 55%, rgba(0,0,0,0.05) 100%);
}

.pf-featured-overlay {
    position: relative;
    z-index: 1;
    padding: 22px;
    width: 100%;
}

.pf-featured-cat {
    display: inline-block;
    background: var(--pf-primary);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.pf-featured-main .pf-featured-overlay h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 8px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.pf-featured-side-item .pf-featured-overlay h3 {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* The medium top-right gets slightly larger text */
.pf-featured-side-item:nth-child(2) .pf-featured-overlay h3 {
    font-size: 1.1rem;
}

.pf-featured-meta {
    font-size: 12px;
    color: rgba(255,255,255,0.78);
}

.pf-featured-main .pf-featured-meta {
    font-size: 13px;
}

/* Bottom-right small items: tighter padding */
.pf-featured-side-item:nth-child(3) .pf-featured-overlay,
.pf-featured-side-item:nth-child(4) .pf-featured-overlay {
    padding: 16px;
}

@media (max-width: 768px) {
    .pf-featured-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 260px 180px;
        height: auto;
    }
    .pf-featured-main {
        grid-column: 1 / -1;
        grid-row: 1;
    }
    .pf-featured-side-item:nth-child(2) {
        display: none;
    }
    .pf-featured-side-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    .pf-featured-side-item:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    .pf-featured-main .pf-featured-overlay h3 {
        font-size: 1.15rem;
    }
}

/* ============================================
   BLOG / INSPIRATION – editorial cards
   ============================================ */
.pf-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.pf-blog-card {
    display: block;
    border-radius: var(--pf-radius);
    overflow: hidden;
    background: var(--pf-bg-white);
    border: 1px solid var(--pf-border);
    text-decoration: none;
    color: var(--pf-text);
    transition: box-shadow var(--pf-transition), transform var(--pf-transition), border-color var(--pf-transition);
}

.pf-blog-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--pf-shadow-hover);
    border-color: var(--pf-border-strong);
    color: var(--pf-text);
}

.pf-blog-card-img {
    height: 190px;
    overflow: hidden;
    background: linear-gradient(145deg, #eceae6 0%, #e8ebe8 40%, #e5e8e4 100%);
}

.pf-blog-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #eceae6 0%, #e2e6e1 50%, #dde3dd 100%);
}

.pf-blog-card-body {
    padding: 18px 18px 20px;
}

.pf-blog-card-body h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    line-height: 1.35;
}

.pf-blog-card-meta {
    font-size: 11px;
    color: var(--pf-muted);
    display: block;
    margin-bottom: 10px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pf-blog-card-body p {
    font-size: 13px;
    color: var(--pf-text-light);
    line-height: 1.55;
    margin: 0;
}

/* Blog archive page */
.pf-blog-archive-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 28px;
    letter-spacing: -0.02em;
}

.pf-blog-pagination {
    margin-top: 40px;
    text-align: center;
}

.pf-blog-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.pf-blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 500;
    color: var(--pf-text);
    text-decoration: none;
    border: 1px solid var(--pf-border);
    transition: all var(--pf-transition);
}

.pf-blog-pagination .page-numbers.current {
    background: var(--pf-primary);
    color: #fff;
    border-color: var(--pf-primary);
}

.pf-blog-pagination .page-numbers:hover:not(.current) {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
}

/* ============================================
   PRICE COMPARISON TABLE
   ============================================ */
.rehub-price-table,
.table_view_block {
    border-radius: var(--pf-radius);
    overflow: hidden;
    border: 1px solid var(--pf-border);
    background: var(--pf-bg-white);
}

.rehub-price-table tr:hover,
.table_view_block tr:hover {
    background-color: rgba(21, 107, 40, 0.04);
}

.best_price_row,
.best-deal-highlight {
    background: linear-gradient(135deg, rgba(21, 107, 40, 0.07), rgba(21, 107, 40, 0.02));
    border-left: 2px solid var(--pf-primary);
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumb,
.woocommerce-breadcrumb {
    font-size: 13px;
    color: var(--pf-muted);
    padding: 12px 0;
}

/* Product pages: quieter trail (REHub woosingle.css uses 14px / near-black links) */
body.single-product nav.woocommerce-breadcrumb {
    font-size: 12px;
    line-height: 1.45;
    color: #a3a3a0;
    margin: 2px 0 28px;
    padding: 0;
}

body.single-product nav.woocommerce-breadcrumb a {
    color: #9a9a96;
    text-decoration: none;
}

body.single-product nav.woocommerce-breadcrumb a:hover {
    color: var(--pf-primary);
}

body.single-product nav.woocommerce-breadcrumb .delimiter,
body.single-product nav.woocommerce-breadcrumb span.delimiter {
    margin: 0 8px;
    color: #c8c8c4;
}

/* REHub woosingle: grey pill behind each crumb — too loud for PrisFare */
body.single-product nav.woocommerce-breadcrumb span.delimiter + a {
    padding: 0 !important;
    margin: 0 !important;
    background: none !important;
    background-color: transparent !important;
    border-radius: 0 !important;
    display: inline !important;
    line-height: inherit !important;
    color: inherit !important;
}

/* ============================================
   SINGLE PRODUCT – premium layout (default_with_sidebar & similar)
   ============================================ */
body.single-product .summary .product_title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
}

body.single-product .summary .re_wooinner_title_compact .woo-button-actions-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 22px;
    margin-bottom: 1.15rem;
    padding: 0;
    overflow: visible;
}

body.single-product .summary .woo-button-actions-area .heart_thumb_wrap,
body.single-product .summary .woo-button-actions-area .wpsm-button.rhwoosinglecompare {
    float: none;
    margin: 0;
}

body.single-product .summary .woo-button-actions-area .heartplus,
body.single-product .summary .woo-button-actions-area .wpsm-button.rhwoosinglecompare {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    padding: 5px 2px;
    border: none !important;
    border-radius: 0;
    color: var(--pf-text-light) !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: color 0.2s ease;
}

body.single-product .summary .woo-button-actions-area .heartplus:hover,
body.single-product .summary .woo-button-actions-area .wpsm-button.rhwoosinglecompare:hover {
    color: var(--pf-primary) !important;
    border: none !important;
    background: transparent !important;
}

/* REHub .wpsm-button.white adds grey “chip” — keep row text-only */
body.single-product .summary .woo-button-actions-area .wpsm-button.wpsm-button-new-compare.white {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.single-product .summary .woo-button-actions-area .wpsm-button.wpsm-button-new-compare.white:hover,
body.single-product .summary .woo-button-actions-area .wpsm-button.wpsm-button-new-compare.white:active {
    background-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

body.single-product .summary .woo-button-actions-area .heartplus:before {
    font-size: 15px;
    line-height: 1;
    margin-right: 0;
    vertical-align: -0.12em;
    opacity: 0.88;
}

body.single-product .summary .woo-button-actions-area .wpsm-button.rhwoosinglecompare i {
    font-size: 15px;
    line-height: 1;
    opacity: 0.88;
    margin: 0;
}

body.single-product .summary .woo-button-actions-area .wpsm-button.rhwoosinglecompare .comparelabel {
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

body.single-product .summary div[itemprop="description"],
body.single-product .summary .woocommerce-product-details__short-description {
    margin-top: 0.35rem;
    margin-bottom: 1.35rem;
    font-size: 15px;
    line-height: 1.58;
    color: var(--pf-text-light);
}

body.single-product .summary .re_wooinner_cta_wrapper {
    margin-bottom: 1.5rem;
}

body.single-product .summary .re_wooinner_cta_wrapper .woo-price-area {
    margin-bottom: 1rem;
}

body.single-product .woocommerce div.product .summary .price {
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.2;
    padding: 0 0 0.35rem;
    margin: 0 0 0.15rem;
    color: var(--pf-text);
}

body.single-product .woocommerce div.product .summary .price ins,
body.single-product .woocommerce div.product .summary .price ins .woocommerce-Price-amount,
body.single-product .woocommerce div.product .re_wooinner_cta_wrapper .price ins,
body.single-product .woocommerce div.product .re_wooinner_cta_wrapper .price ins .woocommerce-Price-amount {
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    line-height: 1.2;
}

body.single-product .woocommerce div.product .summary .price del,
body.single-product .woocommerce div.product .summary .price del .woocommerce-Price-amount,
body.single-product .woocommerce div.product .re_wooinner_cta_wrapper .price del,
body.single-product .woocommerce div.product .re_wooinner_cta_wrapper .price del .woocommerce-Price-amount {
    color: #6c6c67 !important;
    opacity: 1 !important;
    font-weight: 400 !important;
    font-size: 0.72em !important;
    margin-left: 0.35em;
    vertical-align: 0.05em;
    text-decoration: line-through !important;
    text-decoration-color: rgba(108, 108, 103, 0.55) !important;
    text-decoration-thickness: 1px !important;
    -webkit-text-fill-color: #6c6c67 !important;
}

body.single-product .woocommerce div.product .summary p.cart {
    margin: 0 0 1.35rem !important;
}

/* External CTA: inline !important on <a> — hover = wrapper lift/shadow + brightness on link */
body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe {
    display: inline-block;
    width: 100%;
    max-width: min(100%, 280px);
    vertical-align: top;
    border-radius: 8px;
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe > a.single_add_to_cart_button {
    transition: filter 0.24s ease !important;
}

body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.14),
        0 6px 14px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(21, 107, 40, 0.22);
}

body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe:hover > a.single_add_to_cart_button {
    filter: brightness(1.22) saturate(1.08);
}

body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

body.single-product .woocommerce div.product .summary .pf-prisfare-cta-breathe:active > a.single_add_to_cart_button {
    filter: brightness(1.08) saturate(1.02);
}

body.single-product .woocommerce div.product .summary a.single_add_to_cart_button {
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: none;
    padding: 14px 24px;
    max-width: 320px;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

body.single-product .woocommerce div.product .summary a.single_add_to_cart_button:hover,
body.single-product .woocommerce div.product p.cart a.single_add_to_cart_button:hover {
    background-color: #3d4550 !important;
    color: #ffffff !important;
    border-color: rgba(21, 107, 40, 0.4) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(21, 107, 40, 0.12) !important;
    transform: translateY(-2px);
}

body.single-product .woocommerce div.product .summary a.single_add_to_cart_button:active,
body.single-product .woocommerce div.product p.cart a.single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}

body.single-product .woocommerce div.product .summary .product_meta {
    font-size: 13px;
    line-height: 1.55;
    color: var(--pf-text-light);
    margin-bottom: 1.35rem;
}

body.single-product .woocommerce div.product .summary .product_meta a,
body.single-product .woocommerce div.product .summary .posted_in a,
body.single-product .woocommerce div.product .summary .tagged_as a {
    color: var(--pf-primary) !important;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(21, 107, 40, 0.45);
    text-underline-offset: 0.2em;
    text-decoration-thickness: 1px;
    border-bottom: none;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

body.single-product .woocommerce div.product .summary .product_meta a:hover,
body.single-product .woocommerce div.product .summary .posted_in a:hover,
body.single-product .woocommerce div.product .summary .tagged_as a:hover {
    color: var(--pf-secondary) !important;
    text-decoration-color: rgba(15, 82, 32, 0.75);
}

/* Top Offers / CE: breathing room below widget title (first deal row) */
body.single-product .sidebar .widget.top_offers .rh_deal_block > .deal_block_row:first-child,
body.single-product .sidebar .widget.cegg_widget_products .rh_deal_block > .deal_block_row:first-child {
    padding-top: 14px;
}

/* Content Egg prints widgettopoffers CSS after main stylesheet — footer CSS also forces this */
body.single-product .sidebar .widget.top_offers .title:before,
body.single-product .sidebar .widget.cegg_widget_products .title:before,
body.single-product .sidebar .widget.top_offers.rh_latest_compare_widget .title:before {
    color: #4a4a52 !important;
}

/* Social share – calmer, centered icons */
body.single-product .summary .post_share {
    margin-top: 0.25rem;
    margin-bottom: 0;
}

body.single-product .summary .row_social_inpost {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

body.single-product .summary .row_social_inpost span.share-link-image {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 10px !important;
    font-size: 15px !important;
    line-height: 1 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid var(--pf-border) !important;
    background: var(--pf-bg-subtle) !important;
    color: var(--pf-charcoal) !important;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

body.single-product .summary .row_social_inpost span.share-link-image:hover {
    background: #fff !important;
    border-color: var(--pf-border-strong) !important;
    color: var(--pf-text) !important;
}

body.single-product .summary .row_social_inpost span.share-link-image i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    line-height: 1 !important;
    vertical-align: middle !important;
    margin: 0 !important;
}

/* Sidebar on product pages – soften widget chrome */
body.single-product .sidebar .widget {
    background: var(--pf-bg-white);
    border: 1px solid var(--pf-border);
    border-radius: var(--pf-radius-sm);
    box-shadow: var(--pf-shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

body.single-product .sidebar .widget .title,
body.single-product .sidebar .widget > h2,
body.single-product .sidebar .widget > h3 {
    background: var(--pf-bg-subtle) !important;
    color: var(--pf-text) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    border: none !important;
    border-bottom: 1px solid var(--pf-border) !important;
}

body.single-product .sidebar .widget .title:after,
body.single-product .sidebar .widget > h2:after,
body.single-product .sidebar .widget > h3:after {
    display: none !important;
}

body.single-product .sidebar .widget ul li a {
    color: var(--pf-charcoal);
}

body.single-product .sidebar .widget ul li a:hover {
    color: var(--pf-primary);
}

body.single-product .sidebar .wpsm-titlebox {
    border: 1px solid var(--pf-border) !important;
    background: var(--pf-bg-white) !important;
    border-radius: var(--pf-radius-sm) !important;
    box-shadow: var(--pf-shadow);
    margin-bottom: 1.25rem !important;
    padding: 0 !important;
}

body.single-product .sidebar .wpsm-titlebox > strong:first-child {
    position: static !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 16px !important;
    left: auto !important;
    top: auto !important;
    background: var(--pf-bg-subtle) !important;
    color: var(--pf-text) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid var(--pf-border) !important;
}

body.single-product .sidebar .price del,
body.single-product .sidebar del {
    color: #7a7a76 !important;
    opacity: 1 !important;
    text-decoration-color: rgba(122, 122, 118, 0.45) !important;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--pf-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ============================================
   STICKY HEADER
   Same template, just fixed to top with shadow
   ============================================ */
.sticky-wrapper,
div.sticky-wrapper {
    background: #ffffff !important;
}

#main_header {
    background: #ffffff !important;
}

.is-sticky .pf-header-bar,
.is-sticky .rh-stickme {
    background: #ffffff !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04) !important;
    border: none !important;
}

nav.top_menu > ul > li,
nav.top_menu > ul:not(.off-canvas) > li {
    border: none !important;
    border-right: none !important;
    box-shadow: none !important;
}

/* Strip parent-theme link decorations */
nav.top_menu > ul:not(.off-canvas) > li > a::before {
    display: none !important;
    content: none !important;
}

/* Hide REHub ::after on all desktop top_menu links (loaded after child CSS); PrisFare re-enables chevron below */
nav.top_menu > ul:not(.off-canvas) > li > a::after {
    display: none !important;
    content: none !important;
}

nav.top_menu,
nav.top_menu > ul,
.pf-header-bar,
.rh-stickme {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* ============================================
   WP ADMIN BAR fix
   ============================================ */
.admin-bar .rh-stickme,
.admin-bar .rh-sticky-header {
    top: 32px !important;
}

/* ============================================
   ELEMENTOR OVERRIDES
   ============================================ */
.elementor-section.elementor-section-full_width > .elementor-container {
    max-width: 100%;
}

.elementor h2.elementor-heading-title {
    font-family: 'Inter', sans-serif;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* --- Tablet (≤991px) --- */
@media (max-width: 991px) {
    .pf-hero-section {
        padding: 20px 16px 4px;
    }

    .pf-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 28px;
        padding: 32px 24px;
    }

    .pf-hero-content {
        align-items: center;
    }

    .pf-hero-content p {
        max-width: 100%;
    }

    .pf-hero-content h1 {
        font-size: 1.75rem;
    }

    .pf-hero-search {
        margin: 0 auto;
        max-width: 100%;
    }

    .pf-hero-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        align-self: center;
        border-radius: var(--pf-radius);
    }

    .pf-hero-image::before {
        background: linear-gradient(
            180deg,
            rgba(36, 36, 44, 0.4) 0%,
            rgba(36, 36, 44, 0.12) 40%,
            transparent 70%
        );
    }

    .pf-categories-list {
        gap: 20px;
        flex-wrap: wrap;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Match hero outer gutter (16px) for inline homepage rails */
    div[style*="max-width:1200px"],
    div[style*="max-width: 1200px"] {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .pf-section-header {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* --- Mobile (≤768px) --- */
@media (max-width: 768px) {

    /* Prevent any horizontal overflow (use clip to not break position:sticky) */
    .rh-outer-wrap,
    .rh-container,
    .content,
    .main-side,
    .pf-hero-section,
    .pf-categories-bar,
    .elementor-section {
        max-width: 100vw !important;
        overflow-x: clip;
    }

    /* Inline homepage sections — match .pf-hero-section horizontal gutter (12px) */
    div[style*="max-width:1200px"],
    div[style*="max-width: 1200px"] {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Hero */
    .pf-hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .pf-hero-content p {
        font-size: 13px;
    }

    .pf-hero-image {
        display: none;
    }

    .pf-hero-section {
        padding: 16px 12px 4px !important;
    }

    .pf-hero-section .pf-hero-inner {
        padding: 26px 18px !important;
        border-radius: 18px;
    }

    .pf-hero-search {
        max-width: 100%;
    }

    .pf-hero-search input[type="text"] {
        font-size: 16px;
    }

    /* Category icons – scrollable row on mobile */
    .pf-categories-bar {
        padding: 16px 0;
    }

    .pf-categories-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 12px !important;
        justify-content: center;
        scrollbar-width: none;
    }

    .pf-categories-list::-webkit-scrollbar {
        display: none;
    }

    .pf-categories-list li {
        flex: 0 0 auto;
    }

    .pf-categories-list a {
        font-size: 11px;
        gap: 2px;
        line-height: 1.2;
        padding: 6px 14px;
        min-width: 60px;
    }

    .pf-categories-list .pf-cat-icon {
        width: 46px;
        height: 46px;
        font-size: 27px;
        line-height: 0;
    }

    .pf-categories-list .pf-cat-icon-svg svg {
        width: 28px;
        height: 28px;
        stroke-width: 1.5;
    }

    /* Product grid */
    .woocommerce ul.products,
    ul.products {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .woocommerce ul.products li.product,
    ul.products li.product {
        width: 48% !important;
        margin: 0 1% 16px !important;
        float: left;
    }

    .woocommerce ul.products li.product .product-inner,
    ul.products li.product .product-inner {
        overflow: hidden;
        word-wrap: break-word;
    }

    /* Product card content overflow */
    li.product h2,
    li.product h3,
    li.product .woocommerce-loop-product__title {
        font-size: 13px !important;
        line-height: 1.3 !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    li.product .price {
        font-size: 14px !important;
    }

    /* Hide product attributes that overflow on mobile */
    li.product .rehub-main-font.font80,
    li.product .compare-button-block {
        display: none !important;
    }

    /* Section headings — same 12px gutter as hero */
    .pf-section-header,
    div[style*="display:flex"][style*="justify-content:space-between"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    div[style*="display:flex"][style*="justify-content:space-between"] h2 {
        font-size: 1.1rem !important;
    }

    /* Blog cards */
    .pf-blog-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .pf-blog-card-img {
        height: 140px;
    }

    .pf-blog-card-body h3 {
        font-size: 14px;
    }

    /* Footer */
    .footer-bottom .rh-container,
    .suspended_footer_area .rh-container,
    footer .rh-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    /* Footer newsletter: full-width stack (fixes narrow button vs input) */
    .pf-footer-nl-form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        border: none;
        overflow: visible;
        border-radius: 0;
    }

    .pf-footer-nl-form input[type="email"] {
        width: 100%;
        max-width: 100%;
        border: 1px solid var(--pf-border);
        border-radius: var(--pf-radius-sm);
    }

    .pf-footer-nl-form input[type="email"]:focus {
        box-shadow: 0 0 0 2px rgba(21, 107, 40, 0.2);
    }

    .pf-footer-nl-form button {
        width: 100%;
        max-width: 100%;
        border-radius: var(--pf-radius-sm);
        justify-content: center;
    }

    /* Homepage newsletter block */
    .pf-newsletter {
        padding: 32px 18px;
        margin-left: 12px;
        margin-right: 12px;
    }

    .pf-newsletter-form {
        flex-direction: column;
        align-items: stretch;
        max-width: none;
        width: 100%;
        gap: 10px;
        border: none;
        overflow: visible;
        border-radius: 0;
    }

    .pf-newsletter-form input[type="email"] {
        width: 100%;
        border-radius: var(--pf-radius-sm);
        border: 1px solid rgba(255, 255, 255, 0.2);
        background: #fff;
    }

    .pf-newsletter-form button {
        width: 100%;
        border-radius: var(--pf-radius-sm);
        justify-content: center;
    }

    /* WooCommerce shortcode containers */
    .woocommerce {
        max-width: 100% !important;
        overflow-x: hidden;
    }
}

/* Hide empty product attribute rows on cards */
.pf-product-attrs li:not(:has(.meta_v_value)) {
    display: none !important;
}
.woo_code_zone_loop .pf-product-attrs:empty,
.woo_code_zone_loop:has(.pf-product-attrs:empty) {
    display: none !important;
}

/* --- Small mobile (≤480px) --- */
@media (max-width: 480px) {

    .pf-hero-content h1 {
        font-size: 1.2rem;
    }

    .pf-categories-list a {
        font-size: 10px;
        gap: 2px;
        line-height: 1.2;
        padding: 6px 10px;
        min-width: 54px;
    }

    .pf-categories-list .pf-cat-icon {
        width: 44px;
        height: 44px;
        line-height: 0;
    }

    .pf-categories-list .pf-cat-icon-svg svg {
        width: 26px;
        height: 26px;
        stroke-width: 1.5;
    }

    /* Stack section headers vertically */
    div[style*="display:flex"][style*="justify-content:space-between"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 4px;
    }
}

/* ============================================
   SIDEBAR – refined styling
   ============================================ */

/* Sidebar links: dark green instead of red */
.sidebar .widget a,
#secondary .widget a,
.rhsidebar .widget a {
    color: var(--pf-primary) !important;
    text-decoration: none;
    transition: color var(--pf-transition);
}
.sidebar .widget a:hover,
#secondary .widget a:hover,
.rhsidebar .widget a:hover {
    color: var(--pf-secondary) !important;
    text-decoration: underline;
}

/* Search widget button */
.sidebar .widget .search-form .search-submit,
#secondary .widget .search-form .search-submit,
.rhsidebar .search-submit,
.sidebar .widget input[type="submit"],
#secondary .widget input[type="submit"] {
    background: var(--pf-primary) !important;
    border-color: var(--pf-primary) !important;
    color: #fff !important;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 600;
    transition: background 0.15s ease;
}
.sidebar .widget .search-form .search-submit:hover,
#secondary .widget .search-form .search-submit:hover,
.sidebar .widget input[type="submit"]:hover,
#secondary .widget input[type="submit"]:hover {
    background: var(--pf-secondary) !important;
}

/* Search widget input */
.sidebar .widget .search-field,
#secondary .widget .search-field,
.rhsidebar .search-field {
    border-radius: 10px !important;
    border: 1px solid var(--pf-border) !important;
    padding: 8px 14px !important;
}

/* "Most Popular This Month" heading – warm beige instead of black */
.widget .wpsm-bar-heading,
.widget .rehub_woo_top_heading,
.widget .tabs_head_wrap,
.widget .wpsm_pretty_colored,
.widget .re_woo_star_box .title,
.woocommerce .widget .wpsm-bar-heading,
.widget.top_offers .title,
.widget.cegg_widget_products .title,
.widget.widget_affegg_widget .title {
    background: #f5f0e8 !important;
    color: var(--pf-text) !important;
    border-radius: 10px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
    border: 1px solid #e8e0d0 !important;
    text-transform: none !important;
    box-shadow: none !important;
}
.widget .wpsm-bar-heading svg,
.widget .wpsm-bar-heading i,
.widget .rehub_woo_top_heading svg,
.widget .rehub_woo_top_heading i,
.widget .wpsm_pretty_colored svg,
.widget .wpsm_pretty_colored i,
.widget.top_offers .title:before,
.widget.cegg_widget_products .title:before,
.widget.widget_affegg_widget .title:before {
    color: var(--pf-primary) !important;
    fill: var(--pf-primary) !important;
}

/* Top offers widget container */
.widget.top_offers,
.widget.cegg_widget_products {
    border: 1px solid var(--pf-border) !important;
    border-radius: 12px !important;
    padding: 16px !important;
    background: #fff !important;
}

/* Popular widget product titles – green links */
.widget .woocommerce ul.product_list_widget li a,
.widget .re_woo_star_box a {
    color: var(--pf-text) !important;
    font-weight: 500;
}
.widget .woocommerce ul.product_list_widget li a:hover,
.widget .re_woo_star_box a:hover {
    color: var(--pf-primary) !important;
}

/* Widget prices */
.widget .woocommerce ul.product_list_widget li .amount {
    color: var(--pf-primary) !important;
    font-weight: 600;
}

/* Widget headings */
.sidebar .widget > h2,
.sidebar .widget > h3,
.sidebar .widgettitle,
#secondary .widgettitle,
.rhsidebar .widgettitle {
    font-size: 15px;
    font-weight: 700;
    color: var(--pf-text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pf-border);
}

/* ========================================
   My Account page
   ======================================== */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--pf-text);
    font-weight: 500;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: var(--pf-primary);
    color: #fff;
    text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
    font-size: 15px;
    line-height: 1.6;
}

/* Wishlist on My Account */
.pf-wishlist-empty {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 15px;
}

.re-favorites-posts .rowdisplay {
    border-radius: 8px;
    margin-bottom: 8px;
}

.re-favorites-posts .rowdisplay:hover {
    background: #f9f9f9;
}

.pf-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.pf-wishlist-item {
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.pf-wishlist-item:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.pf-wishlist-item img {
    width: 100%;
    height: auto;
    display: block;
}

.pf-wishlist-meta {
    padding: 10px 12px;
}

.pf-wishlist-title {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: var(--pf-text);
    margin-bottom: 4px;
}

.pf-wishlist-title:hover {
    color: var(--pf-primary);
}

.pf-wishlist-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--pf-primary);
}

/* Wishlist section headings */
.pf-wishlist-heading {
    font-size: 17px;
    font-weight: 700;
    color: var(--pf-text);
    margin: 24px 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pf-border);
}

.pf-wishlist-heading:first-child {
    margin-top: 0;
}

/* Saved articles list */
.pf-wishlist-articles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-wishlist-article {
    display: flex;
    gap: 14px;
    border: 1px solid var(--pf-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.pf-wishlist-article:hover {
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.pf-wishlist-article-thumb {
    flex-shrink: 0;
    width: 120px;
}

.pf-wishlist-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-wishlist-article-body {
    padding: 12px 14px 12px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.pf-wishlist-article-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--pf-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.pf-wishlist-article-title:hover {
    color: var(--pf-primary);
}

.pf-wishlist-article-date {
    font-size: 12px;
    color: #999;
    margin-bottom: 6px;
}

.pf-wishlist-article-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin: 0;
}

@media (max-width: 567px) {
    .pf-wishlist-article {
        flex-direction: column;
    }
    .pf-wishlist-article-thumb {
        width: 100%;
        height: 160px;
    }
    .pf-wishlist-article-body {
        padding: 12px;
    }
}

/* ========================================
   Instagram & TikTok share buttons
   ======================================== */
.social_icon .ig.share-link-image,
.social_icon .tt.share-link-image {
    position: relative;
    cursor: pointer;
}

.social_icon .ig.share-link-image {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #fff !important;
}

.social_icon .tt.share-link-image {
    background: #000 !important;
    color: #fff !important;
}

.social_icon .ig.share-link-image svg,
.social_icon .tt.share-link-image svg {
    vertical-align: middle;
}

.pf-copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    animation: pf-tooltip-fade 1.8s ease forwards;
    z-index: 100;
}

.pf-copy-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

@keyframes pf-tooltip-fade {
    0%, 70% { opacity: 1; }
    100% { opacity: 0; }
}

/* ========================================
   Share wishlist button (My Account)
   ======================================== */
.pf-share-wishlist {
    margin-bottom: 20px;
}

.pf-share-wishlist-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--pf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}

.pf-share-wishlist-btn:hover {
    background: #d4a84e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.pf-share-wishlist-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pf-share-wishlist-btn svg {
    flex-shrink: 0;
}

.pf-share-wishlist-url {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    max-width: 520px;
}

.pf-share-wishlist-url input {
    flex: 1;
    padding: 9px 12px;
    border: 1px solid var(--pf-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--pf-text);
    background: #f9f9f9;
    min-width: 0;
}

.pf-share-wishlist-url button {
    padding: 9px 16px;
    background: var(--pf-primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.pf-share-wishlist-url button:hover {
    background: #d4a84e;
}

.pf-share-wl-copied {
    position: absolute;
    right: 0;
    top: -28px;
    background: #333;
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
    white-space: nowrap;
}

.pf-share-wl-copied.visible {
    opacity: 1;
}

/* ========================================
   Public shareable wishlist page
   ======================================== */
.pf-public-wishlist-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.pf-public-wishlist-header {
    text-align: center;
    margin-bottom: 32px;
}

.pf-public-wishlist-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--pf-text);
    margin: 0 0 8px 0;
}

.pf-public-wishlist-intro {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.pf-public-wishlist-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pf-pub-wl-card {
    border: 1px solid var(--pf-border);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.pf-pub-wl-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.pf-pub-wl-img {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}

.pf-pub-wl-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pf-pub-wl-noimg {
    display: block;
    width: 100%;
    height: 100%;
    background: #eee;
}

.pf-pub-wl-body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pf-pub-wl-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--pf-text);
    line-height: 1.3;
    margin-bottom: 6px;
    text-decoration: none;
}

.pf-pub-wl-title:hover {
    color: var(--pf-primary);
}

.pf-pub-wl-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--pf-primary);
    margin-bottom: 12px;
}

.pf-pub-wl-price del {
    color: #999;
    font-weight: 400;
    font-size: 13px;
}

.pf-pub-wl-price ins {
    text-decoration: none;
}

.pf-pub-wl-cta {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: var(--pf-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, box-shadow 0.2s;
}

.pf-pub-wl-cta:hover {
    background: #d4a84e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .pf-public-wishlist-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pf-public-wishlist-header h1 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .pf-public-wishlist-grid {
        grid-template-columns: 1fr;
    }
    .pf-share-wishlist-url {
        flex-direction: column;
    }
    .pf-share-wishlist-url input {
        width: 100%;
    }
}
