/**
 * Blog & Product Slider Styles
 * Modifications: Abdullah Abbasi
 * Task: Blog System Revamp
 *
 * Main styles for the /blog listing page, single post layout, and
 * product slider component. Organised into four sections:
 *
 *   1. Blog Base Styles — Container, categories, sliders, cards, grid,
 *      pagination, single post layout, and related articles.
 *   2. Blog Media Queries — Responsive breakpoints in descending order:
 *      1200 → 992 → 640 → 576 → 370.
 *   3. Product Slider Base Styles — Slider shell, product cards, badges,
 *      pricing, strength indicators, and common-use tag colours.
 *   4. Product Slider Media Queries — Responsive breakpoints in descending
 *      order: 1200 → 1023 → 880 → 767 → 576 → 370.
 *
 * Improvements:
 * - Reordered all CSS properties per WordPress Coding Standards
 *   (Display → Positioning → Box model → Colors & Typography → Other).
 * - Normalised indentation to 4-space throughout all sections.
 * - Added blank line between every selector closing brace.
 * - Removed redundant inline comments already covered by docblocks.
 *
 * @package HelloElementorChild
 */

:root {
    --blog-yellow: #F9AD32;
}

/**
 * Section 1: Blog Base Styles
 *
 * Container sizing, horizontal category filter bar with scrollable overflow,
 * content sliders with drag-to-scroll, blog cards, AJAX-powered grid,
 * pagination controls, single post layout with sidebar image, and
 * related articles grid.
 */
.blog-revamp *,
.blog-revamp *::before,
.blog-revamp *::after {
    font-family: var(--nd-secondary-font) !important;
}

article a:hover * {
    color: inherit !important;
}

.blog-grid-container {
    display: block !important;
}

.blog-placeholder-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    background-color: #e0e0e0;
}

.blog-revamp,
.blog-revamp a,
.blog-revamp button,
.blog-revamp .blog-cat-item,
.blog-revamp .blog-cat-item.active,
.blog-revamp .blog-cat-item:hover {
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font) !important;
}

.blog-revamp-container {
    max-width: 1272px;
    margin: 0 auto;
    padding: 40px 16px 60px;
}

.category .blog-revamp-container {
    padding-bottom: 60px;
}

.blog-revamp {
    background: var(--nd-sections-bg, #F5F7F8);
}

.blog-categories {
    margin: 0 0 40px;
    padding-bottom: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.blog-categories::-webkit-scrollbar {
    height: 8px;
}

.blog-categories::-webkit-scrollbar-track {
    border-radius: 0;
    background: var(--nd-scrollbar-track, #ffffff);
}

.blog-categories::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: var(--nd-scrollbar-thumb, #333333);
}

.blog-categories::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

@-moz-document url-prefix() {
    .blog-categories {
        scrollbar-width: thin;
        scrollbar-color: var(--nd-scrollbar-thumb) var(--nd-scrollbar-track);
    }
}

.blog-categories-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.blog-cat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--nd-section-gray, #e7e7e7);
    border-radius: 32px;
    background: var(--nd-theme-white, #ffffff);
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: clamp(16px, 1.2vw, 18px);
    font-weight: 600;
    line-height: normal;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.blog-revamp .blog-cat-item:hover,
.blog-revamp .blog-cat-item.active,
.blog-revamp .blog-cat-item:focus,
.blog-revamp .blog-cat-item:focus-visible,
.blog-revamp .blog-cat-item:active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid var(--nd-theme-dark, #333333) !important;
    border-radius: 32px;
    background: var(--nd-theme-dark, #333333) !important;
    color: var(--nd-theme-white, #fff) !important;
    opacity: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

.blog-sliders-container {
    margin-bottom: 48px;
}

.blog-slider-wrapper {
    margin-bottom: 40px;
}

.blog-slider-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--nd-theme-dark, #333333);
}

.blog-slider-title {
    margin: 0;
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: clamp(16px, 1.8vw, 20px);
    font-style: normal;
    font-weight: 600 !important;
    line-height: normal;
    letter-spacing: -0.6px;
    text-align: center;
    text-transform: capitalize;
}

.blog-slider-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--nd-theme-dark, #333333) !important;
    font-family: var(--nd-secondary-font) !important;
    font-size: clamp(16px, 1.5vw, 20px) !important;
    font-style: normal !important;
    font-weight: 600 !important;
    line-height: normal !important;
    letter-spacing: -0.6px !important;
    text-decoration: none;
    text-transform: capitalize;
}

.blog-slider-link:hover {
    color: var(--nd-theme-dark, #333333) !important;
}

.blog-slider-link img {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.blog-slider-header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-slider-header-nav .custom-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 34px;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: var(--nd-sections-bg, #F5F7F8);
    cursor: pointer;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
}

.blog-slider-header-nav .custom-slider-nav:focus,
.blog-slider-header-nav .custom-slider-nav:focus-visible,
.blog-slider-header-nav .custom-slider-nav:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.blog-slider-header-nav .custom-slider-nav img {
    display: block;
}

.blog-slider {
    display: flex;
    gap: 20px;
    padding-bottom: 20px;
    overflow-x: auto;
    cursor: grab;
    scroll-behavior: smooth;
}

.blog-slider.dragging {
    cursor: grabbing;
    user-select: none;
}

.blog-slider::-webkit-scrollbar {
    height: 8px;
}

.blog-slider::-webkit-scrollbar-track {
    border-radius: 0;
    background: var(--nd-scrollbar-track, #fff);
}

.blog-slider::-webkit-scrollbar-thumb {
    border-radius: 100px;
    background: var(--nd-scrollbar-thumb, #333333);
}

.blog-slider::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}

@-moz-document url-prefix() {
    .blog-slider {
        scrollbar-width: thin;
        scrollbar-color: var(--nd-scrollbar-thumb) var(--nd-scrollbar-track);
    }
}

.slider-nav-bottom {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 16px;
}

.custom-slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    width: 34px;
    padding: 0;
    border: none;
    border-radius: 50px;
    background: var(--nd-sections-bg, #F5F7F8);
    cursor: pointer;
    flex-shrink: 0;
    outline: none !important;
    box-shadow: none !important;
}

.custom-slider-nav:hover,
.custom-slider-nav:focus,
.custom-slider-nav:focus-visible,
.custom-slider-nav:active {
    border: none !important;
    background: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.custom-slider-nav img {
    display: block;
}

.blog-slider-link-mobile {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    max-height: 48px;
    padding: 14px;
    margin-right: auto;
    margin-top: 16px;
    border: 1px solid var(--blog-yellow);
    border-radius: 32px;
    background: var(--blog-yellow) !important;
    color: var(--nd-theme-white, #fff) !important;
    font-family: var(--nd-secondary-font) !important;
    font-size: clamp(14px, 1.5vw, 16px) !important;
    font-weight: 500 !important;
    letter-spacing: -0.4px;
    text-decoration: none;
    text-transform: uppercase;
}

.blog-slider-link-mobile:hover {
    opacity: 0.85;
}

.blog-slider-link-mobile img {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.blog-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 292px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card-primary-cat {
    display: inline-block;
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: clamp(12px, 1vw, 14px);
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.3px;
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    gap: 10px;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-decoration: none !important;
}

.blog-card-link:hover {
    color: inherit;
    text-decoration: none !important;
}

.blog-card-link:hover .blog-card-image {
    transform: scale(1.05);
}

.blog-card-figure {
    position: relative;
    margin: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 8px;
    background: var(--nd-section-gray, #e7e7e7);
}

.blog-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.blog-card-title {
    display: -webkit-box;
    margin: 0;
    min-height: 42px;
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: 16px;
    font-style: normal;
    font-weight: 600 !important;
    line-height: normal;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.blog-card-excerpt {
    display: -webkit-box;
    margin: 0;
    min-height: 64px;
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: -0.48px;
    text-align: left;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
}

.blog-card-date,
.blog-card-author {
    text-transform: capitalize;
}

.blog-card-meta span + span::before {
    content: "\00B7";
    margin-right: 8px;
}

.blog-card-learn-more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding-bottom: 3px;
    color: var(--nd-theme-dark, #333333) !important;
    font-family: var(--nd-secondary-font);
    font-size: clamp(14px, 1.5vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: -0.8px;
    text-decoration: none;
}

.blog-card-learn-more::before {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--nd-theme-dark, #333333);
    content: '';
}

.blog-card-learn-more img {
    display: inline-block;
    width: auto;
    height: 14px;
    vertical-align: middle;
}

.blog-card-learn-more:hover {
    opacity: 0.8;
}

#blog-grid-container {
    display: none;
    transition: opacity 0.3s ease;
}

.blog-category-page #blog-grid-container {
    display: block !important;
}

.blog-category-page .blog-slider-link {
    display: none !important;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

.blog-grid .blog-card {
    max-width: 100%;
}

.blog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.blog-page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--nd-section-gray, #e7e7e7);
    border-radius: 8px;
    background: var(--nd-theme-white, #fff);
    color: var(--nd-theme-dark, #333333) !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.blog-page-link:visited {
    color: var(--nd-theme-dark, #333333) !important;
}

.blog-page-link:hover {
    border-color: var(--nd-theme-dark, #333333);
    color: var(--nd-theme-dark, #333333) !important;
}

.blog-page-link.active {
    background: var(--nd-theme-dark, #333333);
    color: var(--nd-theme-white, #fff) !important;
    border-color: var(--nd-theme-dark, #333333);
}

.blog-page-link.loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
    font-size: 0;
}

.blog-page-link.loading::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid var(--nd-section-gray, #e7e7e7);
    border-top-color: var(--nd-theme-dark, #333333);
    border-radius: 50%;
    animation: blog-spin 0.6s linear infinite;
    content: '';
}

@keyframes blog-spin {
    to { transform: rotate(360deg); }
}

.blog-grid-empty {
    padding: 60px 0;
    text-align: center;
    font-size: 18px;
    color: var(--nd-theme-dark, #333333);
}

.blog-view-all-wrapper {
    margin-top: 60px;
    margin-bottom: 40px;
    text-align: center;
}

.blog-view-all-btn {
    display: inline-block;
    padding: 12px 32px;
    border: 1px solid var(--blog-yellow);
    border-radius: 32px;
    background: var(--blog-yellow) !important;
    color: var(--nd-theme-white, #fff) !important;
    font-family: var(--nd-secondary-font);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.blog-view-all-btn:hover {
    opacity: 0.85;
}

.blog-single-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 16px 60px;
}

.blog-single-container .rank-math-breadcrumb p {
    margin-bottom: 24px;
}

.blog-single-container .rank-math-breadcrumb a:first-child {
    color: #1E7A87;
    font-family: var(--nd-primary-font);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.26px;
    text-align: center;
}

.blog-single-container .rank-math-breadcrumb a:not(:first-child),
.blog-single-container .rank-math-breadcrumb .last {
    color: #1E1F26;
    font-family: var(--nd-primary-font);
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.26px;
}

.blog-single-main {
    display: flex;
    flex-direction: column;
}

.blog-single-header {
    display: flex;
    align-items: stretch;
    gap: 30px;
}

.blog-single-left {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-single-right {
    width: 55%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.blog-single-title {
    margin: 0 0 16px;
    color: var(--nd-theme-dark, #333333);
    font-family: Anchor;
    font-size: clamp(34px, 3.5vw, 36px);
    font-style: normal;
    font-weight: 600;
    line-height: 130%;
    text-transform: capitalize;
}

.blog-single-desc {
    margin-bottom: 32px;
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    text-transform: capitalize;
}

.blog-single-meta {
    display: flex;
    flex-direction: column;
}

.blog-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-author-img {
    width: 32px;
    height: 32px;
    border-radius: 100px;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--nd-section-gray);
}

.blog-author-fallback {
    display: inline-block;
    background: #e5e5e5;
}

.blog-meta-text {
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: clamp(14px, 1.5vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0.08px;
}

.blog-meta-gap {
    height: 8px;
}

.blog-meta-gap-sm {
    height: 8px;
}

.blog-single-image-wrap {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.blog-single-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: contain;
    aspect-ratio: 16 / 9;
}

.blog-single-body {
    margin-top: 40px;
}

.blog-single-body-inner {
    max-width: 820px;
    margin: auto;
}

.blog-single-body-inner h2,
.blog-single-body-inner h3,
.blog-single-body-inner h4,
.blog-single-body-inner h5,
.blog-single-body-inner p,
.blog-single-body-inner ul,
.blog-single-body-inner ol,
.blog-single-body-inner blockquote {
    margin-bottom: 16px;
    color: var(--nd-theme-dark);
    font-family: var(--nd-secondary-font);
}

.blog-single-body-inner h2 {
    font-size: clamp(28px, 3vw, 30px) !important;
    font-weight: 600 !important;
    line-height: 130%;
}

.blog-single-body-inner .trp-header-content-container h2 {
    margin-top: 32px !important;
    font-family: var(--nd-secondary-font) !important;
}

.blog-single-body-inner h3:not(.product-title) {
    font-size: clamp(24px, 2.5vw, 26px) !important;
    font-weight: 600 !important;
    line-height: 130%;
}

.blog-single-body-inner h4 {
    font-size: clamp(20px, 2.2vw, 22px) !important;
    font-weight: 600 !important;
    line-height: 140%;
}

.blog-single-body-inner h5 {
    font-size: clamp(18px, 2vw, 20px) !important;
    font-weight: 600 !important;
    line-height: 140%;
}

.blog-single-body-inner p,
.blog-single-body-inner ul,
.blog-single-body-inner ol,
.blog-single-body-inner li {
    color: var(--nd-theme-dark, #333333);
    font-family: var(--nd-secondary-font);
    font-size: clamp(14px, 1.5vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: 155%;
    text-transform: capitalize;
}

.blog-single-body-inner ul,
.blog-single-body-inner ol {
    padding-left: 24px;
}

.blog-single-body-inner li {
    margin-bottom: 8px;
}

.blog-single-body-inner p span,
.blog-single-body-inner li span {
    font-weight: 500 !important;
}

.blog-single-body-inner a {
    color: #2C76ED !important;
    font-family: var(--nd-secondary-font);
    font-size: clamp(14px, 1.5vw, 16px);
    font-style: normal;
    font-weight: 500;
    line-height: 140%;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
}

.blog-single-body-inner img {
    min-width: 100%;
    border-radius: 16px;
}

.blog-single-body-inner blockquote {
    padding-left: 20px;
    border-left: 4px solid var(--nd-theme-dark, #333333);
    font-style: italic;
}

.blog-related-articles {
    display: flex;
    flex-direction: column;
    margin-top: 60px;
}

.blog-related-title {
    margin: 0 0 40px;
    color: var(--nd-theme-dark, #333333);
    font-size: clamp(28px, 3vw, 30px) !important;
    font-weight: 700 !important;
    line-height: 130%;
    text-align: center !important;
    text-transform: capitalize;
}

.blog-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
}

.blog-related-grid .blog-card {
    max-width: 100%;
}


/**
 * Section 2: Blog Media Queries
 *
 * Responsive adjustments in descending breakpoint order:
 * 1200 → 992 → 640 → 576 → 370.
 * Grid columns collapse, spacing tightens, and mobile-specific
 * navigation elements activate below 576px.
 */

@media (max-width: 1200px) {
    .blog-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .blog-single-title {
        font-size: 38px;
    }
}

@media (max-width: 992px) {
    .blog-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .blog-single-header {
        flex-direction: column;
    }

    .blog-single-left,
    .blog-single-right {
        width: 100%;
    }

    .blog-single-right {
        order: -1;
        justify-content: center;
    }

    .blog-single-title {
        font-size: 30px;
    }

    .blog-related-articles {
        margin-top: 60px;
    }
}

@media (max-width: 640px) {
    .blog-revamp-container {
        padding: 24px 12px;
    }

    .blog-categories-wrapper {
        gap: 8px;
    }

    .blog-cat-item {
        padding: 8px 16px;
    }

    .blog-card {
        max-width: 260px;
    }

    .blog-single-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .blog-single-desc {
        margin-bottom: 24px;
    }

    .blog-single-container {
        padding: 24px 12px 60px;
    }

    .blog-related-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .blog-related-articles {
        margin-top: 28px;
    }

    .blog-single-body {
        margin-top: 16px;
    }

    .blog-single-header {
        gap: 16px;
    }
}

@media (max-width: 576px) {
    .blog-related-grid {
        gap: 20px;
    }

    .blog-slider-link {
        display: none;
    }

    .slider-nav-bottom {
        flex-wrap: wrap;
    }

    .blog-slider-link-mobile {
        display: inline-flex;
    }

    .blog-grid {
        gap: 20px;
    }
}

@media (max-width: 370px) {
    .blog-related-grid {
        grid-template-columns: 1fr;
        gap: 40px 20px;
    }

    .blog-related-grid .blog-card {
        max-width: 100%;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 40px 20px;
    }

    .blog-card-title {
        min-height: unset;
    }

    .blog-card-excerpt {
        min-height: unset;
    }
}


/**
 * Section 3: Product Slider Base Styles
 *
 * Shell and card styles for the WooCommerce product slider component.
 * Includes cascade guards (revert rules) to protect slider UI from
 * blog-page typography and link styles. Product cards, pricing,
 * strength indicators, badge colours, and breakout layout rules.
 */

#custom-product-slider {
    padding-bottom: 24px !important;
}

.price-strength-wrapper .card-tags {
    padding-right: 0px !important;
    padding-left: 0px !important;
}

/* Neutralise blog-contents h2 cascade */
.product-slider h2 {
    margin-bottom: 16px !important;
    /* font-size: revert !important;
    font-weight: revert !important; */
}

/* Neutralise blog-contents p cascade */
.product-slider .custom-section-description {
    font-size: revert !important;
    margin-bottom: revert !important;
}

.product-slider p {
    margin-bottom: revert !important;
}

/* Neutralise blog-contents image cascade (min-width: 100%) */
.product-slider .designs-card img,
.product-slider .product-image img,
.product-slider img {
    min-width: revert !important;
    max-width: revert !important;
    border-radius: revert !important;
}

/* Neutralise blog-contents link cascade (color, underline) */
.product-slider a {
    color: revert !important;
    text-decoration: none !important;
}

/* Neutralise blog-revamp font-family cascade */
.product-slider,
.product-slider * {
    font-family: revert !important;
}

.blog-single-body-inner .product-slider {
    width: 100vw;
    max-width: 1272px;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
}

.blog-single-body-inner {
    overflow: visible;
}

.blog-single-body {
    overflow: visible;
}

.blog-single-body .product-slider.layout_centered .trp-header-container {
    width: 100%;
    justify-content: center;
}

.blog-single-body .product-slider.layout_centered .trp-header-container h2 {
    margin-bottom: 32px !important;
    text-align: center !important;
    font-weight: 700 !important;
}

.blog-single-body .product-slider.layout_centered {
    margin-bottom: 60px !important;
}

.product-image-wrapper-inner {
    position: relative;
    height: fit-content;
    margin-bottom: 8px !important;
}

.product-badge-wrapper * {
    font-family: var(--nd-secondary-font) !important;
}

.product-badge-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 35px;
    bottom: 0px;
    padding: 0 16px;
    border-radius: 0 0 16px 16px;
}

.product-badge-wrapper .product-badge-text {
    width: fit-content;
    color: var(--nd-theme-white);
    font-size: clamp(11px, 2vw, 16px);
    font-weight: 700;
    text-transform: uppercase;
}

.product-badge-wrapper .product-badge-image {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 0px !important;
    margin-top: -2px !important;
    background-color: transparent !important;
}

.product-slider {
    margin-bottom: 40px;
}

.product-slider .custom-slider {
    cursor: grab;
}

.product-slider .custom-slider.dragging {
    cursor: grabbing;
    user-select: none;
}

.custom-product-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 12px;
}

.custom-product-card
  .product-image
  img:not(.rating-star):not(.product-badge-image) {
    width: 280px;
    height: 280px;
    border-radius: 16px;
    background: var(--nd-theme-white);
    object-fit: contain;
}

.custom-product-card .product-image {
    display: inline-block;
    width: 280px;
    border-radius: 16px;
}

.custom-product-card .product-title {
    display: -webkit-box;
    margin: 12px 0 0;
    margin-bottom: 16px;
    min-height: 48px;
    max-height: 48px;
    color: var(--nd-theme-dark);
    font-family: var(--nd-secondary-font) !important;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 6px;
    color: #1e1f26;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.product-pricing span {
    color: #1e1f26;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.variation-names,
.count-field-wrapper {
    display: none;
}

.price-strength-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: start;
    gap: 12px;
    margin-bottom: 16px;
    min-height: 24px;
    color: var(--nd-theme-dark);
}

.custom-strength-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.product-pricing span.price-difference {
    margin-left: 4px;
    padding: 0px 8px;
    background: #1d5c3a;
    color: var(--nd-theme-white);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.product-pricing span.sale-price + span.regular-price {
    font-size: 14px;
    text-decoration: line-through;
}

.product-image-wrapper {
    position: relative;
}

.product-cards-filter-badge {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: space-between;
    left: 0px;
    top: 12px;
    width: 100%;
    padding: 0px 12px;
    gap: 12px;
    z-index: 2;
}

.product-common-use-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 120px;
    height: 32px;
    padding: 4px 12px;
    border-radius: 100px;
    color: var(--nd-theme-white);
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.28px;
    text-transform: capitalize;
    transition: 0.2s;
}

.product-rating-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    height: 32px;
    margin-left: auto;
    padding: 4px 12px;
    border: 0.5px solid #1e1f26;
    border-radius: 100px;
    background: var(--nd-theme-white);
    color: #1e1f26;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: 0.28px;
    text-transform: capitalize;
    transition: 0.2s;
}

.product-rating-badge img {
    max-height: 16px;
    max-width: 16px;
    margin-bottom: 0px;
    background: transparent;
}

.product-cards-filter-badge .product-common-use-badge:hover,
.product-cards-filter-badge .product-rating-badge:hover {
    opacity: 0.8;
}

.common-use-focus,
.common-use-intimacy,
.common-use-relaxation,
.common-use-sleep,
.common-use-social {
    color: var(--nd-theme-white);
}

body .product-slider .common-use-energy {
    color: var(--nd-theme-dark) !important;
}

.card-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 12px;
    border-radius: 32px;
    color: var(--nd-theme-dark);
    font-family: var(--nd-secondary-font);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 32px;
    letter-spacing: 0.26px;
    text-transform: capitalize;
    text-wrap: nowrap;
    flex-direction: row-reverse;
    gap: 8px;
}

.card-tags-sep {
    display: none;
    margin: 0 1px;
    color: var(--nd-theme-dark);
    font-size: 13px;
    font-weight: 500;
}

.custom-strength-label {
    color: var(--nd-theme-dark);
    font-size: 11px;
    font-weight: 500;
    line-height: 24px;
    text-transform: capitalize;
}

.custom-strength-wrapper .signals-wrapper {
    display: inline-flex;
    align-items: end;
    gap: 2px;
    height: 10px;
}

.custom-strength-wrapper .signal-dot {
    width: 2px;
    border-radius: 100px;
    background: #adb1a5;
}

.custom-strength-wrapper .signal-dot:first-child {
    height: 3px;
}

.custom-strength-wrapper .signal-dot:nth-child(2) {
    height: 5px;
}

.custom-strength-wrapper .signal-dot:nth-child(3) {
    height: 7px;
}

.custom-strength-wrapper .signal-dot:nth-child(4) {
    height: 9px;
}

.custom-strength-wrapper .signal-dot:nth-child(5) {
    height: 11px;
}

.filters .signals-wrapper .signal-dot.active,
.custom-strength-wrapper .signal-dot.active {
    background: #1e1f26;
}

.custom-product-card .product-badge-wrapper {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: var(--bottom-n-height-desktop);
    min-height: 36px;
    bottom: 0px;
    padding: 0 20px;
    border-radius: 0 0 12px 12px;
}

.custom-product-card .product-badge-wrapper .product-badge-text {
    width: fit-content;
    color: var(--nd-theme-white);
    font-size: 16px !important;
    font-family: var(--nd-secondary-font);
    font-weight: 700;
    text-transform: uppercase;
}

.custom-product-card .product-badge-wrapper img {
    width: 25px;
    height: 25px;
    margin-bottom: 0px !important;
    background-color: transparent !important;
}

.custom-product-card .product-badge-wrapper img[src$=".svg"] {
    width: 18px;
    height: 18px;
    margin-top: -2px;
}

.product-badge-clearance {
    background: #bf5b59;
    background: linear-gradient(90deg, rgba(191,91,89,1) 0%, rgba(165,46,43,1) 100%);
}

.product-badge-new-release {
    background: #49af8d;
    background: linear-gradient(90deg, rgba(73,175,141,1) 0%, rgba(0,143,95,1) 100%);
}

.product-badge-just-restocked {
    background: #87a753;
    background: linear-gradient(90deg, rgba(135,167,83,1) 0%, rgba(88,143,0,1) 100%);
}

.product-badge-out-of-stock {
    background: #e25f63;
    background: linear-gradient(90deg, rgba(226,95,99,1) 0%, rgba(202,32,38,1) 100%);
}

.product-badge-staffs-pick {
    background: #6f71cf;
    background: linear-gradient(90deg, rgba(111,113,207,1) 0%, rgba(65,67,189,1) 100%);
}

.product-badge-toms-pick,
.product-badge-joshs-pick,
.product-badge-monas-pick {
    background: #ffb68b;
    background: linear-gradient(90deg, rgba(255,182,139,1) 0%, rgba(242,110,33,1) 100%);
}

.product-badge-new-flavor {
    background: #ff6b35;
    background: linear-gradient(90deg, rgba(255,107,53,1) 0%, rgba(230,70,30,1) 100%);
}

.product-image-wrapper-inner {
    max-height: fit-content;
    border: 2px solid var(--nd-theme-white);
    border-radius: 16px;
    background: var(--nd-theme-white);
}


/**
 * Section 4: Product Slider Media Queries
 *
 * Responsive adjustments for the product slider in descending
 * breakpoint order: 1200 → 1023 → 880 → 767 → 576 → 370.
 * Card dimensions, badge sizing, and layout shift to mobile-first
 * presentation at smaller viewports.
 */

@media (max-width: 1200px) {
    .blog-single-body-inner .product-slider {
        width: 100%;
        max-width: none;
        margin-left: 0;
        transform: none;
    }
}

@media only screen and (max-width: 1023px) and (min-width: 768px) {
    .custom-product-card .product-badge-wrapper {
        height: var(--bottom-n-height-tablet);
    }

    .custom-product-card .product-badge-wrapper .product-badge-text {
        font-size: 20px;
    }
}

@media (max-width: 880px) {
    .trp-header-container {
        justify-content: center !important;
    }

    .product-slider .trp-header-content-container {
        align-items: center;
        justify-content: center !important;
    }

    .product-slider .custom-section-description {
        padding-right: 0 !important;
        text-align: center !important;
    }

    .product-slider .product-slider-cta-wrapper {
        display: none;
    }

    .product-slider .product-slider-cta-wrapper.bottom-btn {
        display: flex;
    }

    .product-slider .slider-section {
        padding: 0 !important;
    }

    .product-slider .custom-slider {
        display: flex;
        overflow-x: scroll;
        grid-template-columns: repeat(2, 1fr);
        scroll-behavior: smooth !important;
    }
}

@media only screen and (max-width: 767px) and (min-width: 576px) {
    .custom-product-card .product-badge-wrapper {
        height: var(--bottom-n-height-tablet);
    }

    .custom-product-card .product-badge-wrapper .product-badge-text {
        gap: 6px;
        font-size: 16px;
    }
}

@media only screen and (max-width: 576px) {
    .product-slider .custom-slider {
        gap: 20px;
    }

    .product-slider .custom-product-card
        .product-image
        img:not(.rating-star):not(.product-badge-image) {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
    }

    .product-slider .custom-product-card .product-image {
        width: 200px;
    }

    .product-slider .custom-product-card .product-title {
        min-height: 40px;
        max-height: 40px;
        margin-bottom: 10px;
        font-size: 14px;
        line-height: 20px;
    }

    .product-slider .price-strength-wrapper {
        gap: 6px;
        margin-bottom: 10px;
        min-height: 22px;
    }

    .product-slider .card-tags {
        font-size: 12px;
        line-height: 22px;
    }

    .product-slider .custom-strength-label {
        font-size: 11px;
        line-height: 22px;
    }

    .product-slider .product-pricing {
        gap: 4px;
    }

    .product-slider .product-pricing span {
        font-size: 14px;
    }

    .product-slider .product-cta-btn {
        min-height: 40px;
        padding: 10px 16px;
        font-size: 10px;
    }

    .product-slider .product-slider-cta-wrapper a {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        margin-right: 16px;
        text-transform: uppercase;
    }

    .price-strength-wrapper .card-tags,
    .product-slider .price-strength-wrapper .card-tags {
        font-size: 11px !important;
        line-height: 24px !important;
    }

    .product-slider .price-strength-wrapper .card-tags .custom-strength-label {
        margin-left: 0 !important;
        font-size: 11px !important;
    }

    .product-slider .price-strength-wrapper {
        gap: 8px !important;
    }

    .product-slider .tags-wrapper [class^="common-use"]:first-of-type {
        max-height: 20px;
        min-width: fit-content;
        font-size: 11px;
        font-weight: 600;
    }

    .product-slider .product-pricing,
    .product-slider .tags-wrapper {
        gap: 4px;
    }

    .product-slider .product-rating {
        display: flex;
        gap: 4px;
        padding: 0 4px;
        margin-bottom: 0 !important;
        font-size: 12px;
    }

    .product-slider .price-difference,
    .product-slider .sale-price + .regular-price {
        font-size: 11px;
    }

    .product-slider .regular-price,
    .product-slider .sale-price {
        font-size: 13px;
    }

    .product-badge-wrapper {
        height: 26px !important;
        gap: 10px !important;
        bottom: 0px !important;
    }

    .product-badge-wrapper .product-badge-image {
        width: 18px !important;
        height: 18px !important;
    }

    .card-tags-sep {
        display: inline;
    }

    .card-tags {
        display: inline;
        height: auto;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        gap: 0;
        justify-content: flex-start;
        align-items: baseline;
        line-height: 24px;
    }

    .card-tags.custom-strength-wrapper {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        height: auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .custom-product-card .product-cards-filter-badge {
        top: 8px;
        padding: 0px 8px;
        gap: 4px;
        font-size: 13px;
        font-weight: 500;
        line-height: 20px;
        letter-spacing: 0.26px;
    }

    .custom-product-card .product-cards-filter-badge .product-rating-badge {
        max-height: 20px;
        padding: 0px 8px;
        gap: 4px;
        font-size: 11px;
    }

    .custom-product-card .product-cards-filter-badge .product-common-use-badge {
        max-height: 20px;
        width: fit-content;
        font-size: 11px;
        font-weight: 600;
    }

    .custom-product-card .product-badge-wrapper {
        height: 28px;
        gap: 6px;
        padding: 0 10px;
    }

    .custom-product-card .product-badge-wrapper img[src$=".svg"] {
        width: 16px;
        height: 16px;
    }
}

@media only screen and (max-width: 370px) {
    .filtered-products-grid .product-badge-wrapper .product-badge-text {
        font-size: 16px;
    }

    .filtered-products-grid .product-badge-wrapper {
        height: 35px !important;
    }

    .custom-product-card .product-badge-wrapper {
        height: 28px;
        gap: 6px;
        padding: 0 10px;
    }

    .custom-product-card .product-badge-wrapper img[src$=".svg"] {
        width: 16px;
        height: 16px;
    }
}