/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

:root {
    --fl-purple: #593D87;
    --fl-cyan: #2DB9B0;
    --fl-cyan-dark: #19a7a8;
    --fl-text-muted: #5f6368;
    --fl-card-border: rgba(0, 0, 0, 0.05);
    --fl-card-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    --fl-card-shadow-hover: 0 10px 24px rgba(0, 0, 0, 0.10);
    --wp--preset--font-size--medium: 16px;
}

body {
    background: linear-gradient(
        135deg,
        rgba(25, 185, 176, 0.15),
        rgba(89, 61, 135, 0.15)
    ) !important;
}

.main-page-wrapper {
    padding-top: 0 !important;
}

/* TESTIMONIALS PAGE */

/* Add a proper page title if the template does not show one */
.post-type-archive-testimonials .main-page-wrapper:before,
.post-type-archive-testimonial .main-page-wrapper:before,
.tax-testimonials .main-page-wrapper:before,
.page-template-template-testimonials .main-page-wrapper:before {
    content: "Testimonials";
    display: block;
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #593D87;
    margin: 30px 0 25px;
}

/* Hide "Posted by Emma" and the share icon/link */
.post-type-archive-testimonials .testimonial-info,
.post-type-archive-testimonials .testimonial-meta,
.post-type-archive-testimonials .entry-meta,
.post-type-archive-testimonials .meta-post-categories,
.post-type-archive-testimonials .wd-post-meta,
.post-type-archive-testimonials .post-meta,
.post-type-archive-testimonials .social-share,
.post-type-archive-testimonials .share,
.post-type-archive-testimonials .post-share,
.post-type-archive-testimonials .wd-social-icons,
.post-type-archive-testimonial .testimonial-info,
.post-type-archive-testimonial .testimonial-meta,
.post-type-archive-testimonial .entry-meta,
.post-type-archive-testimonial .meta-post-categories,
.post-type-archive-testimonial .wd-post-meta,
.post-type-archive-testimonial .post-meta,
.post-type-archive-testimonial .social-share,
.post-type-archive-testimonial .share,
.post-type-archive-testimonial .post-share,
.post-type-archive-testimonial .wd-social-icons {
    display: none !important;
}

/* Make the cards look cleaner */
.post-type-archive-testimonials article,
.post-type-archive-testimonials .wd-testimonial,
.post-type-archive-testimonials .testimonial,
.post-type-archive-testimonial article,
.post-type-archive-testimonial .wd-testimonial,
.post-type-archive-testimonial .testimonial {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-type-archive-testimonials article:hover,
.post-type-archive-testimonials .wd-testimonial:hover,
.post-type-archive-testimonials .testimonial:hover,
.post-type-archive-testimonial article:hover,
.post-type-archive-testimonial .wd-testimonial:hover,
.post-type-archive-testimonial .testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

/* Improve the person name */
.post-type-archive-testimonials h3,
.post-type-archive-testimonials h4,
.post-type-archive-testimonials .entry-title,
.post-type-archive-testimonials .wd-entities-title,
.post-type-archive-testimonial h3,
.post-type-archive-testimonial h4,
.post-type-archive-testimonial .entry-title,
.post-type-archive-testimonial .wd-entities-title {
    color: #593D87;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    text-align: center;
}

/* Make testimonial text a bit easier to read */
.post-type-archive-testimonials .entry-content,
.post-type-archive-testimonials .testimonial-text,
.post-type-archive-testimonials .wd-testimon-text,
.post-type-archive-testimonial .entry-content,
.post-type-archive-testimonial .testimonial-text,
.post-type-archive-testimonial .wd-testimon-text {
    color: #555;
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

/* Tidy up the read more link */
.post-type-archive-testimonials .more-link,
.post-type-archive-testimonials .read-more,
.post-type-archive-testimonials .wd-post-read-more,
.post-type-archive-testimonial .more-link,
.post-type-archive-testimonial .read-more,
.post-type-archive-testimonial .wd-post-read-more {
    color: #593D87;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* Optional: hide read more completely if you want short cards only */
/*
.post-type-archive-testimonials .more-link,
.post-type-archive-testimonials .read-more,
.post-type-archive-testimonials .wd-post-read-more,
.post-type-archive-testimonial .more-link,
.post-type-archive-testimonial .read-more,
.post-type-archive-testimonial .wd-post-read-more {
    display: none !important;
}
*/

.woocommerce ul.products {
    margin-top: 20px;
}

/* Shop by age */
.shop-by-age {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 25px auto 30px;
    max-width: 1000px;
}

.shop-by-age a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.shop-by-age a:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

.shop-by-age a:nth-child(1)  { background: #59c3c3; }
.shop-by-age a:nth-child(2)  { background: #1fa4a4; }
.shop-by-age a:nth-child(3)  { background: #144f60; }
.shop-by-age a:nth-child(4)  { background: #2f4c92; }
.shop-by-age a:nth-child(5)  { background: #6c4c8f; }
.shop-by-age a:nth-child(6)  { background: #9a2a8e; }
.shop-by-age a:nth-child(7)  { background: #c34db9; }
.shop-by-age a:nth-child(8)  { background: #e062c7; }
.shop-by-age a:nth-child(9)  { background: #8b2e9b; }
.shop-by-age a:nth-child(10) { background: #5c3a8c; }
.shop-by-age a:nth-child(11) { background: #2b4e9e; }
.shop-by-age a:nth-child(12) { background: #1e5c74; }
.shop-by-age a:nth-child(13) { background: #22a5a3; }
.shop-by-age a:nth-child(14) { background: #63c7c3; }

/* Hero */
.fl-hero {
    padding: 40px 10px;
    background: linear-gradient(190deg, #eaf6fb 100%, #ffffff 100%);
    text-align: center;
    border-radius: 8px;
    margin: 20px 0 30px;
}

.fl-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.fl-hero h1 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.fl-hero p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    color: #555;
}

.fl-hero-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.fl-btn {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.2s ease;
}

.fl-btn-primary {
    background: var(--fl-cyan-dark);
    color: #fff;
}

.fl-btn-secondary {
    background: #2f4c92;
    color: #fff;
}

.fl-btn:hover {
    opacity: 0.92;
}

/* Main nav */
.main-nav .menu-item > a {
    font-size: 17px;
    font-weight: 600;
    padding: 14px 22px;
}

.main-nav .menu-item > a:hover {
    color: #00a99d;
}

/* Lower browse menu only: Age / Development Skill / Subject */
.whb-header-bottom .wd-nav,
.whb-header-bottom .menu,
.whb-bottom-bar .wd-nav,
.whb-bottom-bar .menu {
    display: flex !important;
    justify-content: center !important;
    gap: 4px !important;
}

.whb-header-bottom .wd-nav > li,
.whb-header-bottom .menu > li,
.whb-bottom-bar .wd-nav > li,
.whb-bottom-bar .menu > li {
    margin: 0 !important;
}

.whb-header-bottom .wd-nav > li > a,
.whb-header-bottom .menu > li > a,
.whb-bottom-bar .wd-nav > li > a,
.whb-bottom-bar .menu > li > a {
    display: flex !important;
    align-items: center !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    padding: 14px 12px !important;
    color: var(--fl-text-muted) !important;
    border-bottom: 2px solid transparent !important;
}

.whb-header-bottom .wd-nav > li > a:hover,
.whb-header-bottom .menu > li > a:hover,
.whb-bottom-bar .wd-nav > li > a:hover,
.whb-bottom-bar .menu > li > a:hover {
    color: #00a99d !important;
    border-bottom-color: #00a99d !important;
}

.whb-header-bottom .menu > li > a .wd-nav-opener,
.whb-header-bottom .wd-nav > li > a .wd-nav-opener,
.whb-bottom-bar .menu > li > a .wd-nav-opener,
.whb-bottom-bar .wd-nav > li > a .wd-nav-opener {
    font-size: 12px !important;
    margin-left: 6px !important;
}

/* Submenu */
.whb-header-bottom .menu > li.menu-item-has-children > .sub-menu,
.whb-bottom-bar .menu > li.menu-item-has-children > .sub-menu,
.whb-header-bottom .wd-nav > li.menu-item-has-children > .sub-menu,
.whb-bottom-bar .wd-nav > li.menu-item-has-children > .sub-menu {
    padding: 10px 0 !important;
    border-radius: 10px !important;
    overflow: hidden;
}

.whb-header-bottom .sub-menu li > a,
.whb-bottom-bar .sub-menu li > a {
    display: block !important;
    padding: 12px 18px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666 !important;
    background: #fff !important;
    border-left: 4px solid transparent !important;
    transition: all 0.2s ease !important;
}

.whb-header-bottom .sub-menu li > a:hover,
.whb-bottom-bar .sub-menu li > a:hover {
    color: #333 !important;
    padding-left: 22px !important;
}

/* Elementor bar tweak */
.elementor-element-6f8f7761 .elementor-widget-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.elementor-element-6f8f7761 h5 {
    margin: 0;
}

/* Category carousel */
.fl-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.fl-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
}

.fl-carousel::-webkit-scrollbar {
    display: none;
}

.fl-category-tile {
    position: relative;
    flex: 0 0 calc(25% - 15px);
    display: block;
    overflow: hidden;
    text-decoration: none;
    border-radius: 12px;
}

.fl-category-tile img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    height: auto;
    transition: transform 0.45s ease, filter 0.35s ease;
    transform: scale(1);
    will-change: transform;
}

.fl-category-tile:hover img {
    transform: scale(1.08);
}

.fl-category-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    color: #fff;
    text-align: center;
    padding: 8px;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.2;
}

.fl-category-tile:nth-child(14n+1) span  { background: #59c3c3; }
.fl-category-tile:nth-child(14n+2) span  { background: #1fa4a4; }
.fl-category-tile:nth-child(14n+3) span  { background: #144f60; }
.fl-category-tile:nth-child(14n+4) span  { background: #2f4c92; }
.fl-category-tile:nth-child(14n+5) span  { background: #6c4c8f; }
.fl-category-tile:nth-child(14n+6) span  { background: #9a2a8e; }
.fl-category-tile:nth-child(14n+7) span  { background: #c34db9; }
.fl-category-tile:nth-child(14n+8) span  { background: #e062c7; }
.fl-category-tile:nth-child(14n+9) span  { background: #8b2e9b; }
.fl-category-tile:nth-child(14n+10) span { background: #5c3a8c; }
.fl-category-tile:nth-child(14n+11) span { background: #2b4e9e; }
.fl-category-tile:nth-child(14n+12) span { background: #1e5c74; }
.fl-category-tile:nth-child(14n+13) span { background: #22a5a3; }
.fl-category-tile:nth-child(14n+14) span { background: #63c7c3; }

.fl-category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: background 0.35s ease;
    pointer-events: none;
}

.fl-category-tile:hover::after {
    background: rgba(0, 0, 0, 0.08);
}

.fl-arrow {
    background: var(--fl-purple);
    color: #fff;
    border: none;
    font-size: 24px;
    line-height: 1;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background 0.2s ease;
}

.fl-arrow:hover {
    background: var(--fl-cyan-dark);
}

/* Product cards */
ul.wc-block-product-template {
    gap: 15px !important;
}

li.wc-block-product {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--fl-card-border);
    border-radius: 14px;
    padding: 12px 12px 10px;
    box-shadow: var(--fl-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

li.wc-block-product:hover {
    transform: translateY(-4px);
    box-shadow: var(--fl-card-shadow-hover);
}

li.wc-block-product .wc-block-components-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 190px;
    margin-bottom: 6px;
}

li.wc-block-product .wc-block-components-product-image img {
    max-height: 160px;
    width: auto;
    object-fit: contain !important;
}

li.wc-block-product .wp-block-post-title {
    flex: 1 0 auto;
    margin: 0 0 4px;
    line-height: 1.25 !important;
    font-size: 15px;
    min-height: auto;
}

li.wc-block-product .wp-block-post-title a {
    text-decoration: none;
}

.wc-block-components-product-price {
    font-size: 19px !important;
    font-weight: 700;
    color: var(--fl-purple);
}

li.wc-block-product .wc-block-components-product-price {
    flex: 0 0 auto;
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 700;
}

li.wc-block-product .wp-block-woocommerce-product-button {
    margin-top: auto !important;
}

.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button,
li.wc-block-product button.wc-block-components-product-button__button,
li.wc-block-product .wc-block-components-product-button__button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: none !important;
    border-radius: 8px !important;
    background-color: var(--fl-cyan) !important;
    border-color: var(--fl-cyan) !important;
    color: #fff !important;
    box-shadow: var(--btn-accented-box-shadow);
    text-transform: var(--btn-accented-transform);
    font-weight: var(--btn-accented-font-weight, 600) !important;
    font-family: var(--btn-accented-font-family, inherit) !important;
    font-style: var(--btn-accented-font-style, normal) !important;
    font-size: 14px !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-decoration: none !important;
    overflow: hidden !important;
    white-space: normal !important;
    word-break: normal !important;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
}

.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:hover,
.wp-block-button.wc-block-components-product-button .wc-block-components-product-button__button:focus,
li.wc-block-product button.wc-block-components-product-button__button:hover,
li.wc-block-product .wc-block-components-product-button__button:hover,
li.wc-block-product button.wc-block-components-product-button__button:focus,
li.wc-block-product .wc-block-components-product-button__button:focus,
li.wc-block-product .wp-block-button__link:hover,
li.wc-block-product .wp-block-button__link:focus {
    background-color: var(--fl-purple) !important;
    border-color: var(--fl-purple) !important;
    color: #fff !important;
    opacity: 1 !important;
}

.fl-why-great {
    margin: 24px 0;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.fl-suggested-age-label {
    color: #444;
    font-weight: 500;
}

.fl-suggested-age-value {
    color: #6fbe7b;
    font-weight: 200;
}

.fl-why-great-title {
    margin: 0 0 18px;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
    text-transform: uppercase;
}

.fl-why-great-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fl-why-great-list li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.fl-why-great-list li::before {
    content: "-";
    position: absolute;
    left: 0;
    top: 0;
}

.fl-price-age-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.fl-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--fl-purple);
}

.fl-age {
    font-size: 18px;
}

.fl-age-label {
    color: var(--fl-text-muted);
    font-weight: 500;
}

.fl-age-value {
    color: var(--fl-cyan);
    font-weight: 700;
}

/* Product grid columns */
ul.products,
ul.wc-block-grid__products,
.wc-block-grid__products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px !important;
}

@media (min-width: 768px) {
    ul.products,
    ul.wc-block-grid__products,
    .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    ul.products,
    ul.wc-block-grid__products,
    .wc-block-grid__products {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    ul.products,
    ul.wc-block-grid__products,
    .wc-block-grid__products {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.wc-block-grid__product,
li.product {
    width: auto !important;
    margin: 0 !important;
}

/* Filter / archive cleanup */
.woocommerce-result-count {
    display: none !important;
}

.woodmart-prefooter {
    margin-top: 0 !important;
}

.site-content,
.content-layout-wrapper,
.archive-products {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.woocommerce-breadcrumb,
.rank-math-breadcrumb,
.wd-breadcrumbs,
.woocommerce-breadcrumb-wrapper,
.wd-page-title,
.shop-loop-head,
.title-size-default,
.page-title {
    margin-bottom: 6px !important;
    padding-bottom: 0 !important;
}

.fl-age-filter-wrap {
    background: #f7f7f8;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 8px 10px !important;
    margin: 4px 0 8px !important;
}

.fl-age-filter-wrap,
.fl-age-filter-wrap *,
.fl-age-filter-wrap summary,
.fl-age-filter-wrap summary *,
.fl-age-filter-wrap strong,
.fl-age-filter-wrap label,
.fl-age-filter-wrap a,
.fl-age-filter-wrap span,
.fl-age-filter-wrap input,
.fl-age-filter-wrap div {
    font-family: var(--wd-text-font), Arial, Helvetica, sans-serif !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}

.fl-filter-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px !important;
    padding-bottom: 5px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.fl-filter-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 700;
    color: #593D87;
}

.fl-clear-all-filters,
.fl-clear-price {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 600;
    color: #593D87;
    text-decoration: none;
}

.fl-clear-all-filters:hover,
.fl-clear-price:hover {
    color: #2DB9B0;
}

.fl-product-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px !important;
    margin-bottom: 6px !important;
}

.fl-filter-section,
.fl-age-filter {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 7px 10px !important;
    margin: 0 !important;
}

.fl-filter-section-title {
    margin: 0 0 6px;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    color: #593D87;
}

.fl-price-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.fl-price-filter label {
    display: inline-block;
    margin: 0;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    color: #333;
}

.fl-price-filter input[type="number"] {
    width: 74px;
    height: 32px;
    padding: 4px 8px;
    margin: 0 4px 0 0;
    border: 1px solid #d7d7d7;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1;
}

.fl-dev-skills-details {
    margin: 0;
}

.fl-dev-skills-details summary {
    cursor: pointer;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 600;
    color: #222;
}

.fl-dev-skills-details summary::-webkit-details-marker {
    display: none;
}

.fl-dev-skills-details summary::after {
    content: "+";
    float: right;
    color: #593D87;
    font-size: 22px;
    line-height: 1;
    margin-left: 8px;
}

.fl-dev-skills-details[open] summary::after {
    content: "−";
}

.fl-dev-skills-options {
    margin-top: 8px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 10px;
}

.fl-dev-skill-group {
    grid-column: 1 / -1;
    margin-top: 2px;
}

.fl-dev-skill-group > strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    line-height: 1.1;
    font-weight: 700;
    color: #593D87;
}

.fl-dev-skill-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
}

.fl-dev-skill-item input {
    margin: 0;
}

.fl-dev-skill-item.disabled {
    opacity: 0.45;
}

.fl-age-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.fl-age-filter .fl-filter-section-title,
.fl-age-filter > strong {
    margin: 0;
    min-width: auto;
}

.fl-age-filter-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fl-age-filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 32px;
    padding: 0 10px;
    border-radius: 7px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #333;
    text-decoration: none;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    transition: all 0.15s ease;
}

.fl-age-filter-link:hover {
    border-color: #2DB9B0;
}

.fl-age-filter-link.active {
    background: #2DB9B0;
    border-color: #2DB9B0;
    color: #fff;
}

.fl-age-filter-link.disabled {
    background: #f3f3f3;
    color: #aaa;
    border-color: #e4e4e4;
    cursor: not-allowed;
}

.fl-age-filter-wrap + .woocommerce-notices-wrapper,
.fl-age-filter-wrap + .shop-loop-head {
    margin-top: 0 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .fl-category-tile {
        flex: 0 0 calc(33.333% - 14px);
    }

    .fl-hero h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
        margin-bottom: 12px !important;
    }
}

@media (max-width: 768px) {
    .shop-by-age {
        gap: 10px;
        max-width: 100%;
    }

    .shop-by-age a {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .fl-carousel {
        gap: 14px;
    }

    .fl-category-tile {
        flex: 0 0 calc(50% - 7px);
    }

    .fl-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }

    .whb-header-bottom .wd-nav > li > a,
    .whb-bottom-bar .menu > li > a {
        font-size: 11px !important;
        padding: 10px 8px !important;
        line-height: 1.1 !important;
    }

    .fl-hero {
        margin-top: 12px !important;
        padding: 30px 15px 28px !important;
    }

    .fl-hero p {
        font-size: 15px;
    }

    .fl-age-filter-wrap {
        padding: 8px 10px;
    }

    .fl-product-filters {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 8px;
    }

    .fl-dev-skills-options {
        grid-template-columns: 1fr;
    }

    .fl-filter-section,
    .fl-age-filter {
        padding: 8px 10px;
    }

    .fl-filter-title {
        font-size: 17px;
    }

    .fl-price-filter input[type="number"] {
        width: 68px;
        height: 30px;
    }

    .fl-age-filter-link {
        min-width: 32px;
        height: 30px;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .fl-category-tile {
        flex: 0 0 100%;
    }
}

/* 1. Breadcrumbs: a bit more space below */
.woocommerce-breadcrumb,
.rank-math-breadcrumb,
.wd-breadcrumbs,
.woocommerce-breadcrumb-wrapper {
    margin-bottom: 14px !important;
    padding-bottom: 0 !important;
}

/* Keep page title / sort row tighter than before */
.wd-page-title,
.shop-loop-head,
.title-size-default,
.page-title {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

/* 2. Remove the big grey outer area around the filter */
.fl-age-filter-wrap {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin: 0 0 12px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* If there is a wrapper around the shortcode/container adding grey space */
.term-description,
.archive-description,
.shop-loop-head + .woocommerce-notices-wrapper,
.shop-loop-head + .fl-age-filter-wrap {
    margin-top: 0 !important;
}

/* Reduce empty space below the filter block */
.fl-age-filter-wrap + .woocommerce-notices-wrapper,
.fl-age-filter-wrap + .shop-loop-head,
.fl-age-filter-wrap + .wd-shop-tools,
.fl-age-filter-wrap + ul.products,
.fl-age-filter-wrap + .products {
    margin-top: 6px !important;
    padding-top: 0 !important;
}

/* Tighten the filter's own bottom spacing a little */
.fl-filter-topbar {
    margin-bottom: 5px !important;
}

.fl-product-filters {
    margin-bottom: 5px !important;
}

/* Remove parent grey block behind the filter if present */
.content-layout-wrapper .site-content,
.main-page-wrapper .site-content,
.term-description,
.archive-description {
    background: transparent !important;
}

/* More breathing room under breadcrumbs */
.woocommerce-breadcrumb,
.rank-math-breadcrumb,
.wd-breadcrumbs,
.woocommerce-breadcrumb-wrapper {
    margin-bottom: 18px !important;
}

/* Remove extra spacing from page title / archive header area */
.wd-page-title,
.shop-loop-head,
.title-size-default,
.page-title,
.term-title-wrapper,
.archive-title-wrapper {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
}

/* Remove grey background and padding from common parent wrappers */
.main-page-wrapper .site-content,
.main-page-wrapper .content-layout-wrapper,
.tax-product_cat .site-content,
.tax-product_cat .content-layout-wrapper,
.tax-development_skill .site-content,
.tax-development_skill .content-layout-wrapper,
.tax-age .site-content,
.tax-age .content-layout-wrapper {
    background: transparent !important;
}

/* Common Gutenberg / block wrappers that often create the grey box */
.wp-block-group,
.wp-block-group__inner-container,
.is-layout-constrained,
.is-layout-flow,
.entry-content > .wp-block-group,
.term-description,
.archive-description {
    background: transparent !important;
}

/* Remove extra padding around the block holding the shortcode */
.entry-content > .wp-block-group,
.entry-content > .wp-block-columns,
.entry-content > .wp-block-cover,
.term-description,
.archive-description,
.tax-development_skill .entry-content,
.tax-age .entry-content {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

/* Keep only the rounded filter box */
.fl-age-filter-wrap {
    background: #fff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin: 0 0 10px !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03) !important;
}

/* Reduce gap between filter and products */
.fl-age-filter-wrap + .woocommerce-notices-wrapper,
.fl-age-filter-wrap + .wd-shop-tools,
.fl-age-filter-wrap + ul.products,
.fl-age-filter-wrap + .products,
.fl-age-filter-wrap + .woocommerce-info {
    margin-top: 4px !important;
    padding-top: 0 !important;
}

/* Reduce gap above filter if wrapper inserts space */
.term-description + .fl-age-filter-wrap,
.archive-description + .fl-age-filter-wrap,
.shop-loop-head + .fl-age-filter-wrap,
.wd-page-title + .fl-age-filter-wrap {
    margin-top: 0 !important;
}

/* Remove the unwanted PRE styling around the shortcode */
pre.wp-block-preformatted {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

/* Remove Woodmart filter container spacing */
.filters-area,
.filters-area.always-open,
.body-filters-opened .filters-area {
    margin-bottom: 8px !important;
    padding-block: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

/* Keep only your rounded filter box */
.filters-inner-area {
    padding: 0 !important;
    background: transparent !important;
}

/* Optional: slightly more space under breadcrumbs */
.woocommerce-breadcrumb,
.wd-breadcrumbs {
    margin-bottom: 14px !important;
}

/* Soft light background for the whole filter area */
.filters-area,
.filters-area.always-open,
.body-filters-opened .filters-area {
    background: #fafbfc !important; /* very light grey */
    border-radius: 14px;
    padding: 10px 12px !important;
}

/* Keep inner spacing tight */
.filters-inner-area {
    padding: 0 !important;
    background: transparent !important;
}

/* Your main filter box stays white but slightly elevated */
.fl-age-filter-wrap {
    background: #ffffff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 12px !important;
    padding: 10px 12px !important;
    margin: 0 !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.filters-area,
.filters-area.always-open,
.body-filters-opened .filters-area {
    background: transparent !important;
    padding: 10px 12px !important;
    border: 0 !important;
}

.filters-inner-area {
    background: transparent !important;
    padding: 0 !important;
}

pre.wp-block-preformatted {
    background: transparent !important;
}

.filters-area pre.wp-block-preformatted .fl-age-filter-wrap,
pre.wp-block-preformatted > .fl-age-filter-wrap,
.fl-age-filter-wrap {
    background: #f7f7f7 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}
.fl-results-count {
    font-size: 14px;
    color: #5f6368;
    margin-bottom: 10px;
}
.fl-dev-skill-item {
    display: block;
    margin-bottom: 6px;
}

.fl-dev-skill-item.disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fl-dev-skill-item.disabled input {
    cursor: not-allowed;
}

.fl-dev-skill-count {
    color: #777;
    font-size: 0.95em;
}
.wpcf7 input,
.wpcf7 textarea {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 12px 14px;
    width: 100%;
    font-size: 16px;
}

.wpcf7 textarea {
    min-height: 140px;
}

.wpcf7-submit {
    background: #593D87 !important;
    color: #fff !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-weight: 600;
    border: none !important;
}

.wpcf7-submit:hover {
    opacity: 0.9;
}
.wpcf7 p {
    margin-bottom: 14px !important;
}

.wpcf7 br {
    display: none;
}

.contact-page section {
    margin-bottom: 0;
}

/* Contact Form 7 error messages */
.wpcf7-response-output {
    border: none !important;
    background: #593D87 !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 14px 18px !important;
    margin: 20px 0 0 !important;
    font-size: 15px;
}

